@zeniai/client-epic-state 4.14.13 → 4.14.14
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/billPay/billTransaction/billTransactionPayload.d.ts +0 -1
- package/lib/entity/billPay/billTransaction/billTransactionPayload.js +0 -3
- package/lib/entity/billPay/billTransaction/billTransactionState.d.ts +3 -6
- package/lib/entity/billPay/billTransaction/billTransactionState.js +1 -18
- package/lib/entity/snackbar/snackbarTypes.d.ts +1 -1
- package/lib/entity/snackbar/snackbarTypes.js +0 -4
- package/lib/entity/tenant/epic/signInUserEpic.js +7 -13
- package/lib/entity/tenant/tenantReducer.d.ts +0 -1
- package/lib/entity/toastNotification/epic/pushToastNotificationEpic.d.ts +1 -1
- package/lib/index.d.ts +13 -14
- package/lib/index.js +15 -26
- package/lib/view/auditReportView/auditReportViewState.d.ts +1 -1
- package/lib/view/bankAccountView/bankAccountViewReducer.d.ts +2 -2
- package/lib/view/billPayCard/fetchBillPayCardEpic.js +0 -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/companyView/types/cockpitTypes.d.ts +1 -1
- package/lib/view/dashboard/dashboardEpic.js +8 -7
- package/lib/view/expenseAutomationView/epics/common/fetchAllExpenseAutomationTabsEpic.js +4 -7
- package/lib/view/expenseAutomationView/epics/common/refreshExpenseAutomationCurrentTabEpic.js +1 -2
- package/lib/view/expenseAutomationView/epics/jeSchedule/retryJeSchedulesEpic.d.ts +2 -2
- package/lib/view/expenseAutomationView/epics/jeSchedule/retryJeSchedulesEpic.js +1 -2
- package/lib/view/expenseAutomationView/epics/transactionCategorization/fetchTransactionCategorizationEpic.js +1 -1
- package/lib/view/expenseAutomationView/epics/transactionCategorization/fetchTransactionCategorizationViewEpic.js +1 -1
- package/lib/view/expenseAutomationView/epics/transactionCategorization/initializeTransactionCategorizationLocalDataEpic.js +3 -3
- package/lib/view/expenseAutomationView/epics/transactionCategorization/markTransactionAsNotMiscatgorizedEpic.js +27 -76
- package/lib/view/expenseAutomationView/epics/transactionCategorization/saveTransactionCategorizationEpic.js +2 -1
- package/lib/view/expenseAutomationView/epics/transactionCategorization/updateTransactionCategorizationEpic.js +2 -3
- package/lib/view/expenseAutomationView/expenseAutomationViewReducer.d.ts +3 -1
- package/lib/view/expenseAutomationView/expenseAutomationViewReducer.js +12 -2
- package/lib/view/expenseAutomationView/expenseAutomationViewSelector.js +12 -13
- package/lib/view/expenseAutomationView/expenseAutomationViewState.d.ts +2 -0
- package/lib/view/expenseAutomationView/helpers/helpers.d.ts +0 -3
- package/lib/view/expenseAutomationView/helpers/helpers.js +1 -4
- package/lib/view/expenseAutomationView/payload/transactionCategorizationPayload.d.ts +2 -1
- package/lib/view/expenseAutomationView/reducers/jeSchedulesViewReducer.d.ts +10 -12
- package/lib/view/expenseAutomationView/reducers/jeSchedulesViewReducer.js +2 -6
- package/lib/view/expenseAutomationView/reducers/transactionsViewReducer.d.ts +3 -5
- package/lib/view/expenseAutomationView/reducers/transactionsViewReducer.js +65 -102
- package/lib/view/expenseAutomationView/selectors/transactionCategorizationSelector.d.ts +2 -1
- package/lib/view/expenseAutomationView/selectors/transactionCategorizationSelector.js +11 -20
- package/lib/view/expenseAutomationView/types/transactionsViewState.d.ts +1 -4
- package/lib/view/financeStatement/financeStatementEpic.d.ts +4 -4
- package/lib/view/monthEndCloseChecksView/monthEndCloseChecksViewSelector.js +5 -4
- 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/recommendation/fetchEntityRecommendationsByTransactionIdEpic.js +1 -1
- package/lib/view/settingsView/epic/saveNotificationSettingsEpic.d.ts +1 -1
- package/lib/view/spendManagement/billPay/billDetailView/billDetailViewSelector.d.ts +2 -9
- package/lib/view/spendManagement/billPay/billDetailView/billDetailViewSelector.js +8 -35
- package/lib/view/spendManagement/billPay/billList/billListReducer.d.ts +1 -1
- package/lib/view/spendManagement/billPay/billList/billListSelector.d.ts +2 -3
- package/lib/view/spendManagement/billPay/billList/billListSelector.js +18 -55
- package/lib/view/spendManagement/billPay/billList/billListState.d.ts +1 -1
- package/lib/view/spendManagement/billPay/billList/billListState.js +0 -1
- package/lib/view/spendManagement/billPay/billPayConfig/billPayConfigPayload.d.ts +2 -7
- package/lib/view/spendManagement/billPay/billPayConfig/billPayConfigPayload.js +6 -18
- package/lib/view/spendManagement/billPay/billPayConfig/billPayConfigReducer.js +0 -6
- package/lib/view/spendManagement/billPay/billPayConfig/billPayConfigState.d.ts +4 -9
- package/lib/view/spendManagement/billPay/billPayConfig/billPayConfigState.js +4 -18
- package/lib/view/spendManagement/billPay/billPayReview/billPayReviewSelector.d.ts +1 -2
- package/lib/view/spendManagement/billPay/billPayReview/billPayReviewSelector.js +0 -2
- package/lib/view/spendManagement/billPay/editBillView/editBillViewReducer.d.ts +4 -8
- package/lib/view/spendManagement/billPay/editBillView/editBillViewReducer.js +5 -27
- package/lib/view/spendManagement/billPay/editBillView/editBillViewSelector.d.ts +2 -4
- package/lib/view/spendManagement/billPay/editBillView/editBillViewSelector.js +2 -33
- package/lib/view/spendManagement/billPay/editBillView/editBillViewState.d.ts +1 -6
- package/lib/view/spendManagement/billPay/editBillView/epics/initializeBillToLocalStoreEpic.js +5 -16
- package/lib/view/spendManagement/billPay/editBillView/epics/parseInvoiceToBillEpic.js +13 -27
- package/lib/view/spendManagement/billPay/editBillView/epics/saveBillDetailEpic.d.ts +3 -7
- package/lib/view/spendManagement/billPay/editBillView/epics/saveBillDetailEpic.js +28 -48
- package/lib/view/spendManagement/billPay/magicLinkView/magicLinkViewReducer.d.ts +2 -2
- package/lib/view/spendManagement/helpers.d.ts +0 -2
- package/lib/view/spendManagement/helpers.js +1 -9
- package/lib/view/spendManagement/reimbursement/editRemiView/editRemiViewReducer.d.ts +1 -6
- package/lib/view/spendManagement/reimbursement/editRemiView/editRemiViewReducer.js +2 -12
- package/lib/view/tagView/epics/createTagEpic.d.ts +1 -1
- package/lib/view/tagView/epics/deleteTagEpic.d.ts +1 -1
- package/lib/view/transactionDetail/epics/uploadMissingReceiptSuccessEpic.d.ts +1 -1
- package/package.json +1 -1
- package/lib/commonStateTypes/reimbursementTypeCode.d.ts +0 -2
- package/lib/commonStateTypes/reimbursementTypeCode.js +0 -5
|
@@ -10,12 +10,12 @@ import { AccountState } from '../../../../../entity/account/accountState';
|
|
|
10
10
|
import { PaymentAccountState } from '../../../../../entity/paymentAccount/paymentAccountState';
|
|
11
11
|
import { updateRecurringBillConfigs, updateRecurringBills } from '../../../../../entity/billPay/recurringBills/recurringBillsReducer';
|
|
12
12
|
import { RecurringBillState } from '../../../../../entity/billPay/recurringBills/recurringBillsState';
|
|
13
|
-
import { BillPaymentConfigCodeType,
|
|
13
|
+
import { PaymentAchSubConfigCodeType, BillPaymentConfigCodeType, BillPaymentWireSubConfigCodeType } from '../../billPayConfig/billPayConfigState';
|
|
14
14
|
import { openSnackbar } from '../../../../../entity/snackbar/snackbarReducer';
|
|
15
15
|
import { RecurringBillConfigBodyPayload } from '../../../../../entity/billPay/recurringBills/recurringBillsPayload';
|
|
16
16
|
export declare type ActionType = ReturnType<typeof saveBillDetail> | ReturnType<typeof updateBillTransaction> | ReturnType<typeof openSnackbar> | ReturnType<typeof saveBillSuccessOrFailure> | ReturnType<typeof updateRecurringBillConfigs> | ReturnType<typeof updateRecurringBills>;
|
|
17
17
|
export declare const saveBillDetailEpic: (actions$: ActionsObservable<ActionType>, state$: StateObservable<RootState>, zeniAPI: ZeniAPI) => import("rxjs").Observable<ActionType>;
|
|
18
|
-
export declare function prepareSaveBillPayload(accountState: AccountState, billTransactionState: BillTransactionState, paymentAccountState: PaymentAccountState, recurringBillState: RecurringBillState, billDetail: EditBillDetail, billStageCode: BillStageCodeType
|
|
18
|
+
export declare function prepareSaveBillPayload(accountState: AccountState, billTransactionState: BillTransactionState, paymentAccountState: PaymentAccountState, recurringBillState: RecurringBillState, billDetail: EditBillDetail, billStageCode: BillStageCodeType): Partial<SaveBillPayload>;
|
|
19
19
|
interface SaveBillPayload {
|
|
20
20
|
vendor_id: string;
|
|
21
21
|
vendor_name?: string | null;
|
|
@@ -45,15 +45,11 @@ interface SaveBillPayload {
|
|
|
45
45
|
bill_payment_method_type: {
|
|
46
46
|
code: BillPaymentConfigCodeType | null;
|
|
47
47
|
name: string;
|
|
48
|
-
sub_code:
|
|
48
|
+
sub_code: PaymentAchSubConfigCodeType | BillPaymentWireSubConfigCodeType | null;
|
|
49
49
|
};
|
|
50
50
|
to_account_vendor_email?: string | null;
|
|
51
51
|
is_collect_to_account_info_from_vendor_contact?: boolean;
|
|
52
52
|
international_transfer_fee_bearer_payment_method?: string | null;
|
|
53
|
-
outside_zeni_transaction_payment_mode?: string | null;
|
|
54
|
-
bill_payment_status: {
|
|
55
|
-
code: string | null;
|
|
56
|
-
};
|
|
57
53
|
};
|
|
58
54
|
document_id: string;
|
|
59
55
|
transaction_memo: string;
|
|
@@ -25,12 +25,12 @@ const workingDayHelper_1 = require("../../../../../commonStateTypes/workingDayHe
|
|
|
25
25
|
const helpers_1 = require("../../../helpers");
|
|
26
26
|
const saveBillDetailEpic = (actions$, state$, zeniAPI) => actions$.pipe((0, operators_1.filter)(editBillViewReducer_1.saveBillDetail.match), (0, operators_1.mergeMap)((action) => {
|
|
27
27
|
const state = state$.value;
|
|
28
|
-
const { billStageCode, billId
|
|
28
|
+
const { billStageCode, billId } = action.payload;
|
|
29
29
|
const key = (0, billDetailViewState_1.getBillTransactionDetailKey)(billId !== null && billId !== void 0 ? billId : '');
|
|
30
30
|
const billDetail = billId != null
|
|
31
31
|
? state.editBillDetailViewState.editBillStateById[key]
|
|
32
32
|
: state.editBillDetailViewState.newBillState;
|
|
33
|
-
const payload = prepareSaveBillPayload(state.accountState, state.billTransactionState, state.paymentAccountState, state.recurringBillState, billDetail, billStageCode
|
|
33
|
+
const payload = prepareSaveBillPayload(state.accountState, state.billTransactionState, state.paymentAccountState, state.recurringBillState, billDetail, billStageCode);
|
|
34
34
|
const isRecurringBill = billDetail.billDetailLocalData.isRecurring;
|
|
35
35
|
const saveBillBaseURL = `${zeniAPI.apiEndPoints.spendManagementMicroServiceBaseUrl}/1.0/bills/transactions`;
|
|
36
36
|
const saveBillApi = billId != null
|
|
@@ -47,7 +47,9 @@ const saveBillDetailEpic = (actions$, state$, zeniAPI) => actions$.pipe((0, oper
|
|
|
47
47
|
actions.push((0, recurringBillsReducer_1.updateRecurringBillConfigs)((_c = response.data.recurring_bill_configs) !== null && _c !== void 0 ? _c : []), (0, recurringBillsReducer_1.updateRecurringBills)((_d = response.data.recurring_bill_instances) !== null && _d !== void 0 ? _d : []));
|
|
48
48
|
}
|
|
49
49
|
actions.push((0, editBillViewReducer_1.saveBillSuccessOrFailure)('Completed', action.payload.billId), (0, snackbarReducer_1.openSnackbar)({
|
|
50
|
-
messageSection:
|
|
50
|
+
messageSection: billStageCode === 'pending_approval'
|
|
51
|
+
? 'bill_pay_sent_for_approval'
|
|
52
|
+
: 'bill_pay_updated',
|
|
51
53
|
messageText: 'success',
|
|
52
54
|
type: 'success',
|
|
53
55
|
}));
|
|
@@ -80,8 +82,8 @@ const getSaveBillApiURL = (saveBillBaseURL, isRecurring, billId, billTransaction
|
|
|
80
82
|
return isRecurring ? `${saveBillBaseURL}/recurring` : `${saveBillBaseURL}`;
|
|
81
83
|
}
|
|
82
84
|
};
|
|
83
|
-
function prepareSaveBillPayload(accountState, billTransactionState, paymentAccountState, recurringBillState, billDetail, billStageCode
|
|
84
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17, _18, _19, _20, _21, _22, _23, _24, _25, _26, _27;
|
|
85
|
+
function prepareSaveBillPayload(accountState, billTransactionState, paymentAccountState, recurringBillState, billDetail, billStageCode) {
|
|
86
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17, _18, _19, _20, _21, _22, _23, _24, _25, _26, _27, _28;
|
|
85
87
|
const billId = billDetail.billId;
|
|
86
88
|
let detail;
|
|
87
89
|
const withdrawFromAccount = (_a = billDetail.billDetailLocalData.paymentDetailsSection) === null || _a === void 0 ? void 0 : _a.withdrawFrom;
|
|
@@ -112,42 +114,38 @@ function prepareSaveBillPayload(accountState, billTransactionState, paymentAccou
|
|
|
112
114
|
stage: {
|
|
113
115
|
code: billStageCode,
|
|
114
116
|
},
|
|
115
|
-
payment_date:
|
|
117
|
+
payment_date: (_z = (_y = (_x = billDetail.billDetailLocalData.paymentDetailsSection) === null || _x === void 0 ? void 0 : _x.paymentDate) === null || _y === void 0 ? void 0 : _y.format('YYYY-MM-DD')) !== null && _z !== void 0 ? _z : null,
|
|
116
118
|
from_account: {
|
|
117
|
-
account_id: (
|
|
118
|
-
account_type: (
|
|
119
|
+
account_id: (_2 = (_1 = (_0 = billDetail.billDetailLocalData.paymentDetailsSection) === null || _0 === void 0 ? void 0 : _0.withdrawFrom) === null || _1 === void 0 ? void 0 : _1.id) !== null && _2 !== void 0 ? _2 : '',
|
|
120
|
+
account_type: (_5 = (0, helpers_1.accountTypeSubConfigCodeToAccType)((_4 = (_3 = billDetail.billDetailLocalData.paymentDetailsSection) === null || _3 === void 0 ? void 0 : _3.withdrawFrom) === null || _4 === void 0 ? void 0 : _4.accType)) !== null && _5 !== void 0 ? _5 : '',
|
|
119
121
|
},
|
|
120
|
-
to_account: Object.assign({}, (((
|
|
122
|
+
to_account: Object.assign({}, (((_7 = (_6 = billDetail.billDetailLocalData.paymentDetailsSection) === null || _6 === void 0 ? void 0 : _6.paymentType) === null || _7 === void 0 ? void 0 : _7.method.includes('international')) === true
|
|
121
123
|
? {
|
|
122
124
|
payment_instrument_id: Boolean(billDetail.billDetailLocalData
|
|
123
125
|
.isCollectToAccountInfoFromVendorContact) === false
|
|
124
|
-
? (
|
|
126
|
+
? (_9 = (_8 = billDetail.billDetailLocalData.paymentDetailsSection) === null || _8 === void 0 ? void 0 : _8.paymentTo) !== null && _9 !== void 0 ? _9 : null
|
|
125
127
|
: null,
|
|
126
128
|
}
|
|
127
129
|
: {
|
|
128
130
|
account_id: Boolean(billDetail.billDetailLocalData
|
|
129
131
|
.isCollectToAccountInfoFromVendorContact) === false
|
|
130
|
-
? (
|
|
132
|
+
? (_11 = (_10 = billDetail.billDetailLocalData.paymentDetailsSection) === null || _10 === void 0 ? void 0 : _10.paymentTo) !== null && _11 !== void 0 ? _11 : null
|
|
131
133
|
: null,
|
|
132
134
|
})),
|
|
133
|
-
to_account_vendor_email: (
|
|
135
|
+
to_account_vendor_email: (_12 = billDetail.billDetailLocalData.toAccountVendorEmail) !== null && _12 !== void 0 ? _12 : null,
|
|
134
136
|
is_collect_to_account_info_from_vendor_contact: billDetail.billDetailLocalData.isCollectToAccountInfoFromVendorContact,
|
|
135
137
|
is_cancelled: false,
|
|
136
|
-
bill_payment_method_type: getBillPaymentMethodTypePayload((
|
|
137
|
-
international_transfer_fee_bearer_payment_method: ((
|
|
138
|
-
((
|
|
139
|
-
? (
|
|
140
|
-
.internationalTransferFeeBearerPaymentMethod) !== null &&
|
|
138
|
+
bill_payment_method_type: getBillPaymentMethodTypePayload((_13 = billDetail.billDetailLocalData.paymentDetailsSection) === null || _13 === void 0 ? void 0 : _13.paymentType),
|
|
139
|
+
international_transfer_fee_bearer_payment_method: ((_15 = (_14 = billDetail.billDetailLocalData.paymentDetailsSection) === null || _14 === void 0 ? void 0 : _14.paymentType) === null || _15 === void 0 ? void 0 : _15.method.includes('international')) === true &&
|
|
140
|
+
((_16 = billDetail.billDetailLocalData.vendor) === null || _16 === void 0 ? void 0 : _16.vendorCurrencyCode) === 'USD'
|
|
141
|
+
? (_17 = billDetail.billDetailLocalData.paymentDetailsSection
|
|
142
|
+
.internationalTransferFeeBearerPaymentMethod) !== null && _17 !== void 0 ? _17 : 'swift_our' //default value for international method and USD currency
|
|
141
143
|
: null,
|
|
142
|
-
outside_zeni_transaction_payment_mode: (_16 = (_15 = billDetail.billDetailLocalData.outsideZeniPaymentLocalData) === null || _15 === void 0 ? void 0 : _15.paymentMode) !== null && _16 !== void 0 ? _16 : null,
|
|
143
|
-
bill_payment_status: {
|
|
144
|
-
code: isForMarkAsPaid ? 'mark_as_paid' : null,
|
|
145
|
-
},
|
|
146
144
|
},
|
|
147
|
-
document_id: (
|
|
148
|
-
transaction_memo: (
|
|
149
|
-
currency_code: (
|
|
150
|
-
recipient_currency_code: (
|
|
145
|
+
document_id: (_18 = billDetail.billDetailLocalData.whatForSection) === null || _18 === void 0 ? void 0 : _18.invoiceNumber,
|
|
146
|
+
transaction_memo: (_19 = billDetail.billDetailLocalData.whatForSection) === null || _19 === void 0 ? void 0 : _19.memo,
|
|
147
|
+
currency_code: (_21 = (_20 = billDetail.billDetailLocalData.whatForSection) === null || _20 === void 0 ? void 0 : _20.currencyCode) !== null && _21 !== void 0 ? _21 : 'USD',
|
|
148
|
+
recipient_currency_code: (_23 = (_22 = billDetail.billDetailLocalData.whatForSection) === null || _22 === void 0 ? void 0 : _22.recipientCurrencyCode) !== null && _23 !== void 0 ? _23 : 'USD',
|
|
151
149
|
lines: Object.keys(billDetail.billDetailLocalData.updatesByLineId).map((lineId) => {
|
|
152
150
|
const line = billDetail.billDetailLocalData.updatesByLineId[lineId];
|
|
153
151
|
const lineAsTransactionLinePayload = (0, editBillViewPayload_1.fromLineLocalDataToTransactionLinePayload)(line);
|
|
@@ -155,12 +153,12 @@ function prepareSaveBillPayload(accountState, billTransactionState, paymentAccou
|
|
|
155
153
|
}),
|
|
156
154
|
};
|
|
157
155
|
if (!isRecurring) {
|
|
158
|
-
payload.vendor_name = (
|
|
156
|
+
payload.vendor_name = (_25 = (_24 = billDetail.billDetailLocalData.vendor) === null || _24 === void 0 ? void 0 : _24.name) !== null && _25 !== void 0 ? _25 : '';
|
|
159
157
|
}
|
|
160
158
|
if (billId != null) {
|
|
161
159
|
detail = (0, get_1.default)(billTransactionState.transactionById, billId, undefined);
|
|
162
|
-
payload.sync_token = (
|
|
163
|
-
payload.update_time = (
|
|
160
|
+
payload.sync_token = (_26 = detail === null || detail === void 0 ? void 0 : detail.syncToken) !== null && _26 !== void 0 ? _26 : null;
|
|
161
|
+
payload.update_time = (_27 = detail === null || detail === void 0 ? void 0 : detail.updateTime.format('YYYY-MM-DD')) !== null && _27 !== void 0 ? _27 : null;
|
|
164
162
|
//required by platform to clear old recurring details
|
|
165
163
|
if ((detail === null || detail === void 0 ? void 0 : detail.isRecurring) === true &&
|
|
166
164
|
Boolean(billDetail.billDetailLocalData.isRecurring) === false) {
|
|
@@ -171,7 +169,7 @@ function prepareSaveBillPayload(accountState, billTransactionState, paymentAccou
|
|
|
171
169
|
payload.are_approvals_serialized = true;
|
|
172
170
|
}
|
|
173
171
|
if (billStageCode === 'pending_approval' &&
|
|
174
|
-
((
|
|
172
|
+
((_28 = billDetail.billDetailLocalData.paymentDetailsSection) === null || _28 === void 0 ? void 0 : _28.conversionRate) != null) {
|
|
175
173
|
// required by platform
|
|
176
174
|
payload.exchange_rate =
|
|
177
175
|
1 / billDetail.billDetailLocalData.paymentDetailsSection.conversionRate;
|
|
@@ -229,22 +227,12 @@ const getBillPaymentMethodTypePayload = (paymentType) => {
|
|
|
229
227
|
code: Boolean(code) === true
|
|
230
228
|
? (0, billPayConfigState_1.toBillPaymentMethodCodeType)(code)
|
|
231
229
|
: null,
|
|
232
|
-
name:
|
|
233
|
-
? 'Outside Zeni'
|
|
234
|
-
: (_a = paymentType === null || paymentType === void 0 ? void 0 : paymentType.method.replace(/(_depositAccount|_paymentAccount)/g, '')) !== null && _a !== void 0 ? _a : '',
|
|
230
|
+
name: (_a = paymentType === null || paymentType === void 0 ? void 0 : paymentType.method.replace(/(_depositAccount|_paymentAccount)/g, '')) !== null && _a !== void 0 ? _a : '',
|
|
235
231
|
sub_code: Boolean(subCode) === true
|
|
236
232
|
? (0, billPayConfigPayload_1.getSubCodePayload)((0, billPayConfigState_1.toBillPaymentSubConfigCodeKeyType)(subCode))
|
|
237
233
|
: null,
|
|
238
234
|
};
|
|
239
235
|
};
|
|
240
|
-
const getPaymentDate = (billDetailLocalData) => {
|
|
241
|
-
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
242
|
-
const isPaymentOutsideZeni = (0, helpers_1.isPaymentMethodOutsideZeni)((_b = (_a = billDetailLocalData.paymentDetailsSection) === null || _a === void 0 ? void 0 : _a.paymentType) === null || _b === void 0 ? void 0 : _b.method);
|
|
243
|
-
if (isPaymentOutsideZeni) {
|
|
244
|
-
return ((_e = (_d = (_c = billDetailLocalData.outsideZeniPaymentLocalData) === null || _c === void 0 ? void 0 : _c.paymentDate) === null || _d === void 0 ? void 0 : _d.format('YYYY-MM-DD')) !== null && _e !== void 0 ? _e : null);
|
|
245
|
-
}
|
|
246
|
-
return ((_h = (_g = (_f = billDetailLocalData.paymentDetailsSection) === null || _f === void 0 ? void 0 : _f.paymentDate) === null || _g === void 0 ? void 0 : _g.format('YYYY-MM-DD')) !== null && _h !== void 0 ? _h : null);
|
|
247
|
-
};
|
|
248
236
|
const toRecurringBillInstancePayload = (recurringBillInstance, maxPaymentProcessingDays) => {
|
|
249
237
|
const calculatedPaymentDate = (0, helpers_1.getPaymentDateFromVendorReceiveDate)(recurringBillInstance.vendorReceiveDate, maxPaymentProcessingDays);
|
|
250
238
|
return {
|
|
@@ -254,11 +242,3 @@ const toRecurringBillInstancePayload = (recurringBillInstance, maxPaymentProcess
|
|
|
254
242
|
vendor_receive_date_notes: recurringBillInstance.vendorReceiveDateNotes,
|
|
255
243
|
};
|
|
256
244
|
};
|
|
257
|
-
const getSnackBarMessage = (isForMarkAsPaid, billStageCode) => {
|
|
258
|
-
if (isForMarkAsPaid) {
|
|
259
|
-
return 'bill_pay_marked_as_paid';
|
|
260
|
-
}
|
|
261
|
-
return billStageCode === 'pending_approval'
|
|
262
|
-
? 'bill_pay_sent_for_approval'
|
|
263
|
-
: 'bill_pay_updated';
|
|
264
|
-
};
|
|
@@ -25,8 +25,8 @@ export declare const fetchMagicLinkTenant: import("@reduxjs/toolkit").ActionCrea
|
|
|
25
25
|
billAttachment?: Attachment | undefined;
|
|
26
26
|
}, string>, billFetchFail: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
27
27
|
status: ZeniAPIStatus;
|
|
28
|
-
}, string>, saveBankAccount: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[paymentMethodType: "ach" | "wire"
|
|
29
|
-
paymentMethodType: "ach" | "wire"
|
|
28
|
+
}, string>, saveBankAccount: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[paymentMethodType: "ach" | "wire", paymentSubConfigCodeType: "standard" | "international" | "same-day" | "us-domestic", vendorId: string, billId: string, isLocalCurrencyEnabled?: boolean | undefined], {
|
|
29
|
+
paymentMethodType: "ach" | "wire";
|
|
30
30
|
paymentSubConfigCodeType: "standard" | "international" | "same-day" | "us-domestic";
|
|
31
31
|
vendorId: string;
|
|
32
32
|
billId: string;
|
|
@@ -35,5 +35,3 @@ export interface ZeniAccountsPromoConfig {
|
|
|
35
35
|
maxInsuredAmount: number;
|
|
36
36
|
}
|
|
37
37
|
export declare const toAccountsPromoConfig: (dynamicConfigValue: Record<string, unknown>) => ZeniAccountsPromoConfig;
|
|
38
|
-
export declare const isPaymentMethodOutsideZeni: (code?: string | undefined) => boolean;
|
|
39
|
-
export declare const isAwaitingMarkAsPaid: (code?: string | undefined) => boolean;
|
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.
|
|
6
|
+
exports.toAccountsPromoConfig = exports.getBulkOperationSuffix = exports.getRemiListUniqueType = exports.getBillListUniqueType = exports.isBulkProcessing = exports.isVerifiedStatusCode = exports.getActualPaymentDate = exports.showBillPayPromoPage = exports.showReimbursementPromoPage = exports.accountTypeSubConfigCodeToAccType = exports.isRecurringConfigChanged = exports.updateRecurringBillDetails = exports.getPaymentDateFromVendorReceiveDate = exports.getSelectedCompanyOfficer = exports.getSpendManagementEffectiveListPeriod = exports.getLatestApprovalDate = void 0;
|
|
7
7
|
const uniq_1 = __importDefault(require("lodash/uniq"));
|
|
8
8
|
const timeframeTick_1 = require("../../commonStateTypes/timeframeTick");
|
|
9
9
|
const workingDayHelper_1 = require("../../commonStateTypes/workingDayHelper");
|
|
@@ -331,11 +331,3 @@ const toAccountsPromoConfig = (dynamicConfigValue) => {
|
|
|
331
331
|
}
|
|
332
332
|
};
|
|
333
333
|
exports.toAccountsPromoConfig = toAccountsPromoConfig;
|
|
334
|
-
const isPaymentMethodOutsideZeni = (code) => {
|
|
335
|
-
return code != null ? code.includes('outside-zeni') : false;
|
|
336
|
-
};
|
|
337
|
-
exports.isPaymentMethodOutsideZeni = isPaymentMethodOutsideZeni;
|
|
338
|
-
const isAwaitingMarkAsPaid = (code) => {
|
|
339
|
-
return code != null ? code === 'awaiting_to_be_marked_as_paid' : false;
|
|
340
|
-
};
|
|
341
|
-
exports.isAwaitingMarkAsPaid = isAwaitingMarkAsPaid;
|
|
@@ -4,7 +4,6 @@ import { FetchState, ID } from '../../../../commonStateTypes/common';
|
|
|
4
4
|
import { ReceiptsProcessingPayload } from './editRemiViewPayload';
|
|
5
5
|
import { Recommendation } from '../../../../commonStateTypes/recommendationBase';
|
|
6
6
|
import { AmountPayload } from '../../../../entity/reimbursement/reimbursementPayload';
|
|
7
|
-
import { ReimbursementTypeCode } from '../../../../entity/reimbursement/reimbursementState';
|
|
8
7
|
export declare const initialState: EditRemiDetailViewState;
|
|
9
8
|
export declare const fetchEditRemiDetailPage: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[cacheOverride: boolean, isLimitedCategoryEnabled: boolean, isShowDeletedReimbursementEnabled: boolean, reimbursementId?: string | undefined], {
|
|
10
9
|
cacheOverride: boolean;
|
|
@@ -52,11 +51,7 @@ export declare const fetchEditRemiDetailPage: import("@reduxjs/toolkit").ActionC
|
|
|
52
51
|
conversionCurrencyCode: string;
|
|
53
52
|
lineId: string;
|
|
54
53
|
reimbursementId: string | undefined;
|
|
55
|
-
}, string, never, never>,
|
|
56
|
-
reimbursementId?: string | undefined;
|
|
57
|
-
lineId: string;
|
|
58
|
-
reimbursementType: ReimbursementTypeCode;
|
|
59
|
-
}, string>, updateHomeCurrencyConversion: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
54
|
+
}, string, never, never>, updateHomeCurrencyConversion: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
60
55
|
reimbursementId?: string | undefined;
|
|
61
56
|
lineId: string;
|
|
62
57
|
amountPayload: AmountPayload;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var _a;
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.clearEditRemiViewDetail = exports.clearAddRemiAutoFields = exports.clearTentativeMerchantName = exports.updateTentativeMerchantNames = exports.updateRecommendationInMerchant = exports.updateUploadFetchState = exports.indicateReadyToInitializeRemiLocalStore = exports.updateAddRemiAutoFields = exports.waitForMerchantRecommendationFetchThenUpdateRecommendationInMerchant = exports.waitForRemiDetailThenInitializeLocalStore = exports.currencyConversionValueSuccessOrFailure = exports.updateHomeCurrencyConversion = exports.
|
|
4
|
+
exports.clearEditRemiViewDetail = exports.clearAddRemiAutoFields = exports.clearTentativeMerchantName = exports.updateTentativeMerchantNames = exports.updateRecommendationInMerchant = exports.updateUploadFetchState = exports.indicateReadyToInitializeRemiLocalStore = exports.updateAddRemiAutoFields = exports.waitForMerchantRecommendationFetchThenUpdateRecommendationInMerchant = exports.waitForRemiDetailThenInitializeLocalStore = exports.currencyConversionValueSuccessOrFailure = exports.updateHomeCurrencyConversion = exports.fetchCurrencyConversionValue = exports.parseReceiptsToRemi = exports.saveRemiSuccessOrFailure = exports.saveRemiDetail = exports.removeFileFromRemiUpdatesInLocalStore = exports.discardRemiUpdatesInLocalStore = exports.updatesPaymentToInLocalStore = exports.saveRemiUpdatesToLocalStore = exports.fetchRecommendationsAndUpdateMerchantRecommendations = exports.initializeRemiToLocalStore = exports.fetchRemiAndInitializeLocalStore = exports.fetchEditRemiDetailPage = exports.initialState = void 0;
|
|
5
5
|
const toolkit_1 = require("@reduxjs/toolkit");
|
|
6
6
|
const editRemiViewState_1 = require("./editRemiViewState");
|
|
7
7
|
const initializeRemiToLocalStoreEpic_1 = require("./epics/initializeRemiToLocalStoreEpic");
|
|
@@ -285,16 +285,6 @@ const editRemiView = (0, toolkit_1.createSlice)({
|
|
|
285
285
|
draft.newRemiState.addRemiAutoFieldsByLineId = Object.assign(Object.assign({}, draft.newRemiState.addRemiAutoFieldsByLineId), addRemiAutoFields);
|
|
286
286
|
}
|
|
287
287
|
},
|
|
288
|
-
updateReimbursementType(draft, action) {
|
|
289
|
-
const { reimbursementId, lineId, reimbursementType } = action.payload;
|
|
290
|
-
if (reimbursementId != null) {
|
|
291
|
-
draft.editRemiStateById[reimbursementId].remiDetailLocalData.updatesByLineId[lineId].type = reimbursementType;
|
|
292
|
-
}
|
|
293
|
-
else {
|
|
294
|
-
draft.newRemiState.remiDetailLocalData.updatesByLineId[lineId].type =
|
|
295
|
-
reimbursementType;
|
|
296
|
-
}
|
|
297
|
-
},
|
|
298
288
|
updateHomeCurrencyConversion(draft, action) {
|
|
299
289
|
const { reimbursementId, lineId, amountPayload } = action.payload;
|
|
300
290
|
const homeCurrencyConversions = (0, amount_1.toAmount)(amountPayload.amount, amountPayload.currency_code, amountPayload.currency_symbol);
|
|
@@ -355,7 +345,7 @@ const editRemiView = (0, toolkit_1.createSlice)({
|
|
|
355
345
|
},
|
|
356
346
|
},
|
|
357
347
|
});
|
|
358
|
-
_a = editRemiView.actions, exports.fetchEditRemiDetailPage = _a.fetchEditRemiDetailPage, exports.fetchRemiAndInitializeLocalStore = _a.fetchRemiAndInitializeLocalStore, exports.initializeRemiToLocalStore = _a.initializeRemiToLocalStore, exports.fetchRecommendationsAndUpdateMerchantRecommendations = _a.fetchRecommendationsAndUpdateMerchantRecommendations, exports.saveRemiUpdatesToLocalStore = _a.saveRemiUpdatesToLocalStore, exports.updatesPaymentToInLocalStore = _a.updatesPaymentToInLocalStore, exports.discardRemiUpdatesInLocalStore = _a.discardRemiUpdatesInLocalStore, exports.removeFileFromRemiUpdatesInLocalStore = _a.removeFileFromRemiUpdatesInLocalStore, exports.saveRemiDetail = _a.saveRemiDetail, exports.saveRemiSuccessOrFailure = _a.saveRemiSuccessOrFailure, exports.parseReceiptsToRemi = _a.parseReceiptsToRemi, exports.fetchCurrencyConversionValue = _a.fetchCurrencyConversionValue, exports.
|
|
348
|
+
_a = editRemiView.actions, exports.fetchEditRemiDetailPage = _a.fetchEditRemiDetailPage, exports.fetchRemiAndInitializeLocalStore = _a.fetchRemiAndInitializeLocalStore, exports.initializeRemiToLocalStore = _a.initializeRemiToLocalStore, exports.fetchRecommendationsAndUpdateMerchantRecommendations = _a.fetchRecommendationsAndUpdateMerchantRecommendations, exports.saveRemiUpdatesToLocalStore = _a.saveRemiUpdatesToLocalStore, exports.updatesPaymentToInLocalStore = _a.updatesPaymentToInLocalStore, exports.discardRemiUpdatesInLocalStore = _a.discardRemiUpdatesInLocalStore, exports.removeFileFromRemiUpdatesInLocalStore = _a.removeFileFromRemiUpdatesInLocalStore, exports.saveRemiDetail = _a.saveRemiDetail, exports.saveRemiSuccessOrFailure = _a.saveRemiSuccessOrFailure, exports.parseReceiptsToRemi = _a.parseReceiptsToRemi, exports.fetchCurrencyConversionValue = _a.fetchCurrencyConversionValue, exports.updateHomeCurrencyConversion = _a.updateHomeCurrencyConversion, exports.currencyConversionValueSuccessOrFailure = _a.currencyConversionValueSuccessOrFailure, exports.waitForRemiDetailThenInitializeLocalStore = _a.waitForRemiDetailThenInitializeLocalStore, exports.waitForMerchantRecommendationFetchThenUpdateRecommendationInMerchant = _a.waitForMerchantRecommendationFetchThenUpdateRecommendationInMerchant, exports.updateAddRemiAutoFields = _a.updateAddRemiAutoFields, exports.indicateReadyToInitializeRemiLocalStore = _a.indicateReadyToInitializeRemiLocalStore, exports.updateUploadFetchState = _a.updateUploadFetchState, exports.updateRecommendationInMerchant = _a.updateRecommendationInMerchant, exports.updateTentativeMerchantNames = _a.updateTentativeMerchantNames, exports.clearTentativeMerchantName = _a.clearTentativeMerchantName, exports.clearAddRemiAutoFields = _a.clearAddRemiAutoFields, exports.clearEditRemiViewDetail = _a.clearEditRemiViewDetail;
|
|
359
349
|
exports.default = editRemiView.reducer;
|
|
360
350
|
const doUpdateRecommendationForEntity = (draft, lineId, recommendations, shouldAutofill, reimbursementId, reimbursementStageCode) => {
|
|
361
351
|
var _a, _b, _c, _d, _e, _f;
|
|
@@ -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: "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" | "je_posted" | "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" | "
|
|
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" | "je_bill_link" | "je_posted" | "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" | "ignore_schedule" | "save_task_detail" | "fetch_task_detail" | "delete_task" | "archive_task" | "create_tag" | "delete_tag" | "update_charge_card" | "issue_charge_card" | "issue_charge_cards" | "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" | "transactions_reviewed" | "missing_receipts_attachment" | "flux_analysis_unreviewed" | "flux_analysis_reviewed" | "receipts_upload";
|
|
12
12
|
messageText: "failed" | "success" | "notification";
|
|
13
13
|
type: import("../../..").SnackbarMessageType;
|
|
14
14
|
showStatusIcon?: boolean | undefined;
|
|
@@ -9,7 +9,7 @@ export declare const deleteTagEpic: (actions$: ActionsObservable<ActionType>, _s
|
|
|
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" | "je_posted" | "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" | "
|
|
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" | "je_posted" | "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" | "ignore_schedule" | "save_task_detail" | "fetch_task_detail" | "delete_task" | "archive_task" | "create_tag" | "delete_tag" | "update_charge_card" | "issue_charge_card" | "issue_charge_cards" | "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" | "transactions_reviewed" | "missing_receipts_attachment" | "flux_analysis_unreviewed" | "flux_analysis_reviewed" | "receipts_upload";
|
|
13
13
|
messageText: "failed" | "success" | "notification";
|
|
14
14
|
type: import("../../..").SnackbarMessageType;
|
|
15
15
|
showStatusIcon?: boolean | undefined;
|
|
@@ -5,7 +5,7 @@ import { openSnackbar } from '../../../entity/snackbar/snackbarReducer';
|
|
|
5
5
|
export declare type ActionType = ReturnType<typeof uploadMissingReceiptSuccess> | ReturnType<typeof openSnackbar> | ReturnType<typeof updateTransaction>;
|
|
6
6
|
export declare const uploadMissingReceiptSuccessEpic: (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" | "je_posted" | "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" | "
|
|
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" | "je_posted" | "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" | "ignore_schedule" | "save_task_detail" | "fetch_task_detail" | "delete_task" | "archive_task" | "create_tag" | "delete_tag" | "update_charge_card" | "issue_charge_card" | "issue_charge_cards" | "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" | "transactions_reviewed" | "missing_receipts_attachment" | "flux_analysis_unreviewed" | "flux_analysis_reviewed" | "receipts_upload";
|
|
9
9
|
messageText: "failed" | "success" | "notification";
|
|
10
10
|
type: import("../../..").SnackbarMessageType;
|
|
11
11
|
showStatusIcon?: boolean | undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zeniai/client-epic-state",
|
|
3
|
-
"version": "4.14.
|
|
3
|
+
"version": "4.14.14",
|
|
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",
|