@tap-payments/auth-jsconnect 2.8.32-test → 2.8.35-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 (61) hide show
  1. package/build/features/app/bank/bankStore.js +4 -3
  2. package/build/features/app/board/boardStore.js +17 -11
  3. package/build/features/app/brand/brandStore.js +5 -4
  4. package/build/features/app/entity/entityStore.js +4 -3
  5. package/build/features/app/individual/individualStore.js +4 -3
  6. package/build/features/app/password/passwordStore.d.ts +35 -22
  7. package/build/features/app/password/passwordStore.js +197 -203
  8. package/build/features/app/tax/taxStore.js +4 -3
  9. package/build/features/auth/screens/AuthenticationList/EntityLicenseType.d.ts +4 -26
  10. package/build/features/bank/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +2 -2
  11. package/build/features/board/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +3 -4
  12. package/build/features/brand/screens/BrandActivities/ActivitiesList.d.ts +8 -35
  13. package/build/features/brand/screens/BrandActivities/CustomerBase.d.ts +3 -3
  14. package/build/features/brand/screens/BrandActivities/CustomerBase.js +1 -1
  15. package/build/features/brand/screens/BrandActivities/RefundPolicy.d.ts +5 -18
  16. package/build/features/brand/screens/BrandActivities/TAC.d.ts +2 -7
  17. package/build/features/brand/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +2 -2
  18. package/build/features/business/screens/Activities/ActivitiesList.d.ts +2 -2
  19. package/build/features/business/screens/Activities/OperationStartDate.d.ts +1 -1
  20. package/build/features/business/screens/BrandDetails/SalesChannel.d.ts +1 -1
  21. package/build/features/business/screens/BusinessType/LicenseType.d.ts +4 -26
  22. package/build/features/business/screens/Customers/CustomerLocations.d.ts +9 -36
  23. package/build/features/business/screens/Customers/CustomerLocations.js +1 -1
  24. package/build/features/business/screens/Customers/RefundPolicy.d.ts +5 -18
  25. package/build/features/business/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +2 -2
  26. package/build/features/connectExpress/screens/AuthenticationList/EntityLicenseType.d.ts +4 -26
  27. package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseType.d.ts +4 -26
  28. package/build/features/connectExpress/screens/CollectBusinessInfo/TAC.d.ts +2 -7
  29. package/build/features/connectExpress/screens/NID/TAC.d.ts +2 -7
  30. package/build/features/connectExpress/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +2 -2
  31. package/build/features/entity/screens/EntityCapital/ActivityList.d.ts +2 -2
  32. package/build/features/entity/screens/EntityName/EntityTypeList.d.ts +8 -35
  33. package/build/features/entity/screens/EntityName/ExpiryDate.d.ts +1 -1
  34. package/build/features/entity/screens/EntityName/IssuingDate.d.ts +1 -1
  35. package/build/features/entity/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +2 -2
  36. package/build/features/individual/screens/AdditionalIndividualInfo/AdditionalIndividualInfo.d.ts +1 -1
  37. package/build/features/individual/screens/AdditionalIndividualInfo/IsAuthorizedSwitch.d.ts +4 -26
  38. package/build/features/individual/screens/AdditionalIndividualInfo/PEPSwitch.d.ts +4 -26
  39. package/build/features/individual/screens/IndividualList/IndividualList.d.ts +2 -2
  40. package/build/features/individual/screens/IndividualPersonalInfo/Gender.d.ts +4 -26
  41. package/build/features/individual/screens/IndividualPersonalInfo/IndividualPersonalInfo.d.ts +1 -1
  42. package/build/features/individual/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +2 -2
  43. package/build/features/password/Password.js +3 -1
  44. package/build/features/password/screens/CreatePassword/CreatePassword.js +8 -4
  45. package/build/features/password/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +2 -2
  46. package/build/features/password/screens/Verify/Verify.js +4 -4
  47. package/build/features/shared/Address/CountryList.d.ts +7 -23
  48. package/build/features/shared/Address/InputSelect.d.ts +7 -23
  49. package/build/features/shared/Button/FlowsButtons.js +1 -1
  50. package/build/features/shared/Input/Input.d.ts +2 -2
  51. package/build/features/shared/SuccessFlowButtons/SuccessFlowButtons.d.ts +5 -1
  52. package/build/features/shared/SuccessFlowButtons/SuccessFlowButtons.js +3 -3
  53. package/build/features/shared/UploadFile/FileUpload.d.ts +2 -7
  54. package/build/features/shared/UploadFile/UploadFile.d.ts +2 -7
  55. package/build/features/shared/UploadFile/UploadWrapper.d.ts +2 -7
  56. package/build/features/shared/UploadMultipleFile/UploadFile.d.ts +2 -7
  57. package/build/features/shared/UploadMultipleFile/UploadMultipleFile.d.ts +2 -7
  58. package/build/features/tax/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +2 -2
  59. package/build/utils/string.d.ts +2 -2
  60. package/build/utils/string.js +8 -2
  61. package/package.json +1 -1
@@ -102,7 +102,7 @@ export var verifyLeadToken = createAsyncThunk('bankVerifyLeadToken', function (_
102
102
  bankData = _j.sent();
103
103
  _j.label = 6;
104
104
  case 6:
105
- thunkApi.dispatch(handleNextScreenStep());
105
+ sleep(100).then(function () { return thunkApi.dispatch(handleNextScreenStep()); });
106
106
  _j.label = 7;
107
107
  case 7: return [2, {
108
108
  data: data,
@@ -490,10 +490,11 @@ export var bankSlice = createSlice({
490
490
  state.loading = false;
491
491
  })
492
492
  .addCase(updateBoardSuccess.fulfilled, function (state, action) {
493
+ var _a;
493
494
  state.loading = false;
494
495
  state.error = null;
495
- var _a = action.payload || {}, flows = _a.flows, data = _a.data;
496
- state.data.verify.responseBody = __assign(__assign({}, state.data.verify.responseBody), { flows: flows, notification: data === null || data === void 0 ? void 0 : data.notification });
496
+ var _b = action.payload || {}, flows = _b.flows, data = _b.data;
497
+ state.data.verify.responseBody = __assign(__assign({}, state.data.verify.responseBody), { flows: flows, recipient: (_a = data === null || data === void 0 ? void 0 : data.notification) === null || _a === void 0 ? void 0 : _a.recipient });
497
498
  })
498
499
  .addCase(updateBoardSuccess.pending, function (state) {
499
500
  state.loading = true;
@@ -78,7 +78,7 @@ export var createVerifyTokenBy = createAsyncThunk('board/createVerifyTokenByBoar
78
78
  _c.sent();
79
79
  (_b = (_a = settings.data.appConfig).onFlowCompleted) === null || _b === void 0 ? void 0 : _b.call(_a, { boardId: data.id, boardInfoId: data.board_info_id });
80
80
  sleep(100).then(function () { return thunkApi.dispatch(handleCurrentActiveScreen('BOARD_SUCCESS_FLOWS_BUTTONS_STEP')); });
81
- return [2, __assign({}, data)];
81
+ return [2, __assign(__assign({}, data), { board_id: boardId })];
82
82
  }
83
83
  });
84
84
  }); });
@@ -130,27 +130,33 @@ export var verifyBoardLeadOTP = createAsyncThunk('board/verifyBoardLeadOTP', fun
130
130
  export var retrieveBoardDetails = createAsyncThunk('board/retrieveBoardDetails', function (_a) {
131
131
  var boardId = _a.boardId, boardInfoId = _a.boardInfoId;
132
132
  return __awaiter(void 0, void 0, void 0, function () {
133
- var boardInfoData, _b, boardInfoStatusData, boardData, _c, id, type, serviceCallBack, _d, boardRes, individualRes;
134
- var _e;
135
- return __generator(this, function (_f) {
136
- switch (_f.label) {
133
+ var boardInfoData, _b, boardInfoStatusData, data, _c, id, type, individualData, boardData, serviceCallBack, _d, boardRes, individualRes;
134
+ var _e, _f, _g;
135
+ return __generator(this, function (_h) {
136
+ switch (_h.label) {
137
137
  case 0: return [4, API.boardService.retrieveBoardInfo({ id: boardId, infoId: boardInfoId })];
138
138
  case 1:
139
- boardInfoData = _f.sent();
139
+ boardInfoData = _h.sent();
140
140
  return [4, Promise.all([
141
141
  API.boardService.retrieveBoardInfoStatus(boardId),
142
142
  API.boardService.retrieveBoardDetails(boardId)
143
143
  ])];
144
144
  case 2:
145
- _b = _f.sent(), boardInfoStatusData = _b[0], boardData = _b[1];
145
+ _b = _h.sent(), boardInfoStatusData = _b[0], data = _b[1];
146
146
  _c = ((_e = boardInfoData === null || boardInfoData === void 0 ? void 0 : boardInfoData.notification) === null || _e === void 0 ? void 0 : _e.recipient) || {}, id = _c.id, type = _c.type;
147
+ individualData = data === null || data === void 0 ? void 0 : data.user;
148
+ boardData = data;
149
+ if (!(((_f = data === null || data === void 0 ? void 0 : data.user) === null || _f === void 0 ? void 0 : _f.id) !== id)) return [3, 4];
147
150
  serviceCallBack = function () { return API.individualService.retrieveIndividual(id, type); };
148
151
  return [4, retrieveIndividualData(type, boardData, serviceCallBack)];
149
152
  case 3:
150
- _d = _f.sent(), boardRes = _d.boardRes, individualRes = _d.individualRes;
151
- return [2, {
152
- data: __assign(__assign({}, boardRes), { user: individualRes, brand: boardRes === null || boardRes === void 0 ? void 0 : boardRes.brand, bank_account: boardRes === null || boardRes === void 0 ? void 0 : boardRes.bank_account, entity: boardRes === null || boardRes === void 0 ? void 0 : boardRes.entity, merchant: boardRes === null || boardRes === void 0 ? void 0 : boardRes.merchant, name: individualRes === null || individualRes === void 0 ? void 0 : individualRes.names, business: boardRes === null || boardRes === void 0 ? void 0 : boardRes.business, individuals: boardRes === null || boardRes === void 0 ? void 0 : boardRes.individuals, contact: individualRes === null || individualRes === void 0 ? void 0 : individualRes.contact, flows: (boardInfoStatusData === null || boardInfoStatusData === void 0 ? void 0 : boardInfoStatusData.info) || [] })
153
- }];
153
+ _d = _h.sent(), boardRes = _d.boardRes, individualRes = _d.individualRes;
154
+ boardData = boardRes;
155
+ individualData = individualRes;
156
+ _h.label = 4;
157
+ case 4: return [2, {
158
+ data: __assign(__assign({}, boardData), { user: individualData, brand: boardData === null || boardData === void 0 ? void 0 : boardData.brand, bank_account: boardData === null || boardData === void 0 ? void 0 : boardData.bank_account, entity: boardData === null || boardData === void 0 ? void 0 : boardData.entity, merchant: boardData === null || boardData === void 0 ? void 0 : boardData.merchant, name: individualData === null || individualData === void 0 ? void 0 : individualData.names, business: boardData === null || boardData === void 0 ? void 0 : boardData.business, individuals: boardData === null || boardData === void 0 ? void 0 : boardData.individuals, contact: individualData === null || individualData === void 0 ? void 0 : individualData.contact, flows: (boardInfoStatusData === null || boardInfoStatusData === void 0 ? void 0 : boardInfoStatusData.info) || [], recipient: (_g = boardInfoData === null || boardInfoData === void 0 ? void 0 : boardInfoData.notification) === null || _g === void 0 ? void 0 : _g.recipient })
159
+ }];
154
160
  }
155
161
  });
156
162
  });
@@ -108,7 +108,7 @@ export var verifyLeadToken = createAsyncThunk('brand/verifyLeadToken', function
108
108
  case 5: return [4, API.dataService.getChannelsOfServices({ page: 0 })];
109
109
  case 6:
110
110
  salesChannels = _f.sent();
111
- thunkApi.dispatch(handleNextScreenStep('BRAND_INFO_STEP'));
111
+ sleep(100).then(function () { return thunkApi.dispatch(handleNextScreenStep('BRAND_INFO_STEP')); });
112
112
  _f.label = 7;
113
113
  case 7: return [2, {
114
114
  data: data,
@@ -760,7 +760,7 @@ export var brandSlice = createSlice({
760
760
  state.data.brandActivities.refundPolicy = element.agree;
761
761
  }
762
762
  });
763
- state.data.verify.responseBody = __assign(__assign({}, state.data.verify.responseBody), { activities: entity_activities });
763
+ state.data.verify.responseBody = __assign(__assign(__assign({}, state.data.verify.responseBody), { activities: entity_activities }), (entityData && { entity: entityData }));
764
764
  })
765
765
  .addCase(updateSegmentBrand.rejected, function (state, action) {
766
766
  state.loading = false;
@@ -836,10 +836,11 @@ export var brandSlice = createSlice({
836
836
  state.loading = false;
837
837
  })
838
838
  .addCase(updateBoardSuccess.fulfilled, function (state, action) {
839
+ var _a;
839
840
  state.loading = false;
840
841
  state.error = null;
841
- var _a = action.payload || {}, flows = _a.flows, data = _a.data;
842
- state.data.verify.responseBody = __assign(__assign({}, state.data.verify.responseBody), { flows: flows, notification: data === null || data === void 0 ? void 0 : data.notification });
842
+ var _b = action.payload || {}, flows = _b.flows, data = _b.data;
843
+ state.data.verify.responseBody = __assign(__assign({}, state.data.verify.responseBody), { flows: flows, recipient: (_a = data === null || data === void 0 ? void 0 : data.notification) === null || _a === void 0 ? void 0 : _a.recipient });
843
844
  })
844
845
  .addCase(updateBoardSuccess.pending, function (state) {
845
846
  state.loading = true;
@@ -111,7 +111,7 @@ export var verifyLeadToken = createAsyncThunk('entityVerifyLeadToken', function
111
111
  return [4, API.entityService.retrieveEntityType()];
112
112
  case 6:
113
113
  entityTypes = _g.sent();
114
- thunkApi.dispatch(handleNextScreenStep('ENTITY_NAME_STEP'));
114
+ sleep(100).then(function () { return thunkApi.dispatch(handleNextScreenStep('ENTITY_NAME_STEP')); });
115
115
  _g.label = 7;
116
116
  case 7: return [2, {
117
117
  data: data,
@@ -694,10 +694,11 @@ export var entitySlice = createSlice({
694
694
  state.loading = false;
695
695
  })
696
696
  .addCase(updateBoardSuccess.fulfilled, function (state, action) {
697
+ var _a;
697
698
  state.loading = false;
698
699
  state.error = null;
699
- var _a = action.payload || {}, flows = _a.flows, data = _a.data;
700
- state.data.verify.responseBody = __assign(__assign({}, state.data.verify.responseBody), { flows: flows, notification: data === null || data === void 0 ? void 0 : data.notification });
700
+ var _b = action.payload || {}, flows = _b.flows, data = _b.data;
701
+ state.data.verify.responseBody = __assign(__assign({}, state.data.verify.responseBody), { flows: flows, recipient: (_a = data === null || data === void 0 ? void 0 : data.notification) === null || _a === void 0 ? void 0 : _a.recipient });
701
702
  })
702
703
  .addCase(updateBoardSuccess.pending, function (state) {
703
704
  state.loading = true;
@@ -160,7 +160,7 @@ export var verifyToken = createAsyncThunk('individual/verifyToken', function (_a
160
160
  _j.sent();
161
161
  _j.label = 15;
162
162
  case 15:
163
- thunkApi.dispatch(handleNextScreenStep('INDIVIDUAL_PERSONAL_INDIVIDUAL_INFO_STEP'));
163
+ sleep(100).then(function () { return thunkApi.dispatch(handleNextScreenStep('INDIVIDUAL_PERSONAL_INDIVIDUAL_INFO_STEP')); });
164
164
  _j.label = 16;
165
165
  case 16: return [3, 18];
166
166
  case 17:
@@ -1321,10 +1321,11 @@ export var individualSlice = createSlice({
1321
1321
  state.error = action.error.message;
1322
1322
  })
1323
1323
  .addCase(updateBoardSuccess.fulfilled, function (state, action) {
1324
+ var _a;
1324
1325
  state.loading = false;
1325
1326
  state.error = null;
1326
- var _a = action.payload || {}, flows = _a.flows, data = _a.data;
1327
- state.data.verify.responseBody = __assign(__assign({}, state.data.verify.responseBody), { flows: flows, notification: data === null || data === void 0 ? void 0 : data.notification });
1327
+ var _b = action.payload || {}, flows = _b.flows, data = _b.data;
1328
+ state.data.verify.responseBody = __assign(__assign({}, state.data.verify.responseBody), { flows: flows, recipient: (_a = data === null || data === void 0 ? void 0 : data.notification) === null || _a === void 0 ? void 0 : _a.recipient });
1328
1329
  })
1329
1330
  .addCase(updateBoardSuccess.pending, function (state) {
1330
1331
  state.loading = true;
@@ -2,8 +2,6 @@ import { RootState } from '../../../app/store';
2
2
  import { FlowsTypes, OTPFormValues, PasswordCreateFormValues, ResponseData, SharedState } from '../../../@types';
3
3
  export declare const verifyLeadToken: import("@reduxjs/toolkit").AsyncThunk<{
4
4
  data: any;
5
- individualData: any;
6
- boardResponse: any;
7
5
  token: string;
8
6
  }, string, {
9
7
  state?: unknown;
@@ -27,9 +25,12 @@ export declare const resendOTP: import("@reduxjs/toolkit").AsyncThunk<{
27
25
  fulfilledMeta?: unknown;
28
26
  rejectedMeta?: unknown;
29
27
  }>;
30
- export declare const retrieveBoardDetails: import("@reduxjs/toolkit").AsyncThunk<{
31
- data: any;
32
- }, string, {
28
+ type RetrieveBoardProps = {
29
+ boardId: string;
30
+ individualId: string;
31
+ individualType: string;
32
+ };
33
+ export declare const retrieveBoardDetails: import("@reduxjs/toolkit").AsyncThunk<any, RetrieveBoardProps, {
33
34
  state?: unknown;
34
35
  dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
35
36
  extra?: unknown;
@@ -68,8 +69,11 @@ export declare const createPassword: import("@reduxjs/toolkit").AsyncThunk<{
68
69
  rejectedMeta?: unknown;
69
70
  }>;
70
71
  export declare const updateBoardSuccess: import("@reduxjs/toolkit").AsyncThunk<{
71
- response: any;
72
- formData: void;
72
+ data: any;
73
+ flows?: undefined;
74
+ } | {
75
+ data: any;
76
+ flows: any;
73
77
  } | undefined, void, {
74
78
  state?: unknown;
75
79
  dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
@@ -80,19 +84,35 @@ export declare const updateBoardSuccess: import("@reduxjs/toolkit").AsyncThunk<{
80
84
  fulfilledMeta?: unknown;
81
85
  rejectedMeta?: unknown;
82
86
  }>;
83
- export declare const verifyOperationToken: import("@reduxjs/toolkit").AsyncThunk<{
84
- data: any;
87
+ export declare const retrieveBoardStatus: import("@reduxjs/toolkit").AsyncThunk<{
88
+ flows: any;
89
+ }, void, {
90
+ state?: unknown;
91
+ dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
92
+ extra?: unknown;
93
+ rejectValue?: unknown;
94
+ serializedErrorType?: unknown;
95
+ pendingMeta?: unknown;
96
+ fulfilledMeta?: unknown;
97
+ rejectedMeta?: unknown;
98
+ }>;
99
+ interface verifyOperationTokenProps {
85
100
  token: string;
86
101
  boardId: string;
87
102
  boardInfoId: string;
88
- individualData: any;
89
- boardResponse: any;
90
- flows: any;
91
- }, {
103
+ userId: string;
104
+ userType: string;
105
+ }
106
+ export declare const verifyOperationToken: import("@reduxjs/toolkit").AsyncThunk<{
107
+ recipient?: {
108
+ id: string;
109
+ type: string;
110
+ } | undefined;
111
+ data: any;
92
112
  token: string;
93
113
  boardId: string;
94
114
  boardInfoId: string;
95
- }, {
115
+ }, verifyOperationTokenProps, {
96
116
  state?: unknown;
97
117
  dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
98
118
  extra?: unknown;
@@ -136,14 +156,7 @@ export declare const resetPassword: import("@reduxjs/toolkit").AsyncThunk<{
136
156
  }>;
137
157
  export declare const retrieveBoardResetPasswordSuccess: import("@reduxjs/toolkit").AsyncThunk<{
138
158
  id: any;
139
- response: {
140
- flows?: undefined;
141
- };
142
- } | {
143
- id: any;
144
- response: {
145
- flows: any;
146
- };
159
+ flows: any;
147
160
  }, void, {
148
161
  state?: unknown;
149
162
  dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;