@zeniai/client-epic-state 4.14.14 → 4.14.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (86) hide show
  1. package/lib/commonStateTypes/reimbursementTypeCode.d.ts +2 -0
  2. package/lib/commonStateTypes/reimbursementTypeCode.js +5 -0
  3. package/lib/entity/billPay/billTransaction/billTransactionPayload.d.ts +1 -0
  4. package/lib/entity/billPay/billTransaction/billTransactionPayload.js +3 -0
  5. package/lib/entity/billPay/billTransaction/billTransactionState.d.ts +6 -3
  6. package/lib/entity/billPay/billTransaction/billTransactionState.js +18 -1
  7. package/lib/entity/snackbar/snackbarTypes.d.ts +1 -1
  8. package/lib/entity/snackbar/snackbarTypes.js +4 -0
  9. package/lib/entity/tenant/epic/signInUserEpic.d.ts +1 -0
  10. package/lib/entity/tenant/epic/signInUserEpic.js +15 -9
  11. package/lib/entity/tenant/tenantReducer.d.ts +5 -2
  12. package/lib/entity/tenant/tenantReducer.js +5 -4
  13. package/lib/entity/tenant/tenantState.d.ts +2 -0
  14. package/lib/entity/toastNotification/epic/pushToastNotificationEpic.d.ts +1 -1
  15. package/lib/index.d.ts +14 -13
  16. package/lib/index.js +26 -15
  17. package/lib/view/bankAccountView/bankAccountViewReducer.d.ts +2 -2
  18. package/lib/view/billPayCard/fetchBillPayCardEpic.js +1 -0
  19. package/lib/view/cardPayment/epic/addCardPaymentSourceEpic.d.ts +1 -1
  20. package/lib/view/cardPayment/epic/confirmCardSetupIntentEpic.d.ts +1 -1
  21. package/lib/view/cardPayment/epic/createCardSetupIntentEpic.d.ts +1 -1
  22. package/lib/view/cardPayment/epic/fetchPaymentSourcesEpic.d.ts +1 -1
  23. package/lib/view/expenseAutomationView/epics/common/fetchAllExpenseAutomationTabsEpic.js +7 -4
  24. package/lib/view/expenseAutomationView/epics/common/refreshExpenseAutomationCurrentTabEpic.js +2 -1
  25. package/lib/view/expenseAutomationView/epics/jeSchedule/retryJeSchedulesEpic.d.ts +2 -2
  26. package/lib/view/expenseAutomationView/epics/jeSchedule/retryJeSchedulesEpic.js +2 -1
  27. package/lib/view/expenseAutomationView/epics/transactionCategorization/fetchTransactionCategorizationEpic.js +1 -1
  28. package/lib/view/expenseAutomationView/epics/transactionCategorization/fetchTransactionCategorizationViewEpic.js +1 -1
  29. package/lib/view/expenseAutomationView/epics/transactionCategorization/initializeTransactionCategorizationLocalDataEpic.js +3 -3
  30. package/lib/view/expenseAutomationView/epics/transactionCategorization/markTransactionAsNotMiscatgorizedEpic.js +76 -27
  31. package/lib/view/expenseAutomationView/epics/transactionCategorization/saveTransactionCategorizationEpic.js +1 -2
  32. package/lib/view/expenseAutomationView/epics/transactionCategorization/updateTransactionCategorizationEpic.js +3 -2
  33. package/lib/view/expenseAutomationView/expenseAutomationViewReducer.d.ts +1 -3
  34. package/lib/view/expenseAutomationView/expenseAutomationViewReducer.js +2 -12
  35. package/lib/view/expenseAutomationView/expenseAutomationViewSelector.js +13 -12
  36. package/lib/view/expenseAutomationView/expenseAutomationViewState.d.ts +0 -2
  37. package/lib/view/expenseAutomationView/helpers/helpers.d.ts +3 -0
  38. package/lib/view/expenseAutomationView/helpers/helpers.js +4 -1
  39. package/lib/view/expenseAutomationView/payload/transactionCategorizationPayload.d.ts +1 -2
  40. package/lib/view/expenseAutomationView/reducers/jeSchedulesViewReducer.d.ts +12 -10
  41. package/lib/view/expenseAutomationView/reducers/jeSchedulesViewReducer.js +6 -2
  42. package/lib/view/expenseAutomationView/reducers/transactionsViewReducer.d.ts +5 -3
  43. package/lib/view/expenseAutomationView/reducers/transactionsViewReducer.js +102 -65
  44. package/lib/view/expenseAutomationView/selectors/transactionCategorizationSelector.d.ts +1 -2
  45. package/lib/view/expenseAutomationView/selectors/transactionCategorizationSelector.js +20 -11
  46. package/lib/view/expenseAutomationView/types/transactionsViewState.d.ts +4 -1
  47. package/lib/view/people/changeZeniPersonRolesEpic.d.ts +1 -1
  48. package/lib/view/people/deletePersonEpic.d.ts +1 -1
  49. package/lib/view/people/invitePeopleEpic.d.ts +1 -1
  50. package/lib/view/people/inviteZeniPeopleEpic.d.ts +1 -1
  51. package/lib/view/people/resendInviteEpic.d.ts +1 -1
  52. package/lib/view/recommendation/fetchEntityRecommendationsByTransactionIdEpic.js +1 -1
  53. package/lib/view/settingsView/epic/saveNotificationSettingsEpic.d.ts +1 -1
  54. package/lib/view/spendManagement/billPay/billDetailView/billDetailViewSelector.d.ts +9 -2
  55. package/lib/view/spendManagement/billPay/billDetailView/billDetailViewSelector.js +35 -8
  56. package/lib/view/spendManagement/billPay/billList/billListReducer.d.ts +1 -1
  57. package/lib/view/spendManagement/billPay/billList/billListSelector.d.ts +3 -2
  58. package/lib/view/spendManagement/billPay/billList/billListSelector.js +55 -18
  59. package/lib/view/spendManagement/billPay/billList/billListState.d.ts +1 -1
  60. package/lib/view/spendManagement/billPay/billList/billListState.js +1 -0
  61. package/lib/view/spendManagement/billPay/billPayConfig/billPayConfigPayload.d.ts +7 -2
  62. package/lib/view/spendManagement/billPay/billPayConfig/billPayConfigPayload.js +18 -6
  63. package/lib/view/spendManagement/billPay/billPayConfig/billPayConfigReducer.js +6 -0
  64. package/lib/view/spendManagement/billPay/billPayConfig/billPayConfigState.d.ts +9 -4
  65. package/lib/view/spendManagement/billPay/billPayConfig/billPayConfigState.js +18 -4
  66. package/lib/view/spendManagement/billPay/billPayReview/billPayReviewSelector.d.ts +2 -1
  67. package/lib/view/spendManagement/billPay/billPayReview/billPayReviewSelector.js +2 -0
  68. package/lib/view/spendManagement/billPay/editBillView/editBillViewReducer.d.ts +8 -4
  69. package/lib/view/spendManagement/billPay/editBillView/editBillViewReducer.js +26 -5
  70. package/lib/view/spendManagement/billPay/editBillView/editBillViewSelector.d.ts +4 -2
  71. package/lib/view/spendManagement/billPay/editBillView/editBillViewSelector.js +36 -3
  72. package/lib/view/spendManagement/billPay/editBillView/editBillViewState.d.ts +6 -1
  73. package/lib/view/spendManagement/billPay/editBillView/epics/fetchEditBillDetailPageEpic.js +6 -7
  74. package/lib/view/spendManagement/billPay/editBillView/epics/initializeBillToLocalStoreEpic.js +16 -5
  75. package/lib/view/spendManagement/billPay/editBillView/epics/parseInvoiceToBillEpic.js +27 -13
  76. package/lib/view/spendManagement/billPay/editBillView/epics/saveBillDetailEpic.d.ts +7 -3
  77. package/lib/view/spendManagement/billPay/editBillView/epics/saveBillDetailEpic.js +48 -28
  78. package/lib/view/spendManagement/billPay/magicLinkView/magicLinkViewReducer.d.ts +2 -2
  79. package/lib/view/spendManagement/helpers.d.ts +2 -0
  80. package/lib/view/spendManagement/helpers.js +9 -1
  81. package/lib/view/spendManagement/reimbursement/editRemiView/editRemiViewReducer.d.ts +6 -1
  82. package/lib/view/spendManagement/reimbursement/editRemiView/editRemiViewReducer.js +12 -2
  83. package/lib/view/tagView/epics/createTagEpic.d.ts +1 -1
  84. package/lib/view/tagView/epics/deleteTagEpic.d.ts +1 -1
  85. package/lib/view/transactionDetail/epics/uploadMissingReceiptSuccessEpic.d.ts +1 -1
  86. package/package.json +1 -1
@@ -28,6 +28,7 @@ const billPayConfigPayload_1 = require("../../billPayConfig/billPayConfigPayload
28
28
  const billTransactionState_1 = require("../../../../../entity/billPay/billTransaction/billTransactionState");
29
29
  const workingDayHelper_1 = require("../../../../../commonStateTypes/workingDayHelper");
30
30
  const companySelector_1 = require("../../../../../entity/company/companySelector");
31
+ const helpers_1 = require("../../../helpers");
31
32
  const parseInvoiceToBillEpic = (actions$, state$) => actions$.pipe((0, operators_1.filter)(editBillViewReducer_1.parseInvoiceToBill.match), (0, operators_1.mergeMap)((action) => {
32
33
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
33
34
  const { invoiceProcessingPayload, isVendorRecommendationFeatureEnabled } = action.payload;
@@ -144,7 +145,7 @@ const parseInvoiceToBillEpic = (actions$, state$) => actions$.pipe((0, operators
144
145
  }));
145
146
  exports.parseInvoiceToBillEpic = parseInvoiceToBillEpic;
146
147
  const toBillDetailLocalData = (state, showVendorGptRecommendationText, billPayload, vendor, recommendedVendorId) => {
147
- 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;
148
+ 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;
148
149
  const currency = {
149
150
  currencyCode: (_a = billPayload.recipient_currency_code) !== null && _a !== void 0 ? _a : '',
150
151
  currencySymbol: (_b = billPayload.recipient_currency_symbol) !== null && _b !== void 0 ? _b : '', //api not returning symbol
@@ -225,6 +226,18 @@ const toBillDetailLocalData = (state, showVendorGptRecommendationText, billPaylo
225
226
  ? (0, billPayConfigPayload_1.getInternationalSubConfigCodeKey)(internationalSubCode)
226
227
  : undefined))
227
228
  : undefined;
229
+ const isPaymentOutsideZeni = (0, helpers_1.isPaymentMethodOutsideZeni)(paymentMethodCode !== null && paymentMethodCode !== void 0 ? paymentMethodCode : '');
230
+ const outsideZeniPaymentMode = (_o = billPayload.bill_pay_info) === null || _o === void 0 ? void 0 : _o.outside_zeni_transaction_payment_mode;
231
+ const outsideZeniPaymentLocalData = isPaymentOutsideZeni
232
+ ? {
233
+ paymentMode: outsideZeniPaymentMode != null
234
+ ? (0, billTransactionState_1.toOutsideZeniPaymentModeType)(outsideZeniPaymentMode)
235
+ : undefined,
236
+ paymentDate: ((_p = billPayload.bill_pay_info) === null || _p === void 0 ? void 0 : _p.payment_date) != null
237
+ ? (0, zeniDayJS_1.date)((_q = billPayload.bill_pay_info) === null || _q === void 0 ? void 0 : _q.payment_date)
238
+ : undefined,
239
+ }
240
+ : undefined;
228
241
  return {
229
242
  recommendedVendorId,
230
243
  showVendorGptRecommendationText,
@@ -245,30 +258,31 @@ const toBillDetailLocalData = (state, showVendorGptRecommendationText, billPaylo
245
258
  paymentDetailsSection: {
246
259
  paymentTo: undefined,
247
260
  paymentType: paymentType,
248
- paymentDate: ((_o = billPayload.bill_pay_info) === null || _o === void 0 ? void 0 : _o.payment_date) != null
249
- ? (0, zeniDayJS_1.date)((_p = billPayload.bill_pay_info) === null || _p === void 0 ? void 0 : _p.payment_date)
261
+ paymentDate: ((_r = billPayload.bill_pay_info) === null || _r === void 0 ? void 0 : _r.payment_date) != null
262
+ ? (0, zeniDayJS_1.date)((_s = billPayload.bill_pay_info) === null || _s === void 0 ? void 0 : _s.payment_date)
250
263
  : (0, zeniDayJS_1.date)((0, workingDayHelper_1.getNextNthWorkingDay)((0, zeniDayJS_1.dateNow)().toDate(), [0, 6], isPayNowEnabled ? 0 : 1).toISOString()),
251
- withdrawFrom: (0, editBillViewSelector_1.getWithdrawFrom)(state, (_r = (_q = billPayload.bill_pay_info) === null || _q === void 0 ? void 0 : _q.from_account.account_id) !== null && _r !== void 0 ? _r : '', (_t = (_s = billPayload.bill_pay_info) === null || _s === void 0 ? void 0 : _s.from_account.account_type) !== null && _t !== void 0 ? _t : ''),
252
- internationalTransferFeeBearerPaymentMethod: ((_u = billPayload.bill_pay_info) === null || _u === void 0 ? void 0 : _u.international_transfer_fee_bearer_payment_method) != null
253
- ? (0, billTransactionState_1.toInternationalTransferFeeBearerPaymentMethod)((_v = billPayload.bill_pay_info) === null || _v === void 0 ? void 0 : _v.international_transfer_fee_bearer_payment_method)
264
+ withdrawFrom: (0, editBillViewSelector_1.getWithdrawFrom)(state, (_u = (_t = billPayload.bill_pay_info) === null || _t === void 0 ? void 0 : _t.from_account.account_id) !== null && _u !== void 0 ? _u : '', (_w = (_v = billPayload.bill_pay_info) === null || _v === void 0 ? void 0 : _v.from_account.account_type) !== null && _w !== void 0 ? _w : ''),
265
+ internationalTransferFeeBearerPaymentMethod: ((_x = billPayload.bill_pay_info) === null || _x === void 0 ? void 0 : _x.international_transfer_fee_bearer_payment_method) != null
266
+ ? (0, billTransactionState_1.toInternationalTransferFeeBearerPaymentMethod)((_y = billPayload.bill_pay_info) === null || _y === void 0 ? void 0 : _y.international_transfer_fee_bearer_payment_method)
254
267
  : undefined,
255
268
  },
256
269
  totalAmount: billPayload.amount != null
257
270
  ? (0, amount_1.toAmountWC)(billPayload.amount, {
258
- currencyCode: (_w = billPayload.currency_code) !== null && _w !== void 0 ? _w : 'USD',
259
- currencySymbol: (_x = billPayload.currency_symbol) !== null && _x !== void 0 ? _x : '$',
271
+ currencyCode: (_z = billPayload.currency_code) !== null && _z !== void 0 ? _z : 'USD',
272
+ currencySymbol: (_0 = billPayload.currency_symbol) !== null && _0 !== void 0 ? _0 : '$',
260
273
  })
261
274
  : undefined,
262
275
  recipientTotalAmount: billPayload.recipient_total_amount != null
263
276
  ? (0, amount_1.toAmountWC)(billPayload.recipient_total_amount, {
264
- currencyCode: (_y = billPayload.recipient_currency_code) !== null && _y !== void 0 ? _y : 'USD',
265
- currencySymbol: (_z = billPayload.recipient_currency_symbol) !== null && _z !== void 0 ? _z : '$',
277
+ currencyCode: (_1 = billPayload.recipient_currency_code) !== null && _1 !== void 0 ? _1 : 'USD',
278
+ currencySymbol: (_2 = billPayload.recipient_currency_symbol) !== null && _2 !== void 0 ? _2 : '$',
266
279
  })
267
280
  : undefined,
268
281
  isCancelled: false,
269
- toAccountVendorEmail: (_1 = (_0 = billPayload.bill_pay_info) === null || _0 === void 0 ? void 0 : _0.to_account_vendor_email) !== null && _1 !== void 0 ? _1 : undefined,
270
- isCollectToAccountInfoFromVendorContact: (_3 = (_2 = billPayload.bill_pay_info) === null || _2 === void 0 ? void 0 : _2.is_collect_to_account_info_from_vendor_contact) !== null && _3 !== void 0 ? _3 : false,
271
- isRecurring: (_4 = billPayload.is_recurring) !== null && _4 !== void 0 ? _4 : false,
282
+ toAccountVendorEmail: (_4 = (_3 = billPayload.bill_pay_info) === null || _3 === void 0 ? void 0 : _3.to_account_vendor_email) !== null && _4 !== void 0 ? _4 : undefined,
283
+ isCollectToAccountInfoFromVendorContact: (_6 = (_5 = billPayload.bill_pay_info) === null || _5 === void 0 ? void 0 : _5.is_collect_to_account_info_from_vendor_contact) !== null && _6 !== void 0 ? _6 : false,
284
+ isRecurring: (_7 = billPayload.is_recurring) !== null && _7 !== void 0 ? _7 : false,
285
+ outsideZeniPaymentLocalData,
272
286
  };
273
287
  };
274
288
  exports.toBillDetailLocalData = toBillDetailLocalData;
@@ -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 { PaymentAchSubConfigCodeType, BillPaymentConfigCodeType, BillPaymentWireSubConfigCodeType } from '../../billPayConfig/billPayConfigState';
13
+ import { BillPaymentConfigCodeType, BillPaymentSubConfigCodeType } 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): Partial<SaveBillPayload>;
18
+ export declare function prepareSaveBillPayload(accountState: AccountState, billTransactionState: BillTransactionState, paymentAccountState: PaymentAccountState, recurringBillState: RecurringBillState, billDetail: EditBillDetail, billStageCode: BillStageCodeType, isForMarkAsPaid: boolean): Partial<SaveBillPayload>;
19
19
  interface SaveBillPayload {
20
20
  vendor_id: string;
21
21
  vendor_name?: string | null;
@@ -45,11 +45,15 @@ interface SaveBillPayload {
45
45
  bill_payment_method_type: {
46
46
  code: BillPaymentConfigCodeType | null;
47
47
  name: string;
48
- sub_code: PaymentAchSubConfigCodeType | BillPaymentWireSubConfigCodeType | null;
48
+ sub_code: BillPaymentSubConfigCodeType | 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
+ };
53
57
  };
54
58
  document_id: string;
55
59
  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 } = action.payload;
28
+ const { billStageCode, billId, isForMarkAsPaid } = 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, isForMarkAsPaid);
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,9 +47,7 @@ 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: billStageCode === 'pending_approval'
51
- ? 'bill_pay_sent_for_approval'
52
- : 'bill_pay_updated',
50
+ messageSection: getSnackBarMessage(isForMarkAsPaid, billStageCode),
53
51
  messageText: 'success',
54
52
  type: 'success',
55
53
  }));
@@ -82,8 +80,8 @@ const getSaveBillApiURL = (saveBillBaseURL, isRecurring, billId, billTransaction
82
80
  return isRecurring ? `${saveBillBaseURL}/recurring` : `${saveBillBaseURL}`;
83
81
  }
84
82
  };
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;
83
+ function prepareSaveBillPayload(accountState, billTransactionState, paymentAccountState, recurringBillState, billDetail, billStageCode, isForMarkAsPaid) {
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;
87
85
  const billId = billDetail.billId;
88
86
  let detail;
89
87
  const withdrawFromAccount = (_a = billDetail.billDetailLocalData.paymentDetailsSection) === null || _a === void 0 ? void 0 : _a.withdrawFrom;
@@ -114,38 +112,42 @@ function prepareSaveBillPayload(accountState, billTransactionState, paymentAccou
114
112
  stage: {
115
113
  code: billStageCode,
116
114
  },
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,
115
+ payment_date: getPaymentDate(billDetail.billDetailLocalData),
118
116
  from_account: {
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 : '',
117
+ account_id: (_z = (_y = (_x = billDetail.billDetailLocalData.paymentDetailsSection) === null || _x === void 0 ? void 0 : _x.withdrawFrom) === null || _y === void 0 ? void 0 : _y.id) !== null && _z !== void 0 ? _z : '',
118
+ account_type: (_2 = (0, helpers_1.accountTypeSubConfigCodeToAccType)((_1 = (_0 = billDetail.billDetailLocalData.paymentDetailsSection) === null || _0 === void 0 ? void 0 : _0.withdrawFrom) === null || _1 === void 0 ? void 0 : _1.accType)) !== null && _2 !== void 0 ? _2 : '',
121
119
  },
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
120
+ to_account: Object.assign({}, (((_4 = (_3 = billDetail.billDetailLocalData.paymentDetailsSection) === null || _3 === void 0 ? void 0 : _3.paymentType) === null || _4 === void 0 ? void 0 : _4.method.includes('international')) === true
123
121
  ? {
124
122
  payment_instrument_id: Boolean(billDetail.billDetailLocalData
125
123
  .isCollectToAccountInfoFromVendorContact) === false
126
- ? (_9 = (_8 = billDetail.billDetailLocalData.paymentDetailsSection) === null || _8 === void 0 ? void 0 : _8.paymentTo) !== null && _9 !== void 0 ? _9 : null
124
+ ? (_6 = (_5 = billDetail.billDetailLocalData.paymentDetailsSection) === null || _5 === void 0 ? void 0 : _5.paymentTo) !== null && _6 !== void 0 ? _6 : null
127
125
  : null,
128
126
  }
129
127
  : {
130
128
  account_id: Boolean(billDetail.billDetailLocalData
131
129
  .isCollectToAccountInfoFromVendorContact) === false
132
- ? (_11 = (_10 = billDetail.billDetailLocalData.paymentDetailsSection) === null || _10 === void 0 ? void 0 : _10.paymentTo) !== null && _11 !== void 0 ? _11 : null
130
+ ? (_8 = (_7 = billDetail.billDetailLocalData.paymentDetailsSection) === null || _7 === void 0 ? void 0 : _7.paymentTo) !== null && _8 !== void 0 ? _8 : null
133
131
  : null,
134
132
  })),
135
- to_account_vendor_email: (_12 = billDetail.billDetailLocalData.toAccountVendorEmail) !== null && _12 !== void 0 ? _12 : null,
133
+ to_account_vendor_email: (_9 = billDetail.billDetailLocalData.toAccountVendorEmail) !== null && _9 !== void 0 ? _9 : null,
136
134
  is_collect_to_account_info_from_vendor_contact: billDetail.billDetailLocalData.isCollectToAccountInfoFromVendorContact,
137
135
  is_cancelled: false,
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
136
+ bill_payment_method_type: getBillPaymentMethodTypePayload((_10 = billDetail.billDetailLocalData.paymentDetailsSection) === null || _10 === void 0 ? void 0 : _10.paymentType),
137
+ international_transfer_fee_bearer_payment_method: ((_12 = (_11 = billDetail.billDetailLocalData.paymentDetailsSection) === null || _11 === void 0 ? void 0 : _11.paymentType) === null || _12 === void 0 ? void 0 : _12.method.includes('international')) === true &&
138
+ ((_13 = billDetail.billDetailLocalData.vendor) === null || _13 === void 0 ? void 0 : _13.vendorCurrencyCode) === 'USD'
139
+ ? (_14 = billDetail.billDetailLocalData.paymentDetailsSection
140
+ .internationalTransferFeeBearerPaymentMethod) !== null && _14 !== void 0 ? _14 : 'swift_our' //default value for international method and USD currency
143
141
  : 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
+ },
144
146
  },
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',
147
+ document_id: (_17 = billDetail.billDetailLocalData.whatForSection) === null || _17 === void 0 ? void 0 : _17.invoiceNumber,
148
+ transaction_memo: (_18 = billDetail.billDetailLocalData.whatForSection) === null || _18 === void 0 ? void 0 : _18.memo,
149
+ currency_code: (_20 = (_19 = billDetail.billDetailLocalData.whatForSection) === null || _19 === void 0 ? void 0 : _19.currencyCode) !== null && _20 !== void 0 ? _20 : 'USD',
150
+ recipient_currency_code: (_22 = (_21 = billDetail.billDetailLocalData.whatForSection) === null || _21 === void 0 ? void 0 : _21.recipientCurrencyCode) !== null && _22 !== void 0 ? _22 : 'USD',
149
151
  lines: Object.keys(billDetail.billDetailLocalData.updatesByLineId).map((lineId) => {
150
152
  const line = billDetail.billDetailLocalData.updatesByLineId[lineId];
151
153
  const lineAsTransactionLinePayload = (0, editBillViewPayload_1.fromLineLocalDataToTransactionLinePayload)(line);
@@ -153,12 +155,12 @@ function prepareSaveBillPayload(accountState, billTransactionState, paymentAccou
153
155
  }),
154
156
  };
155
157
  if (!isRecurring) {
156
- payload.vendor_name = (_25 = (_24 = billDetail.billDetailLocalData.vendor) === null || _24 === void 0 ? void 0 : _24.name) !== null && _25 !== void 0 ? _25 : '';
158
+ payload.vendor_name = (_24 = (_23 = billDetail.billDetailLocalData.vendor) === null || _23 === void 0 ? void 0 : _23.name) !== null && _24 !== void 0 ? _24 : '';
157
159
  }
158
160
  if (billId != null) {
159
161
  detail = (0, get_1.default)(billTransactionState.transactionById, billId, undefined);
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;
162
+ payload.sync_token = (_25 = detail === null || detail === void 0 ? void 0 : detail.syncToken) !== null && _25 !== void 0 ? _25 : null;
163
+ payload.update_time = (_26 = detail === null || detail === void 0 ? void 0 : detail.updateTime.format('YYYY-MM-DD')) !== null && _26 !== void 0 ? _26 : null;
162
164
  //required by platform to clear old recurring details
163
165
  if ((detail === null || detail === void 0 ? void 0 : detail.isRecurring) === true &&
164
166
  Boolean(billDetail.billDetailLocalData.isRecurring) === false) {
@@ -169,7 +171,7 @@ function prepareSaveBillPayload(accountState, billTransactionState, paymentAccou
169
171
  payload.are_approvals_serialized = true;
170
172
  }
171
173
  if (billStageCode === 'pending_approval' &&
172
- ((_28 = billDetail.billDetailLocalData.paymentDetailsSection) === null || _28 === void 0 ? void 0 : _28.conversionRate) != null) {
174
+ ((_27 = billDetail.billDetailLocalData.paymentDetailsSection) === null || _27 === void 0 ? void 0 : _27.conversionRate) != null) {
173
175
  // required by platform
174
176
  payload.exchange_rate =
175
177
  1 / billDetail.billDetailLocalData.paymentDetailsSection.conversionRate;
@@ -227,12 +229,22 @@ const getBillPaymentMethodTypePayload = (paymentType) => {
227
229
  code: Boolean(code) === true
228
230
  ? (0, billPayConfigState_1.toBillPaymentMethodCodeType)(code)
229
231
  : null,
230
- name: (_a = paymentType === null || paymentType === void 0 ? void 0 : paymentType.method.replace(/(_depositAccount|_paymentAccount)/g, '')) !== null && _a !== void 0 ? _a : '',
232
+ name: code === 'outside-zeni'
233
+ ? 'Outside Zeni'
234
+ : (_a = paymentType === null || paymentType === void 0 ? void 0 : paymentType.method.replace(/(_depositAccount|_paymentAccount)/g, '')) !== null && _a !== void 0 ? _a : '',
231
235
  sub_code: Boolean(subCode) === true
232
236
  ? (0, billPayConfigPayload_1.getSubCodePayload)((0, billPayConfigState_1.toBillPaymentSubConfigCodeKeyType)(subCode))
233
237
  : null,
234
238
  };
235
239
  };
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
+ };
236
248
  const toRecurringBillInstancePayload = (recurringBillInstance, maxPaymentProcessingDays) => {
237
249
  const calculatedPaymentDate = (0, helpers_1.getPaymentDateFromVendorReceiveDate)(recurringBillInstance.vendorReceiveDate, maxPaymentProcessingDays);
238
250
  return {
@@ -242,3 +254,11 @@ const toRecurringBillInstancePayload = (recurringBillInstance, maxPaymentProcess
242
254
  vendor_receive_date_notes: recurringBillInstance.vendorReceiveDateNotes,
243
255
  };
244
256
  };
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", paymentSubConfigCodeType: "standard" | "international" | "same-day" | "us-domestic", vendorId: string, billId: string, isLocalCurrencyEnabled?: boolean | undefined], {
29
- paymentMethodType: "ach" | "wire";
28
+ }, string>, saveBankAccount: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[paymentMethodType: "ach" | "wire" | "outside-zeni", paymentSubConfigCodeType: "standard" | "international" | "same-day" | "us-domestic", vendorId: string, billId: string, isLocalCurrencyEnabled?: boolean | undefined], {
29
+ paymentMethodType: "ach" | "wire" | "outside-zeni";
30
30
  paymentSubConfigCodeType: "standard" | "international" | "same-day" | "us-domestic";
31
31
  vendorId: string;
32
32
  billId: string;
@@ -35,3 +35,5 @@ 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.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;
6
+ exports.isAwaitingMarkAsPaid = exports.isPaymentMethodOutsideZeni = 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,3 +331,11 @@ 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,6 +4,7 @@ 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';
7
8
  export declare const initialState: EditRemiDetailViewState;
8
9
  export declare const fetchEditRemiDetailPage: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[cacheOverride: boolean, isLimitedCategoryEnabled: boolean, isShowDeletedReimbursementEnabled: boolean, reimbursementId?: string | undefined], {
9
10
  cacheOverride: boolean;
@@ -51,7 +52,11 @@ export declare const fetchEditRemiDetailPage: import("@reduxjs/toolkit").ActionC
51
52
  conversionCurrencyCode: string;
52
53
  lineId: string;
53
54
  reimbursementId: string | undefined;
54
- }, string, never, never>, updateHomeCurrencyConversion: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
55
+ }, string, never, never>, updateReimbursementType: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
56
+ reimbursementId?: string | undefined;
57
+ lineId: string;
58
+ reimbursementType: ReimbursementTypeCode;
59
+ }, string>, updateHomeCurrencyConversion: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
55
60
  reimbursementId?: string | undefined;
56
61
  lineId: string;
57
62
  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.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;
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.updateReimbursementType = 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,6 +285,16 @@ 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
+ },
288
298
  updateHomeCurrencyConversion(draft, action) {
289
299
  const { reimbursementId, lineId, amountPayload } = action.payload;
290
300
  const homeCurrencyConversions = (0, amount_1.toAmount)(amountPayload.amount, amountPayload.currency_code, amountPayload.currency_symbol);
@@ -345,7 +355,7 @@ const editRemiView = (0, toolkit_1.createSlice)({
345
355
  },
346
356
  },
347
357
  });
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;
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.updateReimbursementType = _a.updateReimbursementType, 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;
349
359
  exports.default = editRemiView.reducer;
350
360
  const doUpdateRecommendationForEntity = (draft, lineId, recommendations, shouldAutofill, reimbursementId, reimbursementStageCode) => {
351
361
  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" | "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";
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" | "bill_pay_marked_as_paid" | "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" | "transaction_reviewed" | "transaction_reviewed_failed" | "transactions_reviewed_failed" | "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" | "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
+ 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" | "bill_pay_marked_as_paid" | "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" | "transaction_reviewed" | "transaction_reviewed_failed" | "transactions_reviewed_failed" | "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" | "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";
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" | "bill_pay_marked_as_paid" | "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" | "transaction_reviewed" | "transaction_reviewed_failed" | "transactions_reviewed_failed" | "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.14",
3
+ "version": "4.14.16",
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",