@zeniai/client-epic-state 4.12.39 → 4.12.40

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 (50) hide show
  1. package/lib/entity/billPay/billTransaction/billTransactionPayload.d.ts +1 -12
  2. package/lib/entity/billPay/billTransaction/billTransactionPayload.js +1 -23
  3. package/lib/entity/billPay/billTransaction/billTransactionState.d.ts +0 -12
  4. package/lib/entity/billPay/billTransaction/billTransactionState.js +0 -8
  5. package/lib/entity/jeSchedules/jeSchedulesReducer.d.ts +2 -2
  6. package/lib/entity/snackbar/snackbarTypes.d.ts +1 -1
  7. package/lib/entity/snackbar/snackbarTypes.js +0 -2
  8. package/lib/entity/toastNotification/epic/pushToastNotificationEpic.d.ts +1 -1
  9. package/lib/entity/transaction/stateTypes/transactionType.d.ts +2 -2
  10. package/lib/epic.d.ts +1 -3
  11. package/lib/epic.js +1 -3
  12. package/lib/index.d.ts +4 -4
  13. package/lib/index.js +12 -14
  14. package/lib/view/cardPayment/epic/addCardPaymentSourceEpic.d.ts +1 -1
  15. package/lib/view/cardPayment/epic/confirmCardSetupIntentEpic.d.ts +1 -1
  16. package/lib/view/cardPayment/epic/createCardSetupIntentEpic.d.ts +1 -1
  17. package/lib/view/cardPayment/epic/fetchPaymentSourcesEpic.d.ts +1 -1
  18. package/lib/view/people/changeZeniPersonRolesEpic.d.ts +1 -1
  19. package/lib/view/people/deletePersonEpic.d.ts +1 -1
  20. package/lib/view/people/invitePeopleEpic.d.ts +1 -1
  21. package/lib/view/people/inviteZeniPeopleEpic.d.ts +1 -1
  22. package/lib/view/people/resendInviteEpic.d.ts +1 -1
  23. package/lib/view/scheduleView/scheduleDetailView/scheduleDetailReducer.d.ts +4 -4
  24. package/lib/view/settingsView/epic/saveNotificationSettingsEpic.d.ts +1 -1
  25. package/lib/view/spendManagement/billPay/billDetailView/billDetailViewPayload.d.ts +0 -5
  26. package/lib/view/spendManagement/billPay/billDetailView/billDetailViewReducer.d.ts +1 -22
  27. package/lib/view/spendManagement/billPay/billDetailView/billDetailViewReducer.js +2 -133
  28. package/lib/view/spendManagement/billPay/billDetailView/billDetailViewSelector.d.ts +1 -2
  29. package/lib/view/spendManagement/billPay/billDetailView/billDetailViewSelector.js +0 -2
  30. package/lib/view/spendManagement/billPay/billDetailView/billDetailViewState.d.ts +0 -9
  31. package/lib/view/spendManagement/billPay/billDetailView/billDetailViewState.js +0 -14
  32. package/lib/view/spendManagement/billPay/billDetailView/epics/fetchBillDetailEpic.d.ts +2 -2
  33. package/lib/view/spendManagement/billPay/billDetailView/epics/fetchBillDetailEpic.js +1 -10
  34. package/lib/view/spendManagement/billPay/billPayReview/billPayReviewSelector.d.ts +0 -1
  35. package/lib/view/spendManagement/billPay/billPayReview/billPayReviewSelector.js +0 -3
  36. package/lib/view/spendManagement/billPay/editBillView/editBillViewReducer.d.ts +1 -3
  37. package/lib/view/spendManagement/billPay/editBillView/editBillViewReducer.js +2 -6
  38. package/lib/view/spendManagement/billPay/editBillView/editBillViewSelector.d.ts +0 -1
  39. package/lib/view/spendManagement/billPay/editBillView/editBillViewSelector.js +0 -3
  40. package/lib/view/spendManagement/billPay/editBillView/editBillViewState.d.ts +0 -1
  41. package/lib/view/spendManagement/billPay/editBillView/epics/saveBillDetailEpic.d.ts +0 -68
  42. package/lib/view/spendManagement/billPay/editBillView/epics/saveBillDetailEpic.js +1 -2
  43. package/lib/view/tagView/epics/createTagEpic.d.ts +1 -1
  44. package/lib/view/tagView/epics/deleteTagEpic.d.ts +1 -1
  45. package/lib/view/transactionDetail/transactionDetailState.d.ts +2 -2
  46. package/package.json +1 -1
  47. package/lib/view/spendManagement/billPay/billDetailView/epics/fetchEligibleActionsForBillEpic.d.ts +0 -7
  48. package/lib/view/spendManagement/billPay/billDetailView/epics/fetchEligibleActionsForBillEpic.js +0 -42
  49. package/lib/view/spendManagement/billPay/billDetailView/epics/retryOrRefundBillEpic.d.ts +0 -9
  50. package/lib/view/spendManagement/billPay/billDetailView/epics/retryOrRefundBillEpic.js +0 -76
@@ -4,7 +4,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  var _a;
6
6
  Object.defineProperty(exports, "__esModule", { value: true });
7
- exports.retryOrRefundBillFailure = exports.retryOrRefundBillSuccess = exports.retryOrRefundBill = exports.updateFetchEligibleActionsFailureState = exports.updateEligibleActionsForBill = exports.fetchEligibleActionsForBill = exports.waitForVendorByNameThenUpdateBillDetail = exports.cancelAndDeleteBillSuccessOrFailure = exports.cancelAndDeleteBill = exports.clearBillDetailView = exports.updateApprovalStatusOnSuccess = exports.approveOrRejectBillFailure = exports.approveOrRejectBillSuccess = exports.approveOrRejectBill = exports.deleteBillSuccessOrFailure = exports.deleteBill = exports.removeBillDetail = exports.updateBillDetailFetchState = exports.updateBillDetail = exports.fetchBillDetail = exports.initialState = void 0;
7
+ exports.waitForVendorByNameThenUpdateBillDetail = exports.cancelAndDeleteBillSuccessOrFailure = exports.cancelAndDeleteBill = exports.clearBillDetailView = exports.updateApprovalStatusOnSuccess = exports.approveOrRejectBillFailure = exports.approveOrRejectBillSuccess = exports.approveOrRejectBill = exports.deleteBillSuccessOrFailure = exports.deleteBill = exports.removeBillDetail = exports.updateBillDetailFetchState = exports.updateBillDetail = exports.fetchBillDetail = exports.initialState = void 0;
8
8
  const toolkit_1 = require("@reduxjs/toolkit");
9
9
  const get_1 = __importDefault(require("lodash/get"));
10
10
  const billDetailViewState_1 = require("./billDetailViewState");
@@ -243,141 +243,10 @@ const billDetailView = (0, toolkit_1.createSlice)({
243
243
  return { payload: { billId, billDetail, vendorId } };
244
244
  },
245
245
  },
246
- fetchEligibleActionsForBill: {
247
- reducer(draft, action) {
248
- const key = (0, billDetailViewState_1.getBillTransactionDetailKey)(action.payload.billId);
249
- draft.billDetailById[key] = Object.assign(Object.assign({}, draft.billDetailById[key]), { zeniAssist: Object.assign(Object.assign({}, draft.billDetailById[key].zeniAssist), { eligibleActionsFetchStatus: {
250
- fetchState: 'In-Progress',
251
- error: undefined,
252
- } }) });
253
- },
254
- prepare(billId, cacheOverride = false) {
255
- return {
256
- payload: {
257
- billId,
258
- cacheOverride,
259
- },
260
- };
261
- },
262
- },
263
- updateEligibleActionsForBill: {
264
- reducer(draft, action) {
265
- const key = (0, billDetailViewState_1.getBillTransactionDetailKey)(action.payload.billId);
266
- const detail = (0, get_1.default)(draft.billDetailById, key, undefined);
267
- if (detail != null) {
268
- draft.billDetailById[key].zeniAssist = Object.assign(Object.assign({}, draft.billDetailById[key].zeniAssist), { isEligibleForRefund: action.payload.isEligibleForRefund, isEligibleForRetry: action.payload.isEligibleForRetry, eligibleActionsFetchStatus: {
269
- fetchState: 'Completed',
270
- error: undefined,
271
- } });
272
- }
273
- },
274
- prepare(billId, isEligibleForRefund, isEligibleForRetry) {
275
- return {
276
- payload: { billId, isEligibleForRefund, isEligibleForRetry },
277
- };
278
- },
279
- },
280
- updateFetchEligibleActionsFailureState: {
281
- reducer: (draft, action) => {
282
- const billId = action.payload.billId;
283
- const key = (0, billDetailViewState_1.getBillTransactionDetailKey)(billId);
284
- draft.billDetailById[key].zeniAssist = Object.assign(Object.assign({}, draft.billDetailById[key].zeniAssist), { eligibleActionsFetchStatus: {
285
- fetchState: 'Error',
286
- error: action.payload.error,
287
- } });
288
- },
289
- prepare(billId, error, vendorId) {
290
- return {
291
- payload: {
292
- billId,
293
- error,
294
- vendorId,
295
- },
296
- };
297
- },
298
- },
299
- retryOrRefundBill: {
300
- reducer(draft, action) {
301
- const key = (0, billDetailViewState_1.getBillTransactionDetailKey)(action.payload.billId);
302
- const detail = (0, get_1.default)(draft.billDetailById, key, undefined);
303
- if (detail != null) {
304
- if (action.payload.actionType === 'refund') {
305
- draft.billDetailById[key].zeniAssist = Object.assign(Object.assign({}, draft.billDetailById[key].zeniAssist), { refundStatus: {
306
- fetchState: 'In-Progress',
307
- error: undefined,
308
- } });
309
- }
310
- else {
311
- draft.billDetailById[key].zeniAssist = Object.assign(Object.assign({}, draft.billDetailById[key].zeniAssist), { retryStatus: {
312
- fetchState: 'In-Progress',
313
- error: undefined,
314
- } });
315
- }
316
- }
317
- },
318
- prepare(billId, actionType) {
319
- return {
320
- payload: { billId, actionType },
321
- };
322
- },
323
- },
324
- retryOrRefundBillSuccess: {
325
- reducer(draft, action) {
326
- const { billId } = action.payload;
327
- const key = (0, billDetailViewState_1.getBillTransactionDetailKey)(billId);
328
- if (action.payload.actionType === 'refund') {
329
- draft.billDetailById[key].zeniAssist = Object.assign(Object.assign({}, draft.billDetailById[key].zeniAssist), { refundStatus: {
330
- fetchState: 'Completed',
331
- error: undefined,
332
- } });
333
- }
334
- else {
335
- draft.billDetailById[key].zeniAssist = Object.assign(Object.assign({}, draft.billDetailById[key].zeniAssist), { retryStatus: {
336
- fetchState: 'Completed',
337
- error: undefined,
338
- } });
339
- }
340
- },
341
- prepare(billId, actionType) {
342
- return {
343
- payload: {
344
- billId,
345
- actionType,
346
- },
347
- };
348
- },
349
- },
350
- retryOrRefundBillFailure: {
351
- reducer(draft, action) {
352
- const { billId, status } = action.payload;
353
- const key = (0, billDetailViewState_1.getBillTransactionDetailKey)(billId);
354
- if (action.payload.actionType === 'refund') {
355
- draft.billDetailById[key].zeniAssist = Object.assign(Object.assign({}, draft.billDetailById[key].zeniAssist), { refundStatus: {
356
- fetchState: 'Error',
357
- error: status,
358
- } });
359
- }
360
- else {
361
- draft.billDetailById[key].zeniAssist = Object.assign(Object.assign({}, draft.billDetailById[key].zeniAssist), { retryStatus: {
362
- fetchState: 'Error',
363
- error: status,
364
- } });
365
- }
366
- },
367
- prepare(billId, actionType, status) {
368
- return {
369
- payload: {
370
- billId,
371
- actionType,
372
- status,
373
- },
374
- };
375
- },
376
- },
377
246
  clearBillDetailView(draft) {
378
247
  Object.assign(draft, exports.initialState);
379
248
  },
380
249
  },
381
250
  });
382
- _a = billDetailView.actions, exports.fetchBillDetail = _a.fetchBillDetail, exports.updateBillDetail = _a.updateBillDetail, exports.updateBillDetailFetchState = _a.updateBillDetailFetchState, exports.removeBillDetail = _a.removeBillDetail, exports.deleteBill = _a.deleteBill, exports.deleteBillSuccessOrFailure = _a.deleteBillSuccessOrFailure, exports.approveOrRejectBill = _a.approveOrRejectBill, exports.approveOrRejectBillSuccess = _a.approveOrRejectBillSuccess, exports.approveOrRejectBillFailure = _a.approveOrRejectBillFailure, exports.updateApprovalStatusOnSuccess = _a.updateApprovalStatusOnSuccess, exports.clearBillDetailView = _a.clearBillDetailView, exports.cancelAndDeleteBill = _a.cancelAndDeleteBill, exports.cancelAndDeleteBillSuccessOrFailure = _a.cancelAndDeleteBillSuccessOrFailure, exports.waitForVendorByNameThenUpdateBillDetail = _a.waitForVendorByNameThenUpdateBillDetail, exports.fetchEligibleActionsForBill = _a.fetchEligibleActionsForBill, exports.updateEligibleActionsForBill = _a.updateEligibleActionsForBill, exports.updateFetchEligibleActionsFailureState = _a.updateFetchEligibleActionsFailureState, exports.retryOrRefundBill = _a.retryOrRefundBill, exports.retryOrRefundBillSuccess = _a.retryOrRefundBillSuccess, exports.retryOrRefundBillFailure = _a.retryOrRefundBillFailure;
251
+ _a = billDetailView.actions, exports.fetchBillDetail = _a.fetchBillDetail, exports.updateBillDetail = _a.updateBillDetail, exports.updateBillDetailFetchState = _a.updateBillDetailFetchState, exports.removeBillDetail = _a.removeBillDetail, exports.deleteBill = _a.deleteBill, exports.deleteBillSuccessOrFailure = _a.deleteBillSuccessOrFailure, exports.approveOrRejectBill = _a.approveOrRejectBill, exports.approveOrRejectBillSuccess = _a.approveOrRejectBillSuccess, exports.approveOrRejectBillFailure = _a.approveOrRejectBillFailure, exports.updateApprovalStatusOnSuccess = _a.updateApprovalStatusOnSuccess, exports.clearBillDetailView = _a.clearBillDetailView, exports.cancelAndDeleteBill = _a.cancelAndDeleteBill, exports.cancelAndDeleteBillSuccessOrFailure = _a.cancelAndDeleteBillSuccessOrFailure, exports.waitForVendorByNameThenUpdateBillDetail = _a.waitForVendorByNameThenUpdateBillDetail;
383
252
  exports.default = billDetailView.reducer;
@@ -11,7 +11,7 @@ import { ZeniDate } from '../../../../zeniDayJS';
11
11
  import { ActivityHistorySelectorView } from '../../commonHistoryView/commonHistorySelector';
12
12
  import { StepWithUser } from '../billPaySetupApproverView/billPaySetupApproverViewSelectorTypes';
13
13
  import { PreviousBillsSelectorView } from '../previousBills/previousBillsSelector';
14
- import { BillApprovalType, ZeniAssistForBills } from './billDetailViewState';
14
+ import { BillApprovalType } from './billDetailViewState';
15
15
  import { LoggedInUser } from '../../../../entity/tenant/tenantState';
16
16
  import { ActivityRealTimeApprovalSelectorView } from '../../realTimeApprovalView/realTimeApprovalSelector';
17
17
  import { UserAndRole } from '../../../companyView/types/userAndRole';
@@ -46,7 +46,6 @@ export interface BillDetailViewSelector extends SelectorView {
46
46
  isRecurring: boolean;
47
47
  recurringBillInstances?: RecurringBillData[];
48
48
  recurringBillConfigDetail?: RecurringBillConfig;
49
- zeniAssist?: ZeniAssistForBills;
50
49
  }
51
50
  export interface StepWithStatus extends StepWithUser {
52
51
  actorsActivity: ActorActivityWithUser[];
@@ -188,7 +188,6 @@ const getBillDetailView = (state, billId) => {
188
188
  recurringBillConfigDetail = recurringBillDetail === null || recurringBillDetail === void 0 ? void 0 : recurringBillDetail.recurringBillConfig;
189
189
  recurringBillInstances = recurringBillDetail === null || recurringBillDetail === void 0 ? void 0 : recurringBillDetail.recurringBillInstances;
190
190
  }
191
- const zeniAssist = billTransactionDetails === null || billTransactionDetails === void 0 ? void 0 : billTransactionDetails.zeniAssist;
192
191
  return {
193
192
  fetchState: fetchState.fetchState,
194
193
  error: fetchState.error,
@@ -219,7 +218,6 @@ const getBillDetailView = (state, billId) => {
219
218
  isRecurring,
220
219
  recurringBillInstances,
221
220
  recurringBillConfigDetail,
222
- zeniAssist,
223
221
  };
224
222
  };
225
223
  exports.getBillDetailView = getBillDetailView;
@@ -1,6 +1,5 @@
1
1
  import { FetchedState, FetchStateAndError, ID } from '../../../../commonStateTypes/common';
2
2
  export declare type BillApprovalType = 'approved' | 'rejected';
3
- export declare type BillAssistActionType = 'retry' | 'refund';
4
3
  export declare const getBillTransactionDetailKey: (billId: ID) => string;
5
4
  export declare type BillTransactionDetailKey = ReturnType<typeof getBillTransactionDetailKey>;
6
5
  export interface BillDetailView extends FetchedState {
@@ -13,14 +12,6 @@ export interface BillDetailView extends FetchedState {
13
12
  approvalRuleIds: ID[];
14
13
  eventIds: ID[];
15
14
  vendorId?: ID;
16
- zeniAssist: ZeniAssistForBills;
17
- }
18
- export interface ZeniAssistForBills {
19
- eligibleActionsFetchStatus: FetchStateAndError;
20
- retryStatus: FetchStateAndError;
21
- refundStatus: FetchStateAndError;
22
- isEligibleForRetry?: boolean;
23
- isEligibleForRefund?: boolean;
24
15
  }
25
16
  export interface BillDetailViewState {
26
17
  billDetailById: Record<BillTransactionDetailKey, BillDetailView>;
@@ -38,18 +38,4 @@ exports.initialBillDetailView = {
38
38
  eventIds: [],
39
39
  entityApprovalIds: [],
40
40
  approvalRuleIds: [],
41
- zeniAssist: {
42
- eligibleActionsFetchStatus: {
43
- fetchState: 'Not-Started',
44
- error: undefined,
45
- },
46
- retryStatus: {
47
- fetchState: 'Not-Started',
48
- error: undefined,
49
- },
50
- refundStatus: {
51
- fetchState: 'Not-Started',
52
- error: undefined,
53
- },
54
- },
55
41
  };
@@ -1,6 +1,6 @@
1
1
  import { ActionsObservable, StateObservable } from 'redux-observable';
2
2
  import { Observable } from 'rxjs';
3
- import { fetchBillDetail, updateBillDetailFetchState, removeBillDetail, updateBillDetail, waitForVendorByNameThenUpdateBillDetail, fetchEligibleActionsForBill } from '../billDetailViewReducer';
3
+ import { fetchBillDetail, updateBillDetailFetchState, removeBillDetail, updateBillDetail, waitForVendorByNameThenUpdateBillDetail } from '../billDetailViewReducer';
4
4
  import { ZeniAPI } from '../../../../../zeniAPI';
5
5
  import { RootState } from '../../../../../reducer';
6
6
  import { removeBillTransaction, updateBillTransaction } from '../../../../../entity/billPay/billTransaction/billTransactionReducer';
@@ -22,7 +22,7 @@ import { updatePaymentInstruments } from '../../../../../entity/paymentInstrumen
22
22
  import { convertAmountToHomeCurrency } from '../../editBillView/editBillViewReducer';
23
23
  import { updateRecurringBillConfigs, updateRecurringBills } from '../../../../../entity/billPay/recurringBills/recurringBillsReducer';
24
24
  import { updateDepositAccounts } from '../../../../../entity/depositAccount/depositAccountReducer';
25
- export declare type ActionType = ReturnType<typeof fetchBillDetail> | ReturnType<typeof updateBillTransaction> | ReturnType<typeof updateBankAccounts> | ReturnType<typeof updatePaymentInstruments> | ReturnType<typeof updateBillDetailFetchState> | ReturnType<typeof removeBillTransaction> | ReturnType<typeof removeBillDetail> | ReturnType<typeof updatePaymentAccounts> | ReturnType<typeof updateAccounts> | ReturnType<typeof updateAllUsers> | ReturnType<typeof updateApprovalRules> | ReturnType<typeof updateEntityApprovalStatus> | ReturnType<typeof fetchPreviousBills> | ReturnType<typeof updateBillDetail> | ReturnType<typeof updateClasses> | ReturnType<typeof updateVendors> | ReturnType<typeof updateContacts> | ReturnType<typeof updateAddresses> | ReturnType<typeof fetchEntityHistory> | ReturnType<typeof fetchVendorsList> | ReturnType<typeof fetchDuplicateBill> | ReturnType<typeof convertAmountToHomeCurrency> | ReturnType<typeof waitForVendorByNameThenUpdateBillDetail> | ReturnType<typeof updateRecurringBillConfigs> | ReturnType<typeof updateRecurringBills> | ReturnType<typeof updateDepositAccounts> | ReturnType<typeof fetchEligibleActionsForBill>;
25
+ export declare type ActionType = ReturnType<typeof fetchBillDetail> | ReturnType<typeof updateBillTransaction> | ReturnType<typeof updateBankAccounts> | ReturnType<typeof updatePaymentInstruments> | ReturnType<typeof updateBillDetailFetchState> | ReturnType<typeof removeBillTransaction> | ReturnType<typeof removeBillDetail> | ReturnType<typeof updatePaymentAccounts> | ReturnType<typeof updateAccounts> | ReturnType<typeof updateAllUsers> | ReturnType<typeof updateApprovalRules> | ReturnType<typeof updateEntityApprovalStatus> | ReturnType<typeof fetchPreviousBills> | ReturnType<typeof updateBillDetail> | ReturnType<typeof updateClasses> | ReturnType<typeof updateVendors> | ReturnType<typeof updateContacts> | ReturnType<typeof updateAddresses> | ReturnType<typeof fetchEntityHistory> | ReturnType<typeof fetchVendorsList> | ReturnType<typeof fetchDuplicateBill> | ReturnType<typeof convertAmountToHomeCurrency> | ReturnType<typeof waitForVendorByNameThenUpdateBillDetail> | ReturnType<typeof updateRecurringBillConfigs> | ReturnType<typeof updateRecurringBills> | ReturnType<typeof updateDepositAccounts>;
26
26
  export declare const fetchBillDetailEpic: (actions$: ActionsObservable<ActionType>, state$: StateObservable<RootState>, zeniAPI: ZeniAPI) => Observable<ActionType>;
27
27
  export declare const waitForVendorByNameThenUpdateBillDetailEpic: (actions$: ActionsObservable<ActionType>, _: StateObservable<RootState>) => Observable<{
28
28
  payload: {
@@ -55,7 +55,7 @@ const fetchBillDetailEpic = (actions$, state$, zeniAPI) => actions$.pipe((0, ope
55
55
  const getTransactionDetail$ = zeniAPI
56
56
  .getJSON(`${zeniAPI.apiEndPoints.spendManagementMicroServiceBaseUrl}/1.0/bills/transactions/${billId}?query=${encodeURIComponent(JSON.stringify(query))}`)
57
57
  .pipe((0, operators_1.mergeMap)((response) => {
58
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
58
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
59
59
  if ((0, responsePayload_1.isSuccessResponse)(response) &&
60
60
  ((_b = (_a = response.data) === null || _a === void 0 ? void 0 : _a.transaction) === null || _b === void 0 ? void 0 : _b.transaction_id) != null) {
61
61
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
@@ -110,15 +110,6 @@ const fetchBillDetailEpic = (actions$, state$, zeniAPI) => actions$.pipe((0, ope
110
110
  Boolean(vendorInResponse) === true) {
111
111
  fetchActions.push((0, billPayReviewReducer_1.fetchDuplicateBill)(vendorInResponse.vendor_name, vendorInResponse.vendor_id, transactionInResponse.total_amount, transactionInResponse.recipient_total_amount, transactionInResponse.document_id, billId));
112
112
  }
113
- const billHasPaymentError = [
114
- 'failed',
115
- 'cancelled',
116
- 'returned',
117
- ].includes((_q = transactionInResponse.bill_pay_info.bill_payment_status
118
- .code) !== null && _q !== void 0 ? _q : '');
119
- if (billHasPaymentError) {
120
- fetchActions.push((0, billDetailViewReducer_1.fetchEligibleActionsForBill)(billId, true));
121
- }
122
113
  }
123
114
  return (0, rxjs_1.from)(fetchActions);
124
115
  }
@@ -26,7 +26,6 @@ export interface BillPayReviewSelectorView extends SelectorView {
26
26
  isInvoiceDateAutoUpdated: boolean;
27
27
  recurringBillInstance?: number;
28
28
  recurringConfig?: RecurringBillConfigLocalData;
29
- isBillMarkedForRetry?: boolean;
30
29
  }
31
30
  export interface DuplicateBillsSelectorView extends SelectorView {
32
31
  bills: BillTransaction[];
@@ -58,7 +58,6 @@ const getReviewPageBillDetail = (state, billId) => {
58
58
  let isRecurring = false;
59
59
  let recurringBillInstance;
60
60
  let recurringConfig;
61
- let isBillMarkedForRetry = false;
62
61
  if (billId != null) {
63
62
  const transaction = (0, get_1.default)(billTransactionState.transactionById, billId, undefined);
64
63
  toAccountVendorEmail = transaction === null || transaction === void 0 ? void 0 : transaction.billPayInfo.toAccountVendorEmail;
@@ -123,7 +122,6 @@ const getReviewPageBillDetail = (state, billId) => {
123
122
  paymentDetailsSection.paymentTo = (0, editBillViewSelector_1.toPaymentToOption)(contact);
124
123
  }
125
124
  }
126
- isBillMarkedForRetry = Boolean(sourceBillDetail.isBillMarkedForRetry);
127
125
  }
128
126
  const lineDetailSection = {};
129
127
  const lineDetailSectionUpdatesByLineId = (_j = (_h = sourceBillDetail === null || sourceBillDetail === void 0 ? void 0 : sourceBillDetail.billDetailLocalData) === null || _h === void 0 ? void 0 : _h.updatesByLineId) !== null && _j !== void 0 ? _j : {};
@@ -172,7 +170,6 @@ const getReviewPageBillDetail = (state, billId) => {
172
170
  recurringBillInstance,
173
171
  recurringConfig,
174
172
  isInvoiceDateAutoUpdated: (_y = whatForSection.isInvoiceDateAutoUpdated) !== null && _y !== void 0 ? _y : false,
175
- isBillMarkedForRetry,
176
173
  };
177
174
  };
178
175
  exports.getReviewPageBillDetail = getReviewPageBillDetail;
@@ -72,8 +72,6 @@ export declare const fetchEditBillDetailPage: import("@reduxjs/toolkit").ActionC
72
72
  }, string, never, never>, waitForVendorByIdThenSaveBillUpdatetoLocalStore: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[vendorId: string, billId?: string | undefined], {
73
73
  vendorId: string;
74
74
  billId: string | undefined;
75
- }, string, never, never>, markBillForRetry: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
76
- billId: ID;
77
- }, string>;
75
+ }, string, never, never>;
78
76
  declare const _default: import("@reduxjs/toolkit").Reducer<EditBillDetailViewState, import("@reduxjs/toolkit").AnyAction>;
79
77
  export default _default;
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  var _a;
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.markBillForRetry = exports.waitForVendorByIdThenSaveBillUpdatetoLocalStore = exports.fetchVendorAndUpdateBillLocalData = exports.updateHomeCurrencyConversion = exports.currencyConversionValueSuccessOrFailure = exports.convertAmountToHomeCurrency = exports.updateVendorContactSuccessOrFailure = exports.updateVendorContact = exports.updateSuggestedVendorIdFromParsedInvoice = exports.updateRecommendedVendorId = exports.updateBillUploadFetchState = exports.updateAddBillAutoFields = exports.updateShowAutofill = exports.updateInternationalTransferFeeBearerPaymentMethodInLocalData = exports.waitForVendorByNameThenParsetoLocalStore = exports.waitForBillDetailThenInitializeLocalStore = exports.clearEditBillViewDetail = exports.parseInvoiceToBill = exports.updateEditBillFetchStateCompleted = exports.saveBillSuccessOrFailure = exports.saveBillDetail = exports.discardBillUpdatesInLocalStore = exports.saveBillUpdatesToLocalStore = exports.initializeBillToLocalStore = exports.fetchVendorByNameAndParseInvoice = exports.fetchBillAndInitializeLocalStore = exports.fetchEditBillDetailPage = exports.initialState = void 0;
4
+ exports.waitForVendorByIdThenSaveBillUpdatetoLocalStore = exports.fetchVendorAndUpdateBillLocalData = exports.updateHomeCurrencyConversion = exports.currencyConversionValueSuccessOrFailure = exports.convertAmountToHomeCurrency = exports.updateVendorContactSuccessOrFailure = exports.updateVendorContact = exports.updateSuggestedVendorIdFromParsedInvoice = exports.updateRecommendedVendorId = exports.updateBillUploadFetchState = exports.updateAddBillAutoFields = exports.updateShowAutofill = exports.updateInternationalTransferFeeBearerPaymentMethodInLocalData = exports.waitForVendorByNameThenParsetoLocalStore = exports.waitForBillDetailThenInitializeLocalStore = exports.clearEditBillViewDetail = exports.parseInvoiceToBill = exports.updateEditBillFetchStateCompleted = exports.saveBillSuccessOrFailure = exports.saveBillDetail = exports.discardBillUpdatesInLocalStore = exports.saveBillUpdatesToLocalStore = exports.initializeBillToLocalStore = exports.fetchVendorByNameAndParseInvoice = exports.fetchBillAndInitializeLocalStore = exports.fetchEditBillDetailPage = exports.initialState = void 0;
5
5
  const toolkit_1 = require("@reduxjs/toolkit");
6
6
  const editBillViewState_1 = require("./editBillViewState");
7
7
  const billDetailViewState_1 = require("../billDetailView/billDetailViewState");
@@ -325,16 +325,12 @@ const editBillView = (0, toolkit_1.createSlice)({
325
325
  return { payload: { vendorId, billId } };
326
326
  },
327
327
  },
328
- markBillForRetry(draft, action) {
329
- const key = (0, billDetailViewState_1.getBillTransactionDetailKey)(action.payload.billId);
330
- draft.editBillStateById[key].isBillMarkedForRetry = true;
331
- },
332
328
  clearEditBillViewDetail(draft) {
333
329
  Object.assign(draft, exports.initialState);
334
330
  },
335
331
  },
336
332
  });
337
- _a = editBillView.actions, exports.fetchEditBillDetailPage = _a.fetchEditBillDetailPage, exports.fetchBillAndInitializeLocalStore = _a.fetchBillAndInitializeLocalStore, exports.fetchVendorByNameAndParseInvoice = _a.fetchVendorByNameAndParseInvoice, exports.initializeBillToLocalStore = _a.initializeBillToLocalStore, exports.saveBillUpdatesToLocalStore = _a.saveBillUpdatesToLocalStore, exports.discardBillUpdatesInLocalStore = _a.discardBillUpdatesInLocalStore, exports.saveBillDetail = _a.saveBillDetail, exports.saveBillSuccessOrFailure = _a.saveBillSuccessOrFailure, exports.updateEditBillFetchStateCompleted = _a.updateEditBillFetchStateCompleted, exports.parseInvoiceToBill = _a.parseInvoiceToBill, exports.clearEditBillViewDetail = _a.clearEditBillViewDetail, exports.waitForBillDetailThenInitializeLocalStore = _a.waitForBillDetailThenInitializeLocalStore, exports.waitForVendorByNameThenParsetoLocalStore = _a.waitForVendorByNameThenParsetoLocalStore, exports.updateInternationalTransferFeeBearerPaymentMethodInLocalData = _a.updateInternationalTransferFeeBearerPaymentMethodInLocalData, exports.updateShowAutofill = _a.updateShowAutofill, exports.updateAddBillAutoFields = _a.updateAddBillAutoFields, exports.updateBillUploadFetchState = _a.updateBillUploadFetchState, exports.updateRecommendedVendorId = _a.updateRecommendedVendorId, exports.updateSuggestedVendorIdFromParsedInvoice = _a.updateSuggestedVendorIdFromParsedInvoice, exports.updateVendorContact = _a.updateVendorContact, exports.updateVendorContactSuccessOrFailure = _a.updateVendorContactSuccessOrFailure, exports.convertAmountToHomeCurrency = _a.convertAmountToHomeCurrency, exports.currencyConversionValueSuccessOrFailure = _a.currencyConversionValueSuccessOrFailure, exports.updateHomeCurrencyConversion = _a.updateHomeCurrencyConversion, exports.fetchVendorAndUpdateBillLocalData = _a.fetchVendorAndUpdateBillLocalData, exports.waitForVendorByIdThenSaveBillUpdatetoLocalStore = _a.waitForVendorByIdThenSaveBillUpdatetoLocalStore, exports.markBillForRetry = _a.markBillForRetry;
333
+ _a = editBillView.actions, exports.fetchEditBillDetailPage = _a.fetchEditBillDetailPage, exports.fetchBillAndInitializeLocalStore = _a.fetchBillAndInitializeLocalStore, exports.fetchVendorByNameAndParseInvoice = _a.fetchVendorByNameAndParseInvoice, exports.initializeBillToLocalStore = _a.initializeBillToLocalStore, exports.saveBillUpdatesToLocalStore = _a.saveBillUpdatesToLocalStore, exports.discardBillUpdatesInLocalStore = _a.discardBillUpdatesInLocalStore, exports.saveBillDetail = _a.saveBillDetail, exports.saveBillSuccessOrFailure = _a.saveBillSuccessOrFailure, exports.updateEditBillFetchStateCompleted = _a.updateEditBillFetchStateCompleted, exports.parseInvoiceToBill = _a.parseInvoiceToBill, exports.clearEditBillViewDetail = _a.clearEditBillViewDetail, exports.waitForBillDetailThenInitializeLocalStore = _a.waitForBillDetailThenInitializeLocalStore, exports.waitForVendorByNameThenParsetoLocalStore = _a.waitForVendorByNameThenParsetoLocalStore, exports.updateInternationalTransferFeeBearerPaymentMethodInLocalData = _a.updateInternationalTransferFeeBearerPaymentMethodInLocalData, exports.updateShowAutofill = _a.updateShowAutofill, exports.updateAddBillAutoFields = _a.updateAddBillAutoFields, exports.updateBillUploadFetchState = _a.updateBillUploadFetchState, exports.updateRecommendedVendorId = _a.updateRecommendedVendorId, exports.updateSuggestedVendorIdFromParsedInvoice = _a.updateSuggestedVendorIdFromParsedInvoice, exports.updateVendorContact = _a.updateVendorContact, exports.updateVendorContactSuccessOrFailure = _a.updateVendorContactSuccessOrFailure, exports.convertAmountToHomeCurrency = _a.convertAmountToHomeCurrency, exports.currencyConversionValueSuccessOrFailure = _a.currencyConversionValueSuccessOrFailure, exports.updateHomeCurrencyConversion = _a.updateHomeCurrencyConversion, exports.fetchVendorAndUpdateBillLocalData = _a.fetchVendorAndUpdateBillLocalData, exports.waitForVendorByIdThenSaveBillUpdatetoLocalStore = _a.waitForVendorByIdThenSaveBillUpdatetoLocalStore;
338
334
  exports.default = editBillView.reducer;
339
335
  function doUpdateRecurringBillLocalData(billDetail, currentConfig, prevConfig) {
340
336
  var _a, _b, _c, _d;
@@ -106,7 +106,6 @@ export interface EditBillDetailSelectorView extends SelectorView {
106
106
  lastRecommendedVendorName?: string;
107
107
  recurringConfig?: RecurringBillConfigLocalData;
108
108
  recurringBillInstances?: RecurringBillInstance[];
109
- isBillMarkedForRetry?: boolean;
110
109
  }
111
110
  export interface EditBillInitialDetails {
112
111
  vendor?: Vendor;
@@ -124,7 +124,6 @@ const getEditBillDetail = (state, isVendorRecommendationFeatureEnabled, isZeniAc
124
124
  let isRecurring = false;
125
125
  let recurringConfig;
126
126
  let recurringBillInstances;
127
- let isBillMarkedForRetry = false;
128
127
  if (billId != null) {
129
128
  isDeleted = (_h = transaction === null || transaction === void 0 ? void 0 : transaction.isDeleted) !== null && _h !== void 0 ? _h : false;
130
129
  createdBy = (0, userSelector_1.getUserByUserId)(userState, (_j = transaction === null || transaction === void 0 ? void 0 : transaction.createdBy) !== null && _j !== void 0 ? _j : '');
@@ -276,7 +275,6 @@ const getEditBillDetail = (state, isVendorRecommendationFeatureEnabled, isZeniAc
276
275
  recurringConfig = sourceBillDetail.billDetailLocalData.recurringConfig;
277
276
  recurringBillInstances =
278
277
  sourceBillDetail.billDetailLocalData.recurringBillInstances;
279
- isBillMarkedForRetry = Boolean(sourceBillDetail.isBillMarkedForRetry);
280
278
  //add paymentToOption on initial bill load for collect from email
281
279
  if (isCollectToAccountInfoFromVendorContact &&
282
280
  toAccountVendorEmail != null &&
@@ -363,7 +361,6 @@ const getEditBillDetail = (state, isVendorRecommendationFeatureEnabled, isZeniAc
363
361
  recurringBillInstances,
364
362
  recurringConfig,
365
363
  isProcessing,
366
- isBillMarkedForRetry,
367
364
  };
368
365
  };
369
366
  exports.getEditBillDetail = getEditBillDetail;
@@ -24,7 +24,6 @@ export interface EditBillDetail {
24
24
  uploadFetchState: FetchStateAndError;
25
25
  suggestedVendorIdFromParsedInvoice?: ID;
26
26
  recommendationByLineId: Record<ID, Recommendation[]>;
27
- isBillMarkedForRetry?: boolean;
28
27
  }
29
28
  export declare const initialBillDetail: EditBillDetail;
30
29
  export interface EditBillDetailViewState {
@@ -3,75 +3,7 @@ import { ZeniAPI } from '../../../../../zeniAPI';
3
3
  import { RootState } from '../../../../../reducer';
4
4
  import { saveBillDetail, saveBillSuccessOrFailure } from '../editBillViewReducer';
5
5
  import { updateBillTransaction } from '../../../../../entity/billPay/billTransaction/billTransactionReducer';
6
- import { EditBillDetail } from '../editBillViewState';
7
- import { BillStageCodeType, BillTransactionState } from '../../../../../entity/billPay/billTransaction/billTransactionState';
8
- import { TransactionWithAccountAndClassLinePayload } from '../../../../../entity/transaction/payloadTypes/transactionLinePayload';
9
- import { AccountState } from '../../../../../entity/account/accountState';
10
- import { PaymentAccountState } from '../../../../../entity/paymentAccount/paymentAccountState';
11
6
  import { updateRecurringBillConfigs, updateRecurringBills } from '../../../../../entity/billPay/recurringBills/recurringBillsReducer';
12
- import { RecurringBillState } from '../../../../../entity/billPay/recurringBills/recurringBillsState';
13
- import { PaymentAchSubConfigCodeType, BillPaymentConfigCodeType, BillPaymentWireSubConfigCodeType } from '../../billPayConfig/billPayConfigState';
14
7
  import { openSnackbar } from '../../../../../entity/snackbar/snackbarReducer';
15
- import { RecurringBillConfigBodyPayload } from '../../../../../entity/billPay/recurringBills/recurringBillsPayload';
16
8
  export declare type ActionType = ReturnType<typeof saveBillDetail> | ReturnType<typeof updateBillTransaction> | ReturnType<typeof openSnackbar> | ReturnType<typeof saveBillSuccessOrFailure> | ReturnType<typeof updateRecurringBillConfigs> | ReturnType<typeof updateRecurringBills>;
17
9
  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>;
19
- interface SaveBillPayload {
20
- vendor_id: string;
21
- vendor_name?: string | null;
22
- candidate_vendor_name: string;
23
- transaction_type: string;
24
- bill_pay_provider: string;
25
- account_id: string;
26
- file_id: string;
27
- transaction_date: string | null;
28
- due_date: string | null;
29
- total_amount: number;
30
- recipient_total_amount: number;
31
- bill_pay_info: {
32
- stage: {
33
- code: string;
34
- };
35
- payment_date: string | null;
36
- from_account: {
37
- account_id: string;
38
- account_type: string;
39
- };
40
- to_account: {
41
- account_id?: string | null;
42
- payment_instrument_id?: string | null;
43
- };
44
- is_cancelled: boolean;
45
- bill_payment_method_type: {
46
- code: BillPaymentConfigCodeType | null;
47
- name: string;
48
- sub_code: PaymentAchSubConfigCodeType | BillPaymentWireSubConfigCodeType | null;
49
- };
50
- to_account_vendor_email?: string | null;
51
- is_collect_to_account_info_from_vendor_contact?: boolean;
52
- international_transfer_fee_bearer_payment_method?: string | null;
53
- };
54
- document_id: string;
55
- transaction_memo: string;
56
- currency_code: string | null;
57
- recipient_currency_code: string | null;
58
- lines: TransactionWithAccountAndClassLinePayload[];
59
- sync_token: string | null;
60
- update_time: string | null;
61
- are_approvals_serialized?: boolean;
62
- exchange_rate: number | null;
63
- is_recurring?: boolean | null;
64
- recurring_bill_config?: RecurringBillConfigBodyPayload | null;
65
- recurring_bill_instances?: RecurringBillInstancePayload[] | null;
66
- future_recurring_bill_instances?: RecurringBillInstancePayload[] | null;
67
- is_update_future_recurring_bills?: boolean | null;
68
- is_update_recurring_bill_config?: boolean | null;
69
- ocr_parsed_vendor_term: string | null;
70
- }
71
- interface RecurringBillInstancePayload {
72
- instance: number;
73
- payment_date: string;
74
- vendor_receive_date: string;
75
- vendor_receive_date_notes: string;
76
- }
77
- export {};
@@ -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.prepareSaveBillPayload = exports.saveBillDetailEpic = void 0;
6
+ exports.saveBillDetailEpic = void 0;
7
7
  const rxjs_1 = require("rxjs");
8
8
  const operators_1 = require("rxjs/operators");
9
9
  const get_1 = __importDefault(require("lodash/get"));
@@ -218,7 +218,6 @@ function prepareSaveBillPayload(accountState, billTransactionState, paymentAccou
218
218
  }
219
219
  return payload;
220
220
  }
221
- exports.prepareSaveBillPayload = prepareSaveBillPayload;
222
221
  const getBillPaymentMethodTypePayload = (paymentType) => {
223
222
  var _a;
224
223
  const code = paymentType === null || paymentType === void 0 ? void 0 : paymentType.method.split('_')[1];
@@ -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" | "audit_score_updated" | "people_invite_people" | "people_invite_multiple_people" | "people_delete_person" | "people_update_person" | "reimbursement_updated" | "reimbursement_deleted" | "reimbursement_cancelled_deleted" | "reimbursement_cancelled" | "reimbursement_approved" | "reimbursement_rejected" | "reimbursement_sent_for_approval" | "account_added" | "business_verification_save" | "business_verification_submit" | "business_verification_from_bills_submit" | "plaid_connection" | "unlink_deposit_account" | "reimbursement_approval_create" | "reimbursement_duplicate_approval_create" | "reimbursement_approval_update" | "reimbursement_duplicate_approval_update" | "reimbursement_approval_delete" | "reimbursement_create_mileage" | "reimbursement_update_mileage" | "reimbursement_accept_term" | "reimbursement_accept_employee_term" | "zeni_accounts_setup" | "bill_pay_approval_create" | "bill_pay_duplicate_approval_create" | "bill_pay_approval_update" | "bill_pay_duplicate_approval_update" | "bill_pay_approval_delete" | "bill_pay_updated" | "bill_pay_deleted" | "bill_pay_cancelled_deleted" | "bill_pay_cancelled" | "bill_pay_approved" | "real_time_approver_added" | "bill_pay_rejected" | "bill_pay_sent_for_approval" | "bill_pay_accept_term" | "bill_pay_bulk_submit" | "bill_pay_bulk_processed" | "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" | "create_schedule" | "save_schedule" | "delete_schedule" | "save_task_detail" | "fetch_task_detail" | "delete_task" | "archive_task" | "create_tag" | "delete_tag" | "update_charge_card" | "issue_charge_card" | "notification_settings_saved" | "referral_invite_sent" | "notification_mark_as_read" | "mark_as_complete_schedule" | "cancel_journal_entry" | "settings_accounting_accounts_updated" | "create_card_setup" | "confirm_card_setup" | "add_card_payment_source" | "fetch_payment_sources" | "task_assigned_toast_notification" | "task_due_tomorrow_toast_notification" | "task_deleted_toast_notification" | "task_archived_toast_notification" | "task_overdue_toast_notification" | "task_overdue_toast_notification_creator" | "task_notification_count" | "task_activities_toast_notification" | "task_created_toast_notification" | "task_group_creation_success" | "task_group_deletion_success" | "task_group_update_success" | "primary_funding_account_updated";
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" | "audit_score_updated" | "people_invite_people" | "people_invite_multiple_people" | "people_delete_person" | "people_update_person" | "reimbursement_updated" | "reimbursement_deleted" | "reimbursement_cancelled_deleted" | "reimbursement_cancelled" | "reimbursement_approved" | "reimbursement_rejected" | "reimbursement_sent_for_approval" | "account_added" | "business_verification_save" | "business_verification_submit" | "business_verification_from_bills_submit" | "plaid_connection" | "unlink_deposit_account" | "reimbursement_approval_create" | "reimbursement_duplicate_approval_create" | "reimbursement_approval_update" | "reimbursement_duplicate_approval_update" | "reimbursement_approval_delete" | "reimbursement_create_mileage" | "reimbursement_update_mileage" | "reimbursement_accept_term" | "reimbursement_accept_employee_term" | "zeni_accounts_setup" | "bill_pay_approval_create" | "bill_pay_duplicate_approval_create" | "bill_pay_approval_update" | "bill_pay_duplicate_approval_update" | "bill_pay_approval_delete" | "bill_pay_updated" | "bill_pay_deleted" | "bill_pay_cancelled_deleted" | "bill_pay_cancelled" | "bill_pay_approved" | "real_time_approver_added" | "bill_pay_rejected" | "bill_pay_sent_for_approval" | "bill_pay_accept_term" | "bill_pay_bulk_submit" | "bill_pay_bulk_processed" | "zeni_account_accept_term" | "update_vendor" | "data_refresh_update" | "delete_bank_account" | "create_bank_account" | "create_bank_account_ach" | "create_bank_account_wire" | "create_bank_account_international" | "transfer_money" | "update_zeni_account_nickname" | "create_checking_account" | "deposit_check" | "create_vendor" | "onboarding_customer_view" | "onboarding_customer_view_complete" | "onboarding_customer_identity_verification_save" | "onboarding_customer_identity_verification_submit" | "onboarding_customer_business_verification_save" | "onboarding_customer_business_verification_submit" | "retry_bank_account_connection" | "dashboard_invite_sent" | "onboarding_info_saved" | "approve_original_merchant" | "approve_global_merchant" | "reject_global_merchant" | "create_global_merchant" | "fetch_global_merchant_no_recommendation" | "save_vendor_renamed" | "save_vendor_sent_for_review" | "save_vendor_marked_as_employee" | "save_vendor_marked_as_local_contractor" | "charge_card_accept_term" | "charge_card_receipt_upload" | "create_schedule" | "save_schedule" | "delete_schedule" | "save_task_detail" | "fetch_task_detail" | "delete_task" | "archive_task" | "create_tag" | "delete_tag" | "update_charge_card" | "issue_charge_card" | "notification_settings_saved" | "referral_invite_sent" | "notification_mark_as_read" | "mark_as_complete_schedule" | "cancel_journal_entry" | "settings_accounting_accounts_updated" | "create_card_setup" | "confirm_card_setup" | "add_card_payment_source" | "fetch_payment_sources" | "task_assigned_toast_notification" | "task_due_tomorrow_toast_notification" | "task_deleted_toast_notification" | "task_archived_toast_notification" | "task_overdue_toast_notification" | "task_overdue_toast_notification_creator" | "task_notification_count" | "task_activities_toast_notification" | "task_created_toast_notification" | "task_group_creation_success" | "task_group_deletion_success" | "task_group_update_success" | "primary_funding_account_updated";
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" | "audit_score_updated" | "people_invite_people" | "people_invite_multiple_people" | "people_delete_person" | "people_update_person" | "reimbursement_updated" | "reimbursement_deleted" | "reimbursement_cancelled_deleted" | "reimbursement_cancelled" | "reimbursement_approved" | "reimbursement_rejected" | "reimbursement_sent_for_approval" | "account_added" | "business_verification_save" | "business_verification_submit" | "business_verification_from_bills_submit" | "plaid_connection" | "unlink_deposit_account" | "reimbursement_approval_create" | "reimbursement_duplicate_approval_create" | "reimbursement_approval_update" | "reimbursement_duplicate_approval_update" | "reimbursement_approval_delete" | "reimbursement_create_mileage" | "reimbursement_update_mileage" | "reimbursement_accept_term" | "reimbursement_accept_employee_term" | "zeni_accounts_setup" | "bill_pay_approval_create" | "bill_pay_duplicate_approval_create" | "bill_pay_approval_update" | "bill_pay_duplicate_approval_update" | "bill_pay_approval_delete" | "bill_pay_updated" | "bill_pay_deleted" | "bill_pay_cancelled_deleted" | "bill_pay_cancelled" | "bill_pay_approved" | "real_time_approver_added" | "bill_pay_rejected" | "bill_pay_sent_for_approval" | "bill_pay_accept_term" | "bill_pay_bulk_submit" | "bill_pay_bulk_processed" | "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" | "create_schedule" | "save_schedule" | "delete_schedule" | "save_task_detail" | "fetch_task_detail" | "delete_task" | "archive_task" | "create_tag" | "delete_tag" | "update_charge_card" | "issue_charge_card" | "notification_settings_saved" | "referral_invite_sent" | "notification_mark_as_read" | "mark_as_complete_schedule" | "cancel_journal_entry" | "settings_accounting_accounts_updated" | "create_card_setup" | "confirm_card_setup" | "add_card_payment_source" | "fetch_payment_sources" | "task_assigned_toast_notification" | "task_due_tomorrow_toast_notification" | "task_deleted_toast_notification" | "task_archived_toast_notification" | "task_overdue_toast_notification" | "task_overdue_toast_notification_creator" | "task_notification_count" | "task_activities_toast_notification" | "task_created_toast_notification" | "task_group_creation_success" | "task_group_deletion_success" | "task_group_update_success" | "primary_funding_account_updated";
12
+ messageSection: "bill_pay_setup" | "reimbursement_setup" | "charge_card_setup" | "common" | "transactionDetails_updatingPastTransactions" | "transactionDetails_transactionUpdated" | "cockpit_month_end_email_sent" | "cockpit_month_end_email_save" | "cockpit_month_end_email_attachment_upload" | "je_bill_link" | "audit_score_updated" | "people_invite_people" | "people_invite_multiple_people" | "people_delete_person" | "people_update_person" | "reimbursement_updated" | "reimbursement_deleted" | "reimbursement_cancelled_deleted" | "reimbursement_cancelled" | "reimbursement_approved" | "reimbursement_rejected" | "reimbursement_sent_for_approval" | "account_added" | "business_verification_save" | "business_verification_submit" | "business_verification_from_bills_submit" | "plaid_connection" | "unlink_deposit_account" | "reimbursement_approval_create" | "reimbursement_duplicate_approval_create" | "reimbursement_approval_update" | "reimbursement_duplicate_approval_update" | "reimbursement_approval_delete" | "reimbursement_create_mileage" | "reimbursement_update_mileage" | "reimbursement_accept_term" | "reimbursement_accept_employee_term" | "zeni_accounts_setup" | "bill_pay_approval_create" | "bill_pay_duplicate_approval_create" | "bill_pay_approval_update" | "bill_pay_duplicate_approval_update" | "bill_pay_approval_delete" | "bill_pay_updated" | "bill_pay_deleted" | "bill_pay_cancelled_deleted" | "bill_pay_cancelled" | "bill_pay_approved" | "real_time_approver_added" | "bill_pay_rejected" | "bill_pay_sent_for_approval" | "bill_pay_accept_term" | "bill_pay_bulk_submit" | "bill_pay_bulk_processed" | "zeni_account_accept_term" | "update_vendor" | "data_refresh_update" | "delete_bank_account" | "create_bank_account" | "create_bank_account_ach" | "create_bank_account_wire" | "create_bank_account_international" | "transfer_money" | "update_zeni_account_nickname" | "create_checking_account" | "deposit_check" | "create_vendor" | "onboarding_customer_view" | "onboarding_customer_view_complete" | "onboarding_customer_identity_verification_save" | "onboarding_customer_identity_verification_submit" | "onboarding_customer_business_verification_save" | "onboarding_customer_business_verification_submit" | "retry_bank_account_connection" | "dashboard_invite_sent" | "onboarding_info_saved" | "approve_original_merchant" | "approve_global_merchant" | "reject_global_merchant" | "create_global_merchant" | "fetch_global_merchant_no_recommendation" | "save_vendor_renamed" | "save_vendor_sent_for_review" | "save_vendor_marked_as_employee" | "save_vendor_marked_as_local_contractor" | "charge_card_accept_term" | "charge_card_receipt_upload" | "create_schedule" | "save_schedule" | "delete_schedule" | "save_task_detail" | "fetch_task_detail" | "delete_task" | "archive_task" | "create_tag" | "delete_tag" | "update_charge_card" | "issue_charge_card" | "notification_settings_saved" | "referral_invite_sent" | "notification_mark_as_read" | "mark_as_complete_schedule" | "cancel_journal_entry" | "settings_accounting_accounts_updated" | "create_card_setup" | "confirm_card_setup" | "add_card_payment_source" | "fetch_payment_sources" | "task_assigned_toast_notification" | "task_due_tomorrow_toast_notification" | "task_deleted_toast_notification" | "task_archived_toast_notification" | "task_overdue_toast_notification" | "task_overdue_toast_notification_creator" | "task_notification_count" | "task_activities_toast_notification" | "task_created_toast_notification" | "task_group_creation_success" | "task_group_deletion_success" | "task_group_update_success" | "primary_funding_account_updated";
13
13
  messageText: "failed" | "success" | "notification";
14
14
  type: import("../../..").SnackbarMessageType;
15
15
  showStatusIcon?: boolean | undefined;
@@ -8,9 +8,9 @@ import { Transaction, TransactionID } from '../../entity/transaction/stateTypes/
8
8
  import { VendorBase } from '../../entity/vendor/vendorState';
9
9
  import { EntityRecommendationKey } from '../recommendation/recommendationState';
10
10
  import { TransactionDetailLocalData } from './transactionDetailTypes';
11
- export declare const getTransactionDetailKey: (transactionId: TransactionID) => `${string}_expense` | `${string}_refund` | `${string}_invoice` | `${string}_payment` | `${string}_credit_memo` | `${string}_sales_receipt` | `${string}_delayed_credit` | `${string}_delayed_charge` | `${string}_check` | `${string}_bill` | `${string}_bill_payment` | `${string}_bill_payment_check` | `${string}_bill_payment_credit_card` | `${string}_vendor_credit` | `${string}_credit_card_credit` | `${string}_transfer` | `${string}_credit_card_payment` | `${string}_deposit` | `${string}_journal_entry`;
11
+ export declare const getTransactionDetailKey: (transactionId: TransactionID) => `${string}_expense` | `${string}_invoice` | `${string}_payment` | `${string}_credit_memo` | `${string}_sales_receipt` | `${string}_delayed_credit` | `${string}_delayed_charge` | `${string}_refund` | `${string}_check` | `${string}_bill` | `${string}_bill_payment` | `${string}_bill_payment_check` | `${string}_bill_payment_credit_card` | `${string}_vendor_credit` | `${string}_credit_card_credit` | `${string}_transfer` | `${string}_credit_card_payment` | `${string}_deposit` | `${string}_journal_entry`;
12
12
  export declare type TransactionDetailKey = ReturnType<typeof getTransactionDetailKey>;
13
- export declare const getZeniTransactionDetailKey: (transactionId: TransactionID) => `${string}_expense` | `${string}_refund` | `${string}_invoice` | `${string}_payment` | `${string}_credit_memo` | `${string}_sales_receipt` | `${string}_delayed_credit` | `${string}_delayed_charge` | `${string}_check` | `${string}_bill` | `${string}_bill_payment` | `${string}_bill_payment_check` | `${string}_bill_payment_credit_card` | `${string}_vendor_credit` | `${string}_credit_card_credit` | `${string}_transfer` | `${string}_credit_card_payment` | `${string}_deposit` | `${string}_journal_entry`;
13
+ export declare const getZeniTransactionDetailKey: (transactionId: TransactionID) => `${string}_expense` | `${string}_invoice` | `${string}_payment` | `${string}_credit_memo` | `${string}_sales_receipt` | `${string}_delayed_credit` | `${string}_delayed_charge` | `${string}_refund` | `${string}_check` | `${string}_bill` | `${string}_bill_payment` | `${string}_bill_payment_check` | `${string}_bill_payment_credit_card` | `${string}_vendor_credit` | `${string}_credit_card_credit` | `${string}_transfer` | `${string}_credit_card_payment` | `${string}_deposit` | `${string}_journal_entry`;
14
14
  export declare type ZeniTransactionDetailKey = ReturnType<typeof getTransactionDetailKey>;
15
15
  export declare const getThirdPartyIdFromTransactionId: (transactionId: TransactionID) => string;
16
16
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zeniai/client-epic-state",
3
- "version": "4.12.39",
3
+ "version": "4.12.40",
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",
@@ -1,7 +0,0 @@
1
- import { ActionsObservable, StateObservable } from 'redux-observable';
2
- import { Observable } from 'rxjs';
3
- import { fetchEligibleActionsForBill, updateFetchEligibleActionsFailureState, updateEligibleActionsForBill } from '../billDetailViewReducer';
4
- import { ZeniAPI } from '../../../../../zeniAPI';
5
- import { RootState } from '../../../../../reducer';
6
- export declare type ActionType = ReturnType<typeof fetchEligibleActionsForBill> | ReturnType<typeof updateEligibleActionsForBill> | ReturnType<typeof updateFetchEligibleActionsFailureState>;
7
- export declare const fetchEligibleActionsForBillEpic: (actions$: ActionsObservable<ActionType>, state$: StateObservable<RootState>, zeniAPI: ZeniAPI) => Observable<ActionType>;