@zeniai/client-epic-state 4.11.45 → 4.11.47
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/lib/entity/chargeCardTransaction/chargeCardTransaction.d.ts +1 -1
- package/lib/entity/company/companyPayload.d.ts +12 -0
- package/lib/entity/company/companyPayload.js +21 -0
- package/lib/entity/company/companyReducer.d.ts +7 -0
- package/lib/entity/company/companyReducer.js +22 -2
- package/lib/entity/company/companyStateTypes.d.ts +12 -0
- package/lib/entity/depositAccountTransaction/depositAccountTransaction.d.ts +1 -1
- package/lib/entity/paymentAccount/paymentAccountPayload.d.ts +2 -0
- package/lib/entity/paymentAccount/paymentAccountPayload.js +2 -0
- package/lib/entity/paymentAccount/paymentAccountState.d.ts +2 -0
- package/lib/entity/snackbar/snackbarTypes.d.ts +1 -1
- package/lib/entity/toastNotification/epic/pushToastNotificationEpic.d.ts +1 -1
- package/lib/index.d.ts +6 -6
- package/lib/view/cardPayment/epic/addCardPaymentSourceEpic.d.ts +1 -1
- package/lib/view/cardPayment/epic/confirmCardSetupIntentEpic.d.ts +1 -1
- package/lib/view/cardPayment/epic/createCardSetupIntentEpic.d.ts +1 -1
- package/lib/view/cardPayment/epic/fetchPaymentSourcesEpic.d.ts +1 -1
- package/lib/view/companyView/types/cockpitTypes.d.ts +2 -2
- package/lib/view/onboardingView/customerView/epic/plaidConnection/establishOnboardingPlaidConnectionEpic.js +2 -0
- package/lib/view/people/changeZeniPersonRolesEpic.d.ts +1 -1
- package/lib/view/people/deletePersonEpic.d.ts +1 -1
- package/lib/view/people/invitePeopleEpic.d.ts +1 -1
- package/lib/view/people/inviteZeniPeopleEpic.d.ts +1 -1
- package/lib/view/people/resendInviteEpic.d.ts +1 -1
- package/lib/view/referralView/referralState.d.ts +1 -1
- package/lib/view/reviewCompanyView/reviewCompanyViewSelector.js +45 -41
- package/lib/view/scheduleView/scheduleListView/scheduleListTypes.d.ts +1 -1
- package/lib/view/settingsView/epic/fetchBankConnectionsViewEpic.d.ts +6 -4
- package/lib/view/settingsView/epic/fetchBankConnectionsViewEpic.js +29 -6
- package/lib/view/settingsView/epic/saveNotificationSettingsEpic.d.ts +1 -1
- package/lib/view/settingsView/settingsViewReducer.d.ts +3 -1
- package/lib/view/settingsView/settingsViewReducer.js +11 -2
- package/lib/view/settingsView/settingsViewSelector.d.ts +1 -1
- package/lib/view/settingsView/settingsViewSelector.js +56 -7
- package/lib/view/settingsView/types/settingsViewSelectorTypes.d.ts +10 -2
- package/lib/view/spendManagement/billPay/billPayReview/billPayReviewSelector.js +2 -3
- package/lib/view/spendManagement/billPay/billPaySetupView/billPaySetupViewSelector.js +1 -1
- package/lib/view/spendManagement/billPay/billPaySetupView/epic/billPaySetup/fetchBillPaySetupViewEpic.d.ts +4 -1
- package/lib/view/spendManagement/billPay/billPaySetupView/epic/billPaySetup/fetchBillPaySetupViewEpic.js +16 -4
- package/lib/view/spendManagement/billPay/editBillView/editBillViewSelector.js +2 -3
- package/lib/view/spendManagement/billPay/editBillView/epics/initializeBillToLocalStoreEpic.d.ts +1 -2
- package/lib/view/spendManagement/chargeCards/chargeCardSetUp/chargeCardSetUpViewSelector.js +1 -1
- package/lib/view/spendManagement/chargeCards/chargeCardSetUp/epic/fetchChargeCardSetupViewEpic.d.ts +4 -1
- package/lib/view/spendManagement/chargeCards/chargeCardSetUp/epic/fetchChargeCardSetupViewEpic.js +16 -4
- package/lib/view/spendManagement/commonSetup/setupViewSelector.d.ts +4 -0
- package/lib/view/spendManagement/commonSetup/setupViewSelector.js +42 -32
- package/lib/view/spendManagement/plaidAccount/epic/paymentAccounts/getPaymentAccountsEpic.js +1 -2
- package/lib/view/spendManagement/plaidAccount/epic/paymentAccounts/updateMappedCashAccountEpic.js +4 -5
- package/lib/view/spendManagement/plaidAccount/epic/paymentAccounts/updatePaymentAccountEpic.js +1 -2
- package/lib/view/spendManagement/plaidAccount/epic/paymentAccounts/updatePaymentAccountStatusEpic.js +1 -2
- package/lib/view/spendManagement/plaidAccount/epic/paymentAccounts/updatePrimaryFundingAccountEpic.js +34 -12
- package/lib/view/spendManagement/plaidAccount/epic/plaidConnection/establishPlaidConnectionEpic.d.ts +2 -1
- package/lib/view/spendManagement/plaidAccount/epic/plaidConnection/establishPlaidConnectionEpic.js +52 -16
- package/lib/view/spendManagement/plaidAccount/epic/plaidConnection/getPlaidLinkTokenEpic.js +1 -1
- package/lib/view/spendManagement/plaidAccount/plaidAccountViewReducer.d.ts +22 -29
- package/lib/view/spendManagement/plaidAccount/plaidAccountViewReducer.js +49 -78
- package/lib/view/spendManagement/plaidAccount/plaidAccountViewState.d.ts +2 -8
- package/lib/view/spendManagement/plaidAccount/plaidAccountViewState.js +5 -3
- package/lib/view/spendManagement/reimbursement/remiSetupView/epic/remiSetup/fetchRemiSetupViewEpic.js +6 -19
- package/lib/view/spendManagement/zeniAccounts/zeniAccountList/zeniAccountListSelector.js +2 -2
- package/lib/view/spendManagement/zeniAccounts/zeniAccountSetUp/epic/fetchZeniAccountSetupViewEpic.d.ts +4 -1
- package/lib/view/spendManagement/zeniAccounts/zeniAccountSetUp/epic/fetchZeniAccountSetupViewEpic.js +20 -9
- package/lib/view/spendManagement/zeniAccounts/zeniAccountSetUp/zeniAccountSetupViewSelector.js +1 -1
- package/lib/view/tagView/epics/createTagEpic.d.ts +6 -6
- package/lib/view/tagView/epics/deleteTagEpic.d.ts +6 -6
- package/package.json +1 -1
|
@@ -7,9 +7,12 @@ const zeniDayJS_1 = require("../../../zeniDayJS");
|
|
|
7
7
|
const plaidAccountViewState_1 = require("./plaidAccountViewState");
|
|
8
8
|
exports.initialState = {
|
|
9
9
|
spend_management_setup: plaidAccountViewState_1.initialPlaidAccountState,
|
|
10
|
+
bill_pay_setup: plaidAccountViewState_1.initialPlaidAccountState,
|
|
11
|
+
reimbursement_setup: plaidAccountViewState_1.initialPlaidAccountState,
|
|
12
|
+
account_setup: plaidAccountViewState_1.initialPlaidAccountState,
|
|
13
|
+
charge_card_setup: plaidAccountViewState_1.initialPlaidAccountState,
|
|
10
14
|
user_reimbursement_account: plaidAccountViewState_1.initialPlaidAccountState,
|
|
11
15
|
external_account: plaidAccountViewState_1.initialPlaidAccountState,
|
|
12
|
-
reimbursement_setup: plaidAccountViewState_1.initialPlaidAccountState,
|
|
13
16
|
billing_setup: plaidAccountViewState_1.initialPlaidAccountState,
|
|
14
17
|
};
|
|
15
18
|
const plaidAccountView = (0, toolkit_1.createSlice)({
|
|
@@ -36,17 +39,15 @@ const plaidAccountView = (0, toolkit_1.createSlice)({
|
|
|
36
39
|
},
|
|
37
40
|
getPaymentAccountsSuccess: {
|
|
38
41
|
reducer(draft, action) {
|
|
39
|
-
const {
|
|
42
|
+
const { plaidAccountKeyType } = action.payload;
|
|
40
43
|
draft[plaidAccountKeyType].accountDetails.fetchStatus = {
|
|
41
44
|
fetchState: 'Completed',
|
|
42
45
|
error: undefined,
|
|
43
46
|
};
|
|
44
|
-
draft[plaidAccountKeyType].accountDetails.paymentAccountIds =
|
|
45
|
-
paymentAccountIds;
|
|
46
47
|
},
|
|
47
|
-
prepare(
|
|
48
|
+
prepare(plaidAccountKeyType) {
|
|
48
49
|
return {
|
|
49
|
-
payload: {
|
|
50
|
+
payload: { plaidAccountKeyType },
|
|
50
51
|
};
|
|
51
52
|
},
|
|
52
53
|
},
|
|
@@ -67,7 +68,7 @@ const plaidAccountView = (0, toolkit_1.createSlice)({
|
|
|
67
68
|
updatePaymentAccount: {
|
|
68
69
|
reducer(draft, action) {
|
|
69
70
|
const { plaidAccountKeyType } = action.payload;
|
|
70
|
-
draft[plaidAccountKeyType].accountDetails.
|
|
71
|
+
draft[plaidAccountKeyType].accountDetails.cashAccountUpdateStatus = {
|
|
71
72
|
fetchState: 'In-Progress',
|
|
72
73
|
error: undefined,
|
|
73
74
|
};
|
|
@@ -86,21 +87,21 @@ const plaidAccountView = (0, toolkit_1.createSlice)({
|
|
|
86
87
|
updatePaymentAccountSuccess: {
|
|
87
88
|
reducer(draft, action) {
|
|
88
89
|
const { plaidAccountKeyType } = action.payload;
|
|
89
|
-
draft[plaidAccountKeyType].accountDetails.
|
|
90
|
+
draft[plaidAccountKeyType].accountDetails.cashAccountUpdateStatus = {
|
|
90
91
|
fetchState: 'Completed',
|
|
91
92
|
error: undefined,
|
|
92
93
|
};
|
|
93
94
|
},
|
|
94
|
-
prepare(
|
|
95
|
+
prepare(plaidAccountKeyType) {
|
|
95
96
|
return {
|
|
96
|
-
payload: {
|
|
97
|
+
payload: { plaidAccountKeyType },
|
|
97
98
|
};
|
|
98
99
|
},
|
|
99
100
|
},
|
|
100
101
|
updatePaymentAccountFailure: {
|
|
101
102
|
reducer(draft, action) {
|
|
102
103
|
const { error, plaidAccountKeyType } = action.payload;
|
|
103
|
-
draft[plaidAccountKeyType].accountDetails.
|
|
104
|
+
draft[plaidAccountKeyType].accountDetails.cashAccountUpdateStatus = {
|
|
104
105
|
fetchState: 'Error',
|
|
105
106
|
error,
|
|
106
107
|
};
|
|
@@ -133,19 +134,15 @@ const plaidAccountView = (0, toolkit_1.createSlice)({
|
|
|
133
134
|
},
|
|
134
135
|
updatePaymentAccountStatusSuccess: {
|
|
135
136
|
reducer(draft, action) {
|
|
136
|
-
const {
|
|
137
|
+
const { linkTokenType, plaidAccountKeyType } = action.payload;
|
|
137
138
|
draft[plaidAccountKeyType].plaidConnectionDetails[linkTokenType] = Object.assign(Object.assign({}, draft[plaidAccountKeyType].plaidConnectionDetails[linkTokenType]), { updateStatus: {
|
|
138
139
|
fetchState: 'Completed',
|
|
139
140
|
error: undefined,
|
|
140
141
|
} });
|
|
141
|
-
if (plaidAccountKeyType !== 'reimbursement_setup') {
|
|
142
|
-
draft[plaidAccountKeyType].accountDetails.paymentAccountIds =
|
|
143
|
-
paymentAccountIds;
|
|
144
|
-
}
|
|
145
142
|
},
|
|
146
|
-
prepare(
|
|
143
|
+
prepare(linkTokenType, plaidAccountKeyType) {
|
|
147
144
|
return {
|
|
148
|
-
payload: {
|
|
145
|
+
payload: { linkTokenType, plaidAccountKeyType },
|
|
149
146
|
};
|
|
150
147
|
},
|
|
151
148
|
},
|
|
@@ -185,13 +182,11 @@ const plaidAccountView = (0, toolkit_1.createSlice)({
|
|
|
185
182
|
},
|
|
186
183
|
updatePaymentAccountLoginStatusSuccess: {
|
|
187
184
|
reducer(draft, action) {
|
|
188
|
-
const {
|
|
185
|
+
const { linkTokenType, plaidAccountKeyType } = action.payload;
|
|
189
186
|
draft[plaidAccountKeyType].plaidConnectionDetails[linkTokenType] = Object.assign(Object.assign({}, draft[plaidAccountKeyType].plaidConnectionDetails[linkTokenType]), { updateStatus: {
|
|
190
187
|
fetchState: 'Completed',
|
|
191
188
|
error: undefined,
|
|
192
189
|
} });
|
|
193
|
-
draft[plaidAccountKeyType].accountDetails.paymentAccountIds =
|
|
194
|
-
paymentAccountIds;
|
|
195
190
|
},
|
|
196
191
|
prepare(paymentAccountIds, linkTokenType, plaidAccountKeyType) {
|
|
197
192
|
return {
|
|
@@ -215,17 +210,11 @@ const plaidAccountView = (0, toolkit_1.createSlice)({
|
|
|
215
210
|
},
|
|
216
211
|
getPlaidLinkToken: {
|
|
217
212
|
reducer(draft, action) {
|
|
218
|
-
const { linkTokenType,
|
|
213
|
+
const { linkTokenType, plaidAccountKeyType } = action.payload;
|
|
219
214
|
draft[plaidAccountKeyType].plaidConnectionDetails[linkTokenType] = Object.assign(Object.assign({}, draft[plaidAccountKeyType].plaidConnectionDetails[linkTokenType]), { fetchStatus: {
|
|
220
215
|
fetchState: 'In-Progress',
|
|
221
216
|
error: undefined,
|
|
222
217
|
} });
|
|
223
|
-
if (paymentAccountId != null &&
|
|
224
|
-
plaidAccountKeyType !== 'reimbursement_setup') {
|
|
225
|
-
draft[plaidAccountKeyType].accountDetails.paymentAccountIds = [
|
|
226
|
-
paymentAccountId,
|
|
227
|
-
];
|
|
228
|
-
}
|
|
229
218
|
},
|
|
230
219
|
prepare(plaidAccountKeyType, linkTokenType, paymentAccountId) {
|
|
231
220
|
return {
|
|
@@ -273,10 +262,11 @@ const plaidAccountView = (0, toolkit_1.createSlice)({
|
|
|
273
262
|
error: undefined,
|
|
274
263
|
} });
|
|
275
264
|
},
|
|
276
|
-
prepare(publicToken, plaidAccountKeyType, setupViewType, linkTokenType) {
|
|
265
|
+
prepare(publicToken, companyId, plaidAccountKeyType, setupViewType, linkTokenType) {
|
|
277
266
|
return {
|
|
278
267
|
payload: {
|
|
279
268
|
publicToken,
|
|
269
|
+
companyId,
|
|
280
270
|
setupViewType,
|
|
281
271
|
linkTokenType: linkTokenType !== null && linkTokenType !== void 0 ? linkTokenType : 'link_account',
|
|
282
272
|
plaidAccountKeyType,
|
|
@@ -286,23 +276,15 @@ const plaidAccountView = (0, toolkit_1.createSlice)({
|
|
|
286
276
|
},
|
|
287
277
|
establishPlaidConnectionSuccess: {
|
|
288
278
|
reducer(draft, action) {
|
|
289
|
-
const {
|
|
279
|
+
const { linkTokenType, plaidAccountKeyType } = action.payload;
|
|
290
280
|
draft[plaidAccountKeyType].plaidConnectionDetails[linkTokenType] = Object.assign(Object.assign({}, draft[plaidAccountKeyType].plaidConnectionDetails[linkTokenType]), { updateStatus: {
|
|
291
281
|
fetchState: 'Completed',
|
|
292
282
|
error: undefined,
|
|
293
283
|
} });
|
|
294
|
-
draft[plaidAccountKeyType].accountDetails.primaryFundingAccount = {
|
|
295
|
-
accountId: primaryFundingAccountId,
|
|
296
|
-
accountType: 'paymentAccount',
|
|
297
|
-
};
|
|
298
|
-
draft[plaidAccountKeyType].accountDetails.paymentAccountIds =
|
|
299
|
-
paymentAccountIds;
|
|
300
284
|
},
|
|
301
|
-
prepare(
|
|
285
|
+
prepare(linkTokenType, plaidAccountKeyType) {
|
|
302
286
|
return {
|
|
303
287
|
payload: {
|
|
304
|
-
primaryFundingAccountId,
|
|
305
|
-
paymentAccountIds,
|
|
306
288
|
linkTokenType,
|
|
307
289
|
plaidAccountKeyType,
|
|
308
290
|
},
|
|
@@ -324,27 +306,18 @@ const plaidAccountView = (0, toolkit_1.createSlice)({
|
|
|
324
306
|
},
|
|
325
307
|
},
|
|
326
308
|
updatePlaidAccountViewAccountDetails: {
|
|
327
|
-
prepare(allBankAccountIds,
|
|
309
|
+
prepare(allBankAccountIds, plaidAccountKeyType) {
|
|
328
310
|
return {
|
|
329
311
|
payload: {
|
|
330
312
|
allBankAccountIds,
|
|
331
|
-
paymentAccountIds,
|
|
332
313
|
plaidAccountKeyType,
|
|
333
|
-
depositAccountIds,
|
|
334
|
-
primaryFundingAccount,
|
|
335
314
|
},
|
|
336
315
|
};
|
|
337
316
|
},
|
|
338
317
|
reducer(draft, action) {
|
|
339
|
-
const { allBankAccountIds,
|
|
318
|
+
const { allBankAccountIds, plaidAccountKeyType } = action.payload;
|
|
340
319
|
draft[plaidAccountKeyType].accountDetails.allBankAccountIds =
|
|
341
320
|
allBankAccountIds;
|
|
342
|
-
draft[plaidAccountKeyType].accountDetails.paymentAccountIds =
|
|
343
|
-
paymentAccountIds;
|
|
344
|
-
draft[plaidAccountKeyType].accountDetails.depositAccountIds =
|
|
345
|
-
depositAccountIds !== null && depositAccountIds !== void 0 ? depositAccountIds : [];
|
|
346
|
-
draft[plaidAccountKeyType].accountDetails.primaryFundingAccount =
|
|
347
|
-
primaryFundingAccount;
|
|
348
321
|
draft[plaidAccountKeyType].accountDetails.fetchStatus = {
|
|
349
322
|
fetchState: 'Completed',
|
|
350
323
|
error: undefined,
|
|
@@ -352,81 +325,79 @@ const plaidAccountView = (0, toolkit_1.createSlice)({
|
|
|
352
325
|
},
|
|
353
326
|
},
|
|
354
327
|
updatePrimaryFundingAccount: {
|
|
355
|
-
reducer(draft) {
|
|
356
|
-
draft[
|
|
328
|
+
reducer(draft, action) {
|
|
329
|
+
draft[action.payload.plaidAccountKeyType].accountDetails.primaryFundingAccountUpdateStatus = {
|
|
357
330
|
fetchState: 'In-Progress',
|
|
358
331
|
error: undefined,
|
|
359
332
|
};
|
|
360
333
|
},
|
|
361
|
-
prepare(companyId, accountId, accountType) {
|
|
362
|
-
return {
|
|
334
|
+
prepare(companyId, plaidAccountKeyType, accountId, accountType) {
|
|
335
|
+
return {
|
|
336
|
+
payload: { companyId, plaidAccountKeyType, accountId, accountType },
|
|
337
|
+
};
|
|
363
338
|
},
|
|
364
339
|
},
|
|
365
340
|
updatePrimaryFundingAccountSuccess: {
|
|
366
341
|
reducer(draft, action) {
|
|
367
|
-
const {
|
|
368
|
-
draft[
|
|
342
|
+
const { plaidAccountKeyType } = action.payload;
|
|
343
|
+
draft[plaidAccountKeyType].accountDetails.primaryFundingAccountUpdateStatus = {
|
|
369
344
|
fetchState: 'Completed',
|
|
370
345
|
error: undefined,
|
|
371
346
|
};
|
|
372
|
-
draft['reimbursement_setup'].accountDetails.primaryFundingAccount = {
|
|
373
|
-
accountId: accountId,
|
|
374
|
-
accountType: accountType,
|
|
375
|
-
};
|
|
376
347
|
},
|
|
377
|
-
prepare(
|
|
348
|
+
prepare(plaidAccountKeyType) {
|
|
378
349
|
return {
|
|
379
|
-
payload: {
|
|
350
|
+
payload: { plaidAccountKeyType },
|
|
380
351
|
};
|
|
381
352
|
},
|
|
382
353
|
},
|
|
383
354
|
updatePrimaryFundingAccountFailure: {
|
|
384
355
|
reducer(draft, action) {
|
|
385
|
-
draft[
|
|
356
|
+
draft[action.payload.plaidAccountKeyType].accountDetails.primaryFundingAccountUpdateStatus = {
|
|
386
357
|
fetchState: 'Error',
|
|
387
|
-
error: action.payload,
|
|
358
|
+
error: action.payload.error,
|
|
388
359
|
};
|
|
389
360
|
},
|
|
390
|
-
prepare(error) {
|
|
361
|
+
prepare(plaidAccountKeyType, error) {
|
|
391
362
|
return {
|
|
392
|
-
payload: error,
|
|
363
|
+
payload: { error, plaidAccountKeyType },
|
|
393
364
|
};
|
|
394
365
|
},
|
|
395
366
|
},
|
|
396
367
|
updateMappedCashAccount: {
|
|
397
|
-
reducer(draft) {
|
|
398
|
-
draft[
|
|
368
|
+
reducer(draft, action) {
|
|
369
|
+
draft[action.payload.plaidAccountKeyType].accountDetails.cashAccountUpdateStatus = {
|
|
399
370
|
fetchState: 'In-Progress',
|
|
400
371
|
error: undefined,
|
|
401
372
|
};
|
|
402
373
|
},
|
|
403
|
-
prepare(accountId, depositAccountId) {
|
|
404
|
-
return { payload: { accountId, depositAccountId } };
|
|
374
|
+
prepare(plaidAccountKeyType, accountId, depositAccountId) {
|
|
375
|
+
return { payload: { plaidAccountKeyType, accountId, depositAccountId } };
|
|
405
376
|
},
|
|
406
377
|
},
|
|
407
378
|
updateMappedCashAccountSuccess: {
|
|
408
|
-
reducer(draft) {
|
|
409
|
-
draft[
|
|
379
|
+
reducer(draft, action) {
|
|
380
|
+
draft[action.payload.plaidAccountKeyType].accountDetails.cashAccountUpdateStatus = {
|
|
410
381
|
fetchState: 'Completed',
|
|
411
382
|
error: undefined,
|
|
412
383
|
};
|
|
413
384
|
},
|
|
414
|
-
prepare(
|
|
385
|
+
prepare(plaidAccountKeyType) {
|
|
415
386
|
return {
|
|
416
|
-
payload: {
|
|
387
|
+
payload: { plaidAccountKeyType },
|
|
417
388
|
};
|
|
418
389
|
},
|
|
419
390
|
},
|
|
420
391
|
updateMappedCashAccountFailure: {
|
|
421
392
|
reducer(draft, action) {
|
|
422
|
-
draft[
|
|
393
|
+
draft[action.payload.plaidAccountKeyType].accountDetails.cashAccountUpdateStatus = {
|
|
423
394
|
fetchState: 'Error',
|
|
424
|
-
error: action.payload,
|
|
395
|
+
error: action.payload.error,
|
|
425
396
|
};
|
|
426
397
|
},
|
|
427
|
-
prepare(error) {
|
|
398
|
+
prepare(plaidAccountKeyType, error) {
|
|
428
399
|
return {
|
|
429
|
-
payload: error,
|
|
400
|
+
payload: { plaidAccountKeyType, error },
|
|
430
401
|
};
|
|
431
402
|
},
|
|
432
403
|
},
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { FetchStateAndError, ID } from '../../../commonStateTypes/common';
|
|
2
2
|
import { ZeniDate } from '../../../zeniDayJS';
|
|
3
3
|
export declare type PlaidLinkTokenType = 'link_account' | 'update_account' | 'link_account_no_microdeposit' | 'link_external_account';
|
|
4
|
-
export declare type PlaidAccountKeyType = 'spend_management_setup' | 'reimbursement_setup' | 'user_reimbursement_account' | 'external_account' | 'billing_setup';
|
|
4
|
+
export declare type PlaidAccountKeyType = 'spend_management_setup' | 'bill_pay_setup' | 'reimbursement_setup' | 'account_setup' | 'charge_card_setup' | 'user_reimbursement_account' | 'external_account' | 'billing_setup';
|
|
5
5
|
export declare type PlaidConnectionDetails = Record<PlaidLinkTokenType, {
|
|
6
6
|
linkToken?: string;
|
|
7
7
|
expiration?: ZeniDate;
|
|
@@ -12,14 +12,8 @@ export declare const initialPlaidAccountState: PlaidAccountState;
|
|
|
12
12
|
export interface PlaidAccountState {
|
|
13
13
|
accountDetails: {
|
|
14
14
|
fetchStatus: FetchStateAndError;
|
|
15
|
-
|
|
15
|
+
cashAccountUpdateStatus: FetchStateAndError;
|
|
16
16
|
primaryFundingAccountUpdateStatus?: FetchStateAndError;
|
|
17
|
-
primaryFundingAccount?: {
|
|
18
|
-
accountId: ID;
|
|
19
|
-
accountType: string;
|
|
20
|
-
};
|
|
21
|
-
paymentAccountIds: ID[];
|
|
22
|
-
depositAccountIds: ID[];
|
|
23
17
|
allBankAccountIds: ID[];
|
|
24
18
|
};
|
|
25
19
|
plaidConnectionDetails: PlaidConnectionDetails;
|
|
@@ -4,9 +4,11 @@ exports.initialPlaidAccountState = void 0;
|
|
|
4
4
|
exports.initialPlaidAccountState = {
|
|
5
5
|
accountDetails: {
|
|
6
6
|
fetchStatus: { fetchState: 'Not-Started', error: undefined },
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
cashAccountUpdateStatus: { fetchState: 'Not-Started', error: undefined },
|
|
8
|
+
primaryFundingAccountUpdateStatus: {
|
|
9
|
+
fetchState: 'Not-Started',
|
|
10
|
+
error: undefined,
|
|
11
|
+
},
|
|
10
12
|
allBankAccountIds: [],
|
|
11
13
|
},
|
|
12
14
|
plaidConnectionDetails: {
|
|
@@ -16,8 +16,6 @@ const snackbarReducer_1 = require("../../../../../../entity/snackbar/snackbarRed
|
|
|
16
16
|
const setupViewReducer_1 = require("../../../../commonSetup/setupViewReducer");
|
|
17
17
|
const remiSetupViewReducer_1 = require("../../remiSetupViewReducer");
|
|
18
18
|
const plaidAccountViewReducer_1 = require("../../../../plaidAccount/plaidAccountViewReducer");
|
|
19
|
-
const billPayConfigPayload_1 = require("../../../../billPay/billPayConfig/billPayConfigPayload");
|
|
20
|
-
const billPayConfigState_1 = require("../../../../billPay/billPayConfig/billPayConfigState");
|
|
21
19
|
const depositAccountReducer_1 = require("../../../../../../entity/depositAccount/depositAccountReducer");
|
|
22
20
|
const paymentAccountListReducer_1 = require("../../../../zeniAccounts/paymentAccountList/paymentAccountListReducer");
|
|
23
21
|
const depositAccountListReducer_1 = require("../../../../zeniAccounts/depositAccountList/depositAccountListReducer");
|
|
@@ -34,20 +32,9 @@ const fetchRemiSetupViewEpic = (actions$, state$, zeniAPI) => actions$.pipe((0,
|
|
|
34
32
|
return zeniAPI
|
|
35
33
|
.getJSON(`${zeniAPI.apiEndPoints.tenantMicroServiceBaseUrl}/1.0/companies/${companyId}?query={"view":"reimbursement_setup"}`)
|
|
36
34
|
.pipe((0, operators_1.mergeMap)((response) => {
|
|
37
|
-
var _a, _b, _c
|
|
35
|
+
var _a, _b, _c;
|
|
38
36
|
if ((0, responsePayload_1.isSuccessResponse)(response) && response.data != null) {
|
|
39
37
|
const allBankAccountIds = response.data.accounts.map((account) => account.account_id);
|
|
40
|
-
const paymentAccountIds = response.data.payment_accounts.map((paymentAccount) => paymentAccount.payment_account_id);
|
|
41
|
-
const depositAccountIds = (_a = response.data.deposit_accounts) === null || _a === void 0 ? void 0 : _a.map((depositAccount) => depositAccount.deposit_account_id);
|
|
42
|
-
const primaryFundingAccountPayload = response.data.companies[0].reimbursement_info
|
|
43
|
-
.primary_funding_account;
|
|
44
|
-
const primaryFundingAccount = primaryFundingAccountPayload.account_id != null &&
|
|
45
|
-
primaryFundingAccountPayload.account_type != null
|
|
46
|
-
? {
|
|
47
|
-
accountId: primaryFundingAccountPayload.account_id,
|
|
48
|
-
accountType: (0, billPayConfigPayload_1.getAccountTypeSubConfigCodeKey)((0, billPayConfigState_1.toAccType)(primaryFundingAccountPayload.account_type)),
|
|
49
|
-
}
|
|
50
|
-
: undefined;
|
|
51
38
|
const actions = [
|
|
52
39
|
(0, userReducer_1.updateAllUsers)({ users: response.data.users }),
|
|
53
40
|
(0, userRoleReducer_1.updateUserRoles)(response.data.user_roles),
|
|
@@ -63,9 +50,9 @@ const fetchRemiSetupViewEpic = (actions$, state$, zeniAPI) => actions$.pipe((0,
|
|
|
63
50
|
data: response.data.payment_accounts,
|
|
64
51
|
updateType: 'replace',
|
|
65
52
|
}),
|
|
66
|
-
(0, depositAccountReducer_1.updateDepositAccounts)((
|
|
53
|
+
(0, depositAccountReducer_1.updateDepositAccounts)((_a = response.data.deposit_accounts) !== null && _a !== void 0 ? _a : []),
|
|
67
54
|
(0, depositAccountListReducer_1.updateDepositAccountList)({
|
|
68
|
-
data: (
|
|
55
|
+
data: (_c = (_b = response.data) === null || _b === void 0 ? void 0 : _b.deposit_accounts) !== null && _c !== void 0 ? _c : [],
|
|
69
56
|
updateType: 'replace',
|
|
70
57
|
}),
|
|
71
58
|
(0, setupViewReducer_1.updateSetupViewLocalStoreData)({
|
|
@@ -74,7 +61,7 @@ const fetchRemiSetupViewEpic = (actions$, state$, zeniAPI) => actions$.pipe((0,
|
|
|
74
61
|
(0, remiSetupViewReducer_1.updateRemiSetupViewLocalStoreData)({
|
|
75
62
|
companyId: response.data.companies[0].company_id,
|
|
76
63
|
}),
|
|
77
|
-
(0, plaidAccountViewReducer_1.updatePlaidAccountViewAccountDetails)(allBankAccountIds,
|
|
64
|
+
(0, plaidAccountViewReducer_1.updatePlaidAccountViewAccountDetails)(allBankAccountIds, 'reimbursement_setup'),
|
|
78
65
|
(0, remiSetupViewReducer_1.fetchRemiSetupViewSuccess)(),
|
|
79
66
|
];
|
|
80
67
|
return (0, rxjs_1.from)(actions);
|
|
@@ -89,10 +76,10 @@ const fetchRemiSetupViewEpic = (actions$, state$, zeniAPI) => actions$.pipe((0,
|
|
|
89
76
|
}), (0, operators_1.catchError)((error) => (0, rxjs_1.of)((0, remiSetupViewReducer_1.fetchRemiSetupViewFailure)((0, responsePayload_1.createZeniAPIStatus)('Unexpected Error', 'Fetch Remi Setup view errored out' + JSON.stringify(error))))));
|
|
90
77
|
}
|
|
91
78
|
else {
|
|
92
|
-
const { allBankAccountIds
|
|
79
|
+
const { allBankAccountIds } = plaidAccountViewState['reimbursement_setup'].accountDetails;
|
|
93
80
|
return (0, rxjs_1.of)((0, setupViewReducer_1.updateSetupViewLocalStoreData)({
|
|
94
81
|
companyId,
|
|
95
|
-
}), (0, plaidAccountViewReducer_1.updatePlaidAccountViewAccountDetails)(allBankAccountIds,
|
|
82
|
+
}), (0, plaidAccountViewReducer_1.updatePlaidAccountViewAccountDetails)(allBankAccountIds, 'reimbursement_setup'), (0, remiSetupViewReducer_1.fetchRemiSetupViewSuccess)());
|
|
96
83
|
}
|
|
97
84
|
}));
|
|
98
85
|
exports.fetchRemiSetupViewEpic = fetchRemiSetupViewEpic;
|
|
@@ -9,12 +9,12 @@ const paymentAccountListSelector_1 = require("../paymentAccountList/paymentAccou
|
|
|
9
9
|
const zeniAccountsConfigSelector_1 = require("../zeniAccountsConfig/zeniAccountsConfigSelector");
|
|
10
10
|
const getZeniAccountList = (state, companyId) => {
|
|
11
11
|
const { zeniAccountListState, depositAccountState, paymentAccountState, plaidAccountViewState, depositAccountListState, paymentAccountListState, } = state;
|
|
12
|
-
const {
|
|
12
|
+
const { plaidConnectionDetails } = plaidAccountViewState['external_account'];
|
|
13
13
|
const depositAccountsSelectorView = (0, depositAccountListSelector_1.getAllDepostAccounts)(depositAccountState, depositAccountListState);
|
|
14
14
|
const zeniAccountsConfig = (0, zeniAccountsConfigSelector_1.getZeniAccountsConfigDetail)(state);
|
|
15
15
|
const companyView = (0, getCompanyView_1.getCompanyView)(state, companyId, []);
|
|
16
16
|
const companyBillPayInfo = companyView === null || companyView === void 0 ? void 0 : companyView.company.company.companyBillPayInfo;
|
|
17
|
-
const { paymentAccountIds } =
|
|
17
|
+
const { paymentAccountIds } = paymentAccountListState;
|
|
18
18
|
const externalAccountsSelectorView = (0, paymentAccountListSelector_1.getAllPaymentAccounts)(paymentAccountState, paymentAccountListState);
|
|
19
19
|
let summary = undefined;
|
|
20
20
|
if (zeniAccountListState.currentTab.id === 'zeniAccounts') {
|
|
@@ -13,5 +13,8 @@ import { ZeniAPI } from '../../../../../zeniAPI';
|
|
|
13
13
|
import { updateSetupViewLocalStoreData } from '../../../commonSetup/setupViewReducer';
|
|
14
14
|
import { fetchZeniAccountSetupView, fetchZeniAccountSetupViewFailure, fetchZeniAccountSetupViewSuccess } from '../zeniAccountSetupViewReducer';
|
|
15
15
|
import { updatePlaidAccountViewAccountDetails } from '../../../plaidAccount/plaidAccountViewReducer';
|
|
16
|
-
|
|
16
|
+
import { updatePaymentAccountList } from '../../paymentAccountList/paymentAccountListReducer';
|
|
17
|
+
import { updateDepositAccounts } from '../../../../../entity/depositAccount/depositAccountReducer';
|
|
18
|
+
import { updateDepositAccountList } from '../../depositAccountList/depositAccountListReducer';
|
|
19
|
+
export declare type ActionType = ReturnType<typeof fetchZeniAccountSetupView> | ReturnType<typeof updateAllUsers> | ReturnType<typeof updateUserRoles> | ReturnType<typeof updateCompanies> | ReturnType<typeof updateFiles> | ReturnType<typeof updateAccounts> | ReturnType<typeof updateAddresses> | ReturnType<typeof updatePaymentAccounts> | ReturnType<typeof updatePaymentAccountList> | ReturnType<typeof updateDepositAccounts> | ReturnType<typeof updateDepositAccountList> | ReturnType<typeof updatePlaidAccountViewAccountDetails> | ReturnType<typeof updateSetupViewLocalStoreData> | ReturnType<typeof openSnackbar> | ReturnType<typeof fetchZeniAccountSetupViewSuccess> | ReturnType<typeof fetchZeniAccountSetupViewFailure>;
|
|
17
20
|
export declare const fetchZeniAccountSetupViewEpic: (actions$: ActionsObservable<ActionType>, state$: StateObservable<RootState>, zeniAPI: ZeniAPI) => Observable<ActionType>;
|
package/lib/view/spendManagement/zeniAccounts/zeniAccountSetUp/epic/fetchZeniAccountSetupViewEpic.js
CHANGED
|
@@ -16,6 +16,9 @@ const responsePayload_1 = require("../../../../../responsePayload");
|
|
|
16
16
|
const setupViewReducer_1 = require("../../../commonSetup/setupViewReducer");
|
|
17
17
|
const zeniAccountSetupViewReducer_1 = require("../zeniAccountSetupViewReducer");
|
|
18
18
|
const plaidAccountViewReducer_1 = require("../../../plaidAccount/plaidAccountViewReducer");
|
|
19
|
+
const paymentAccountListReducer_1 = require("../../paymentAccountList/paymentAccountListReducer");
|
|
20
|
+
const depositAccountReducer_1 = require("../../../../../entity/depositAccount/depositAccountReducer");
|
|
21
|
+
const depositAccountListReducer_1 = require("../../depositAccountList/depositAccountListReducer");
|
|
19
22
|
const fetchZeniAccountSetupViewEpic = (actions$, state$, zeniAPI) => actions$.pipe((0, operators_1.filter)(zeniAccountSetupViewReducer_1.fetchZeniAccountSetupView.match), (0, operators_1.switchMap)((action) => {
|
|
20
23
|
var _a;
|
|
21
24
|
const { companyId, cacheOverride, refreshViewInBackground } = action.payload;
|
|
@@ -29,10 +32,9 @@ const fetchZeniAccountSetupViewEpic = (actions$, state$, zeniAPI) => actions$.pi
|
|
|
29
32
|
return zeniAPI
|
|
30
33
|
.getJSON(`${zeniAPI.apiEndPoints.tenantMicroServiceBaseUrl}/1.0/companies/${companyId}?query={"view":"deposit_accounts_setup"}`)
|
|
31
34
|
.pipe((0, operators_1.mergeMap)((response) => {
|
|
32
|
-
var _a, _b, _c, _d, _e, _f;
|
|
35
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
33
36
|
if ((0, responsePayload_1.isSuccessResponse)(response) && response.data != null) {
|
|
34
37
|
const allBankAccountIds = (_a = response.data.accounts) === null || _a === void 0 ? void 0 : _a.map((account) => account.account_id);
|
|
35
|
-
const paymentAccountIds = (_b = response.data.payment_accounts) === null || _b === void 0 ? void 0 : _b.map((paymentAccount) => paymentAccount.payment_account_id);
|
|
36
38
|
const actions = [
|
|
37
39
|
(0, userReducer_1.updateAllUsers)({ users: response.data.users }),
|
|
38
40
|
(0, userRoleReducer_1.updateUserRoles)(response.data.user_roles),
|
|
@@ -40,14 +42,23 @@ const fetchZeniAccountSetupViewEpic = (actions$, state$, zeniAPI) => actions$.pi
|
|
|
40
42
|
payload: response.data.companies,
|
|
41
43
|
schema: {},
|
|
42
44
|
}),
|
|
43
|
-
(0, addressReducer_1.updateAddresses)((
|
|
44
|
-
(0, fileReducer_1.updateFiles)({ files: (
|
|
45
|
-
(0, accountReducer_1.updateAccounts)((
|
|
46
|
-
(0, paymentAccountReducer_1.updatePaymentAccounts)(
|
|
45
|
+
(0, addressReducer_1.updateAddresses)((_b = response.data.addresses) !== null && _b !== void 0 ? _b : []),
|
|
46
|
+
(0, fileReducer_1.updateFiles)({ files: (_c = response.data.files) !== null && _c !== void 0 ? _c : [] }),
|
|
47
|
+
(0, accountReducer_1.updateAccounts)((_d = response.data.accounts) !== null && _d !== void 0 ? _d : [], 'zeni_accounts'),
|
|
48
|
+
(0, paymentAccountReducer_1.updatePaymentAccounts)(response.data.payment_accounts),
|
|
49
|
+
(0, paymentAccountListReducer_1.updatePaymentAccountList)({
|
|
50
|
+
data: response.data.payment_accounts,
|
|
51
|
+
updateType: 'replace',
|
|
52
|
+
}),
|
|
53
|
+
(0, depositAccountReducer_1.updateDepositAccounts)((_e = response.data.deposit_accounts) !== null && _e !== void 0 ? _e : []),
|
|
54
|
+
(0, depositAccountListReducer_1.updateDepositAccountList)({
|
|
55
|
+
data: (_g = (_f = response.data) === null || _f === void 0 ? void 0 : _f.deposit_accounts) !== null && _g !== void 0 ? _g : [],
|
|
56
|
+
updateType: 'replace',
|
|
57
|
+
}),
|
|
47
58
|
(0, setupViewReducer_1.updateSetupViewLocalStoreData)({
|
|
48
59
|
companyId: response.data.companies[0].company_id,
|
|
49
60
|
}),
|
|
50
|
-
(0, plaidAccountViewReducer_1.updatePlaidAccountViewAccountDetails)(allBankAccountIds,
|
|
61
|
+
(0, plaidAccountViewReducer_1.updatePlaidAccountViewAccountDetails)(allBankAccountIds, 'account_setup'),
|
|
51
62
|
(0, zeniAccountSetupViewReducer_1.fetchZeniAccountSetupViewSuccess)(),
|
|
52
63
|
];
|
|
53
64
|
return (0, rxjs_1.from)(actions);
|
|
@@ -63,10 +74,10 @@ const fetchZeniAccountSetupViewEpic = (actions$, state$, zeniAPI) => actions$.pi
|
|
|
63
74
|
JSON.stringify(error))))));
|
|
64
75
|
}
|
|
65
76
|
else {
|
|
66
|
-
const { allBankAccountIds
|
|
77
|
+
const { allBankAccountIds } = plaidAccountViewState['spend_management_setup'].accountDetails;
|
|
67
78
|
return (0, rxjs_1.of)((0, setupViewReducer_1.updateSetupViewLocalStoreData)({
|
|
68
79
|
companyId,
|
|
69
|
-
}), (0, plaidAccountViewReducer_1.updatePlaidAccountViewAccountDetails)(allBankAccountIds,
|
|
80
|
+
}), (0, plaidAccountViewReducer_1.updatePlaidAccountViewAccountDetails)(allBankAccountIds, 'account_setup'), (0, zeniAccountSetupViewReducer_1.fetchZeniAccountSetupViewSuccess)());
|
|
70
81
|
}
|
|
71
82
|
}));
|
|
72
83
|
exports.fetchZeniAccountSetupViewEpic = fetchZeniAccountSetupViewEpic;
|
package/lib/view/spendManagement/zeniAccounts/zeniAccountSetUp/zeniAccountSetupViewSelector.js
CHANGED
|
@@ -5,7 +5,7 @@ const getCompanyView_1 = require("../../../companyView/selectorHelpers/getCompan
|
|
|
5
5
|
const setupViewSelector_1 = require("../../commonSetup/setupViewSelector");
|
|
6
6
|
const helpers_1 = require("../../helpers");
|
|
7
7
|
function getZeniAccountSetupViewDetails(state, companyId) {
|
|
8
|
-
const zeniAccountSetupViewDetails = (0, setupViewSelector_1.getCommonSetupViewDetails)(state, companyId, 'zeni_accounts', '
|
|
8
|
+
const zeniAccountSetupViewDetails = (0, setupViewSelector_1.getCommonSetupViewDetails)(state, companyId, 'zeni_accounts', 'account_setup');
|
|
9
9
|
const companyView = (0, getCompanyView_1.getCompanyView)(state, companyId, []);
|
|
10
10
|
const companyZeniAccountInfo = companyView === null || companyView === void 0 ? void 0 : companyView.company.company.companyZeniAccountInfo;
|
|
11
11
|
const { zeniAccountSetupViewState, setupViewState } = state;
|
|
@@ -8,7 +8,7 @@ import { updateCreatedTagToLocalStore } from '../../taskManager/taskDetailView/t
|
|
|
8
8
|
export declare type ActionType = ReturnType<typeof createTag> | ReturnType<typeof updateTagCreateStatus> | ReturnType<typeof openSnackbar> | ReturnType<typeof updateCreatedTagToLocalStore> | ReturnType<typeof updateTags>;
|
|
9
9
|
export declare const createTagEpic: (actions$: ActionsObservable<ActionType>, _state$: StateObservable<RootState>, zeniAPI: ZeniAPI) => import("rxjs").Observable<{
|
|
10
10
|
payload: {
|
|
11
|
-
messageSection: "reimbursement_setup" | "common" | "transactionDetails_updatingPastTransactions" | "transactionDetails_transactionUpdated" | "cockpit_month_end_email_sent" | "cockpit_month_end_email_save" | "cockpit_month_end_email_attachment_upload" | "audit_score_updated" | "people_invite_people" | "people_invite_multiple_people" | "people_delete_person" | "people_update_person" | "reimbursement_updated" | "reimbursement_deleted" | "reimbursement_cancelled_deleted" | "reimbursement_cancelled" | "reimbursement_approved" | "reimbursement_rejected" | "reimbursement_sent_for_approval" | "account_added" | "business_verification_save" | "business_verification_submit" | "business_verification_from_bills_submit" | "plaid_connection" | "unlink_deposit_account" | "reimbursement_approval_create" | "reimbursement_duplicate_approval_create" | "reimbursement_approval_update" | "reimbursement_duplicate_approval_update" | "reimbursement_approval_delete" | "reimbursement_create_mileage" | "reimbursement_update_mileage" | "reimbursement_accept_term" | "reimbursement_accept_employee_term" | "
|
|
11
|
+
messageSection: "bill_pay_setup" | "reimbursement_setup" | "charge_card_setup" | "common" | "transactionDetails_updatingPastTransactions" | "transactionDetails_transactionUpdated" | "cockpit_month_end_email_sent" | "cockpit_month_end_email_save" | "cockpit_month_end_email_attachment_upload" | "audit_score_updated" | "people_invite_people" | "people_invite_multiple_people" | "people_delete_person" | "people_update_person" | "reimbursement_updated" | "reimbursement_deleted" | "reimbursement_cancelled_deleted" | "reimbursement_cancelled" | "reimbursement_approved" | "reimbursement_rejected" | "reimbursement_sent_for_approval" | "account_added" | "business_verification_save" | "business_verification_submit" | "business_verification_from_bills_submit" | "plaid_connection" | "unlink_deposit_account" | "reimbursement_approval_create" | "reimbursement_duplicate_approval_create" | "reimbursement_approval_update" | "reimbursement_duplicate_approval_update" | "reimbursement_approval_delete" | "reimbursement_create_mileage" | "reimbursement_update_mileage" | "reimbursement_accept_term" | "reimbursement_accept_employee_term" | "zeni_accounts_setup" | "bill_pay_approval_create" | "bill_pay_duplicate_approval_create" | "bill_pay_approval_update" | "bill_pay_duplicate_approval_update" | "bill_pay_approval_delete" | "bill_pay_updated" | "bill_pay_deleted" | "bill_pay_cancelled_deleted" | "bill_pay_cancelled" | "bill_pay_approved" | "real_time_approver_added" | "bill_pay_rejected" | "bill_pay_sent_for_approval" | "bill_pay_accept_term" | "bill_pay_bulk_submit" | "bill_pay_bulk_processed" | "zeni_account_accept_term" | "update_vendor" | "data_refresh_update" | "delete_bank_account" | "create_bank_account" | "create_bank_account_ach" | "create_bank_account_wire" | "create_bank_account_international" | "transfer_money" | "update_zeni_account_nickname" | "create_checking_account" | "deposit_check" | "create_vendor" | "onboarding_customer_view" | "onboarding_customer_view_complete" | "onboarding_customer_identity_verification_save" | "onboarding_customer_identity_verification_submit" | "onboarding_customer_business_verification_save" | "onboarding_customer_business_verification_submit" | "retry_bank_account_connection" | "dashboard_invite_sent" | "onboarding_info_saved" | "approve_original_merchant" | "approve_global_merchant" | "reject_global_merchant" | "create_global_merchant" | "fetch_global_merchant_no_recommendation" | "save_vendor_renamed" | "save_vendor_sent_for_review" | "save_vendor_marked_as_employee" | "save_vendor_marked_as_local_contractor" | "charge_card_accept_term" | "create_schedule" | "save_schedule" | "delete_schedule" | "save_task_detail" | "fetch_task_detail" | "delete_task" | "archive_task" | "create_tag" | "delete_tag" | "update_charge_card" | "issue_charge_card" | "notification_settings_saved" | "referral_invite_sent" | "notification_mark_as_read" | "mark_as_complete_schedule" | "settings_accounting_accounts_updated" | "create_card_setup" | "confirm_card_setup" | "add_card_payment_source" | "fetch_payment_sources" | "task_assigned_toast_notification" | "task_due_tomorrow_toast_notification" | "task_deleted_toast_notification" | "task_archived_toast_notification" | "task_overdue_toast_notification" | "task_overdue_toast_notification_creator" | "task_notification_count" | "task_activities_toast_notification" | "task_created_toast_notification" | "task_group_creation_success" | "task_group_deletion_success" | "task_group_update_success";
|
|
12
12
|
messageText: "failed" | "success" | "notification";
|
|
13
13
|
type: import("../../..").SnackbarMessageType;
|
|
14
14
|
showStatusIcon?: boolean | undefined;
|
|
@@ -20,15 +20,15 @@ export declare const createTagEpic: (actions$: ActionsObservable<ActionType>, _s
|
|
|
20
20
|
type: string;
|
|
21
21
|
} | {
|
|
22
22
|
payload: {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
error?: import("../../../responsePayload").ZeniAPIStatus<Record<string, unknown>> | undefined;
|
|
23
|
+
tagId: string;
|
|
24
|
+
taskId?: string | undefined;
|
|
26
25
|
};
|
|
27
26
|
type: string;
|
|
28
27
|
} | {
|
|
29
28
|
payload: {
|
|
30
|
-
|
|
31
|
-
|
|
29
|
+
fetchState: import("../../../commonStateTypes/common").FetchState;
|
|
30
|
+
tagsId: string[];
|
|
31
|
+
error?: import("../../../responsePayload").ZeniAPIStatus<Record<string, unknown>> | undefined;
|
|
32
32
|
};
|
|
33
33
|
type: string;
|
|
34
34
|
} | import("@reduxjs/toolkit").PayloadAction<import("../../../entity/tag/tagPayload").TagPayload[], string, {
|
|
@@ -9,7 +9,7 @@ export declare const deleteTagEpic: (actions$: ActionsObservable<ActionType>, _s
|
|
|
9
9
|
type: string;
|
|
10
10
|
} | {
|
|
11
11
|
payload: {
|
|
12
|
-
messageSection: "reimbursement_setup" | "common" | "transactionDetails_updatingPastTransactions" | "transactionDetails_transactionUpdated" | "cockpit_month_end_email_sent" | "cockpit_month_end_email_save" | "cockpit_month_end_email_attachment_upload" | "audit_score_updated" | "people_invite_people" | "people_invite_multiple_people" | "people_delete_person" | "people_update_person" | "reimbursement_updated" | "reimbursement_deleted" | "reimbursement_cancelled_deleted" | "reimbursement_cancelled" | "reimbursement_approved" | "reimbursement_rejected" | "reimbursement_sent_for_approval" | "account_added" | "business_verification_save" | "business_verification_submit" | "business_verification_from_bills_submit" | "plaid_connection" | "unlink_deposit_account" | "reimbursement_approval_create" | "reimbursement_duplicate_approval_create" | "reimbursement_approval_update" | "reimbursement_duplicate_approval_update" | "reimbursement_approval_delete" | "reimbursement_create_mileage" | "reimbursement_update_mileage" | "reimbursement_accept_term" | "reimbursement_accept_employee_term" | "
|
|
12
|
+
messageSection: "bill_pay_setup" | "reimbursement_setup" | "charge_card_setup" | "common" | "transactionDetails_updatingPastTransactions" | "transactionDetails_transactionUpdated" | "cockpit_month_end_email_sent" | "cockpit_month_end_email_save" | "cockpit_month_end_email_attachment_upload" | "audit_score_updated" | "people_invite_people" | "people_invite_multiple_people" | "people_delete_person" | "people_update_person" | "reimbursement_updated" | "reimbursement_deleted" | "reimbursement_cancelled_deleted" | "reimbursement_cancelled" | "reimbursement_approved" | "reimbursement_rejected" | "reimbursement_sent_for_approval" | "account_added" | "business_verification_save" | "business_verification_submit" | "business_verification_from_bills_submit" | "plaid_connection" | "unlink_deposit_account" | "reimbursement_approval_create" | "reimbursement_duplicate_approval_create" | "reimbursement_approval_update" | "reimbursement_duplicate_approval_update" | "reimbursement_approval_delete" | "reimbursement_create_mileage" | "reimbursement_update_mileage" | "reimbursement_accept_term" | "reimbursement_accept_employee_term" | "zeni_accounts_setup" | "bill_pay_approval_create" | "bill_pay_duplicate_approval_create" | "bill_pay_approval_update" | "bill_pay_duplicate_approval_update" | "bill_pay_approval_delete" | "bill_pay_updated" | "bill_pay_deleted" | "bill_pay_cancelled_deleted" | "bill_pay_cancelled" | "bill_pay_approved" | "real_time_approver_added" | "bill_pay_rejected" | "bill_pay_sent_for_approval" | "bill_pay_accept_term" | "bill_pay_bulk_submit" | "bill_pay_bulk_processed" | "zeni_account_accept_term" | "update_vendor" | "data_refresh_update" | "delete_bank_account" | "create_bank_account" | "create_bank_account_ach" | "create_bank_account_wire" | "create_bank_account_international" | "transfer_money" | "update_zeni_account_nickname" | "create_checking_account" | "deposit_check" | "create_vendor" | "onboarding_customer_view" | "onboarding_customer_view_complete" | "onboarding_customer_identity_verification_save" | "onboarding_customer_identity_verification_submit" | "onboarding_customer_business_verification_save" | "onboarding_customer_business_verification_submit" | "retry_bank_account_connection" | "dashboard_invite_sent" | "onboarding_info_saved" | "approve_original_merchant" | "approve_global_merchant" | "reject_global_merchant" | "create_global_merchant" | "fetch_global_merchant_no_recommendation" | "save_vendor_renamed" | "save_vendor_sent_for_review" | "save_vendor_marked_as_employee" | "save_vendor_marked_as_local_contractor" | "charge_card_accept_term" | "create_schedule" | "save_schedule" | "delete_schedule" | "save_task_detail" | "fetch_task_detail" | "delete_task" | "archive_task" | "create_tag" | "delete_tag" | "update_charge_card" | "issue_charge_card" | "notification_settings_saved" | "referral_invite_sent" | "notification_mark_as_read" | "mark_as_complete_schedule" | "settings_accounting_accounts_updated" | "create_card_setup" | "confirm_card_setup" | "add_card_payment_source" | "fetch_payment_sources" | "task_assigned_toast_notification" | "task_due_tomorrow_toast_notification" | "task_deleted_toast_notification" | "task_archived_toast_notification" | "task_overdue_toast_notification" | "task_overdue_toast_notification_creator" | "task_notification_count" | "task_activities_toast_notification" | "task_created_toast_notification" | "task_group_creation_success" | "task_group_deletion_success" | "task_group_update_success";
|
|
13
13
|
messageText: "failed" | "success" | "notification";
|
|
14
14
|
type: import("../../..").SnackbarMessageType;
|
|
15
15
|
showStatusIcon?: boolean | undefined;
|
|
@@ -21,15 +21,15 @@ export declare const deleteTagEpic: (actions$: ActionsObservable<ActionType>, _s
|
|
|
21
21
|
type: string;
|
|
22
22
|
} | {
|
|
23
23
|
payload: {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
error?: import("../../../responsePayload").ZeniAPIStatus<Record<string, unknown>> | undefined;
|
|
24
|
+
tagId: string | undefined;
|
|
25
|
+
taskId: string | undefined;
|
|
27
26
|
};
|
|
28
27
|
type: string;
|
|
29
28
|
} | {
|
|
30
29
|
payload: {
|
|
31
|
-
|
|
32
|
-
|
|
30
|
+
fetchState: import("../../..").FetchState;
|
|
31
|
+
tagId: string;
|
|
32
|
+
error?: import("../../../responsePayload").ZeniAPIStatus<Record<string, unknown>> | undefined;
|
|
33
33
|
};
|
|
34
34
|
type: string;
|
|
35
35
|
}>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zeniai/client-epic-state",
|
|
3
|
-
"version": "4.11.
|
|
3
|
+
"version": "4.11.47",
|
|
4
4
|
"description": "Shared module between Web & Mobile containing required abstractions for state management, async network communication. ",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|