ggez-banking-sdk 0.0.63 → 0.0.66

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.
@@ -1,3 +1,5 @@
1
+ import { IOrganization } from "./organizationInterface";
2
+ import { CustomField } from "./signInterface";
1
3
  export type UserInfo = {
2
4
  result: IResult;
3
5
  info: IInfo;
@@ -9,7 +11,7 @@ export type UserInfo = {
9
11
  security: ISecurity;
10
12
  preferences: IPreferences;
11
13
  identification: IIdentification[];
12
- bank_account: ibankAccount[];
14
+ bank_account: IBankAccount[];
13
15
  credit_card: any;
14
16
  notification: any;
15
17
  documents: any;
@@ -25,13 +27,13 @@ export type UserInfo = {
25
27
  external_auth: any;
26
28
  validation_data: any;
27
29
  relationship: any;
28
- geo_coordinates: IGeoCoordinates | null;
29
- custom_field: string;
30
+ geo_coordinates: IGeoCoordinates | any;
31
+ custom_field: CustomField | null;
30
32
  history: string;
31
33
  access_rule: string;
32
34
  ticket: any;
33
35
  general_requirements: IGeneralRequirements;
34
- organization: any;
36
+ organization: IOrganization[];
35
37
  notes: any;
36
38
  last_activity: ILastActivity;
37
39
  authentication: string | null;
@@ -42,10 +44,39 @@ export type UserInfo = {
42
44
  time_zone_name: string;
43
45
  response_time: string;
44
46
  };
47
+ export interface IDeviceHistory {
48
+ id: number;
49
+ type: number;
50
+ brand: string;
51
+ os: string;
52
+ extended_info: {
53
+ sim_info: null;
54
+ culture_info: null;
55
+ user_agent: string;
56
+ fingerprint: string;
57
+ cpu: string;
58
+ system_language: string;
59
+ };
60
+ activity_type: number;
61
+ application_version: null | string;
62
+ serial_number: null | string;
63
+ source_ip_address: null | string;
64
+ geo_coordinates: null | string;
65
+ server_date: string;
66
+ date_utc: string;
67
+ client_date: string;
68
+ update_date_utc: string;
69
+ client_time_zone: string;
70
+ }
71
+ export interface IGeoCoordinates {
72
+ latitude: string;
73
+ longitude: string;
74
+ position_description: string;
75
+ }
45
76
  export interface InfoChain {
46
77
  isKeplerConnect: boolean;
47
78
  address: string;
48
- uggez: number;
79
+ ugz: number;
49
80
  uggezOne: number;
50
81
  }
51
82
  export interface InfoUser {
@@ -78,12 +109,12 @@ export interface IDevice {
78
109
  };
79
110
  status: number;
80
111
  verification_status: number;
81
- is_online: null | boolean;
112
+ is_online: boolean | null;
82
113
  encryption_key: string;
83
- application_version: null | string;
84
- serial_number: null | string;
85
- source_ip_address: null | string;
86
- geo_coordinates: null | string;
114
+ application_version: string | null;
115
+ serial_number: string;
116
+ source_ip_address: string | null;
117
+ geo_coordinates: null | GeoCoordinates | any;
87
118
  original_source_id: string;
88
119
  server_date: string;
89
120
  date_utc: string;
@@ -91,29 +122,10 @@ export interface IDevice {
91
122
  update_date_utc: string;
92
123
  client_time_zone: string;
93
124
  }
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;
125
+ export interface GeoCoordinates {
126
+ latitude: string;
127
+ longitude: string;
128
+ position_description: string;
117
129
  }
118
130
  export interface ISecurity {
119
131
  trust_level: string;
@@ -182,26 +194,8 @@ export interface IIdentification {
182
194
  update_date_utc: string;
183
195
  extra_data: string;
184
196
  custom_field: string;
197
+ ticket: any;
185
198
  }
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
199
  export interface IEmail {
206
200
  id: number | null;
207
201
  type: number | null;
@@ -225,7 +219,7 @@ export interface IInfo {
225
219
  id: string;
226
220
  program_id: string;
227
221
  status: string;
228
- type: string;
222
+ type: number;
229
223
  risk_rate: string;
230
224
  server_date: string;
231
225
  date_utc: string;
@@ -282,8 +276,9 @@ export interface IAddresses {
282
276
  client_date: string;
283
277
  update_date_utc: string;
284
278
  custom_field: string;
279
+ ticket: any;
285
280
  }
286
- export interface ibankAccount {
281
+ export interface IBankAccount {
287
282
  id: string;
288
283
  linked_account_id: string;
289
284
  name: string;
@@ -318,6 +313,8 @@ export interface ibankAccount {
318
313
  update_date_utc: string;
319
314
  service_provider: string;
320
315
  custom_field: string;
316
+ ticket: any;
317
+ settlement_currency_code: string;
321
318
  }
322
319
  export interface IAccount {
323
320
  result: string;
@@ -428,19 +425,82 @@ export interface ILastActivity {
428
425
  };
429
426
  update_date_utc: string;
430
427
  }
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;
428
+ export interface IInfo {
429
+ id: string;
430
+ program_id: string;
431
+ status: string;
432
+ type: number;
433
+ risk_rate: string;
434
+ server_date: string;
435
+ date_utc: string;
436
+ client_date: string;
437
+ source_time_zone: string;
438
+ original_source_id: string;
439
+ }
440
+ export interface IDetails {
441
+ established_date?: string | null;
442
+ formatted_established_date?: string | null;
443
+ size?: number | null;
444
+ registration_number: string;
445
+ trade_license_number: string;
446
+ }
447
+ export interface IRelationship {
448
+ id?: number;
449
+ entity?: number | null;
450
+ entity_id?: number | null;
451
+ entity_name?: string;
452
+ entity_email?: string;
453
+ entity_phone?: string;
454
+ on_entity?: number | null;
455
+ on_entity_id?: number | null;
456
+ on_entity_name?: string;
457
+ on_entity_email?: string;
458
+ on_entity_phone?: string;
459
+ type?: number | null;
460
+ status?: number | null;
461
+ verification_status?: number | null;
462
+ order?: number | null;
463
+ original_source_id: string;
464
+ formatted_server_date: string;
465
+ formatted_date_utc: string;
466
+ formatted_client_date: string;
467
+ formatted_update_date_utc: string;
468
+ custom_field: Record<string, any>;
469
+ }
470
+ export interface IDocumentData {
471
+ info?: any;
472
+ attachment?: any[];
473
+ custom_field?: Record<string, any>;
474
+ geo_coordinates?: any;
475
+ }
476
+ export interface IUserData {
477
+ name: string;
478
+ email: string;
479
+ avatar?: string;
480
+ token: string;
481
+ expiresIn: string;
482
+ jwtToken: string;
483
+ encryptedJwt: string;
484
+ userId: string;
485
+ programId: string;
486
+ userType: string;
487
+ userTypeId?: string;
488
+ deviceId: string;
489
+ exp?: string;
490
+ role: string;
491
+ hostName: string;
492
+ fingerPrint: string;
493
+ rememberedEmail?: string;
494
+ sessionId: string;
495
+ expireDate: string;
496
+ deviceStatus: number;
497
+ deviceVerificationStatus: number;
498
+ installationId: string;
499
+ }
500
+ export interface IUserDataSlice {
501
+ user: IUserData;
502
+ geoCoordinates: IGeoCoordinates | undefined;
503
+ ipAddress: string;
444
504
  }
445
505
  export interface IIPAddressAndLocation {
446
506
  ip_address: string;
@@ -60,6 +60,7 @@ export interface IOrganization {
60
60
  accounts?: any[];
61
61
  picture?: string[];
62
62
  ExternalHostInfo?: any;
63
+ ticket: any;
63
64
  }
64
65
  export interface IOrganizationInfo {
65
66
  id: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ggez-banking-sdk",
3
- "version": "0.0.63",
3
+ "version": "0.0.66",
4
4
  "description": "A Node.js package to handle GGEZ Banking API endpoints, Simplify the process of managing CRUD operations with this efficient and easy-to-use package.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",