mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 06:28:51 +00:00
* chore(scripts/twitter): Refactored twitter to use event enums * chore(scripts/marketplace): Refactored marketplace to use event enums * chore(scripts/messages): Refactored messages to use event enums * chore(scripts/contacts): Refactored contacts to use event enums * chore(scripts/calls): Refactored calls to use event enums * chore(scripts/notes): Refactored notes to use event enums * chore(scripts/photos): Refactored photos to use event enums * chore(scripts/bank): Refactored bank to use event enums * chore(scripts/phone): Refactored phone to use event enums * chore(events): Removed old events object * refactor(phone/nui-events): Attached NUI events to respective enum * tweak(event-enums): Added npwd prefix to all events * tweak(phone/serve): Added craco to override CRA without eject Also bumped react-scripts to 4.0.1, with seemingly no issues * fix(typings/twitter): Fixed method enums for twitter
24 lines
706 B
TypeScript
24 lines
706 B
TypeScript
export interface MarketplaceListing {
|
|
id: number;
|
|
identifier?: string;
|
|
username: string;
|
|
name: string;
|
|
number: string;
|
|
title: string;
|
|
url: string;
|
|
description: string;
|
|
}
|
|
|
|
export enum MarketplaceEvents {
|
|
ADD_LISTING = 'npwd:addListing',
|
|
ADD_LISTING_SUCCESS = 'npwd:addListingSuccess',
|
|
FETCH_LISTING = 'npwd:fetchAllListings',
|
|
SEND_LISTING = 'npwd:sendAllListings',
|
|
ACTION_RESULT = 'npwd:selloutActionResult',
|
|
DELETE_LISTING = 'npwd:marketplaceDeleteListing',
|
|
DELETE_LISTING_SUCCESS = 'npwd:marketplaceDeleteListingSuccess',
|
|
REPORT_LISTING = 'npwd:reportListing',
|
|
REPORT_LISTING_SUCCESS = 'npwd:reportListingSuccess',
|
|
REPORT_LISTING_SUCESS = 'npwd:reportListingFailed',
|
|
}
|