@zeniai/client-epic-state 4.13.4 → 4.13.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/lib/entity/account/accountPayload.d.ts +1 -1
- package/lib/entity/snackbar/snackbarTypes.d.ts +1 -1
- package/lib/entity/snackbar/snackbarTypes.js +1 -0
- package/lib/entity/tenant/clearAllEpic.d.ts +3 -1
- package/lib/entity/tenant/clearAllEpic.js +4 -0
- package/lib/entity/toastNotification/epic/pushToastNotificationEpic.d.ts +1 -1
- package/lib/entity/vendor/__mocks__/vendorMock.js +0 -2
- package/lib/entity/vendor/__mocks__/vendorStateMocks.d.ts +1 -0
- package/lib/entity/vendor/__mocks__/vendorStateMocks.js +73 -4
- package/lib/entity/vendor/vendorPayload.d.ts +6 -1
- package/lib/entity/vendor/vendorPayload.js +3 -3
- package/lib/entity/vendor/vendorState.d.ts +8 -1
- package/lib/entity/vendor/vendorType.d.ts +2 -0
- package/lib/entity/vendor/vendorType.js +4 -1
- package/lib/epic.d.ts +2 -1
- package/lib/epic.js +2 -1
- package/lib/reducer.d.ts +3 -0
- package/lib/reducer.js +3 -0
- package/lib/view/accountMappingView/__mocks__/accountMappingSelectorMock.d.ts +11 -0
- package/lib/view/accountMappingView/__mocks__/accountMappingSelectorMock.js +4607 -0
- package/lib/view/accountMappingView/accountMappingPayload.js +75 -32
- package/lib/view/accountMappingView/accountMappingReducer.js +36 -10
- package/lib/view/accountMappingView/accountMappingState.d.ts +1 -1
- package/lib/view/accountMappingView/accountMappingViewSelector.d.ts +5 -0
- package/lib/view/accountMappingView/accountMappingViewSelector.js +11 -1
- package/lib/view/accountMappingView/initializeAccountMappingViewEpic.d.ts +2 -1
- package/lib/view/accountMappingView/initializeAccountMappingViewEpic.js +2 -0
- package/lib/view/accountMappingView/saveAccountMappingViewEpic.js +6 -1
- 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/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/settingsView/epic/saveNotificationSettingsEpic.d.ts +1 -1
- package/lib/view/tagView/epics/createTagEpic.d.ts +1 -1
- package/lib/view/tagView/epics/deleteTagEpic.d.ts +1 -1
- package/lib/view/vendor1099TypeList/vendor1099TypeListEpic.d.ts +7 -0
- package/lib/view/vendor1099TypeList/vendor1099TypeListEpic.js +23 -0
- package/lib/view/vendor1099TypeList/vendor1099TypeListPayload.d.ts +15 -0
- package/lib/view/vendor1099TypeList/vendor1099TypeListPayload.js +2 -0
- package/lib/view/vendor1099TypeList/vendor1099TypeListReducer.d.ts +7 -0
- package/lib/view/vendor1099TypeList/vendor1099TypeListReducer.js +52 -0
- package/lib/view/vendor1099TypeList/vendor1099TypeListState.d.ts +9 -0
- package/lib/view/vendor1099TypeList/vendor1099TypeListState.js +2 -0
- package/lib/view/vendorFiling1099/__mock__/json/vendorFiling1099ListSuccess.json +4 -1
- package/lib/view/vendorFiling1099/__mock__/vendorFiling1099ListMock.js +12 -3
- package/lib/view/vendorFiling1099/__mock__/vendorFiling1099ListSelectorMock.js +2 -4
- package/lib/view/vendorFiling1099/__mock__/vendorFiling1099UploadDetailsMock.d.ts +4 -1
- package/lib/view/vendorFiling1099/vendorFiling1099List/fetchVendorsFiling1099AllEpic.d.ts +2 -2
- package/lib/view/vendorFiling1099/vendorFiling1099List/fetchVendorsFiling1099AllEpic.js +7 -7
- package/lib/view/vendorFiling1099/vendorFiling1099List/vendorFiling1099ListSelector.js +21 -10
- package/lib/view/vendorFiling1099/vendorFiling1099List/vendorFiling1099ListState.d.ts +1 -1
- package/lib/view/vendorFiling1099/vendorFiling1099List/vendorFiling1099ListState.js +1 -0
- package/package.json +1 -1
|
@@ -1,90 +1,99 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
3
|
+
var t = {};
|
|
4
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
5
|
+
t[p] = s[p];
|
|
6
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
7
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
8
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
9
|
+
t[p[i]] = s[p[i]];
|
|
10
|
+
}
|
|
11
|
+
return t;
|
|
12
|
+
};
|
|
2
13
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
14
|
exports.toSaveAccountMappingPayload = void 0;
|
|
4
15
|
const toSaveAccountMappingPayload = (accountingLocalData) => {
|
|
5
16
|
const accounts = [];
|
|
6
|
-
const initialTax1099Config = {
|
|
7
|
-
is_bank_account: false,
|
|
8
|
-
is_expense_account: false,
|
|
9
|
-
expense_type: null,
|
|
10
|
-
type_1099: null,
|
|
11
|
-
box_type: null,
|
|
12
|
-
};
|
|
13
17
|
const findAndUpdateAccount = (accountId, label, tax1099Config) => {
|
|
14
18
|
const existingAccount = accounts.find((account) => account.account_id === accountId);
|
|
15
19
|
if (existingAccount) {
|
|
16
20
|
// Add label if not already present
|
|
17
|
-
if (label
|
|
21
|
+
if (label !== '' &&
|
|
18
22
|
existingAccount.labels &&
|
|
19
23
|
!existingAccount.labels.includes(label)) {
|
|
20
24
|
existingAccount.labels.push(label);
|
|
21
25
|
}
|
|
22
26
|
// Merge tax_1099_config fields, updating them if new values are non-null
|
|
23
27
|
if (tax1099Config != null) {
|
|
24
|
-
|
|
28
|
+
const { is_bank_account } = tax1099Config, restOfTax1099Config = __rest(tax1099Config, ["is_bank_account"]); // Exclude is_bank_account
|
|
29
|
+
existingAccount.tax_1099_config = Object.assign(Object.assign(Object.assign({}, existingAccount.tax_1099_config), restOfTax1099Config), { is_bank_account: existingAccount.tax_1099_config
|
|
30
|
+
? existingAccount.tax_1099_config.is_bank_account
|
|
31
|
+
: is_bank_account });
|
|
25
32
|
}
|
|
26
33
|
}
|
|
27
34
|
else {
|
|
28
35
|
// Add a new account if it doesn't exist
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
36
|
+
if (accountId !== '') {
|
|
37
|
+
accounts.push({
|
|
38
|
+
account_id: accountId,
|
|
39
|
+
labels: label.length === 0 ? [] : [label],
|
|
40
|
+
tax_1099_config: tax1099Config,
|
|
41
|
+
});
|
|
42
|
+
}
|
|
34
43
|
}
|
|
35
44
|
};
|
|
36
45
|
if (accountingLocalData.selectedIncomeAccountId != null) {
|
|
37
|
-
findAndUpdateAccount(accountingLocalData.selectedIncomeAccountId, 'uncategorized_income');
|
|
46
|
+
findAndUpdateAccount(accountingLocalData.selectedIncomeAccountId, 'uncategorized_income', null);
|
|
38
47
|
}
|
|
39
48
|
else if (accountingLocalData.previousIncomeAccount) {
|
|
40
|
-
findAndUpdateAccount(accountingLocalData.previousIncomeAccount.accountId, '');
|
|
49
|
+
findAndUpdateAccount(accountingLocalData.previousIncomeAccount.accountId, '', null);
|
|
41
50
|
}
|
|
42
51
|
if (accountingLocalData.selectedExpenseAccountId != null) {
|
|
43
|
-
findAndUpdateAccount(accountingLocalData.selectedExpenseAccountId, 'uncategorized_expense');
|
|
52
|
+
findAndUpdateAccount(accountingLocalData.selectedExpenseAccountId, 'uncategorized_expense', null);
|
|
44
53
|
}
|
|
45
54
|
else if (accountingLocalData.previousExpenseAccount) {
|
|
46
|
-
findAndUpdateAccount(accountingLocalData.previousExpenseAccount.accountId, '');
|
|
55
|
+
findAndUpdateAccount(accountingLocalData.previousExpenseAccount.accountId, '', null);
|
|
47
56
|
}
|
|
48
57
|
if (accountingLocalData.selectedBillPayAccountId != null) {
|
|
49
|
-
findAndUpdateAccount(accountingLocalData.selectedBillPayAccountId, 'bank_charges_and_fees');
|
|
58
|
+
findAndUpdateAccount(accountingLocalData.selectedBillPayAccountId, 'bank_charges_and_fees', null);
|
|
50
59
|
}
|
|
51
60
|
else if (accountingLocalData.previousBillPayAccount) {
|
|
52
|
-
findAndUpdateAccount(accountingLocalData.previousBillPayAccount.accountId, '');
|
|
61
|
+
findAndUpdateAccount(accountingLocalData.previousBillPayAccount.accountId, '', null);
|
|
53
62
|
}
|
|
54
63
|
if (accountingLocalData.selectedReimbursementsAccountId != null) {
|
|
55
|
-
findAndUpdateAccount(accountingLocalData.selectedReimbursementsAccountId, 'travel_transportation');
|
|
64
|
+
findAndUpdateAccount(accountingLocalData.selectedReimbursementsAccountId, 'travel_transportation', null);
|
|
56
65
|
}
|
|
57
66
|
else if (accountingLocalData.previousReimbursementsAccount) {
|
|
58
|
-
findAndUpdateAccount(accountingLocalData.previousReimbursementsAccount.accountId, '');
|
|
67
|
+
findAndUpdateAccount(accountingLocalData.previousReimbursementsAccount.accountId, '', null);
|
|
59
68
|
}
|
|
60
69
|
if (accountingLocalData.selectedPrepaidExpensesAccountIds.length > 0) {
|
|
61
70
|
accountingLocalData.selectedPrepaidExpensesAccountIds.forEach((accountId) => {
|
|
62
|
-
findAndUpdateAccount(accountId, 'prepaid_expenses');
|
|
71
|
+
findAndUpdateAccount(accountId, 'prepaid_expenses', null);
|
|
63
72
|
});
|
|
64
73
|
}
|
|
65
74
|
else if (accountingLocalData.previousPrepaidExpensesAccount.length > 0) {
|
|
66
75
|
accountingLocalData.previousPrepaidExpensesAccount.forEach((account) => {
|
|
67
|
-
findAndUpdateAccount(account.accountId, '');
|
|
76
|
+
findAndUpdateAccount(account.accountId, '', null);
|
|
68
77
|
});
|
|
69
78
|
}
|
|
70
79
|
if (accountingLocalData.selectedFixedAssetsAccountIds.length > 0) {
|
|
71
80
|
accountingLocalData.selectedFixedAssetsAccountIds.forEach((accountId) => {
|
|
72
|
-
findAndUpdateAccount(accountId, 'fixed_assets');
|
|
81
|
+
findAndUpdateAccount(accountId, 'fixed_assets', null);
|
|
73
82
|
});
|
|
74
83
|
}
|
|
75
84
|
else if (accountingLocalData.previousFixedAssetsAccount.length > 0) {
|
|
76
85
|
accountingLocalData.previousFixedAssetsAccount.forEach((account) => {
|
|
77
|
-
findAndUpdateAccount(account.accountId, '');
|
|
86
|
+
findAndUpdateAccount(account.accountId, '', null);
|
|
78
87
|
});
|
|
79
88
|
}
|
|
80
89
|
if (accountingLocalData.selectedAccruedExpensesAccountIds.length > 0) {
|
|
81
90
|
accountingLocalData.selectedAccruedExpensesAccountIds.forEach((accountId) => {
|
|
82
|
-
findAndUpdateAccount(accountId, 'accrued_expenses');
|
|
91
|
+
findAndUpdateAccount(accountId, 'accrued_expenses', null);
|
|
83
92
|
});
|
|
84
93
|
}
|
|
85
94
|
else if (accountingLocalData.previousAccruedExpensesAccount.length > 0) {
|
|
86
95
|
accountingLocalData.previousAccruedExpensesAccount.forEach((account) => {
|
|
87
|
-
findAndUpdateAccount(account.accountId, '');
|
|
96
|
+
findAndUpdateAccount(account.accountId, '', null);
|
|
88
97
|
});
|
|
89
98
|
}
|
|
90
99
|
if (accountingLocalData.selectedBankAccounts1099FilingAccountIds.length > 0) {
|
|
@@ -97,26 +106,60 @@ const toSaveAccountMappingPayload = (accountingLocalData) => {
|
|
|
97
106
|
box_type: null,
|
|
98
107
|
});
|
|
99
108
|
});
|
|
109
|
+
const missingAccountIds = accountingLocalData.previousBankAccounts1099FilingAccount
|
|
110
|
+
.filter((account) => !accountingLocalData.selectedBankAccounts1099FilingAccountIds.includes(account.accountId))
|
|
111
|
+
.map((account) => account.accountId);
|
|
112
|
+
missingAccountIds.forEach((accountId) => {
|
|
113
|
+
findAndUpdateAccount(accountId, '', null);
|
|
114
|
+
});
|
|
100
115
|
}
|
|
101
116
|
else if (accountingLocalData.previousBankAccounts1099FilingAccount.length > 0) {
|
|
102
117
|
accountingLocalData.previousBankAccounts1099FilingAccount.forEach((account) => {
|
|
103
|
-
findAndUpdateAccount(account.accountId, '',
|
|
118
|
+
findAndUpdateAccount(account.accountId, '', null);
|
|
104
119
|
});
|
|
105
120
|
}
|
|
106
|
-
if (accountingLocalData.selectedExpenseAccounts1099FilingAccountIds.length >
|
|
121
|
+
if (accountingLocalData.selectedExpenseAccounts1099FilingAccountIds.length > 1) {
|
|
107
122
|
accountingLocalData.selectedExpenseAccounts1099FilingAccountIds.forEach((account) => {
|
|
108
123
|
findAndUpdateAccount(account.accountId, '', {
|
|
109
|
-
is_bank_account:
|
|
124
|
+
is_bank_account: accountingLocalData.selectedBankAccounts1099FilingAccountIds.includes(account.accountId),
|
|
110
125
|
is_expense_account: true,
|
|
111
126
|
expense_type: account.expenseType,
|
|
112
127
|
type_1099: account.type1099,
|
|
113
128
|
box_type: account.boxType,
|
|
114
129
|
});
|
|
115
130
|
});
|
|
131
|
+
const selectedAccountIds = accountingLocalData.selectedExpenseAccounts1099FilingAccountIds.map((item) => item.accountId);
|
|
132
|
+
const missingAccountIds = accountingLocalData.previousExpenseAccounts1099FilingAccount
|
|
133
|
+
.filter((item) => !selectedAccountIds.includes(item.accountId))
|
|
134
|
+
.map((item) => item.accountId);
|
|
135
|
+
missingAccountIds.forEach((accountId) => {
|
|
136
|
+
findAndUpdateAccount(accountId, '', null);
|
|
137
|
+
});
|
|
138
|
+
}
|
|
139
|
+
else if (accountingLocalData.selectedExpenseAccounts1099FilingAccountIds.length ===
|
|
140
|
+
1 &&
|
|
141
|
+
accountingLocalData.selectedExpenseAccounts1099FilingAccountIds[0]
|
|
142
|
+
.accountId !== '') {
|
|
143
|
+
accountingLocalData.selectedExpenseAccounts1099FilingAccountIds.forEach((account) => {
|
|
144
|
+
findAndUpdateAccount(account.accountId, '', {
|
|
145
|
+
is_bank_account: accountingLocalData.selectedBankAccounts1099FilingAccountIds.includes(account.accountId),
|
|
146
|
+
is_expense_account: true,
|
|
147
|
+
expense_type: account.expenseType,
|
|
148
|
+
type_1099: account.type1099,
|
|
149
|
+
box_type: account.boxType,
|
|
150
|
+
});
|
|
151
|
+
});
|
|
152
|
+
const selectedAccountIds = accountingLocalData.selectedExpenseAccounts1099FilingAccountIds.map((item) => item.accountId);
|
|
153
|
+
const missingAccountIds = accountingLocalData.previousExpenseAccounts1099FilingAccount
|
|
154
|
+
.filter((item) => !selectedAccountIds.includes(item.accountId))
|
|
155
|
+
.map((item) => item.accountId);
|
|
156
|
+
missingAccountIds.forEach((accountId) => {
|
|
157
|
+
findAndUpdateAccount(accountId, '', null);
|
|
158
|
+
});
|
|
116
159
|
}
|
|
117
160
|
else if (accountingLocalData.previousExpenseAccounts1099FilingAccount.length > 0) {
|
|
118
161
|
accountingLocalData.previousExpenseAccounts1099FilingAccount.forEach((account) => {
|
|
119
|
-
findAndUpdateAccount(account.accountId, '',
|
|
162
|
+
findAndUpdateAccount(account.accountId, '', null);
|
|
120
163
|
});
|
|
121
164
|
}
|
|
122
165
|
return accounts;
|
|
@@ -181,7 +181,7 @@ const doUpdateAccountListForAccountTypes = (draft, accountPayloadList) => {
|
|
|
181
181
|
else if (account.account_type === 'bank') {
|
|
182
182
|
bankAccounts1099FilingList.push(account); // list for bank accounts for Filing 1099
|
|
183
183
|
}
|
|
184
|
-
expenseAccounts1099FilingList.push(account); // list for
|
|
184
|
+
expenseAccounts1099FilingList.push(account); // list for expense Category 1099 accounts
|
|
185
185
|
});
|
|
186
186
|
draft.incomeAccountIdList = incomeList.map((account) => account.account_id);
|
|
187
187
|
draft.expenseAccountIdList = expenseList.map((account) => account.account_id);
|
|
@@ -259,15 +259,41 @@ const doUpdateAccountListForAccountTypes = (draft, accountPayloadList) => {
|
|
|
259
259
|
const expenseAccounts1099FilingAccountMetadata = expenseAccounts1099FilingList.map((acc) => (0, accountPayload_1.mapAccountMetadataPayloadToAccountMetadata)(acc));
|
|
260
260
|
const expenseAccounts1099FilingAccountBase = expenseAccounts1099FilingList.map((acc) => (0, accountPayload_1.mapAccountBasePayloadToAccountBase)(acc));
|
|
261
261
|
const expenseAccounts1099FilingAccountsIdentified = expenseAccounts1099FilingAccountBase.filter((account) => { var _a; return (_a = account.tax1099Config) === null || _a === void 0 ? void 0 : _a.isExpenseAccount; });
|
|
262
|
-
draft.data = Object.assign(Object.assign({}, draft.data), { selectedExpenseAccounts1099FilingAccountIds: expenseAccounts1099FilingAccountsIdentified.
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
262
|
+
draft.data = Object.assign(Object.assign({}, draft.data), { selectedExpenseAccounts1099FilingAccountIds: expenseAccounts1099FilingAccountsIdentified.length > 0
|
|
263
|
+
? expenseAccounts1099FilingAccountsIdentified.map((account) => {
|
|
264
|
+
var _a, _b, _c, _d, _e, _f;
|
|
265
|
+
return ({
|
|
266
|
+
accountId: account.accountId,
|
|
267
|
+
expenseType: (_b = (_a = account.tax1099Config) === null || _a === void 0 ? void 0 : _a.expenseType1099) !== null && _b !== void 0 ? _b : '',
|
|
268
|
+
type1099: (_d = (_c = account.tax1099Config) === null || _c === void 0 ? void 0 : _c.type1099) !== null && _d !== void 0 ? _d : '',
|
|
269
|
+
boxType: (_f = (_e = account.tax1099Config) === null || _e === void 0 ? void 0 : _e.boxType) !== null && _f !== void 0 ? _f : '',
|
|
270
|
+
});
|
|
271
|
+
})
|
|
272
|
+
: [
|
|
273
|
+
{
|
|
274
|
+
accountId: '',
|
|
275
|
+
expenseType: '',
|
|
276
|
+
type1099: '',
|
|
277
|
+
boxType: '',
|
|
278
|
+
},
|
|
279
|
+
], previousExpenseAccounts1099FilingAccount: expenseAccounts1099FilingAccountsIdentified.length > 0
|
|
280
|
+
? expenseAccounts1099FilingAccountsIdentified.map((account) => {
|
|
281
|
+
var _a, _b, _c, _d, _e, _f;
|
|
282
|
+
return ({
|
|
283
|
+
accountId: account.accountId,
|
|
284
|
+
expenseType: (_b = (_a = account.tax1099Config) === null || _a === void 0 ? void 0 : _a.expenseType1099) !== null && _b !== void 0 ? _b : '',
|
|
285
|
+
type1099: (_d = (_c = account.tax1099Config) === null || _c === void 0 ? void 0 : _c.type1099) !== null && _d !== void 0 ? _d : '',
|
|
286
|
+
boxType: (_f = (_e = account.tax1099Config) === null || _e === void 0 ? void 0 : _e.boxType) !== null && _f !== void 0 ? _f : '',
|
|
287
|
+
});
|
|
288
|
+
})
|
|
289
|
+
: [
|
|
290
|
+
{
|
|
291
|
+
accountId: '',
|
|
292
|
+
expenseType: '',
|
|
293
|
+
type1099: '',
|
|
294
|
+
boxType: '',
|
|
295
|
+
},
|
|
296
|
+
] });
|
|
271
297
|
draft.expenseAccounts1099FilingNestedAccountListHierarchy =
|
|
272
298
|
(0, getNestedAccountIDHierarchyForReport_1.geNestedAccountIDHierarchyForReport)(expenseAccounts1099FilingAccountMetadata);
|
|
273
299
|
/* 1099 Mapping Section End */
|
|
@@ -24,7 +24,7 @@ export interface AccountMappingLocalData {
|
|
|
24
24
|
previousFixedAssetsAccount: AccountBase[];
|
|
25
25
|
previousAccruedExpensesAccount: AccountBase[];
|
|
26
26
|
previousBankAccounts1099FilingAccount: AccountBase[];
|
|
27
|
-
previousExpenseAccounts1099FilingAccount:
|
|
27
|
+
previousExpenseAccounts1099FilingAccount: ExpenseCategory1099Filing[];
|
|
28
28
|
}
|
|
29
29
|
export interface ExpenseCategory1099Filing {
|
|
30
30
|
accountId: ID;
|
|
@@ -5,6 +5,8 @@ import { AccountBase } from '../../entity/account/accountState';
|
|
|
5
5
|
import { RootState } from '../../reducer';
|
|
6
6
|
import { AccountMappingLocalData } from './accountMappingState';
|
|
7
7
|
import { FetchStateAndError } from '../../commonStateTypes/common';
|
|
8
|
+
import { Expense1099Type } from '../vendor1099TypeList/vendor1099TypeListPayload';
|
|
9
|
+
import { VendorType } from '../vendorTypeList/vendorTypeListPayload';
|
|
8
10
|
export interface AccountMappingView extends SelectorView {
|
|
9
11
|
incomeAccountList: AccountBase[];
|
|
10
12
|
expenseAccountList: AccountBase[];
|
|
@@ -15,6 +17,9 @@ export interface AccountMappingView extends SelectorView {
|
|
|
15
17
|
accruedExpensesAccountList: AccountBase[];
|
|
16
18
|
bankAccounts1099FilingAccountList: AccountBase[];
|
|
17
19
|
expenseAccounts1099FilingAccountList: AccountBase[];
|
|
20
|
+
expenseTypeList: VendorType[];
|
|
21
|
+
expense1099TypeList: VendorType[];
|
|
22
|
+
boxTypesList: Expense1099Type;
|
|
18
23
|
incomeRecommendation?: Recommendation;
|
|
19
24
|
expenseRecommendation?: Recommendation;
|
|
20
25
|
billPayRecommendation?: Recommendation;
|
|
@@ -4,7 +4,7 @@ exports.getAccountMappingView = void 0;
|
|
|
4
4
|
const toolkit_1 = require("@reduxjs/toolkit");
|
|
5
5
|
const accountSelector_1 = require("../../entity/account/accountSelector");
|
|
6
6
|
const reduceFetchState_1 = require("../../commonStateTypes/reduceFetchState");
|
|
7
|
-
exports.getAccountMappingView = (0, toolkit_1.createSelector)((state) => state.accountMappingState, (state) => state.accountState, (state) => state.tasksCardState, (accountMappingState, accountState, tasksCardState) => {
|
|
7
|
+
exports.getAccountMappingView = (0, toolkit_1.createSelector)((state) => state.accountMappingState, (state) => state.accountState, (state) => state.tasksCardState, (state) => state.vendor1099TypeListState, (accountMappingState, accountState, tasksCardState, vendor1099TypeListState) => {
|
|
8
8
|
const incomeAccountList = [];
|
|
9
9
|
accountMappingState.incomeAccountIdList.forEach((accountId) => {
|
|
10
10
|
const account = (0, accountSelector_1.getAccountBase)(accountState, accountId, 'account_list_by_type');
|
|
@@ -68,9 +68,16 @@ exports.getAccountMappingView = (0, toolkit_1.createSelector)((state) => state.a
|
|
|
68
68
|
expenseAccounts1099FilingAccountList.push(account);
|
|
69
69
|
}
|
|
70
70
|
});
|
|
71
|
+
const expenseTypeList = vendor1099TypeListState.expenseTypes;
|
|
72
|
+
const expense1099TypeList = vendor1099TypeListState.expense1099Types;
|
|
73
|
+
const boxTypesList = vendor1099TypeListState.boxTypes;
|
|
71
74
|
const fetchState = (0, reduceFetchState_1.reduceAllFetchState)([
|
|
72
75
|
accountMappingState.accountListFetchState,
|
|
73
76
|
accountMappingState.recommendationFetchState,
|
|
77
|
+
{
|
|
78
|
+
fetchState: vendor1099TypeListState.fetchState,
|
|
79
|
+
error: vendor1099TypeListState.error,
|
|
80
|
+
},
|
|
74
81
|
]);
|
|
75
82
|
const saveState = getSaveState(accountMappingState.updateFetchState, tasksCardState);
|
|
76
83
|
return {
|
|
@@ -83,6 +90,9 @@ exports.getAccountMappingView = (0, toolkit_1.createSelector)((state) => state.a
|
|
|
83
90
|
accruedExpensesAccountList,
|
|
84
91
|
bankAccounts1099FilingAccountList,
|
|
85
92
|
expenseAccounts1099FilingAccountList,
|
|
93
|
+
expenseTypeList,
|
|
94
|
+
expense1099TypeList,
|
|
95
|
+
boxTypesList,
|
|
86
96
|
incomeRecommendation: accountMappingState.incomeRecommendations.length > 0
|
|
87
97
|
? accountMappingState.incomeRecommendations[0]
|
|
88
98
|
: undefined,
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ActionsObservable } from 'redux-observable';
|
|
2
2
|
import { fetchAccountListForAccountTypes, fetchRecommendationForAccountMapping } from './accountMappingReducer';
|
|
3
|
-
|
|
3
|
+
import { fetchVendor1099TypeList } from '../vendor1099TypeList/vendor1099TypeListReducer';
|
|
4
|
+
export declare type ActionType = ReturnType<typeof fetchAccountListForAccountTypes> | ReturnType<typeof fetchRecommendationForAccountMapping> | ReturnType<typeof fetchVendor1099TypeList>;
|
|
4
5
|
export declare const initializeAccountMappingViewEpic: (actions$: ActionsObservable<ActionType>) => import("rxjs").Observable<{
|
|
5
6
|
payload: undefined;
|
|
6
7
|
type: string;
|
|
@@ -4,10 +4,12 @@ exports.initializeAccountMappingViewEpic = void 0;
|
|
|
4
4
|
const rxjs_1 = require("rxjs");
|
|
5
5
|
const operators_1 = require("rxjs/operators");
|
|
6
6
|
const accountMappingReducer_1 = require("./accountMappingReducer");
|
|
7
|
+
const vendor1099TypeListReducer_1 = require("../vendor1099TypeList/vendor1099TypeListReducer");
|
|
7
8
|
const initializeAccountMappingViewEpic = (actions$) => actions$.pipe((0, operators_1.filter)(accountMappingReducer_1.initializeAccountMappingView.match), (0, operators_1.mergeMap)(() => {
|
|
8
9
|
const fetchActions = [];
|
|
9
10
|
fetchActions.push((0, accountMappingReducer_1.fetchAccountListForAccountTypes)());
|
|
10
11
|
fetchActions.push((0, accountMappingReducer_1.fetchRecommendationForAccountMapping)());
|
|
12
|
+
fetchActions.push((0, vendor1099TypeListReducer_1.fetchVendor1099TypeList)());
|
|
11
13
|
return (0, rxjs_1.from)(fetchActions);
|
|
12
14
|
}));
|
|
13
15
|
exports.initializeAccountMappingViewEpic = initializeAccountMappingViewEpic;
|
|
@@ -12,7 +12,12 @@ const saveAccountMappingViewEpic = (actions$, state, zeniAPI) => actions$.pipe((
|
|
|
12
12
|
const accountMappingState = state.value.accountMappingState;
|
|
13
13
|
const payload = (0, accountMappingPayload_1.toSaveAccountMappingPayload)(accountMappingState.data);
|
|
14
14
|
if (payload.length === 0) {
|
|
15
|
-
|
|
15
|
+
const action = [
|
|
16
|
+
(0, accountMappingReducer_1.saveAccountMappingFailure)({
|
|
17
|
+
status: (0, responsePayload_1.createZeniAPIStatus)('No Account Mapping Data to Save'),
|
|
18
|
+
}),
|
|
19
|
+
];
|
|
20
|
+
return (0, rxjs_1.from)(action);
|
|
16
21
|
}
|
|
17
22
|
else {
|
|
18
23
|
return zeniAPI
|
|
@@ -9,7 +9,7 @@ export declare const addCardPaymentSourceEpic: (actions$: ActionsObservable<Acti
|
|
|
9
9
|
type: string;
|
|
10
10
|
} | {
|
|
11
11
|
payload: {
|
|
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" | "je_bill_link" | "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" | "reimbursement_bulk_submit" | "reimbursement_bulk_processed" | "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" | "bill_pay_refund" | "bill_pay_retry" | "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" | "charge_card_receipt_upload" | "charge_card_resend_invite" | "charge_card_revoke_invite" | "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" | "cancel_journal_entry" | "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" | "primary_funding_account_updated" | "task_time_spent_validation";
|
|
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" | "je_bill_link" | "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" | "reimbursement_bulk_submit" | "reimbursement_bulk_processed" | "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" | "bill_pay_refund" | "bill_pay_retry" | "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" | "charge_card_receipt_upload" | "charge_card_resend_invite" | "charge_card_revoke_invite" | "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" | "cancel_journal_entry" | "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" | "primary_funding_account_updated" | "task_time_spent_validation" | "missing_receipts_attachment";
|
|
13
13
|
messageText: "failed" | "success" | "notification";
|
|
14
14
|
type: import("../../..").SnackbarMessageType;
|
|
15
15
|
showStatusIcon?: boolean | undefined;
|
|
@@ -5,7 +5,7 @@ import { SetupIntentData } from '../cardPaymentViewState';
|
|
|
5
5
|
export declare type ActionType = ReturnType<typeof confirmCardSetupIntent> | ReturnType<typeof openSnackbar> | ReturnType<typeof updateConfirmCardSetupIntentStatus>;
|
|
6
6
|
export declare const confirmCardSetupIntentEpic: (actions$: ActionsObservable<ActionType>) => import("rxjs").Observable<{
|
|
7
7
|
payload: {
|
|
8
|
-
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" | "je_bill_link" | "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" | "reimbursement_bulk_submit" | "reimbursement_bulk_processed" | "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" | "bill_pay_refund" | "bill_pay_retry" | "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" | "charge_card_receipt_upload" | "charge_card_resend_invite" | "charge_card_revoke_invite" | "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" | "cancel_journal_entry" | "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" | "primary_funding_account_updated" | "task_time_spent_validation";
|
|
8
|
+
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" | "je_bill_link" | "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" | "reimbursement_bulk_submit" | "reimbursement_bulk_processed" | "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" | "bill_pay_refund" | "bill_pay_retry" | "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" | "charge_card_receipt_upload" | "charge_card_resend_invite" | "charge_card_revoke_invite" | "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" | "cancel_journal_entry" | "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" | "primary_funding_account_updated" | "task_time_spent_validation" | "missing_receipts_attachment";
|
|
9
9
|
messageText: "failed" | "success" | "notification";
|
|
10
10
|
type: import("../../..").SnackbarMessageType;
|
|
11
11
|
showStatusIcon?: boolean | undefined;
|
|
@@ -7,7 +7,7 @@ import { openSnackbar } from '../../../entity/snackbar/snackbarReducer';
|
|
|
7
7
|
export declare type ActionType = ReturnType<typeof createCardSetupIntent> | ReturnType<typeof updateCardSetupIntentStatus> | ReturnType<typeof openSnackbar> | ReturnType<typeof updateCardPayments>;
|
|
8
8
|
export declare const createCardSetupIntentEpic: (actions$: ActionsObservable<ActionType>, _state$: StateObservable<RootState>, zeniAPI: ZeniAPI) => import("rxjs").Observable<{
|
|
9
9
|
payload: {
|
|
10
|
-
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" | "je_bill_link" | "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" | "reimbursement_bulk_submit" | "reimbursement_bulk_processed" | "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" | "bill_pay_refund" | "bill_pay_retry" | "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" | "charge_card_receipt_upload" | "charge_card_resend_invite" | "charge_card_revoke_invite" | "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" | "cancel_journal_entry" | "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" | "primary_funding_account_updated" | "task_time_spent_validation";
|
|
10
|
+
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" | "je_bill_link" | "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" | "reimbursement_bulk_submit" | "reimbursement_bulk_processed" | "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" | "bill_pay_refund" | "bill_pay_retry" | "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" | "charge_card_receipt_upload" | "charge_card_resend_invite" | "charge_card_revoke_invite" | "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" | "cancel_journal_entry" | "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" | "primary_funding_account_updated" | "task_time_spent_validation" | "missing_receipts_attachment";
|
|
11
11
|
messageText: "failed" | "success" | "notification";
|
|
12
12
|
type: import("../../..").SnackbarMessageType;
|
|
13
13
|
showStatusIcon?: boolean | undefined;
|
|
@@ -7,7 +7,7 @@ import { updateSubscriptionPaymentAccounts } from '../../../entity/subscriptionP
|
|
|
7
7
|
export declare type ActionType = ReturnType<typeof fetchPaymentSources> | ReturnType<typeof openSnackbar> | ReturnType<typeof updateSubscriptionPaymentAccounts> | ReturnType<typeof updatePaymentSources>;
|
|
8
8
|
export declare const fetchPaymentSourcesEpic: (actions$: ActionsObservable<ActionType>, _state$: StateObservable<RootState>, zeniAPI: ZeniAPI) => import("rxjs").Observable<{
|
|
9
9
|
payload: {
|
|
10
|
-
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" | "je_bill_link" | "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" | "reimbursement_bulk_submit" | "reimbursement_bulk_processed" | "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" | "bill_pay_refund" | "bill_pay_retry" | "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" | "charge_card_receipt_upload" | "charge_card_resend_invite" | "charge_card_revoke_invite" | "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" | "cancel_journal_entry" | "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" | "primary_funding_account_updated" | "task_time_spent_validation";
|
|
10
|
+
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" | "je_bill_link" | "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" | "reimbursement_bulk_submit" | "reimbursement_bulk_processed" | "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" | "bill_pay_refund" | "bill_pay_retry" | "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" | "charge_card_receipt_upload" | "charge_card_resend_invite" | "charge_card_revoke_invite" | "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" | "cancel_journal_entry" | "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" | "primary_funding_account_updated" | "task_time_spent_validation" | "missing_receipts_attachment";
|
|
11
11
|
messageText: "failed" | "success" | "notification";
|
|
12
12
|
type: import("../../..").SnackbarMessageType;
|
|
13
13
|
showStatusIcon?: boolean | undefined;
|
|
@@ -26,7 +26,7 @@ export declare const changeZeniPersonRolesEpic: (actions$: ActionsObservable<Act
|
|
|
26
26
|
type: string;
|
|
27
27
|
} | {
|
|
28
28
|
payload: {
|
|
29
|
-
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" | "je_bill_link" | "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" | "reimbursement_bulk_submit" | "reimbursement_bulk_processed" | "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" | "bill_pay_refund" | "bill_pay_retry" | "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" | "charge_card_receipt_upload" | "charge_card_resend_invite" | "charge_card_revoke_invite" | "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" | "cancel_journal_entry" | "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" | "primary_funding_account_updated" | "task_time_spent_validation";
|
|
29
|
+
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" | "je_bill_link" | "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" | "reimbursement_bulk_submit" | "reimbursement_bulk_processed" | "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" | "bill_pay_refund" | "bill_pay_retry" | "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" | "charge_card_receipt_upload" | "charge_card_resend_invite" | "charge_card_revoke_invite" | "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" | "cancel_journal_entry" | "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" | "primary_funding_account_updated" | "task_time_spent_validation" | "missing_receipts_attachment";
|
|
30
30
|
messageText: "failed" | "success" | "notification";
|
|
31
31
|
type: import("../..").SnackbarMessageType;
|
|
32
32
|
showStatusIcon?: boolean | undefined;
|
|
@@ -18,7 +18,7 @@ export declare const deletePersonEpic: (actions$: ActionsObservable<ActionType>,
|
|
|
18
18
|
type: string;
|
|
19
19
|
} | {
|
|
20
20
|
payload: {
|
|
21
|
-
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" | "je_bill_link" | "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" | "reimbursement_bulk_submit" | "reimbursement_bulk_processed" | "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" | "bill_pay_refund" | "bill_pay_retry" | "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" | "charge_card_receipt_upload" | "charge_card_resend_invite" | "charge_card_revoke_invite" | "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" | "cancel_journal_entry" | "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" | "primary_funding_account_updated" | "task_time_spent_validation";
|
|
21
|
+
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" | "je_bill_link" | "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" | "reimbursement_bulk_submit" | "reimbursement_bulk_processed" | "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" | "bill_pay_refund" | "bill_pay_retry" | "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" | "charge_card_receipt_upload" | "charge_card_resend_invite" | "charge_card_revoke_invite" | "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" | "cancel_journal_entry" | "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" | "primary_funding_account_updated" | "task_time_spent_validation" | "missing_receipts_attachment";
|
|
22
22
|
messageText: "failed" | "success" | "notification";
|
|
23
23
|
type: import("../..").SnackbarMessageType;
|
|
24
24
|
showStatusIcon?: boolean | undefined;
|
|
@@ -35,7 +35,7 @@ export declare const invitePeopleEpic: (actions$: ActionsObservable<ActionType>,
|
|
|
35
35
|
type: string;
|
|
36
36
|
} | {
|
|
37
37
|
payload: {
|
|
38
|
-
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" | "je_bill_link" | "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" | "reimbursement_bulk_submit" | "reimbursement_bulk_processed" | "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" | "bill_pay_refund" | "bill_pay_retry" | "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" | "charge_card_receipt_upload" | "charge_card_resend_invite" | "charge_card_revoke_invite" | "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" | "cancel_journal_entry" | "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" | "primary_funding_account_updated" | "task_time_spent_validation";
|
|
38
|
+
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" | "je_bill_link" | "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" | "reimbursement_bulk_submit" | "reimbursement_bulk_processed" | "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" | "bill_pay_refund" | "bill_pay_retry" | "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" | "charge_card_receipt_upload" | "charge_card_resend_invite" | "charge_card_revoke_invite" | "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" | "cancel_journal_entry" | "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" | "primary_funding_account_updated" | "task_time_spent_validation" | "missing_receipts_attachment";
|
|
39
39
|
messageText: "failed" | "success" | "notification";
|
|
40
40
|
type: import("../..").SnackbarMessageType;
|
|
41
41
|
showStatusIcon?: boolean | undefined;
|