@zeniai/client-epic-state 4.7.74 → 4.7.75

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 (66) hide show
  1. package/lib/commonStateTypes/workingDayHelper.d.ts +9 -5
  2. package/lib/commonStateTypes/workingDayHelper.js +36 -12
  3. package/lib/entity/billPay/billTransaction/billTransactionPayload.d.ts +3 -0
  4. package/lib/entity/billPay/billTransaction/billTransactionPayload.js +2 -2
  5. package/lib/entity/billPay/billTransaction/billTransactionState.d.ts +3 -0
  6. package/lib/entity/billPay/recurringBills/recurringBillsPayload.d.ts +34 -0
  7. package/lib/entity/billPay/recurringBills/recurringBillsPayload.js +44 -0
  8. package/lib/entity/billPay/recurringBills/recurringBillsReducer.d.ts +6 -0
  9. package/lib/entity/billPay/recurringBills/recurringBillsReducer.js +40 -0
  10. package/lib/entity/billPay/recurringBills/recurringBillsState.d.ts +33 -0
  11. package/lib/entity/billPay/recurringBills/recurringBillsState.js +14 -0
  12. package/lib/entity/chargeCard/chargeCard.d.ts +2 -2
  13. package/lib/entity/entityApprovalStatus/entityApprovalStatusPayload.d.ts +1 -0
  14. package/lib/entity/entityApprovalStatus/entityApprovalStatusPayload.js +1 -0
  15. package/lib/entity/entityApprovalStatus/entityApprovalStatusState.d.ts +1 -0
  16. package/lib/entity/tenant/clearAllEpic.d.ts +2 -1
  17. package/lib/entity/tenant/clearAllEpic.js +2 -0
  18. package/lib/entity/transaction/stateTypes/attachment.js +5 -5
  19. package/lib/index.d.ts +6 -4
  20. package/lib/index.js +10 -4
  21. package/lib/reducer.d.ts +3 -0
  22. package/lib/reducer.js +3 -0
  23. package/lib/view/accountList/accountListReducer.js +2 -1
  24. package/lib/view/accountList/accountListState.d.ts +1 -1
  25. package/lib/view/commonVendorView/vendorView/epics/saveVendorEpic.js +1 -0
  26. package/lib/view/commonVendorView/vendorView/vendorViewSelector.js +2 -2
  27. package/lib/view/spendManagement/billPay/billDetailView/billDetailViewPayload.d.ts +3 -0
  28. package/lib/view/spendManagement/billPay/billDetailView/billDetailViewSelector.d.ts +5 -0
  29. package/lib/view/spendManagement/billPay/billDetailView/billDetailViewSelector.js +13 -2
  30. package/lib/view/spendManagement/billPay/billDetailView/epics/cancelAndDeleteBillEpic.d.ts +2 -1
  31. package/lib/view/spendManagement/billPay/billDetailView/epics/cancelAndDeleteBillEpic.js +19 -8
  32. package/lib/view/spendManagement/billPay/billDetailView/epics/deleteBillEpic.d.ts +2 -1
  33. package/lib/view/spendManagement/billPay/billDetailView/epics/deleteBillEpic.js +14 -4
  34. package/lib/view/spendManagement/billPay/billDetailView/epics/fetchBillDetailEpic.d.ts +2 -1
  35. package/lib/view/spendManagement/billPay/billDetailView/epics/fetchBillDetailEpic.js +5 -2
  36. package/lib/view/spendManagement/billPay/billList/billListPayload.d.ts +2 -0
  37. package/lib/view/spendManagement/billPay/billList/billListSelector.d.ts +3 -0
  38. package/lib/view/spendManagement/billPay/billList/billListSelector.js +10 -2
  39. package/lib/view/spendManagement/billPay/billList/fetchBillListPerTabEpic.d.ts +2 -1
  40. package/lib/view/spendManagement/billPay/billList/fetchBillListPerTabEpic.js +3 -1
  41. package/lib/view/spendManagement/billPay/billPayReview/billPayReviewSelector.d.ts +4 -0
  42. package/lib/view/spendManagement/billPay/billPayReview/billPayReviewSelector.js +31 -9
  43. package/lib/view/spendManagement/billPay/editBillView/editBillViewPayload.d.ts +4 -0
  44. package/lib/view/spendManagement/billPay/editBillView/editBillViewReducer.js +17 -0
  45. package/lib/view/spendManagement/billPay/editBillView/editBillViewSelector.d.ts +10 -2
  46. package/lib/view/spendManagement/billPay/editBillView/editBillViewSelector.js +59 -14
  47. package/lib/view/spendManagement/billPay/editBillView/editBillViewState.d.ts +28 -0
  48. package/lib/view/spendManagement/billPay/editBillView/editBillViewState.js +1 -0
  49. package/lib/view/spendManagement/billPay/editBillView/epics/fetchEditBillDetailPageEpic.js +3 -3
  50. package/lib/view/spendManagement/billPay/editBillView/epics/initializeBillToLocalStoreEpic.js +13 -2
  51. package/lib/view/spendManagement/billPay/editBillView/epics/parseInvoiceToBillEpic.js +3 -2
  52. package/lib/view/spendManagement/billPay/editBillView/epics/saveBillDetailEpic.d.ts +11 -24
  53. package/lib/view/spendManagement/billPay/editBillView/epics/saveBillDetailEpic.js +100 -14
  54. package/lib/view/spendManagement/commonHistoryView/commonHistory.d.ts +1 -0
  55. package/lib/view/spendManagement/commonHistoryView/commonHistoryPayload.d.ts +1 -0
  56. package/lib/view/spendManagement/commonHistoryView/commonHistoryPayload.js +9 -5
  57. package/lib/view/spendManagement/helpers.d.ts +11 -1
  58. package/lib/view/spendManagement/helpers.js +134 -1
  59. package/lib/view/spendManagement/reimbursement/remiDetailView/remiDetailViewSelector.d.ts +1 -0
  60. package/lib/view/spendManagement/zeniAccounts/zeniAccountsConfig/zeniAccountsConfigPayload.d.ts +1 -0
  61. package/lib/view/spendManagement/zeniAccounts/zeniAccountsConfig/zeniAccountsConfigPayload.js +1 -0
  62. package/lib/view/spendManagement/zeniAccounts/zeniAccountsConfig/zeniAccountsConfigReducer.js +3 -1
  63. package/lib/view/spendManagement/zeniAccounts/zeniAccountsConfig/zeniAccountsConfigSelector.d.ts +1 -0
  64. package/lib/view/spendManagement/zeniAccounts/zeniAccountsConfig/zeniAccountsConfigSelector.js +2 -1
  65. package/lib/view/spendManagement/zeniAccounts/zeniAccountsConfig/zeniAccountsConfigState.d.ts +1 -0
  66. package/package.json +5 -4
@@ -1,7 +1,11 @@
1
- export declare const getNextNthWorkingDay: (date: Date, filterDaysIndex: number[], numberOfWorkingDays: number, holidays: Date[]) => Date;
2
- export declare const getPreviousNthWorkingDay: (date: Date, filterDaysIndex: number[], numberOfWorkingDays: number, holidays: Date[]) => Date;
3
- export declare const isHolidayToday: (filterDaysIndex: number[], holidays: Date[]) => boolean;
4
- export declare const filterDays: (date: Date, filterDaysIndex: number[], holidays: Date[]) => boolean;
5
- export declare const getYearsList: (startYear?: number, endYear?: number) => number[];
6
1
  export declare const startDate = "2000-01-01";
7
2
  export declare const endDate = "2070-12-31";
3
+ export declare const PAYMENT_BUSINESS_DAYS = 4;
4
+ export declare const holidays: Date[];
5
+ export declare const holidaysFormatted: string[];
6
+ export declare const getNextNthWorkingDay: (date: Date, filterDaysIndex: number[], numberOfWorkingDays: number) => Date;
7
+ export declare const getPreviousNthWorkingDay: (date: Date, filterDaysIndex: number[], numberOfWorkingDays: number) => Date;
8
+ export declare const isHolidayToday: (filterDaysIndex: number[]) => boolean;
9
+ export declare const filterDays: (date: Date, filterDaysIndex: number[]) => boolean;
10
+ export declare const getYearsList: (startYear?: number, endYear?: number) => number[];
11
+ export declare const isHoliday: (date: Date) => boolean;
@@ -1,11 +1,24 @@
1
1
  "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
2
5
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.endDate = exports.startDate = exports.getYearsList = exports.filterDays = exports.isHolidayToday = exports.getPreviousNthWorkingDay = exports.getNextNthWorkingDay = void 0;
6
+ exports.isHoliday = exports.getYearsList = exports.filterDays = exports.isHolidayToday = exports.getPreviousNthWorkingDay = exports.getNextNthWorkingDay = exports.holidaysFormatted = exports.holidays = exports.PAYMENT_BUSINESS_DAYS = exports.endDate = exports.startDate = void 0;
7
+ const date_holidays_1 = __importDefault(require("date-holidays"));
4
8
  const zeniDayJS_1 = require("../zeniDayJS");
5
9
  const standardFormat = 'MM/DD/YYYY';
6
- const getNextNthWorkingDay = (date, filterDaysIndex, numberOfWorkingDays, holidays) => {
10
+ exports.startDate = '2000-01-01';
11
+ exports.endDate = '2070-12-31';
12
+ exports.PAYMENT_BUSINESS_DAYS = 4;
13
+ const dateHolidays = new date_holidays_1.default('US');
14
+ exports.holidays = dateHolidays
15
+ .getHolidays(new Date().getFullYear())
16
+ .filter((holiday) => holiday.type === 'public' || holiday.type === 'bank')
17
+ .map((holiday) => (0, zeniDayJS_1.date)(holiday.date).toDate()); // https://www.linkedin.com/pulse/fix-invalid-date-safari-ie-hatem-ahmad/
18
+ exports.holidaysFormatted = exports.holidays.map((holiday) => (0, zeniDayJS_1.date)(holiday.toDateString()).format(standardFormat));
19
+ const getNextNthWorkingDay = (date, filterDaysIndex, numberOfWorkingDays) => {
7
20
  const currentDate = new Date(date.toDateString());
8
- const holidaysFormatted = holidays.map((holiday) => (0, zeniDayJS_1.date)(holiday.toDateString()).format(standardFormat));
21
+ const holidaysFormatted = exports.holidays.map((holiday) => (0, zeniDayJS_1.date)(holiday.toDateString()).format(standardFormat));
9
22
  Array(numberOfWorkingDays)
10
23
  .fill(0)
11
24
  .forEach(() => {
@@ -18,9 +31,9 @@ const getNextNthWorkingDay = (date, filterDaysIndex, numberOfWorkingDays, holida
18
31
  return currentDate;
19
32
  };
20
33
  exports.getNextNthWorkingDay = getNextNthWorkingDay;
21
- const getPreviousNthWorkingDay = (date, filterDaysIndex, numberOfWorkingDays, holidays) => {
34
+ const getPreviousNthWorkingDay = (date, filterDaysIndex, numberOfWorkingDays) => {
22
35
  const currentDate = new Date(date.toDateString());
23
- const holidaysFormatted = holidays.map((holiday) => (0, zeniDayJS_1.date)(holiday.toDateString()).format(standardFormat));
36
+ const holidaysFormatted = exports.holidays.map((holiday) => (0, zeniDayJS_1.date)(holiday.toDateString()).format(standardFormat));
24
37
  Array(numberOfWorkingDays)
25
38
  .fill(0)
26
39
  .forEach(() => {
@@ -37,18 +50,17 @@ const getPreviousNthWorkingDay = (date, filterDaysIndex, numberOfWorkingDays, ho
37
50
  return currentDate;
38
51
  };
39
52
  exports.getPreviousNthWorkingDay = getPreviousNthWorkingDay;
40
- const isHolidayToday = (filterDaysIndex, holidays) => {
41
- const holidaysFormatted = holidays.map((holiday) => (0, zeniDayJS_1.date)(holiday.toDateString()).format(standardFormat));
53
+ const isHolidayToday = (filterDaysIndex) => {
54
+ const holidaysFormatted = exports.holidays.map((holiday) => (0, zeniDayJS_1.date)(holiday.toDateString()).format(standardFormat));
42
55
  const currentDate = new Date();
43
56
  return (filterDaysIndex.includes(currentDate.getDay()) ||
44
57
  holidaysFormatted.indexOf((0, zeniDayJS_1.date)(currentDate.toDateString()).format(standardFormat)) != -1);
45
58
  };
46
59
  exports.isHolidayToday = isHolidayToday;
47
- const filterDays = (date, filterDaysIndex, holidays) => {
60
+ const filterDays = (date, filterDaysIndex) => {
48
61
  const formattedDate = (0, zeniDayJS_1.date)(date.toDateString()).format(standardFormat);
49
- const holidaysFormatted = holidays.map((holiday) => (0, zeniDayJS_1.date)(holiday.toDateString()).format(standardFormat));
50
62
  return (filterDaysIndex.includes(date.getDay()) === false &&
51
- holidaysFormatted.includes(formattedDate) === false);
63
+ exports.holidaysFormatted.includes(formattedDate) === false);
52
64
  };
53
65
  exports.filterDays = filterDays;
54
66
  const getYearsList = (startYear = 2000, endYear = new Date().getFullYear()) => {
@@ -60,5 +72,17 @@ const getYearsList = (startYear = 2000, endYear = new Date().getFullYear()) => {
60
72
  return years;
61
73
  };
62
74
  exports.getYearsList = getYearsList;
63
- exports.startDate = '2000-01-01';
64
- exports.endDate = '2070-12-31';
75
+ const isHoliday = (date) => {
76
+ const holidayDetails = dateHolidays.isHoliday((0, zeniDayJS_1.dateInLocal)(date.toDateString()).toDate());
77
+ if (holidayDetails === false) {
78
+ return false;
79
+ }
80
+ else if (holidayDetails[0].type === 'bank' ||
81
+ holidayDetails[0].type === 'public') {
82
+ return true;
83
+ }
84
+ else {
85
+ return false;
86
+ }
87
+ };
88
+ exports.isHoliday = isHoliday;
@@ -16,6 +16,9 @@ export interface BillTransactionPayload extends VendorTransactionPayload {
16
16
  last_updated_by_user_id?: string;
17
17
  candidate_vendor_name?: string;
18
18
  tax?: number;
19
+ is_recurring: boolean;
20
+ recurring_bill_config_id: string | null;
21
+ recurring_bill_instance: number | null;
19
22
  discount?: number;
20
23
  }
21
24
  export interface BillPayInfoPayload {
@@ -6,8 +6,8 @@ const zeniDayJS_1 = require("../../../zeniDayJS");
6
6
  const vendorTransactionPayload_1 = require("../../transaction/payloadTypes/vendorTransactionPayload");
7
7
  const billTransactionState_1 = require("./billTransactionState");
8
8
  const toBillTransaction = (payload) => {
9
- var _a, _b, _c, _d, _e, _f, _g, _h;
10
- return (Object.assign(Object.assign({}, (0, vendorTransactionPayload_1.toVendorTransaction)(payload)), { billPayInfo: (0, exports.toBillPayInfo)(payload.bill_pay_info), classId: (_a = payload.class_id) !== null && _a !== void 0 ? _a : '', className: (_b = payload.class_name) !== null && _b !== void 0 ? _b : '', qboClassId: (_c = payload.qbo_class_id) !== null && _c !== void 0 ? _c : '', transactionReferenceId: (_d = payload.transaction_reference_id) !== null && _d !== void 0 ? _d : '', entityApprovalId: payload.entity_approval_id, updateTime: (0, zeniDayJS_1.date)(payload.update_time), createdBy: (_e = payload.created_by_user_id) !== null && _e !== void 0 ? _e : '', candidateVendorName: (_f = payload.candidate_vendor_name) !== null && _f !== void 0 ? _f : '', bookCloseDate: payload.book_close_date != null ? (0, zeniDayJS_1.date)(payload.book_close_date) : undefined, lastUpdatedByUserId: (_g = payload.last_updated_by_user_id) !== null && _g !== void 0 ? _g : '', paymentProcessingTotalFee: (0, amount_1.toAmount)((_h = payload.total_fee) !== null && _h !== void 0 ? _h : 0, payload.currency_code, payload.currency_symbol), isDeleted: payload.is_deleted }));
9
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
10
+ return (Object.assign(Object.assign({}, (0, vendorTransactionPayload_1.toVendorTransaction)(payload)), { billPayInfo: (0, exports.toBillPayInfo)(payload.bill_pay_info), classId: (_a = payload.class_id) !== null && _a !== void 0 ? _a : '', className: (_b = payload.class_name) !== null && _b !== void 0 ? _b : '', qboClassId: (_c = payload.qbo_class_id) !== null && _c !== void 0 ? _c : '', transactionReferenceId: (_d = payload.transaction_reference_id) !== null && _d !== void 0 ? _d : '', entityApprovalId: payload.entity_approval_id, updateTime: (0, zeniDayJS_1.date)(payload.update_time), createdBy: (_e = payload.created_by_user_id) !== null && _e !== void 0 ? _e : '', candidateVendorName: (_f = payload.candidate_vendor_name) !== null && _f !== void 0 ? _f : '', bookCloseDate: payload.book_close_date != null ? (0, zeniDayJS_1.date)(payload.book_close_date) : undefined, lastUpdatedByUserId: (_g = payload.last_updated_by_user_id) !== null && _g !== void 0 ? _g : '', paymentProcessingTotalFee: (0, amount_1.toAmount)((_h = payload.total_fee) !== null && _h !== void 0 ? _h : 0, payload.currency_code, payload.currency_symbol), isDeleted: payload.is_deleted, isRecurring: payload.is_recurring, recurringBillConfigId: (_j = payload.recurring_bill_config_id) !== null && _j !== void 0 ? _j : undefined, recurringBillInstance: (_k = payload.recurring_bill_instance) !== null && _k !== void 0 ? _k : undefined }));
11
11
  };
12
12
  exports.toBillTransaction = toBillTransaction;
13
13
  const toBillPayInfo = (payload) => {
@@ -18,6 +18,9 @@ export interface BillTransaction extends VendorTransaction {
18
18
  candidateVendorName: string;
19
19
  lastUpdatedByUserId?: ID;
20
20
  isDeleted: boolean;
21
+ isRecurring: boolean;
22
+ recurringBillConfigId?: ID;
23
+ recurringBillInstance?: number;
21
24
  }
22
25
  export interface BillPayInfo {
23
26
  stage: BillStage;
@@ -0,0 +1,34 @@
1
+ import { BillStage } from '../billTransaction/billTransactionState';
2
+ import { RecurringBillConfig, RecurringBillData, RecurringBillFrequency } from './recurringBillsState';
3
+ export interface RecurringBillConfigBasePayload {
4
+ is_approval_required: boolean;
5
+ start_date: string;
6
+ end_date: string;
7
+ frequency: RecurringBillFrequency;
8
+ total_payment_cycles: number;
9
+ sync_token: string;
10
+ }
11
+ export interface RecurringBillConfigResponsePayload extends RecurringBillConfigBasePayload {
12
+ recurring_bill_config_id: string;
13
+ is_active: boolean;
14
+ sync_token: string;
15
+ }
16
+ export interface RecurringBillConfigBodyPayload extends Omit<RecurringBillConfigBasePayload, 'total_payment_cycles' | 'sync_token'> {
17
+ recurring_bill_config_id?: string;
18
+ total_payment_cycles?: number;
19
+ future_total_payment_cycles?: number;
20
+ sync_token: string | null;
21
+ }
22
+ export declare const toRecurringBillConfig: (payload: RecurringBillConfigResponsePayload) => RecurringBillConfig;
23
+ export interface RecurringBillDataPayload {
24
+ recurring_bill_config_id: string;
25
+ stage: BillStage;
26
+ amount: number;
27
+ instance: number;
28
+ payment_date: string;
29
+ vendor_receive_date: string;
30
+ vendor_receive_date_notes: string;
31
+ transaction_id?: string | null;
32
+ }
33
+ export declare const toRecurringBillData: (payload: RecurringBillDataPayload) => RecurringBillData;
34
+ export declare const toRecurringConfigPayload: (recurringConfig: Partial<RecurringBillConfig>) => Partial<RecurringBillConfigBodyPayload>;
@@ -0,0 +1,44 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.toRecurringConfigPayload = exports.toRecurringBillData = exports.toRecurringBillConfig = void 0;
4
+ const zeniDayJS_1 = require("../../../zeniDayJS");
5
+ const toRecurringBillConfig = (payload) => ({
6
+ id: payload.recurring_bill_config_id,
7
+ isApprovalRequired: payload.is_approval_required,
8
+ startDate: (0, zeniDayJS_1.date)(payload.start_date),
9
+ endDate: (0, zeniDayJS_1.date)(payload.end_date),
10
+ frequency: payload.frequency,
11
+ totalPaymentCycles: payload.total_payment_cycles,
12
+ isActive: payload.is_active,
13
+ syncToken: payload.sync_token,
14
+ });
15
+ exports.toRecurringBillConfig = toRecurringBillConfig;
16
+ const toRecurringBillData = (payload) => {
17
+ var _a;
18
+ return ({
19
+ recurringBillConfigId: payload.recurring_bill_config_id,
20
+ stage: payload.stage,
21
+ amount: payload.amount,
22
+ instance: payload.instance,
23
+ paymentDate: (0, zeniDayJS_1.date)(payload.payment_date),
24
+ vendorReceiveDate: (0, zeniDayJS_1.date)(payload.vendor_receive_date),
25
+ vendorReceiveDateNotes: payload.vendor_receive_date_notes,
26
+ transactionId: (_a = payload.transaction_id) !== null && _a !== void 0 ? _a : undefined,
27
+ });
28
+ };
29
+ exports.toRecurringBillData = toRecurringBillData;
30
+ const toRecurringConfigPayload = (recurringConfig) => {
31
+ var _a, _b;
32
+ const recurringConfigPayload = {
33
+ is_approval_required: recurringConfig.isApprovalRequired,
34
+ start_date: (_a = recurringConfig.startDate) === null || _a === void 0 ? void 0 : _a.format('YYYY-MM-DD'),
35
+ end_date: (_b = recurringConfig.endDate) === null || _b === void 0 ? void 0 : _b.format('YYYY-MM-DD'),
36
+ frequency: recurringConfig.frequency,
37
+ total_payment_cycles: recurringConfig.totalPaymentCycles,
38
+ };
39
+ if (recurringConfig.id != null) {
40
+ recurringConfigPayload.recurring_bill_config_id = recurringConfig.id;
41
+ }
42
+ return recurringConfigPayload;
43
+ };
44
+ exports.toRecurringConfigPayload = toRecurringConfigPayload;
@@ -0,0 +1,6 @@
1
+ import { RecurringBillState } from './recurringBillsState';
2
+ import { RecurringBillConfigResponsePayload, RecurringBillDataPayload } from './recurringBillsPayload';
3
+ export declare const initialState: RecurringBillState;
4
+ export declare const updateRecurringBillConfigs: import("@reduxjs/toolkit").ActionCreatorWithPayload<RecurringBillConfigResponsePayload[], string>, updateRecurringBills: import("@reduxjs/toolkit").ActionCreatorWithPayload<RecurringBillDataPayload[], string>, removeRecurringBill: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, string>, clearAllRecurringBills: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>;
5
+ declare const _default: import("@reduxjs/toolkit").Reducer<RecurringBillState, import("@reduxjs/toolkit").AnyAction>;
6
+ export default _default;
@@ -0,0 +1,40 @@
1
+ "use strict";
2
+ var _a;
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.clearAllRecurringBills = exports.removeRecurringBill = exports.updateRecurringBills = exports.updateRecurringBillConfigs = exports.initialState = void 0;
5
+ const toolkit_1 = require("@reduxjs/toolkit");
6
+ const recurringBillsPayload_1 = require("./recurringBillsPayload");
7
+ exports.initialState = {
8
+ recurringBillDetailByConfigId: {},
9
+ };
10
+ const recurringBill = (0, toolkit_1.createSlice)({
11
+ name: 'recurringBill',
12
+ initialState: exports.initialState,
13
+ reducers: {
14
+ updateRecurringBillConfigs(draft, action) {
15
+ action.payload.forEach((recurringBillConfigPayload) => {
16
+ const currentConfig = (0, recurringBillsPayload_1.toRecurringBillConfig)(recurringBillConfigPayload);
17
+ draft.recurringBillDetailByConfigId[currentConfig.id] = {
18
+ recurringBillConfig: Object.assign({}, currentConfig),
19
+ recurringBillInstances: [],
20
+ };
21
+ });
22
+ },
23
+ updateRecurringBills(draft, action) {
24
+ action.payload.forEach((recurringBillDataPayload) => {
25
+ var _a, _b;
26
+ const currentBillData = (0, recurringBillsPayload_1.toRecurringBillData)(recurringBillDataPayload);
27
+ const currentRecurringInstances = (_b = (_a = draft.recurringBillDetailByConfigId[currentBillData.recurringBillConfigId]) === null || _a === void 0 ? void 0 : _a.recurringBillInstances) !== null && _b !== void 0 ? _b : [];
28
+ currentRecurringInstances.push(currentBillData);
29
+ });
30
+ },
31
+ removeRecurringBill(draft, action) {
32
+ delete draft.recurringBillDetailByConfigId[action.payload];
33
+ },
34
+ clearAllRecurringBills(draft) {
35
+ draft.recurringBillDetailByConfigId = {};
36
+ },
37
+ },
38
+ });
39
+ _a = recurringBill.actions, exports.updateRecurringBillConfigs = _a.updateRecurringBillConfigs, exports.updateRecurringBills = _a.updateRecurringBills, exports.removeRecurringBill = _a.removeRecurringBill, exports.clearAllRecurringBills = _a.clearAllRecurringBills;
40
+ exports.default = recurringBill.reducer;
@@ -0,0 +1,33 @@
1
+ import { ID } from '../../../commonStateTypes/common';
2
+ import { ZeniDate } from '../../../zeniDayJS';
3
+ import { BillStage } from '../billTransaction/billTransactionState';
4
+ export declare const toRecurringBillFrequency: (v: string) => "weekly" | "biweekly" | "monthly" | "quarterly";
5
+ export declare const toRecurringBillFrequencyStrict: (v?: string | undefined) => "weekly" | "biweekly" | "monthly" | "quarterly" | undefined;
6
+ export declare type RecurringBillFrequency = NonNullable<ReturnType<typeof toRecurringBillFrequency>>;
7
+ export interface RecurringBillConfig {
8
+ id: ID;
9
+ isApprovalRequired: boolean;
10
+ startDate: ZeniDate;
11
+ endDate: ZeniDate;
12
+ frequency: RecurringBillFrequency;
13
+ totalPaymentCycles: number;
14
+ isActive: boolean;
15
+ syncToken: string;
16
+ }
17
+ export interface RecurringBillData {
18
+ recurringBillConfigId: ID;
19
+ stage: BillStage;
20
+ amount: number;
21
+ instance: number;
22
+ paymentDate: ZeniDate;
23
+ vendorReceiveDate: ZeniDate;
24
+ vendorReceiveDateNotes: string;
25
+ transactionId?: ID;
26
+ }
27
+ export interface RecurringBillDetail {
28
+ recurringBillConfig: RecurringBillConfig;
29
+ recurringBillInstances: RecurringBillData[];
30
+ }
31
+ export interface RecurringBillState {
32
+ recurringBillDetailByConfigId: Record<ID, RecurringBillDetail>;
33
+ }
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.toRecurringBillFrequencyStrict = exports.toRecurringBillFrequency = void 0;
4
+ const stringToUnion_1 = require("../../../commonStateTypes/stringToUnion");
5
+ const ALL_RECURRING_FREQUENCY = [
6
+ 'weekly',
7
+ 'biweekly',
8
+ 'monthly',
9
+ 'quarterly',
10
+ ];
11
+ const toRecurringBillFrequency = (v) => (0, stringToUnion_1.stringToUnion)(v, ALL_RECURRING_FREQUENCY);
12
+ exports.toRecurringBillFrequency = toRecurringBillFrequency;
13
+ const toRecurringBillFrequencyStrict = (v) => (0, stringToUnion_1.stringToUnionStrict)(v !== null && v !== void 0 ? v : '', ALL_RECURRING_FREQUENCY);
14
+ exports.toRecurringBillFrequencyStrict = toRecurringBillFrequencyStrict;
@@ -28,8 +28,8 @@ export interface CreditLimitFrequency {
28
28
  code: CreditLimitFrequencyCodeType;
29
29
  name: string;
30
30
  }
31
- export declare const toCreditLimitFrequencyCodeType: (v: string) => "monthly" | "daily" | "weekly" | "quarterly" | "yearly";
32
- export declare const toCreditLimitFrequencyCodeTypeStrict: (v?: string | undefined) => "monthly" | "daily" | "weekly" | "quarterly" | "yearly" | undefined;
31
+ export declare const toCreditLimitFrequencyCodeType: (v: string) => "weekly" | "monthly" | "quarterly" | "daily" | "yearly";
32
+ export declare const toCreditLimitFrequencyCodeTypeStrict: (v?: string | undefined) => "weekly" | "monthly" | "quarterly" | "daily" | "yearly" | undefined;
33
33
  export declare type CreditLimitFrequencyCodeType = ReturnType<typeof toCreditLimitFrequencyCodeType>;
34
34
  export interface CardStatus {
35
35
  code: CardStatusCodeType;
@@ -9,6 +9,7 @@ interface ActorActivityPayload extends StepApprovalActorPayload {
9
9
  activity: string;
10
10
  last_update_time?: string | null;
11
11
  description: string;
12
+ is_recurring_auto_approve?: boolean | null;
12
13
  }
13
14
  export interface StepApprovalStatusPayload {
14
15
  action: string;
@@ -67,6 +67,7 @@ const toStepApprovalStatus = (payload) => {
67
67
  subType: activityPayload.sub_type != null
68
68
  ? activityPayload.sub_type
69
69
  : undefined,
70
+ isRecurringAutoApprove: Boolean(activityPayload.is_recurring_auto_approve),
70
71
  });
71
72
  }),
72
73
  description: approvalStatus.description,
@@ -21,6 +21,7 @@ export interface ActorActivity extends Actor {
21
21
  activity: ActivityStatus;
22
22
  lastUpdateTime?: ZeniDate;
23
23
  description: string;
24
+ isRecurringAutoApprove: boolean;
24
25
  }
25
26
  export interface StepApprovalStatus {
26
27
  action: ApprovalActionType;
@@ -74,6 +74,7 @@ import { clearRevenueClassesView } from '../../view/revenueClassesView/revenueCl
74
74
  import { clearBillPaySetupApproverView } from '../../view/spendManagement/billPay/billPaySetupApproverView/billPaySetupApproverViewReducer';
75
75
  import { clearAllOnboardingCustomersInfo } from '../onboardingCustomer/onboardingCustomerReducer';
76
76
  import { clearOnboardingCockpitView } from '../../view/onboardingView/cockpitView/onboardingCockpitViewReducer';
77
+ import { clearAllRecurringBills } from '../billPay/recurringBills/recurringBillsReducer';
77
78
  import { clearAllReimbursements } from '../reimbursement/reimbursementReducer';
78
79
  import { clearRemiDetailView } from '../../view/spendManagement/reimbursement/remiDetailView/remiDetailViewReducer';
79
80
  import { clearAllMerchants } from '../merchant/merchantReducer';
@@ -134,7 +135,7 @@ import { clearChargeCardDetail } from '../../view/spendManagement/chargeCards/ch
134
135
  import { clearChargeCardSetupView } from '../../view/spendManagement/chargeCards/chargeCardSetUp/chargeCardSetUpViewReducer';
135
136
  import { clearZeniAccountsConfig } from '../../view/spendManagement/zeniAccounts/zeniAccountsConfig/zeniAccountsConfigReducer';
136
137
  declare type clearActionTypeForViews = ReturnType<typeof clearAccountList> | ReturnType<typeof clearAccountMappingView> | ReturnType<typeof clearActivityHistory> | ReturnType<typeof clearActivityRealTimeApproval> | ReturnType<typeof clearAddressView> | ReturnType<typeof clearAllClasses> | ReturnType<typeof clearApAging> | ReturnType<typeof clearApAgingDetail> | ReturnType<typeof clearArAging> | ReturnType<typeof clearArAgingDetail> | ReturnType<typeof clearBalanceSheet> | ReturnType<typeof clearBankAccountView> | ReturnType<typeof clearBillDetailView> | ReturnType<typeof clearBillList> | ReturnType<typeof clearBillPayCard> | ReturnType<typeof clearBillPayConfig> | ReturnType<typeof clearBillPayReview> | ReturnType<typeof clearBillPaySetupApproverView> | ReturnType<typeof clearBillPaySetupView> | ReturnType<typeof clearCardBalance> | ReturnType<typeof clearCashBalance> | ReturnType<typeof clearCashFlow> | ReturnType<typeof clearCashInCashOut> | ReturnType<typeof clearCashPosition> | ReturnType<typeof clearChargeCardConfig> | ReturnType<typeof clearChargeCardDetail> | ReturnType<typeof clearChargeCardList> | ReturnType<typeof clearChargeCardSetupView> | ReturnType<typeof clearCheckDeposit> | ReturnType<typeof clearCompanyConfigView> | ReturnType<typeof clearCompanyMonthEndReportView> | ReturnType<typeof clearCompanyView> | ReturnType<typeof clearDashboard> | ReturnType<typeof clearDepositAccountDetail> | ReturnType<typeof clearDepositAccountList> | ReturnType<typeof clearDepositAccountTransactionList> | ReturnType<typeof clearEditBillViewDetail> | ReturnType<typeof clearEditRemiViewDetail> | ReturnType<typeof clearEntityAutoCompleteResults> | ReturnType<typeof clearFileViewList> | ReturnType<typeof clearFinanceStatement> | ReturnType<typeof clearForecastList> | ReturnType<typeof clearGlobalMerchantView> | ReturnType<typeof clearInsightsCard> | ReturnType<typeof clearInternationalWire> | ReturnType<typeof clearMerchantList> | ReturnType<typeof clearNetBurnOrIncome> | ReturnType<typeof clearNetBurnOrIncomeClassesView> | ReturnType<typeof clearNetBurnOrIncomeStoryCard> | ReturnType<typeof clearOnboardingCockpitView> | ReturnType<typeof clearOnboardingCustomerView> | ReturnType<typeof clearOpEx> | ReturnType<typeof clearOpExByVendor> | ReturnType<typeof clearOpExClassesView> | ReturnType<typeof clearOwnerList> | ReturnType<typeof clearPaymentAccountList> | ReturnType<typeof clearPeople> | ReturnType<typeof clearPreviousBills> | ReturnType<typeof clearProfitAndLoss> | ReturnType<typeof clearProfitAndLossClassesView> | ReturnType<typeof clearRecommendation> | ReturnType<typeof clearReimbursementCard> | ReturnType<typeof clearReimbursementConfig> | ReturnType<typeof clearRemiDetailView> | ReturnType<typeof clearRemiList> | ReturnType<typeof clearRemiSetupApproverView> | ReturnType<typeof clearRemiSetupView> | ReturnType<typeof clearReportUIOption> | ReturnType<typeof clearRevenue> | ReturnType<typeof clearRevenueClassesView> | ReturnType<typeof clearReviewCompany> | ReturnType<typeof clearSetupView> | ReturnType<typeof clearSubscriptionView> | ReturnType<typeof clearTasksCard> | ReturnType<typeof clearTopEx> | ReturnType<typeof clearTransactionDetail> | ReturnType<typeof clearTransactionList> | ReturnType<typeof clearTransferDetail> | ReturnType<typeof clearTrendData> | ReturnType<typeof clearTrendWithTransactions> | ReturnType<typeof clearUserFinancialAccount> | ReturnType<typeof clearUserListView> | ReturnType<typeof clearUserRoleConfigView> | ReturnType<typeof clearVendorGlobalReviewView> | ReturnType<typeof clearVendorView> | ReturnType<typeof clearVendorsList> | ReturnType<typeof clearVendorsTabVendorView> | ReturnType<typeof clearWiseRedirectStatus> | ReturnType<typeof clearZeniAccStatementList> | ReturnType<typeof clearZeniAccountList> | ReturnType<typeof clearZeniAccountsConfig> | ReturnType<typeof clearZeniAccountSetupView>;
137
- declare type clearActionTypeForEntities = ReturnType<typeof clearAllAccountGroups> | ReturnType<typeof clearAllAccountingSummary> | ReturnType<typeof clearAllAccounts> | ReturnType<typeof clearAllAddresses> | ReturnType<typeof clearAllApprovalRules> | ReturnType<typeof clearAllBankAccounts> | ReturnType<typeof clearAllBillTransactions> | ReturnType<typeof clearAllChargeCards> | ReturnType<typeof clearAllChargeCardTransactions> | ReturnType<typeof clearAllCompanies> | ReturnType<typeof clearAllCurrencies> | ReturnType<typeof clearAllCustomerIncomeTrend> | ReturnType<typeof clearAllCustomers> | ReturnType<typeof clearAllDepositAccounts> | ReturnType<typeof clearAllEntities> | ReturnType<typeof clearAllEntityApprovalStatus> | ReturnType<typeof clearAllFiles> | ReturnType<typeof clearAllForecasts> | ReturnType<typeof clearAllGlobalMerchants> | ReturnType<typeof clearAllInsights> | ReturnType<typeof clearAllMerchants> | ReturnType<typeof clearAllOnboardingCustomersInfo> | ReturnType<typeof clearAllPaymentAccounts> | ReturnType<typeof clearAllPaymentInstruments> | ReturnType<typeof clearAllReimbursements> | ReturnType<typeof clearAllSectionsAccountsView> | ReturnType<typeof clearAllSectionsClassesViewV2> | ReturnType<typeof clearAllSubscriptionAddOns> | ReturnType<typeof clearAllSubscriptionCoupons> | ReturnType<typeof clearAllSubscriptionPlans> | ReturnType<typeof clearAllSubscriptionSummary> | ReturnType<typeof clearAllSubscriptions> | ReturnType<typeof clearAllTransactions> | ReturnType<typeof clearAllUserRoles> | ReturnType<typeof clearAllUsers> | ReturnType<typeof clearAllVendorExpenseTrends> | ReturnType<typeof clearAllVendors> | ReturnType<typeof clearClassList> | ReturnType<typeof clearContacts> | ReturnType<typeof clearDepositAccountTransaction> | ReturnType<typeof clearSnackbar>;
138
+ declare type clearActionTypeForEntities = ReturnType<typeof clearAllAccountGroups> | ReturnType<typeof clearAllAccountingSummary> | ReturnType<typeof clearAllAccounts> | ReturnType<typeof clearAllAddresses> | ReturnType<typeof clearAllApprovalRules> | ReturnType<typeof clearAllBankAccounts> | ReturnType<typeof clearAllBillTransactions> | ReturnType<typeof clearAllChargeCards> | ReturnType<typeof clearAllChargeCardTransactions> | ReturnType<typeof clearAllCompanies> | ReturnType<typeof clearAllCurrencies> | ReturnType<typeof clearAllCustomerIncomeTrend> | ReturnType<typeof clearAllCustomers> | ReturnType<typeof clearAllDepositAccounts> | ReturnType<typeof clearAllEntities> | ReturnType<typeof clearAllEntityApprovalStatus> | ReturnType<typeof clearAllFiles> | ReturnType<typeof clearAllForecasts> | ReturnType<typeof clearAllGlobalMerchants> | ReturnType<typeof clearAllInsights> | ReturnType<typeof clearAllMerchants> | ReturnType<typeof clearAllOnboardingCustomersInfo> | ReturnType<typeof clearAllPaymentAccounts> | ReturnType<typeof clearAllPaymentInstruments> | ReturnType<typeof clearAllRecurringBills> | ReturnType<typeof clearAllReimbursements> | ReturnType<typeof clearAllSectionsAccountsView> | ReturnType<typeof clearAllSectionsClassesViewV2> | ReturnType<typeof clearAllSubscriptionAddOns> | ReturnType<typeof clearAllSubscriptionCoupons> | ReturnType<typeof clearAllSubscriptionPlans> | ReturnType<typeof clearAllSubscriptionSummary> | ReturnType<typeof clearAllSubscriptions> | ReturnType<typeof clearAllTransactions> | ReturnType<typeof clearAllUserRoles> | ReturnType<typeof clearAllUsers> | ReturnType<typeof clearAllVendorExpenseTrends> | ReturnType<typeof clearAllVendors> | ReturnType<typeof clearClassList> | ReturnType<typeof clearContacts> | ReturnType<typeof clearDepositAccountTransaction> | ReturnType<typeof clearSnackbar>;
138
139
  export declare type ActionType = clearActionTypeForViews | clearActionTypeForEntities | ReturnType<typeof clearAll>;
139
140
  export declare const clearAllEpic: (actions$: ActionsObservable<ActionType>) => import("rxjs").Observable<ActionType>;
140
141
  export {};
@@ -78,6 +78,7 @@ const revenueClassesViewReducer_1 = require("../../view/revenueClassesView/reven
78
78
  const billPaySetupApproverViewReducer_1 = require("../../view/spendManagement/billPay/billPaySetupApproverView/billPaySetupApproverViewReducer");
79
79
  const onboardingCustomerReducer_1 = require("../onboardingCustomer/onboardingCustomerReducer");
80
80
  const onboardingCockpitViewReducer_1 = require("../../view/onboardingView/cockpitView/onboardingCockpitViewReducer");
81
+ const recurringBillsReducer_1 = require("../billPay/recurringBills/recurringBillsReducer");
81
82
  const reimbursementReducer_1 = require("../reimbursement/reimbursementReducer");
82
83
  const remiDetailViewReducer_1 = require("../../view/spendManagement/reimbursement/remiDetailView/remiDetailViewReducer");
83
84
  const merchantReducer_1 = require("../merchant/merchantReducer");
@@ -264,6 +265,7 @@ const clearAllEpic = (actions$) => actions$.pipe((0, operators_1.filter)(tenantR
264
265
  (0, onboardingCustomerReducer_1.clearAllOnboardingCustomersInfo)(),
265
266
  (0, paymentAccountReducer_1.clearAllPaymentAccounts)(),
266
267
  (0, paymentInstrumentReducer_1.clearAllPaymentInstruments)(),
268
+ (0, recurringBillsReducer_1.clearAllRecurringBills)(),
267
269
  (0, reimbursementReducer_1.clearAllReimbursements)(),
268
270
  (0, sectionAccountsViewReducer_1.clearAllSectionsAccountsView)(),
269
271
  (0, sectionClassesViewReducer_1.clearAllSectionsClassesViewV2)(),
@@ -31,17 +31,17 @@ exports.toContentType = toContentType;
31
31
  const toContentTypeStrict = (v) => (0, stringToUnion_1.stringToUnionStrict)(v, ALL_CONTENT_TYPES);
32
32
  exports.toContentTypeStrict = toContentTypeStrict;
33
33
  const mapFileEntityToAttachment = (file) => {
34
- var _a, _b, _c, _d;
34
+ var _a, _b;
35
35
  return ({
36
- id: (_a = file.fileId) !== null && _a !== void 0 ? _a : '',
36
+ id: file.fileId,
37
37
  contentType: (0, exports.toContentTypeStrict)(file.contentType),
38
38
  createTime: file.createTime,
39
- updateTime: (_b = file.updateTime) !== null && _b !== void 0 ? _b : (0, zeniDayJS_1.dateNow)(),
39
+ updateTime: (_a = file.updateTime) !== null && _a !== void 0 ? _a : (0, zeniDayJS_1.dateNow)(),
40
40
  fileName: file.fileName,
41
41
  fileSizeInBytes: file.fileSize,
42
42
  fileDownloadUrl: file.signedUrl,
43
- fileChecksum: (_c = file.checksum) !== null && _c !== void 0 ? _c : undefined,
44
- fileId: (_d = file.fileId) !== null && _d !== void 0 ? _d : '',
43
+ fileChecksum: (_b = file.checksum) !== null && _b !== void 0 ? _b : undefined,
44
+ fileId: file.fileId,
45
45
  });
46
46
  };
47
47
  exports.mapFileEntityToAttachment = mapFileEntityToAttachment;
package/lib/index.d.ts CHANGED
@@ -363,7 +363,7 @@ import { approveOrRejectBill, fetchBillDetail, deleteBill, cancelAndDeleteBill,
363
363
  import { fetchDuplicateBill, clearBillPayReview } from './view/spendManagement/billPay/billPayReview/billPayReviewReducer';
364
364
  import { getReviewPageBillDetail, BillPayReviewSelectorView, DuplicateBillsSelectorView } from './view/spendManagement/billPay/billPayReview/billPayReviewSelector';
365
365
  import { fetchEditBillDetailPage, saveBillUpdatesToLocalStore, discardBillUpdatesInLocalStore, saveBillDetail, fetchVendorByNameAndParseInvoice, fetchBillAndInitializeLocalStore, updateShowAutofill, updateBillUploadFetchState, updateVendorContact, convertAmountToHomeCurrency } from './view/spendManagement/billPay/editBillView/editBillViewReducer';
366
- import { EditBillDetail, EditBillDetailViewState, WhatForSection, PaymentDetailsSection, BillDetailLocalData } from './view/spendManagement/billPay/editBillView/editBillViewState';
366
+ import { EditBillDetail, EditBillDetailViewState, WhatForSection, PaymentDetailsSection, BillDetailLocalData, RecurringBillInstance, RecurringBillConfigLocalData, EditRecurringBillType } from './view/spendManagement/billPay/editBillView/editBillViewState';
367
367
  import { EditBillDetailSelectorView, LineItemRecommendationsLocalData, getEditBillDetail, PaymentDetailsSectionView, EditBillInitialDetails, PaymentToOption, toPaymentToOption } from './view/spendManagement/billPay/editBillView/editBillViewSelector';
368
368
  import { ClassListSelectorView, getClassList } from './view/classList/classListSelector';
369
369
  import { Reimbursement, MilageReimbursementLine, OutofPocketReimbursementLine, ReimbursementLine, ReimbursementTypeCode } from './entity/reimbursement/reimbursementState';
@@ -373,7 +373,7 @@ import { RemiListDownloadReport, getRemiDownloadList } from './view/spendManagem
373
373
  import { fetchRemiList, fetchRemiListPerTab, updateTab as updateRemiListTab, updateSubTab as updateRemiListSubTab, updateRemiDetailSaveRemiCode, updateRemiListUIState, updateSearchResult as updateRemiListSearchResult, updateFilterResult as updateRemiListFilterResult, updateRemiListDownloadUIState } from './view/spendManagement/reimbursement/remiListView/remiListReducer';
374
374
  export { MilageReimbursementLine, OutofPocketReimbursementLine, ReimbursementLine, ReimbursementTypeCode, Reimbursement, RemiTabType, toRemiSubTabType, toRemiSubTabTypeStrict, toRemiTabType, toRemiTabTypeStrict, RemiSubTabType, ReimbursementViewSortKey, RemiListUIState, RemiListReport, RemiListDownloadReport, ReimbursementView, ReimbursementFilters, ReimbursementFilterCategory, RemiListViewFilterCategoryField, getRemiList, getRemiDownloadList, fetchRemiList, fetchRemiListPerTab, updateRemiListTab, updateRemiListSubTab, updateRemiDetailSaveRemiCode, updateRemiListUIState, updateRemiListSearchResult, updateBillListFilterResult, updateRemiListFilterResult, REIMBURSEMENT_FILTER_CATEGORIES, REIMBURSEMENT_FILTER_CATEGORIES_RESTRICTED, updateRemiListDownloadUIState, updateBillListDownloadUIState, };
375
375
  export { AccountListSelectorView, ClassListSelectorView, getClassList };
376
- export { BillTab, BillsSubTabType, SaveBillStageCode, BillPayReviewSelectorView, DuplicateBillsSelectorView, EditBillDetailSelectorView, LineItemRecommendationsLocalData, EditBillInitialDetails, BillableStatus, PaymentDetailsSection, BillListReport, BillListDownloadReport, WhatForSection, fetchBillList, fetchBillListPerTab, updateTab, updateSubTab, updateSelectedBillId, updateBillDetailSaveBillCode, fetchVendorByNameAndParseInvoice, saveBillUpdatesToLocalStore, discardBillUpdatesInLocalStore, saveBillDetail, approveOrRejectBill, updateApprovalStatusOnSuccess, deleteBill, cancelAndDeleteBill, getBillList, getBillDownloadList, BillDetailViewSelector, ActorActivityWithUser, BillActivity, StepWithStatus, getBillDetailView, checkApproveRejectBtnShowForBill, BillDetailView, getBillTransactionDetailKey, fetchBillDetail, fetchEditBillDetailPage, fetchAndUpdateVendorRecommendations, fetchDuplicateBill, clearBillPayReview, EditBillDetail, EditBillDetailViewState, getEditBillDetail, getReviewPageBillDetail, BillDetailLocalData, PaymentDetailsSectionView, fetchBillAndInitializeLocalStore, updateShowAutofill, saveVendorSuccessOrFailure, PreviousBillsSelectorView, BillPaymentStatus, BillPaymentStatusCodeType, BillStatus, BillStatusCodeType, BillApprovalType, updateBillListUIState, BillListUIState, BillPayViewSortKey, BillPayFilters, BillPayFilterCategory, BillListViewFilterCategoryField, BILL_PAY_FILTER_CATEGORIES, updateVendorDetailLocalData, resetVendorDetailLocalData, updateContactsInVendorDetailLocalData, updateBillUploadFetchState, updateBillListSearchResult, sendOtpVendorView, resendOtpVendorView, verifyOtpVendorView, fetchUserDetails, verifyUser, updateVendorContact, PaymentToOption, toPaymentToOption, convertAmountToHomeCurrency, };
376
+ export { BillTab, BillsSubTabType, SaveBillStageCode, BillPayReviewSelectorView, DuplicateBillsSelectorView, EditBillDetailSelectorView, LineItemRecommendationsLocalData, EditBillInitialDetails, BillableStatus, PaymentDetailsSection, BillListReport, BillListDownloadReport, WhatForSection, fetchBillList, fetchBillListPerTab, updateTab, updateSubTab, updateSelectedBillId, updateBillDetailSaveBillCode, fetchVendorByNameAndParseInvoice, saveBillUpdatesToLocalStore, discardBillUpdatesInLocalStore, saveBillDetail, approveOrRejectBill, updateApprovalStatusOnSuccess, deleteBill, cancelAndDeleteBill, getBillList, getBillDownloadList, BillDetailViewSelector, ActorActivityWithUser, BillActivity, StepWithStatus, getBillDetailView, checkApproveRejectBtnShowForBill, BillDetailView, getBillTransactionDetailKey, fetchBillDetail, fetchEditBillDetailPage, fetchAndUpdateVendorRecommendations, fetchDuplicateBill, clearBillPayReview, EditBillDetail, EditBillDetailViewState, getEditBillDetail, getReviewPageBillDetail, BillDetailLocalData, PaymentDetailsSectionView, fetchBillAndInitializeLocalStore, updateShowAutofill, saveVendorSuccessOrFailure, PreviousBillsSelectorView, BillPaymentStatus, BillPaymentStatusCodeType, BillStatus, BillStatusCodeType, BillApprovalType, updateBillListUIState, BillListUIState, BillPayViewSortKey, BillPayFilters, BillPayFilterCategory, BillListViewFilterCategoryField, BILL_PAY_FILTER_CATEGORIES, updateVendorDetailLocalData, resetVendorDetailLocalData, updateContactsInVendorDetailLocalData, updateBillUploadFetchState, updateBillListSearchResult, sendOtpVendorView, resendOtpVendorView, verifyOtpVendorView, fetchUserDetails, verifyUser, updateVendorContact, PaymentToOption, toPaymentToOption, convertAmountToHomeCurrency, RecurringBillInstance, RecurringBillConfigLocalData, EditRecurringBillType, };
377
377
  import { SpendManagementFiltersType, SpendManagementFilterEntityType, FilterCategoryType, BillPayFilterCategoryDropdownOption, ReimbursementFilterCategoryDropdownOption, SpendManagementFilterCategoryDropdownOption, MatchingOperatorDropdownOption, CategoryCombinationOperator, hideCreatedByFilter } from './view/spendManagement/spendManagementFilterHelpers';
378
378
  export { SpendManagementFiltersType, SpendManagementFilterEntityType, FilterCategoryType, BillPayFilterCategoryDropdownOption, ReimbursementFilterCategoryDropdownOption, SpendManagementFilterCategoryDropdownOption, MatchingOperatorDropdownOption, CategoryCombinationOperator, hideCreatedByFilter, };
379
379
  import { BillPaySetupViewState, BillPaySetupViewLocalData } from './view/spendManagement/billPay/billPaySetupView/billPaySetupViewState';
@@ -441,9 +441,9 @@ import { OnboardingCustomerListUIState } from './view/onboardingView/cockpitView
441
441
  import { reduceFetchState, reduceAnyFetchState, reduceAllFetchState } from './commonStateTypes/reduceFetchState';
442
442
  import { SortOrder } from './commonStateTypes/selectorTypes/sortOrderTypes';
443
443
  import { ALL_FILE_TYPES, FileType, toFileTypeStrict } from './commonStateTypes/fileType';
444
- import { getNextNthWorkingDay, getPreviousNthWorkingDay, isHolidayToday, filterDays, getYearsList } from './commonStateTypes/workingDayHelper';
444
+ import { getNextNthWorkingDay, getPreviousNthWorkingDay, isHolidayToday, filterDays, getYearsList, holidaysFormatted, isHoliday, PAYMENT_BUSINESS_DAYS } from './commonStateTypes/workingDayHelper';
445
445
  export { reduceFetchState, reduceAnyFetchState, reduceAllFetchState, SortOrder, ALL_FILE_TYPES, FileType, toFileTypeStrict, };
446
- export { getNextNthWorkingDay, getPreviousNthWorkingDay, isHolidayToday, filterDays, getYearsList, };
446
+ export { getNextNthWorkingDay, getPreviousNthWorkingDay, isHolidayToday, filterDays, getYearsList, isHoliday, holidaysFormatted, PAYMENT_BUSINESS_DAYS, };
447
447
  export { CustomerRatingCodeType, TeamRatingCodeType };
448
448
  export { CustomerSatisfactionInfo };
449
449
  export { fetchCompanyOnboardingView, fetchOnboardingCompletedCompanies, saveOnboardingCustomerCompletedStatus, getOnboardingCockpitView, getNewOnboardingCustomerView, getOnboardingEmailGroup, initializeOnboardingCustomerViewUpdateData, clearOnboardingCustomerViewUpdateData, saveOnboardingCustomerViewUpdateData, updateOnboardingCustomerListUIState, updateCustomerCreationStatus, updateStatusAfterOnboardingCompleted, saveOnboardingCustomerViewUpdates, saveOnboardingCustomerNotes, saveOnboardingCustomerDataInLocalStore, updateOnboardingCustomerDataInLocalStore, NewOnboardingCustomer, OnboardingCustomer, OnboardingCockpitView, NewOnboardingCustomerView, OnboardingCustomerCompletedStatus, OnboardingCustomerListUIState, CustomerCreationStatus, OnboardingCompanyDetails, resetNewOnboardedCustomerId, sendOnboardingCustomerViewInvite, retryBankAccountConnectionForOnboarding, };
@@ -591,3 +591,5 @@ import { ArAgingReport, getArAgingReport, AgingBalancesByCustomer } from './view
591
591
  import { fetchArAgingDetail, updateArAgingDetailUIState } from './view/arAgingView/arAgingDetail/arAgingDetailReducer';
592
592
  import { ArAgingDetail, getArAgingDetailForCustomer } from './view/arAgingView/arAgingDetail/arAgingDetailSelector';
593
593
  export { fetchArAging, updateArAgingUIState, fetchArAgingDetail, updateArAgingDetailUIState, ArAgingReport, ArAgingDetail, AgingBalancesByCustomer, getArAgingReport, getArAgingDetailForCustomer, };
594
+ import { toRecurringBillFrequency, toRecurringBillFrequencyStrict, RecurringBillFrequency, RecurringBillDetail, RecurringBillConfig } from './entity/billPay/recurringBills/recurringBillsState';
595
+ export { toRecurringBillFrequency, toRecurringBillFrequencyStrict, RecurringBillFrequency, RecurringBillDetail, RecurringBillConfig, };
package/lib/index.js CHANGED
@@ -39,10 +39,10 @@ exports.updateRemiListSearchResult = exports.updateRemiListUIState = exports.upd
39
39
  exports.toPaymentToOption = exports.updateVendorContact = exports.verifyUser = exports.fetchUserDetails = exports.verifyOtpVendorView = exports.resendOtpVendorView = exports.sendOtpVendorView = exports.updateBillListSearchResult = exports.updateBillUploadFetchState = exports.updateContactsInVendorDetailLocalData = exports.resetVendorDetailLocalData = exports.updateVendorDetailLocalData = exports.BILL_PAY_FILTER_CATEGORIES = exports.updateBillListUIState = exports.saveVendorSuccessOrFailure = exports.updateShowAutofill = exports.fetchBillAndInitializeLocalStore = exports.getReviewPageBillDetail = exports.getEditBillDetail = exports.clearBillPayReview = exports.fetchDuplicateBill = exports.fetchAndUpdateVendorRecommendations = exports.fetchEditBillDetailPage = exports.fetchBillDetail = exports.getBillTransactionDetailKey = exports.checkApproveRejectBtnShowForBill = exports.getBillDetailView = exports.getBillDownloadList = exports.getBillList = exports.cancelAndDeleteBill = exports.deleteBill = exports.updateApprovalStatusOnSuccess = exports.approveOrRejectBill = exports.saveBillDetail = exports.discardBillUpdatesInLocalStore = exports.saveBillUpdatesToLocalStore = exports.fetchVendorByNameAndParseInvoice = exports.updateBillDetailSaveBillCode = exports.updateSelectedBillId = exports.updateSubTab = exports.updateTab = exports.fetchBillListPerTab = exports.fetchBillList = exports.getClassList = exports.updateBillListDownloadUIState = exports.updateRemiListDownloadUIState = exports.REIMBURSEMENT_FILTER_CATEGORIES_RESTRICTED = exports.REIMBURSEMENT_FILTER_CATEGORIES = exports.updateRemiListFilterResult = exports.updateBillListFilterResult = void 0;
40
40
  exports.fetchBillPayApproversDetails = exports.fetchBillPaySetupApproverView = exports.getBillPaySetupApproverUpdateDataView = exports.getBillPaySetupApproverView = exports.toRoleTypeStrict = exports.toAttributeOrRoleTypeStrict = exports.toAttributeTypeStrict = exports.isSuccessResponse = exports.getRemiBusinessVerificationDetails = exports.getRemiSetupViewDetails = exports.clearRemiSetupView = exports.acceptEmployeeRemiTerms = exports.acceptRemiTerms = exports.saveRemiSetupViewDataInLocalStore = exports.updateMileageDetails = exports.fetchRemiSetupView = exports.getUserFinancialAccount = exports.getCommonSetupViewDetails = exports.getZeniAccountBusinessVerificationDetails = exports.getBillPayBusinessVerificationDetails = exports.getBusinessVerificationDetails = exports.getZeniAccountSetupViewDetails = exports.getBillPaySetupViewDetails = exports.verifyOtp = exports.resendOtp = exports.sendOtp = exports.clearZeniAccountSetupView = exports.clearBillPaySetupView = exports.clearSetupViewDataInLocalStore = exports.saveIndustryAndIncDateInLocalStore = exports.saveCompnayOfficerAdditionalDocumentsInLocalStore = exports.saveCompnayOfficerPhoneInLocalStore = exports.saveSetupViewDataInLocalStore = exports.acceptBillPayUpdatedTerms = exports.acceptZeniAccountTerms = exports.acceptBillPayTerms = exports.establishPlaidConnection = exports.updatePaymentAccountStatus = exports.updatePaymentAccountLoginStatus = exports.updatePaymentAccount = exports.updateBusinessVerificationDetails = exports.updateSetupViewLocalStoreData = exports.updateSelectedCompanyOfficer = exports.getPlaidLinkToken = exports.getPaymentAccounts = exports.enableSetup = exports.fetchZeniAccountSetupView = exports.fetchBillPaySetupView = exports.hideCreatedByFilter = exports.convertAmountToHomeCurrency = void 0;
41
41
  exports.toFileTypeStrict = exports.ALL_FILE_TYPES = exports.reduceAllFetchState = exports.reduceAnyFetchState = exports.reduceFetchState = exports.clearAddRemiAutoFields = exports.clearTentativeMerchantName = exports.updateTentativeMerchantNames = exports.updateUploadFetchState = exports.updateAddRemiAutoFields = exports.clearEditRemiViewDetail = exports.parseReceiptsToRemi = exports.saveRemiSuccessOrFailure = exports.saveRemiDetail = exports.removeFileFromRemiUpdatesInLocalStore = exports.discardRemiUpdatesInLocalStore = exports.fetchCurrencyConversionValue = exports.saveRemiUpdatesToLocalStore = exports.initializeRemiToLocalStore = exports.fetchRemiAndInitializeLocalStore = exports.fetchRecommendationsAndUpdateMerchantRecommendations = exports.fetchEditRemiDetailPage = exports.getEditRemiDetail = exports.clearRemiDetailView = exports.approveOrRejectRemi = exports.cancelAndDeleteRemi = exports.fetchRemiDetail = exports.deleteRemi = exports.updateIsEditModeRealTimeApprovals = exports.saveRealTimeApproval = exports.checkApproveRejectBtnShowForRemi = exports.getRemiDetailView = exports.clearRemiSetupApproverView = exports.clearRemiSetupApproverViewUpdateData = exports.initializeRemiSetupApproverViewUpdateData = exports.saveRemiSetupApproverViewUpdates = exports.saveRemiSetupApproverViewUpdateData = exports.deleteRemiApprovalRule = exports.fetchRemiApproversDetails = exports.fetchRemiApproversList = exports.fetchRemiSetupApproverView = exports.getRemiSetupApproverUpdateDataView = exports.getRemiSetupApproverView = exports.clearBillPaySetupApproverView = exports.clearBillPaySetupApproverViewUpdateData = exports.initializeBillPaySetupApproverViewUpdateData = exports.saveBillPaySetupApproverViewUpdates = exports.saveBillPaySetupApproverViewUpdateData = exports.deleteBillPayApprovalRule = exports.fetchBillPayApproversList = void 0;
42
- exports.getZeniAccountsConfigDetail = exports.fetchOwnerList = exports.fetchRecommendationByEntityName = exports.fetchRecommendationByEntityId = exports.fetchRecommendationByEntityQboId = exports.isVendorsTabVisible = exports.isColumnYTDSpend = exports.updateYTDSelectionUIState = exports.updatePageToken = exports.updateSortUiState = exports.getVendorList = exports.LOCAL_CURRENCY_INTERNATIONAL_METHOD_SUBTEXT = exports.SWIFT_OUR_INTERNATIONAL_METHOD_SUBTEXT = exports.NEW_INTERNATIONAL_METHOD_SUBTEXT = exports.BILL_NEW_PAYMENT_METHODS = exports.getInternationalSubConfigCodeKey = exports.shouldEnableCalendarPickerForLastReportSent = exports.canSendMonthEndEmailReport = exports.getSelectedCompanyOfficer = exports.getSpendManagementEffectiveListPeriod = exports.getSnackbar = exports.closeSnackbar = exports.openSnackbar = exports.getChangedLineItemCountFromLocalData = exports.getTransactionListUIStateByCategoryType = exports.getTransactionsListByCategoryType = exports.retryBankAccountConnectionForOnboarding = exports.sendOnboardingCustomerViewInvite = exports.resetNewOnboardedCustomerId = exports.updateOnboardingCustomerDataInLocalStore = exports.saveOnboardingCustomerDataInLocalStore = exports.saveOnboardingCustomerNotes = exports.saveOnboardingCustomerViewUpdates = exports.updateStatusAfterOnboardingCompleted = exports.updateCustomerCreationStatus = exports.updateOnboardingCustomerListUIState = exports.saveOnboardingCustomerViewUpdateData = exports.clearOnboardingCustomerViewUpdateData = exports.initializeOnboardingCustomerViewUpdateData = exports.getOnboardingEmailGroup = exports.getNewOnboardingCustomerView = exports.getOnboardingCockpitView = exports.saveOnboardingCustomerCompletedStatus = exports.fetchOnboardingCompletedCompanies = exports.fetchCompanyOnboardingView = exports.getYearsList = exports.filterDays = exports.isHolidayToday = exports.getPreviousNthWorkingDay = exports.getNextNthWorkingDay = void 0;
43
- exports.updateOnboardingCustomerViewLocalStoreData = exports.updateOnboardingCustomerView = exports.updateOnboardingPaymentAccountStatus = exports.updateOnboardingPaymentAccountLoginStatus = exports.updateOnboardingCustomerViewCompleteStatus = exports.updateOnboardingCustomerViewAccountDetails = exports.establishOnboardingPlaidConnection = exports.getOnboardingPlaidLinkToken = exports.fetchOnboardingCustomerSetupView = exports.fetchOnboardingCustomerView = exports.isZeniClearingAccount = exports.ZENI_CLEARING_ACCOUNT = exports.isZeniClearingAccountReport = exports.getCompanyConfig = exports.fetchCompanyConfig = exports.clearTransactionVendorSaveStatus = exports.resetTransactionVendorLocalData = exports.updateTransactionVendorLocalData = exports.saveTransactionVendorSuccessOrFailure = exports.saveTransactionVendor = exports.getTransactionVendorView = exports.getZeniAccStatements = exports.fetchZeniAccStatementPage = exports.getDepositAccountTransactionList = exports.fetchDepositAccountTransactionList = exports.fetchDepositAccountHistoryFailure = exports.fetchDepositAccountHistorySuccess = exports.updateDepositAccount = exports.getCheckDepositDetail = exports.clearCheckDeposit = exports.updateCheckDepositLocalData = exports.depositCheck = exports.ZENI_ACCOUNTS_TAB = exports.fetchDepositAccountDetail = exports.clearTransferDetail = exports.getTransferDetail = exports.transferMoney = exports.updateDepositToLocalData = exports.updateTransferToLocalData = exports.updateTransferMoneyLocalData = exports.fetchZeniAccountsConfig = exports.fetchDepositAccount = exports.getDepositAccountDetailForPDF = exports.getDepositAccountDetail = exports.unlinkPaymentAccount = exports.fetchPaymentAccountList = exports.createCheckingAccount = exports.updateZeniAccountListTab = exports.fetchZeniAccountList = exports.getZeniAccountList = void 0;
44
- exports.acceptChargeCardTerms = exports.fetchChargeCardSetupView = exports.getChargeCardSetupViewDetails = exports.toCreditLimitFrequencyCodeType = exports.toChargeCardSortKeyType = exports.fetchChargeCardTransactionList = exports.getChargeCardDetailView = exports.fetchChargeCardDetailPage = exports.getChargeCardListView = exports.fetchChargeCardListPage = exports.getChargeCardBusinessVerificationDetails = exports.getUserRoleConfig = exports.fetchUserRoleConfig = exports.clearInternationalWire = exports.deletePaymentInstrument = exports.createPaymentInstrumentUpdateStatus = exports.createPaymentInstrument = exports.fetchInternationalWireDynamicForm = exports.initializeDynamicForm = exports.updateInternationalWireLocalStoreData = exports.initializeInternationalWireLocalData = exports.getInternationalWireView = exports.fetchWiseRedirectStatus = exports.getWiseRedirect = exports.saveMagicLinkAddressInLocalStore = exports.fetchMagicLinkBankNameBySwift = exports.fetchMagicLinkBankNameByRouting = exports.updateMagicLinkInternationalBankAccountLocalStoreData = exports.updateMagicLinkBankAccountLocalStoreData = exports.saveBankAccount = exports.fetchBillAttachment = exports.fetchMagicLinkTenant = exports.getMagicLinkCurrentAddressState = exports.getMagicLinkBankAccountView = exports.getMagicLinkView = exports.initializeAccountMappingView = exports.getAccountMappingView = exports.clearAccountMappingLocalData = exports.saveAccountMappingLocalData = exports.saveAccountMapping = exports.getOnboardingCustomerView = exports.clearOnboardingCustomerViewDataInLocalStore = exports.clearOnboardingCustomerView = exports.resendOnboardingOfficerOtp = exports.verifyOnboardingOfficerOtp = exports.sendOnboardingOfficerOtp = exports.saveOnboardingCustomerViewDataInLocalStore = exports.saveOnboardingCompnayOfficerPhoneInLocalStore = exports.updateOnboardingCustomerViewUIState = exports.updateCurrentStep = void 0;
45
- exports.getArAgingDetailForCustomer = exports.getArAgingReport = exports.updateArAgingDetailUIState = exports.fetchArAgingDetail = exports.updateArAgingUIState = exports.fetchArAging = exports.toVendorGlobalReviewColumnSortKeyType = exports.getTenantMerchantByMerchantId = exports.getVendorGlobalReviewView = exports.updateVendorGlobalReviewViewUIState = exports.updateSelectedGlobalMerchant = exports.fetchVendorGlobalReviewView = exports.approveVendorGlobalReview = exports.getGlobalMerchantView = exports.clearGlobalMerchantView = exports.updateCreateGlobalMerchantLocalData = exports.createGlobalMerchant = exports.fetchGlobalMerchantRecommendation = exports.clearGlobalMerchantAutoCompleteResults = exports.fetchGlobalMerchantAutoCompleteView = exports.updateVendorFirstReviewSortUiState = exports.updateVendorFirstReviewViewLocalData = exports.saveVendorFirstReviewView = exports.clearRecentlySavedErroredVendorData = exports.updateVendorFirstReviewViewPageToken = exports.resetVendorFirstReviewLocalData = exports.updateVendorFirstReviewViewScrollYOffset = exports.fetchVendorFirstReviewView = exports.getVendorFirstReviewView = exports.getGlobalMerchantAutoCompleteResults = exports.toVendorFirstReviewViewColumnKeyType = exports.updateApAgingDetailUIState = exports.getApAgingDetailForVendor = exports.fetchApAgingDetail = exports.updateApAgingUIState = exports.getApAgingReport = exports.fetchApAging = exports.updateChargeCardListUIState = exports.updateChargeCardListSearchText = exports.resetIssueChargeCardForm = exports.updateChargeCardLocalStore = exports.issueChargeCard = void 0;
42
+ exports.fetchRecommendationByEntityId = exports.fetchRecommendationByEntityQboId = exports.isVendorsTabVisible = exports.isColumnYTDSpend = exports.updateYTDSelectionUIState = exports.updatePageToken = exports.updateSortUiState = exports.getVendorList = exports.LOCAL_CURRENCY_INTERNATIONAL_METHOD_SUBTEXT = exports.SWIFT_OUR_INTERNATIONAL_METHOD_SUBTEXT = exports.NEW_INTERNATIONAL_METHOD_SUBTEXT = exports.BILL_NEW_PAYMENT_METHODS = exports.getInternationalSubConfigCodeKey = exports.shouldEnableCalendarPickerForLastReportSent = exports.canSendMonthEndEmailReport = exports.getSelectedCompanyOfficer = exports.getSpendManagementEffectiveListPeriod = exports.getSnackbar = exports.closeSnackbar = exports.openSnackbar = exports.getChangedLineItemCountFromLocalData = exports.getTransactionListUIStateByCategoryType = exports.getTransactionsListByCategoryType = exports.retryBankAccountConnectionForOnboarding = exports.sendOnboardingCustomerViewInvite = exports.resetNewOnboardedCustomerId = exports.updateOnboardingCustomerDataInLocalStore = exports.saveOnboardingCustomerDataInLocalStore = exports.saveOnboardingCustomerNotes = exports.saveOnboardingCustomerViewUpdates = exports.updateStatusAfterOnboardingCompleted = exports.updateCustomerCreationStatus = exports.updateOnboardingCustomerListUIState = exports.saveOnboardingCustomerViewUpdateData = exports.clearOnboardingCustomerViewUpdateData = exports.initializeOnboardingCustomerViewUpdateData = exports.getOnboardingEmailGroup = exports.getNewOnboardingCustomerView = exports.getOnboardingCockpitView = exports.saveOnboardingCustomerCompletedStatus = exports.fetchOnboardingCompletedCompanies = exports.fetchCompanyOnboardingView = exports.PAYMENT_BUSINESS_DAYS = exports.holidaysFormatted = exports.isHoliday = exports.getYearsList = exports.filterDays = exports.isHolidayToday = exports.getPreviousNthWorkingDay = exports.getNextNthWorkingDay = void 0;
43
+ exports.updateOnboardingPaymentAccountLoginStatus = exports.updateOnboardingCustomerViewCompleteStatus = exports.updateOnboardingCustomerViewAccountDetails = exports.establishOnboardingPlaidConnection = exports.getOnboardingPlaidLinkToken = exports.fetchOnboardingCustomerSetupView = exports.fetchOnboardingCustomerView = exports.isZeniClearingAccount = exports.ZENI_CLEARING_ACCOUNT = exports.isZeniClearingAccountReport = exports.getCompanyConfig = exports.fetchCompanyConfig = exports.clearTransactionVendorSaveStatus = exports.resetTransactionVendorLocalData = exports.updateTransactionVendorLocalData = exports.saveTransactionVendorSuccessOrFailure = exports.saveTransactionVendor = exports.getTransactionVendorView = exports.getZeniAccStatements = exports.fetchZeniAccStatementPage = exports.getDepositAccountTransactionList = exports.fetchDepositAccountTransactionList = exports.fetchDepositAccountHistoryFailure = exports.fetchDepositAccountHistorySuccess = exports.updateDepositAccount = exports.getCheckDepositDetail = exports.clearCheckDeposit = exports.updateCheckDepositLocalData = exports.depositCheck = exports.ZENI_ACCOUNTS_TAB = exports.fetchDepositAccountDetail = exports.clearTransferDetail = exports.getTransferDetail = exports.transferMoney = exports.updateDepositToLocalData = exports.updateTransferToLocalData = exports.updateTransferMoneyLocalData = exports.fetchZeniAccountsConfig = exports.fetchDepositAccount = exports.getDepositAccountDetailForPDF = exports.getDepositAccountDetail = exports.unlinkPaymentAccount = exports.fetchPaymentAccountList = exports.createCheckingAccount = exports.updateZeniAccountListTab = exports.fetchZeniAccountList = exports.getZeniAccountList = exports.getZeniAccountsConfigDetail = exports.fetchOwnerList = exports.fetchRecommendationByEntityName = void 0;
44
+ exports.toCreditLimitFrequencyCodeType = exports.toChargeCardSortKeyType = exports.fetchChargeCardTransactionList = exports.getChargeCardDetailView = exports.fetchChargeCardDetailPage = exports.getChargeCardListView = exports.fetchChargeCardListPage = exports.getChargeCardBusinessVerificationDetails = exports.getUserRoleConfig = exports.fetchUserRoleConfig = exports.clearInternationalWire = exports.deletePaymentInstrument = exports.createPaymentInstrumentUpdateStatus = exports.createPaymentInstrument = exports.fetchInternationalWireDynamicForm = exports.initializeDynamicForm = exports.updateInternationalWireLocalStoreData = exports.initializeInternationalWireLocalData = exports.getInternationalWireView = exports.fetchWiseRedirectStatus = exports.getWiseRedirect = exports.saveMagicLinkAddressInLocalStore = exports.fetchMagicLinkBankNameBySwift = exports.fetchMagicLinkBankNameByRouting = exports.updateMagicLinkInternationalBankAccountLocalStoreData = exports.updateMagicLinkBankAccountLocalStoreData = exports.saveBankAccount = exports.fetchBillAttachment = exports.fetchMagicLinkTenant = exports.getMagicLinkCurrentAddressState = exports.getMagicLinkBankAccountView = exports.getMagicLinkView = exports.initializeAccountMappingView = exports.getAccountMappingView = exports.clearAccountMappingLocalData = exports.saveAccountMappingLocalData = exports.saveAccountMapping = exports.getOnboardingCustomerView = exports.clearOnboardingCustomerViewDataInLocalStore = exports.clearOnboardingCustomerView = exports.resendOnboardingOfficerOtp = exports.verifyOnboardingOfficerOtp = exports.sendOnboardingOfficerOtp = exports.saveOnboardingCustomerViewDataInLocalStore = exports.saveOnboardingCompnayOfficerPhoneInLocalStore = exports.updateOnboardingCustomerViewUIState = exports.updateCurrentStep = exports.updateOnboardingCustomerViewLocalStoreData = exports.updateOnboardingCustomerView = exports.updateOnboardingPaymentAccountStatus = void 0;
45
+ exports.toRecurringBillFrequencyStrict = exports.toRecurringBillFrequency = exports.getArAgingDetailForCustomer = exports.getArAgingReport = exports.updateArAgingDetailUIState = exports.fetchArAgingDetail = exports.updateArAgingUIState = exports.fetchArAging = exports.toVendorGlobalReviewColumnSortKeyType = exports.getTenantMerchantByMerchantId = exports.getVendorGlobalReviewView = exports.updateVendorGlobalReviewViewUIState = exports.updateSelectedGlobalMerchant = exports.fetchVendorGlobalReviewView = exports.approveVendorGlobalReview = exports.getGlobalMerchantView = exports.clearGlobalMerchantView = exports.updateCreateGlobalMerchantLocalData = exports.createGlobalMerchant = exports.fetchGlobalMerchantRecommendation = exports.clearGlobalMerchantAutoCompleteResults = exports.fetchGlobalMerchantAutoCompleteView = exports.updateVendorFirstReviewSortUiState = exports.updateVendorFirstReviewViewLocalData = exports.saveVendorFirstReviewView = exports.clearRecentlySavedErroredVendorData = exports.updateVendorFirstReviewViewPageToken = exports.resetVendorFirstReviewLocalData = exports.updateVendorFirstReviewViewScrollYOffset = exports.fetchVendorFirstReviewView = exports.getVendorFirstReviewView = exports.getGlobalMerchantAutoCompleteResults = exports.toVendorFirstReviewViewColumnKeyType = exports.updateApAgingDetailUIState = exports.getApAgingDetailForVendor = exports.fetchApAgingDetail = exports.updateApAgingUIState = exports.getApAgingReport = exports.fetchApAging = exports.updateChargeCardListUIState = exports.updateChargeCardListSearchText = exports.resetIssueChargeCardForm = exports.updateChargeCardLocalStore = exports.issueChargeCard = exports.acceptChargeCardTerms = exports.fetchChargeCardSetupView = exports.getChargeCardSetupViewDetails = void 0;
46
46
  const zeniDayJS_1 = require("./zeniDayJS");
47
47
  Object.defineProperty(exports, "Dayjs", { enumerable: true, get: function () { return zeniDayJS_1.Dayjs; } });
48
48
  Object.defineProperty(exports, "updateZeniDateLocaleID", { enumerable: true, get: function () { return zeniDayJS_1.updateZeniDateLocaleID; } });
@@ -912,6 +912,9 @@ Object.defineProperty(exports, "getPreviousNthWorkingDay", { enumerable: true, g
912
912
  Object.defineProperty(exports, "isHolidayToday", { enumerable: true, get: function () { return workingDayHelper_1.isHolidayToday; } });
913
913
  Object.defineProperty(exports, "filterDays", { enumerable: true, get: function () { return workingDayHelper_1.filterDays; } });
914
914
  Object.defineProperty(exports, "getYearsList", { enumerable: true, get: function () { return workingDayHelper_1.getYearsList; } });
915
+ Object.defineProperty(exports, "holidaysFormatted", { enumerable: true, get: function () { return workingDayHelper_1.holidaysFormatted; } });
916
+ Object.defineProperty(exports, "isHoliday", { enumerable: true, get: function () { return workingDayHelper_1.isHoliday; } });
917
+ Object.defineProperty(exports, "PAYMENT_BUSINESS_DAYS", { enumerable: true, get: function () { return workingDayHelper_1.PAYMENT_BUSINESS_DAYS; } });
915
918
  const transactionListByCategoryTypeSelector_1 = require("./view/transactionList/transactionListByCategoryTypeSelector");
916
919
  Object.defineProperty(exports, "getTransactionsListByCategoryType", { enumerable: true, get: function () { return transactionListByCategoryTypeSelector_1.getTransactionsListByCategoryType; } });
917
920
  Object.defineProperty(exports, "getTransactionListUIStateByCategoryType", { enumerable: true, get: function () { return transactionListByCategoryTypeSelector_1.getTransactionListUIStateByCategoryType; } });
@@ -1154,3 +1157,6 @@ Object.defineProperty(exports, "fetchArAgingDetail", { enumerable: true, get: fu
1154
1157
  Object.defineProperty(exports, "updateArAgingDetailUIState", { enumerable: true, get: function () { return arAgingDetailReducer_1.updateArAgingDetailUIState; } });
1155
1158
  const arAgingDetailSelector_1 = require("./view/arAgingView/arAgingDetail/arAgingDetailSelector");
1156
1159
  Object.defineProperty(exports, "getArAgingDetailForCustomer", { enumerable: true, get: function () { return arAgingDetailSelector_1.getArAgingDetailForCustomer; } });
1160
+ const recurringBillsState_1 = require("./entity/billPay/recurringBills/recurringBillsState");
1161
+ Object.defineProperty(exports, "toRecurringBillFrequency", { enumerable: true, get: function () { return recurringBillsState_1.toRecurringBillFrequency; } });
1162
+ Object.defineProperty(exports, "toRecurringBillFrequencyStrict", { enumerable: true, get: function () { return recurringBillsState_1.toRecurringBillFrequencyStrict; } });
package/lib/reducer.d.ts CHANGED
@@ -64,6 +64,7 @@ import { DepositAccountTransactionState } from './entity/depositAccountTransacti
64
64
  import { BillPayConfigState } from './view/spendManagement/billPay/billPayConfig/billPayConfigState';
65
65
  import { ReimbursementConfigState } from './view/spendManagement/reimbursement/reimbursementConfig/reimbursementConfigState';
66
66
  import { ContactState } from './entity/billPay/contact/contact';
67
+ import { RecurringBillState } from './entity/billPay/recurringBills/recurringBillsState';
67
68
  import { VendorState } from './entity/vendor/vendorState';
68
69
  import { MerchantState } from './entity/merchant/merchant';
69
70
  import { VendorViewState } from './view/commonVendorView/vendorView/vendorViewState';
@@ -169,6 +170,7 @@ declare type EntitiesState = {
169
170
  paymentAccountState: PaymentAccountState;
170
171
  paymentInstrumentState: PaymentInstrumentState;
171
172
  reimbursementConfigState: ReimbursementConfigState;
173
+ recurringBillState: RecurringBillState;
172
174
  reimbursementState: ReimbursementState;
173
175
  sectionAccountsViewState: SectionAccountsViewState;
174
176
  sectionClassesViewStateV2: SectionClassesViewStateV2;
@@ -412,6 +414,7 @@ declare const reducers: import("redux").Reducer<import("redux").CombinedState<{
412
414
  merchantState: MerchantState;
413
415
  onboardingCustomerState: OnboardingCustomerState;
414
416
  paymentInstrumentState: PaymentInstrumentState;
417
+ recurringBillState: RecurringBillState;
415
418
  reimbursementState: ReimbursementState;
416
419
  sectionAccountsViewState: SectionAccountsViewState;
417
420
  sectionClassesViewStateV2: SectionClassesViewStateV2;
package/lib/reducer.js CHANGED
@@ -95,6 +95,7 @@ const depositAccountTransactionReducer_1 = __importStar(require("./entity/deposi
95
95
  const billPayConfigReducer_1 = __importStar(require("./view/spendManagement/billPay/billPayConfig/billPayConfigReducer"));
96
96
  const reimbursementConfigReducer_1 = __importStar(require("./view/spendManagement/reimbursement/reimbursementConfig/reimbursementConfigReducer"));
97
97
  const contactReducer_1 = __importStar(require("./entity/billPay/contact/contactReducer"));
98
+ const recurringBillsReducer_1 = __importStar(require("./entity/billPay/recurringBills/recurringBillsReducer"));
98
99
  const vendorReducer_1 = __importStar(require("./entity/vendor/vendorReducer"));
99
100
  const merchantReducer_1 = __importStar(require("./entity/merchant/merchantReducer"));
100
101
  const vendorViewReducer_1 = __importStar(require("./view/commonVendorView/vendorView/vendorViewReducer"));
@@ -201,6 +202,7 @@ const initialEntitiesState = {
201
202
  paymentAccountState: paymentAccountReducer_1.initialState,
202
203
  paymentInstrumentState: paymentInstrumentReducer_1.initialState,
203
204
  reimbursementConfigState: reimbursementConfigReducer_1.initialState,
205
+ recurringBillState: recurringBillsReducer_1.initialState,
204
206
  reimbursementState: reimbursementReducer_1.initialState,
205
207
  sectionAccountsViewState: sectionAccountsViewReducer_1.initialState,
206
208
  sectionClassesViewStateV2: sectionClassesViewReducer_1.initialState,
@@ -351,6 +353,7 @@ const entityReducers = {
351
353
  paymentAccountState: paymentAccountReducer_1.default,
352
354
  paymentInstrumentState: paymentInstrumentReducer_1.default,
353
355
  reimbursementConfigState: reimbursementConfigReducer_1.default,
356
+ recurringBillState: recurringBillsReducer_1.default,
354
357
  reimbursementState: reimbursementReducer_1.default,
355
358
  sectionAccountsViewState: sectionAccountsViewReducer_1.default,
356
359
  sectionClassesViewStateV2: sectionClassesViewReducer_1.default,