@zeniai/client-epic-state 4.15.41 → 4.15.43

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 (235) hide show
  1. package/README.md +1 -19
  2. package/lib/commonPayloadTypes/recommendationPayload.d.ts +0 -1
  3. package/lib/commonStateTypes/common.d.ts +1 -1
  4. package/lib/commonStateTypes/fiscalYearHelpers/getFYMonths.d.ts +2 -2
  5. package/lib/commonStateTypes/fiscalYearHelpers/getFYQuarterAndYear.d.ts +2 -2
  6. package/lib/commonStateTypes/timePeriod.d.ts +7 -7
  7. package/lib/commonStateTypes/timePeriod.js +2 -2
  8. package/lib/commonStateTypes/viewAndReport/agingReportStateTypes.d.ts +1 -1
  9. package/lib/commonStateTypes/viewAndReport/agingReportStateTypes.js +1 -1
  10. package/lib/commonStateTypes/viewAndReport/viewAndReport.d.ts +2 -2
  11. package/lib/commonStateTypes/viewAndReport/viewAndReport.js +0 -1
  12. package/lib/configureStore.js +1 -2
  13. package/lib/entity/account/accountSelector.d.ts +3 -3
  14. package/lib/entity/account/accountState.d.ts +1 -1
  15. package/lib/entity/account/pickAndMergeForecastAccountReport.d.ts +1 -1
  16. package/lib/entity/accountGroup/accountGroupSelector.d.ts +22 -22
  17. package/lib/entity/accountGroup/accountGroupState.d.ts +1 -1
  18. package/lib/entity/approvalRule/approvalRuleState.d.ts +2 -2
  19. package/lib/entity/billPay/billTransaction/billTransactionState.d.ts +4 -4
  20. package/lib/entity/chargeCard/chargeCard.d.ts +1 -1
  21. package/lib/entity/chargeCardTransaction/chargeCardTransaction.d.ts +1 -1
  22. package/lib/entity/class/classReducer.d.ts +4 -4
  23. package/lib/entity/class/classState.d.ts +1 -1
  24. package/lib/entity/company/companyReducer.js +1 -0
  25. package/lib/entity/customer/customerPayload.d.ts +1 -1
  26. package/lib/entity/customer/customerPayload.js +6 -16
  27. package/lib/entity/depositAccountTransaction/depositAccountTransaction.d.ts +1 -1
  28. package/lib/entity/entityApprovalStatus/entityApprovalStatusState.d.ts +2 -2
  29. package/lib/entity/file/fileState.d.ts +3 -3
  30. package/lib/entity/forecast/forecastState.d.ts +1 -1
  31. package/lib/entity/jeSchedules/jeSchedulesReducer.d.ts +2 -2
  32. package/lib/entity/jeSchedules/jeSchedulesTypes.d.ts +2 -2
  33. package/lib/entity/notification/types/notificationTypes.d.ts +2 -2
  34. package/lib/entity/sectionAccountsView/sectionAccountsView.d.ts +1 -1
  35. package/lib/entity/sectionClassesViewV2/sectionClassesView.d.ts +1 -1
  36. package/lib/entity/sectionClassesViewV2/sectionClassesViewReducer.d.ts +2 -2
  37. package/lib/entity/snackbar/snackbarTypes.d.ts +2 -2
  38. package/lib/entity/snackbar/snackbarTypes.js +0 -4
  39. package/lib/entity/task/taskState.d.ts +3 -3
  40. package/lib/entity/tenant/clearAllEpic.d.ts +2 -4
  41. package/lib/entity/tenant/clearAllEpic.js +0 -4
  42. package/lib/entity/tenant/tenantReducer.d.ts +2 -2
  43. package/lib/entity/tenant/tenantReducer.js +1 -0
  44. package/lib/entity/transaction/payloadTypes/customerTransactionPayload.d.ts +1 -1
  45. package/lib/entity/transaction/payloadTypes/customerTransactionPayload.js +2 -1
  46. package/lib/entity/transaction/payloadTypes/transactionPayload.d.ts +0 -2
  47. package/lib/entity/transaction/payloadTypes/transactionPayload.js +6 -9
  48. package/lib/entity/transaction/payloadTypes/vendorTransactionPayload.d.ts +1 -9
  49. package/lib/entity/transaction/payloadTypes/vendorTransactionPayload.js +2 -24
  50. package/lib/entity/transaction/stateTypes/attachment.d.ts +2 -2
  51. package/lib/entity/transaction/stateTypes/transaction.d.ts +1 -3
  52. package/lib/entity/transaction/stateTypes/transactionType.d.ts +1 -1
  53. package/lib/entity/transaction/stateTypes/transactionType.js +1 -1
  54. package/lib/entity/transaction/stateTypes/vendorTransaction.d.ts +0 -5
  55. package/lib/entity/transaction/stateTypes/vendorTransaction.js +1 -5
  56. package/lib/entity/transaction/toSupportedTransaction.js +1 -6
  57. package/lib/entity/transaction/transactionReducer.d.ts +0 -17
  58. package/lib/entity/transaction/transactionReducer.js +2 -47
  59. package/lib/entity/transaction/transactionSelector.d.ts +0 -2
  60. package/lib/entity/transaction/transactionSelector.js +0 -5
  61. package/lib/entity/transaction/transactionState.d.ts +4 -6
  62. package/lib/entity/vendorExpense/vendorExpenseReducer.js +1 -0
  63. package/lib/entity/vendorExpense/vendorExpenseSelector.d.ts +2 -2
  64. package/lib/epic.d.ts +1 -6
  65. package/lib/epic.js +1 -6
  66. package/lib/index.d.ts +12 -20
  67. package/lib/index.js +27 -56
  68. package/lib/init.d.ts +1 -2
  69. package/lib/init.js +2 -9
  70. package/lib/reducer.d.ts +1 -7
  71. package/lib/reducer.js +0 -6
  72. package/lib/view/accountList/accountListReducer.js +3 -1
  73. package/lib/view/accountMappingView/accountMappingReducer.js +1 -0
  74. package/lib/view/apAgingView/apAgingDetail/apAgingDetailReducer.js +2 -1
  75. package/lib/view/auditReportView/auditReportViewReducer.d.ts +2 -2
  76. package/lib/view/auditReportView/auditReportViewState.d.ts +2 -2
  77. package/lib/view/balanceSheet/balanceSheetReducer.js +6 -1
  78. package/lib/view/bankAccountView/bankAccountViewReducer.js +1 -0
  79. package/lib/view/billPayCard/billPayCardSelector.d.ts +2 -2
  80. package/lib/view/cardBalance/cardBalanceSelector.d.ts +3 -3
  81. package/lib/view/cashBalance/cashBalanceSelector.d.ts +3 -3
  82. package/lib/view/cashFlow/cashFlowReducer.js +4 -1
  83. package/lib/view/cashInCashOut/cashInCashOutSelector.d.ts +2 -2
  84. package/lib/view/cashPosition/cashPositionReducer.js +1 -0
  85. package/lib/view/cashPosition/cashPositionSelector.d.ts +2 -2
  86. package/lib/view/common/reportsHelpers.d.ts +1 -1
  87. package/lib/view/commonVendorView/transactionVendorView/epics/saveTransactionVendorEpic.js +0 -7
  88. package/lib/view/commonVendorView/vendorView/epics/fetchAndUpdateVendorRecommendationsEpic.js +3 -1
  89. package/lib/view/commonVendorView/vendorsTabVendorView/vendorsTabVendorViewReducer.d.ts +2 -2
  90. package/lib/view/companyTaskManagerView/companyTaskManagerViewReducer.d.ts +2 -2
  91. package/lib/view/companyView/companyViewReducer.d.ts +1 -1
  92. package/lib/view/companyView/companyViewReducer.js +10 -1
  93. package/lib/view/companyView/types/cockpitTypes.d.ts +3 -3
  94. package/lib/view/companyView/types/companyPassport/companyUsersLocalData.d.ts +1 -1
  95. package/lib/view/dashboard/dashboardEpic.js +2 -0
  96. package/lib/view/dashboard/dashboardReducer.d.ts +2 -2
  97. package/lib/view/expenseAutomationView/epics/common/fetchAllExpenseAutomationTabsEpic.d.ts +1 -2
  98. package/lib/view/expenseAutomationView/epics/common/fetchAllExpenseAutomationTabsEpic.js +10 -24
  99. package/lib/view/expenseAutomationView/epics/common/refreshExpenseAutomationCurrentTabEpic.d.ts +1 -2
  100. package/lib/view/expenseAutomationView/epics/common/refreshExpenseAutomationCurrentTabEpic.js +0 -14
  101. package/lib/view/expenseAutomationView/epics/transactionCategorization/updateTransactionCategorizationEpic.js +7 -30
  102. package/lib/view/expenseAutomationView/expenseAutomationViewReducer.d.ts +2 -2
  103. package/lib/view/expenseAutomationView/expenseAutomationViewReducer.js +5 -1
  104. package/lib/view/expenseAutomationView/expenseAutomationViewSelector.js +2 -17
  105. package/lib/view/expenseAutomationView/expenseAutomationViewState.d.ts +2 -2
  106. package/lib/view/expenseAutomationView/expenseAutomationViewState.js +1 -1
  107. package/lib/view/expenseAutomationView/helpers/saveTransactionHelper.js +42 -98
  108. package/lib/view/expenseAutomationView/helpers/transactionCategorizationLocalDataHelper.d.ts +1 -1
  109. package/lib/view/expenseAutomationView/helpers/transactionCategorizationLocalDataHelper.js +10 -86
  110. package/lib/view/expenseAutomationView/reducers/jeSchedulesViewReducer.d.ts +11 -11
  111. package/lib/view/expenseAutomationView/reducers/transactionsViewReducer.d.ts +1 -12
  112. package/lib/view/expenseAutomationView/reducers/transactionsViewReducer.js +7 -66
  113. package/lib/view/expenseAutomationView/selectorTypes/expenseAutomationViewSelectorTypes.d.ts +0 -2
  114. package/lib/view/expenseAutomationView/selectorTypes/expenseAutomationViewSelectorTypes.js +1 -1
  115. package/lib/view/expenseAutomationView/selectors/jeSchedulesViewSelector.js +2 -5
  116. package/lib/view/expenseAutomationView/types/fluxAnalysisViewState.d.ts +1 -1
  117. package/lib/view/expenseAutomationView/types/missingReceiptsViewState.d.ts +1 -1
  118. package/lib/view/expenseAutomationView/types/transactionsViewState.d.ts +2 -12
  119. package/lib/view/financeStatement/financeStatementReducer.d.ts +1 -1
  120. package/lib/view/financeStatement/financeStatementReducer.js +4 -1
  121. package/lib/view/globalMerchantView/globalMerchantViewReducer.d.ts +4 -4
  122. package/lib/view/netBurnOrIncome/netBurnOrIncomeReducer.js +10 -3
  123. package/lib/view/netBurnOrIncomeClassesView/netBurnOrIncomeClassesViewReducer.js +6 -1
  124. package/lib/view/netBurnOrIncomeStoryCard/netBurnOrIncomeStoryCardReducer.js +1 -0
  125. package/lib/view/netBurnOrIncomeStoryCard/netBurnOrIncomeStoryCardState.d.ts +1 -1
  126. package/lib/view/notificationView/notificationViewReducer.d.ts +8 -8
  127. package/lib/view/notificationView/notificationViewState.d.ts +2 -2
  128. package/lib/view/onboardingView/cockpitView/onboardingCockpitViewReducer.js +3 -0
  129. package/lib/view/onboardingView/customerView/onboardingCustomerViewReducer.d.ts +2 -2
  130. package/lib/view/opEx/opExForTimeFrameEpic.js +1 -1
  131. package/lib/view/opEx/opExReducer.js +14 -4
  132. package/lib/view/opExByVendor/opExByVendorReducer.js +3 -1
  133. package/lib/view/opExByVendor/opExByVendorState.d.ts +1 -1
  134. package/lib/view/opExClassesView/opExClassesViewReducer.js +6 -1
  135. package/lib/view/people/fetchPeopleEpic.js +3 -1
  136. package/lib/view/people/invitePeopleEpic.js +3 -1
  137. package/lib/view/people/inviteZeniPeopleEpic.js +3 -1
  138. package/lib/view/people/peopleReducer.js +1 -0
  139. package/lib/view/people/peopleSaveUpdatesEpic.js +1 -1
  140. package/lib/view/profitAndLoss/profitAndLossReducer.js +6 -1
  141. package/lib/view/profitAndLossClassesView/profitAndLossClassesViewReducer.js +6 -1
  142. package/lib/view/recommendation/recommendationReducer.js +4 -1
  143. package/lib/view/referralView/referralState.d.ts +1 -1
  144. package/lib/view/reimbursementCard/reimbursementCardSelector.d.ts +2 -2
  145. package/lib/view/reportUIOptions/reportUIOptionsReducer.d.ts +8 -8
  146. package/lib/view/reportUIOptions/updateReportUIOptionThisPeriodEpic.js +3 -1
  147. package/lib/view/revenue/revenueReducer.js +10 -3
  148. package/lib/view/revenueClassesView/revenueClassesViewReducer.js +6 -1
  149. package/lib/view/scheduleView/scheduleAccruedDetailView/LinkBillExpenseView/linkBillExpense.d.ts +1 -1
  150. package/lib/view/scheduleView/scheduleDetailView/scheduleDetailReducer.d.ts +4 -4
  151. package/lib/view/scheduleView/scheduleListView/scheduleListTypes.d.ts +2 -2
  152. package/lib/view/settingsView/settingsViewReducer.js +1 -0
  153. package/lib/view/settingsView/settingsViewState.d.ts +1 -1
  154. package/lib/view/spendManagement/billPay/billList/billListReducer.d.ts +1 -1
  155. package/lib/view/spendManagement/billPay/billList/billListReducer.js +1 -0
  156. package/lib/view/spendManagement/billPay/billList/billListState.d.ts +2 -2
  157. package/lib/view/spendManagement/billPay/billPayConfig/billPayConfigState.d.ts +1 -1
  158. package/lib/view/spendManagement/billPay/billPayConfig/billPayConfigState.js +6 -0
  159. package/lib/view/spendManagement/billPay/billsBulkActionView/billsBulkActionViewReducer.d.ts +2 -2
  160. package/lib/view/spendManagement/billPay/billsBulkActionView/epics/validateBillsBulkActionEpic.ts.js +3 -4
  161. package/lib/view/spendManagement/billPay/editBillView/epics/fetchBillAndInitializeLocalStoreEpic.js +3 -1
  162. package/lib/view/spendManagement/chargeCards/chargeCardDetail/chargeCardDetail.d.ts +2 -2
  163. package/lib/view/spendManagement/commonHistoryView/commonHistory.d.ts +1 -1
  164. package/lib/view/spendManagement/commonSetup/setupViewReducer.d.ts +7 -7
  165. package/lib/view/spendManagement/commonSetup/setupViewState.d.ts +1 -1
  166. package/lib/view/spendManagement/plaidAccount/epic/plaidConnection/establishPlaidConnectionEpic.js +3 -11
  167. package/lib/view/spendManagement/plaidAccount/plaidAccountViewReducer.d.ts +10 -11
  168. package/lib/view/spendManagement/plaidAccount/plaidAccountViewReducer.js +1 -3
  169. package/lib/view/spendManagement/plaidAccount/plaidAccountViewState.d.ts +1 -1
  170. package/lib/view/spendManagement/reimbursement/editRemiView/epics/fetchRecommendationsAndUpdateMerchantRecommendationsEpic.js +6 -2
  171. package/lib/view/spendManagement/reimbursement/editRemiView/epics/fetchRemiAndInitializeLocalStoreEpic.js +3 -1
  172. package/lib/view/spendManagement/reimbursement/remiListView/remiListReducer.d.ts +1 -1
  173. package/lib/view/spendManagement/reimbursement/remiListView/remiListReducer.js +1 -0
  174. package/lib/view/spendManagement/reimbursement/remiListView/remiListState.d.ts +4 -4
  175. package/lib/view/spendManagement/reimbursement/remisBulkActionView/remisBulkActionViewReducer.d.ts +2 -2
  176. package/lib/view/subscriptionView/subscriptionViewReducer.js +1 -0
  177. package/lib/view/subscriptionView/types/subscriptionTypes.js +1 -0
  178. package/lib/view/taskManager/taskListView/epics/dragNDropTasksEpic.js +3 -1
  179. package/lib/view/taskManager/taskListView/taskList.d.ts +3 -3
  180. package/lib/view/taskManager/taskListView/taskListSelector.d.ts +1 -1
  181. package/lib/view/tasksCard/fetchTasksCardEpic.js +2 -1
  182. package/lib/view/tasksCard/tasksCardSelector.d.ts +2 -2
  183. package/lib/view/tasksCard/tasksCardSelector.js +1 -1
  184. package/lib/view/topEx/topExSelector.d.ts +3 -3
  185. package/lib/view/transactionDetail/epics/saveTransactionHelper.js +52 -45
  186. package/lib/view/transactionDetail/epics/updateTransactionDetailEpic.js +4 -22
  187. package/lib/view/transactionDetail/transactionDetailLocalDataHelper.js +13 -66
  188. package/lib/view/transactionDetail/transactionDetailReducer.d.ts +4 -13
  189. package/lib/view/transactionDetail/transactionDetailReducer.js +21 -51
  190. package/lib/view/transactionDetail/transactionDetailState.d.ts +2 -3
  191. package/lib/view/transactionDetail/transactionDetailTypes.d.ts +0 -8
  192. package/lib/view/transactionList/transactionListByEntitySelector.js +2 -0
  193. package/lib/view/transactionList/transactionListReducer.js +6 -4
  194. package/lib/view/trendWithTransactions/trendWithTransactionsReducer.js +1 -0
  195. package/lib/view/userFinancialAccount/userFinancialAccountReducer.js +3 -1
  196. package/lib/view/vendorFiling1099/vendorFiling1099List/vendorFiling1099ListState.d.ts +1 -1
  197. package/lib/view/vendorReviewView/vendorFirstReviewView/vendorFirstReviewViewState.d.ts +1 -1
  198. package/lib/view/vendorReviewView/vendorGlobalReviewView/vendorGlobalReviewViewState.d.ts +1 -1
  199. package/lib/zeniAPI.d.ts +0 -1
  200. package/lib/zeniUrl.d.ts +1 -1
  201. package/package.json +12 -13
  202. package/lib/entity/accountRecon/accountReconPayload.d.ts +0 -70
  203. package/lib/entity/accountRecon/accountReconPayload.js +0 -125
  204. package/lib/entity/accountRecon/accountReconReducer.d.ts +0 -16
  205. package/lib/entity/accountRecon/accountReconReducer.js +0 -71
  206. package/lib/entity/accountRecon/accountReconSelector.d.ts +0 -28
  207. package/lib/entity/accountRecon/accountReconSelector.js +0 -44
  208. package/lib/entity/accountRecon/accountReconState.d.ts +0 -70
  209. package/lib/entity/accountRecon/accountReconState.js +0 -28
  210. package/lib/entity/transaction/payloadTypes/reconciliationTransactionPayloads.d.ts +0 -35
  211. package/lib/entity/transaction/payloadTypes/reconciliationTransactionPayloads.js +0 -53
  212. package/lib/entity/transaction/stateTypes/reconciliationTransaction.d.ts +0 -32
  213. package/lib/entity/transaction/stateTypes/reconciliationTransaction.js +0 -10
  214. package/lib/view/expenseAutomationView/epics/accountRecon/fetchReconciliationViewEpic.d.ts +0 -15
  215. package/lib/view/expenseAutomationView/epics/accountRecon/fetchReconciliationViewEpic.js +0 -118
  216. package/lib/view/expenseAutomationView/epics/accountRecon/initialiseLocalDataForSelectedAccountIdEpic.d.ts +0 -10
  217. package/lib/view/expenseAutomationView/epics/accountRecon/initialiseLocalDataForSelectedAccountIdEpic.js +0 -49
  218. package/lib/view/expenseAutomationView/epics/accountRecon/saveReconciliationDetailEpic.d.ts +0 -14
  219. package/lib/view/expenseAutomationView/epics/accountRecon/saveReconciliationDetailEpic.js +0 -169
  220. package/lib/view/expenseAutomationView/epics/accountRecon/saveReconciliationReviewEpic.d.ts +0 -9
  221. package/lib/view/expenseAutomationView/epics/accountRecon/saveReconciliationReviewEpic.js +0 -154
  222. package/lib/view/expenseAutomationView/epics/accountRecon/updateReconcileTabLocalDataEpic.d.ts +0 -6
  223. package/lib/view/expenseAutomationView/epics/accountRecon/updateReconcileTabLocalDataEpic.js +0 -110
  224. package/lib/view/expenseAutomationView/helpers/reconciliationHelpers.d.ts +0 -7
  225. package/lib/view/expenseAutomationView/helpers/reconciliationHelpers.js +0 -18
  226. package/lib/view/expenseAutomationView/payload/reconciliationPayload.d.ts +0 -28
  227. package/lib/view/expenseAutomationView/payload/reconciliationPayload.js +0 -51
  228. package/lib/view/expenseAutomationView/reducers/reconciliationViewReducer.d.ts +0 -66
  229. package/lib/view/expenseAutomationView/reducers/reconciliationViewReducer.js +0 -384
  230. package/lib/view/expenseAutomationView/selectorTypes/reconciliationViewSelectorTypes.d.ts +0 -51
  231. package/lib/view/expenseAutomationView/selectorTypes/reconciliationViewSelectorTypes.js +0 -7
  232. package/lib/view/expenseAutomationView/selectors/reconciliationViewSelector.d.ts +0 -5
  233. package/lib/view/expenseAutomationView/selectors/reconciliationViewSelector.js +0 -254
  234. package/lib/view/expenseAutomationView/types/reconciliationViewState.d.ts +0 -103
  235. package/lib/view/expenseAutomationView/types/reconciliationViewState.js +0 -37
@@ -5,9 +5,9 @@ export declare const toScheduleListTabsFileTypeStrict: (v?: string) => "excel" |
5
5
  export type ScheduleListTabsFileType = NonNullable<ReturnType<typeof toScheduleListTabsFileTypeStrict>>;
6
6
  export declare const getScheduleListKey: (selectedCategory: ID, selectedTimeframe: TimeframeTick) => `${string}-${string}--${string}`;
7
7
  export type ScheduleListKey = ReturnType<typeof getScheduleListKey>;
8
- export declare const toScheduleSubTabType: (v: string) => "completed" | "new" | "ongoing" | "all";
8
+ export declare const toScheduleSubTabType: (v: string) => "all" | "new" | "completed" | "ongoing";
9
9
  export type ScheduleSubTabType = ReturnType<typeof toScheduleSubTabType>;
10
- declare const toScheduleSortKeyType: (v: string) => "months" | "vendor" | "status" | "amount" | "class" | "user" | "createTime" | "balanceAsOfToday" | "memo" | "assetId" | "transactionDate" | "transactionType" | "accruedExpenseCategory" | "scheduleCategory" | "expenseCategory" | "accumulatedDepreciationCategory" | "startMonth" | "endMonth";
10
+ declare const toScheduleSortKeyType: (v: string) => "status" | "user" | "months" | "class" | "vendor" | "amount" | "createTime" | "balanceAsOfToday" | "memo" | "assetId" | "transactionType" | "transactionDate" | "accruedExpenseCategory" | "scheduleCategory" | "expenseCategory" | "accumulatedDepreciationCategory" | "startMonth" | "endMonth";
11
11
  export declare type ScheduleListSortKey = ReturnType<typeof toScheduleSortKeyType>;
12
12
  export interface DownloadJEScheduleTabOptions {
13
13
  timezone: string;
@@ -93,6 +93,7 @@ const settings = (0, toolkit_1.createSlice)({
93
93
  reducer() {
94
94
  // Do nothing.
95
95
  },
96
+ // eslint-disable-next-line @typescript-eslint/no-inferrable-types
96
97
  prepare(companyId, shouldFetchClassList) {
97
98
  return { payload: { companyId, shouldFetchClassList } };
98
99
  },
@@ -15,7 +15,7 @@ export type ReminderTypeKey = ReturnType<typeof toReminderTypeKey>;
15
15
  export declare const toRemindersFrequencyType: (v: string) => "weekly" | "monthly" | "daily" | "bi-weekly";
16
16
  export type FrequencyTypeKey = ReturnType<typeof toRemindersFrequencyType>;
17
17
  export declare const NOTIFICATION_MODES: readonly ["email", "dashboard"];
18
- export declare const toNotificationMode: (v: string) => "dashboard" | "email";
18
+ export declare const toNotificationMode: (v: string) => "email" | "dashboard";
19
19
  export type NotificationModeKey = ReturnType<typeof toNotificationMode>;
20
20
  export interface MonthEndInsightsNotificationSettingsData {
21
21
  enabled: boolean | null;
@@ -21,7 +21,7 @@ export declare const fetchBillList: import("@reduxjs/toolkit").ActionCreatorWith
21
21
  period: TimePeriod;
22
22
  tab: "paid" | "pending_approval" | "scheduled" | "draft";
23
23
  error: ZeniAPIStatus<Record<string, unknown>>;
24
- }, "billList/updateBillListFailure", never, never>, updateTab: import("@reduxjs/toolkit").ActionCreatorWithPayload<"paid" | "pending_approval" | "scheduled" | "draft", "billList/updateTab">, updateSubTab: import("@reduxjs/toolkit").ActionCreatorWithPayload<"rejected" | "ach" | "wire" | "failed" | "cancelled" | "all" | "overdue" | "awaiting_approval" | "awaiting_my_approval" | "deleted" | "offline", "billList/updateSubTab">, updateSelectedBillId: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "billList/updateSelectedBillId">, clearBillList: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"billList/clearBillList">, updateBillDetailSaveBillCode: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<SaveBillStageCode, "billList/updateBillDetailSaveBillCode">, updateBillListUIState: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
24
+ }, "billList/updateBillListFailure", never, never>, updateTab: import("@reduxjs/toolkit").ActionCreatorWithPayload<"paid" | "pending_approval" | "scheduled" | "draft", "billList/updateTab">, updateSubTab: import("@reduxjs/toolkit").ActionCreatorWithPayload<"all" | "failed" | "offline" | "rejected" | "cancelled" | "ach" | "wire" | "overdue" | "awaiting_approval" | "awaiting_my_approval" | "deleted", "billList/updateSubTab">, updateSelectedBillId: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "billList/updateSelectedBillId">, clearBillList: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"billList/clearBillList">, updateBillDetailSaveBillCode: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<SaveBillStageCode, "billList/updateBillDetailSaveBillCode">, updateBillListUIState: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
25
25
  uiState: Partial<BillListUIState>;
26
26
  period: TimePeriod;
27
27
  }, "billList/updateBillListUIState">, updateSearchResult: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "billList/updateSearchResult">, updateFilterResult: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
@@ -163,6 +163,7 @@ function doUpdateBillList(draft, payload, tab) {
163
163
  const pendingApprovalTransactionIDs = payload.pending_approval_transaction_ids_for_user;
164
164
  const start = (0, timePeriod_1.toAbsoluteDay)(payload === null || payload === void 0 ? void 0 : payload.query.start_date); // eslint-disable-line @typescript-eslint/no-non-null-assertion
165
165
  const end = (0, timePeriod_1.toAbsoluteDay)(payload === null || payload === void 0 ? void 0 : payload.query.end_date); // eslint-disable-line @typescript-eslint/no-non-null-assertion
166
+ // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
166
167
  const key = (0, billListState_1.getBillListKey)({ start, end }, tab);
167
168
  draft[key] = Object.assign(Object.assign({}, billListState_1.billListInitialState), { uiState: draft[key] != null ? draft[key].uiState : billListState_1.billListInitialState.uiState, fetchState: 'Completed', error: undefined, transactionIDs,
168
169
  pendingApprovalTransactionIDs });
@@ -35,9 +35,9 @@ export type SaveBillStageCode = 'draft' | 'pending_approval' | undefined;
35
35
  export declare const ALL_BILL_TABS: readonly ["paid", "pending_approval", "scheduled", "draft"];
36
36
  declare const toBillTabType: (v: string) => "paid" | "pending_approval" | "scheduled" | "draft";
37
37
  export type BillTab = ReturnType<typeof toBillTabType>;
38
- declare const toBillsSubTabType: (v: string) => "rejected" | "ach" | "wire" | "failed" | "cancelled" | "all" | "overdue" | "awaiting_approval" | "awaiting_my_approval" | "deleted" | "offline";
38
+ declare const toBillsSubTabType: (v: string) => "all" | "failed" | "offline" | "rejected" | "cancelled" | "ach" | "wire" | "overdue" | "awaiting_approval" | "awaiting_my_approval" | "deleted";
39
39
  export type BillsSubTabType = ReturnType<typeof toBillsSubTabType>;
40
- declare const toBillPaySortKeyType: (v: string) => "status" | "amount" | "name" | "dueDate" | "paymentMethod" | "invoiceDate";
40
+ declare const toBillPaySortKeyType: (v: string) => "name" | "status" | "amount" | "dueDate" | "paymentMethod" | "invoiceDate";
41
41
  export declare type BillPayViewSortKey = ReturnType<typeof toBillPaySortKeyType>;
42
42
  export interface BillPayFilters {
43
43
  categoryCombinationOperator: CategoryCombinationOperator;
@@ -7,7 +7,7 @@ export declare const getBillPayConfigKey: (method: string, subMethod: string) =>
7
7
  type BillPayConfigKey = ReturnType<typeof getBillPayConfigKey>;
8
8
  export declare const getBillPayConfigMethodKey: (method: BillPaymentConfigCodeType, subMethod: BillPaymentSubConfigCodeKeyType, accType?: AccountTypeSubConfigCodeKeyType, internationalMethod?: InternationalWireMethodCodeKeyType, internationalSubMethod?: InternationalSubConfigCodeKeyType) => string;
9
9
  type VendorCurrencyConfig = Record<BillPayConfigKey, Currency[]>;
10
- export declare const toDynamicFeeType: (v: string) => "percent" | "fixed";
10
+ export declare const toDynamicFeeType: (v: string) => "fixed" | "percent";
11
11
  type DynamicFeeType = ReturnType<typeof toDynamicFeeType>;
12
12
  export interface BillPayConfigState extends FetchedState {
13
13
  methodById: Record<string, BillPayConfig>;
@@ -30,9 +30,11 @@ exports.BILL_PAYMENT_METHOD_CODE = [
30
30
  'wire',
31
31
  'outside-zeni',
32
32
  ];
33
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
33
34
  const toBillPaymentMethodCodeType = (v) => (0, stringToUnion_1.stringToUnion)(v, exports.BILL_PAYMENT_METHOD_CODE);
34
35
  exports.toBillPaymentMethodCodeType = toBillPaymentMethodCodeType;
35
36
  exports.PAYMENT_ACH_SUB_CODES = ['standard', 'same-day'];
37
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
36
38
  const toPaymentAchSubMethodCodeType = (v) => (0, stringToUnion_1.stringToUnion)(v, exports.PAYMENT_ACH_SUB_CODES);
37
39
  exports.toPaymentAchSubMethodCodeType = toPaymentAchSubMethodCodeType;
38
40
  const PAYMENT_ACH_SUB_CODES_KEYS = ['standard', 'sameDay'];
@@ -42,6 +44,7 @@ exports.BILL_PAYMENT_WIRE_SUB_CODES = [
42
44
  'us-domestic',
43
45
  'international',
44
46
  ];
47
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
45
48
  const toBillPaymentWireSubMethodCodeType = (v) => (0, stringToUnion_1.stringToUnion)(v, exports.BILL_PAYMENT_WIRE_SUB_CODES);
46
49
  exports.toBillPaymentWireSubMethodCodeType = toBillPaymentWireSubMethodCodeType;
47
50
  const BILL_PAYMENT_WIRE_SUB_CODES_KEYS = [
@@ -51,6 +54,7 @@ const BILL_PAYMENT_WIRE_SUB_CODES_KEYS = [
51
54
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
52
55
  const toBillPaymentWireSubMethodCodeKeyType = (v) => (0, stringToUnion_1.stringToUnion)(v, BILL_PAYMENT_WIRE_SUB_CODES_KEYS);
53
56
  exports.BILL_PAYMENT_OUTSIDE_ZENI_SUB_CODES = ['outside-zeni'];
57
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
54
58
  const toBillPaymentOutsideZeniSubMethodCodeType = (v) => (0, stringToUnion_1.stringToUnion)(v, exports.BILL_PAYMENT_OUTSIDE_ZENI_SUB_CODES);
55
59
  exports.toBillPaymentOutsideZeniSubMethodCodeType = toBillPaymentOutsideZeniSubMethodCodeType;
56
60
  const BILL_PAYMENT_OUTSIDE_ZENI_SUB_CODES_KEYS = ['outsideZeni'];
@@ -87,12 +91,14 @@ exports.ACCOUNT_TYPE_CODES = [
87
91
  'deposit_account',
88
92
  'payment_account',
89
93
  ];
94
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
90
95
  const toAccType = (v) => (0, stringToUnion_1.stringToUnion)(v, exports.ACCOUNT_TYPE_CODES);
91
96
  exports.toAccType = toAccType;
92
97
  const ACCOUNT_TYPE_SUB_CODES_KEYS = [
93
98
  'depositAccount',
94
99
  'paymentAccount',
95
100
  ];
101
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
96
102
  const toAccountTypeSubConfigCodeKeyType = (v) => (0, stringToUnion_1.stringToUnion)(v, ACCOUNT_TYPE_SUB_CODES_KEYS);
97
103
  exports.toAccountTypeSubConfigCodeKeyType = toAccountTypeSubConfigCodeKeyType;
98
104
  //These const are used in web-components
@@ -7,8 +7,8 @@ export declare const initialState: BillsBulkActionViewState;
7
7
  export declare const updateBillsBulkActionList: import("@reduxjs/toolkit").ActionCreatorWithPayload<string[], "billsBulkActionView/updateBillsBulkActionList">, removeBillFromBulkActionList: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "billsBulkActionView/removeBillFromBulkActionList">, clearAllBillsFromBulkActionList: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"billsBulkActionView/clearAllBillsFromBulkActionList">, validateBillsBulkAction: import("@reduxjs/toolkit").ActionCreatorWithPayload<BulkOperationType, "billsBulkActionView/validateBillsBulkAction">, validateBillsBulkActionSuccess: import("@reduxjs/toolkit").ActionCreatorWithPayload<BulkActionReviewItemResponsePayload[], "billsBulkActionView/validateBillsBulkActionSuccess">, validateBillsBulkActionFailure: import("@reduxjs/toolkit").ActionCreatorWithPayload<ZeniAPIStatus<Record<string, unknown>>, "billsBulkActionView/validateBillsBulkActionFailure">, submitDraftBillsBulkAction: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"billsBulkActionView/submitDraftBillsBulkAction">, approveOrRejectBillsBulkAction: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[approvalType: BillApprovalType, description: string], {
8
8
  approvalType: BillApprovalType;
9
9
  description: string;
10
- }, "billsBulkActionView/approveOrRejectBillsBulkAction", never, never>, cancelOrDeleteBillsBulkAction: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[operationType: "delete" | "cancel", description: string], {
11
- operationType: "delete" | "cancel";
10
+ }, "billsBulkActionView/approveOrRejectBillsBulkAction", never, never>, cancelOrDeleteBillsBulkAction: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[operationType: "cancel" | "delete", description: string], {
11
+ operationType: "cancel" | "delete";
12
12
  description: string;
13
13
  }, "billsBulkActionView/cancelOrDeleteBillsBulkAction", never, never>, billsBulkActionFailure: import("@reduxjs/toolkit").ActionCreatorWithPayload<ZeniAPIStatus<Record<string, unknown>>, "billsBulkActionView/billsBulkActionFailure">, autoReviewPendingApprovalBills: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"billsBulkActionView/autoReviewPendingApprovalBills">, incrementBulkActionProcessedCount: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"billsBulkActionView/incrementBulkActionProcessedCount">, billsBulkActionSuccess: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
14
14
  billsProcessing: number;
@@ -8,12 +8,11 @@ const billsBulkActionViewReducer_1 = require("../billsBulkActionViewReducer");
8
8
  const validateBillsBulkActionEpic = (actions$, state$, zeniAPI) => actions$.pipe((0, operators_1.filter)(billsBulkActionViewReducer_1.validateBillsBulkAction.match), (0, operators_1.mergeMap)(() => {
9
9
  const { billsBulkActionViewState } = state$.value;
10
10
  const { billsSelectedForBulkAction: transactionIds, bulkOperationTypeSelected, } = billsBulkActionViewState;
11
- const validationValue = bulkOperationTypeSelected === 'send_for_approval'
12
- ? 'all'
13
- : 'sufficient_funds';
14
11
  const queryParam = {
15
12
  entity_ids: transactionIds,
16
- validations: [validationValue],
13
+ validations: bulkOperationTypeSelected === 'send_for_approval'
14
+ ? 'all'
15
+ : 'sufficient_funds',
17
16
  };
18
17
  return zeniAPI
19
18
  .getJSON(`${zeniAPI.apiEndPoints.spendManagementMicroServiceBaseUrl}/1.0/bulk/bills/transactions/validate?query=${encodeURIComponent(JSON.stringify(queryParam))}`)
@@ -10,7 +10,9 @@ const operators_1 = require("rxjs/operators");
10
10
  const billDetailViewReducer_1 = require("../../billDetailView/billDetailViewReducer");
11
11
  const billDetailViewState_1 = require("../../billDetailView/billDetailViewState");
12
12
  const editBillViewReducer_1 = require("../editBillViewReducer");
13
- const fetchBillAndInitializeLocalStoreEpic = (actions$, state$) => actions$.pipe((0, operators_1.filter)(editBillViewReducer_1.fetchBillAndInitializeLocalStore.match), (0, operators_1.mergeMap)((action) => {
13
+ const fetchBillAndInitializeLocalStoreEpic = (actions$,
14
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
15
+ state$) => actions$.pipe((0, operators_1.filter)(editBillViewReducer_1.fetchBillAndInitializeLocalStore.match), (0, operators_1.mergeMap)((action) => {
14
16
  const { billId, cacheOverride, isShowDeletedBillsEnabled, hasZeniAssistAccess, } = action.payload;
15
17
  const state = state$.value;
16
18
  const billDetailActions = [];
@@ -13,9 +13,9 @@ interface ChargeCardDetail extends FetchedState {
13
13
  updatePhysicalChargeCardAttemptFetchState: FetchStateAndError;
14
14
  updateChargeCardLimitFetchState: FetchStateAndError;
15
15
  }
16
- export declare const toChargeCardTransactionSortKeyType: (v: string) => "amount" | "type" | "merchant" | "paymentDate" | "receipts";
16
+ export declare const toChargeCardTransactionSortKeyType: (v: string) => "type" | "amount" | "merchant" | "paymentDate" | "receipts";
17
17
  export declare type ChargeCardTransactionSortKey = ReturnType<typeof toChargeCardTransactionSortKeyType>;
18
- export interface ChargeCardDetailTransactionList extends FetchStateAndError {
18
+ interface ChargeCardDetailTransactionList extends FetchStateAndError {
19
19
  transactionIds: ID[];
20
20
  uploadReceiptsFetchStateByTransactionId: Record<ID, FetchStateAndError>;
21
21
  isViewReceiptClickedImmediatelyAfterUploadTransactionId: Record<ID, boolean>;
@@ -24,6 +24,6 @@ export interface CommonHistoryState {
24
24
  }
25
25
  export declare const toHistoricEventUpdateType: (v: string) => "deleted" | "created" | "updated";
26
26
  type HistoricEventUpdateType = ReturnType<typeof toHistoricEventUpdateType>;
27
- export declare const toHistoricEventUpdateDisplayType: (v: string) => "list" | "sentence" | "inline";
27
+ export declare const toHistoricEventUpdateDisplayType: (v: string) => "inline" | "sentence" | "list";
28
28
  type HistoricEventUpdateDisplayType = ReturnType<typeof toHistoricEventUpdateDisplayType>;
29
29
  export {};
@@ -4,18 +4,18 @@ import { ZeniDate } from '../../../zeniDayJS';
4
4
  import { CompanyOfficerType } from '../../companyView/types/companyPassport/companyUsersLocalData';
5
5
  import { SetupViewLocalData, SetupViewState } from './setupViewState';
6
6
  export declare const initialState: SetupViewState;
7
- export declare const enableSetup: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[companyId: string, setupViewType: "bill_pay" | "reimbursement" | "zeni_accounts" | "charge_cards" | "billing"], {
7
+ export declare const enableSetup: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[companyId: string, setupViewType: "billing" | "bill_pay" | "reimbursement" | "zeni_accounts" | "charge_cards"], {
8
8
  companyId: string;
9
- setupViewType: "bill_pay" | "reimbursement" | "zeni_accounts" | "charge_cards" | "billing";
10
- }, "setupView/enableSetup", never, never>, enableSetupSuccess: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"setupView/enableSetupSuccess">, enableSetupFailure: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[error: ZeniAPIStatus<Record<string, unknown>>], ZeniAPIStatus<Record<string, unknown>>, "setupView/enableSetupFailure", never, never>, updateBusinessVerificationDetails: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[companyId: string, officerType: "Officer_1" | "Officer_3" | "Officer_2" | "Officer_4" | "Officer_5" | "Officer_6" | "Officer_7" | "Officer_8" | "Officer_9" | "Officer_10", setupViewType: "bill_pay" | "reimbursement" | "zeni_accounts" | "charge_cards" | "billing", sendForVerification?: any, fromBillListScreen?: any, isSubmittingAdditionalDocuments?: any], {
9
+ setupViewType: "billing" | "bill_pay" | "reimbursement" | "zeni_accounts" | "charge_cards";
10
+ }, "setupView/enableSetup", never, never>, enableSetupSuccess: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"setupView/enableSetupSuccess">, enableSetupFailure: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[error: ZeniAPIStatus<Record<string, unknown>>], ZeniAPIStatus<Record<string, unknown>>, "setupView/enableSetupFailure", never, never>, updateBusinessVerificationDetails: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[companyId: string, officerType: "Officer_2" | "Officer_1" | "Officer_3" | "Officer_4" | "Officer_8" | "Officer_5" | "Officer_6" | "Officer_10" | "Officer_7" | "Officer_9", setupViewType: "billing" | "bill_pay" | "reimbursement" | "zeni_accounts" | "charge_cards", sendForVerification?: any, fromBillListScreen?: any, isSubmittingAdditionalDocuments?: any], {
11
11
  companyId: string;
12
- officerType: "Officer_1" | "Officer_3" | "Officer_2" | "Officer_4" | "Officer_5" | "Officer_6" | "Officer_7" | "Officer_8" | "Officer_9" | "Officer_10";
13
- setupViewType: "bill_pay" | "reimbursement" | "zeni_accounts" | "charge_cards" | "billing";
12
+ officerType: "Officer_2" | "Officer_1" | "Officer_3" | "Officer_4" | "Officer_8" | "Officer_5" | "Officer_6" | "Officer_10" | "Officer_7" | "Officer_9";
13
+ setupViewType: "billing" | "bill_pay" | "reimbursement" | "zeni_accounts" | "charge_cards";
14
14
  sendForVerification: any;
15
15
  fromBillListScreen: any;
16
16
  isSubmittingAdditionalDocuments: any;
17
- }, "setupView/updateBusinessVerificationDetails", never, never>, updateBusinessVerificationDetailsSuccess: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"setupView/updateBusinessVerificationDetailsSuccess">, updateBusinessVerificationDetailsFailure: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[error: ZeniAPIStatus<Record<string, unknown>>], ZeniAPIStatus<Record<string, unknown>>, "setupView/updateBusinessVerificationDetailsFailure", never, never>, updateSelectedCompanyOfficer: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[selectedOfficerType: "Officer_1" | "Officer_3" | "Officer_2" | "Officer_4" | "Officer_5" | "Officer_6" | "Officer_7" | "Officer_8" | "Officer_9" | "Officer_10"], {
18
- selectedOfficerType: "Officer_1" | "Officer_3" | "Officer_2" | "Officer_4" | "Officer_5" | "Officer_6" | "Officer_7" | "Officer_8" | "Officer_9" | "Officer_10";
17
+ }, "setupView/updateBusinessVerificationDetails", never, never>, updateBusinessVerificationDetailsSuccess: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"setupView/updateBusinessVerificationDetailsSuccess">, updateBusinessVerificationDetailsFailure: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[error: ZeniAPIStatus<Record<string, unknown>>], ZeniAPIStatus<Record<string, unknown>>, "setupView/updateBusinessVerificationDetailsFailure", never, never>, updateSelectedCompanyOfficer: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[selectedOfficerType: "Officer_2" | "Officer_1" | "Officer_3" | "Officer_4" | "Officer_8" | "Officer_5" | "Officer_6" | "Officer_10" | "Officer_7" | "Officer_9"], {
18
+ selectedOfficerType: "Officer_2" | "Officer_1" | "Officer_3" | "Officer_4" | "Officer_8" | "Officer_5" | "Officer_6" | "Officer_10" | "Officer_7" | "Officer_9";
19
19
  }, "setupView/updateSelectedCompanyOfficer", never, never>, updateSetupViewLocalStoreData: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
20
20
  companyId: ID;
21
21
  }, "setupView/updateSetupViewLocalStoreData">, saveSetupViewDataInLocalStore: import("@reduxjs/toolkit").ActionCreatorWithPayload<Partial<SetupViewLocalData>, "setupView/saveSetupViewDataInLocalStore">, saveCompnayOfficerPhoneInLocalStore: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
@@ -4,7 +4,7 @@ import { AllowedDocumentType } from '../../../entity/file/fileState';
4
4
  import { ZeniDate } from '../../../zeniDayJS';
5
5
  import ZeniUrl from '../../../zeniUrl';
6
6
  import { CompanyOfficerType } from '../../companyView/types/companyPassport/companyUsersLocalData';
7
- declare const toSetupViewType: (v: string) => "bill_pay" | "reimbursement" | "zeni_accounts" | "charge_cards" | "billing";
7
+ declare const toSetupViewType: (v: string) => "billing" | "bill_pay" | "reimbursement" | "zeni_accounts" | "charge_cards";
8
8
  export type SetupViewType = ReturnType<typeof toSetupViewType>;
9
9
  /**
10
10
  * Setup View Local Data - Interfaces
@@ -14,16 +14,14 @@ const paymentAccountListReducer_1 = require("../../../zeniAccounts/paymentAccoun
14
14
  const plaidAccountViewReducer_1 = require("../../plaidAccountViewReducer");
15
15
  const establishPlaidConnectionEpic = (actions$, state, zeniAPI) => actions$.pipe((0, operators_1.filter)(plaidAccountViewReducer_1.establishPlaidConnection.match), (0, operators_1.mergeMap)((action) => {
16
16
  var _a, _b;
17
- const { publicToken, companyId, setupViewType, linkTokenType, plaidAccountKeyType, zeniMappedAccountId, } = action.payload;
17
+ const { publicToken, companyId, setupViewType, linkTokenType, plaidAccountKeyType, } = action.payload;
18
18
  const requestPayload = {
19
19
  public_token: publicToken,
20
20
  };
21
- const queryPayload = {};
22
21
  const userId = (_b = (_a = state.value.tenantState.loggedInUser) === null || _a === void 0 ? void 0 : _a.userId) !== null && _b !== void 0 ? _b : '';
23
22
  //setupViewType not passed means this is a user account
24
23
  if (linkTokenType !== 'link_external_account') {
25
- if (setupViewType == null &&
26
- plaidAccountKeyType !== 'expense_automation_reconcile') {
24
+ if (setupViewType == null) {
27
25
  requestPayload.is_user_account = true;
28
26
  }
29
27
  else if (plaidAccountKeyType === 'bill_pay_setup') {
@@ -41,15 +39,9 @@ const establishPlaidConnectionEpic = (actions$, state, zeniAPI) => actions$.pipe
41
39
  else if (plaidAccountKeyType === 'billing_setup') {
42
40
  requestPayload.is_primary_for_onboarding = true;
43
41
  }
44
- else if (plaidAccountKeyType === 'expense_automation_reconcile') {
45
- queryPayload.zeni_mapped_account_id = zeniMappedAccountId !== null && zeniMappedAccountId !== void 0 ? zeniMappedAccountId : '';
46
- }
47
42
  }
48
- const queryString = Object.entries(queryPayload).length > 0
49
- ? `?query=${JSON.stringify(queryPayload)}`
50
- : '';
51
43
  return zeniAPI
52
- .postAndGetJSON(`${zeniAPI.apiEndPoints.payMicroServiceBaseUrl}/1.0/plaid/public-token${queryString}`, requestPayload)
44
+ .postAndGetJSON(`${zeniAPI.apiEndPoints.payMicroServiceBaseUrl}/1.0/plaid/public-token`, requestPayload)
53
45
  .pipe((0, operators_1.mergeMap)((response) => {
54
46
  if ((0, responsePayload_1.isSuccessResponse)(response) && response.data != null) {
55
47
  const paymentAccount = response.data.payment_accounts[0];
@@ -1,8 +1,8 @@
1
1
  import { ZeniAPIStatus } from '../../../responsePayload';
2
2
  import { PlaidAccountKeyType, PlaidAccountViewState, PlaidLinkTokenType } from './plaidAccountViewState';
3
3
  export declare const initialState: PlaidAccountViewState;
4
- export declare const getPaymentAccounts: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[setupViewType: "bill_pay" | "reimbursement" | "zeni_accounts" | "charge_cards" | "billing", plaidAccountKeyType: PlaidAccountKeyType, includeBalances?: boolean | undefined], {
5
- setupViewType: "bill_pay" | "reimbursement" | "zeni_accounts" | "charge_cards" | "billing";
4
+ export declare const getPaymentAccounts: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[setupViewType: "billing" | "bill_pay" | "reimbursement" | "zeni_accounts" | "charge_cards", plaidAccountKeyType: PlaidAccountKeyType, includeBalances?: boolean | undefined], {
5
+ setupViewType: "billing" | "bill_pay" | "reimbursement" | "zeni_accounts" | "charge_cards";
6
6
  includeBalances: boolean;
7
7
  plaidAccountKeyType: PlaidAccountKeyType;
8
8
  }, "plaidAccountView/getPaymentAccounts", never, never>, getPaymentAccountsSuccess: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[paymentAccountIds: string[], plaidAccountKeyType: PlaidAccountKeyType], {
@@ -11,20 +11,20 @@ export declare const getPaymentAccounts: import("@reduxjs/toolkit").ActionCreato
11
11
  }, "plaidAccountView/getPaymentAccountsSuccess", never, never>, getPaymentAccountsFailure: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[error: ZeniAPIStatus<Record<string, unknown>>, plaidAccountKeyType: PlaidAccountKeyType], {
12
12
  error: ZeniAPIStatus<Record<string, unknown>>;
13
13
  plaidAccountKeyType: PlaidAccountKeyType;
14
- }, "plaidAccountView/getPaymentAccountsFailure", never, never>, updatePaymentAccount: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[accountId: string, paymentAccountId: string, setupViewType: "bill_pay" | "reimbursement" | "zeni_accounts" | "charge_cards" | "billing", plaidAccountKeyType: PlaidAccountKeyType], {
14
+ }, "plaidAccountView/getPaymentAccountsFailure", never, never>, updatePaymentAccount: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[accountId: string, paymentAccountId: string, setupViewType: "billing" | "bill_pay" | "reimbursement" | "zeni_accounts" | "charge_cards", plaidAccountKeyType: PlaidAccountKeyType], {
15
15
  accountId: string;
16
16
  paymentAccountId: string;
17
- setupViewType: "bill_pay" | "reimbursement" | "zeni_accounts" | "charge_cards" | "billing";
17
+ setupViewType: "billing" | "bill_pay" | "reimbursement" | "zeni_accounts" | "charge_cards";
18
18
  plaidAccountKeyType: PlaidAccountKeyType;
19
19
  }, "plaidAccountView/updatePaymentAccount", never, never>, updatePaymentAccountSuccess: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[plaidAccountKeyType: PlaidAccountKeyType], {
20
20
  plaidAccountKeyType: PlaidAccountKeyType;
21
21
  }, "plaidAccountView/updatePaymentAccountSuccess", never, never>, updatePaymentAccountFailure: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[error: ZeniAPIStatus<Record<string, unknown>>, plaidAccountKeyType: PlaidAccountKeyType], {
22
22
  error: ZeniAPIStatus<Record<string, unknown>>;
23
23
  plaidAccountKeyType: PlaidAccountKeyType;
24
- }, "plaidAccountView/updatePaymentAccountFailure", never, never>, updatePaymentAccountStatus: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[verificationStatusCode: string, paymentAccountId: string, setupViewType: "bill_pay" | "reimbursement" | "zeni_accounts" | "charge_cards" | "billing", plaidAccountKeyType: PlaidAccountKeyType, linkTokenType?: PlaidLinkTokenType | undefined], {
24
+ }, "plaidAccountView/updatePaymentAccountFailure", never, never>, updatePaymentAccountStatus: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[verificationStatusCode: string, paymentAccountId: string, setupViewType: "billing" | "bill_pay" | "reimbursement" | "zeni_accounts" | "charge_cards", plaidAccountKeyType: PlaidAccountKeyType, linkTokenType?: PlaidLinkTokenType | undefined], {
25
25
  verificationStatusCode: string;
26
26
  paymentAccountId: string;
27
- setupViewType: "bill_pay" | "reimbursement" | "zeni_accounts" | "charge_cards" | "billing";
27
+ setupViewType: "billing" | "bill_pay" | "reimbursement" | "zeni_accounts" | "charge_cards";
28
28
  plaidAccountKeyType: PlaidAccountKeyType;
29
29
  linkTokenType: PlaidLinkTokenType;
30
30
  }, "plaidAccountView/updatePaymentAccountStatus", never, never>, updatePaymentAccountStatusSuccess: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[linkTokenType: PlaidLinkTokenType, plaidAccountKeyType: PlaidAccountKeyType], {
@@ -34,10 +34,10 @@ export declare const getPaymentAccounts: import("@reduxjs/toolkit").ActionCreato
34
34
  error: ZeniAPIStatus<Record<string, unknown>>;
35
35
  linkTokenType: PlaidLinkTokenType;
36
36
  plaidAccountKeyType: PlaidAccountKeyType;
37
- }, "plaidAccountView/updatePaymentAccountStatusFailure", never, never>, updatePaymentAccountLoginStatus: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[isLoginRequired: boolean, paymentAccountId: string, setupViewType: "bill_pay" | "reimbursement" | "zeni_accounts" | "charge_cards" | "billing", plaidAccountKeyType: PlaidAccountKeyType, linkTokenType?: PlaidLinkTokenType | undefined], {
37
+ }, "plaidAccountView/updatePaymentAccountStatusFailure", never, never>, updatePaymentAccountLoginStatus: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[isLoginRequired: boolean, paymentAccountId: string, setupViewType: "billing" | "bill_pay" | "reimbursement" | "zeni_accounts" | "charge_cards", plaidAccountKeyType: PlaidAccountKeyType, linkTokenType?: PlaidLinkTokenType | undefined], {
38
38
  isLoginRequired: boolean;
39
39
  paymentAccountId: string;
40
- setupViewType: "bill_pay" | "reimbursement" | "zeni_accounts" | "charge_cards" | "billing";
40
+ setupViewType: "billing" | "bill_pay" | "reimbursement" | "zeni_accounts" | "charge_cards";
41
41
  plaidAccountKeyType: PlaidAccountKeyType;
42
42
  linkTokenType: PlaidLinkTokenType;
43
43
  }, "plaidAccountView/updatePaymentAccountLoginStatus", never, never>, updatePaymentAccountLoginStatusSuccess: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[paymentAccountIds: string[], linkTokenType: PlaidLinkTokenType, plaidAccountKeyType: PlaidAccountKeyType], {
@@ -61,13 +61,12 @@ export declare const getPaymentAccounts: import("@reduxjs/toolkit").ActionCreato
61
61
  error: ZeniAPIStatus<Record<string, unknown>>;
62
62
  linkTokenType: PlaidLinkTokenType;
63
63
  plaidAccountKeyType: PlaidAccountKeyType;
64
- }, "plaidAccountView/getPlaidLinkTokenFailure", never, never>, establishPlaidConnection: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[publicToken: string, companyId: string, plaidAccountKeyType: PlaidAccountKeyType, setupViewType?: "bill_pay" | "reimbursement" | "zeni_accounts" | "charge_cards" | "billing" | undefined, linkTokenType?: PlaidLinkTokenType | undefined, zeniMappedAccountId?: string | undefined], {
64
+ }, "plaidAccountView/getPlaidLinkTokenFailure", never, never>, establishPlaidConnection: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[publicToken: string, companyId: string, plaidAccountKeyType: PlaidAccountKeyType, setupViewType?: "billing" | "bill_pay" | "reimbursement" | "zeni_accounts" | "charge_cards" | undefined, linkTokenType?: PlaidLinkTokenType | undefined], {
65
65
  publicToken: string;
66
66
  companyId: string;
67
- setupViewType: "bill_pay" | "reimbursement" | "zeni_accounts" | "charge_cards" | "billing" | undefined;
67
+ setupViewType: "billing" | "bill_pay" | "reimbursement" | "zeni_accounts" | "charge_cards" | undefined;
68
68
  linkTokenType: PlaidLinkTokenType;
69
69
  plaidAccountKeyType: PlaidAccountKeyType;
70
- zeniMappedAccountId: string | undefined;
71
70
  }, "plaidAccountView/establishPlaidConnection", never, never>, establishPlaidConnectionSuccess: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[linkTokenType: PlaidLinkTokenType, plaidAccountKeyType: PlaidAccountKeyType], {
72
71
  linkTokenType: PlaidLinkTokenType;
73
72
  plaidAccountKeyType: PlaidAccountKeyType;
@@ -14,7 +14,6 @@ exports.initialState = {
14
14
  user_reimbursement_account: plaidAccountViewState_1.initialPlaidAccountState,
15
15
  external_account: plaidAccountViewState_1.initialPlaidAccountState,
16
16
  billing_setup: plaidAccountViewState_1.initialPlaidAccountState,
17
- expense_automation_reconcile: plaidAccountViewState_1.initialPlaidAccountState,
18
17
  };
19
18
  const plaidAccountView = (0, toolkit_1.createSlice)({
20
19
  name: 'plaidAccountView',
@@ -265,7 +264,7 @@ const plaidAccountView = (0, toolkit_1.createSlice)({
265
264
  error: undefined,
266
265
  } });
267
266
  },
268
- prepare(publicToken, companyId, plaidAccountKeyType, setupViewType, linkTokenType, zeniMappedAccountId) {
267
+ prepare(publicToken, companyId, plaidAccountKeyType, setupViewType, linkTokenType) {
269
268
  return {
270
269
  payload: {
271
270
  publicToken,
@@ -273,7 +272,6 @@ const plaidAccountView = (0, toolkit_1.createSlice)({
273
272
  setupViewType,
274
273
  linkTokenType: linkTokenType !== null && linkTokenType !== void 0 ? linkTokenType : 'link_account',
275
274
  plaidAccountKeyType,
276
- zeniMappedAccountId,
277
275
  },
278
276
  };
279
277
  },
@@ -1,7 +1,7 @@
1
1
  import { FetchStateAndError, ID } from '../../../commonStateTypes/common';
2
2
  import { ZeniDate } from '../../../zeniDayJS';
3
3
  export type PlaidLinkTokenType = 'link_account' | 'update_account' | 'link_account_no_microdeposit' | 'link_external_account';
4
- export type PlaidAccountKeyType = 'spend_management_setup' | 'bill_pay_setup' | 'reimbursement_setup' | 'account_setup' | 'charge_card_setup' | 'user_reimbursement_account' | 'external_account' | 'billing_setup' | 'expense_automation_reconcile';
4
+ export type PlaidAccountKeyType = 'spend_management_setup' | 'bill_pay_setup' | 'reimbursement_setup' | 'account_setup' | 'charge_card_setup' | 'user_reimbursement_account' | 'external_account' | 'billing_setup';
5
5
  export type PlaidConnectionDetails = Record<PlaidLinkTokenType, {
6
6
  linkToken?: string;
7
7
  expiration?: ZeniDate;
@@ -6,7 +6,9 @@ const operators_1 = require("rxjs/operators");
6
6
  const recommendationReducer_1 = require("../../../../recommendation/recommendationReducer");
7
7
  const recommendationSelector_1 = require("../../../../recommendation/recommendationSelector");
8
8
  const editRemiViewReducer_1 = require("../editRemiViewReducer");
9
- const fetchRecommendationsAndUpdateMerchantRecommendationsEpic = (actions$, state$) => actions$.pipe((0, operators_1.filter)(editRemiViewReducer_1.fetchRecommendationsAndUpdateMerchantRecommendations.match), (0, operators_1.mergeMap)((action) => {
9
+ const fetchRecommendationsAndUpdateMerchantRecommendationsEpic = (actions$,
10
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
11
+ state$) => actions$.pipe((0, operators_1.filter)(editRemiViewReducer_1.fetchRecommendationsAndUpdateMerchantRecommendations.match), (0, operators_1.mergeMap)((action) => {
10
12
  const { cacheOverride, lineId, reimbursementId, merchantId, merchantName } = action.payload;
11
13
  const state = state$.value;
12
14
  const reimbursement = reimbursementId != null
@@ -65,7 +67,9 @@ const fetchRecommendationsAndUpdateMerchantRecommendationsEpic = (actions$, stat
65
67
  return (0, rxjs_1.from)(merchantRecommendationActions);
66
68
  }));
67
69
  exports.fetchRecommendationsAndUpdateMerchantRecommendationsEpic = fetchRecommendationsAndUpdateMerchantRecommendationsEpic;
68
- const waitForMerchantRecommendationFetchThenUpdateRecommendationInMerchantEpic = (actions$, state$) => actions$.pipe((0, operators_1.filter)(editRemiViewReducer_1.waitForMerchantRecommendationFetchThenUpdateRecommendationInMerchant.match),
70
+ const waitForMerchantRecommendationFetchThenUpdateRecommendationInMerchantEpic = (actions$,
71
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
72
+ state$) => actions$.pipe((0, operators_1.filter)(editRemiViewReducer_1.waitForMerchantRecommendationFetchThenUpdateRecommendationInMerchant.match),
69
73
  //used concatMap here, as with mergeMap it was triggering below flow for first completed recommendations (in case of multi receipts)
70
74
  (0, operators_1.concatMap)((action) => {
71
75
  const { reimbursementId } = action.payload;
@@ -9,7 +9,9 @@ const rxjs_1 = require("rxjs");
9
9
  const operators_1 = require("rxjs/operators");
10
10
  const remiDetailViewReducer_1 = require("../../remiDetailView/remiDetailViewReducer");
11
11
  const editRemiViewReducer_1 = require("../editRemiViewReducer");
12
- const fetchRemiAndInitializeLocalStoreEpic = (actions$, state$) => actions$.pipe((0, operators_1.filter)(editRemiViewReducer_1.fetchRemiAndInitializeLocalStore.match), (0, operators_1.mergeMap)((action) => {
12
+ const fetchRemiAndInitializeLocalStoreEpic = (actions$,
13
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
14
+ state$) => actions$.pipe((0, operators_1.filter)(editRemiViewReducer_1.fetchRemiAndInitializeLocalStore.match), (0, operators_1.mergeMap)((action) => {
13
15
  const { reimbursementId, cacheOverride, isShowDeletedReimbursementEnabled, } = action.payload;
14
16
  const state = state$.value;
15
17
  const remiDetailActions = [];
@@ -25,7 +25,7 @@ export declare const fetchRemiList: import("@reduxjs/toolkit").ActionCreatorWith
25
25
  }, "remiList/updateRemiListFailure", never, never>, updateRemiListUIState: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
26
26
  uiState: Partial<RemiListUIState>;
27
27
  period: TimePeriod;
28
- }, "remiList/updateRemiListUIState">, updateTab: import("@reduxjs/toolkit").ActionCreatorWithPayload<"paid" | "pending_approval" | "scheduled" | "draft", "remiList/updateTab">, updateSubTab: import("@reduxjs/toolkit").ActionCreatorWithPayload<"rejected" | "ach" | "wire" | "failed" | "cancelled" | "all" | "overdue" | "deleted" | "myDrafts" | "awaitingApproval" | "awaitingMyApproval" | "awaitingAllApproval", "remiList/updateSubTab">, updateSelectedRemiId: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "remiList/updateSelectedRemiId">, clearRemiList: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"remiList/clearRemiList">, updateRemiDetailSaveRemiCode: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<SaveRemiStageCode, "remiList/updateRemiDetailSaveRemiCode">, updateSearchResult: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "remiList/updateSearchResult">, updateFilterResult: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
28
+ }, "remiList/updateRemiListUIState">, updateTab: import("@reduxjs/toolkit").ActionCreatorWithPayload<"paid" | "pending_approval" | "scheduled" | "draft", "remiList/updateTab">, updateSubTab: import("@reduxjs/toolkit").ActionCreatorWithPayload<"all" | "failed" | "rejected" | "cancelled" | "ach" | "wire" | "overdue" | "deleted" | "myDrafts" | "awaitingApproval" | "awaitingMyApproval" | "awaitingAllApproval", "remiList/updateSubTab">, updateSelectedRemiId: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "remiList/updateSelectedRemiId">, clearRemiList: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"remiList/clearRemiList">, updateRemiDetailSaveRemiCode: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<SaveRemiStageCode, "remiList/updateRemiDetailSaveRemiCode">, updateSearchResult: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "remiList/updateSearchResult">, updateFilterResult: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
29
29
  filters: ReimbursementFilters;
30
30
  }, "remiList/updateFilterResult">, updateRemiListDownloadUIState: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
31
31
  uiState: Partial<RemiListDownloadUIState>;
@@ -173,6 +173,7 @@ function doUpdateRemiList(draft, payload, tab) {
173
173
  const pendingApprovalTransactionIDs = payload.pending_approval_transaction_ids_for_user;
174
174
  const start = (0, timePeriod_1.toAbsoluteDay)(payload === null || payload === void 0 ? void 0 : payload.query.start_date); // eslint-disable-line @typescript-eslint/no-non-null-assertion
175
175
  const end = (0, timePeriod_1.toAbsoluteDay)(payload === null || payload === void 0 ? void 0 : payload.query.end_date); // eslint-disable-line @typescript-eslint/no-non-null-assertion
176
+ // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
176
177
  const key = (0, remiListState_1.getRemiListKey)({ start, end }, tab);
177
178
  draft[key] = Object.assign(Object.assign({}, remiListState_1.remiListInitialState), { uiState: draft[key] != null ? draft[key].uiState : remiListState_1.remiListInitialState.uiState, fetchState: 'Completed', error: undefined, transactionIDs,
178
179
  pendingApprovalTransactionIDs });
@@ -33,12 +33,12 @@ export declare const ALL_REMI_TABS: readonly ["paid", "pending_approval", "sched
33
33
  export declare const toRemiTabType: (v: string) => "paid" | "pending_approval" | "scheduled" | "draft";
34
34
  export declare const toRemiTabTypeStrict: (v: string) => "paid" | "pending_approval" | "scheduled" | "draft" | undefined;
35
35
  export type RemiTabType = ReturnType<typeof toRemiTabType>;
36
- export declare const toRemiSubTabType: (v: string) => "rejected" | "ach" | "wire" | "failed" | "cancelled" | "all" | "overdue" | "deleted" | "myDrafts" | "awaitingApproval" | "awaitingMyApproval" | "awaitingAllApproval";
37
- export declare const toRemiSubTabTypeStrict: (v: string) => "rejected" | "ach" | "wire" | "failed" | "cancelled" | "all" | "overdue" | "deleted" | "myDrafts" | "awaitingApproval" | "awaitingMyApproval" | "awaitingAllApproval" | undefined;
36
+ export declare const toRemiSubTabType: (v: string) => "all" | "failed" | "rejected" | "cancelled" | "ach" | "wire" | "overdue" | "deleted" | "myDrafts" | "awaitingApproval" | "awaitingMyApproval" | "awaitingAllApproval";
37
+ export declare const toRemiSubTabTypeStrict: (v: string) => "all" | "failed" | "rejected" | "cancelled" | "ach" | "wire" | "overdue" | "deleted" | "myDrafts" | "awaitingApproval" | "awaitingMyApproval" | "awaitingAllApproval" | undefined;
38
38
  export type RemiSubTabType = ReturnType<typeof toRemiSubTabType>;
39
- export declare const toRemiSubTabUnderScoreType: (v: string) => "rejected" | "ach" | "wire" | "failed" | "cancelled" | "all" | "overdue" | "awaiting_approval" | "awaiting_my_approval" | "deleted" | "my_drafts" | "awaiting_all_approval";
39
+ export declare const toRemiSubTabUnderScoreType: (v: string) => "all" | "failed" | "rejected" | "cancelled" | "ach" | "wire" | "overdue" | "awaiting_approval" | "awaiting_my_approval" | "deleted" | "my_drafts" | "awaiting_all_approval";
40
40
  export type RemiSubTabUnderScoreType = ReturnType<typeof toRemiSubTabUnderScoreType>;
41
- declare const toReimbursementSortKeyType: (v: string) => "status" | "amount" | "type" | "submittedOn" | "reportName";
41
+ declare const toReimbursementSortKeyType: (v: string) => "type" | "status" | "amount" | "submittedOn" | "reportName";
42
42
  export type ReimbursementViewSortKey = ReturnType<typeof toReimbursementSortKeyType>;
43
43
  export interface ReimbursementFilters {
44
44
  categoryCombinationOperator: CategoryCombinationOperator;
@@ -7,8 +7,8 @@ export declare const initialState: RemisBulkActionViewState;
7
7
  export declare const updateRemisBulkActionList: import("@reduxjs/toolkit").ActionCreatorWithPayload<string[], "remisBulkActionView/updateRemisBulkActionList">, removeRemiFromBulkActionList: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "remisBulkActionView/removeRemiFromBulkActionList">, clearAllRemisFromBulkActionList: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"remisBulkActionView/clearAllRemisFromBulkActionList">, reviewDraftRemisBulkAction: import("@reduxjs/toolkit").ActionCreatorWithPayload<BulkOperationType, "remisBulkActionView/reviewDraftRemisBulkAction">, reviewDraftRemisBulkActionSuccess: import("@reduxjs/toolkit").ActionCreatorWithPayload<BulkActionReviewItemResponsePayload[], "remisBulkActionView/reviewDraftRemisBulkActionSuccess">, reviewDraftRemisBulkActionFailure: import("@reduxjs/toolkit").ActionCreatorWithPayload<ZeniAPIStatus<Record<string, unknown>>, "remisBulkActionView/reviewDraftRemisBulkActionFailure">, submitDraftRemisBulkAction: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"remisBulkActionView/submitDraftRemisBulkAction">, approveOrRejectRemisBulkAction: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[approvalType: RemiApprovalType, description: string], {
8
8
  approvalType: RemiApprovalType;
9
9
  description: string;
10
- }, "remisBulkActionView/approveOrRejectRemisBulkAction", never, never>, cancelOrDeleteRemisBulkAction: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[operationType: "delete" | "cancel", description: string], {
11
- operationType: "delete" | "cancel";
10
+ }, "remisBulkActionView/approveOrRejectRemisBulkAction", never, never>, cancelOrDeleteRemisBulkAction: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[operationType: "cancel" | "delete", description: string], {
11
+ operationType: "cancel" | "delete";
12
12
  description: string;
13
13
  }, "remisBulkActionView/cancelOrDeleteRemisBulkAction", never, never>, remisBulkActionFailure: import("@reduxjs/toolkit").ActionCreatorWithPayload<ZeniAPIStatus<Record<string, unknown>>, "remisBulkActionView/remisBulkActionFailure">, autoReviewPendingApprovalRemis: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"remisBulkActionView/autoReviewPendingApprovalRemis">, incrementRemiBulkActionProcessedCount: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"remisBulkActionView/incrementRemiBulkActionProcessedCount">, remisBulkActionSuccess: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
14
14
  remisProcessing: number;
@@ -191,6 +191,7 @@ const subscriptionView = (0, toolkit_1.createSlice)({
191
191
  },
192
192
  },
193
193
  fetchSubscriptionList: {
194
+ // eslint-disable-next-line @typescript-eslint/no-inferrable-types
194
195
  prepare(fetchFullResponse = false) {
195
196
  return { payload: { fetchFullResponse } };
196
197
  },
@@ -15,6 +15,7 @@ const ALL_SUBSCRIPTION_SORT_KEYS = [
15
15
  'monthlyRecurringRevenue',
16
16
  'notes',
17
17
  ];
18
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
18
19
  const toSubscriptionSortKeyType = (v) => (0, stringToUnion_1.stringToUnion)(v, ALL_SUBSCRIPTION_SORT_KEYS);
19
20
  exports.toSubscriptionSortKeyType = toSubscriptionSortKeyType;
20
21
  exports.SUBSCRIPTION_STATUS_CODES = [
@@ -5,7 +5,9 @@ const rxjs_1 = require("rxjs");
5
5
  const operators_1 = require("rxjs/operators");
6
6
  const taskListReducer_1 = require("../taskListReducer");
7
7
  const taskListViewHelpers_1 = require("../taskListViewHelpers");
8
- const dragNDropTasksEpic = (actions$, state$) => actions$.pipe((0, operators_1.filter)(taskListReducer_1.dragNDropTasks.match), (0, operators_1.mergeMap)((action) => {
8
+ const dragNDropTasksEpic = (actions$,
9
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
10
+ state$) => actions$.pipe((0, operators_1.filter)(taskListReducer_1.dragNDropTasks.match), (0, operators_1.mergeMap)((action) => {
9
11
  const { taskIds, groupId } = action.payload;
10
12
  const state = state$.value;
11
13
  const { groupByKey } = state.taskListState.uiState;
@@ -37,15 +37,15 @@ export interface TaskFilterCategory {
37
37
  }
38
38
  export type TaskListFilterCategoryField = 'status' | 'dueDate' | 'assignee' | 'creationDate' | 'priority' | 'tag';
39
39
  export declare const TASK_LIST_GROUP_BY_KEYS: readonly ["groupName", "status", "dueDate", "assignee", "priority", "tag"];
40
- export declare const toTaskListGroupByKeyType: (v: string) => "status" | "dueDate" | "groupName" | "tag" | "priority" | "assignee";
41
- export declare const toTaskListGroupByKeyTypeStrict: (v: string) => "status" | "dueDate" | "groupName" | "tag" | "priority" | "assignee" | undefined;
40
+ export declare const toTaskListGroupByKeyType: (v: string) => "priority" | "status" | "dueDate" | "groupName" | "tag" | "assignee";
41
+ export declare const toTaskListGroupByKeyTypeStrict: (v: string) => "priority" | "status" | "dueDate" | "groupName" | "tag" | "assignee" | undefined;
42
42
  export declare type TaskGroupKey = ReturnType<typeof toTaskListGroupByKeyType>;
43
43
  export interface TaskListUIState extends SpendManagementUIState {
44
44
  sortKey: TaskListViewSortKey;
45
45
  searchText: string;
46
46
  groupByKey: TaskGroupKey;
47
47
  }
48
- declare const toTaskListSortKeyType: (v: string) => "status" | "name" | "dueDate" | "tag" | "priority" | "timeSpent" | "assignee" | "creationDate";
48
+ declare const toTaskListSortKeyType: (v: string) => "name" | "priority" | "status" | "dueDate" | "tag" | "timeSpent" | "assignee" | "creationDate";
49
49
  export declare type TaskListViewSortKey = ReturnType<typeof toTaskListSortKeyType>;
50
50
  export declare const TASK_LIST_FILTER_CATEGORIES: TaskListFilterCategoryOption[];
51
51
  interface TaskListFilterCategoryOption {
@@ -54,7 +54,7 @@ export declare const getTaskListGroupedByPriority: ({ taskListState, taskState,
54
54
  tagState: TagState;
55
55
  }) => {
56
56
  groupName: string;
57
- id: "urgent" | "high" | "normal" | "medium" | "low";
57
+ id: "normal" | "high" | "low" | "medium" | "urgent";
58
58
  isDefault: boolean;
59
59
  tasks: TaskWithUserDetails[];
60
60
  }[];
@@ -9,7 +9,8 @@ const fetchTasksCardEpic = (actions$, _, zeniAPI) => actions$.pipe((0, operators
9
9
  .getJSON(`${zeniAPI.apiEndPoints.accountMicroServiceBaseUrl}/1.0/reports/task_card`)
10
10
  .pipe((0, operators_1.mergeMap)((response) => {
11
11
  if ((0, responsePayload_1.isSuccessResponse)(response)) {
12
- return (0, rxjs_1.of)((0, tasksCardReducer_1.updateTasksCard)(response.data));
12
+ return (0, rxjs_1.of)((0, tasksCardReducer_1.updateTasksCard)(response.data) // eslint-disable-line @typescript-eslint/no-non-null-assertion
13
+ );
13
14
  }
14
15
  else {
15
16
  return (0, rxjs_1.of)((0, tasksCardReducer_1.updateTasksCardFailure)(response.status));