@global-torque/domain-types 0.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/LICENSE +21 -0
- package/NOTICE.md +11 -0
- package/README.md +64 -0
- package/SECURITY.md +9 -0
- package/SUPPORT.md +6 -0
- package/package.json +67 -0
- package/src/accreditationTypes.ts +22 -0
- package/src/analyticsTypes.ts +184 -0
- package/src/authConstants.ts +16 -0
- package/src/authTypes.ts +155 -0
- package/src/blogTypes.ts +30 -0
- package/src/contentTypes.ts +37 -0
- package/src/dashboardTypes.ts +9 -0
- package/src/distributionsTypes.ts +49 -0
- package/src/esignTypes.ts +11 -0
- package/src/evmTypes.ts +525 -0
- package/src/filerTypes.ts +60 -0
- package/src/index.ts +5 -0
- package/src/investmentTypes.ts +204 -0
- package/src/kycTypes.ts +44 -0
- package/src/notificationsTypes.ts +95 -0
- package/src/offerCardTypes.ts +48 -0
- package/src/offerTypes.ts +275 -0
- package/src/onboardingTypes.ts +55 -0
- package/src/profileTypes.ts +9 -0
- package/src/profilesTypes.ts +344 -0
- package/src/settingsTypes.ts +20 -0
- package/src/vaultTypes.ts +250 -0
- package/src/walletTypes.ts +147 -0
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
export const WalletTransactionStatusTypes = {
|
|
2
|
+
processed: 'processed',
|
|
3
|
+
pending: 'pending',
|
|
4
|
+
failed: 'failed',
|
|
5
|
+
cancelled: 'cancelled',
|
|
6
|
+
wait: 'wait',
|
|
7
|
+
} as const;
|
|
8
|
+
|
|
9
|
+
export type WalletTransactionStatusTypes =
|
|
10
|
+
typeof WalletTransactionStatusTypes[keyof typeof WalletTransactionStatusTypes];
|
|
11
|
+
|
|
12
|
+
export const WalletAddTransactionTypes = {
|
|
13
|
+
withdrawal: 'withdrawal',
|
|
14
|
+
deposit: 'deposit',
|
|
15
|
+
investment: 'investment',
|
|
16
|
+
distribution: 'distribution',
|
|
17
|
+
fee: 'fee',
|
|
18
|
+
market: 'market',
|
|
19
|
+
sale: 'sale',
|
|
20
|
+
return: 'return',
|
|
21
|
+
} as const;
|
|
22
|
+
|
|
23
|
+
export type WalletAddTransactionTypes =
|
|
24
|
+
typeof WalletAddTransactionTypes[keyof typeof WalletAddTransactionTypes];
|
|
25
|
+
|
|
26
|
+
export const WalletTypes = {
|
|
27
|
+
created: 'created',
|
|
28
|
+
error: 'error',
|
|
29
|
+
verified: 'verified',
|
|
30
|
+
error_retry: 'error_retry',
|
|
31
|
+
error_document: 'error_document',
|
|
32
|
+
error_pending: 'error_pending',
|
|
33
|
+
error_suspended: 'error_suspended',
|
|
34
|
+
} as const;
|
|
35
|
+
|
|
36
|
+
export type WalletTypes = typeof WalletTypes[keyof typeof WalletTypes];
|
|
37
|
+
|
|
38
|
+
export interface IFundingSourceDataResponse {
|
|
39
|
+
id: number;
|
|
40
|
+
name: string;
|
|
41
|
+
type: string;
|
|
42
|
+
status: string;
|
|
43
|
+
bank_name: string;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export interface IFundingSourceDataFormatted {
|
|
47
|
+
id: number;
|
|
48
|
+
name: string;
|
|
49
|
+
type: string;
|
|
50
|
+
status: string;
|
|
51
|
+
bank_name: string;
|
|
52
|
+
last4?: string;
|
|
53
|
+
isAttachmentMethodManual: boolean;
|
|
54
|
+
isAttachmentMethodAutomatic: boolean;
|
|
55
|
+
isStatusPending: boolean;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export interface IWalletDataResponse {
|
|
59
|
+
id: number;
|
|
60
|
+
status: string;
|
|
61
|
+
balance: number;
|
|
62
|
+
pending_incoming_balance: number;
|
|
63
|
+
pending_outcoming_balance: number;
|
|
64
|
+
funding_source: IFundingSourceDataResponse[];
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export interface IWalletDataFormatted {
|
|
68
|
+
id: number;
|
|
69
|
+
status: string;
|
|
70
|
+
balance: number;
|
|
71
|
+
pending_incoming_balance: number;
|
|
72
|
+
pending_outcoming_balance: number;
|
|
73
|
+
funding_source: IFundingSourceDataFormatted[];
|
|
74
|
+
isSomeLinkedBankAccount: boolean;
|
|
75
|
+
isWalletStatusCreated: boolean;
|
|
76
|
+
isWalletStatusVerified: boolean;
|
|
77
|
+
isWalletStatusError: boolean;
|
|
78
|
+
isWalletStatusErrorRetry: boolean;
|
|
79
|
+
isWalletStatusErrorDocument: boolean;
|
|
80
|
+
isWalletStatusErrorPending: boolean;
|
|
81
|
+
isWalletStatusErrorSuspended: boolean;
|
|
82
|
+
isWalletStatusAnyError: boolean;
|
|
83
|
+
currentBalance: number;
|
|
84
|
+
currentBalanceFormatted?: string;
|
|
85
|
+
pendingIncomingBalance: number;
|
|
86
|
+
pendingIncomingBalanceFormatted?: string;
|
|
87
|
+
pendingOutcomingBalance: number;
|
|
88
|
+
pendingOutcomingBalanceFormatted?: string;
|
|
89
|
+
totalBalance: number;
|
|
90
|
+
totalBalanceFormatted?: string;
|
|
91
|
+
isCurrentBalanceZero: boolean;
|
|
92
|
+
isTotalBalanceZero: boolean;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
export interface ITransactionDataResponse {
|
|
96
|
+
id: number;
|
|
97
|
+
source_wallet_id: number;
|
|
98
|
+
dest_wallet_id: number;
|
|
99
|
+
entity_id: number;
|
|
100
|
+
status: WalletTransactionStatusTypes;
|
|
101
|
+
type: WalletAddTransactionTypes;
|
|
102
|
+
amount: number;
|
|
103
|
+
updated_at: string;
|
|
104
|
+
created_at: string;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
export interface ITransactionDataFormatted extends ITransactionDataResponse {
|
|
108
|
+
amountFormatted?: string;
|
|
109
|
+
tagColor?: string | null;
|
|
110
|
+
updated_at_date?: string;
|
|
111
|
+
updated_at_time?: string;
|
|
112
|
+
submited_at_date?: string;
|
|
113
|
+
submited_at_time?: string;
|
|
114
|
+
isTypeDeposit?: boolean;
|
|
115
|
+
isTypeInvestment?: boolean;
|
|
116
|
+
typeFormatted?: string;
|
|
117
|
+
statusFormated?: {
|
|
118
|
+
text: string;
|
|
119
|
+
tooltip?: string;
|
|
120
|
+
};
|
|
121
|
+
txShort: string;
|
|
122
|
+
typeDisplay: string;
|
|
123
|
+
description: string;
|
|
124
|
+
scanTxUrl: string;
|
|
125
|
+
submitted_at_date?: string;
|
|
126
|
+
submitted_at_time?: string;
|
|
127
|
+
statusText?: string;
|
|
128
|
+
statusColor?: string;
|
|
129
|
+
transaction_tx?: string;
|
|
130
|
+
networkFormatted?: string;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
export interface IPlaidLinkTokenResponse {
|
|
134
|
+
expiration: string;
|
|
135
|
+
link_token: string;
|
|
136
|
+
request_id: string;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
export interface IPlaidLinkExchange {
|
|
140
|
+
accounts: [];
|
|
141
|
+
access_token: string;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
export interface IPlaidLinkProcess {
|
|
145
|
+
additional: unknown;
|
|
146
|
+
token: string;
|
|
147
|
+
}
|