@tap-payments/auth-jsconnect 2.5.5 → 2.5.6
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.
- package/build/@types/app.d.ts +5 -1
- package/build/@types/redux.d.ts +1 -0
- package/build/api/data.d.ts +4 -17
- package/build/api/data.js +5 -45
- package/build/api/entity.d.ts +3 -2
- package/build/api/entity.js +12 -4
- package/build/api/index.d.ts +5 -21
- package/build/components/Providers/ThemeProvider.js +1 -1
- package/build/constants/api.d.ts +2 -7
- package/build/constants/api.js +5 -15
- package/build/constants/app.js +7 -1
- package/build/features/app/auth/authStore.js +24 -21
- package/build/features/app/bank/bankStore.d.ts +13 -19
- package/build/features/app/bank/bankStore.js +183 -165
- package/build/features/app/board/boardStore.js +16 -10
- package/build/features/app/brand/brandStore.d.ts +17 -31
- package/build/features/app/brand/brandStore.js +250 -261
- package/build/features/app/business/businessStore.js +16 -16
- package/build/features/app/connect/connectStore.js +7 -7
- package/build/features/app/connectExpress/connectExpressStore.d.ts +5 -1
- package/build/features/app/connectExpress/connectExpressStore.js +64 -27
- package/build/features/app/entity/entityStore.d.ts +20 -34
- package/build/features/app/entity/entityStore.js +204 -249
- package/build/features/app/individual/individualStore.d.ts +17 -36
- package/build/features/app/individual/individualStore.js +228 -270
- package/build/features/app/password/passwordStore.d.ts +21 -25
- package/build/features/app/password/passwordStore.js +203 -220
- package/build/features/app/tax/taxStore.d.ts +13 -7
- package/build/features/app/tax/taxStore.js +168 -147
- package/build/features/auth/Auth.d.ts +0 -2
- package/build/features/auth/Auth.js +7 -7
- package/build/features/auth/screens/AuthSwitch/AuthSwitch.js +1 -1
- package/build/features/bank/Bank.js +5 -3
- package/build/features/bank/screens/BankDetails/BankDetails.js +17 -4
- package/build/features/board/Board.d.ts +2 -0
- package/build/features/board/Board.js +13 -7
- package/build/features/board/screens/PrepareDataLoading/PrepareDataLoading.d.ts +4 -0
- package/build/features/board/screens/PrepareDataLoading/PrepareDataLoading.js +10 -0
- package/build/features/board/screens/PrepareDataLoading/index.d.ts +2 -0
- package/build/features/board/screens/PrepareDataLoading/index.js +2 -0
- package/build/features/board/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +12 -2
- package/build/features/brand/Brand.js +5 -3
- package/build/features/brand/screens/BrandActivities/ActivitiesList.d.ts +2 -2
- package/build/features/brand/screens/BrandActivities/BrandActivities.js +48 -11
- package/build/features/brand/screens/BrandActivities/CustomerBase.d.ts +3 -3
- package/build/features/brand/screens/BrandActivities/RefundPolicy.d.ts +2 -2
- package/build/features/brand/screens/BrandInfo/BrandInfo.js +22 -4
- package/build/features/brand/screens/BrandSegmentInfo/BrandSegmentInfo.js +22 -6
- package/build/features/business/Business.js +5 -3
- package/build/features/business/screens/Activities/Activities.js +9 -1
- package/build/features/business/screens/Activities/ActivitiesList.d.ts +2 -2
- package/build/features/business/screens/Activities/OperationStartDate.d.ts +1 -1
- package/build/features/business/screens/BrandDetails/SalesChannel.d.ts +1 -1
- package/build/features/business/screens/Customers/CustomerLocations.d.ts +3 -3
- package/build/features/business/screens/Customers/Customers.js +9 -1
- package/build/features/business/screens/Customers/RefundPolicy.d.ts +2 -2
- package/build/features/connect/Connect.js +5 -4
- package/build/features/connect/screens/BusinessCountry/BusinessCountry.js +7 -1
- package/build/features/connectExpress/ConnectExpress.js +5 -4
- package/build/features/entity/Entity.js +5 -3
- package/build/features/entity/screens/EntityCapital/ActivityList.d.ts +2 -2
- package/build/features/entity/screens/EntityCapital/EntityCapital.js +33 -9
- package/build/features/entity/screens/EntityName/EntityName.js +31 -14
- package/build/features/entity/screens/EntityName/EntityTypeList.d.ts +2 -2
- package/build/features/entity/screens/EntityName/ExpiryDate.d.ts +1 -1
- package/build/features/entity/screens/EntityName/IssuingDate.d.ts +1 -1
- package/build/features/featuresScreens.js +5 -0
- package/build/features/individual/Individual.js +5 -3
- package/build/features/individual/screens/AdditionalIndividualInfo/AdditionalIndividualInfo.d.ts +1 -1
- package/build/features/individual/screens/AdditionalIndividualInfo/AdditionalIndividualInfo.js +43 -10
- package/build/features/individual/screens/IndividualList/IndividualList.d.ts +2 -2
- package/build/features/individual/screens/IndividualList/IndividualList.js +7 -0
- package/build/features/individual/screens/IndividualList/UserList.js +3 -3
- package/build/features/individual/screens/IndividualPersonalInfo/IndividualPersonalInfo.d.ts +1 -1
- package/build/features/individual/screens/IndividualPersonalInfo/IndividualPersonalInfo.js +73 -18
- package/build/features/password/Password.js +6 -4
- package/build/features/shared/Address/CountryList.d.ts +2 -2
- package/build/features/shared/Address/InputSelect.d.ts +2 -2
- package/build/features/shared/Button/FlowsButtons.js +10 -2
- package/build/features/shared/Input/Input.d.ts +1 -1
- package/build/features/signIn/SignIn.js +15 -5
- package/build/features/tax/Tax.js +5 -3
- package/build/features/tax/screens/TaxDetails/TaxDetails.js +7 -2
- package/build/hooks/index.d.ts +1 -0
- package/build/hooks/index.js +1 -0
- package/build/hooks/useAppConfig.js +1 -1
- package/build/hooks/useAppTheme.js +4 -3
- package/build/hooks/useFormDirtyCheck.d.ts +10 -0
- package/build/hooks/useFormDirtyCheck.js +66 -0
- package/build/theme/theme.d.ts +1 -1
- package/build/theme/theme.js +2 -2
- package/package.json +1 -1
|
@@ -51,14 +51,14 @@ import API from '../../../api';
|
|
|
51
51
|
import { FlowsTypes } from '../../../@types';
|
|
52
52
|
import { handleCurrentActiveScreen, handleNextScreenStep, handlePrevScreenStep, handlePublicKey, handleSetCountryByIso2, onCloseComplete } from '../../../app/settings';
|
|
53
53
|
import { PASSWORD_OPERATION_TYPE, PASSWORD_STEP_NAMES } from '../../../constants';
|
|
54
|
-
import { retrieveIndividualData, sleep } from '../../../utils';
|
|
54
|
+
import { retrieveIndividualData, sendCustomEventToGTM, sleep } from '../../../utils';
|
|
55
55
|
export var verifyLeadToken = createAsyncThunk('passwordVerifyLeadToken', function (_a, thunkApi) {
|
|
56
56
|
var token = _a.token, isInternally = _a.isInternally;
|
|
57
57
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
58
|
-
var payload, data,
|
|
59
|
-
var
|
|
60
|
-
return __generator(this, function (
|
|
61
|
-
switch (
|
|
58
|
+
var payload, data, _b, config, board_info_password_status, country_code, board_id, recipient, countryIso2, publicKey, data_1, flows, data_2;
|
|
59
|
+
var _c, _d;
|
|
60
|
+
return __generator(this, function (_e) {
|
|
61
|
+
switch (_e.label) {
|
|
62
62
|
case 0:
|
|
63
63
|
payload = __assign({ service_name: 'tap_email', verify_token: token }, (isInternally && {
|
|
64
64
|
notification: {
|
|
@@ -67,63 +67,47 @@ export var verifyLeadToken = createAsyncThunk('passwordVerifyLeadToken', functio
|
|
|
67
67
|
}));
|
|
68
68
|
return [4, API.leadService.verifyLeadToken(payload)];
|
|
69
69
|
case 1:
|
|
70
|
-
data = (
|
|
71
|
-
|
|
72
|
-
if (((_e = data === null || data === void 0 ? void 0 : data.errors) === null || _e === void 0 ? void 0 : _e.length) || (data === null || data === void 0 ? void 0 : data.mw_error))
|
|
70
|
+
data = (_e.sent()).data;
|
|
71
|
+
if (((_c = data === null || data === void 0 ? void 0 : data.errors) === null || _c === void 0 ? void 0 : _c.length) || (data === null || data === void 0 ? void 0 : data.mw_error))
|
|
73
72
|
throw new Error(data.errors[0].description || (data === null || data === void 0 ? void 0 : data.mw_error));
|
|
74
73
|
if (isInternally)
|
|
75
74
|
data.step_name = PASSWORD_STEP_NAMES.PASSWORD_INFO;
|
|
76
|
-
_b = data || {}, config = _b.config, board_info_password_status = _b.board_info_password_status, country_code = _b.country_code, board_id = _b.
|
|
75
|
+
_b = data || {}, config = _b.config, board_info_password_status = _b.board_info_password_status, country_code = _b.country_code, board_id = _b.id, recipient = _b.recipient;
|
|
76
|
+
countryIso2 = country_code;
|
|
77
|
+
if (countryIso2)
|
|
78
|
+
thunkApi.dispatch(handleSetCountryByIso2(countryIso2));
|
|
77
79
|
publicKey = config === null || config === void 0 ? void 0 : config.public_key;
|
|
78
|
-
if (publicKey)
|
|
80
|
+
if (publicKey)
|
|
79
81
|
thunkApi.dispatch(handlePublicKey(publicKey));
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
countryIso2 = country_code;
|
|
83
|
-
thunkApi.dispatch(handleSetCountryByIso2(country_code));
|
|
84
|
-
}
|
|
85
|
-
if (!board_id) return [3, 7];
|
|
86
|
-
if (!board_info_id) return [3, 3];
|
|
87
|
-
return [4, API.boardService.retrieveBoardInfo({ id: board_id, infoId: board_info_id })];
|
|
82
|
+
if (!!country_code) return [3, 3];
|
|
83
|
+
return [4, API.boardService.retrieveBoardDetails(board_id)];
|
|
88
84
|
case 2:
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
85
|
+
data_1 = _e.sent();
|
|
86
|
+
if ((_d = data_1 === null || data_1 === void 0 ? void 0 : data_1.entity) === null || _d === void 0 ? void 0 : _d.country)
|
|
87
|
+
thunkApi.dispatch(handleSetCountryByIso2(data_1.entity.country));
|
|
88
|
+
_e.label = 3;
|
|
89
|
+
case 3:
|
|
90
|
+
flows = [];
|
|
91
|
+
if (!(data.step_name === PASSWORD_STEP_NAMES.PHONE_AUTH)) return [3, 4];
|
|
92
|
+
thunkApi.dispatch(handleCurrentActiveScreen('PASSWORD_VERIFY_STEP'));
|
|
93
|
+
return [3, 7];
|
|
92
94
|
case 4:
|
|
93
|
-
|
|
94
|
-
return [4,
|
|
95
|
+
if (!(board_info_password_status === 'completed')) return [3, 6];
|
|
96
|
+
return [4, Promise.all([
|
|
97
|
+
API.boardService.retrieveBoardInfoStatus(board_id),
|
|
98
|
+
thunkApi.dispatch(retrieveBoardDetails({ boardId: board_id, individualId: recipient === null || recipient === void 0 ? void 0 : recipient.id, individualType: recipient === null || recipient === void 0 ? void 0 : recipient.type })).unwrap()
|
|
99
|
+
])];
|
|
95
100
|
case 5:
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
return [
|
|
101
|
+
data_2 = (_e.sent())[0];
|
|
102
|
+
flows = (data_2 === null || data_2 === void 0 ? void 0 : data_2.info) || [];
|
|
103
|
+
thunkApi.dispatch(handleNextScreenStep('PASSWORD_SUCCESS_FOUR_FLOWS_BUTTONS_STEP'));
|
|
104
|
+
return [3, 7];
|
|
100
105
|
case 6:
|
|
101
|
-
|
|
102
|
-
boardData = boardRes;
|
|
103
|
-
individualData = individualRes;
|
|
104
|
-
_l.label = 7;
|
|
105
|
-
case 7:
|
|
106
|
-
if (!country_code && ((_g = boardData === null || boardData === void 0 ? void 0 : boardData.entity) === null || _g === void 0 ? void 0 : _g.country)) {
|
|
107
|
-
countryIso2 = boardData.entity.country;
|
|
108
|
-
thunkApi.dispatch(handleSetCountryByIso2(countryIso2));
|
|
109
|
-
}
|
|
110
|
-
info = (boardStatusData || {}).info;
|
|
111
|
-
hasPasswordCompleted = ((_h = info === null || info === void 0 ? void 0 : info.find(function (flow) { return flow.name === 'password'; })) === null || _h === void 0 ? void 0 : _h.status) === 'completed';
|
|
112
|
-
if (data.step_name === PASSWORD_STEP_NAMES.PHONE_AUTH) {
|
|
113
|
-
thunkApi.dispatch(handleCurrentActiveScreen('PASSWORD_VERIFY_STEP'));
|
|
114
|
-
}
|
|
115
|
-
else if (hasPasswordCompleted) {
|
|
116
|
-
thunkApi.dispatch(handleNextScreenStep('PASSWORD_SUCCESS_FOUR_FLOWS_BUTTONS_STEP'));
|
|
117
|
-
}
|
|
118
|
-
else if (data.step_name === PASSWORD_STEP_NAMES.PASSWORD_INFO) {
|
|
106
|
+
if (data.step_name === PASSWORD_STEP_NAMES.PASSWORD_INFO) {
|
|
119
107
|
thunkApi.dispatch(handleNextScreenStep('PASSWORD_CREATE_PASSWORD_STEP'));
|
|
120
108
|
}
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
individualData: individualData,
|
|
124
|
-
boardResponse: __assign(__assign({}, boardData === null || boardData === void 0 ? void 0 : boardData.business), { flows: (boardStatusData === null || boardStatusData === void 0 ? void 0 : boardStatusData.info) || [], user: boardData === null || boardData === void 0 ? void 0 : boardData.user, 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, individuals: boardData === null || boardData === void 0 ? void 0 : boardData.individuals, name: (_j = boardData === null || boardData === void 0 ? void 0 : boardData.user) === null || _j === void 0 ? void 0 : _j.names, contact: (_k = boardData === null || boardData === void 0 ? void 0 : boardData.user) === null || _k === void 0 ? void 0 : _k.contact, business: boardData === null || boardData === void 0 ? void 0 : boardData.business, notification: boardInfoData === null || boardInfoData === void 0 ? void 0 : boardInfoData.notification }),
|
|
125
|
-
token: token
|
|
126
|
-
}];
|
|
109
|
+
_e.label = 7;
|
|
110
|
+
case 7: return [2, { data: data, token: token, flows: flows }];
|
|
127
111
|
}
|
|
128
112
|
});
|
|
129
113
|
});
|
|
@@ -145,54 +129,82 @@ export var resendOTP = createAsyncThunk('resendOTPPassword', function (params, t
|
|
|
145
129
|
}
|
|
146
130
|
});
|
|
147
131
|
}); });
|
|
148
|
-
export var retrieveBoardDetails = createAsyncThunk('retrievePasswordBoardDetails', function (
|
|
149
|
-
var
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
132
|
+
export var retrieveBoardDetails = createAsyncThunk('retrievePasswordBoardDetails', function (_a) {
|
|
133
|
+
var boardId = _a.boardId, id = _a.individualId, type = _a.individualType;
|
|
134
|
+
return __awaiter(void 0, void 0, void 0, function () {
|
|
135
|
+
var data, individualData, boardData, serviceCallBack, _b, boardRes, individualRes;
|
|
136
|
+
var _c, _d, _e;
|
|
137
|
+
return __generator(this, function (_f) {
|
|
138
|
+
switch (_f.label) {
|
|
139
|
+
case 0: return [4, API.boardService.retrieveBoardDetails(boardId)];
|
|
140
|
+
case 1:
|
|
141
|
+
data = _f.sent();
|
|
142
|
+
individualData = data === null || data === void 0 ? void 0 : data.user;
|
|
143
|
+
boardData = data;
|
|
144
|
+
if (!(((_c = data === null || data === void 0 ? void 0 : data.user) === null || _c === void 0 ? void 0 : _c.id) !== id && id)) return [3, 3];
|
|
145
|
+
serviceCallBack = function () { return API.individualService.retrieveIndividual(id, type); };
|
|
146
|
+
return [4, retrieveIndividualData(type, data, serviceCallBack)];
|
|
147
|
+
case 2:
|
|
148
|
+
_b = _f.sent(), boardRes = _b.boardRes, individualRes = _b.individualRes;
|
|
149
|
+
individualData = individualRes;
|
|
150
|
+
boardData = boardRes;
|
|
151
|
+
_f.label = 3;
|
|
152
|
+
case 3: return [2, __assign(__assign({}, boardData), { 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: (_d = boardData === null || boardData === void 0 ? void 0 : boardData.user) === null || _d === void 0 ? void 0 : _d.names, individuals: boardData === null || boardData === void 0 ? void 0 : boardData.individuals, contact: (_e = boardData === null || boardData === void 0 ? void 0 : boardData.user) === null || _e === void 0 ? void 0 : _e.contact, user: individualData, board_status: boardData === null || boardData === void 0 ? void 0 : boardData.status })];
|
|
153
|
+
}
|
|
154
|
+
});
|
|
160
155
|
});
|
|
161
|
-
});
|
|
156
|
+
});
|
|
162
157
|
export var verifyPasswordLeadOTP = createAsyncThunk('verifyPasswordLeadOTP', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
|
|
163
|
-
var _a, password, settings, responseBody, payload, data, publicKey, flows,
|
|
164
|
-
var
|
|
165
|
-
return __generator(this, function (
|
|
166
|
-
switch (
|
|
158
|
+
var _a, password, settings, responseBody, payload, data, _b, config, board_info_password_status, country_code, board_id, recipient, countryIso2, publicKey, flows, data_3, data_4;
|
|
159
|
+
var _c, _d, _e, _f, _g;
|
|
160
|
+
return __generator(this, function (_h) {
|
|
161
|
+
switch (_h.label) {
|
|
167
162
|
case 0:
|
|
168
163
|
_a = thunkApi.getState(), password = _a.password, settings = _a.settings;
|
|
169
164
|
responseBody = password.data.verify.responseBody;
|
|
170
165
|
payload = {
|
|
171
166
|
data: params.otp,
|
|
172
|
-
service_name: (
|
|
167
|
+
service_name: (_c = responseBody === null || responseBody === void 0 ? void 0 : responseBody.verification_by) === null || _c === void 0 ? void 0 : _c.service_name,
|
|
173
168
|
verify_token: responseBody === null || responseBody === void 0 ? void 0 : responseBody.verify_token,
|
|
174
169
|
step_name: PASSWORD_STEP_NAMES.PHONE_AUTH,
|
|
175
170
|
encryption_contract: ['data']
|
|
176
171
|
};
|
|
177
172
|
return [4, API.leadService.verifyLeadOTP(payload)];
|
|
178
173
|
case 1:
|
|
179
|
-
data = (
|
|
180
|
-
if (
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
(
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
174
|
+
data = (_h.sent()).data;
|
|
175
|
+
if ((_d = data === null || data === void 0 ? void 0 : data.errors) === null || _d === void 0 ? void 0 : _d.length)
|
|
176
|
+
throw new Error(data.errors[0].description);
|
|
177
|
+
_b = data || {}, config = _b.config, board_info_password_status = _b.board_info_password_status, country_code = _b.country_code, board_id = _b.id, recipient = _b.recipient;
|
|
178
|
+
countryIso2 = country_code;
|
|
179
|
+
if (countryIso2)
|
|
180
|
+
thunkApi.dispatch(handleSetCountryByIso2(countryIso2));
|
|
181
|
+
publicKey = config === null || config === void 0 ? void 0 : config.public_key;
|
|
182
|
+
if (publicKey)
|
|
183
|
+
thunkApi.dispatch(handlePublicKey(publicKey));
|
|
184
|
+
(_f = (_e = settings.data.appConfig).onStepCompleted) === null || _f === void 0 ? void 0 : _f.call(_e, settings.data.activeScreen.name, { otp: params.otp });
|
|
185
|
+
flows = [];
|
|
186
|
+
if (!(board_info_password_status === 'completed')) return [3, 3];
|
|
187
|
+
return [4, Promise.all([
|
|
188
|
+
API.boardService.retrieveBoardInfoStatus(board_id),
|
|
189
|
+
thunkApi.dispatch(retrieveBoardDetails({ boardId: board_id, individualId: recipient === null || recipient === void 0 ? void 0 : recipient.id, individualType: recipient === null || recipient === void 0 ? void 0 : recipient.type })).unwrap()
|
|
190
|
+
])];
|
|
191
|
+
case 2:
|
|
192
|
+
data_3 = (_h.sent())[0];
|
|
193
|
+
flows = (data_3 === null || data_3 === void 0 ? void 0 : data_3.info) || [];
|
|
194
|
+
thunkApi.dispatch(handleNextScreenStep('PASSWORD_SUCCESS_FOUR_FLOWS_BUTTONS_STEP'));
|
|
195
|
+
return [3, 6];
|
|
196
|
+
case 3:
|
|
197
|
+
if (!!country_code) return [3, 5];
|
|
198
|
+
return [4, API.boardService.retrieveBoardDetails(board_id)];
|
|
199
|
+
case 4:
|
|
200
|
+
data_4 = _h.sent();
|
|
201
|
+
if ((_g = data_4 === null || data_4 === void 0 ? void 0 : data_4.entity) === null || _g === void 0 ? void 0 : _g.country)
|
|
202
|
+
thunkApi.dispatch(handleSetCountryByIso2(data_4.entity.country));
|
|
203
|
+
_h.label = 5;
|
|
204
|
+
case 5:
|
|
205
|
+
thunkApi.dispatch(handleNextScreenStep('PASSWORD_CREATE_PASSWORD_STEP'));
|
|
206
|
+
_h.label = 6;
|
|
207
|
+
case 6: return [2, { data: data, formData: __assign({}, params), flows: flows }];
|
|
196
208
|
}
|
|
197
209
|
});
|
|
198
210
|
}); });
|
|
@@ -219,38 +231,45 @@ export var createPassword = createAsyncThunk('createPassword', function (params,
|
|
|
219
231
|
});
|
|
220
232
|
}); });
|
|
221
233
|
export var updateBoardSuccess = createAsyncThunk('passwordUpdateBoardSuccess', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
|
|
222
|
-
var _a, settings, password, _b,
|
|
223
|
-
var
|
|
224
|
-
return __generator(this, function (
|
|
225
|
-
switch (
|
|
234
|
+
var _a, settings, password, _b, board_id, infoId, _c, showBoard, mode, payload, data, _d, id, type, boardInfoStatusData;
|
|
235
|
+
var _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
236
|
+
return __generator(this, function (_p) {
|
|
237
|
+
switch (_p.label) {
|
|
226
238
|
case 0:
|
|
227
239
|
_a = thunkApi.getState(), settings = _a.settings, password = _a.password;
|
|
228
|
-
_b = password.data.verify.responseBody || {},
|
|
240
|
+
_b = password.data.verify.responseBody || {}, board_id = _b.board_id, infoId = _b.board_info_id;
|
|
229
241
|
_c = settings.data.appConfig, showBoard = _c.showBoard, mode = _c.mode;
|
|
230
|
-
if (!
|
|
242
|
+
if (!board_id)
|
|
231
243
|
return [2];
|
|
232
244
|
payload = {
|
|
233
245
|
lang: settings.data.language,
|
|
234
246
|
step_name: PASSWORD_STEP_NAMES.PASSWORD_SUCCESS
|
|
235
247
|
};
|
|
236
|
-
return [4, API.boardService.updateBoardInfo(__assign({ id:
|
|
248
|
+
return [4, API.boardService.updateBoardInfo(__assign({ id: board_id, infoId: infoId }, payload))];
|
|
237
249
|
case 1:
|
|
238
|
-
data =
|
|
250
|
+
data = _p.sent();
|
|
251
|
+
sendCustomEventToGTM({
|
|
252
|
+
event: 'Send Event',
|
|
253
|
+
event_category: 'Board Flows - Password',
|
|
254
|
+
event_action: 'Password Update Success Page',
|
|
255
|
+
event_label: settings.data.businessCountry.iso2
|
|
256
|
+
});
|
|
239
257
|
if (!showBoard && mode === 'content') {
|
|
240
|
-
(
|
|
241
|
-
(
|
|
242
|
-
return [2, {
|
|
258
|
+
(_f = (_e = settings.data.appConfig).onStepCompleted) === null || _f === void 0 ? void 0 : _f.call(_e, settings.data.activeScreen.name, {});
|
|
259
|
+
(_h = (_g = settings.data.appConfig).onFlowCompleted) === null || _h === void 0 ? void 0 : _h.call(_g, { data: data });
|
|
260
|
+
return [2, { data: data }];
|
|
243
261
|
}
|
|
244
|
-
|
|
262
|
+
_d = ((_j = data === null || data === void 0 ? void 0 : data.notification) === null || _j === void 0 ? void 0 : _j.recipient) || {}, id = _d.id, type = _d.type;
|
|
263
|
+
return [4, Promise.all([
|
|
264
|
+
API.boardService.retrieveBoardInfoStatus(board_id),
|
|
265
|
+
thunkApi.dispatch(retrieveBoardDetails({ boardId: board_id, individualId: id, individualType: type })).unwrap()
|
|
266
|
+
])];
|
|
245
267
|
case 2:
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
_m.sent();
|
|
250
|
-
(_j = (_h = settings.data.appConfig).onStepCompleted) === null || _j === void 0 ? void 0 : _j.call(_h, settings.data.activeScreen.name, {});
|
|
251
|
-
(_l = (_k = settings.data.appConfig).onFlowCompleted) === null || _l === void 0 ? void 0 : _l.call(_k, { data: data });
|
|
268
|
+
boardInfoStatusData = (_p.sent())[0];
|
|
269
|
+
(_l = (_k = settings.data.appConfig).onStepCompleted) === null || _l === void 0 ? void 0 : _l.call(_k, settings.data.activeScreen.name, {});
|
|
270
|
+
(_o = (_m = settings.data.appConfig).onFlowCompleted) === null || _o === void 0 ? void 0 : _o.call(_m, { data: data });
|
|
252
271
|
thunkApi.dispatch(handleNextScreenStep());
|
|
253
|
-
return [2, { data: data, flows: (
|
|
272
|
+
return [2, { data: data, flows: (boardInfoStatusData === null || boardInfoStatusData === void 0 ? void 0 : boardInfoStatusData.info) || [] }];
|
|
254
273
|
}
|
|
255
274
|
});
|
|
256
275
|
}); });
|
|
@@ -264,7 +283,10 @@ export var retrieveBoardStatus = createAsyncThunk('password/retrieveBoardStatus'
|
|
|
264
283
|
if (!board_id || !board_info_id)
|
|
265
284
|
throw new Error('Internal server error');
|
|
266
285
|
_b = recipient || {}, id = _b.id, type = _b.type;
|
|
267
|
-
return [4, Promise.all([
|
|
286
|
+
return [4, Promise.all([
|
|
287
|
+
API.boardService.retrieveBoardInfoStatus(board_id),
|
|
288
|
+
thunkApi.dispatch(retrieveBoardDetails({ boardId: board_id, individualId: id, individualType: type })).unwrap()
|
|
289
|
+
])];
|
|
268
290
|
case 1:
|
|
269
291
|
data = (_c.sent())[0];
|
|
270
292
|
thunkApi.dispatch(handlePrevScreenStep());
|
|
@@ -273,54 +295,43 @@ export var retrieveBoardStatus = createAsyncThunk('password/retrieveBoardStatus'
|
|
|
273
295
|
});
|
|
274
296
|
}); });
|
|
275
297
|
export var verifyOperationToken = createAsyncThunk('verifyOperationToken', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
|
|
276
|
-
var token, boardId, boardInfoId,
|
|
277
|
-
var
|
|
278
|
-
return __generator(this, function (
|
|
279
|
-
switch (
|
|
298
|
+
var token, boardId, boardInfoId, userId, userType, payload, data, countryIso2, publicKey, data_5;
|
|
299
|
+
var _a, _b, _c;
|
|
300
|
+
return __generator(this, function (_d) {
|
|
301
|
+
switch (_d.label) {
|
|
280
302
|
case 0:
|
|
281
|
-
token = params.token, boardId = params.boardId, boardInfoId = params.boardInfoId;
|
|
282
|
-
boardData = undefined;
|
|
303
|
+
token = params.token, boardId = params.boardId, boardInfoId = params.boardInfoId, userId = params.userId, userType = params.userType;
|
|
283
304
|
payload = {
|
|
284
305
|
auth_type: 7,
|
|
285
306
|
auth_token: token
|
|
286
307
|
};
|
|
287
308
|
return [4, API.authService.verifyAuth(payload)];
|
|
288
309
|
case 1:
|
|
289
|
-
data = (
|
|
290
|
-
if (
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
310
|
+
data = (_d.sent()).data;
|
|
311
|
+
if ((_a = data === null || data === void 0 ? void 0 : data.errors) === null || _a === void 0 ? void 0 : _a.length)
|
|
312
|
+
throw new Error(data.errors[0].description);
|
|
313
|
+
countryIso2 = data === null || data === void 0 ? void 0 : data.country;
|
|
314
|
+
if (countryIso2)
|
|
315
|
+
thunkApi.dispatch(handleSetCountryByIso2(countryIso2));
|
|
316
|
+
publicKey = (_b = data === null || data === void 0 ? void 0 : data.config) === null || _b === void 0 ? void 0 : _b.public_key;
|
|
317
|
+
if (publicKey)
|
|
318
|
+
thunkApi.dispatch(handlePublicKey(publicKey));
|
|
319
|
+
if (!!(data === null || data === void 0 ? void 0 : data.country)) return [3, 3];
|
|
294
320
|
return [4, API.boardService.retrieveBoardDetails(boardId)];
|
|
321
|
+
case 2:
|
|
322
|
+
data_5 = _d.sent();
|
|
323
|
+
if ((_c = data_5 === null || data_5 === void 0 ? void 0 : data_5.entity) === null || _c === void 0 ? void 0 : _c.country)
|
|
324
|
+
thunkApi.dispatch(handleSetCountryByIso2(data_5.entity.country));
|
|
325
|
+
_d.label = 3;
|
|
295
326
|
case 3:
|
|
296
|
-
boardData = _g.sent();
|
|
297
|
-
if ((_c = boardData === null || boardData === void 0 ? void 0 : boardData.entity) === null || _c === void 0 ? void 0 : _c.country)
|
|
298
|
-
thunkApi.dispatch(handleSetCountryByIso2(boardData.entity.country));
|
|
299
|
-
if (!boardInfoId) return [3, 5];
|
|
300
|
-
return [4, API.boardService.retrieveBoardInfo({ id: boardId, infoId: boardInfoId })];
|
|
301
|
-
case 4:
|
|
302
|
-
boardInfoData = _g.sent();
|
|
303
|
-
_g.label = 5;
|
|
304
|
-
case 5:
|
|
305
|
-
_a = ((_d = boardInfoData === null || boardInfoData === void 0 ? void 0 : boardInfoData.notification) === null || _d === void 0 ? void 0 : _d.recipient) || {}, id_2 = _a.id, type_2 = _a.type;
|
|
306
|
-
serviceCallBack = function () { return API.individualService.retrieveIndividual(id_2, type_2); };
|
|
307
|
-
return [4, retrieveIndividualData(type_2, boardData, serviceCallBack)];
|
|
308
|
-
case 6:
|
|
309
|
-
_b = _g.sent(), boardRes = _b.boardRes, individualRes = _b.individualRes;
|
|
310
|
-
boardData = boardRes;
|
|
311
|
-
individualData = individualRes;
|
|
312
|
-
_g.label = 7;
|
|
313
|
-
case 7:
|
|
314
327
|
thunkApi.dispatch(handleNextScreenStep('PASSWORD_CREATE_PASSWORD_STEP'));
|
|
315
|
-
return [2, {
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
flows: (boardStatusData === null || boardStatusData === void 0 ? void 0 : boardStatusData.info) || []
|
|
323
|
-
}];
|
|
328
|
+
return [2, __assign({ data: data, token: token, boardId: boardId, boardInfoId: boardInfoId }, (userId &&
|
|
329
|
+
userType && {
|
|
330
|
+
recipient: {
|
|
331
|
+
id: userId,
|
|
332
|
+
type: userType
|
|
333
|
+
}
|
|
334
|
+
}))];
|
|
324
335
|
}
|
|
325
336
|
});
|
|
326
337
|
}); });
|
|
@@ -374,29 +385,30 @@ export var resetPassword = createAsyncThunk('resetPassword', function (params, t
|
|
|
374
385
|
});
|
|
375
386
|
}); });
|
|
376
387
|
export var retrieveBoardResetPasswordSuccess = createAsyncThunk('retrieveBoardResetPasswordSuccess', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
|
|
377
|
-
var _a, password, settings, _b,
|
|
378
|
-
var
|
|
379
|
-
return __generator(this, function (
|
|
380
|
-
switch (
|
|
388
|
+
var _a, password, settings, _b, board_id, boardResponse, recipient, _c, showBoard, mode, _d, id, type, data;
|
|
389
|
+
var _e, _f, _g, _h, _j, _k, _l, _m;
|
|
390
|
+
return __generator(this, function (_o) {
|
|
391
|
+
switch (_o.label) {
|
|
381
392
|
case 0:
|
|
382
393
|
_a = thunkApi.getState(), password = _a.password, settings = _a.settings;
|
|
383
|
-
_b = password.data.verify.responseBody || { board_id: '' },
|
|
394
|
+
_b = password.data.verify.responseBody || { board_id: '' }, board_id = _b.board_id, boardResponse = _b.boardResponse, recipient = _b.recipient;
|
|
384
395
|
_c = settings.data.appConfig, showBoard = _c.showBoard, mode = _c.mode;
|
|
385
396
|
if (!showBoard && mode === 'content') {
|
|
386
|
-
(
|
|
387
|
-
(
|
|
388
|
-
return [2, { id:
|
|
397
|
+
(_f = (_e = settings.data.appConfig).onStepCompleted) === null || _f === void 0 ? void 0 : _f.call(_e, settings.data.activeScreen.name, {});
|
|
398
|
+
(_h = (_g = settings.data.appConfig).onFlowCompleted) === null || _h === void 0 ? void 0 : _h.call(_g, { data: boardResponse });
|
|
399
|
+
return [2, { id: board_id, flows: [] }];
|
|
389
400
|
}
|
|
390
|
-
|
|
401
|
+
_d = recipient || {}, id = _d.id, type = _d.type;
|
|
402
|
+
return [4, Promise.all([
|
|
403
|
+
API.boardService.retrieveBoardInfoStatus(board_id),
|
|
404
|
+
thunkApi.dispatch(retrieveBoardDetails({ boardId: board_id, individualId: id, individualType: type })).unwrap()
|
|
405
|
+
])];
|
|
391
406
|
case 1:
|
|
392
|
-
|
|
393
|
-
return [4, thunkApi.dispatch(retrieveBoardDetails(id))];
|
|
394
|
-
case 2:
|
|
395
|
-
_m.sent();
|
|
407
|
+
data = (_o.sent())[0];
|
|
396
408
|
thunkApi.dispatch(handleNextScreenStep());
|
|
397
|
-
(
|
|
398
|
-
(
|
|
399
|
-
return [2, { id:
|
|
409
|
+
(_k = (_j = settings.data.appConfig).onStepCompleted) === null || _k === void 0 ? void 0 : _k.call(_j, settings.data.activeScreen.name, { id: id });
|
|
410
|
+
(_m = (_l = settings.data.appConfig).onFlowCompleted) === null || _m === void 0 ? void 0 : _m.call(_l, board_id);
|
|
411
|
+
return [2, { id: board_id, flows: (data === null || data === void 0 ? void 0 : data.info) || [] }];
|
|
400
412
|
}
|
|
401
413
|
});
|
|
402
414
|
}); });
|
|
@@ -451,17 +463,13 @@ export var passwordSlice = createSlice({
|
|
|
451
463
|
extraReducers: function (builder) {
|
|
452
464
|
builder
|
|
453
465
|
.addCase(verifyLeadToken.fulfilled, function (state, action) {
|
|
454
|
-
var _a;
|
|
455
466
|
state.data.verify.operationType = PASSWORD_OPERATION_TYPE.SET_PASSWORD;
|
|
456
467
|
state.error = null;
|
|
457
468
|
state.customLoading = false;
|
|
458
|
-
var
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
return;
|
|
463
|
-
}
|
|
464
|
-
state.data.verify.responseBody = __assign(__assign(__assign(__assign({}, data), boardResponse), state.data.verify.responseBody), { board_id: data.id });
|
|
469
|
+
var _a = action.payload, data = _a.data, token = _a.token, flows = _a.flows;
|
|
470
|
+
state.data.verify.responseBody = __assign(__assign(__assign(__assign({}, data), state.data.verify.responseBody), { board_id: data.id }), ((flows === null || flows === void 0 ? void 0 : flows.length) && {
|
|
471
|
+
flows: flows
|
|
472
|
+
}));
|
|
465
473
|
state.data.verify.token = token;
|
|
466
474
|
})
|
|
467
475
|
.addCase(verifyLeadToken.pending, function (state) {
|
|
@@ -494,17 +502,14 @@ export var passwordSlice = createSlice({
|
|
|
494
502
|
state.error = null;
|
|
495
503
|
})
|
|
496
504
|
.addCase(verifyPasswordLeadOTP.fulfilled, function (state, action) {
|
|
497
|
-
var _a;
|
|
498
505
|
state.loading = false;
|
|
499
506
|
state.error = null;
|
|
500
|
-
var
|
|
501
|
-
var description = (((_a = data === null || data === void 0 ? void 0 : data.errors) === null || _a === void 0 ? void 0 : _a[0]) || {}).description;
|
|
502
|
-
if (description) {
|
|
503
|
-
state.error = description;
|
|
504
|
-
return;
|
|
505
|
-
}
|
|
507
|
+
var _a = action.payload, data = _a.data, formData = _a.formData, flows = _a.flows;
|
|
506
508
|
state.data.otpData = formData;
|
|
507
509
|
state.data.otpData.responseBody = data;
|
|
510
|
+
state.data.verify.responseBody = __assign(__assign(__assign(__assign({}, data), state.data.verify.responseBody), { board_id: data.id }), ((flows === null || flows === void 0 ? void 0 : flows.length) && {
|
|
511
|
+
flows: flows
|
|
512
|
+
}));
|
|
508
513
|
})
|
|
509
514
|
.addCase(verifyPasswordLeadOTP.rejected, function (state, action) {
|
|
510
515
|
state.loading = false;
|
|
@@ -538,7 +543,7 @@ export var passwordSlice = createSlice({
|
|
|
538
543
|
.addCase(retrieveBoardDetails.fulfilled, function (state, action) {
|
|
539
544
|
state.error = null;
|
|
540
545
|
state.loading = false;
|
|
541
|
-
var data =
|
|
546
|
+
var data = action.payload || {};
|
|
542
547
|
state.data.verify.responseBody = __assign(__assign({}, state.data.verify.responseBody), data);
|
|
543
548
|
})
|
|
544
549
|
.addCase(retrieveBoardDetails.rejected, function (state, action) {
|
|
@@ -546,15 +551,11 @@ export var passwordSlice = createSlice({
|
|
|
546
551
|
state.loading = false;
|
|
547
552
|
})
|
|
548
553
|
.addCase(updateBoardSuccess.fulfilled, function (state, action) {
|
|
554
|
+
var _a;
|
|
549
555
|
state.loading = false;
|
|
550
556
|
state.error = null;
|
|
551
|
-
var
|
|
552
|
-
|
|
553
|
-
var _a = state.data.verify.responseBody || {}, individuals = _a.individuals, individualData = _a.individualData;
|
|
554
|
-
var data_state = (individualData || {}).data_state;
|
|
555
|
-
state.data.verify.responseBody = __assign(__assign(__assign(__assign({}, state.data.verify.responseBody), { flows: flows }), (individualData && { user: individualData })), (data_state && {
|
|
556
|
-
individuals: __assign(__assign({}, individuals), { data_state: data_state })
|
|
557
|
-
}));
|
|
557
|
+
var _b = action.payload || {}, flows = _b.flows, data = _b.data;
|
|
558
|
+
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 });
|
|
558
559
|
})
|
|
559
560
|
.addCase(updateBoardSuccess.pending, function (state) {
|
|
560
561
|
state.loading = true;
|
|
@@ -563,20 +564,27 @@ export var passwordSlice = createSlice({
|
|
|
563
564
|
.addCase(updateBoardSuccess.rejected, function (state, action) {
|
|
564
565
|
state.loading = false;
|
|
565
566
|
state.error = action.error.message;
|
|
567
|
+
})
|
|
568
|
+
.addCase(retrieveBoardStatus.pending, function (state) {
|
|
569
|
+
state.error = null;
|
|
570
|
+
state.loading = true;
|
|
571
|
+
})
|
|
572
|
+
.addCase(retrieveBoardStatus.fulfilled, function (state, action) {
|
|
573
|
+
state.error = null;
|
|
574
|
+
state.loading = false;
|
|
575
|
+
var flows = (action.payload || {}).flows;
|
|
576
|
+
state.data.verify.responseBody = __assign(__assign({}, state.data.verify.responseBody), { flows: flows });
|
|
577
|
+
})
|
|
578
|
+
.addCase(retrieveBoardStatus.rejected, function (state, action) {
|
|
579
|
+
state.error = action.error.message;
|
|
580
|
+
state.loading = false;
|
|
566
581
|
})
|
|
567
582
|
.addCase(verifyOperationToken.fulfilled, function (state, action) {
|
|
568
|
-
var _a;
|
|
569
583
|
state.data.verify.operationType = PASSWORD_OPERATION_TYPE.RESET_PASSWORD;
|
|
570
584
|
state.error = null;
|
|
571
585
|
state.customLoading = false;
|
|
572
|
-
var
|
|
573
|
-
state.data.verify.responseBody = __assign(__assign(__assign({},
|
|
574
|
-
var description = (((_a = data === null || data === void 0 ? void 0 : data.errors) === null || _a === void 0 ? void 0 : _a[0]) || {}).description;
|
|
575
|
-
if (description) {
|
|
576
|
-
state.error = description;
|
|
577
|
-
return;
|
|
578
|
-
}
|
|
579
|
-
state.data.verify.responseBody = __assign(__assign(__assign(__assign({}, data), boardResponse), state.data.verify.responseBody), { board_id: boardId, board_info_id: boardInfoId, flows: flows });
|
|
586
|
+
var _a = action.payload, data = _a.data, token = _a.token, boardId = _a.boardId, boardInfoId = _a.boardInfoId, recipient = _a.recipient;
|
|
587
|
+
state.data.verify.responseBody = __assign(__assign(__assign(__assign({}, data), state.data.verify.responseBody), { board_id: boardId, board_info_id: boardInfoId }), (recipient && { recipient: recipient }));
|
|
580
588
|
state.data.verify.token = token;
|
|
581
589
|
})
|
|
582
590
|
.addCase(verifyOperationToken.pending, function (state) {
|
|
@@ -605,16 +613,10 @@ export var passwordSlice = createSlice({
|
|
|
605
613
|
state.error = action.error.message;
|
|
606
614
|
})
|
|
607
615
|
.addCase(resetPassword.fulfilled, function (state, action) {
|
|
608
|
-
var _a;
|
|
609
616
|
state.data.verify.operationType = PASSWORD_OPERATION_TYPE.RESET_PASSWORD;
|
|
610
617
|
state.error = null;
|
|
611
618
|
state.loading = false;
|
|
612
|
-
var
|
|
613
|
-
var description = (((_a = data === null || data === void 0 ? void 0 : data.errors) === null || _a === void 0 ? void 0 : _a[0]) || {}).description;
|
|
614
|
-
if (description) {
|
|
615
|
-
state.error = description;
|
|
616
|
-
return;
|
|
617
|
-
}
|
|
619
|
+
var _a = action.payload, data = _a.data, formData = _a.formData;
|
|
618
620
|
state.data.passwordData = formData;
|
|
619
621
|
state.data.passwordData.responseBody = data;
|
|
620
622
|
})
|
|
@@ -629,13 +631,8 @@ export var passwordSlice = createSlice({
|
|
|
629
631
|
.addCase(retrieveBoardResetPasswordSuccess.fulfilled, function (state, action) {
|
|
630
632
|
state.loading = false;
|
|
631
633
|
state.error = null;
|
|
632
|
-
var
|
|
633
|
-
|
|
634
|
-
var _a = state.data.verify.responseBody || {}, individuals = _a.individuals, individualData = _a.individualData;
|
|
635
|
-
var data_state = (((individualData === null || individualData === void 0 ? void 0 : individualData.is_authorized) ? individuals : individualData) || {}).data_state;
|
|
636
|
-
state.data.verify.responseBody = __assign(__assign(__assign(__assign({}, state.data.verify.responseBody), { flows: flows }), (individualData && { user: individualData })), (data_state && {
|
|
637
|
-
individuals: __assign(__assign({}, individuals), { data_state: data_state })
|
|
638
|
-
}));
|
|
634
|
+
var flows = (action.payload || {}).flows;
|
|
635
|
+
state.data.verify.responseBody = __assign(__assign({}, state.data.verify.responseBody), { flows: flows });
|
|
639
636
|
})
|
|
640
637
|
.addCase(retrieveBoardResetPasswordSuccess.pending, function (state) {
|
|
641
638
|
state.loading = true;
|
|
@@ -656,20 +653,6 @@ export var passwordSlice = createSlice({
|
|
|
656
653
|
.addCase(onCloseCompletePassword.rejected, function (state, action) {
|
|
657
654
|
state.loading = false;
|
|
658
655
|
state.error = action.error.message;
|
|
659
|
-
})
|
|
660
|
-
.addCase(retrieveBoardStatus.pending, function (state) {
|
|
661
|
-
state.error = null;
|
|
662
|
-
state.loading = true;
|
|
663
|
-
})
|
|
664
|
-
.addCase(retrieveBoardStatus.fulfilled, function (state, action) {
|
|
665
|
-
state.error = null;
|
|
666
|
-
state.loading = false;
|
|
667
|
-
var flows = action.payload.flows;
|
|
668
|
-
state.data.verify.responseBody = __assign(__assign({}, state.data.verify.responseBody), { flows: flows });
|
|
669
|
-
})
|
|
670
|
-
.addCase(retrieveBoardStatus.rejected, function (state, action) {
|
|
671
|
-
state.error = action.error.message;
|
|
672
|
-
state.loading = false;
|
|
673
656
|
});
|
|
674
657
|
}
|
|
675
658
|
});
|