ggez-banking-sdk 0.0.1 → 0.0.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/dist/bank-system/constants/enum.d.ts +1057 -0
- package/dist/bank-system/constants/enum.js +1110 -0
- package/dist/bank-system/constants/index.d.ts +1 -0
- package/dist/bank-system/constants/index.js +17 -0
- package/dist/bank-system/content/accountCurrencies.d.ts +12 -0
- package/dist/bank-system/content/accountCurrencies.js +37 -0
- package/dist/bank-system/content/countries.d.ts +24 -0
- package/dist/bank-system/content/countries.js +6472 -0
- package/dist/bank-system/content/currencies.d.ts +32 -0
- package/dist/bank-system/content/currencies.js +5836 -0
- package/dist/bank-system/content/index.d.ts +4 -0
- package/dist/bank-system/content/index.js +12 -0
- package/dist/bank-system/content/state.d.ts +6 -0
- package/dist/bank-system/content/state.js +350 -0
- package/dist/bank-system/helper/data.d.ts +46 -0
- package/dist/bank-system/helper/data.js +57 -0
- package/dist/bank-system/helper/dataStructure.d.ts +3220 -0
- package/dist/bank-system/helper/dataStructure.js +1051 -0
- package/dist/bank-system/helper/index.d.ts +28 -0
- package/dist/bank-system/helper/index.js +394 -0
- package/dist/bank-system/interfaces/accountInterface.d.ts +26 -0
- package/dist/bank-system/interfaces/accountInterface.js +2 -0
- package/dist/bank-system/interfaces/bankingSystemInterface.d.ts +306 -0
- package/dist/bank-system/interfaces/bankingSystemInterface.js +2 -0
- package/dist/bank-system/interfaces/deviceInterface.d.ts +34 -0
- package/dist/bank-system/interfaces/deviceInterface.js +2 -0
- package/dist/bank-system/interfaces/index.d.ts +4 -0
- package/dist/bank-system/interfaces/index.js +20 -0
- package/dist/bank-system/interfaces/interface.d.ts +460 -0
- package/dist/bank-system/interfaces/interface.js +2 -0
- package/dist/bank-system/interfaces/organizationInterface.d.ts +118 -0
- package/dist/bank-system/interfaces/organizationInterface.js +2 -0
- package/dist/bank-system/interfaces/signInterface.d.ts +89 -0
- package/dist/bank-system/interfaces/signInterface.js +2 -0
- package/dist/bank-system/interfaces/transactionInterface.d.ts +17 -0
- package/dist/bank-system/interfaces/transactionInterface.js +2 -0
- package/dist/bank-system/restApi/index.d.ts +8 -0
- package/dist/bank-system/restApi/index.js +41 -0
- package/dist/bank-system/services/account.d.ts +33 -0
- package/dist/bank-system/services/account.js +129 -0
- package/dist/bank-system/services/addresses.d.ts +48 -0
- package/dist/bank-system/services/addresses.js +130 -0
- package/dist/bank-system/services/auth.d.ts +71 -0
- package/dist/bank-system/services/auth.js +250 -0
- package/dist/bank-system/services/bankAccount.d.ts +48 -0
- package/dist/bank-system/services/bankAccount.js +131 -0
- package/dist/bank-system/services/device.d.ts +46 -0
- package/dist/bank-system/services/device.js +212 -0
- package/dist/bank-system/services/document.d.ts +15 -0
- package/dist/bank-system/services/document.js +58 -0
- package/dist/bank-system/services/email.d.ts +70 -0
- package/dist/bank-system/services/email.js +175 -0
- package/dist/bank-system/services/history.d.ts +14 -0
- package/dist/bank-system/services/history.js +55 -0
- package/dist/bank-system/services/identification.d.ts +37 -0
- package/dist/bank-system/services/identification.js +107 -0
- package/dist/bank-system/services/index.d.ts +17 -0
- package/dist/bank-system/services/index.js +35 -0
- package/dist/bank-system/services/organization.d.ts +28 -0
- package/dist/bank-system/services/organization.js +129 -0
- package/dist/bank-system/services/personalInfo.d.ts +26 -0
- package/dist/bank-system/services/personalInfo.js +91 -0
- package/dist/bank-system/services/phone.d.ts +70 -0
- package/dist/bank-system/services/phone.js +175 -0
- package/dist/bank-system/services/security.d.ts +114 -0
- package/dist/bank-system/services/security.js +267 -0
- package/dist/bank-system/services/token.d.ts +11 -0
- package/dist/bank-system/services/token.js +83 -0
- package/dist/bank-system/services/transaction.d.ts +9 -0
- package/dist/bank-system/services/transaction.js +62 -0
- package/dist/bank-system/services/verifyAndConfirm.d.ts +116 -0
- package/dist/bank-system/services/verifyAndConfirm.js +308 -0
- package/dist/bank-system/utils/chainAddressMasking.d.ts +2 -0
- package/dist/bank-system/utils/chainAddressMasking.js +12 -0
- package/dist/bank-system/utils/copyText.d.ts +5 -0
- package/dist/bank-system/utils/copyText.js +22 -0
- package/dist/bank-system/utils/countryAndCurrencyData.d.ts +11 -0
- package/dist/bank-system/utils/countryAndCurrencyData.js +22 -0
- package/dist/bank-system/utils/enumToOption.d.ts +4 -0
- package/dist/bank-system/utils/enumToOption.js +18 -0
- package/dist/bank-system/utils/fillDeviceDetails.d.ts +23 -0
- package/dist/bank-system/utils/fillDeviceDetails.js +44 -0
- package/dist/bank-system/utils/generateOneLiner.d.ts +1 -0
- package/dist/bank-system/utils/generateOneLiner.js +17 -0
- package/dist/bank-system/utils/generateSourceId.d.ts +1 -0
- package/dist/bank-system/utils/generateSourceId.js +13 -0
- package/dist/bank-system/utils/getCountryName.d.ts +1 -0
- package/dist/bank-system/utils/getCountryName.js +16 -0
- package/dist/bank-system/utils/getEnumName.d.ts +1 -0
- package/dist/bank-system/utils/getEnumName.js +10 -0
- package/dist/bank-system/utils/getStateByCountryCode.d.ts +1 -0
- package/dist/bank-system/utils/getStateByCountryCode.js +15 -0
- package/dist/bank-system/utils/handleEncryption/decryptData.d.ts +15 -0
- package/dist/bank-system/utils/handleEncryption/decryptData.js +78 -0
- package/dist/bank-system/utils/handleEncryption/encryptData.d.ts +2 -0
- package/dist/bank-system/utils/handleEncryption/encryptData.js +37 -0
- package/dist/bank-system/utils/handleEncryption/index.d.ts +4 -0
- package/dist/bank-system/utils/handleEncryption/index.js +12 -0
- package/dist/bank-system/utils/handleEncryption/key.d.ts +13 -0
- package/dist/bank-system/utils/handleEncryption/key.js +40 -0
- package/dist/bank-system/utils/index.d.ts +15 -0
- package/dist/bank-system/utils/index.js +42 -0
- package/dist/bank-system/utils/info.d.ts +8 -0
- package/dist/bank-system/utils/info.js +79 -0
- package/dist/bank-system/utils/maskingFunction.d.ts +1 -0
- package/dist/bank-system/utils/maskingFunction.js +28 -0
- package/dist/bank-system/utils/regex.d.ts +106 -0
- package/dist/bank-system/utils/regex.js +110 -0
- package/dist/bank-system/utils/sortUserInfo.d.ts +1 -0
- package/dist/bank-system/utils/sortUserInfo.js +43 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.js +54 -0
- package/dist/keplr-config/chainInfo.d.ts +8 -0
- package/dist/keplr-config/chainInfo.js +111 -0
- package/package.json +1 -1
|
@@ -0,0 +1,460 @@
|
|
|
1
|
+
export type UserInfo = {
|
|
2
|
+
result: IResult;
|
|
3
|
+
info: IInfo;
|
|
4
|
+
personal_info: IPersonalInfo;
|
|
5
|
+
address: IAddress;
|
|
6
|
+
addresses: IAddresses[];
|
|
7
|
+
email: IEmail[];
|
|
8
|
+
phone: IPhone[];
|
|
9
|
+
security: ISecurity;
|
|
10
|
+
preferences: IPreferences;
|
|
11
|
+
identification: IIdentification[];
|
|
12
|
+
bank_account: ibankAccount[];
|
|
13
|
+
credit_card: any;
|
|
14
|
+
notification: any;
|
|
15
|
+
documents: any;
|
|
16
|
+
currency: ICurrency[];
|
|
17
|
+
credit_limit: any;
|
|
18
|
+
account: IAccount[];
|
|
19
|
+
group: any;
|
|
20
|
+
terms_conditions: ITermsConditions;
|
|
21
|
+
device_info: IDeviceInfo;
|
|
22
|
+
device: IDevice[] | null;
|
|
23
|
+
device_history: IDeviceHistory[] | null;
|
|
24
|
+
commerce: any;
|
|
25
|
+
external_auth: any;
|
|
26
|
+
validation_data: any;
|
|
27
|
+
relationship: any;
|
|
28
|
+
geo_coordinates: IGeoCoordinates | null;
|
|
29
|
+
custom_field: string;
|
|
30
|
+
history: string;
|
|
31
|
+
access_rule: string;
|
|
32
|
+
ticket: any;
|
|
33
|
+
general_requirements: IGeneralRequirements;
|
|
34
|
+
organization: any;
|
|
35
|
+
notes: any;
|
|
36
|
+
last_activity: ILastActivity;
|
|
37
|
+
authentication: string | null;
|
|
38
|
+
authentication_data: IAuthenticationData[] | null;
|
|
39
|
+
validate: string;
|
|
40
|
+
function_code: string;
|
|
41
|
+
time_zone: string;
|
|
42
|
+
time_zone_name: string;
|
|
43
|
+
response_time: string;
|
|
44
|
+
};
|
|
45
|
+
export interface InfoChain {
|
|
46
|
+
isKeplerConnect: boolean;
|
|
47
|
+
address: string;
|
|
48
|
+
uggez: number;
|
|
49
|
+
uggezOne: number;
|
|
50
|
+
}
|
|
51
|
+
export interface InfoUser {
|
|
52
|
+
name: string;
|
|
53
|
+
email: string;
|
|
54
|
+
avatar: string;
|
|
55
|
+
}
|
|
56
|
+
export interface Data {
|
|
57
|
+
infoChain: any;
|
|
58
|
+
infoUser: InfoUser;
|
|
59
|
+
}
|
|
60
|
+
export interface AppState {
|
|
61
|
+
data: Data[];
|
|
62
|
+
error: string | null;
|
|
63
|
+
}
|
|
64
|
+
export interface IDevice {
|
|
65
|
+
id: number;
|
|
66
|
+
type: number;
|
|
67
|
+
brand: string;
|
|
68
|
+
os: string;
|
|
69
|
+
unique_id: null;
|
|
70
|
+
installation_id: string;
|
|
71
|
+
extended_info: {
|
|
72
|
+
sim_info: null;
|
|
73
|
+
culture_info: null;
|
|
74
|
+
user_agent: string;
|
|
75
|
+
fingerprint: string;
|
|
76
|
+
cpu: string;
|
|
77
|
+
system_language: string;
|
|
78
|
+
};
|
|
79
|
+
status: number;
|
|
80
|
+
verification_status: number;
|
|
81
|
+
is_online: null | boolean;
|
|
82
|
+
encryption_key: string;
|
|
83
|
+
application_version: null | string;
|
|
84
|
+
serial_number: null | string;
|
|
85
|
+
source_ip_address: null | string;
|
|
86
|
+
geo_coordinates: null | string;
|
|
87
|
+
original_source_id: string;
|
|
88
|
+
server_date: string;
|
|
89
|
+
date_utc: string;
|
|
90
|
+
client_date: string;
|
|
91
|
+
update_date_utc: string;
|
|
92
|
+
client_time_zone: string;
|
|
93
|
+
}
|
|
94
|
+
export interface IDeviceHistory {
|
|
95
|
+
id: number;
|
|
96
|
+
type: number;
|
|
97
|
+
brand: string;
|
|
98
|
+
os: string;
|
|
99
|
+
extended_info: {
|
|
100
|
+
sim_info: null;
|
|
101
|
+
culture_info: null;
|
|
102
|
+
user_agent: string;
|
|
103
|
+
fingerprint: string;
|
|
104
|
+
cpu: string;
|
|
105
|
+
system_language: string;
|
|
106
|
+
};
|
|
107
|
+
activity_type: number;
|
|
108
|
+
application_version: null | string;
|
|
109
|
+
serial_number: null | string;
|
|
110
|
+
source_ip_address: null | string;
|
|
111
|
+
geo_coordinates: null | string;
|
|
112
|
+
server_date: string;
|
|
113
|
+
date_utc: string;
|
|
114
|
+
client_date: string;
|
|
115
|
+
update_date_utc: string;
|
|
116
|
+
client_time_zone: string;
|
|
117
|
+
}
|
|
118
|
+
export interface ISecurity {
|
|
119
|
+
trust_level: string;
|
|
120
|
+
password: string;
|
|
121
|
+
security_code: string | null;
|
|
122
|
+
signup_code: string | null;
|
|
123
|
+
secret_question_1: string;
|
|
124
|
+
secret_answer_1: string | null;
|
|
125
|
+
secret_question_2: string;
|
|
126
|
+
secret_answer_2: string | null;
|
|
127
|
+
}
|
|
128
|
+
export interface IAuthenticationData {
|
|
129
|
+
code: string | null;
|
|
130
|
+
is_enabled: 0 | 1;
|
|
131
|
+
issuer: string;
|
|
132
|
+
manual_entry_key: string | null;
|
|
133
|
+
qr_image_url: string | null;
|
|
134
|
+
secret_key: string | null;
|
|
135
|
+
title: string;
|
|
136
|
+
type: number;
|
|
137
|
+
}
|
|
138
|
+
export interface IPreferences {
|
|
139
|
+
preferred_language_code: string;
|
|
140
|
+
enable_facebook_account: string;
|
|
141
|
+
enable_promotion_notification: string;
|
|
142
|
+
enable_email_notification: string;
|
|
143
|
+
enable_sms_notification: string;
|
|
144
|
+
enable_push_notification: string;
|
|
145
|
+
enable_device_authentication: string;
|
|
146
|
+
time_zone: string;
|
|
147
|
+
time_zone_name: string;
|
|
148
|
+
is_agent: string;
|
|
149
|
+
is_reseller: string;
|
|
150
|
+
is_seller: string;
|
|
151
|
+
}
|
|
152
|
+
export interface IPhone {
|
|
153
|
+
id: string;
|
|
154
|
+
type: string;
|
|
155
|
+
country_code: string;
|
|
156
|
+
number: string;
|
|
157
|
+
is_primary: string;
|
|
158
|
+
status: string;
|
|
159
|
+
verification_status: string;
|
|
160
|
+
original_source_id: string;
|
|
161
|
+
server_date: string;
|
|
162
|
+
date_utc: string;
|
|
163
|
+
client_date: string;
|
|
164
|
+
update_date_utc: string;
|
|
165
|
+
custom_field: string;
|
|
166
|
+
}
|
|
167
|
+
export interface IIdentification {
|
|
168
|
+
result: string;
|
|
169
|
+
id: string;
|
|
170
|
+
type: string;
|
|
171
|
+
country_of_issue: string;
|
|
172
|
+
country_of_residence: string;
|
|
173
|
+
number: string;
|
|
174
|
+
issue_date: string;
|
|
175
|
+
expiry_date: string;
|
|
176
|
+
status: string;
|
|
177
|
+
verification_status: string;
|
|
178
|
+
original_source_id: string;
|
|
179
|
+
server_date: string;
|
|
180
|
+
date_utc: string;
|
|
181
|
+
client_date: string;
|
|
182
|
+
update_date_utc: string;
|
|
183
|
+
extra_data: string;
|
|
184
|
+
custom_field: string;
|
|
185
|
+
}
|
|
186
|
+
export interface IExchangeRates {
|
|
187
|
+
base_currency: string;
|
|
188
|
+
currency: string;
|
|
189
|
+
date: string;
|
|
190
|
+
rate: number;
|
|
191
|
+
service_provider: number;
|
|
192
|
+
}
|
|
193
|
+
export type CurrencyState = {
|
|
194
|
+
currency: string;
|
|
195
|
+
currencies: {
|
|
196
|
+
label: string;
|
|
197
|
+
value: string;
|
|
198
|
+
}[];
|
|
199
|
+
prefixCurrency: string;
|
|
200
|
+
exchangeRates: IExchangeRates[] | null;
|
|
201
|
+
};
|
|
202
|
+
export type UserSliceType = {
|
|
203
|
+
user: any;
|
|
204
|
+
};
|
|
205
|
+
export interface IEmail {
|
|
206
|
+
id: number | null;
|
|
207
|
+
type: number | null;
|
|
208
|
+
address: string;
|
|
209
|
+
is_primary: number | null;
|
|
210
|
+
status: number | null;
|
|
211
|
+
original_source_id: string;
|
|
212
|
+
date_utc: string;
|
|
213
|
+
server_date: string;
|
|
214
|
+
client_date: string;
|
|
215
|
+
update_date_utc: string;
|
|
216
|
+
custom_field: any;
|
|
217
|
+
verification_status: number | null;
|
|
218
|
+
}
|
|
219
|
+
export interface IResult {
|
|
220
|
+
code: string;
|
|
221
|
+
message: string;
|
|
222
|
+
friendly_message: string;
|
|
223
|
+
}
|
|
224
|
+
export interface IInfo {
|
|
225
|
+
id: string;
|
|
226
|
+
program_id: string;
|
|
227
|
+
status: string;
|
|
228
|
+
type: string;
|
|
229
|
+
risk_rate: string;
|
|
230
|
+
server_date: string;
|
|
231
|
+
date_utc: string;
|
|
232
|
+
client_date: string;
|
|
233
|
+
source_time_zone: string;
|
|
234
|
+
original_source_id: string;
|
|
235
|
+
}
|
|
236
|
+
export interface IPersonalInfo {
|
|
237
|
+
title: string;
|
|
238
|
+
first_name: string;
|
|
239
|
+
last_name: string;
|
|
240
|
+
nick_name: string;
|
|
241
|
+
job_title: string;
|
|
242
|
+
gender: string;
|
|
243
|
+
date_of_birth: string;
|
|
244
|
+
verification_status: string;
|
|
245
|
+
picture: string;
|
|
246
|
+
custom_field: string;
|
|
247
|
+
}
|
|
248
|
+
export interface IAddress {
|
|
249
|
+
type: string;
|
|
250
|
+
is_billing: number;
|
|
251
|
+
address_line1: string;
|
|
252
|
+
address_line2: string;
|
|
253
|
+
postal_zip_code: string;
|
|
254
|
+
country_code: string;
|
|
255
|
+
state_region: string;
|
|
256
|
+
city_town: string;
|
|
257
|
+
status: string;
|
|
258
|
+
verification_status: string;
|
|
259
|
+
original_source_id: string;
|
|
260
|
+
server_date: string;
|
|
261
|
+
date_utc: string;
|
|
262
|
+
client_date: string;
|
|
263
|
+
update_date_utc: string;
|
|
264
|
+
custom_field: string | null;
|
|
265
|
+
}
|
|
266
|
+
export interface IAddresses {
|
|
267
|
+
id: string;
|
|
268
|
+
type: string;
|
|
269
|
+
is_primary: string;
|
|
270
|
+
is_billing: number;
|
|
271
|
+
address_line1: string;
|
|
272
|
+
address_line2: string;
|
|
273
|
+
postal_zip_code: string;
|
|
274
|
+
country_code: string;
|
|
275
|
+
state_region: string;
|
|
276
|
+
city_town: string;
|
|
277
|
+
status: string;
|
|
278
|
+
verification_status: string;
|
|
279
|
+
original_source_id: string;
|
|
280
|
+
server_date: string;
|
|
281
|
+
date_utc: string;
|
|
282
|
+
client_date: string;
|
|
283
|
+
update_date_utc: string;
|
|
284
|
+
custom_field: string;
|
|
285
|
+
}
|
|
286
|
+
export interface ibankAccount {
|
|
287
|
+
id: string;
|
|
288
|
+
linked_account_id: string;
|
|
289
|
+
name: string;
|
|
290
|
+
beneficiary_name: string;
|
|
291
|
+
holder_name: string;
|
|
292
|
+
country_code: string;
|
|
293
|
+
currency_code: string;
|
|
294
|
+
type: string;
|
|
295
|
+
payment_type: string;
|
|
296
|
+
beneficiary_type: string;
|
|
297
|
+
number: string;
|
|
298
|
+
swift_code: string;
|
|
299
|
+
iban: string;
|
|
300
|
+
transit_number: string;
|
|
301
|
+
institution_number: string;
|
|
302
|
+
routing_number: string;
|
|
303
|
+
phone_id: string;
|
|
304
|
+
address_id: string;
|
|
305
|
+
bank_address: string;
|
|
306
|
+
state_region: string;
|
|
307
|
+
is_primary: string;
|
|
308
|
+
status: string;
|
|
309
|
+
verification_status: string;
|
|
310
|
+
city_town: string;
|
|
311
|
+
postal_zip_code: string;
|
|
312
|
+
extended_data: string;
|
|
313
|
+
sort_code: string;
|
|
314
|
+
original_source_id: string;
|
|
315
|
+
server_date: string;
|
|
316
|
+
date_utc: string;
|
|
317
|
+
client_date: string;
|
|
318
|
+
update_date_utc: string;
|
|
319
|
+
service_provider: string;
|
|
320
|
+
custom_field: string;
|
|
321
|
+
}
|
|
322
|
+
export interface IAccount {
|
|
323
|
+
result: string;
|
|
324
|
+
info: {
|
|
325
|
+
activation_date_time: string;
|
|
326
|
+
available_balance: string;
|
|
327
|
+
balance: string;
|
|
328
|
+
bin_id: string;
|
|
329
|
+
card_image: null;
|
|
330
|
+
client_date: null;
|
|
331
|
+
currency: string;
|
|
332
|
+
date_utc: string;
|
|
333
|
+
external_available_balance: null;
|
|
334
|
+
external_balance: null;
|
|
335
|
+
id: number;
|
|
336
|
+
is_multi_currency: null;
|
|
337
|
+
name: string;
|
|
338
|
+
nick_name: null;
|
|
339
|
+
number: string;
|
|
340
|
+
original_source_id: string;
|
|
341
|
+
program_id: number;
|
|
342
|
+
replace_account: null;
|
|
343
|
+
security: null;
|
|
344
|
+
server_date: string;
|
|
345
|
+
source_time_zone: string;
|
|
346
|
+
status: string;
|
|
347
|
+
supplied_id: number;
|
|
348
|
+
type: string;
|
|
349
|
+
usage_status: string;
|
|
350
|
+
user_id: number;
|
|
351
|
+
user_name: null;
|
|
352
|
+
account_id: number;
|
|
353
|
+
};
|
|
354
|
+
chain_data: any;
|
|
355
|
+
limits: string;
|
|
356
|
+
archive: string;
|
|
357
|
+
custom_field: string;
|
|
358
|
+
geo_coordinates: string;
|
|
359
|
+
options: string;
|
|
360
|
+
bank_account: string;
|
|
361
|
+
history: string;
|
|
362
|
+
fulfilment: string;
|
|
363
|
+
access_rule: string;
|
|
364
|
+
provision: string;
|
|
365
|
+
credit_limit: string;
|
|
366
|
+
tokenization: string;
|
|
367
|
+
notes: string;
|
|
368
|
+
last_activity: string;
|
|
369
|
+
authentication: string;
|
|
370
|
+
validate: string;
|
|
371
|
+
function_code: string;
|
|
372
|
+
time_zone: string;
|
|
373
|
+
time_zone_name: string;
|
|
374
|
+
response_time: string;
|
|
375
|
+
}
|
|
376
|
+
export interface ICurrency {
|
|
377
|
+
id: string;
|
|
378
|
+
code: string;
|
|
379
|
+
number: string;
|
|
380
|
+
is_primary: string;
|
|
381
|
+
}
|
|
382
|
+
export interface ITermsConditions {
|
|
383
|
+
id: string;
|
|
384
|
+
acceptance: string;
|
|
385
|
+
title: string;
|
|
386
|
+
version_name: string;
|
|
387
|
+
server_date: string;
|
|
388
|
+
}
|
|
389
|
+
export interface IDeviceInfo {
|
|
390
|
+
id: string;
|
|
391
|
+
type: string;
|
|
392
|
+
brand: string;
|
|
393
|
+
os: string;
|
|
394
|
+
unique_id: string;
|
|
395
|
+
installation_id: string;
|
|
396
|
+
extended_info: string;
|
|
397
|
+
status: string;
|
|
398
|
+
verification_status: string;
|
|
399
|
+
encryption_key: string;
|
|
400
|
+
application_version: string;
|
|
401
|
+
serial_number: string;
|
|
402
|
+
source_ip_address: string;
|
|
403
|
+
geo_coordinates: string;
|
|
404
|
+
original_source_id: string;
|
|
405
|
+
server_date: string;
|
|
406
|
+
date_utc: string;
|
|
407
|
+
client_date: string;
|
|
408
|
+
update_date_utc: string;
|
|
409
|
+
client_time_zone: string;
|
|
410
|
+
}
|
|
411
|
+
export interface IGeneralRequirements {
|
|
412
|
+
id: string;
|
|
413
|
+
entity: string;
|
|
414
|
+
entity_id: string;
|
|
415
|
+
verification_status: string;
|
|
416
|
+
name: string;
|
|
417
|
+
description: string;
|
|
418
|
+
notes: string;
|
|
419
|
+
}
|
|
420
|
+
export interface ILastActivity {
|
|
421
|
+
entity: string;
|
|
422
|
+
entity_id: string;
|
|
423
|
+
entity_data: string;
|
|
424
|
+
activity_type: string;
|
|
425
|
+
notes: {
|
|
426
|
+
user_notes: string;
|
|
427
|
+
admin_notes: string;
|
|
428
|
+
};
|
|
429
|
+
update_date_utc: string;
|
|
430
|
+
}
|
|
431
|
+
export interface ILoginResponse {
|
|
432
|
+
access_token: string;
|
|
433
|
+
device_id: string;
|
|
434
|
+
device_status: number;
|
|
435
|
+
device_verification_status: number;
|
|
436
|
+
expires_in: number;
|
|
437
|
+
installation_id: string;
|
|
438
|
+
ip_address: string;
|
|
439
|
+
jwt_token: string;
|
|
440
|
+
role_type: string;
|
|
441
|
+
token_type: string;
|
|
442
|
+
user_id: string;
|
|
443
|
+
user_type: string;
|
|
444
|
+
}
|
|
445
|
+
export interface IIPAddressAndLocation {
|
|
446
|
+
ip_address: string;
|
|
447
|
+
country: string;
|
|
448
|
+
city: string;
|
|
449
|
+
latitude: number;
|
|
450
|
+
longitude: number;
|
|
451
|
+
}
|
|
452
|
+
export interface IGeoCoordinates {
|
|
453
|
+
latitude: string;
|
|
454
|
+
longitude: string;
|
|
455
|
+
position_description: string;
|
|
456
|
+
}
|
|
457
|
+
export interface IGeoCoordinatesAndIPAddress {
|
|
458
|
+
geo_coordinates: IGeoCoordinates;
|
|
459
|
+
ip_address: string;
|
|
460
|
+
}
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import { IEmail, IPhone, IAddresses, IResult, IGeoCoordinates } from "./interface";
|
|
2
|
+
export interface CreateOrganizationInterface {
|
|
3
|
+
name: string;
|
|
4
|
+
localName: string;
|
|
5
|
+
organizationType: number;
|
|
6
|
+
establishedDate: string;
|
|
7
|
+
registrationNumber: string;
|
|
8
|
+
tradeLicenseNumber: string;
|
|
9
|
+
isBilling: number;
|
|
10
|
+
addressLine1: string;
|
|
11
|
+
addressLine2?: string;
|
|
12
|
+
postalZipCode: string;
|
|
13
|
+
countryCode: string;
|
|
14
|
+
stateRegion: string;
|
|
15
|
+
cityTown: string;
|
|
16
|
+
geoCoordinates?: IGeoCoordinates;
|
|
17
|
+
}
|
|
18
|
+
export interface UpdateOrganizationInterface {
|
|
19
|
+
name: string;
|
|
20
|
+
localName: string;
|
|
21
|
+
organizationType: number;
|
|
22
|
+
status: number;
|
|
23
|
+
verificationStatus: number;
|
|
24
|
+
registrationNumber: string;
|
|
25
|
+
tradeLicenseNumber: string;
|
|
26
|
+
addressId: string;
|
|
27
|
+
isBilling: number;
|
|
28
|
+
addressLine1: string;
|
|
29
|
+
addressLine2?: string;
|
|
30
|
+
postalZipCode: string;
|
|
31
|
+
countryCode: string;
|
|
32
|
+
stateRegion: string;
|
|
33
|
+
cityTown: string;
|
|
34
|
+
geoCoordinates?: IGeoCoordinates;
|
|
35
|
+
}
|
|
36
|
+
export interface DeleteOrganizationInterface {
|
|
37
|
+
}
|
|
38
|
+
export interface CreateDocumentOrganizationInterface {
|
|
39
|
+
subject: string;
|
|
40
|
+
attachment: any;
|
|
41
|
+
geoCoordinates?: IGeoCoordinates;
|
|
42
|
+
}
|
|
43
|
+
export interface IOrganization {
|
|
44
|
+
result: IResult;
|
|
45
|
+
info: IOrganizationInfo;
|
|
46
|
+
details: IDetails;
|
|
47
|
+
address: IAddresses[];
|
|
48
|
+
email?: IEmail[];
|
|
49
|
+
phone?: IPhone[];
|
|
50
|
+
social_media?: any[];
|
|
51
|
+
ownership_json?: string;
|
|
52
|
+
classification?: any;
|
|
53
|
+
working_hours?: any;
|
|
54
|
+
json?: string;
|
|
55
|
+
geo_coordinates?: IGeoCoordinates;
|
|
56
|
+
history?: any[];
|
|
57
|
+
relationship?: IRelationship[];
|
|
58
|
+
documents?: IDocumentData[];
|
|
59
|
+
users?: any[];
|
|
60
|
+
accounts?: any[];
|
|
61
|
+
picture?: string[];
|
|
62
|
+
ExternalHostInfo?: any;
|
|
63
|
+
}
|
|
64
|
+
export interface IOrganizationInfo {
|
|
65
|
+
id: number;
|
|
66
|
+
program_id?: number;
|
|
67
|
+
entity?: number | null;
|
|
68
|
+
entity_id?: number | null;
|
|
69
|
+
name: string;
|
|
70
|
+
local_name: string;
|
|
71
|
+
status?: number | null;
|
|
72
|
+
verification_status?: number | null;
|
|
73
|
+
type: number;
|
|
74
|
+
server_date?: string | null;
|
|
75
|
+
formatted_server_date?: string | null;
|
|
76
|
+
date_utc?: string | null;
|
|
77
|
+
formatted_date_utc?: string | null;
|
|
78
|
+
client_date?: string | null;
|
|
79
|
+
formatted_client_date?: string | null;
|
|
80
|
+
source_time_zone?: string | null;
|
|
81
|
+
source_id?: string | null;
|
|
82
|
+
}
|
|
83
|
+
export interface IDetails {
|
|
84
|
+
established_date?: string | null;
|
|
85
|
+
formatted_established_date?: string | null;
|
|
86
|
+
size?: number | null;
|
|
87
|
+
registration_number: string;
|
|
88
|
+
trade_license_number: string;
|
|
89
|
+
}
|
|
90
|
+
export interface IRelationship {
|
|
91
|
+
id?: number;
|
|
92
|
+
entity?: number | null;
|
|
93
|
+
entity_id?: number | null;
|
|
94
|
+
entity_name?: string;
|
|
95
|
+
entity_email?: string;
|
|
96
|
+
entity_phone?: string;
|
|
97
|
+
on_entity?: number | null;
|
|
98
|
+
on_entity_id?: number | null;
|
|
99
|
+
on_entity_name?: string;
|
|
100
|
+
on_entity_email?: string;
|
|
101
|
+
on_entity_phone?: string;
|
|
102
|
+
type?: number | null;
|
|
103
|
+
status?: number | null;
|
|
104
|
+
verification_status?: number | null;
|
|
105
|
+
order?: number | null;
|
|
106
|
+
original_source_id: string;
|
|
107
|
+
formatted_server_date: string;
|
|
108
|
+
formatted_date_utc: string;
|
|
109
|
+
formatted_client_date: string;
|
|
110
|
+
formatted_update_date_utc: string;
|
|
111
|
+
custom_field: Record<string, any>;
|
|
112
|
+
}
|
|
113
|
+
export interface IDocumentData {
|
|
114
|
+
info?: any;
|
|
115
|
+
attachment?: any[];
|
|
116
|
+
custom_field?: Record<string, any>;
|
|
117
|
+
geo_coordinates?: any;
|
|
118
|
+
}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import { Dispatch, SetStateAction } from "react";
|
|
2
|
+
import { IGeoCoordinates } from "./interface";
|
|
3
|
+
export interface SignUpInterface {
|
|
4
|
+
firstName: string;
|
|
5
|
+
lastName: string;
|
|
6
|
+
userType: number;
|
|
7
|
+
dateOfBirth: string;
|
|
8
|
+
country: number;
|
|
9
|
+
state?: number;
|
|
10
|
+
gender: string | number;
|
|
11
|
+
email: string;
|
|
12
|
+
mobileNumber: string;
|
|
13
|
+
password: string;
|
|
14
|
+
currency: string;
|
|
15
|
+
mobileAuthenticationCode: string;
|
|
16
|
+
emailAuthenticationCode: string;
|
|
17
|
+
installationID: string;
|
|
18
|
+
deviceVerificationStatus: string;
|
|
19
|
+
securityCode: number;
|
|
20
|
+
referralCode: string;
|
|
21
|
+
referralCodeType: string;
|
|
22
|
+
geoCoordinates?: IGeoCoordinates;
|
|
23
|
+
}
|
|
24
|
+
export interface LoginRequestInterface {
|
|
25
|
+
email: string;
|
|
26
|
+
password: string;
|
|
27
|
+
installationId: string;
|
|
28
|
+
geoCoordinates?: IGeoCoordinates;
|
|
29
|
+
}
|
|
30
|
+
export interface LoginDeviceCredentialInterface {
|
|
31
|
+
user_id: string;
|
|
32
|
+
device_security_code: string;
|
|
33
|
+
device_id: string;
|
|
34
|
+
geoCoordinates?: IGeoCoordinates;
|
|
35
|
+
}
|
|
36
|
+
export interface SignUpWithGoogleInterface {
|
|
37
|
+
firstName: string;
|
|
38
|
+
lastName: string;
|
|
39
|
+
userType: number;
|
|
40
|
+
dateOfBirth: string;
|
|
41
|
+
country: number;
|
|
42
|
+
state?: number;
|
|
43
|
+
gender: number | string;
|
|
44
|
+
email: string;
|
|
45
|
+
mobileNumber: string;
|
|
46
|
+
password: string;
|
|
47
|
+
currency: string;
|
|
48
|
+
loginId: string;
|
|
49
|
+
token: string;
|
|
50
|
+
mobileAuthenticationCode: string;
|
|
51
|
+
picture: string;
|
|
52
|
+
installationID: string;
|
|
53
|
+
deviceVerificationStatus: string;
|
|
54
|
+
securityCode: number;
|
|
55
|
+
referralCode: string;
|
|
56
|
+
referralCodeType: string;
|
|
57
|
+
geoCoordinates?: IGeoCoordinates;
|
|
58
|
+
}
|
|
59
|
+
export interface LoginWithGoogleInterface {
|
|
60
|
+
token: string;
|
|
61
|
+
token_id?: string;
|
|
62
|
+
installationId: string;
|
|
63
|
+
geoCoordinates?: IGeoCoordinates;
|
|
64
|
+
}
|
|
65
|
+
export interface FormFieldInterface {
|
|
66
|
+
name?: any;
|
|
67
|
+
label?: any;
|
|
68
|
+
rules?: any;
|
|
69
|
+
type?: any;
|
|
70
|
+
inputType?: any;
|
|
71
|
+
options?: any;
|
|
72
|
+
placeholder?: any;
|
|
73
|
+
regx?: any;
|
|
74
|
+
msg?: any;
|
|
75
|
+
}
|
|
76
|
+
export interface SignUpFormInterface {
|
|
77
|
+
handelSubmit?: any;
|
|
78
|
+
loading?: boolean;
|
|
79
|
+
}
|
|
80
|
+
export type SignUpType = {
|
|
81
|
+
setIsEmailConfirmed: Dispatch<SetStateAction<any>>;
|
|
82
|
+
setIsMobileConfirmed: Dispatch<SetStateAction<any>>;
|
|
83
|
+
isEmailConfirmed: any;
|
|
84
|
+
isMobileConfirmed: any;
|
|
85
|
+
};
|
|
86
|
+
export interface LimitedTokenInterface {
|
|
87
|
+
installationId: string;
|
|
88
|
+
geoCoordinates?: IGeoCoordinates;
|
|
89
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { IGeoCoordinates } from "./interface";
|
|
2
|
+
export interface orderInterface {
|
|
3
|
+
processType: number | string;
|
|
4
|
+
variantType: string;
|
|
5
|
+
deliveryMobile: string;
|
|
6
|
+
deliveryEmail: string;
|
|
7
|
+
customerInfo: number;
|
|
8
|
+
adminNotesItems: string;
|
|
9
|
+
userNotesItems: string;
|
|
10
|
+
paymentMethodType: string;
|
|
11
|
+
paymentMethodAccountId: string;
|
|
12
|
+
transactionType: string;
|
|
13
|
+
adminNotes: string;
|
|
14
|
+
userNotes: string;
|
|
15
|
+
validate: string;
|
|
16
|
+
geoCoordinates?: IGeoCoordinates;
|
|
17
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as others from "axios";
|
|
2
|
+
import { Method } from "axios";
|
|
3
|
+
declare class ApiService {
|
|
4
|
+
bearer: (token: any) => string;
|
|
5
|
+
restApi: (baseURL: string, method: Method, endpoint: string, headers?: any, data?: any, params?: any) => Promise<others.AxiosResponse<any, any>>;
|
|
6
|
+
}
|
|
7
|
+
declare const RestApiService: ApiService;
|
|
8
|
+
export default RestApiService;
|