@tap-payments/auth-jsconnect 2.4.73-test → 2.4.75-test

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 (119) hide show
  1. package/build/@types/app.d.ts +27 -15
  2. package/build/@types/app.js +5 -0
  3. package/build/@types/form.d.ts +20 -20
  4. package/build/@types/theme.d.ts +1 -1
  5. package/build/api/account.d.ts +2 -2
  6. package/build/api/auth.d.ts +11 -11
  7. package/build/api/availabilityServices.d.ts +3 -3
  8. package/build/api/axios.js +1 -1
  9. package/build/api/board.d.ts +3 -3
  10. package/build/api/brand.d.ts +1 -1
  11. package/build/api/country.d.ts +1 -1
  12. package/build/api/data.d.ts +11 -11
  13. package/build/api/document.d.ts +2 -2
  14. package/build/api/entity.d.ts +8 -8
  15. package/build/api/file.d.ts +1 -1
  16. package/build/api/individual.d.ts +5 -5
  17. package/build/api/init.d.ts +2 -1
  18. package/build/api/lead.d.ts +11 -11
  19. package/build/api/operator.d.ts +1 -1
  20. package/build/api/operator.js +1 -1
  21. package/build/api/user.d.ts +2 -2
  22. package/build/app/settings.d.ts +5 -14
  23. package/build/app/settings.js +31 -45
  24. package/build/app/store.d.ts +4 -4
  25. package/build/components/Slide/Slide.d.ts +1 -1
  26. package/build/constants/app.d.ts +1 -1
  27. package/build/features/app/bank/bankStore.d.ts +10 -82
  28. package/build/features/app/bank/bankStore.js +1 -1
  29. package/build/features/app/brand/brandStore.d.ts +15 -132
  30. package/build/features/app/brand/brandStore.js +1 -1
  31. package/build/features/app/business/businessStore.d.ts +18 -162
  32. package/build/features/app/business/businessStore.js +1 -1
  33. package/build/features/app/connect/connectStore.d.ts +15 -141
  34. package/build/features/app/connect/connectStore.js +1 -1
  35. package/build/features/app/connectExpress/connectExpressStore.d.ts +22 -211
  36. package/build/features/app/connectExpress/connectExpressStore.js +1 -1
  37. package/build/features/app/entity/entityStore.d.ts +10 -82
  38. package/build/features/app/entity/entityStore.js +1 -1
  39. package/build/features/app/individual/individualStore.d.ts +22 -175
  40. package/build/features/app/individual/individualStore.js +1 -1
  41. package/build/features/app/password/passwordStore.d.ts +12 -102
  42. package/build/features/app/password/passwordStore.js +1 -1
  43. package/build/features/app/signIn/signInStore.d.ts +7 -61
  44. package/build/features/app/signIn/signInStore.js +1 -1
  45. package/build/features/app/tax/taxStore.d.ts +9 -72
  46. package/build/features/app/tax/taxStore.js +1 -1
  47. package/build/features/bank/screens/BankDetails/BankName.d.ts +1 -1
  48. package/build/features/bank/screens/BankDetails/BankStatement.d.ts +1 -1
  49. package/build/features/bank/screens/BankDetails/ConfirmPolicy.d.ts +1 -1
  50. package/build/features/bank/screens/BankDetails/IBAN.js +1 -1
  51. package/build/features/brand/screens/BrandActivities/ActivitiesList.d.ts +6 -6
  52. package/build/features/brand/screens/BrandActivities/CustomerBase.d.ts +3 -3
  53. package/build/features/brand/screens/BrandActivities/RefundPolicy.d.ts +5 -5
  54. package/build/features/brand/screens/BrandActivities/TAC.d.ts +2 -2
  55. package/build/features/brand/screens/BrandActivities/TransactionPolicy.d.ts +1 -1
  56. package/build/features/brand/screens/BrandInfo/BrandLogo.d.ts +1 -1
  57. package/build/features/brand/screens/BrandInfo/BrandName.js +1 -1
  58. package/build/features/brand/screens/BrandInfo/SalesChannels.js +4 -4
  59. package/build/features/brand/screens/BrandInfo/validation.js +6 -6
  60. package/build/features/business/screens/Activities/ActivitiesList.d.ts +2 -2
  61. package/build/features/business/screens/Activities/OperationStartDate.d.ts +1 -1
  62. package/build/features/business/screens/BrandDetails/SalesChannel.d.ts +1 -1
  63. package/build/features/business/screens/BusinessType/Article.d.ts +1 -1
  64. package/build/features/business/screens/BusinessType/LicenseType.d.ts +3 -3
  65. package/build/features/business/screens/Customers/CustomerLocations.d.ts +7 -7
  66. package/build/features/business/screens/Customers/RefundPolicy.d.ts +4 -4
  67. package/build/features/connect/screens/Individual/Email.js +1 -1
  68. package/build/features/connect/screens/Merchant/BrandName.js +1 -1
  69. package/build/features/connect/screens/Merchant/SalesChannels.js +6 -6
  70. package/build/features/connect/screens/Merchant/validation.js +6 -6
  71. package/build/features/connectExpress/ConnectExpress.d.ts +1 -1
  72. package/build/features/connectExpress/ConnectExpress.js +19 -21
  73. package/build/features/connectExpress/screens/CollectBusinessInfo/BrandName.js +1 -1
  74. package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseType.d.ts +3 -3
  75. package/build/features/connectExpress/screens/CollectBusinessInfo/TAC.d.ts +2 -2
  76. package/build/features/connectExpress/screens/CollectIndividualInfo/Email.js +1 -1
  77. package/build/features/connectExpress/screens/NID/TAC.d.ts +2 -2
  78. package/build/features/entity/screens/EntityCapital/ActivityList.d.ts +2 -2
  79. package/build/features/entity/screens/EntityName/Article.d.ts +1 -1
  80. package/build/features/entity/screens/EntityName/EntityTypeList.d.ts +6 -6
  81. package/build/features/entity/screens/EntityName/ExpiryDate.d.ts +1 -1
  82. package/build/features/entity/screens/EntityName/IssuingDate.d.ts +1 -1
  83. package/build/features/individual/screens/AdditionalIndividualInfo/AdditionalIndividualInfo.d.ts +1 -1
  84. package/build/features/individual/screens/AdditionalIndividualInfo/CivilIDFile.d.ts +1 -1
  85. package/build/features/individual/screens/AdditionalIndividualInfo/PEPSwitch.d.ts +2 -2
  86. package/build/features/individual/screens/IndividualList/Email.js +1 -1
  87. package/build/features/individual/screens/IndividualList/IndividualList.d.ts +2 -2
  88. package/build/features/individual/screens/IndividualPersonalInfo/Gender.d.ts +3 -3
  89. package/build/features/individual/screens/IndividualPersonalInfo/IndividualPersonalInfo.d.ts +1 -1
  90. package/build/features/shared/Address/CountryList.d.ts +6 -6
  91. package/build/features/shared/Address/InputSelect.d.ts +6 -6
  92. package/build/features/shared/Address/InputSelect.js +1 -1
  93. package/build/features/shared/Button/EmailProvidersButtons.d.ts +1 -1
  94. package/build/features/shared/Button/FlowsButtons.d.ts +1 -1
  95. package/build/features/shared/Button/FlowsButtons.js +1 -1
  96. package/build/features/shared/Button/IndividualActionButtons.d.ts +1 -1
  97. package/build/features/shared/CheckIcon/CheckIcon.d.ts +1 -1
  98. package/build/features/shared/Containers/FeatureContainer.d.ts +1 -1
  99. package/build/features/shared/Containers/ScreenContainer.d.ts +1 -1
  100. package/build/features/shared/Footer/PoweredByFooter.d.ts +1 -1
  101. package/build/features/shared/Input/Input.d.ts +2 -2
  102. package/build/features/shared/SuccessFlowButtons/SuccessFlowButtons.js +4 -2
  103. package/build/features/shared/UploadFile/FileUpload.d.ts +3 -3
  104. package/build/features/shared/UploadFile/FileUpload.js +1 -1
  105. package/build/features/shared/UploadFile/UploadFile.d.ts +2 -2
  106. package/build/features/shared/UploadFile/UploadWrapper.d.ts +2 -2
  107. package/build/features/shared/UploadMultipleFile/UploadFile.d.ts +3 -3
  108. package/build/features/shared/UploadMultipleFile/UploadFile.js +1 -1
  109. package/build/features/shared/UploadMultipleFile/UploadMultipleFile.d.ts +2 -2
  110. package/build/features/tax/screens/TaxDetails/ConfirmPolicy.d.ts +1 -1
  111. package/build/features/tax/screens/TaxDetails/VATId.d.ts +1 -1
  112. package/build/hooks/useAppConfig.d.ts +4 -4
  113. package/build/hooks/useAppConfig.js +9 -2
  114. package/build/hooks/useDataVerified.d.ts +1 -1
  115. package/build/hooks/useExcludeReadOnlyFelids.d.ts +1 -1
  116. package/build/hooks/useFormErrorAndUpdateReadOnly.d.ts +1 -1
  117. package/build/hooks/useFormReadOnly.d.ts +1 -1
  118. package/build/utils/array.js +1 -1
  119. package/package.json +1 -1
@@ -202,6 +202,7 @@ interface LibCallbacks {
202
202
  onBoardButtonClick?: (data: Record<string, any>) => void;
203
203
  onCreated?: (res: Record<string, any>) => void;
204
204
  onBoardCompleted?: () => void;
205
+ onMaturityChanged?: (maturity?: 'full' | 'express') => void;
205
206
  }
206
207
  export interface LibConfig extends LibCallbacks {
207
208
  publicKey: string;
@@ -266,7 +267,7 @@ export interface LocalProps {
266
267
  };
267
268
  };
268
269
  }
269
- export type BrandInfo = {
270
+ export declare type BrandInfo = {
270
271
  segment?: {
271
272
  type: {
272
273
  id: string;
@@ -304,7 +305,7 @@ export declare enum FlowsTypes {
304
305
  AUTH = "auth",
305
306
  BRAND = "brand"
306
307
  }
307
- export type FlowInfo = {
308
+ export declare type FlowInfo = {
308
309
  name: string;
309
310
  status: string;
310
311
  url: string;
@@ -319,7 +320,7 @@ export declare enum AddressFormateType {
319
320
  NUMBER = "number",
320
321
  TEXT = "text"
321
322
  }
322
- export type AddressFormat = {
323
+ export declare type AddressFormat = {
323
324
  code: string;
324
325
  name: {
325
326
  ar: string;
@@ -330,14 +331,14 @@ export type AddressFormat = {
330
331
  sort: number;
331
332
  type: AddressFormateType;
332
333
  };
333
- export type AddressType = {
334
+ export declare type AddressType = {
334
335
  code: string;
335
336
  name: {
336
337
  ar: string;
337
338
  en: string;
338
339
  };
339
340
  };
340
- export type AddressProps = {
341
+ export declare type AddressProps = {
341
342
  format: AddressFormat[];
342
343
  type: AddressType;
343
344
  };
@@ -369,7 +370,7 @@ export declare enum DocumentPurpose {
369
370
  TAX_DOCUMENT = "tax_document_user_upload",
370
371
  BRAND_LOGO = "business_logo"
371
372
  }
372
- export type FileDetails = {
373
+ export declare type FileDetails = {
373
374
  created: string;
374
375
  id: string;
375
376
  object: string;
@@ -384,7 +385,7 @@ export declare enum VerificationStatus {
384
385
  ENTERED = "entered",
385
386
  NOT_ENTERED = "not_entered"
386
387
  }
387
- export type BankDataStatus = {
388
+ export declare type BankDataStatus = {
388
389
  iban: FieldType;
389
390
  account_number: FieldType;
390
391
  swift_code: FieldType;
@@ -393,7 +394,7 @@ export type BankDataStatus = {
393
394
  bank_statement_file_id: FieldType;
394
395
  is_acknowledged: FieldType;
395
396
  };
396
- export type EntityDataStatus = {
397
+ export declare type EntityDataStatus = {
397
398
  type: FieldType;
398
399
  'license.status': FieldType;
399
400
  'license.provider': FieldType;
@@ -422,7 +423,7 @@ export type EntityDataStatus = {
422
423
  billing_address: FieldType;
423
424
  AOA_file_id: FieldType;
424
425
  };
425
- export type IndividualDataStatus = {
426
+ export declare type IndividualDataStatus = {
426
427
  status: FieldType;
427
428
  'name.en': FieldType;
428
429
  'name.ar': FieldType;
@@ -448,7 +449,7 @@ export type IndividualDataStatus = {
448
449
  is_influencer: FieldType;
449
450
  gender: FieldType;
450
451
  };
451
- export type BrandDataStatus = {
452
+ export declare type BrandDataStatus = {
452
453
  status: FieldType;
453
454
  'name.en': FieldType;
454
455
  'name.ar': FieldType;
@@ -524,7 +525,7 @@ export interface ActivitiesIsIc {
524
525
  created: string;
525
526
  divisions?: Array<ActivityDivision>;
526
527
  }
527
- export type BankDataVerification = {
528
+ export declare type BankDataVerification = {
528
529
  account_number: string;
529
530
  bank_name: string;
530
531
  bank_statement_file_id: string;
@@ -534,7 +535,7 @@ export type BankDataVerification = {
534
535
  is_acknowledged: string;
535
536
  swift_code: string;
536
537
  };
537
- export type BrandDataVerification = {
538
+ export declare type BrandDataVerification = {
538
539
  logo: string;
539
540
  'name.en': string;
540
541
  'name.ar': string;
@@ -552,7 +553,7 @@ export type BrandDataVerification = {
552
553
  'segment.tech_type': string;
553
554
  terms: string;
554
555
  };
555
- export type EntityDataVerification = {
556
+ export declare type EntityDataVerification = {
556
557
  AOA_file_id: string;
557
558
  billing_address: string;
558
559
  'capital.announced': string;
@@ -579,7 +580,7 @@ export type EntityDataVerification = {
579
580
  taxable: string;
580
581
  type: string;
581
582
  };
582
- export type IndividualDataVerification = {
583
+ export declare type IndividualDataVerification = {
583
584
  'birth.city': string;
584
585
  'birth.country': string;
585
586
  'birth.date': string;
@@ -626,11 +627,22 @@ export interface EventPageTrackingData extends CommonDataLayer {
626
627
  export interface PageTrackingData {
627
628
  title?: string;
628
629
  }
629
- export type VerifyExpressTokenParams = {
630
+ export declare type VerifyExpressTokenParams = {
630
631
  public_key: string;
631
632
  post: {
632
633
  url: string;
633
634
  };
634
635
  lead_id: string;
635
636
  };
637
+ export declare type ConfigExpressTokenParams = {
638
+ post: {
639
+ url: string;
640
+ };
641
+ lead_id: string;
642
+ board: boolean;
643
+ };
644
+ export declare enum MerchantStatus {
645
+ DISABLED = "disabled",
646
+ ENABLED = "enabled"
647
+ }
636
648
  export {};
@@ -80,3 +80,8 @@ export var VerificationStatus;
80
80
  VerificationStatus["ENTERED"] = "entered";
81
81
  VerificationStatus["NOT_ENTERED"] = "not_entered";
82
82
  })(VerificationStatus || (VerificationStatus = {}));
83
+ export var MerchantStatus;
84
+ (function (MerchantStatus) {
85
+ MerchantStatus["DISABLED"] = "disabled";
86
+ MerchantStatus["ENABLED"] = "enabled";
87
+ })(MerchantStatus || (MerchantStatus = {}));
@@ -1,47 +1,47 @@
1
1
  import { Activity, BrandInfo, CountryCode, CustomerLocation, ExpectedCustomer, ExpectedSaleRange, License, MonthlyIncome, Occupation, SaleChannel, Segment, SourceOfIncome, TeamSize, City, EntityLicense } from './app';
2
- export type MobileFormValues = {
2
+ export declare type MobileFormValues = {
3
3
  mobile: string;
4
4
  countryCode: CountryCode;
5
5
  termAndConditionChecked?: boolean;
6
6
  };
7
- export type EmailFormValues = {
7
+ export declare type EmailFormValues = {
8
8
  email: string | null;
9
9
  };
10
- export type OTPFormValues = {
10
+ export declare type OTPFormValues = {
11
11
  otp: string;
12
12
  };
13
- export type PasswordFormValues = {
13
+ export declare type PasswordFormValues = {
14
14
  password: string;
15
15
  };
16
- export type NIDFormValues = {
16
+ export declare type NIDFormValues = {
17
17
  nid: string;
18
18
  dob: string;
19
19
  termAndConditionChecked?: boolean;
20
20
  };
21
- export type CivilFormValues = {
21
+ export declare type CivilFormValues = {
22
22
  civilId: string;
23
23
  termAndConditionChecked?: boolean;
24
24
  };
25
- export type IndividualFormValues = {
25
+ export declare type IndividualFormValues = {
26
26
  name: string;
27
27
  email: string;
28
28
  mobile: string | null;
29
29
  countryCode: CountryCode;
30
30
  };
31
- export type BrandFormValues = {
31
+ export declare type BrandFormValues = {
32
32
  brandName: string;
33
33
  brandLogoId?: string;
34
34
  salesChannels: Array<SaleChannel>;
35
35
  termAndConditionChecked?: boolean;
36
36
  selectedBrandItem: BrandInfo;
37
37
  };
38
- export type BrandSegmentFormValues = {
38
+ export declare type BrandSegmentFormValues = {
39
39
  segmentLocation?: Segment | undefined;
40
40
  segmentProfit?: Segment | undefined;
41
41
  segmentTech?: Segment | undefined;
42
42
  teamSize?: TeamSize | undefined;
43
43
  };
44
- export type BrandActivitiesFormValues = {
44
+ export declare type BrandActivitiesFormValues = {
45
45
  activities: Array<Activity>;
46
46
  customerLocations: Array<CustomerLocation>;
47
47
  expectedCustomer: ExpectedCustomer | undefined;
@@ -50,7 +50,7 @@ export type BrandActivitiesFormValues = {
50
50
  refundPolicy: boolean;
51
51
  transactionPolicy: boolean;
52
52
  };
53
- export type BusinessTypeFormValues = {
53
+ export declare type BusinessTypeFormValues = {
54
54
  licenseNumber: string;
55
55
  entityLegalName?: string;
56
56
  selectedEntityLicense?: EntityLicense;
@@ -58,18 +58,18 @@ export type BusinessTypeFormValues = {
58
58
  certificateId?: Array<string>;
59
59
  articleId?: string;
60
60
  };
61
- export type ActivitiesFormValues = {
61
+ export declare type ActivitiesFormValues = {
62
62
  activities: Array<Activity> | undefined;
63
63
  operationStartDate: string;
64
64
  };
65
- export type CustomersFormValues = {
65
+ export declare type CustomersFormValues = {
66
66
  customerLocations: Array<CustomerLocation>;
67
67
  expectedCustomer: ExpectedCustomer | undefined;
68
68
  expectedSale: ExpectedSaleRange | undefined;
69
69
  refundPolicy: boolean;
70
70
  transactionPolicy: boolean;
71
71
  };
72
- export type BankFormValues = {
72
+ export declare type BankFormValues = {
73
73
  iban: string;
74
74
  beneficiaryName: string;
75
75
  bankName: string;
@@ -77,7 +77,7 @@ export type BankFormValues = {
77
77
  uploading?: boolean;
78
78
  confirmPolicy: boolean;
79
79
  };
80
- export type TaxFormValues = {
80
+ export declare type TaxFormValues = {
81
81
  vatId: string;
82
82
  confirmPolicy: boolean;
83
83
  documentId?: Array<string>;
@@ -110,17 +110,17 @@ export interface IndividualExtraFormValues extends IndividualAttachmentsFormValu
110
110
  shareCount: string;
111
111
  shareValue: string;
112
112
  }
113
- export type IndividualAttachmentsFormValues = {
113
+ export declare type IndividualAttachmentsFormValues = {
114
114
  civilID?: Array<string>;
115
115
  signatureFileId?: Array<string>;
116
116
  civilIDUploading?: boolean;
117
117
  signatureFileUploading?: boolean;
118
118
  };
119
- export type PasswordCreateFormValues = {
119
+ export declare type PasswordCreateFormValues = {
120
120
  password: string;
121
121
  confirmPassword: string;
122
122
  };
123
- export type EntityNameFormValues = {
123
+ export declare type EntityNameFormValues = {
124
124
  legalName: string;
125
125
  licenseNumber: string;
126
126
  licenseType: string;
@@ -131,13 +131,13 @@ export type EntityNameFormValues = {
131
131
  certificateId?: Array<string>;
132
132
  articleId?: string;
133
133
  };
134
- export type EntityCapitalFormValues = {
134
+ export declare type EntityCapitalFormValues = {
135
135
  activities: Array<Activity>;
136
136
  capitalPaid: string;
137
137
  capitalShareCount: string;
138
138
  capitalShareValue: string;
139
139
  };
140
- export type BusinessDataFormValues = {
140
+ export declare type BusinessDataFormValues = {
141
141
  brandName: string;
142
142
  licenseNumber: string;
143
143
  selectedLicense?: License;
@@ -11,4 +11,4 @@ export declare enum DirectionMode {
11
11
  RTL = "rtl",
12
12
  LTR = "ltr"
13
13
  }
14
- export type ThemContext = Partial<Theme> | ((outerTheme: Theme) => Theme);
14
+ export declare type ThemContext = Partial<Theme> | ((outerTheme: Theme) => Theme);
@@ -1,4 +1,4 @@
1
- export type CreateAccountBody = {
1
+ export declare type CreateAccountBody = {
2
2
  lead_id: string;
3
3
  notify: {
4
4
  email: boolean;
@@ -8,7 +8,7 @@ export type CreateAccountBody = {
8
8
  is_acknowledged: boolean;
9
9
  step_name: string;
10
10
  };
11
- export type ExpressCreateAccountBody = {
11
+ export declare type ExpressCreateAccountBody = {
12
12
  post_url: string;
13
13
  lead_id: string;
14
14
  };
@@ -1,23 +1,23 @@
1
1
  import { AxiosRequestConfig } from 'axios';
2
2
  import { LanguageMode } from '../@types';
3
- export type MobileCredential = {
3
+ export declare type MobileCredential = {
4
4
  code: string;
5
5
  phone: string;
6
6
  };
7
- export type EmailCredential = {
7
+ export declare type EmailCredential = {
8
8
  email: string;
9
9
  };
10
- export type IDCredential = {
10
+ export declare type IDCredential = {
11
11
  country_code?: string;
12
12
  identification_id: string;
13
13
  identification_id_type?: string;
14
14
  date_of_birth?: string;
15
15
  };
16
- export type CivilID = {
16
+ export declare type CivilID = {
17
17
  identification_id: string;
18
18
  country_code: string;
19
19
  };
20
- export type CreateAuthBody = {
20
+ export declare type CreateAuthBody = {
21
21
  country: string;
22
22
  scope: string;
23
23
  user_credentail: MobileCredential | EmailCredential | IDCredential | CivilID;
@@ -30,7 +30,7 @@ export type CreateAuthBody = {
30
30
  lang?: LanguageMode;
31
31
  lead_id?: string;
32
32
  };
33
- export type VerifyAuthBody = {
33
+ export declare type VerifyAuthBody = {
34
34
  auth_token: string;
35
35
  auth_type: number;
36
36
  data: string;
@@ -42,28 +42,28 @@ export type VerifyAuthBody = {
42
42
  encryption_contract: Array<string>;
43
43
  remember_me?: boolean;
44
44
  };
45
- export type VerifyOperationAuthBody = {
45
+ export declare type VerifyOperationAuthBody = {
46
46
  auth_token: string;
47
47
  auth_type: number;
48
48
  };
49
- export type ResetPasswordCredential = {
49
+ export declare type ResetPasswordCredential = {
50
50
  otp: string;
51
51
  new_password: string;
52
52
  };
53
- export type ResetPasswordVerifyAuthBody = {
53
+ export declare type ResetPasswordVerifyAuthBody = {
54
54
  auth_token: string;
55
55
  auth_type: number;
56
56
  step_name: string;
57
57
  user_credentail: ResetPasswordCredential;
58
58
  encryption_contract: Array<string>;
59
59
  };
60
- export type CreatePasswordBody = {
60
+ export declare type CreatePasswordBody = {
61
61
  password: string;
62
62
  signup_token?: string;
63
63
  step_name: string;
64
64
  encryption_contract: Array<string>;
65
65
  };
66
- export type VerifyAuthExpressOTPBody = {
66
+ export declare type VerifyAuthExpressOTPBody = {
67
67
  auth_token?: string;
68
68
  verify_token?: string;
69
69
  lead_id?: string;
@@ -1,14 +1,14 @@
1
1
  import { AxiosRequestConfig } from 'axios';
2
- export type CheckEmailBody = {
2
+ export declare type CheckEmailBody = {
3
3
  email: string | null;
4
4
  encryption_contract: Array<string>;
5
5
  };
6
- export type CheckBrandBody = {
6
+ export declare type CheckBrandBody = {
7
7
  profile_name: string;
8
8
  country_code: string;
9
9
  encryption_contract: Array<string>;
10
10
  };
11
- export type CheckIBanBody = {
11
+ export declare type CheckIBanBody = {
12
12
  iban_number: string;
13
13
  encryption_contract?: Array<string>;
14
14
  };
@@ -13,7 +13,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
13
13
  function verb(n) { return function (v) { return step([n, v]); }; }
14
14
  function step(op) {
15
15
  if (f) throw new TypeError("Generator is already executing.");
16
- while (g && (g = 0, op[0] && (_ = 0)), _) try {
16
+ while (_) try {
17
17
  if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
18
18
  if (y = 0, t) op = [op[0] & 2, t.value];
19
19
  switch (op[0]) {
@@ -1,15 +1,15 @@
1
- export type UpdateBoardBody = {
1
+ export declare type UpdateBoardBody = {
2
2
  id?: string;
3
3
  infoId?: string;
4
4
  step_name: string;
5
5
  lang: string;
6
6
  encryption_contract?: string;
7
7
  };
8
- export type RetrieveBoardInfoBody = {
8
+ export declare type RetrieveBoardInfoBody = {
9
9
  id: string;
10
10
  infoId: string;
11
11
  };
12
- export type UpdateBoardInfoBody = {
12
+ export declare type UpdateBoardInfoBody = {
13
13
  id: string;
14
14
  infoId: string;
15
15
  step_name: string;
@@ -1,5 +1,5 @@
1
1
  import { BrandListBody, UpdateBrandBody, UpdateSalesChannels } from '../api/individual';
2
- export type RemoveBrandActivity = {
2
+ export declare type RemoveBrandActivity = {
3
3
  id: string;
4
4
  activities?: Array<{
5
5
  id: string;
@@ -1,4 +1,4 @@
1
- export type GetCitiesBody = {
1
+ export declare type GetCitiesBody = {
2
2
  country: string[];
3
3
  };
4
4
  declare const countryService: {
@@ -1,41 +1,41 @@
1
1
  import { AxiosRequestConfig } from 'axios';
2
- type GetOccupationBody = {
2
+ declare type GetOccupationBody = {
3
3
  page: number;
4
4
  };
5
- type GetSegmentsBody = {
5
+ declare type GetSegmentsBody = {
6
6
  page: number;
7
7
  };
8
- type GetTeamSizeBody = {
8
+ declare type GetTeamSizeBody = {
9
9
  page: number;
10
10
  };
11
- type SegmentDataListBody = {
11
+ declare type SegmentDataListBody = {
12
12
  page: number;
13
13
  limit: number;
14
14
  };
15
- type GetMonthlyIncomeBody = {
15
+ declare type GetMonthlyIncomeBody = {
16
16
  page: number;
17
17
  country_code: Array<string>;
18
18
  };
19
- export type DataElementBody = {
19
+ export declare type DataElementBody = {
20
20
  id: string;
21
21
  name: {
22
22
  en: string;
23
23
  ar: string;
24
24
  };
25
25
  };
26
- type GetCustomerBasesBody = {
26
+ declare type GetCustomerBasesBody = {
27
27
  page: number;
28
28
  };
29
- type GetExpectedSalesBody = {
29
+ declare type GetExpectedSalesBody = {
30
30
  page: number;
31
31
  };
32
- type GetExpectedCustomerSalesBody = {
32
+ declare type GetExpectedCustomerSalesBody = {
33
33
  page: number;
34
34
  };
35
- type GetSourceOfIncomeBody = {
35
+ declare type GetSourceOfIncomeBody = {
36
36
  page: number;
37
37
  };
38
- type GetChannelsOfServicesBody = {
38
+ declare type GetChannelsOfServicesBody = {
39
39
  page: number;
40
40
  };
41
41
  declare const dataService: {
@@ -1,4 +1,4 @@
1
- export type DocumentInfo = {
1
+ export declare type DocumentInfo = {
2
2
  type?: string;
3
3
  number?: string;
4
4
  issuing_country?: string;
@@ -6,7 +6,7 @@ export type DocumentInfo = {
6
6
  expiry_date?: string;
7
7
  images: Array<string>;
8
8
  };
9
- export type DocumentUpdateBody = {
9
+ export declare type DocumentUpdateBody = {
10
10
  entity_id?: boolean;
11
11
  individual_type_id?: number;
12
12
  country?: string;
@@ -1,5 +1,5 @@
1
1
  import { AxiosRequestConfig } from 'axios';
2
- export type EntityInfoBody = {
2
+ export declare type EntityInfoBody = {
3
3
  id: string;
4
4
  lead_id?: string;
5
5
  activities?: Array<{
@@ -34,7 +34,7 @@ export type EntityInfoBody = {
34
34
  encryption_contract?: Array<string>;
35
35
  vat_acknowledged_by?: string;
36
36
  };
37
- export type BankDocumentInfo = {
37
+ export declare type BankDocumentInfo = {
38
38
  type?: string;
39
39
  number?: string;
40
40
  issuing_country?: string;
@@ -42,7 +42,7 @@ export type BankDocumentInfo = {
42
42
  expiry_date?: string;
43
43
  files: Array<string>;
44
44
  };
45
- export type EntityBankUpdateBody = {
45
+ export declare type EntityBankUpdateBody = {
46
46
  wallet_id: string;
47
47
  acknowledged_by?: string;
48
48
  bank_account: {
@@ -58,7 +58,7 @@ export type EntityBankUpdateBody = {
58
58
  step_name: string;
59
59
  encryption_contract?: Array<string>;
60
60
  };
61
- export type UpdateEntityBody = {
61
+ export declare type UpdateEntityBody = {
62
62
  id: string;
63
63
  license?: {
64
64
  type?: string;
@@ -88,13 +88,13 @@ export type UpdateEntityBody = {
88
88
  };
89
89
  encryption_contract?: Array<string>;
90
90
  };
91
- export type UpdateEntityActivityBody = {
91
+ export declare type UpdateEntityActivityBody = {
92
92
  id: string;
93
93
  activities?: Array<{
94
94
  id: string;
95
95
  }>;
96
96
  };
97
- export type UpdateEntityCapitalBody = {
97
+ export declare type UpdateEntityCapitalBody = {
98
98
  id: string;
99
99
  capital: {
100
100
  paid: string;
@@ -104,11 +104,11 @@ export type UpdateEntityCapitalBody = {
104
104
  };
105
105
  };
106
106
  };
107
- export type UpdateEntityAOAFileBody = {
107
+ export declare type UpdateEntityAOAFileBody = {
108
108
  id: string;
109
109
  AOA_file_id: string;
110
110
  };
111
- export type RemoveEntityActivity = {
111
+ export declare type RemoveEntityActivity = {
112
112
  id: string;
113
113
  activities?: Array<{
114
114
  id: string;
@@ -1,5 +1,5 @@
1
1
  import { AxiosRequestConfig } from 'axios';
2
- export type UploadFileBody = {
2
+ export declare type UploadFileBody = {
3
3
  file_link_create: boolean;
4
4
  file?: File;
5
5
  title: string | undefined;
@@ -1,8 +1,8 @@
1
1
  import { DocumentInfo } from './document';
2
- export type BrandListBody = {
2
+ export declare type BrandListBody = {
3
3
  individual_id: string;
4
4
  };
5
- export type UpdateBrandBody = {
5
+ export declare type UpdateBrandBody = {
6
6
  id: string;
7
7
  name?: {
8
8
  en?: string;
@@ -74,14 +74,14 @@ export type UpdateBrandBody = {
74
74
  encryption_contract?: Array<string>;
75
75
  term_by?: string;
76
76
  };
77
- export type UpdateSalesChannels = {
77
+ export declare type UpdateSalesChannels = {
78
78
  id?: string;
79
79
  channel_services: Array<{
80
80
  id: string;
81
81
  address: string;
82
82
  }>;
83
83
  };
84
- export type UpdateIndividualBody = {
84
+ export declare type UpdateIndividualBody = {
85
85
  names?: {
86
86
  en?: {
87
87
  title?: string;
@@ -148,7 +148,7 @@ export interface UpdateIndividualWithTypeBody extends UpdateIndividualBody {
148
148
  export interface UpdateMultipleIndividualBody extends UpdateIndividualBody {
149
149
  ids: Array<string>;
150
150
  }
151
- export type GetIndividualListBody = {
151
+ export declare type GetIndividualListBody = {
152
152
  page: number;
153
153
  limit: number;
154
154
  business_id: string;
@@ -1,4 +1,4 @@
1
- export type InitBody = {
1
+ export declare type InitBody = {
2
2
  type: string;
3
3
  app_client_version: string;
4
4
  requirer_browser: string;
@@ -9,6 +9,7 @@ export type InitBody = {
9
9
  country_list?: boolean;
10
10
  merchant?: boolean;
11
11
  };
12
+ config_token?: string;
12
13
  };
13
14
  declare const initService: {
14
15
  getInitialData: (body: InitBody) => Promise<any>;