@tap-payments/auth-jsconnect 2.6.57-test → 2.6.59-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 (113) hide show
  1. package/build/@types/app.d.ts +3 -1
  2. package/build/@types/app.js +1 -1
  3. package/build/api/account.d.ts +1 -0
  4. package/build/api/account.js +8 -1
  5. package/build/api/auth.d.ts +2 -0
  6. package/build/api/index.d.ts +4 -3
  7. package/build/api/lead.d.ts +3 -0
  8. package/build/api/operator.d.ts +3 -2
  9. package/build/api/operator.js +2 -2
  10. package/build/app/rootReducer.d.ts +1 -0
  11. package/build/app/rootReducer.js +2 -0
  12. package/build/app/settings.js +3 -2
  13. package/build/app/store.d.ts +2 -0
  14. package/build/constants/app.d.ts +10 -0
  15. package/build/constants/app.js +53 -0
  16. package/build/features/app/auth/authStore.d.ts +189 -0
  17. package/build/features/app/auth/authStore.js +729 -0
  18. package/build/features/app/bank/bankStore.js +5 -4
  19. package/build/features/app/brand/brandStore.js +5 -4
  20. package/build/features/app/business/businessStore.js +37 -28
  21. package/build/features/app/connectExpress/connectExpressStore.js +3 -2
  22. package/build/features/app/entity/entityStore.js +5 -4
  23. package/build/features/app/individual/individualStore.js +5 -4
  24. package/build/features/app/tax/taxStore.js +5 -4
  25. package/build/features/auth/Auth.d.ts +8 -0
  26. package/build/features/auth/Auth.js +93 -0
  27. package/build/features/auth/index.d.ts +1 -0
  28. package/build/features/auth/index.js +1 -0
  29. package/build/features/auth/screens/AuthenticationList/AuthenticationList.d.ts +5 -0
  30. package/build/features/auth/screens/AuthenticationList/AuthenticationList.js +91 -0
  31. package/build/features/auth/screens/AuthenticationList/BrandList.d.ts +10 -0
  32. package/build/features/auth/screens/AuthenticationList/BrandList.js +81 -0
  33. package/build/features/auth/screens/AuthenticationList/EntityList.d.ts +11 -0
  34. package/build/features/auth/screens/AuthenticationList/EntityList.js +96 -0
  35. package/build/features/auth/screens/AuthenticationList/MerchantList.d.ts +10 -0
  36. package/build/features/auth/screens/AuthenticationList/MerchantList.js +107 -0
  37. package/build/features/auth/screens/AuthenticationList/index.d.ts +3 -0
  38. package/build/features/auth/screens/AuthenticationList/index.js +2 -0
  39. package/build/features/auth/screens/AuthenticationList/validation.d.ts +14 -0
  40. package/build/features/auth/screens/AuthenticationList/validation.js +8 -0
  41. package/build/features/auth/screens/BusinessCountry/BusinessCountry.d.ts +5 -0
  42. package/build/features/auth/screens/BusinessCountry/BusinessCountry.js +105 -0
  43. package/build/features/auth/screens/BusinessCountry/index.d.ts +3 -0
  44. package/build/features/auth/screens/BusinessCountry/index.js +2 -0
  45. package/build/features/auth/screens/CivilID/CivilID.d.ts +5 -0
  46. package/build/features/auth/screens/CivilID/CivilID.js +88 -0
  47. package/build/features/auth/screens/CivilID/IDNumber.d.ts +8 -0
  48. package/build/features/auth/screens/CivilID/IDNumber.js +54 -0
  49. package/build/features/auth/screens/CivilID/index.d.ts +3 -0
  50. package/build/features/auth/screens/CivilID/index.js +2 -0
  51. package/build/features/auth/screens/CivilID/validation.d.ts +8 -0
  52. package/build/features/auth/screens/CivilID/validation.js +4 -0
  53. package/build/features/auth/screens/Mobile/Mobile.d.ts +5 -0
  54. package/build/features/auth/screens/Mobile/Mobile.js +108 -0
  55. package/build/features/auth/screens/Mobile/MobileNumber.d.ts +13 -0
  56. package/build/features/auth/screens/Mobile/MobileNumber.js +158 -0
  57. package/build/features/auth/screens/Mobile/index.d.ts +3 -0
  58. package/build/features/auth/screens/Mobile/index.js +2 -0
  59. package/build/features/auth/screens/Mobile/validation.d.ts +8 -0
  60. package/build/features/auth/screens/Mobile/validation.js +30 -0
  61. package/build/features/auth/screens/NID/DOB.d.ts +6 -0
  62. package/build/features/auth/screens/NID/DOB.js +47 -0
  63. package/build/features/auth/screens/NID/IDNumber.d.ts +7 -0
  64. package/build/features/auth/screens/NID/IDNumber.js +55 -0
  65. package/build/features/auth/screens/NID/NID.d.ts +5 -0
  66. package/build/features/auth/screens/NID/NID.js +92 -0
  67. package/build/features/auth/screens/NID/index.d.ts +3 -0
  68. package/build/features/auth/screens/NID/index.js +2 -0
  69. package/build/features/auth/screens/NID/validation.d.ts +11 -0
  70. package/build/features/auth/screens/NID/validation.js +11 -0
  71. package/build/features/auth/screens/OTP/OTP.d.ts +5 -0
  72. package/build/features/auth/screens/OTP/OTP.js +87 -0
  73. package/build/features/auth/screens/OTP/OTPInput.d.ts +5 -0
  74. package/build/features/auth/screens/OTP/OTPInput.js +57 -0
  75. package/build/features/auth/screens/OTP/index.d.ts +3 -0
  76. package/build/features/auth/screens/OTP/index.js +2 -0
  77. package/build/features/auth/screens/OTP/validation.d.ts +8 -0
  78. package/build/features/auth/screens/OTP/validation.js +4 -0
  79. package/build/features/auth/screens/VerifyPACI/VerifyPACI.d.ts +5 -0
  80. package/build/features/auth/screens/VerifyPACI/VerifyPACI.js +34 -0
  81. package/build/features/auth/screens/VerifyPACI/index.d.ts +3 -0
  82. package/build/features/auth/screens/VerifyPACI/index.js +2 -0
  83. package/build/features/brand/screens/BrandActivities/ActivitiesList.d.ts +6 -33
  84. package/build/features/brand/screens/BrandActivities/RefundPolicy.d.ts +4 -17
  85. package/build/features/brand/screens/BrandActivities/TAC.d.ts +2 -7
  86. package/build/features/business/screens/BusinessType/LicenseType.d.ts +4 -26
  87. package/build/features/business/screens/Customers/CustomerLocations.d.ts +6 -33
  88. package/build/features/business/screens/Customers/RefundPolicy.d.ts +4 -17
  89. package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseType.d.ts +4 -26
  90. package/build/features/connectExpress/screens/CollectBusinessInfo/TAC.d.ts +2 -7
  91. package/build/features/connectExpress/screens/Mobile/MobileNumber.js +2 -2
  92. package/build/features/connectExpress/screens/NID/TAC.d.ts +2 -7
  93. package/build/features/entity/screens/EntityName/EntityTypeList.d.ts +6 -33
  94. package/build/features/featuresScreens.d.ts +1 -0
  95. package/build/features/featuresScreens.js +40 -3
  96. package/build/features/individual/screens/AdditionalIndividualInfo/PEPSwitch.d.ts +4 -26
  97. package/build/features/individual/screens/IndividualPersonalInfo/Gender.d.ts +4 -26
  98. package/build/features/shared/Address/CountryList.d.ts +5 -21
  99. package/build/features/shared/Address/InputSelect.d.ts +5 -21
  100. package/build/features/shared/Input/Input.d.ts +1 -1
  101. package/build/features/shared/UploadFile/FileUpload.d.ts +2 -7
  102. package/build/features/shared/UploadFile/UploadFile.d.ts +2 -7
  103. package/build/features/shared/UploadFile/UploadWrapper.d.ts +2 -7
  104. package/build/features/shared/UploadMultipleFile/UploadFile.d.ts +2 -7
  105. package/build/features/shared/UploadMultipleFile/UploadMultipleFile.d.ts +2 -7
  106. package/build/hooks/useAppDispatch.d.ts +1 -0
  107. package/build/index.d.ts +3 -2
  108. package/build/index.js +3 -1
  109. package/build/utils/common.d.ts +1 -0
  110. package/build/utils/common.js +8 -1
  111. package/build/utils/string.d.ts +1 -0
  112. package/build/utils/string.js +3 -0
  113. package/package.json +1 -1
@@ -207,6 +207,7 @@ interface LibCallbacks {
207
207
  onCreated?: (res: Record<string, any>) => void;
208
208
  onBoardCompleted?: () => void;
209
209
  onMaturityChanged?: (maturity: 'full' | 'express') => void;
210
+ storeBoardId?: (boardId: string) => void;
210
211
  }
211
212
  export interface LibConfig extends LibCallbacks {
212
213
  publicKey: string;
@@ -303,6 +304,7 @@ export type BrandInfo = {
303
304
  export declare enum FlowsTypes {
304
305
  CONNECT_EXPRESS = "connect_express",
305
306
  CONNECT = "connect",
307
+ AUTH = "auth",
306
308
  BANK = "bank",
307
309
  BUSINESS = "business",
308
310
  INDIVIDUAL = "individual",
@@ -310,7 +312,6 @@ export declare enum FlowsTypes {
310
312
  TAX = "tax",
311
313
  ENTITY = "entity",
312
314
  OTP = "otp",
313
- AUTH = "auth",
314
315
  BRAND = "brand",
315
316
  BOARD = "board"
316
317
  }
@@ -653,6 +654,7 @@ export type ConfigExpressTokenParams = {
653
654
  platform_redirect_url: string;
654
655
  data: Array<string>;
655
656
  };
657
+ export type ConfigAuthTokenParams = ConfigExpressTokenParams;
656
658
  export declare enum MerchantStatus {
657
659
  DISABLED = "disabled",
658
660
  ENABLED = "enabled"
@@ -24,6 +24,7 @@ export var FlowsTypes;
24
24
  (function (FlowsTypes) {
25
25
  FlowsTypes["CONNECT_EXPRESS"] = "connect_express";
26
26
  FlowsTypes["CONNECT"] = "connect";
27
+ FlowsTypes["AUTH"] = "auth";
27
28
  FlowsTypes["BANK"] = "bank";
28
29
  FlowsTypes["BUSINESS"] = "business";
29
30
  FlowsTypes["INDIVIDUAL"] = "individual";
@@ -31,7 +32,6 @@ export var FlowsTypes;
31
32
  FlowsTypes["TAX"] = "tax";
32
33
  FlowsTypes["ENTITY"] = "entity";
33
34
  FlowsTypes["OTP"] = "otp";
34
- FlowsTypes["AUTH"] = "auth";
35
35
  FlowsTypes["BRAND"] = "brand";
36
36
  FlowsTypes["BOARD"] = "board";
37
37
  })(FlowsTypes || (FlowsTypes = {}));
@@ -15,5 +15,6 @@ export type ExpressCreateAccountBody = {
15
15
  declare const accountService: {
16
16
  createAccount: (data: CreateAccountBody) => Promise<any>;
17
17
  expressCreateAccount: (data: ExpressCreateAccountBody) => Promise<any>;
18
+ checkAccountAvailability: (individualId: string) => Promise<any>;
18
19
  };
19
20
  export { accountService };
@@ -14,8 +14,15 @@ var expressCreateAccount = function (data) {
14
14
  data: data
15
15
  });
16
16
  };
17
+ var checkAccountAvailability = function (individualId) {
18
+ return httpClient({
19
+ method: 'get',
20
+ url: "".concat(ENDPOINT_PATHS.INDIVIDUAL, "/").concat(individualId, "/accounts")
21
+ });
22
+ };
17
23
  var accountService = {
18
24
  createAccount: createAccount,
19
- expressCreateAccount: expressCreateAccount
25
+ expressCreateAccount: expressCreateAccount,
26
+ checkAccountAvailability: checkAccountAvailability
20
27
  };
21
28
  export { accountService };
@@ -41,6 +41,8 @@ export type VerifyAuthBody = {
41
41
  sign_in: boolean;
42
42
  encryption_contract: Array<string>;
43
43
  remember_me?: boolean;
44
+ lead_id?: string;
45
+ terms?: Array<string>;
44
46
  };
45
47
  export type VerifyOperationAuthBody = {
46
48
  auth_token: string;
@@ -1,5 +1,5 @@
1
1
  import axiosInstance, { setAxiosGlobalHeaders, removeAxiosGlobalHeaders, getAxiosHeaders } from './axios';
2
- import { ValidateOperatorBody, UpdateOperatorBody } from './operator';
2
+ import { ValidateOperatorBody, ConfirmBody } from './operator';
3
3
  import { CreateAuthBody, VerifyAuthBody, CreatePasswordBody, VerifyOperationAuthBody, ResetPasswordVerifyAuthBody, VerifyAuthExpressOTPBody } from './auth';
4
4
  import { UpdateLeadBody, LeadVerifyBody, CreateLeadBody, LeadOTPVerifyBody, LeadIdentityUpdateBody, ExpressLeadVerifyBody } from './lead';
5
5
  import { CheckEmailBody, CheckBrandBody } from './availabilityServices';
@@ -20,7 +20,7 @@ declare const API: {
20
20
  };
21
21
  operatorService: {
22
22
  validateOperator: (body: ValidateOperatorBody) => Promise<any>;
23
- updateOperator: (data: UpdateOperatorBody) => Promise<any>;
23
+ confirm: (data: ConfirmBody) => Promise<any>;
24
24
  };
25
25
  countryService: {
26
26
  getCountries: (disableCountries?: boolean | undefined) => Promise<any> | {
@@ -86,6 +86,7 @@ declare const API: {
86
86
  accountService: {
87
87
  createAccount: (data: CreateAccountBody) => Promise<any>;
88
88
  expressCreateAccount: (data: ExpressCreateAccountBody) => Promise<any>;
89
+ checkAccountAvailability: (individualId: string) => Promise<any>;
89
90
  };
90
91
  dataService: {
91
92
  getChannelsOfServices: (data: {
@@ -173,6 +174,6 @@ declare const API: {
173
174
  getInitialData: (body: InitBody) => Promise<any>;
174
175
  };
175
176
  };
176
- export type { ValidateOperatorBody, CreateAuthBody, ExpressCreateAccountBody, VerifyAuthBody, CreateLeadBody, UpdateLeadBody, LeadVerifyBody, LeadOTPVerifyBody, CheckEmailBody, CheckBrandBody, LeadIdentityUpdateBody, EntityInfoBody, CreateAccountBody, EntityBankUpdateBody, CreatePasswordBody, BrandListBody, VerifyOperationAuthBody, ResetPasswordVerifyAuthBody, UpdateBoardBody, UpdateBrandBody, DataElementBody, UploadFileBody, UpdateEntityBody, DocumentUpdateBody, DocumentInfo, VerifyAuthExpressOTPBody, UpdateIndividualBody, UpdateEntityActivityBody, UpdateEntityCapitalBody, BankDocumentInfo, GetUserListBody, GetIndividualListBody, RequestEmailBody, DocumentBody, UpdateEntityAOAFileBody, InitBody, RemoveBrandActivity, RemoveEntityActivity, UpdateIndividualWithTypeBody, UpdateMultipleIndividualBody, ExpressLeadVerifyBody, UpdateOperatorBody };
177
+ export type { ValidateOperatorBody, CreateAuthBody, ExpressCreateAccountBody, VerifyAuthBody, CreateLeadBody, UpdateLeadBody, LeadVerifyBody, LeadOTPVerifyBody, CheckEmailBody, CheckBrandBody, LeadIdentityUpdateBody, EntityInfoBody, CreateAccountBody, EntityBankUpdateBody, CreatePasswordBody, BrandListBody, VerifyOperationAuthBody, ResetPasswordVerifyAuthBody, UpdateBoardBody, UpdateBrandBody, DataElementBody, UploadFileBody, UpdateEntityBody, DocumentUpdateBody, DocumentInfo, VerifyAuthExpressOTPBody, UpdateIndividualBody, UpdateEntityActivityBody, UpdateEntityCapitalBody, BankDocumentInfo, GetUserListBody, GetIndividualListBody, RequestEmailBody, DocumentBody, UpdateEntityAOAFileBody, InitBody, RemoveBrandActivity, RemoveEntityActivity, UpdateIndividualWithTypeBody, UpdateMultipleIndividualBody, ExpressLeadVerifyBody, ConfirmBody };
177
178
  export { setAxiosGlobalHeaders, removeAxiosGlobalHeaders, axiosInstance, getAxiosHeaders };
178
179
  export default API;
@@ -70,6 +70,9 @@ export type UpdateLeadBody = {
70
70
  export type LeadVerifyBody = {
71
71
  verify_token: string;
72
72
  service_name: string;
73
+ notification?: {
74
+ sms: boolean;
75
+ };
73
76
  };
74
77
  export type ExpressLeadVerifyBody = {
75
78
  token: string;
@@ -6,16 +6,17 @@ export type ValidateOperatorBody = {
6
6
  locale: string;
7
7
  connect_pkey?: string;
8
8
  };
9
- export type UpdateOperatorBody = {
9
+ export type ConfirmBody = {
10
10
  post_url: string;
11
11
  authentication_id: string;
12
12
  bi: string;
13
13
  brand_id: string;
14
14
  merchant_id: string;
15
15
  entity_id: string;
16
+ data: Array<string>;
16
17
  };
17
18
  declare const operatorService: {
18
19
  validateOperator: (body: ValidateOperatorBody) => Promise<any>;
19
- updateOperator: (data: UpdateOperatorBody) => Promise<any>;
20
+ confirm: (data: ConfirmBody) => Promise<any>;
20
21
  };
21
22
  export { operatorService };
@@ -59,7 +59,7 @@ var validateOperator = function (body) { return __awaiter(void 0, void 0, void 0
59
59
  }
60
60
  });
61
61
  }); };
62
- var updateOperator = function (data) {
62
+ var confirm = function (data) {
63
63
  return httpClient({
64
64
  method: 'post',
65
65
  url: "".concat(ENDPOINT_PATHS.CONNECT, "/confirm"),
@@ -68,6 +68,6 @@ var updateOperator = function (data) {
68
68
  };
69
69
  var operatorService = {
70
70
  validateOperator: validateOperator,
71
- updateOperator: updateOperator
71
+ confirm: confirm
72
72
  };
73
73
  export { operatorService };
@@ -10,6 +10,7 @@ declare const rootReducer: {
10
10
  entity: import("redux").Reducer<import("../features/app/entity/entityStore").EntityState, import("redux").AnyAction>;
11
11
  brand: import("redux").Reducer<import("../features/app/brand/brandStore").BrandState, import("redux").AnyAction>;
12
12
  connectExpress: import("redux").Reducer<import("../features/app/connectExpress/connectExpressStore").ConnectExpressState, import("redux").AnyAction>;
13
+ auth: import("redux").Reducer<import("../features/app/auth/authStore").AuthState, import("redux").AnyAction>;
13
14
  board: import("redux").Reducer<import("../features/app/board/boardStore").BoardState, import("redux").AnyAction>;
14
15
  };
15
16
  export default rootReducer;
@@ -10,6 +10,7 @@ import entity from '../features/app/entity/entityStore';
10
10
  import brand from '../features/app/brand/brandStore';
11
11
  import connectExpress from '../features/app/connectExpress/connectExpressStore';
12
12
  import board from '../features/app/board/boardStore';
13
+ import auth from '../features/app/auth/authStore';
13
14
  var rootReducer = {
14
15
  settings: settings,
15
16
  connect: connect,
@@ -22,6 +23,7 @@ var rootReducer = {
22
23
  entity: entity,
23
24
  brand: brand,
24
25
  connectExpress: connectExpress,
26
+ auth: auth,
25
27
  board: board
26
28
  };
27
29
  export default rootReducer;
@@ -163,9 +163,10 @@ export var onCloseComplete = createAsyncThunk('settings/onCloseComplete', functi
163
163
  bi: bi,
164
164
  brand_id: brandId || '',
165
165
  merchant_id: merchantId || '',
166
- entity_id: entityId || ''
166
+ entity_id: entityId || '',
167
+ data: settings.data.appConfig.data || []
167
168
  };
168
- return [4, API.operatorService.updateOperator(body)];
169
+ return [4, API.operatorService.confirm(body)];
169
170
  case 1:
170
171
  data = _d.sent();
171
172
  (_c = (_b = settings.data.appConfig).onStepCompleted) === null || _c === void 0 ? void 0 : _c.call(_b, settings.data.activeScreen.name, data);
@@ -11,6 +11,7 @@ export declare const store: import("@reduxjs/toolkit/dist/configureStore").Toolk
11
11
  entity: import("../features/app/entity/entityStore").EntityState;
12
12
  brand: import("../features/app/brand/brandStore").BrandState;
13
13
  connectExpress: import("../features/app/connectExpress/connectExpressStore").ConnectExpressState;
14
+ auth: import("../features/app/auth/authStore").AuthState;
14
15
  board: import("../features/app/board/boardStore").BoardState;
15
16
  }, import("redux").AnyAction, import("@reduxjs/toolkit").MiddlewareArray<[import("@reduxjs/toolkit").ThunkMiddleware<{
16
17
  settings: import("./settings").SettingsState;
@@ -24,6 +25,7 @@ export declare const store: import("@reduxjs/toolkit/dist/configureStore").Toolk
24
25
  entity: import("../features/app/entity/entityStore").EntityState;
25
26
  brand: import("../features/app/brand/brandStore").BrandState;
26
27
  connectExpress: import("../features/app/connectExpress/connectExpressStore").ConnectExpressState;
28
+ auth: import("../features/app/auth/authStore").AuthState;
27
29
  board: import("../features/app/board/boardStore").BoardState;
28
30
  }, import("redux").AnyAction, undefined>]>>;
29
31
  export type AppDispatch = typeof store.dispatch;
@@ -1,4 +1,6 @@
1
1
  import { ScreenStepNavigation, BusinessType } from '../@types';
2
+ export declare const CONNECT_DEV_URL = "https://connect.dev.tap.company";
3
+ export declare const CONNECT_PROD_URL = "https://connect.tap.company";
2
4
  export declare const CLIENT_ORIGIN: string;
3
5
  export declare const TAP_WEBSITE = "https://www.tap.company/";
4
6
  export declare const BUSINESS_WEBSITE = "https://businesses.tap.company/";
@@ -19,6 +21,7 @@ export declare const DIALOG_ID = "auth-js-connect-dialog";
19
21
  export declare const BACKGROUND_ID = "auth-js-connect-background";
20
22
  export declare const CONNECT_SCREENS_NAVIGATION: Array<ScreenStepNavigation>;
21
23
  export declare const CONNECT_EXPRESS_SCREENS_NAVIGATION: Array<ScreenStepNavigation>;
24
+ export declare const AUTH_SCREENS_NAVIGATION: Array<ScreenStepNavigation>;
22
25
  export declare const BUSINESS_SCREENS_NAVIGATION: Array<ScreenStepNavigation>;
23
26
  export declare const INDIVIDUAL_SCREENS_NAVIGATION: Array<ScreenStepNavigation>;
24
27
  export declare const PASSWORD_SCREENS_NAVIGATION: Array<ScreenStepNavigation>;
@@ -92,6 +95,13 @@ export declare const CONNECT_STEP_NAMES: {
92
95
  VERIFY_AUTH_PASSWORD: string;
93
96
  CONNECT_SUCCESS: string;
94
97
  };
98
+ export declare const AUTH_STEP_NAMES: {
99
+ CREATE_AUTH_MOBILE: string;
100
+ CREATE_AUTH_CIVIL_ID: string;
101
+ VERIFY_AUTH_MOBILE: string;
102
+ CREATE_AUTH_NID: string;
103
+ VERIFY_AUTH_NID: string;
104
+ };
95
105
  export declare const CONNECT_EXPRESS_STEP_NAMES: {
96
106
  CREATE_AUTH_MOBILE: string;
97
107
  VERIFY_AUTH_MOBILE: string;
@@ -1,4 +1,6 @@
1
1
  import { BusinessType } from '../@types';
2
+ export var CONNECT_DEV_URL = 'https://connect.dev.tap.company';
3
+ export var CONNECT_PROD_URL = 'https://connect.tap.company';
2
4
  export var CLIENT_ORIGIN = window.location.origin;
3
5
  export var TAP_WEBSITE = 'https://www.tap.company/';
4
6
  export var BUSINESS_WEBSITE = 'https://businesses.tap.company/';
@@ -199,6 +201,50 @@ export var CONNECT_EXPRESS_SCREENS_NAVIGATION = [
199
201
  order: 8
200
202
  }
201
203
  ];
204
+ export var AUTH_SCREENS_NAVIGATION = [
205
+ {
206
+ name: 'AUTH_NID_STEP',
207
+ next: 'AUTH_OTP_STEP',
208
+ prev: 'AUTH_MOBILE_STEP',
209
+ order: 1
210
+ },
211
+ {
212
+ name: 'AUTH_CIVIL_ID_STEP',
213
+ next: 'AUTH_VERIFY_PACI_STEP',
214
+ prev: 'AUTH_MOBILE_STEP',
215
+ order: 1
216
+ },
217
+ {
218
+ name: 'AUTH_MOBILE_STEP',
219
+ next: 'AUTH_OTP_STEP',
220
+ prev: ['AUTH_NID_STEP', 'AUTH_CIVIL_ID_STEP'],
221
+ order: 1
222
+ },
223
+ {
224
+ name: 'AUTH_BUSINESS_COUNTRY_STEP',
225
+ next: ['AUTH_NID_STEP', 'AUTH_MOBILE_STEP', 'AUTH_CIVIL_ID_STEP'],
226
+ prev: '',
227
+ order: 1
228
+ },
229
+ {
230
+ name: 'AUTH_OTP_STEP',
231
+ next: 'AUTH_AUTHENTICATION_LIST_STEP',
232
+ prev: ['AUTH_MOBILE_STEP', 'AUTH_NID_STEP'],
233
+ order: 2
234
+ },
235
+ {
236
+ name: 'AUTH_VERIFY_PACI_STEP',
237
+ next: 'AUTH_AUTHENTICATION_LIST_STEP',
238
+ prev: 'AUTH_CIVIL_ID_STEP',
239
+ order: 2
240
+ },
241
+ {
242
+ name: 'AUTH_AUTHENTICATION_LIST_STEP',
243
+ next: '',
244
+ prev: ['AUTH_MOBILE_STEP', 'AUTH_NID_STEP', 'AUTH_CIVIL_ID_STEP'],
245
+ order: 3
246
+ }
247
+ ];
202
248
  export var BUSINESS_SCREENS_NAVIGATION = [
203
249
  {
204
250
  name: 'BUSINESS_VERIFY_STEP',
@@ -662,6 +708,13 @@ export var CONNECT_STEP_NAMES = {
662
708
  VERIFY_AUTH_PASSWORD: 'connect_verify_auth_password',
663
709
  CONNECT_SUCCESS: 'connect_completed'
664
710
  };
711
+ export var AUTH_STEP_NAMES = {
712
+ CREATE_AUTH_MOBILE: 'auth_create_auth_mobile',
713
+ CREATE_AUTH_CIVIL_ID: 'auth_create_auth_civil_id',
714
+ VERIFY_AUTH_MOBILE: 'auth_verify_auth_mobile',
715
+ CREATE_AUTH_NID: 'auth_create_auth_nid',
716
+ VERIFY_AUTH_NID: 'auth_verify_auth_nid'
717
+ };
665
718
  export var CONNECT_EXPRESS_STEP_NAMES = {
666
719
  CREATE_AUTH_MOBILE: 'connect_express_create_auth_mobile',
667
720
  VERIFY_AUTH_MOBILE: 'connect_express_verify_auth_mobile',
@@ -0,0 +1,189 @@
1
+ import { RootState } from '../../../app/store';
2
+ import { ActionState, AuthForType, AuthenticationListFormValues, CivilFormValues, CountryCode, FlowsTypes, MobileFormValues, NIDFormValues, OTPFormValues, SharedState } from '../../../@types';
3
+ export declare const updateBusinessCountry: import("@reduxjs/toolkit").AsyncThunk<any, string, {
4
+ state?: unknown;
5
+ dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
6
+ extra?: unknown;
7
+ rejectValue?: unknown;
8
+ serializedErrorType?: unknown;
9
+ pendingMeta?: unknown;
10
+ fulfilledMeta?: unknown;
11
+ rejectedMeta?: unknown;
12
+ }>;
13
+ export declare const retrieveLeadIdentityByIdAsync: import("@reduxjs/toolkit").AsyncThunk<{
14
+ data: any;
15
+ countryCode: CountryCode;
16
+ }, string, {
17
+ state?: unknown;
18
+ dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
19
+ extra?: unknown;
20
+ rejectValue?: unknown;
21
+ serializedErrorType?: unknown;
22
+ pendingMeta?: unknown;
23
+ fulfilledMeta?: unknown;
24
+ rejectedMeta?: unknown;
25
+ }>;
26
+ export declare const createMobileAuth: import("@reduxjs/toolkit").AsyncThunk<{
27
+ response: any;
28
+ formData: MobileFormValues;
29
+ }, MobileFormValues, {
30
+ state?: unknown;
31
+ dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
32
+ extra?: unknown;
33
+ rejectValue?: unknown;
34
+ serializedErrorType?: unknown;
35
+ pendingMeta?: unknown;
36
+ fulfilledMeta?: unknown;
37
+ rejectedMeta?: unknown;
38
+ }>;
39
+ export declare const resendMobileAuthOTP: import("@reduxjs/toolkit").AsyncThunk<{
40
+ response: any;
41
+ formData: MobileFormValues;
42
+ }, MobileFormValues, {
43
+ state?: unknown;
44
+ dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
45
+ extra?: unknown;
46
+ rejectValue?: unknown;
47
+ serializedErrorType?: unknown;
48
+ pendingMeta?: unknown;
49
+ fulfilledMeta?: unknown;
50
+ rejectedMeta?: unknown;
51
+ }>;
52
+ export declare const verifyMobileOtp: import("@reduxjs/toolkit").AsyncThunk<{
53
+ data: any;
54
+ brandList: any;
55
+ entityList: any;
56
+ }, OTPFormValues, {
57
+ state?: unknown;
58
+ dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
59
+ extra?: unknown;
60
+ rejectValue?: unknown;
61
+ serializedErrorType?: unknown;
62
+ pendingMeta?: unknown;
63
+ fulfilledMeta?: unknown;
64
+ rejectedMeta?: unknown;
65
+ }>;
66
+ export declare const createNIDAuth: import("@reduxjs/toolkit").AsyncThunk<{
67
+ response: any;
68
+ formData: NIDFormValues;
69
+ }, NIDFormValues, {
70
+ state?: unknown;
71
+ dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
72
+ extra?: unknown;
73
+ rejectValue?: unknown;
74
+ serializedErrorType?: unknown;
75
+ pendingMeta?: unknown;
76
+ fulfilledMeta?: unknown;
77
+ rejectedMeta?: unknown;
78
+ }>;
79
+ export declare const resendNIDAuthOTP: import("@reduxjs/toolkit").AsyncThunk<{
80
+ response: any;
81
+ formData: NIDFormValues;
82
+ }, NIDFormValues, {
83
+ state?: unknown;
84
+ dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
85
+ extra?: unknown;
86
+ rejectValue?: unknown;
87
+ serializedErrorType?: unknown;
88
+ pendingMeta?: unknown;
89
+ fulfilledMeta?: unknown;
90
+ rejectedMeta?: unknown;
91
+ }>;
92
+ export declare const verifyNIDOtp: import("@reduxjs/toolkit").AsyncThunk<{
93
+ data: any;
94
+ brandList: any;
95
+ entityList: any;
96
+ }, OTPFormValues, {
97
+ state?: unknown;
98
+ dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
99
+ extra?: unknown;
100
+ rejectValue?: unknown;
101
+ serializedErrorType?: unknown;
102
+ pendingMeta?: unknown;
103
+ fulfilledMeta?: unknown;
104
+ rejectedMeta?: unknown;
105
+ }>;
106
+ export declare const createCivilIdAuth: import("@reduxjs/toolkit").AsyncThunk<{
107
+ response: any;
108
+ formData: CivilFormValues;
109
+ }, CivilFormValues, {
110
+ state?: unknown;
111
+ dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
112
+ extra?: unknown;
113
+ rejectValue?: unknown;
114
+ serializedErrorType?: unknown;
115
+ pendingMeta?: unknown;
116
+ fulfilledMeta?: unknown;
117
+ rejectedMeta?: unknown;
118
+ }>;
119
+ interface verifyPACIParams {
120
+ onSuccess: () => void;
121
+ }
122
+ export declare const verifyPACI: import("@reduxjs/toolkit").AsyncThunk<{
123
+ data: any;
124
+ brandList: any;
125
+ entityList: any;
126
+ }, verifyPACIParams, {
127
+ state?: unknown;
128
+ dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
129
+ extra?: unknown;
130
+ rejectValue?: unknown;
131
+ serializedErrorType?: unknown;
132
+ pendingMeta?: unknown;
133
+ fulfilledMeta?: unknown;
134
+ rejectedMeta?: unknown;
135
+ }>;
136
+ export declare const getMerchantList: import("@reduxjs/toolkit").AsyncThunk<any, string, {
137
+ state?: unknown;
138
+ dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
139
+ extra?: unknown;
140
+ rejectValue?: unknown;
141
+ serializedErrorType?: unknown;
142
+ pendingMeta?: unknown;
143
+ fulfilledMeta?: unknown;
144
+ rejectedMeta?: unknown;
145
+ }>;
146
+ export declare const confirmInfo: import("@reduxjs/toolkit").AsyncThunk<void, AuthenticationListFormValues & {
147
+ authId?: string | undefined;
148
+ }, {
149
+ state?: unknown;
150
+ dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
151
+ extra?: unknown;
152
+ rejectValue?: unknown;
153
+ serializedErrorType?: unknown;
154
+ pendingMeta?: unknown;
155
+ fulfilledMeta?: unknown;
156
+ rejectedMeta?: unknown;
157
+ }>;
158
+ interface ResponseData {
159
+ responseData?: Record<string, any>;
160
+ }
161
+ export interface authData {
162
+ mobileData: MobileFormValues;
163
+ nidData: NIDFormValues;
164
+ civilIdData: CivilFormValues;
165
+ otpData: OTPFormValues & {
166
+ authFor: AuthForType;
167
+ };
168
+ leadId?: string;
169
+ isStartFromBusinessCountry?: boolean;
170
+ flowName: FlowsTypes;
171
+ authenticationData: AuthenticationListFormValues;
172
+ }
173
+ export interface AuthState extends SharedState<authData & ResponseData> {
174
+ customLoading?: boolean;
175
+ merchantLoading?: boolean;
176
+ terminalLoading?: boolean;
177
+ }
178
+ export declare const authSlice: import("@reduxjs/toolkit").Slice<AuthState, {
179
+ setLeadId(state: AuthState, action: ActionState<string>): void;
180
+ setMobileCountryCode: (state: AuthState, action: ActionState<CountryCode>) => void;
181
+ clearError: (state: AuthState) => void;
182
+ storeIsStartFromBusinessCountry: (state: AuthState, action: ActionState<boolean>) => void;
183
+ resetStore: (state: AuthState) => void;
184
+ resetOTPValue: (state: AuthState) => void;
185
+ }, "auth/store">;
186
+ export declare const clearError: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"auth/store/clearError">, resetStore: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"auth/store/resetStore">, setMobileCountryCode: import("@reduxjs/toolkit").ActionCreatorWithPayload<CountryCode, "auth/store/setMobileCountryCode">, setLeadId: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "auth/store/setLeadId">, resetOTPValue: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"auth/store/resetOTPValue">, storeIsStartFromBusinessCountry: import("@reduxjs/toolkit").ActionCreatorWithPayload<boolean, "auth/store/storeIsStartFromBusinessCountry">;
187
+ declare const _default: import("redux").Reducer<AuthState, import("redux").AnyAction>;
188
+ export default _default;
189
+ export declare const authSelector: (state: RootState) => AuthState;