@zeniai/client-epic-state 4.7.74 → 4.7.76

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 (155) hide show
  1. package/lib/commonStateTypes/workingDayHelper.d.ts +9 -5
  2. package/lib/commonStateTypes/workingDayHelper.js +36 -12
  3. package/lib/entity/account/accountPayload.d.ts +1 -1
  4. package/lib/entity/billPay/billTransaction/billTransactionPayload.d.ts +3 -0
  5. package/lib/entity/billPay/billTransaction/billTransactionPayload.js +2 -2
  6. package/lib/entity/billPay/billTransaction/billTransactionState.d.ts +3 -0
  7. package/lib/entity/billPay/recurringBills/recurringBillsPayload.d.ts +34 -0
  8. package/lib/entity/billPay/recurringBills/recurringBillsPayload.js +44 -0
  9. package/lib/entity/billPay/recurringBills/recurringBillsReducer.d.ts +6 -0
  10. package/lib/entity/billPay/recurringBills/recurringBillsReducer.js +40 -0
  11. package/lib/entity/billPay/recurringBills/recurringBillsState.d.ts +33 -0
  12. package/lib/entity/billPay/recurringBills/recurringBillsState.js +14 -0
  13. package/lib/entity/chargeCard/chargeCard.d.ts +3 -2
  14. package/lib/entity/chargeCard/chargeCardPayload.d.ts +4 -14
  15. package/lib/entity/chargeCard/chargeCardPayload.js +1 -0
  16. package/lib/entity/depositAccount/depositAccountPayload.d.ts +2 -5
  17. package/lib/entity/entityApprovalStatus/entityApprovalStatusPayload.d.ts +1 -0
  18. package/lib/entity/entityApprovalStatus/entityApprovalStatusPayload.js +1 -0
  19. package/lib/entity/entityApprovalStatus/entityApprovalStatusState.d.ts +1 -0
  20. package/lib/entity/paymentAccount/paymentAccountPayload.d.ts +1 -0
  21. package/lib/entity/paymentAccount/paymentAccountPayload.js +2 -1
  22. package/lib/entity/paymentAccount/paymentAccountSelector.d.ts +2 -0
  23. package/lib/entity/paymentAccount/paymentAccountSelector.js +14 -1
  24. package/lib/entity/paymentAccount/paymentAccountState.d.ts +1 -0
  25. package/lib/entity/snackbar/snackbarTypes.d.ts +1 -1
  26. package/lib/entity/snackbar/snackbarTypes.js +1 -0
  27. package/lib/entity/tenant/clearAllEpic.d.ts +5 -2
  28. package/lib/entity/tenant/clearAllEpic.js +6 -0
  29. package/lib/entity/transaction/payloadTypes/transactionLinePayload.d.ts +2 -2
  30. package/lib/entity/transaction/payloadTypes/transactionLinePayload.js +2 -2
  31. package/lib/entity/transaction/stateTypes/attachment.js +5 -5
  32. package/lib/epic.d.ts +9 -10
  33. package/lib/epic.js +9 -10
  34. package/lib/index.d.ts +26 -14
  35. package/lib/index.js +37 -22
  36. package/lib/reducer.d.ts +9 -0
  37. package/lib/reducer.js +9 -0
  38. package/lib/view/accountList/accountListReducer.js +2 -1
  39. package/lib/view/accountList/accountListState.d.ts +1 -1
  40. package/lib/view/accountList/fetchAccountListEpic.js +16 -7
  41. package/lib/view/commonVendorView/vendorView/epics/saveVendorEpic.js +1 -0
  42. package/lib/view/commonVendorView/vendorView/epics/twoFactorAuth/verifyUserEpic.d.ts +2 -2
  43. package/lib/view/commonVendorView/vendorView/epics/twoFactorAuth/verifyUserEpic.js +2 -2
  44. package/lib/view/commonVendorView/vendorView/vendorViewReducer.d.ts +4 -9
  45. package/lib/view/commonVendorView/vendorView/vendorViewReducer.js +41 -70
  46. package/lib/view/commonVendorView/vendorView/vendorViewSelector.js +2 -2
  47. package/lib/view/onboardingView/customerView/onboardingCustomerViewReducer.d.ts +2 -9
  48. package/lib/view/onboardingView/customerView/onboardingCustomerViewReducer.js +70 -102
  49. package/lib/view/people/changeZeniPersonRolesEpic.d.ts +1 -1
  50. package/lib/view/people/deletePersonEpic.d.ts +1 -1
  51. package/lib/view/people/invitePeopleEpic.d.ts +1 -1
  52. package/lib/view/people/inviteZeniPeopleEpic.d.ts +1 -1
  53. package/lib/view/people/resendInviteEpic.d.ts +1 -1
  54. package/lib/view/settingsView/epic/fetchBankAccountsListEpic.d.ts +22 -0
  55. package/lib/view/settingsView/epic/fetchBankAccountsListEpic.js +30 -0
  56. package/lib/view/settingsView/epic/fetchBankConnectionsViewEpic.d.ts +6 -0
  57. package/lib/view/settingsView/epic/fetchBankConnectionsViewEpic.js +14 -0
  58. package/lib/view/settingsView/epic/fetchMyProfileEpic.d.ts +43 -0
  59. package/lib/view/settingsView/epic/fetchMyProfileEpic.js +50 -0
  60. package/lib/view/settingsView/epic/fetchMyProfileViewEpic.d.ts +7 -0
  61. package/lib/view/settingsView/epic/fetchMyProfileViewEpic.js +17 -0
  62. package/lib/view/settingsView/settingsViewPayload.d.ts +8 -0
  63. package/lib/view/settingsView/settingsViewReducer.d.ts +13 -0
  64. package/lib/view/settingsView/settingsViewReducer.js +71 -0
  65. package/lib/view/settingsView/settingsViewSelector.d.ts +14 -0
  66. package/lib/view/settingsView/settingsViewSelector.js +119 -0
  67. package/lib/view/settingsView/settingsViewState.d.ts +12 -0
  68. package/lib/view/settingsView/settingsViewState.js +2 -0
  69. package/lib/view/settingsView/types/settingsViewSelectorTypes.d.ts +29 -0
  70. package/lib/view/settingsView/types/settingsViewSelectorTypes.js +2 -0
  71. package/lib/view/spendManagement/billPay/billDetailView/billDetailViewPayload.d.ts +3 -0
  72. package/lib/view/spendManagement/billPay/billDetailView/billDetailViewSelector.d.ts +5 -0
  73. package/lib/view/spendManagement/billPay/billDetailView/billDetailViewSelector.js +13 -2
  74. package/lib/view/spendManagement/billPay/billDetailView/epics/cancelAndDeleteBillEpic.d.ts +2 -1
  75. package/lib/view/spendManagement/billPay/billDetailView/epics/cancelAndDeleteBillEpic.js +19 -8
  76. package/lib/view/spendManagement/billPay/billDetailView/epics/deleteBillEpic.d.ts +2 -1
  77. package/lib/view/spendManagement/billPay/billDetailView/epics/deleteBillEpic.js +14 -4
  78. package/lib/view/spendManagement/billPay/billDetailView/epics/fetchBillDetailEpic.d.ts +2 -1
  79. package/lib/view/spendManagement/billPay/billDetailView/epics/fetchBillDetailEpic.js +5 -2
  80. package/lib/view/spendManagement/billPay/billList/billListPayload.d.ts +2 -0
  81. package/lib/view/spendManagement/billPay/billList/billListSelector.d.ts +3 -0
  82. package/lib/view/spendManagement/billPay/billList/billListSelector.js +10 -2
  83. package/lib/view/spendManagement/billPay/billList/fetchBillListPerTabEpic.d.ts +2 -1
  84. package/lib/view/spendManagement/billPay/billList/fetchBillListPerTabEpic.js +3 -1
  85. package/lib/view/spendManagement/billPay/billPayReview/billPayReviewSelector.d.ts +4 -0
  86. package/lib/view/spendManagement/billPay/billPayReview/billPayReviewSelector.js +31 -9
  87. package/lib/view/spendManagement/billPay/editBillView/editBillViewPayload.d.ts +4 -0
  88. package/lib/view/spendManagement/billPay/editBillView/editBillViewReducer.js +17 -0
  89. package/lib/view/spendManagement/billPay/editBillView/editBillViewSelector.d.ts +10 -2
  90. package/lib/view/spendManagement/billPay/editBillView/editBillViewSelector.js +59 -14
  91. package/lib/view/spendManagement/billPay/editBillView/editBillViewState.d.ts +28 -0
  92. package/lib/view/spendManagement/billPay/editBillView/editBillViewState.js +1 -0
  93. package/lib/view/spendManagement/billPay/editBillView/epics/fetchEditBillDetailPageEpic.js +3 -3
  94. package/lib/view/spendManagement/billPay/editBillView/epics/initializeBillToLocalStoreEpic.js +13 -2
  95. package/lib/view/spendManagement/billPay/editBillView/epics/parseInvoiceToBillEpic.js +3 -2
  96. package/lib/view/spendManagement/billPay/editBillView/epics/saveBillDetailEpic.d.ts +11 -24
  97. package/lib/view/spendManagement/billPay/editBillView/epics/saveBillDetailEpic.js +100 -14
  98. package/lib/view/spendManagement/chargeCards/chargeCardConfig/chargeCardConfigPayload.d.ts +2 -1
  99. package/lib/view/spendManagement/chargeCards/chargeCardConfig/chargeCardConfigReducer.js +4 -1
  100. package/lib/view/spendManagement/chargeCards/chargeCardConfig/chargeCardConfigState.d.ts +2 -2
  101. package/lib/view/spendManagement/chargeCards/chargeCardDetail/chargeCardDetail.d.ts +1 -0
  102. package/lib/view/spendManagement/chargeCards/chargeCardDetail/chargeCardDetail.js +4 -0
  103. package/lib/view/spendManagement/chargeCards/chargeCardDetail/chargeCardDetailReducer.d.ts +7 -0
  104. package/lib/view/spendManagement/chargeCards/chargeCardDetail/chargeCardDetailReducer.js +25 -2
  105. package/lib/view/spendManagement/chargeCards/chargeCardDetail/chargeCardDetailSelector.d.ts +3 -0
  106. package/lib/view/spendManagement/chargeCards/chargeCardDetail/chargeCardDetailSelector.js +6 -1
  107. package/lib/view/spendManagement/chargeCards/chargeCardDetail/updateChargeCardDetailEpic.d.ts +11 -0
  108. package/lib/view/spendManagement/chargeCards/chargeCardDetail/updateChargeCardDetailEpic.js +60 -0
  109. package/lib/view/spendManagement/commonHistoryView/commonHistory.d.ts +1 -0
  110. package/lib/view/spendManagement/commonHistoryView/commonHistoryPayload.d.ts +1 -0
  111. package/lib/view/spendManagement/commonHistoryView/commonHistoryPayload.js +9 -5
  112. package/lib/view/spendManagement/commonSetup/setupViewReducer.d.ts +2 -9
  113. package/lib/view/spendManagement/commonSetup/setupViewReducer.js +72 -104
  114. package/lib/view/spendManagement/helpers.d.ts +11 -1
  115. package/lib/view/spendManagement/helpers.js +134 -1
  116. package/lib/view/spendManagement/reimbursement/remiDetailView/remiDetailViewSelector.d.ts +1 -0
  117. package/lib/view/spendManagement/zeniAccounts/zeniAccountsConfig/zeniAccountsConfigPayload.d.ts +1 -0
  118. package/lib/view/spendManagement/zeniAccounts/zeniAccountsConfig/zeniAccountsConfigPayload.js +1 -0
  119. package/lib/view/spendManagement/zeniAccounts/zeniAccountsConfig/zeniAccountsConfigReducer.js +3 -1
  120. package/lib/view/spendManagement/zeniAccounts/zeniAccountsConfig/zeniAccountsConfigSelector.d.ts +1 -0
  121. package/lib/view/spendManagement/zeniAccounts/zeniAccountsConfig/zeniAccountsConfigSelector.js +2 -1
  122. package/lib/view/spendManagement/zeniAccounts/zeniAccountsConfig/zeniAccountsConfigState.d.ts +1 -0
  123. package/lib/view/twoFactorAuthentication/resendOtpEpic.d.ts +10 -0
  124. package/lib/view/twoFactorAuthentication/resendOtpEpic.js +90 -0
  125. package/lib/view/twoFactorAuthentication/sendOtpEpic.d.ts +10 -0
  126. package/lib/view/twoFactorAuthentication/sendOtpEpic.js +93 -0
  127. package/lib/view/twoFactorAuthentication/twoFactorAuthentication.d.ts +16 -0
  128. package/lib/view/twoFactorAuthentication/twoFactorAuthentication.js +2 -0
  129. package/lib/view/twoFactorAuthentication/twoFactorAuthenticationPayload.d.ts +19 -0
  130. package/lib/view/twoFactorAuthentication/twoFactorAuthenticationPayload.js +11 -0
  131. package/lib/view/twoFactorAuthentication/twoFactorAuthenticationReducer.d.ts +21 -0
  132. package/lib/view/twoFactorAuthentication/twoFactorAuthenticationReducer.js +101 -0
  133. package/lib/view/twoFactorAuthentication/verifyOtpEpic.d.ts +10 -0
  134. package/lib/view/twoFactorAuthentication/verifyOtpEpic.js +90 -0
  135. package/package.json +5 -4
  136. package/lib/view/commonVendorView/vendorView/epics/twoFactorAuth/vendorViewResendOtpEpic.d.ts +0 -7
  137. package/lib/view/commonVendorView/vendorView/epics/twoFactorAuth/vendorViewResendOtpEpic.js +0 -24
  138. package/lib/view/commonVendorView/vendorView/epics/twoFactorAuth/vendorViewSendOtpEpic.d.ts +0 -7
  139. package/lib/view/commonVendorView/vendorView/epics/twoFactorAuth/vendorViewSendOtpEpic.js +0 -26
  140. package/lib/view/commonVendorView/vendorView/epics/twoFactorAuth/vendorViewVerifyOtpEpic.d.ts +0 -7
  141. package/lib/view/commonVendorView/vendorView/epics/twoFactorAuth/vendorViewVerifyOtpEpic.js +0 -28
  142. package/lib/view/onboardingView/customerView/epic/twoFactorAuthentication/resendOnboardingOfficerOtpEpic.d.ts +0 -7
  143. package/lib/view/onboardingView/customerView/epic/twoFactorAuthentication/resendOnboardingOfficerOtpEpic.js +0 -24
  144. package/lib/view/onboardingView/customerView/epic/twoFactorAuthentication/sendOnboardingOfficerOtpEpic.d.ts +0 -7
  145. package/lib/view/onboardingView/customerView/epic/twoFactorAuthentication/sendOnboardingOfficerOtpEpic.js +0 -27
  146. package/lib/view/onboardingView/customerView/epic/twoFactorAuthentication/verifyOnboardingOfficerOtpEpic.d.ts +0 -7
  147. package/lib/view/onboardingView/customerView/epic/twoFactorAuthentication/verifyOnboardingOfficerOtpEpic.js +0 -30
  148. package/lib/view/spendManagement/commonSetup/epic/twoFactorAuthentication/resendOtpEpic.d.ts +0 -7
  149. package/lib/view/spendManagement/commonSetup/epic/twoFactorAuthentication/resendOtpEpic.js +0 -23
  150. package/lib/view/spendManagement/commonSetup/epic/twoFactorAuthentication/sendOtpEpic.d.ts +0 -7
  151. package/lib/view/spendManagement/commonSetup/epic/twoFactorAuthentication/sendOtpEpic.js +0 -26
  152. package/lib/view/spendManagement/commonSetup/epic/twoFactorAuthentication/verifyOtpEpic.d.ts +0 -7
  153. package/lib/view/spendManagement/commonSetup/epic/twoFactorAuthentication/verifyOtpEpic.js +0 -27
  154. package/lib/view/spendManagement/commonSetup/types/twoFactorAuthentication.d.ts +0 -10
  155. /package/lib/view/{spendManagement/commonSetup/types/twoFactorAuthentication.js → settingsView/settingsViewPayload.js} +0 -0
@@ -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;
@@ -9,7 +9,7 @@ export interface AccountBasePayload {
9
9
  account_name: string;
10
10
  account_type?: string | null;
11
11
  account_sub_type?: string | null;
12
- account_description?: string;
12
+ account_description?: string | null;
13
13
  last_4_digits?: string | null;
14
14
  logo?: URLPayload;
15
15
  qbo_id?: string;
@@ -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;
@@ -18,6 +18,7 @@ export interface ChargeCard {
18
18
  addressId: ID;
19
19
  cardHolderUserId: ID;
20
20
  status: CardStatus;
21
+ cardColorCode?: string;
21
22
  createTime?: ZeniDate;
22
23
  updateTime?: ZeniDate;
23
24
  }
@@ -28,8 +29,8 @@ export interface CreditLimitFrequency {
28
29
  code: CreditLimitFrequencyCodeType;
29
30
  name: string;
30
31
  }
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;
32
+ export declare const toCreditLimitFrequencyCodeType: (v: string) => "weekly" | "monthly" | "quarterly" | "daily" | "yearly";
33
+ export declare const toCreditLimitFrequencyCodeTypeStrict: (v?: string | undefined) => "weekly" | "monthly" | "quarterly" | "daily" | "yearly" | undefined;
33
34
  export declare type CreditLimitFrequencyCodeType = ReturnType<typeof toCreditLimitFrequencyCodeType>;
34
35
  export interface CardStatus {
35
36
  code: CardStatusCodeType;
@@ -1,3 +1,4 @@
1
+ import { AllowedValueWithCode } from '../../commonStateTypes/allowedValue';
1
2
  import { AddressPayload } from '../address/addressPayload';
2
3
  import { ChargeCard } from './chargeCard';
3
4
  export interface ChargeCardPayload {
@@ -10,7 +11,7 @@ export interface ChargeCardPayload {
10
11
  available_amount: number;
11
12
  currency_code: string;
12
13
  currency_symbol: string;
13
- credit_limit_frequency: CreditLimitFrequencyPayload;
14
+ credit_limit_frequency: AllowedValueWithCode;
14
15
  card_provider: string;
15
16
  provider_card_id: string;
16
17
  provider_card_type: string;
@@ -18,20 +19,9 @@ export interface ChargeCardPayload {
18
19
  expiration_date: string;
19
20
  address: AddressPayload;
20
21
  holder_user_id: string;
21
- status: ChargeCardStatusPayload;
22
+ status: AllowedValueWithCode;
23
+ card_color_code?: string | null;
22
24
  create_time: string | null;
23
25
  update_time: string | null;
24
26
  }
25
- export interface CreditLimitFrequencyPayload {
26
- code: string;
27
- name: string;
28
- }
29
- export interface ChargeCardStatusPayload {
30
- code: string;
31
- name: string;
32
- }
33
27
  export declare const mapChargeCardPayloadToChargeCard: (payload: ChargeCardPayload) => ChargeCard;
34
- export interface DepositAccountTypePayload {
35
- code: string;
36
- name: string;
37
- }
@@ -28,6 +28,7 @@ const mapChargeCardPayloadToChargeCard = (payload) => ({
28
28
  code: (0, chargeCard_1.toCardStatusCodeType)(payload.status.code),
29
29
  name: payload.status.name,
30
30
  },
31
+ cardColorCode: payload.card_color_code != null ? payload.card_color_code : undefined,
31
32
  createTime: payload.create_time != null ? (0, zeniDayJS_1.date)(payload.create_time) : undefined,
32
33
  updateTime: payload.update_time != null ? (0, zeniDayJS_1.date)(payload.update_time) : undefined,
33
34
  });
@@ -1,8 +1,9 @@
1
1
  import { BalancePayload } from '../../commonPayloadTypes/balanceChangePayload';
2
+ import { AllowedValueWithCode } from '../../commonStateTypes/allowedValue';
2
3
  import { DepositAccount } from './depositAccount';
3
4
  export interface DepositAccountPayload {
4
5
  deposit_account_id: string;
5
- account_sub_type: DepositAccountTypePayload;
6
+ account_sub_type: AllowedValueWithCode;
6
7
  apy: string | null;
7
8
  account_name: string;
8
9
  account_number: string;
@@ -15,7 +16,3 @@ export interface DepositAccountPayload {
15
16
  }
16
17
  export declare const mapDepositAccountPayloadToDepositAccountState: (payload: DepositAccountPayload) => DepositAccount;
17
18
  export declare const getZeniAccountFallbackName: (maskedAccountNumber?: string | undefined, accountType?: string | undefined) => string;
18
- export interface DepositAccountTypePayload {
19
- code: string;
20
- name: string;
21
- }
@@ -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;
@@ -39,6 +39,7 @@ export interface PaymentAccountPayload {
39
39
  };
40
40
  is_verified: boolean;
41
41
  zeni_mapped_account_id: string | null;
42
+ bank_account_id?: string | null;
42
43
  is_login_required: boolean | null;
43
44
  is_primary_for_onboarding: boolean | null;
44
45
  is_primary_for_bill_pay: boolean;
@@ -6,7 +6,7 @@ const amount_1 = require("../../commonStateTypes/amount");
6
6
  const zeniDayJS_1 = require("../../zeniDayJS");
7
7
  const companyPayload_1 = require("../company/companyPayload");
8
8
  const toPaymentAccount = (payload) => {
9
- var _a;
9
+ var _a, _b;
10
10
  return {
11
11
  paymentAccountId: payload.payment_account_id,
12
12
  providerAccountId: payload.provider_account_id,
@@ -37,6 +37,7 @@ const toPaymentAccount = (payload) => {
37
37
  : undefined,
38
38
  isVerified: payload.is_verified,
39
39
  zeniAccountId: (_a = payload.zeni_mapped_account_id) !== null && _a !== void 0 ? _a : '',
40
+ bankAccountId: (_b = payload.bank_account_id) !== null && _b !== void 0 ? _b : undefined,
40
41
  updateTime: (0, zeniDayJS_1.date)(payload.update_time),
41
42
  createTime: (0, zeniDayJS_1.date)(payload.create_time),
42
43
  };
@@ -2,3 +2,5 @@ import { ID } from '../../commonStateTypes/common';
2
2
  import { PaymentAccount, PaymentAccountState } from './paymentAccountState';
3
3
  export declare function getPaymentAccountsByPaymentAccountIds(paymentAccountState: PaymentAccountState, paymentAccountIds: ID[]): PaymentAccount[];
4
4
  export declare function getPaymentAccountByPaymentAccountId(paymentAccountState: PaymentAccountState, PaymentAccountId: ID): PaymentAccount | undefined;
5
+ export declare function getPaymentAccountByBankAccountId(paymentAccountState: PaymentAccountState, bankAccountId: ID): PaymentAccount | undefined;
6
+ export declare function getPaymentAccountsByBankAccountIds(paymentAccountState: PaymentAccountState, bankAccountIds: ID[]): PaymentAccount[];
@@ -3,8 +3,9 @@ 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.getPaymentAccountByPaymentAccountId = exports.getPaymentAccountsByPaymentAccountIds = void 0;
6
+ exports.getPaymentAccountsByBankAccountIds = exports.getPaymentAccountByBankAccountId = exports.getPaymentAccountByPaymentAccountId = exports.getPaymentAccountsByPaymentAccountIds = void 0;
7
7
  const get_1 = __importDefault(require("lodash/get"));
8
+ const lodash_1 = require("lodash");
8
9
  function getPaymentAccountsByPaymentAccountIds(paymentAccountState, paymentAccountIds) {
9
10
  const paymentAccounts = paymentAccountIds
10
11
  .map((paymentAccountId) => getPaymentAccountByPaymentAccountId(paymentAccountState, paymentAccountId))
@@ -16,3 +17,15 @@ function getPaymentAccountByPaymentAccountId(paymentAccountState, PaymentAccount
16
17
  return (0, get_1.default)(paymentAccountState.paymentAccountByID, PaymentAccountId, undefined);
17
18
  }
18
19
  exports.getPaymentAccountByPaymentAccountId = getPaymentAccountByPaymentAccountId;
20
+ function getPaymentAccountByBankAccountId(paymentAccountState, bankAccountId) {
21
+ const allPaymentAccounts = (0, lodash_1.values)(paymentAccountState.paymentAccountByID);
22
+ return allPaymentAccounts.find((account) => account.bankAccountId === bankAccountId);
23
+ }
24
+ exports.getPaymentAccountByBankAccountId = getPaymentAccountByBankAccountId;
25
+ function getPaymentAccountsByBankAccountIds(paymentAccountState, bankAccountIds) {
26
+ const paymentAccounts = bankAccountIds
27
+ .map((bankAccountId) => getPaymentAccountByBankAccountId(paymentAccountState, bankAccountId))
28
+ .filter((value) => value != null);
29
+ return paymentAccounts;
30
+ }
31
+ exports.getPaymentAccountsByBankAccountIds = getPaymentAccountsByBankAccountIds;
@@ -31,6 +31,7 @@ export interface PaymentAccount {
31
31
  isPrimaryForOnboarding: boolean;
32
32
  isPrimaryForBillPay: boolean;
33
33
  zeniAccountId: ID;
34
+ bankAccountId?: ID;
34
35
  updateTime: ZeniDate;
35
36
  createTime: ZeniDate;
36
37
  }
@@ -1,4 +1,4 @@
1
- export declare const toSnackbarMessageSection: (v: string) => "common" | "transactionDetails_updatingPastTransactions" | "transactionDetails_transactionUpdated" | "cockpit_monthEndEmailSent" | "cockpit_monthEndEmailSave" | "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_setup" | "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" | "bill_pay_setup" | "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" | "zeni_account_accept_term" | "update_vendor" | "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" | "create_global_merchant" | "fetch_global_merchant_no_recommendation" | "save_vendor_renamed" | "save_vendor_sent_for_review" | "charge_card_setup" | "charge_card_accept_term";
1
+ export declare const toSnackbarMessageSection: (v: string) => "common" | "transactionDetails_updatingPastTransactions" | "transactionDetails_transactionUpdated" | "cockpit_monthEndEmailSent" | "cockpit_monthEndEmailSave" | "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_setup" | "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" | "bill_pay_setup" | "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" | "zeni_account_accept_term" | "update_vendor" | "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" | "create_global_merchant" | "fetch_global_merchant_no_recommendation" | "save_vendor_renamed" | "save_vendor_sent_for_review" | "charge_card_setup" | "charge_card_accept_term" | "update_charge_card";
2
2
  export declare type SnackbarMessageSections = ReturnType<typeof toSnackbarMessageSection>;
3
3
  export declare const toSnackbarMessageSectionTexts: (v: string) => "failed" | "success";
4
4
  export declare type SnackbarMessageSectionTexts = ReturnType<typeof toSnackbarMessageSectionTexts>;
@@ -80,6 +80,7 @@ const ALL_SNACKBAR_MESSAGE_SECTIONS = [
80
80
  'save_vendor_sent_for_review',
81
81
  'charge_card_setup',
82
82
  'charge_card_accept_term',
83
+ 'update_charge_card',
83
84
  ];
84
85
  const toSnackbarMessageSection = (v) => (0, stringToUnion_1.stringToUnion)(v, ALL_SNACKBAR_MESSAGE_SECTIONS);
85
86
  exports.toSnackbarMessageSection = toSnackbarMessageSection;
@@ -22,6 +22,7 @@ import { clearAllInsights } from '../insights/insightReducer';
22
22
  import { clearInsightsCard } from '../../view/insightsCard/insightsCardReducer';
23
23
  import { clearAllForecasts } from '../forecast/forecastReducer';
24
24
  import { clearPeople } from '../../view/people/peopleReducer';
25
+ import { clearSettingsView } from '../../view/settingsView/settingsViewReducer';
25
26
  import { clearAllUsers } from '../user/userReducer';
26
27
  import { clearAllUserRoles } from '../userRole/userRoleReducer';
27
28
  import { clearReportUIOption } from '../../view/reportUIOptions/reportUIOptionsReducer';
@@ -74,6 +75,7 @@ import { clearRevenueClassesView } from '../../view/revenueClassesView/revenueCl
74
75
  import { clearBillPaySetupApproverView } from '../../view/spendManagement/billPay/billPaySetupApproverView/billPaySetupApproverViewReducer';
75
76
  import { clearAllOnboardingCustomersInfo } from '../onboardingCustomer/onboardingCustomerReducer';
76
77
  import { clearOnboardingCockpitView } from '../../view/onboardingView/cockpitView/onboardingCockpitViewReducer';
78
+ import { clearAllRecurringBills } from '../billPay/recurringBills/recurringBillsReducer';
77
79
  import { clearAllReimbursements } from '../reimbursement/reimbursementReducer';
78
80
  import { clearRemiDetailView } from '../../view/spendManagement/reimbursement/remiDetailView/remiDetailViewReducer';
79
81
  import { clearAllMerchants } from '../merchant/merchantReducer';
@@ -133,8 +135,9 @@ import { clearChargeCardList } from '../../view/spendManagement/chargeCards/char
133
135
  import { clearChargeCardDetail } from '../../view/spendManagement/chargeCards/chargeCardDetail/chargeCardDetailReducer';
134
136
  import { clearChargeCardSetupView } from '../../view/spendManagement/chargeCards/chargeCardSetUp/chargeCardSetUpViewReducer';
135
137
  import { clearZeniAccountsConfig } from '../../view/spendManagement/zeniAccounts/zeniAccountsConfig/zeniAccountsConfigReducer';
136
- 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
+ import { clearTwoFactorAuthentication } from '../../view/twoFactorAuthentication/twoFactorAuthenticationReducer';
139
+ 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 clearSettingsView> | 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 clearTwoFactorAuthentication> | 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>;
140
+ 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
141
  export declare type ActionType = clearActionTypeForViews | clearActionTypeForEntities | ReturnType<typeof clearAll>;
139
142
  export declare const clearAllEpic: (actions$: ActionsObservable<ActionType>) => import("rxjs").Observable<ActionType>;
140
143
  export {};