ggez-banking-sdk 0.0.43 → 0.0.54

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.
Files changed (52) hide show
  1. package/dist/bank-system/helper/dataStructure.js +465 -177
  2. package/dist/bank-system/helper/index.d.ts +1 -1
  3. package/dist/bank-system/helper/index.js +53 -45
  4. package/dist/bank-system/interfaces/accountInterface.d.ts +3 -3
  5. package/dist/bank-system/interfaces/bankingSystemInterface.d.ts +44 -44
  6. package/dist/bank-system/interfaces/deviceInterface.d.ts +6 -6
  7. package/dist/bank-system/interfaces/interface.d.ts +1 -1
  8. package/dist/bank-system/interfaces/organizationInterface.d.ts +4 -4
  9. package/dist/bank-system/interfaces/signInterface.d.ts +6 -6
  10. package/dist/bank-system/interfaces/transactionInterface.d.ts +1 -1
  11. package/dist/bank-system/restApi/index.js +3 -12
  12. package/dist/bank-system/services/account.d.ts +2 -2
  13. package/dist/bank-system/services/account.js +27 -35
  14. package/dist/bank-system/services/addresses.d.ts +1 -1
  15. package/dist/bank-system/services/addresses.js +27 -33
  16. package/dist/bank-system/services/auth.d.ts +1 -1
  17. package/dist/bank-system/services/auth.js +40 -48
  18. package/dist/bank-system/services/bankAccount.d.ts +1 -1
  19. package/dist/bank-system/services/bankAccount.js +24 -33
  20. package/dist/bank-system/services/device.d.ts +1 -1
  21. package/dist/bank-system/services/device.js +48 -57
  22. package/dist/bank-system/services/document.d.ts +1 -1
  23. package/dist/bank-system/services/document.js +7 -16
  24. package/dist/bank-system/services/email.d.ts +1 -1
  25. package/dist/bank-system/services/email.js +34 -43
  26. package/dist/bank-system/services/history.js +5 -14
  27. package/dist/bank-system/services/identification.d.ts +1 -1
  28. package/dist/bank-system/services/identification.js +27 -27
  29. package/dist/bank-system/services/organization.d.ts +1 -1
  30. package/dist/bank-system/services/organization.js +30 -36
  31. package/dist/bank-system/services/personalInfo.d.ts +1 -1
  32. package/dist/bank-system/services/personalInfo.js +19 -22
  33. package/dist/bank-system/services/phone.d.ts +1 -1
  34. package/dist/bank-system/services/phone.js +37 -43
  35. package/dist/bank-system/services/security.d.ts +1 -1
  36. package/dist/bank-system/services/security.js +76 -67
  37. package/dist/bank-system/services/token.d.ts +1 -1
  38. package/dist/bank-system/services/token.js +12 -22
  39. package/dist/bank-system/services/transaction.js +6 -15
  40. package/dist/bank-system/services/verifyAndConfirm.d.ts +1 -1
  41. package/dist/bank-system/services/verifyAndConfirm.js +68 -72
  42. package/dist/bank-system/utils/chainAddressMasking.js +1 -1
  43. package/dist/bank-system/utils/copyText.js +3 -12
  44. package/dist/bank-system/utils/generateSourceId.js +1 -2
  45. package/dist/bank-system/utils/getCountryName.js +2 -4
  46. package/dist/bank-system/utils/getEnumName.js +2 -3
  47. package/dist/bank-system/utils/getStateByCountryCode.js +1 -1
  48. package/dist/bank-system/utils/handleEncryption/decryptData.js +23 -34
  49. package/dist/bank-system/utils/info.js +18 -24
  50. package/dist/bank-system/utils/sortUserInfo.js +6 -6
  51. package/dist/tsconfig.tsbuildinfo +1 -1
  52. package/package.json +3 -2
@@ -5,7 +5,7 @@ export type HeadersData = {
5
5
  isUrlEncoded: boolean;
6
6
  token: string | null | AxiosResponse<any, any>;
7
7
  lang?: string;
8
- installationId?: string;
8
+ installationId?: string | null;
9
9
  };
10
10
  declare const Helper: (userInfo: any) => {
11
11
  checkResponse: () => {
@@ -27,11 +27,11 @@ const Helper = (userInfo) => {
27
27
  const addInfo = (key, data) => {
28
28
  if (Array.isArray(userInfo[`${key}`])) {
29
29
  let newData = [...userInfo[`${key}`], data[0]];
30
- let newUserInfo = Object.assign(Object.assign({}, userInfo), { [key]: (0, sortUserInfo_1.sortUserInfo)(newData) });
30
+ let newUserInfo = { ...userInfo, [key]: (0, sortUserInfo_1.sortUserInfo)(newData) };
31
31
  return { newUserInfo: newUserInfo };
32
32
  }
33
33
  else {
34
- const newUserInfo = Object.assign(Object.assign({}, userInfo), { [key]: data });
34
+ const newUserInfo = { ...userInfo, [key]: data };
35
35
  return { newUserInfo: newUserInfo };
36
36
  }
37
37
  };
@@ -45,7 +45,7 @@ const Helper = (userInfo) => {
45
45
  return el;
46
46
  }
47
47
  });
48
- let newUserInfo = Object.assign(Object.assign({}, userInfo), { [key]: (0, sortUserInfo_1.sortUserInfo)(updatedData) });
48
+ let newUserInfo = { ...userInfo, [key]: (0, sortUserInfo_1.sortUserInfo)(updatedData) };
49
49
  return { newUserInfo: newUserInfo };
50
50
  };
51
51
  const removeInfo = (key, data) => {
@@ -55,10 +55,10 @@ const Helper = (userInfo) => {
55
55
  userInfo[`${key}`].filter((el, i) => {
56
56
  return el.id !== data[0].id;
57
57
  });
58
- newUserInfo = Object.assign(Object.assign({}, userInfo), { [key]: (0, sortUserInfo_1.sortUserInfo)(removeData) });
58
+ newUserInfo = { ...userInfo, [key]: (0, sortUserInfo_1.sortUserInfo)(removeData) };
59
59
  }
60
60
  else if (data == null) {
61
- let userInfoObj = Object.assign({}, userInfo);
61
+ let userInfoObj = { ...userInfo };
62
62
  userInfoObj[key] = data;
63
63
  newUserInfo = userInfoObj;
64
64
  }
@@ -68,66 +68,75 @@ const Helper = (userInfo) => {
68
68
  let updateData = Array.isArray(userInfo[`${key}`]) &&
69
69
  userInfo[`${key}`].map((el, i) => {
70
70
  if (el.id == data[0].id) {
71
- return Object.assign(Object.assign({}, el), { is_primary: 1 });
71
+ return { ...el, is_primary: 1 };
72
72
  }
73
73
  else if (el.is_primary == 1) {
74
- return Object.assign(Object.assign({}, el), { is_primary: 0 });
74
+ return { ...el, is_primary: 0 };
75
75
  }
76
76
  else {
77
77
  return el;
78
78
  }
79
79
  });
80
- let newUserInfo = Object.assign(Object.assign({}, userInfo), { [key]: (0, sortUserInfo_1.sortUserInfo)(updateData) });
80
+ let newUserInfo = { ...userInfo, [key]: (0, sortUserInfo_1.sortUserInfo)(updateData) };
81
81
  return { newUserInfo: newUserInfo };
82
82
  };
83
83
  const updateDocumentInfo = (key, data) => {
84
84
  let updateData = Array.isArray(userInfo[`${key}`]) &&
85
85
  userInfo[`${key}`].map((el, i) => {
86
- var _a;
87
- if (el.id == ((_a = data === null || data === void 0 ? void 0 : data.info) === null || _a === void 0 ? void 0 : _a.entity_id)) {
88
- return Object.assign(Object.assign({}, el), { verification_status: enum_1.EntityVerificationStatus.Pending });
86
+ if (el.id == data?.info?.entity_id) {
87
+ return {
88
+ ...el,
89
+ verification_status: enum_1.EntityVerificationStatus.Pending,
90
+ };
89
91
  }
90
92
  else {
91
93
  return el;
92
94
  }
93
95
  });
94
- let newUserInfo = Object.assign(Object.assign({}, userInfo), { [key]: (0, sortUserInfo_1.sortUserInfo)(updateData) });
96
+ let newUserInfo = { ...userInfo, [key]: (0, sortUserInfo_1.sortUserInfo)(updateData) };
95
97
  return { newUserInfo: newUserInfo, error: error };
96
98
  };
97
99
  const updateObjectInfo = (key, data) => {
98
- let updateData = Object.assign(Object.assign({}, userInfo[`${key}`]), data);
99
- let newUserInfo = Object.assign(Object.assign({}, userInfo), { [key]: updateData });
100
+ let updateData = { ...userInfo[`${key}`], ...data };
101
+ let newUserInfo = { ...userInfo, [key]: updateData };
100
102
  return { newUserInfo: newUserInfo };
101
103
  };
102
104
  const updateProfilePicture = (key, res) => {
103
105
  let data = res.data.attachment[0].file_url;
104
- let updateData = Object.assign(Object.assign({}, userInfo[`${key}`]), { ["picture"]: data });
105
- let newUserInfo = Object.assign(Object.assign({}, userInfo), { [`${key}`]: updateData });
106
+ let updateData = { ...userInfo[`${key}`], ["picture"]: data };
107
+ let newUserInfo = { ...userInfo, [`${key}`]: updateData };
106
108
  return { newUserInfo: newUserInfo };
107
109
  };
108
110
  const getUserInfo = (data) => {
109
- let newUserInfo = Object.assign(Object.assign({}, userInfo), { data });
111
+ let newUserInfo = { ...userInfo, data };
110
112
  return { newUserInfo: newUserInfo };
111
113
  };
112
114
  const resetSecurity = (key, keyAction) => {
113
115
  let security = null;
114
116
  if (keyAction == "resetQuestions") {
115
- security = Object.assign(Object.assign({}, userInfo[`${key}`]), { ["secret_answer_1"]: "____", ["secret_answer_2"]: "____" });
117
+ security = {
118
+ ...userInfo[`${key}`],
119
+ ["secret_answer_1"]: "____",
120
+ ["secret_answer_2"]: "____",
121
+ };
116
122
  }
117
123
  else if (keyAction == "resetSecurityCode") {
118
- security = Object.assign(Object.assign({}, userInfo[`${key}`]), { ["security_code"]: "____" });
124
+ security = {
125
+ ...userInfo[`${key}`],
126
+ ["security_code"]: "____",
127
+ };
119
128
  }
120
- let newUserInfo = Object.assign(Object.assign({}, userInfo), { [`${key}`]: security });
129
+ let newUserInfo = { ...userInfo, [`${key}`]: security };
121
130
  return { newUserInfo: newUserInfo };
122
131
  };
123
132
  const addOrganizationInfo = (key, data) => {
124
133
  if (Array.isArray(userInfo[`${key}`])) {
125
134
  let newData = [...userInfo[`${key}`], data];
126
- let newUserInfo = Object.assign(Object.assign({}, userInfo), { [key]: (0, sortUserInfo_1.sortUserInfo)(newData) });
135
+ let newUserInfo = { ...userInfo, [key]: (0, sortUserInfo_1.sortUserInfo)(newData) };
127
136
  return { newUserInfo: newUserInfo };
128
137
  }
129
138
  else {
130
- const newUserInfo = Object.assign(Object.assign({}, userInfo), { [key]: [data] });
139
+ const newUserInfo = { ...userInfo, [key]: [data] };
131
140
  return { newUserInfo: newUserInfo };
132
141
  }
133
142
  };
@@ -141,7 +150,7 @@ const Helper = (userInfo) => {
141
150
  return el;
142
151
  }
143
152
  });
144
- let newUserInfo = Object.assign(Object.assign({}, userInfo), { [key]: (0, sortUserInfo_1.sortUserInfo)(updatedData) });
153
+ let newUserInfo = { ...userInfo, [key]: (0, sortUserInfo_1.sortUserInfo)(updatedData) };
145
154
  return { newUserInfo: newUserInfo };
146
155
  };
147
156
  const removeOrganizationInfo = (key, data) => {
@@ -154,10 +163,10 @@ const Helper = (userInfo) => {
154
163
  if (removeData.length <= 0) {
155
164
  removeData = null;
156
165
  }
157
- newUserInfo = Object.assign(Object.assign({}, userInfo), { [key]: (0, sortUserInfo_1.sortUserInfo)(removeData) });
166
+ newUserInfo = { ...userInfo, [key]: (0, sortUserInfo_1.sortUserInfo)(removeData) };
158
167
  }
159
168
  else if (data == null) {
160
- let userInfoObj = Object.assign({}, userInfo);
169
+ let userInfoObj = { ...userInfo };
161
170
  userInfoObj[key] = data;
162
171
  newUserInfo = userInfoObj;
163
172
  }
@@ -166,16 +175,18 @@ const Helper = (userInfo) => {
166
175
  const createDocumentOrganization = (key, data) => {
167
176
  let updateData = Array.isArray(userInfo[`${key}`]) &&
168
177
  userInfo[`${key}`].map((el, i) => {
169
- var _a;
170
- if (el.info.id == ((_a = data === null || data === void 0 ? void 0 : data.info) === null || _a === void 0 ? void 0 : _a.entity_id)) {
171
- let newInfo = Object.assign(Object.assign({}, el.info), { verification_status: enum_1.EntityVerificationStatus.Pending });
172
- return Object.assign(Object.assign({}, el), { ["info"]: newInfo });
178
+ if (el.info.id == data?.info?.entity_id) {
179
+ let newInfo = {
180
+ ...el.info,
181
+ verification_status: enum_1.EntityVerificationStatus.Pending,
182
+ };
183
+ return { ...el, ["info"]: newInfo };
173
184
  }
174
185
  else {
175
186
  return el;
176
187
  }
177
188
  });
178
- let newUserInfo = Object.assign(Object.assign({}, userInfo), { [key]: updateData });
189
+ let newUserInfo = { ...userInfo, [key]: updateData };
179
190
  return { newUserInfo: newUserInfo };
180
191
  };
181
192
  return {
@@ -294,8 +305,7 @@ const Helper = (userInfo) => {
294
305
  throw errorObj;
295
306
  };
296
307
  const actionTypeHandler = (key, response, keyAction) => {
297
- var _a;
298
- const data = response === null || response === void 0 ? void 0 : response.data[`${key}`];
308
+ const data = response?.data[`${key}`];
299
309
  if (keyAction == "create") {
300
310
  return addInfo(`${key}`, data);
301
311
  }
@@ -309,11 +319,11 @@ const Helper = (userInfo) => {
309
319
  return updatePrimaryInfo(`${key}`, data);
310
320
  }
311
321
  else if (keyAction == "confirm") {
312
- let data = (_a = response === null || response === void 0 ? void 0 : response.data) === null || _a === void 0 ? void 0 : _a.verify_data[`${key}`];
322
+ let data = response?.data?.verify_data[`${key}`];
313
323
  return updateInfo(`${key}`, [data]);
314
324
  }
315
325
  else if (keyAction == "createDocument") {
316
- return updateDocumentInfo(`${key}`, response === null || response === void 0 ? void 0 : response.data);
326
+ return updateDocumentInfo(`${key}`, response?.data);
317
327
  }
318
328
  else if (keyAction == "updateObjectInfo") {
319
329
  return updateObjectInfo(`${key}`, data);
@@ -322,33 +332,32 @@ const Helper = (userInfo) => {
322
332
  return updateProfilePicture(`${key}`, response);
323
333
  }
324
334
  else if (keyAction == "userInfo") {
325
- return getUserInfo(response === null || response === void 0 ? void 0 : response.data);
335
+ return getUserInfo(response?.data);
326
336
  }
327
337
  else if (keyAction == "resetQuestions" ||
328
338
  keyAction == "resetSecurityCode") {
329
339
  return resetSecurity(`${key}`, keyAction);
330
340
  }
331
341
  else if (keyAction == "createOrganization") {
332
- return addOrganizationInfo(`${key}`, response === null || response === void 0 ? void 0 : response.data);
342
+ return addOrganizationInfo(`${key}`, response?.data);
333
343
  }
334
344
  else if (keyAction == "updateOrganization") {
335
- return updateOrganizationInfo(`${key}`, response === null || response === void 0 ? void 0 : response.data);
345
+ return updateOrganizationInfo(`${key}`, response?.data);
336
346
  }
337
347
  else if (keyAction == "deleteOrganization") {
338
- return removeOrganizationInfo(`${key}`, response === null || response === void 0 ? void 0 : response.data);
348
+ return removeOrganizationInfo(`${key}`, response?.data);
339
349
  }
340
350
  else if (keyAction == "createDocumentOrganization") {
341
- return createDocumentOrganization(`${key}`, response === null || response === void 0 ? void 0 : response.data);
351
+ return createDocumentOrganization(`${key}`, response?.data);
342
352
  }
343
353
  else {
344
354
  return { newUserInfo: null };
345
355
  }
346
356
  };
347
357
  const checkUserResponseAuth = (response, showMessageSuccess, funcName) => {
348
- var _a, _b, _c, _d;
349
- let check = (_b = (_a = response === null || response === void 0 ? void 0 : response.data) === null || _a === void 0 ? void 0 : _a.result) === null || _b === void 0 ? void 0 : _b.code;
358
+ let check = response?.data?.result?.code;
350
359
  if (check != "0000") {
351
- errorHandler((_d = (_c = response === null || response === void 0 ? void 0 : response.data) === null || _c === void 0 ? void 0 : _c.result) === null || _d === void 0 ? void 0 : _d.friendly_message, funcName, response);
360
+ errorHandler(response?.data?.result?.friendly_message, funcName, response);
352
361
  }
353
362
  else if (!showMessageSuccess) {
354
363
  let value = response.data;
@@ -367,8 +376,7 @@ const Helper = (userInfo) => {
367
376
  }
368
377
  };
369
378
  const checkGlobalResponse = (key, response, funcName, keyAction) => {
370
- var _a, _b, _c, _d;
371
- let check = (_b = (_a = response === null || response === void 0 ? void 0 : response.data) === null || _a === void 0 ? void 0 : _a.result) === null || _b === void 0 ? void 0 : _b.code;
379
+ let check = response?.data?.result?.code;
372
380
  if (check == "0000") {
373
381
  return actionTypeHandler(key, response, keyAction);
374
382
  }
@@ -376,7 +384,7 @@ const Helper = (userInfo) => {
376
384
  return actionTypeHandler(key, response, keyAction);
377
385
  }
378
386
  else {
379
- return errorHandler((_d = (_c = response === null || response === void 0 ? void 0 : response.data) === null || _c === void 0 ? void 0 : _c.result) === null || _d === void 0 ? void 0 : _d.friendly_message, funcName, response);
387
+ return errorHandler(response?.data?.result?.friendly_message, funcName, response);
380
388
  }
381
389
  };
382
390
  return {
@@ -8,7 +8,7 @@ export interface DoTransactionInterface {
8
8
  validate: string;
9
9
  bankId?: number | string;
10
10
  wireTransferType?: number;
11
- geoCoordinates?: IGeoCoordinates;
11
+ geoCoordinates?: IGeoCoordinates | null;
12
12
  }
13
13
  export interface GetTransactionInterface {
14
14
  status?: number;
@@ -19,9 +19,9 @@ export interface GetTransactionInterface {
19
19
  transaction_type?: number | null;
20
20
  account_id?: number;
21
21
  transaction_classification?: number;
22
- geoCoordinates?: IGeoCoordinates;
22
+ geoCoordinates?: IGeoCoordinates | null;
23
23
  }
24
24
  export interface GetAccountLimit {
25
25
  account_id: number;
26
- geoCoordinates?: IGeoCoordinates;
26
+ geoCoordinates?: IGeoCoordinates | null;
27
27
  }
@@ -2,32 +2,32 @@ import { IGeoCoordinates } from "./interface";
2
2
  export interface ConfirmLimitedEmailInterface {
3
3
  address: string;
4
4
  verificationCode: string;
5
- geoCoordinates?: IGeoCoordinates;
5
+ geoCoordinates?: IGeoCoordinates | null;
6
6
  }
7
7
  export interface UpdateUserEmailInterface {
8
8
  id: any;
9
9
  address: any;
10
- geoCoordinates?: IGeoCoordinates;
10
+ geoCoordinates?: IGeoCoordinates | null;
11
11
  }
12
12
  export interface MakePrimaryUserEmailInterface {
13
13
  id: any;
14
14
  address: any;
15
- geoCoordinates?: IGeoCoordinates;
15
+ geoCoordinates?: IGeoCoordinates | null;
16
16
  }
17
17
  export interface UpdateUserPhoneInterface {
18
18
  id: any;
19
19
  number: any;
20
- geoCoordinates?: IGeoCoordinates;
20
+ geoCoordinates?: IGeoCoordinates | null;
21
21
  }
22
22
  export interface MakeUserPhonePrimaryInterface {
23
23
  id: any;
24
24
  number: any;
25
- geoCoordinates?: IGeoCoordinates;
25
+ geoCoordinates?: IGeoCoordinates | null;
26
26
  }
27
27
  export interface ConfirmLimitedPhoneInterface {
28
28
  number: string;
29
29
  verificationCode: string;
30
- geoCoordinates?: IGeoCoordinates;
30
+ geoCoordinates?: IGeoCoordinates | null;
31
31
  }
32
32
  export interface CreateAccountInterFace {
33
33
  binID: string;
@@ -35,7 +35,7 @@ export interface CreateAccountInterFace {
35
35
  currency: string;
36
36
  type: string;
37
37
  status: string;
38
- geoCoordinates?: IGeoCoordinates;
38
+ geoCoordinates?: IGeoCoordinates | null;
39
39
  }
40
40
  export interface CreateBankAccountInterFace {
41
41
  name: string;
@@ -55,7 +55,7 @@ export interface CreateBankAccountInterFace {
55
55
  userId: string;
56
56
  bankAddress: string;
57
57
  stateRegion?: string;
58
- geoCoordinates?: IGeoCoordinates;
58
+ geoCoordinates?: IGeoCoordinates | null;
59
59
  }
60
60
  export interface UpdateBankAccountInterFace {
61
61
  id: number;
@@ -77,11 +77,11 @@ export interface UpdateBankAccountInterFace {
77
77
  userId: string;
78
78
  bankAddress: string;
79
79
  stateRegion?: string;
80
- geoCoordinates?: IGeoCoordinates;
80
+ geoCoordinates?: IGeoCoordinates | null;
81
81
  }
82
82
  export interface MakeBankAccountPrimaryInterFace {
83
83
  id: number;
84
- geoCoordinates?: IGeoCoordinates;
84
+ geoCoordinates?: IGeoCoordinates | null;
85
85
  }
86
86
  export interface CreateDocumentInterface {
87
87
  subject: string;
@@ -92,7 +92,7 @@ export interface CreateDocumentInterface {
92
92
  entityID: string;
93
93
  type: string | number;
94
94
  attachment?: any;
95
- geoCoordinates?: IGeoCoordinates;
95
+ geoCoordinates?: IGeoCoordinates | null;
96
96
  }
97
97
  export interface CreateIdentificationInterface {
98
98
  type: number;
@@ -101,7 +101,7 @@ export interface CreateIdentificationInterface {
101
101
  issueDate: string;
102
102
  expiryDate: string;
103
103
  number: string;
104
- geoCoordinates?: IGeoCoordinates;
104
+ geoCoordinates?: IGeoCoordinates | null;
105
105
  }
106
106
  export interface UpdateIdentificationInterface {
107
107
  id: number;
@@ -111,7 +111,7 @@ export interface UpdateIdentificationInterface {
111
111
  issueDate: string;
112
112
  expiryDate: string;
113
113
  number: string;
114
- geoCoordinates?: IGeoCoordinates;
114
+ geoCoordinates?: IGeoCoordinates | null;
115
115
  }
116
116
  export interface CreateAddressInterface {
117
117
  type: number;
@@ -121,7 +121,7 @@ export interface CreateAddressInterface {
121
121
  cityTown: string;
122
122
  stateRegion: string;
123
123
  postalZipCode: string;
124
- geoCoordinates?: IGeoCoordinates;
124
+ geoCoordinates?: IGeoCoordinates | null;
125
125
  }
126
126
  export interface UpdateAddressInterface {
127
127
  id: number;
@@ -132,15 +132,15 @@ export interface UpdateAddressInterface {
132
132
  cityTown: string;
133
133
  stateRegion: string;
134
134
  postalZipCode: string;
135
- geoCoordinates?: IGeoCoordinates;
135
+ geoCoordinates?: IGeoCoordinates | null;
136
136
  }
137
137
  export interface MakeAddressPrimaryInterface {
138
138
  id: number;
139
- geoCoordinates?: IGeoCoordinates;
139
+ geoCoordinates?: IGeoCoordinates | null;
140
140
  }
141
141
  export interface GetTransactionInterface {
142
142
  user_id: number;
143
- geoCoordinates?: IGeoCoordinates;
143
+ geoCoordinates?: IGeoCoordinates | null;
144
144
  }
145
145
  export interface ValidateLimitedPhoneInterface {
146
146
  type: number;
@@ -148,33 +148,33 @@ export interface ValidateLimitedPhoneInterface {
148
148
  number: string;
149
149
  timeZone: string;
150
150
  timeZoneName: string;
151
- geoCoordinates?: IGeoCoordinates;
151
+ geoCoordinates?: IGeoCoordinates | null;
152
152
  }
153
153
  export interface VerifyLimitedEmailInterface {
154
154
  address: string;
155
- geoCoordinates?: IGeoCoordinates;
155
+ geoCoordinates?: IGeoCoordinates | null;
156
156
  }
157
157
  export interface SendOTPEmailInterface {
158
158
  address: string;
159
159
  authorizationRequestType: number;
160
- geoCoordinates?: IGeoCoordinates;
160
+ geoCoordinates?: IGeoCoordinates | null;
161
161
  }
162
162
  export interface SendOTPPhoneInterface {
163
163
  number: string;
164
164
  authorizationRequestType: number;
165
- geoCoordinates?: IGeoCoordinates;
165
+ geoCoordinates?: IGeoCoordinates | null;
166
166
  }
167
167
  export interface VerifyLimitedPhoneInterface {
168
168
  number: string;
169
- geoCoordinates?: IGeoCoordinates;
169
+ geoCoordinates?: IGeoCoordinates | null;
170
170
  }
171
171
  export interface IsEmailPresentAndValidInterface {
172
172
  emailAddress: string;
173
- geoCoordinates?: IGeoCoordinates;
173
+ geoCoordinates?: IGeoCoordinates | null;
174
174
  }
175
175
  export interface IsPhonePresentAndValidInterface {
176
176
  mobileNumber: string;
177
- geoCoordinates?: IGeoCoordinates;
177
+ geoCoordinates?: IGeoCoordinates | null;
178
178
  }
179
179
  export interface UpdatePersonalInfoInterface {
180
180
  title: string;
@@ -183,7 +183,7 @@ export interface UpdatePersonalInfoInterface {
183
183
  jobTitle: string;
184
184
  gender: string;
185
185
  dateOfBirth: string;
186
- geoCoordinates?: IGeoCoordinates;
186
+ geoCoordinates?: IGeoCoordinates | null;
187
187
  }
188
188
  export interface UpdateProfilePictureInterface {
189
189
  fileName: string;
@@ -191,44 +191,44 @@ export interface UpdateProfilePictureInterface {
191
191
  content: any;
192
192
  userId?: number;
193
193
  token?: string;
194
- geoCoordinates?: IGeoCoordinates;
194
+ geoCoordinates?: IGeoCoordinates | null;
195
195
  }
196
196
  export interface CreateUserEmailInterface {
197
197
  address: string;
198
- geoCoordinates?: IGeoCoordinates;
198
+ geoCoordinates?: IGeoCoordinates | null;
199
199
  }
200
200
  export interface CreateUserPhoneInterface {
201
201
  type?: string;
202
202
  countryCode: string;
203
203
  number: string;
204
- geoCoordinates?: IGeoCoordinates;
204
+ geoCoordinates?: IGeoCoordinates | null;
205
205
  }
206
206
  export interface DeleteUserPhoneInterface {
207
207
  id: any;
208
- geoCoordinates?: IGeoCoordinates;
208
+ geoCoordinates?: IGeoCoordinates | null;
209
209
  }
210
210
  export interface DeleteUserEmailInterface {
211
211
  id: any;
212
- geoCoordinates?: IGeoCoordinates;
212
+ geoCoordinates?: IGeoCoordinates | null;
213
213
  }
214
214
  export interface DeleteUserAddressInterface {
215
215
  id: any;
216
- geoCoordinates?: IGeoCoordinates;
216
+ geoCoordinates?: IGeoCoordinates | null;
217
217
  }
218
218
  export interface DeleteIdentificationInterface {
219
219
  id: any;
220
- geoCoordinates?: IGeoCoordinates;
220
+ geoCoordinates?: IGeoCoordinates | null;
221
221
  }
222
222
  export interface DeleteBankAccountInterFace {
223
223
  id: any;
224
- geoCoordinates?: IGeoCoordinates;
224
+ geoCoordinates?: IGeoCoordinates | null;
225
225
  }
226
226
  export interface ResetPasswordInterface {
227
227
  currentPassword: string;
228
228
  newPassword: string;
229
229
  authenticationType: number;
230
230
  code: string;
231
- geoCoordinates?: IGeoCoordinates;
231
+ geoCoordinates?: IGeoCoordinates | null;
232
232
  }
233
233
  export interface ForgetPasswordConfirmInterface {
234
234
  password: string;
@@ -237,7 +237,7 @@ export interface ForgetPasswordConfirmInterface {
237
237
  user_id: number | string;
238
238
  sub_entity: number | string;
239
239
  sub_entity_id: number | string;
240
- geoCoordinates?: IGeoCoordinates;
240
+ geoCoordinates?: IGeoCoordinates | null;
241
241
  }
242
242
  export interface ForgetPasswordValidateInterface {
243
243
  additional_security_type: number;
@@ -245,7 +245,7 @@ export interface ForgetPasswordValidateInterface {
245
245
  type: number;
246
246
  phone?: string;
247
247
  email?: string;
248
- geoCoordinates?: IGeoCoordinates;
248
+ geoCoordinates?: IGeoCoordinates | null;
249
249
  }
250
250
  export interface ResetSecurityQuestionsInterface {
251
251
  currentPassword: string;
@@ -255,43 +255,43 @@ export interface ResetSecurityQuestionsInterface {
255
255
  questionTwoAnswer: string;
256
256
  authenticationType: number;
257
257
  code: string;
258
- geoCoordinates?: IGeoCoordinates;
258
+ geoCoordinates?: IGeoCoordinates | null;
259
259
  }
260
260
  export interface ChangeUserSecurityCodeInterface {
261
261
  currentPassword: string;
262
262
  userSecurityCode: string;
263
263
  authenticationType: number;
264
264
  code: string;
265
- geoCoordinates?: IGeoCoordinates;
265
+ geoCoordinates?: IGeoCoordinates | null;
266
266
  }
267
267
  export interface UpdateUserPreferencesInterface {
268
268
  preferredLanguageCode: string;
269
269
  enablePromotionNotification: string;
270
270
  enableSMSNotification: string;
271
271
  enablePushNotification: string;
272
- geoCoordinates?: IGeoCoordinates;
272
+ geoCoordinates?: IGeoCoordinates | null;
273
273
  }
274
274
  export interface ValidateSecurityCodeInterface {
275
275
  securityCode: string;
276
276
  type: string;
277
- geoCoordinates?: IGeoCoordinates;
277
+ geoCoordinates?: IGeoCoordinates | null;
278
278
  }
279
279
  export interface ActivateGoogleAuthInterface {
280
280
  type: string | number;
281
281
  code: string;
282
- geoCoordinates?: IGeoCoordinates;
282
+ geoCoordinates?: IGeoCoordinates | null;
283
283
  }
284
284
  export interface DeleteGoogleAuthInterface {
285
285
  authenticationType: number;
286
286
  code: string;
287
- geoCoordinates?: IGeoCoordinates;
287
+ geoCoordinates?: IGeoCoordinates | null;
288
288
  }
289
289
  export interface ExtendedInfoInterface {
290
290
  cpu: string;
291
291
  fingerprint: string;
292
292
  system_language: string;
293
293
  user_agent: string;
294
- geoCoordinates?: IGeoCoordinates;
294
+ geoCoordinates?: IGeoCoordinates | null;
295
295
  }
296
296
  export interface AddDeviceInterface {
297
297
  type: string;
@@ -302,5 +302,5 @@ export interface AddDeviceInterface {
302
302
  extended_info: ExtendedInfoInterface;
303
303
  authenticationType: number;
304
304
  code: string;
305
- geoCoordinates?: IGeoCoordinates;
305
+ geoCoordinates?: IGeoCoordinates | null;
306
306
  }
@@ -4,31 +4,31 @@ export interface CreateDeviceInterface {
4
4
  installationID: string;
5
5
  authenticationType?: number;
6
6
  code?: string;
7
- geoCoordinates?: IGeoCoordinates;
7
+ geoCoordinates?: IGeoCoordinates | null;
8
8
  }
9
9
  export interface UpdateDeviceInterface {
10
10
  deviceId: number;
11
11
  deviceStatus?: number;
12
12
  deviceVerificationStatus?: number;
13
13
  deviceIsOnline?: boolean;
14
- geoCoordinates?: IGeoCoordinates;
14
+ geoCoordinates?: IGeoCoordinates | null;
15
15
  }
16
16
  export interface DeleteDeviceInterface {
17
17
  deviceId: number;
18
- geoCoordinates?: IGeoCoordinates;
18
+ geoCoordinates?: IGeoCoordinates | null;
19
19
  }
20
20
  export interface VerifyDeviceInterface {
21
21
  authenticationType: number;
22
22
  deviceId: number;
23
- geoCoordinates?: IGeoCoordinates;
23
+ geoCoordinates?: IGeoCoordinates | null;
24
24
  }
25
25
  export interface ConfirmDeviceInterface {
26
26
  authenticationType: number;
27
27
  deviceId: number;
28
28
  code: string;
29
- geoCoordinates?: IGeoCoordinates;
29
+ geoCoordinates?: IGeoCoordinates | null;
30
30
  }
31
31
  export interface LogoutDeviceInterface {
32
32
  deviceId: number;
33
- geoCoordinates?: IGeoCoordinates;
33
+ geoCoordinates?: IGeoCoordinates | null;
34
34
  }
@@ -455,6 +455,6 @@ export interface IGeoCoordinates {
455
455
  position_description: string;
456
456
  }
457
457
  export interface IGeoCoordinatesAndIPAddress {
458
- geo_coordinates: IGeoCoordinates;
458
+ geo_coordinates: IGeoCoordinates | null;
459
459
  ip_address: string;
460
460
  }
@@ -13,7 +13,7 @@ export interface CreateOrganizationInterface {
13
13
  countryCode: string;
14
14
  stateRegion: string;
15
15
  cityTown: string;
16
- geoCoordinates?: IGeoCoordinates;
16
+ geoCoordinates?: IGeoCoordinates | null;
17
17
  }
18
18
  export interface UpdateOrganizationInterface {
19
19
  name: string;
@@ -31,14 +31,14 @@ export interface UpdateOrganizationInterface {
31
31
  countryCode: string;
32
32
  stateRegion: string;
33
33
  cityTown: string;
34
- geoCoordinates?: IGeoCoordinates;
34
+ geoCoordinates?: IGeoCoordinates | null;
35
35
  }
36
36
  export interface DeleteOrganizationInterface {
37
37
  }
38
38
  export interface CreateDocumentOrganizationInterface {
39
39
  subject: string;
40
40
  attachment: any;
41
- geoCoordinates?: IGeoCoordinates;
41
+ geoCoordinates?: IGeoCoordinates | null;
42
42
  }
43
43
  export interface IOrganization {
44
44
  result: IResult;
@@ -52,7 +52,7 @@ export interface IOrganization {
52
52
  classification?: any;
53
53
  working_hours?: any;
54
54
  json?: string;
55
- geo_coordinates?: IGeoCoordinates;
55
+ geo_coordinates?: IGeoCoordinates | null;
56
56
  history?: any[];
57
57
  relationship?: IRelationship[];
58
58
  documents?: IDocumentData[];