mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 14:38:45 +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
31 lines
727 B
TypeScript
31 lines
727 B
TypeScript
export interface IBankCredentials {
|
|
name: string;
|
|
balance: number;
|
|
}
|
|
|
|
export interface Transfer {
|
|
id: number;
|
|
targetID: number;
|
|
source: string;
|
|
type: string;
|
|
transferAmount: number;
|
|
message: string;
|
|
}
|
|
|
|
export interface ITransactions {
|
|
source: number;
|
|
type: string;
|
|
amount: number;
|
|
}
|
|
|
|
export enum BankEvents {
|
|
ADD_TRANSFER = 'npwd:addTransfer',
|
|
ADD_TRANSFER_SUCCESS = 'npwd:addTransferSuccess',
|
|
FETCH_TRANSACTIONS = 'npwd:fetchAllTransactions',
|
|
SEND_TRANSFERS = 'npwd:sendTransfers',
|
|
TRANSACTION_ALERT = 'npwd:bankTransactionAlert',
|
|
TRANSACTION_NOTIFICATION = 'npwd:bankTransactionNotification',
|
|
SEND_CREDENTIALS = 'npwd:sendBankCredentials',
|
|
GET_CREDENTIALS = 'npwd:getBankCredentials',
|
|
}
|