@zeniai/client-epic-state 4.15.52 → 4.15.54

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 (240) 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 +9 -18
  44. package/lib/entity/tenant/tenantSelector.d.ts +0 -2
  45. package/lib/entity/tenant/tenantSelector.js +0 -6
  46. package/lib/entity/tenant/tenantState.d.ts +0 -3
  47. package/lib/entity/transaction/payloadTypes/customerTransactionPayload.d.ts +1 -1
  48. package/lib/entity/transaction/payloadTypes/customerTransactionPayload.js +2 -1
  49. package/lib/entity/transaction/payloadTypes/transactionPayload.d.ts +0 -2
  50. package/lib/entity/transaction/payloadTypes/transactionPayload.js +6 -9
  51. package/lib/entity/transaction/payloadTypes/vendorTransactionPayload.d.ts +1 -9
  52. package/lib/entity/transaction/payloadTypes/vendorTransactionPayload.js +2 -24
  53. package/lib/entity/transaction/stateTypes/attachment.d.ts +2 -2
  54. package/lib/entity/transaction/stateTypes/transaction.d.ts +1 -3
  55. package/lib/entity/transaction/stateTypes/transactionType.d.ts +1 -1
  56. package/lib/entity/transaction/stateTypes/transactionType.js +1 -1
  57. package/lib/entity/transaction/stateTypes/vendorTransaction.d.ts +0 -5
  58. package/lib/entity/transaction/stateTypes/vendorTransaction.js +1 -5
  59. package/lib/entity/transaction/toSupportedTransaction.js +1 -6
  60. package/lib/entity/transaction/transactionReducer.d.ts +0 -17
  61. package/lib/entity/transaction/transactionReducer.js +2 -47
  62. package/lib/entity/transaction/transactionSelector.d.ts +0 -2
  63. package/lib/entity/transaction/transactionSelector.js +0 -5
  64. package/lib/entity/transaction/transactionState.d.ts +4 -6
  65. package/lib/entity/vendorExpense/vendorExpenseReducer.js +1 -0
  66. package/lib/entity/vendorExpense/vendorExpenseSelector.d.ts +2 -2
  67. package/lib/epic.d.ts +1 -6
  68. package/lib/epic.js +1 -6
  69. package/lib/index.d.ts +14 -22
  70. package/lib/index.js +27 -57
  71. package/lib/init.d.ts +1 -2
  72. package/lib/init.js +2 -9
  73. package/lib/reducer.d.ts +1 -7
  74. package/lib/reducer.js +0 -6
  75. package/lib/responsePayload.d.ts +0 -2
  76. package/lib/responsePayload.js +1 -9
  77. package/lib/view/accountList/accountListReducer.js +3 -1
  78. package/lib/view/accountMappingView/accountMappingReducer.js +1 -0
  79. package/lib/view/apAgingView/apAgingDetail/apAgingDetailReducer.js +2 -1
  80. package/lib/view/auditReportView/auditReportViewReducer.d.ts +2 -2
  81. package/lib/view/auditReportView/auditReportViewState.d.ts +2 -2
  82. package/lib/view/balanceSheet/balanceSheetReducer.js +6 -1
  83. package/lib/view/bankAccountView/bankAccountViewReducer.js +1 -0
  84. package/lib/view/billPayCard/billPayCardSelector.d.ts +2 -2
  85. package/lib/view/cardBalance/cardBalanceSelector.d.ts +3 -3
  86. package/lib/view/cashBalance/cashBalanceSelector.d.ts +3 -3
  87. package/lib/view/cashFlow/cashFlowReducer.js +4 -1
  88. package/lib/view/cashInCashOut/cashInCashOutSelector.d.ts +2 -2
  89. package/lib/view/cashPosition/cashPositionReducer.js +1 -0
  90. package/lib/view/cashPosition/cashPositionSelector.d.ts +2 -2
  91. package/lib/view/common/reportsHelpers.d.ts +1 -1
  92. package/lib/view/commonVendorView/transactionVendorView/epics/saveTransactionVendorEpic.js +2 -20
  93. package/lib/view/commonVendorView/vendorView/epics/fetchAndUpdateVendorRecommendationsEpic.js +3 -1
  94. package/lib/view/commonVendorView/vendorsTabVendorView/vendorsTabVendorViewReducer.d.ts +2 -2
  95. package/lib/view/companyTaskManagerView/companyTaskManagerViewReducer.d.ts +2 -2
  96. package/lib/view/companyView/companyViewReducer.d.ts +1 -1
  97. package/lib/view/companyView/companyViewReducer.js +10 -1
  98. package/lib/view/companyView/types/cockpitTypes.d.ts +3 -3
  99. package/lib/view/companyView/types/companyPassport/companyUsersLocalData.d.ts +1 -1
  100. package/lib/view/dashboard/dashboardEpic.js +2 -0
  101. package/lib/view/dashboard/dashboardReducer.d.ts +2 -2
  102. package/lib/view/expenseAutomationView/epics/common/fetchAllExpenseAutomationTabsEpic.d.ts +1 -2
  103. package/lib/view/expenseAutomationView/epics/common/fetchAllExpenseAutomationTabsEpic.js +10 -24
  104. package/lib/view/expenseAutomationView/epics/common/refreshExpenseAutomationCurrentTabEpic.d.ts +1 -2
  105. package/lib/view/expenseAutomationView/epics/common/refreshExpenseAutomationCurrentTabEpic.js +0 -14
  106. package/lib/view/expenseAutomationView/epics/transactionCategorization/updateTransactionCategorizationEpic.js +7 -30
  107. package/lib/view/expenseAutomationView/expenseAutomationViewReducer.d.ts +2 -2
  108. package/lib/view/expenseAutomationView/expenseAutomationViewReducer.js +5 -1
  109. package/lib/view/expenseAutomationView/expenseAutomationViewSelector.js +2 -17
  110. package/lib/view/expenseAutomationView/expenseAutomationViewState.d.ts +2 -2
  111. package/lib/view/expenseAutomationView/expenseAutomationViewState.js +1 -1
  112. package/lib/view/expenseAutomationView/helpers/saveTransactionHelper.js +53 -53
  113. package/lib/view/expenseAutomationView/helpers/transactionCategorizationLocalDataHelper.d.ts +1 -1
  114. package/lib/view/expenseAutomationView/helpers/transactionCategorizationLocalDataHelper.js +10 -86
  115. package/lib/view/expenseAutomationView/reducers/jeSchedulesViewReducer.d.ts +11 -11
  116. package/lib/view/expenseAutomationView/reducers/transactionsViewReducer.d.ts +1 -12
  117. package/lib/view/expenseAutomationView/reducers/transactionsViewReducer.js +7 -66
  118. package/lib/view/expenseAutomationView/selectorTypes/expenseAutomationViewSelectorTypes.d.ts +0 -2
  119. package/lib/view/expenseAutomationView/selectorTypes/expenseAutomationViewSelectorTypes.js +1 -1
  120. package/lib/view/expenseAutomationView/selectors/jeSchedulesViewSelector.js +2 -5
  121. package/lib/view/expenseAutomationView/types/fluxAnalysisViewState.d.ts +1 -1
  122. package/lib/view/expenseAutomationView/types/missingReceiptsViewState.d.ts +1 -1
  123. package/lib/view/expenseAutomationView/types/transactionsViewState.d.ts +2 -12
  124. package/lib/view/financeStatement/financeStatementReducer.d.ts +1 -1
  125. package/lib/view/financeStatement/financeStatementReducer.js +4 -1
  126. package/lib/view/globalMerchantView/globalMerchantViewReducer.d.ts +4 -4
  127. package/lib/view/netBurnOrIncome/netBurnOrIncomeReducer.js +10 -3
  128. package/lib/view/netBurnOrIncomeClassesView/netBurnOrIncomeClassesViewReducer.js +6 -1
  129. package/lib/view/netBurnOrIncomeStoryCard/netBurnOrIncomeStoryCardReducer.js +1 -0
  130. package/lib/view/netBurnOrIncomeStoryCard/netBurnOrIncomeStoryCardState.d.ts +1 -1
  131. package/lib/view/notificationView/notificationViewReducer.d.ts +8 -8
  132. package/lib/view/notificationView/notificationViewState.d.ts +2 -2
  133. package/lib/view/onboardingView/cockpitView/onboardingCockpitViewReducer.js +3 -0
  134. package/lib/view/onboardingView/customerView/onboardingCustomerViewReducer.d.ts +2 -2
  135. package/lib/view/opEx/opExForTimeFrameEpic.js +1 -1
  136. package/lib/view/opEx/opExReducer.js +14 -4
  137. package/lib/view/opExByVendor/opExByVendorReducer.js +3 -1
  138. package/lib/view/opExByVendor/opExByVendorState.d.ts +1 -1
  139. package/lib/view/opExClassesView/opExClassesViewReducer.js +6 -1
  140. package/lib/view/people/fetchPeopleEpic.js +3 -1
  141. package/lib/view/people/invitePeopleEpic.js +3 -1
  142. package/lib/view/people/inviteZeniPeopleEpic.js +3 -1
  143. package/lib/view/people/peopleReducer.js +1 -0
  144. package/lib/view/people/peopleSaveUpdatesEpic.js +1 -1
  145. package/lib/view/profitAndLoss/profitAndLossReducer.js +6 -1
  146. package/lib/view/profitAndLossClassesView/profitAndLossClassesViewReducer.js +6 -1
  147. package/lib/view/recommendation/recommendationReducer.js +4 -1
  148. package/lib/view/referralView/referralState.d.ts +1 -1
  149. package/lib/view/reimbursementCard/reimbursementCardSelector.d.ts +2 -2
  150. package/lib/view/reportUIOptions/reportUIOptionsReducer.d.ts +8 -8
  151. package/lib/view/reportUIOptions/updateReportUIOptionThisPeriodEpic.js +3 -1
  152. package/lib/view/revenue/revenueReducer.js +10 -3
  153. package/lib/view/revenueClassesView/revenueClassesViewReducer.js +6 -1
  154. package/lib/view/scheduleView/scheduleAccruedDetailView/LinkBillExpenseView/linkBillExpense.d.ts +1 -1
  155. package/lib/view/scheduleView/scheduleDetailView/scheduleDetailReducer.d.ts +4 -4
  156. package/lib/view/scheduleView/scheduleListView/scheduleListTypes.d.ts +2 -2
  157. package/lib/view/settingsView/settingsViewReducer.js +1 -0
  158. package/lib/view/settingsView/settingsViewState.d.ts +1 -1
  159. package/lib/view/spendManagement/billPay/billList/billListReducer.d.ts +1 -1
  160. package/lib/view/spendManagement/billPay/billList/billListReducer.js +1 -0
  161. package/lib/view/spendManagement/billPay/billList/billListState.d.ts +2 -2
  162. package/lib/view/spendManagement/billPay/billPayConfig/billPayConfigState.d.ts +1 -1
  163. package/lib/view/spendManagement/billPay/billPayConfig/billPayConfigState.js +6 -0
  164. package/lib/view/spendManagement/billPay/billsBulkActionView/billsBulkActionViewReducer.d.ts +2 -2
  165. package/lib/view/spendManagement/billPay/billsBulkActionView/epics/validateBillsBulkActionEpic.ts.js +3 -4
  166. package/lib/view/spendManagement/billPay/editBillView/epics/fetchBillAndInitializeLocalStoreEpic.js +3 -1
  167. package/lib/view/spendManagement/chargeCards/chargeCardDetail/chargeCardDetail.d.ts +2 -2
  168. package/lib/view/spendManagement/commonHistoryView/commonHistory.d.ts +1 -1
  169. package/lib/view/spendManagement/commonSetup/setupViewReducer.d.ts +7 -7
  170. package/lib/view/spendManagement/commonSetup/setupViewState.d.ts +1 -1
  171. package/lib/view/spendManagement/plaidAccount/epic/plaidConnection/establishPlaidConnectionEpic.js +3 -11
  172. package/lib/view/spendManagement/plaidAccount/plaidAccountViewReducer.d.ts +10 -11
  173. package/lib/view/spendManagement/plaidAccount/plaidAccountViewReducer.js +1 -3
  174. package/lib/view/spendManagement/plaidAccount/plaidAccountViewState.d.ts +1 -1
  175. package/lib/view/spendManagement/reimbursement/editRemiView/epics/fetchRecommendationsAndUpdateMerchantRecommendationsEpic.js +6 -2
  176. package/lib/view/spendManagement/reimbursement/editRemiView/epics/fetchRemiAndInitializeLocalStoreEpic.js +3 -1
  177. package/lib/view/spendManagement/reimbursement/remiListView/remiListReducer.d.ts +1 -1
  178. package/lib/view/spendManagement/reimbursement/remiListView/remiListReducer.js +1 -0
  179. package/lib/view/spendManagement/reimbursement/remiListView/remiListState.d.ts +4 -4
  180. package/lib/view/spendManagement/reimbursement/remisBulkActionView/remisBulkActionViewReducer.d.ts +2 -2
  181. package/lib/view/subscriptionView/subscriptionViewReducer.js +1 -0
  182. package/lib/view/subscriptionView/types/subscriptionTypes.js +1 -0
  183. package/lib/view/taskManager/taskListView/epics/dragNDropTasksEpic.js +3 -1
  184. package/lib/view/taskManager/taskListView/taskList.d.ts +3 -3
  185. package/lib/view/taskManager/taskListView/taskListSelector.d.ts +1 -1
  186. package/lib/view/tasksCard/fetchTasksCardEpic.js +2 -1
  187. package/lib/view/tasksCard/tasksCardSelector.d.ts +2 -2
  188. package/lib/view/tasksCard/tasksCardSelector.js +1 -1
  189. package/lib/view/topEx/topExSelector.d.ts +3 -3
  190. package/lib/view/transactionDetail/epics/saveTransactionHelper.js +59 -34
  191. package/lib/view/transactionDetail/epics/updateTransactionDetailEpic.js +4 -22
  192. package/lib/view/transactionDetail/transactionDetailLocalDataHelper.js +13 -66
  193. package/lib/view/transactionDetail/transactionDetailReducer.d.ts +4 -13
  194. package/lib/view/transactionDetail/transactionDetailReducer.js +21 -51
  195. package/lib/view/transactionDetail/transactionDetailState.d.ts +2 -3
  196. package/lib/view/transactionDetail/transactionDetailTypes.d.ts +0 -8
  197. package/lib/view/transactionList/transactionListByEntitySelector.js +2 -0
  198. package/lib/view/transactionList/transactionListReducer.js +6 -4
  199. package/lib/view/trendWithTransactions/trendWithTransactionsReducer.js +1 -0
  200. package/lib/view/userFinancialAccount/userFinancialAccountReducer.js +3 -1
  201. package/lib/view/vendorFiling1099/vendorFiling1099List/vendorFiling1099ListState.d.ts +1 -1
  202. package/lib/view/vendorReviewView/vendorFirstReviewView/vendorFirstReviewViewState.d.ts +1 -1
  203. package/lib/view/vendorReviewView/vendorGlobalReviewView/vendorGlobalReviewViewState.d.ts +1 -1
  204. package/lib/zeniAPI.d.ts +0 -1
  205. package/lib/zeniUrl.d.ts +1 -1
  206. package/package.json +13 -14
  207. package/lib/entity/accountRecon/accountReconPayload.d.ts +0 -71
  208. package/lib/entity/accountRecon/accountReconPayload.js +0 -131
  209. package/lib/entity/accountRecon/accountReconReducer.d.ts +0 -16
  210. package/lib/entity/accountRecon/accountReconReducer.js +0 -71
  211. package/lib/entity/accountRecon/accountReconSelector.d.ts +0 -34
  212. package/lib/entity/accountRecon/accountReconSelector.js +0 -47
  213. package/lib/entity/accountRecon/accountReconState.d.ts +0 -76
  214. package/lib/entity/accountRecon/accountReconState.js +0 -35
  215. package/lib/entity/transaction/payloadTypes/reconciliationTransactionPayloads.d.ts +0 -35
  216. package/lib/entity/transaction/payloadTypes/reconciliationTransactionPayloads.js +0 -53
  217. package/lib/entity/transaction/stateTypes/reconciliationTransaction.d.ts +0 -32
  218. package/lib/entity/transaction/stateTypes/reconciliationTransaction.js +0 -10
  219. package/lib/view/expenseAutomationView/epics/accountRecon/fetchReconciliationViewEpic.d.ts +0 -15
  220. package/lib/view/expenseAutomationView/epics/accountRecon/fetchReconciliationViewEpic.js +0 -118
  221. package/lib/view/expenseAutomationView/epics/accountRecon/initialiseLocalDataForSelectedAccountIdEpic.d.ts +0 -10
  222. package/lib/view/expenseAutomationView/epics/accountRecon/initialiseLocalDataForSelectedAccountIdEpic.js +0 -49
  223. package/lib/view/expenseAutomationView/epics/accountRecon/saveReconciliationDetailEpic.d.ts +0 -14
  224. package/lib/view/expenseAutomationView/epics/accountRecon/saveReconciliationDetailEpic.js +0 -178
  225. package/lib/view/expenseAutomationView/epics/accountRecon/saveReconciliationReviewEpic.d.ts +0 -9
  226. package/lib/view/expenseAutomationView/epics/accountRecon/saveReconciliationReviewEpic.js +0 -154
  227. package/lib/view/expenseAutomationView/epics/accountRecon/updateReconcileTabLocalDataEpic.d.ts +0 -6
  228. package/lib/view/expenseAutomationView/epics/accountRecon/updateReconcileTabLocalDataEpic.js +0 -110
  229. package/lib/view/expenseAutomationView/helpers/reconciliationHelpers.d.ts +0 -7
  230. package/lib/view/expenseAutomationView/helpers/reconciliationHelpers.js +0 -18
  231. package/lib/view/expenseAutomationView/payload/reconciliationPayload.d.ts +0 -28
  232. package/lib/view/expenseAutomationView/payload/reconciliationPayload.js +0 -51
  233. package/lib/view/expenseAutomationView/reducers/reconciliationViewReducer.d.ts +0 -66
  234. package/lib/view/expenseAutomationView/reducers/reconciliationViewReducer.js +0 -384
  235. package/lib/view/expenseAutomationView/selectorTypes/reconciliationViewSelectorTypes.d.ts +0 -53
  236. package/lib/view/expenseAutomationView/selectorTypes/reconciliationViewSelectorTypes.js +0 -7
  237. package/lib/view/expenseAutomationView/selectors/reconciliationViewSelector.d.ts +0 -5
  238. package/lib/view/expenseAutomationView/selectors/reconciliationViewSelector.js +0 -278
  239. package/lib/view/expenseAutomationView/types/reconciliationViewState.d.ts +0 -103
  240. package/lib/view/expenseAutomationView/types/reconciliationViewState.js +0 -37
@@ -43,8 +43,8 @@ export interface AttachmentFile {
43
43
  fileName: string;
44
44
  }
45
45
  export type FileSizeUnit = 'bytes';
46
- declare const toSupportedFileType: (v: string) => "application/pdf" | "image/jpeg" | "image/jpg" | "image/png" | "image/bmp" | "image/heic" | "text/html" | "text/csv" | "text/plain";
47
- export declare const toSupportedFileTypeStrict: (v: string) => "application/pdf" | "image/jpeg" | "image/jpg" | "image/png" | "image/bmp" | "image/heic" | "text/html" | "text/csv" | "text/plain" | undefined;
46
+ declare const toSupportedFileType: (v: string) => "text/html" | "application/pdf" | "image/jpeg" | "image/jpg" | "image/png" | "image/bmp" | "image/heic" | "text/csv" | "text/plain";
47
+ export declare const toSupportedFileTypeStrict: (v: string) => "text/html" | "application/pdf" | "image/jpeg" | "image/jpg" | "image/png" | "image/bmp" | "image/heic" | "text/csv" | "text/plain" | undefined;
48
48
  export type SupportedFileType = ReturnType<typeof toSupportedFileType>;
49
49
  declare const toSupportedFileFormatType: (v: string) => ".pdf" | ".jpeg" | ".jpg" | ".bmp" | ".heic" | ".png" | ".csv" | ".txt";
50
50
  export type SupportedFileFormatType = ReturnType<typeof toSupportedFileFormatType>;
@@ -52,7 +52,7 @@ export declare const SUPPORTED_ATTACHMENT_FILE_TYPES: readonly ["application/pdf
52
52
  export declare const toSupportedAttachmentFileType: (v: string) => "application/pdf" | "image/jpeg" | "image/jpg" | "image/png" | "text/plain" | "application/vnd.ms-excel" | "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet";
53
53
  export type SupportedAttachmentFileType = ReturnType<typeof toSupportedAttachmentFileType>;
54
54
  export declare const SUPPORTED_TRANSACTION_LINE_ATTACHMENT_FILE_TYPES: readonly ["application/x-excel", "application/pdf", "image/jpeg", "image/jpg", "image/png", "text/csv", "image/tiff", "image/tif", "image/gif", "text/xml", "application/xml", "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", "application/msword"];
55
- export declare const toSupportedTransactionLineAttachmentFileType: (v: string) => "application/pdf" | "image/jpeg" | "image/jpg" | "image/png" | "text/csv" | "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" | "application/x-excel" | "image/tiff" | "image/tif" | "image/gif" | "text/xml" | "application/xml" | "application/msword";
55
+ export declare const toSupportedTransactionLineAttachmentFileType: (v: string) => "application/xml" | "text/xml" | "application/pdf" | "image/jpeg" | "image/jpg" | "image/png" | "text/csv" | "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" | "application/x-excel" | "image/tiff" | "image/tif" | "image/gif" | "application/msword";
56
56
  export type SupportedTransactionLineAttachmentFileType = ReturnType<typeof toSupportedTransactionLineAttachmentFileType>;
57
57
  export declare const toSupportedAttachmentFileFormatType: (v: string) => ".pdf" | ".jpeg" | ".jpg" | ".png" | ".txt" | ".xls" | ".xlsx";
58
58
  type SupportedAttachmentFileFormatType = ReturnType<typeof toSupportedAttachmentFileFormatType>;
@@ -3,7 +3,7 @@ import { TimeframeTick } from '../../commonStateTypes/timeframeTick';
3
3
  import { ReportID } from '../../commonStateTypes/viewAndReport/viewAndReport';
4
4
  import { ZeniDate } from '../../zeniDayJS';
5
5
  export type ForecastType = ReportID;
6
- export declare const toForecastType: (v: string) => "cash_balance" | "card_balance" | "expense_automation_card" | "operating_expenses" | "operating_expenses_by_classes" | "revenue" | "revenue_by_classes" | "net_burn_or_income" | "net_burn_or_income_story_card" | "net_burn_or_income_by_classes" | "cash_position" | "top_expenses" | "profit_and_loss" | "profit_and_loss_by_classes" | "balance_sheet" | "cash_flow" | "dashboard" | "finance_statement" | "transaction_list_of_account" | "transaction_list_missing_receipt" | "transaction_list_of_account_by_class" | "transaction_detail" | "cash_in_cash_out" | "insights_dashboard" | "company_details" | "class_list" | "account_list" | "account_list_by_type" | "vendor" | "task_card" | "bill_pay" | "reimbursement" | "bill_pay_card" | "reimbursement_card" | "bill_pay_promo_card" | "zeni_accounts" | "zeni_accounts_promo_card" | "charge_cards" | "reimbursement_promo_card" | "onboarding" | "operating_expenses_by_vendor" | "operating_expenses_by_vendor_summary" | "vendors_tab" | "accounts_payable_aging" | "accounts_receivable_aging" | "vendor_global_review" | "prepaid_expenses" | "fixed_assets" | "notification" | "rewards_card" | "billing" | "flux_analysis_operating_expense" | "account_reconciliation";
6
+ export declare const toForecastType: (v: string) => "billing" | "cash_balance" | "card_balance" | "expense_automation_card" | "operating_expenses" | "operating_expenses_by_classes" | "revenue" | "revenue_by_classes" | "net_burn_or_income" | "net_burn_or_income_story_card" | "net_burn_or_income_by_classes" | "cash_position" | "top_expenses" | "profit_and_loss" | "profit_and_loss_by_classes" | "balance_sheet" | "cash_flow" | "dashboard" | "finance_statement" | "transaction_list_of_account" | "transaction_list_missing_receipt" | "transaction_list_of_account_by_class" | "transaction_detail" | "cash_in_cash_out" | "insights_dashboard" | "company_details" | "class_list" | "account_list" | "account_list_by_type" | "vendor" | "task_card" | "bill_pay" | "reimbursement" | "bill_pay_card" | "reimbursement_card" | "bill_pay_promo_card" | "zeni_accounts" | "zeni_accounts_promo_card" | "charge_cards" | "reimbursement_promo_card" | "onboarding" | "operating_expenses_by_vendor" | "operating_expenses_by_vendor_summary" | "vendors_tab" | "accounts_payable_aging" | "accounts_receivable_aging" | "vendor_global_review" | "prepaid_expenses" | "fixed_assets" | "notification" | "rewards_card" | "flux_analysis_operating_expense";
7
7
  export interface Forecast {
8
8
  id: ID;
9
9
  type: ForecastType;
@@ -18,8 +18,8 @@ export declare const updateJESchedules: import("@reduxjs/toolkit").ActionCreator
18
18
  jeSchedulesPayload: JEAccruedScheduledTransactionPayload[];
19
19
  scheduledJEntriesPayload: ScheduledJournalEntryPayload[] | undefined;
20
20
  updateType: UpdateType;
21
- }, "jeSchedules/updateAccruedJESchedulesDetails", never, never>, deleteJESchedulesDetails: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[jeScheduleTransactionKey: `${string}_invoice` | `${string}_payment` | `${string}_credit_memo` | `${string}_sales_receipt` | `${string}_delayed_credit` | `${string}_delayed_charge` | `${string}_refund` | `${string}_expense` | `${string}_check` | `${string}_bill` | `${string}_bill_payment` | `${string}_bill_payment_check` | `${string}_bill_payment_credit_card` | `${string}_vendor_credit` | `${string}_credit_card_credit` | `${string}_transfer` | `${string}_credit_card_payment` | `${string}_deposit` | `${string}_journal_entry`], {
22
- jeScheduleTransactionKey: `${string}_invoice` | `${string}_payment` | `${string}_credit_memo` | `${string}_sales_receipt` | `${string}_delayed_credit` | `${string}_delayed_charge` | `${string}_refund` | `${string}_expense` | `${string}_check` | `${string}_bill` | `${string}_bill_payment` | `${string}_bill_payment_check` | `${string}_bill_payment_credit_card` | `${string}_vendor_credit` | `${string}_credit_card_credit` | `${string}_transfer` | `${string}_credit_card_payment` | `${string}_deposit` | `${string}_journal_entry`;
21
+ }, "jeSchedules/updateAccruedJESchedulesDetails", never, never>, deleteJESchedulesDetails: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[jeScheduleTransactionKey: `${string}_transfer` | `${string}_invoice` | `${string}_payment` | `${string}_credit_memo` | `${string}_sales_receipt` | `${string}_delayed_credit` | `${string}_delayed_charge` | `${string}_refund` | `${string}_expense` | `${string}_check` | `${string}_bill` | `${string}_bill_payment` | `${string}_bill_payment_check` | `${string}_bill_payment_credit_card` | `${string}_vendor_credit` | `${string}_credit_card_credit` | `${string}_credit_card_payment` | `${string}_deposit` | `${string}_journal_entry`], {
22
+ jeScheduleTransactionKey: `${string}_transfer` | `${string}_invoice` | `${string}_payment` | `${string}_credit_memo` | `${string}_sales_receipt` | `${string}_delayed_credit` | `${string}_delayed_charge` | `${string}_refund` | `${string}_expense` | `${string}_check` | `${string}_bill` | `${string}_bill_payment` | `${string}_bill_payment_check` | `${string}_bill_payment_credit_card` | `${string}_vendor_credit` | `${string}_credit_card_credit` | `${string}_credit_card_payment` | `${string}_deposit` | `${string}_journal_entry`;
23
23
  }, "jeSchedules/deleteJESchedulesDetails", never, never>, deleteAccruedJESchedulesDetails: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[JEScheduleKey: `${string}_${string}`], {
24
24
  JEScheduleKey: `${string}_${string}`;
25
25
  }, "jeSchedules/deleteAccruedJESchedulesDetails", never, never>, clearAllAccruedJESchedules: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"jeSchedules/clearAllAccruedJESchedules">, clearAllJEScheduleTransactions: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"jeSchedules/clearAllJEScheduleTransactions">;
@@ -6,9 +6,9 @@ export declare const ALL_SCHEDULES_TYPES: readonly ["prepaid_expenses", "fixed_a
6
6
  export declare const toScheduleTypesType: (v: string) => "prepaid_expenses" | "fixed_assets" | "accrued_expenses" | "deferred_revenue";
7
7
  export type ScheduleTypes = ReturnType<typeof toScheduleTypesType>;
8
8
  export declare const toScheduleTypesTypeStrict: (v?: string) => "prepaid_expenses" | "fixed_assets" | "accrued_expenses" | "deferred_revenue" | undefined;
9
- export declare const toScheduleJournalEntryStatusCodeType: (v: string) => "posted" | "pending" | "unknown" | "canceled" | "recorded";
9
+ export declare const toScheduleJournalEntryStatusCodeType: (v: string) => "unknown" | "canceled" | "pending" | "posted" | "recorded";
10
10
  export type ScheduleJournalEntryStatusCodeType = ReturnType<typeof toScheduleJournalEntryStatusCodeType>;
11
- export declare const toScheduleStatusCodeType: (v: string) => "draft" | "completed" | "new" | "ongoing" | "marked_as_completed";
11
+ export declare const toScheduleStatusCodeType: (v: string) => "new" | "completed" | "draft" | "ongoing" | "marked_as_completed";
12
12
  export type ScheduleStatusCodeType = ReturnType<typeof toScheduleStatusCodeType>;
13
13
  export declare const toJournalEntryErrorCodeType: (v: string) => "vendor_deleted" | "debit_category_deleted" | "credit_category_deleted" | "qbo_error" | "qbo_authorization_error" | "qbo_invalid_company_status_error" | "qbo_book_close_date_error";
14
14
  export type JournalEntryErrorCodeType = ReturnType<typeof toJournalEntryErrorCodeType>;
@@ -3,8 +3,8 @@ export declare const toNotificationGroup: (v: string) => "task_manager";
3
3
  export type NotificationGroup = ReturnType<typeof toNotificationGroup>;
4
4
  export declare const toNotificationStatus: (v: string) => "read" | "unread";
5
5
  export type NotificationStatus = ReturnType<typeof toNotificationStatus>;
6
- export declare const toNotificationMode: (v: string) => "dashboard" | "email";
7
- export declare const toNotificationModeStrict: (v: string) => "dashboard" | "email" | undefined;
6
+ export declare const toNotificationMode: (v: string) => "email" | "dashboard";
7
+ export declare const toNotificationModeStrict: (v: string) => "email" | "dashboard" | undefined;
8
8
  export type NotificationMode = ReturnType<typeof toNotificationMode>;
9
9
  export declare const toNotificationActivityType: (v: string) => "task_assigned" | "task_status_updated" | "task_activities" | "task_created" | "task_deleted" | "task_archived" | "task_due" | "task_overdue";
10
10
  export type NotificationActivityType = ReturnType<typeof toNotificationActivityType>;
@@ -10,5 +10,5 @@ export interface SectionAccountsView {
10
10
  nestedAccountIds: NestedAccountIDHierarchy[];
11
11
  accountGroupKeys: AccountGroupKey[];
12
12
  }
13
- export declare function getSectionAccountViewKey(sectionId: ID, reportId: ReportIDPlusForecastID): `${string}-cash_balance` | `${string}-card_balance` | `${string}-expense_automation_card` | `${string}-operating_expenses` | `${string}-operating_expenses_by_classes` | `${string}-revenue` | `${string}-revenue_by_classes` | `${string}-net_burn_or_income` | `${string}-net_burn_or_income_story_card` | `${string}-net_burn_or_income_by_classes` | `${string}-cash_position` | `${string}-top_expenses` | `${string}-profit_and_loss` | `${string}-profit_and_loss_by_classes` | `${string}-balance_sheet` | `${string}-cash_flow` | `${string}-dashboard` | `${string}-finance_statement` | `${string}-transaction_list_of_account` | `${string}-transaction_list_missing_receipt` | `${string}-transaction_list_of_account_by_class` | `${string}-transaction_detail` | `${string}-cash_in_cash_out` | `${string}-insights_dashboard` | `${string}-company_details` | `${string}-class_list` | `${string}-account_list` | `${string}-account_list_by_type` | `${string}-vendor` | `${string}-task_card` | `${string}-bill_pay` | `${string}-reimbursement` | `${string}-bill_pay_card` | `${string}-reimbursement_card` | `${string}-bill_pay_promo_card` | `${string}-zeni_accounts` | `${string}-zeni_accounts_promo_card` | `${string}-charge_cards` | `${string}-reimbursement_promo_card` | `${string}-onboarding` | `${string}-operating_expenses_by_vendor` | `${string}-operating_expenses_by_vendor_summary` | `${string}-vendors_tab` | `${string}-accounts_payable_aging` | `${string}-accounts_receivable_aging` | `${string}-vendor_global_review` | `${string}-prepaid_expenses` | `${string}-fixed_assets` | `${string}-notification` | `${string}-rewards_card` | `${string}-billing` | `${string}-flux_analysis_operating_expense` | `${string}-account_reconciliation` | `${string}-cash_balance+${string}` | `${string}-card_balance+${string}` | `${string}-expense_automation_card+${string}` | `${string}-operating_expenses+${string}` | `${string}-operating_expenses_by_classes+${string}` | `${string}-revenue+${string}` | `${string}-revenue_by_classes+${string}` | `${string}-net_burn_or_income+${string}` | `${string}-net_burn_or_income_story_card+${string}` | `${string}-net_burn_or_income_by_classes+${string}` | `${string}-cash_position+${string}` | `${string}-top_expenses+${string}` | `${string}-profit_and_loss+${string}` | `${string}-profit_and_loss_by_classes+${string}` | `${string}-balance_sheet+${string}` | `${string}-cash_flow+${string}` | `${string}-dashboard+${string}` | `${string}-finance_statement+${string}` | `${string}-transaction_list_of_account+${string}` | `${string}-transaction_list_missing_receipt+${string}` | `${string}-transaction_list_of_account_by_class+${string}` | `${string}-transaction_detail+${string}` | `${string}-cash_in_cash_out+${string}` | `${string}-insights_dashboard+${string}` | `${string}-company_details+${string}` | `${string}-class_list+${string}` | `${string}-account_list+${string}` | `${string}-account_list_by_type+${string}` | `${string}-vendor+${string}` | `${string}-task_card+${string}` | `${string}-bill_pay+${string}` | `${string}-reimbursement+${string}` | `${string}-bill_pay_card+${string}` | `${string}-reimbursement_card+${string}` | `${string}-bill_pay_promo_card+${string}` | `${string}-zeni_accounts+${string}` | `${string}-zeni_accounts_promo_card+${string}` | `${string}-charge_cards+${string}` | `${string}-reimbursement_promo_card+${string}` | `${string}-onboarding+${string}` | `${string}-operating_expenses_by_vendor+${string}` | `${string}-operating_expenses_by_vendor_summary+${string}` | `${string}-vendors_tab+${string}` | `${string}-accounts_payable_aging+${string}` | `${string}-accounts_receivable_aging+${string}` | `${string}-vendor_global_review+${string}` | `${string}-prepaid_expenses+${string}` | `${string}-fixed_assets+${string}` | `${string}-notification+${string}` | `${string}-rewards_card+${string}` | `${string}-billing+${string}` | `${string}-flux_analysis_operating_expense+${string}` | `${string}-account_reconciliation+${string}`;
13
+ export declare function getSectionAccountViewKey(sectionId: ID, reportId: ReportIDPlusForecastID): `${string}-billing` | `${string}-cash_balance` | `${string}-card_balance` | `${string}-expense_automation_card` | `${string}-operating_expenses` | `${string}-operating_expenses_by_classes` | `${string}-revenue` | `${string}-revenue_by_classes` | `${string}-net_burn_or_income` | `${string}-net_burn_or_income_story_card` | `${string}-net_burn_or_income_by_classes` | `${string}-cash_position` | `${string}-top_expenses` | `${string}-profit_and_loss` | `${string}-profit_and_loss_by_classes` | `${string}-balance_sheet` | `${string}-cash_flow` | `${string}-dashboard` | `${string}-finance_statement` | `${string}-transaction_list_of_account` | `${string}-transaction_list_missing_receipt` | `${string}-transaction_list_of_account_by_class` | `${string}-transaction_detail` | `${string}-cash_in_cash_out` | `${string}-insights_dashboard` | `${string}-company_details` | `${string}-class_list` | `${string}-account_list` | `${string}-account_list_by_type` | `${string}-vendor` | `${string}-task_card` | `${string}-bill_pay` | `${string}-reimbursement` | `${string}-bill_pay_card` | `${string}-reimbursement_card` | `${string}-bill_pay_promo_card` | `${string}-zeni_accounts` | `${string}-zeni_accounts_promo_card` | `${string}-charge_cards` | `${string}-reimbursement_promo_card` | `${string}-onboarding` | `${string}-operating_expenses_by_vendor` | `${string}-operating_expenses_by_vendor_summary` | `${string}-vendors_tab` | `${string}-accounts_payable_aging` | `${string}-accounts_receivable_aging` | `${string}-vendor_global_review` | `${string}-prepaid_expenses` | `${string}-fixed_assets` | `${string}-notification` | `${string}-rewards_card` | `${string}-flux_analysis_operating_expense` | `${string}-billing+${string}` | `${string}-cash_balance+${string}` | `${string}-card_balance+${string}` | `${string}-expense_automation_card+${string}` | `${string}-operating_expenses+${string}` | `${string}-operating_expenses_by_classes+${string}` | `${string}-revenue+${string}` | `${string}-revenue_by_classes+${string}` | `${string}-net_burn_or_income+${string}` | `${string}-net_burn_or_income_story_card+${string}` | `${string}-net_burn_or_income_by_classes+${string}` | `${string}-cash_position+${string}` | `${string}-top_expenses+${string}` | `${string}-profit_and_loss+${string}` | `${string}-profit_and_loss_by_classes+${string}` | `${string}-balance_sheet+${string}` | `${string}-cash_flow+${string}` | `${string}-dashboard+${string}` | `${string}-finance_statement+${string}` | `${string}-transaction_list_of_account+${string}` | `${string}-transaction_list_missing_receipt+${string}` | `${string}-transaction_list_of_account_by_class+${string}` | `${string}-transaction_detail+${string}` | `${string}-cash_in_cash_out+${string}` | `${string}-insights_dashboard+${string}` | `${string}-company_details+${string}` | `${string}-class_list+${string}` | `${string}-account_list+${string}` | `${string}-account_list_by_type+${string}` | `${string}-vendor+${string}` | `${string}-task_card+${string}` | `${string}-bill_pay+${string}` | `${string}-reimbursement+${string}` | `${string}-bill_pay_card+${string}` | `${string}-reimbursement_card+${string}` | `${string}-bill_pay_promo_card+${string}` | `${string}-zeni_accounts+${string}` | `${string}-zeni_accounts_promo_card+${string}` | `${string}-charge_cards+${string}` | `${string}-reimbursement_promo_card+${string}` | `${string}-onboarding+${string}` | `${string}-operating_expenses_by_vendor+${string}` | `${string}-operating_expenses_by_vendor_summary+${string}` | `${string}-vendors_tab+${string}` | `${string}-accounts_payable_aging+${string}` | `${string}-accounts_receivable_aging+${string}` | `${string}-vendor_global_review+${string}` | `${string}-prepaid_expenses+${string}` | `${string}-fixed_assets+${string}` | `${string}-notification+${string}` | `${string}-rewards_card+${string}` | `${string}-flux_analysis_operating_expense+${string}`;
14
14
  export type SectionAccountKey = ReturnType<typeof getSectionAccountViewKey>;
@@ -8,5 +8,5 @@ export interface SectionClassesView {
8
8
  nestedClassesIds: NestedClassIDHierarchy[];
9
9
  balancesByPeriod?: COABalanceGroupedByPeriod;
10
10
  }
11
- export declare function getSectionClassesViewKey(sectionId: ID, reportId: ReportID): `${string}-cash_balance` | `${string}-card_balance` | `${string}-expense_automation_card` | `${string}-operating_expenses` | `${string}-operating_expenses_by_classes` | `${string}-revenue` | `${string}-revenue_by_classes` | `${string}-net_burn_or_income` | `${string}-net_burn_or_income_story_card` | `${string}-net_burn_or_income_by_classes` | `${string}-cash_position` | `${string}-top_expenses` | `${string}-profit_and_loss` | `${string}-profit_and_loss_by_classes` | `${string}-balance_sheet` | `${string}-cash_flow` | `${string}-dashboard` | `${string}-finance_statement` | `${string}-transaction_list_of_account` | `${string}-transaction_list_missing_receipt` | `${string}-transaction_list_of_account_by_class` | `${string}-transaction_detail` | `${string}-cash_in_cash_out` | `${string}-insights_dashboard` | `${string}-company_details` | `${string}-class_list` | `${string}-account_list` | `${string}-account_list_by_type` | `${string}-vendor` | `${string}-task_card` | `${string}-bill_pay` | `${string}-reimbursement` | `${string}-bill_pay_card` | `${string}-reimbursement_card` | `${string}-bill_pay_promo_card` | `${string}-zeni_accounts` | `${string}-zeni_accounts_promo_card` | `${string}-charge_cards` | `${string}-reimbursement_promo_card` | `${string}-onboarding` | `${string}-operating_expenses_by_vendor` | `${string}-operating_expenses_by_vendor_summary` | `${string}-vendors_tab` | `${string}-accounts_payable_aging` | `${string}-accounts_receivable_aging` | `${string}-vendor_global_review` | `${string}-prepaid_expenses` | `${string}-fixed_assets` | `${string}-notification` | `${string}-rewards_card` | `${string}-billing` | `${string}-flux_analysis_operating_expense` | `${string}-account_reconciliation`;
11
+ export declare function getSectionClassesViewKey(sectionId: ID, reportId: ReportID): `${string}-billing` | `${string}-cash_balance` | `${string}-card_balance` | `${string}-expense_automation_card` | `${string}-operating_expenses` | `${string}-operating_expenses_by_classes` | `${string}-revenue` | `${string}-revenue_by_classes` | `${string}-net_burn_or_income` | `${string}-net_burn_or_income_story_card` | `${string}-net_burn_or_income_by_classes` | `${string}-cash_position` | `${string}-top_expenses` | `${string}-profit_and_loss` | `${string}-profit_and_loss_by_classes` | `${string}-balance_sheet` | `${string}-cash_flow` | `${string}-dashboard` | `${string}-finance_statement` | `${string}-transaction_list_of_account` | `${string}-transaction_list_missing_receipt` | `${string}-transaction_list_of_account_by_class` | `${string}-transaction_detail` | `${string}-cash_in_cash_out` | `${string}-insights_dashboard` | `${string}-company_details` | `${string}-class_list` | `${string}-account_list` | `${string}-account_list_by_type` | `${string}-vendor` | `${string}-task_card` | `${string}-bill_pay` | `${string}-reimbursement` | `${string}-bill_pay_card` | `${string}-reimbursement_card` | `${string}-bill_pay_promo_card` | `${string}-zeni_accounts` | `${string}-zeni_accounts_promo_card` | `${string}-charge_cards` | `${string}-reimbursement_promo_card` | `${string}-onboarding` | `${string}-operating_expenses_by_vendor` | `${string}-operating_expenses_by_vendor_summary` | `${string}-vendors_tab` | `${string}-accounts_payable_aging` | `${string}-accounts_receivable_aging` | `${string}-vendor_global_review` | `${string}-prepaid_expenses` | `${string}-fixed_assets` | `${string}-notification` | `${string}-rewards_card` | `${string}-flux_analysis_operating_expense`;
12
12
  export type SectionClassesKey = ReturnType<typeof getSectionClassesViewKey>;
@@ -4,9 +4,9 @@ import { AccountMetadataPayload } from '../account/accountPayload';
4
4
  import { ClassMetadataPayload } from '../class/classPayload';
5
5
  import { SectionClassesViewStateV2 } from './sectionClassesViewState';
6
6
  export declare const initialState: SectionClassesViewStateV2;
7
- export declare const updateSectionClassesView: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[timeframe: "month" | "year" | "quarter", sectionId: string, reportId: "cash_balance" | "card_balance" | "expense_automation_card" | "operating_expenses" | "operating_expenses_by_classes" | "revenue" | "revenue_by_classes" | "net_burn_or_income" | "net_burn_or_income_story_card" | "net_burn_or_income_by_classes" | "cash_position" | "top_expenses" | "profit_and_loss" | "profit_and_loss_by_classes" | "balance_sheet" | "cash_flow" | "dashboard" | "finance_statement" | "transaction_list_of_account" | "transaction_list_missing_receipt" | "transaction_list_of_account_by_class" | "transaction_detail" | "cash_in_cash_out" | "insights_dashboard" | "company_details" | "class_list" | "account_list" | "account_list_by_type" | "vendor" | "task_card" | "bill_pay" | "reimbursement" | "bill_pay_card" | "reimbursement_card" | "bill_pay_promo_card" | "zeni_accounts" | "zeni_accounts_promo_card" | "charge_cards" | "reimbursement_promo_card" | "onboarding" | "operating_expenses_by_vendor" | "operating_expenses_by_vendor_summary" | "vendors_tab" | "accounts_payable_aging" | "accounts_receivable_aging" | "vendor_global_review" | "prepaid_expenses" | "fixed_assets" | "notification" | "rewards_card" | "billing" | "flux_analysis_operating_expense" | "account_reconciliation", sectionPayload: SectionByClassCOABalanceGroupedPayloadV2, classesMetadataPayload: ClassMetadataPayload[], accountsMetadataPayload: AccountMetadataPayload[], currencyPayload: CurrencyPayload], {
7
+ export declare const updateSectionClassesView: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[timeframe: "month" | "year" | "quarter", sectionId: string, reportId: "billing" | "cash_balance" | "card_balance" | "expense_automation_card" | "operating_expenses" | "operating_expenses_by_classes" | "revenue" | "revenue_by_classes" | "net_burn_or_income" | "net_burn_or_income_story_card" | "net_burn_or_income_by_classes" | "cash_position" | "top_expenses" | "profit_and_loss" | "profit_and_loss_by_classes" | "balance_sheet" | "cash_flow" | "dashboard" | "finance_statement" | "transaction_list_of_account" | "transaction_list_missing_receipt" | "transaction_list_of_account_by_class" | "transaction_detail" | "cash_in_cash_out" | "insights_dashboard" | "company_details" | "class_list" | "account_list" | "account_list_by_type" | "vendor" | "task_card" | "bill_pay" | "reimbursement" | "bill_pay_card" | "reimbursement_card" | "bill_pay_promo_card" | "zeni_accounts" | "zeni_accounts_promo_card" | "charge_cards" | "reimbursement_promo_card" | "onboarding" | "operating_expenses_by_vendor" | "operating_expenses_by_vendor_summary" | "vendors_tab" | "accounts_payable_aging" | "accounts_receivable_aging" | "vendor_global_review" | "prepaid_expenses" | "fixed_assets" | "notification" | "rewards_card" | "flux_analysis_operating_expense", sectionPayload: SectionByClassCOABalanceGroupedPayloadV2, classesMetadataPayload: ClassMetadataPayload[], accountsMetadataPayload: AccountMetadataPayload[], currencyPayload: CurrencyPayload], {
8
8
  timeframe: "month" | "year" | "quarter";
9
- reportId: "cash_balance" | "card_balance" | "expense_automation_card" | "operating_expenses" | "operating_expenses_by_classes" | "revenue" | "revenue_by_classes" | "net_burn_or_income" | "net_burn_or_income_story_card" | "net_burn_or_income_by_classes" | "cash_position" | "top_expenses" | "profit_and_loss" | "profit_and_loss_by_classes" | "balance_sheet" | "cash_flow" | "dashboard" | "finance_statement" | "transaction_list_of_account" | "transaction_list_missing_receipt" | "transaction_list_of_account_by_class" | "transaction_detail" | "cash_in_cash_out" | "insights_dashboard" | "company_details" | "class_list" | "account_list" | "account_list_by_type" | "vendor" | "task_card" | "bill_pay" | "reimbursement" | "bill_pay_card" | "reimbursement_card" | "bill_pay_promo_card" | "zeni_accounts" | "zeni_accounts_promo_card" | "charge_cards" | "reimbursement_promo_card" | "onboarding" | "operating_expenses_by_vendor" | "operating_expenses_by_vendor_summary" | "vendors_tab" | "accounts_payable_aging" | "accounts_receivable_aging" | "vendor_global_review" | "prepaid_expenses" | "fixed_assets" | "notification" | "rewards_card" | "billing" | "flux_analysis_operating_expense" | "account_reconciliation";
9
+ reportId: "billing" | "cash_balance" | "card_balance" | "expense_automation_card" | "operating_expenses" | "operating_expenses_by_classes" | "revenue" | "revenue_by_classes" | "net_burn_or_income" | "net_burn_or_income_story_card" | "net_burn_or_income_by_classes" | "cash_position" | "top_expenses" | "profit_and_loss" | "profit_and_loss_by_classes" | "balance_sheet" | "cash_flow" | "dashboard" | "finance_statement" | "transaction_list_of_account" | "transaction_list_missing_receipt" | "transaction_list_of_account_by_class" | "transaction_detail" | "cash_in_cash_out" | "insights_dashboard" | "company_details" | "class_list" | "account_list" | "account_list_by_type" | "vendor" | "task_card" | "bill_pay" | "reimbursement" | "bill_pay_card" | "reimbursement_card" | "bill_pay_promo_card" | "zeni_accounts" | "zeni_accounts_promo_card" | "charge_cards" | "reimbursement_promo_card" | "onboarding" | "operating_expenses_by_vendor" | "operating_expenses_by_vendor_summary" | "vendors_tab" | "accounts_payable_aging" | "accounts_receivable_aging" | "vendor_global_review" | "prepaid_expenses" | "fixed_assets" | "notification" | "rewards_card" | "flux_analysis_operating_expense";
10
10
  sectionId: string;
11
11
  sectionPayload: SectionByClassCOABalanceGroupedPayloadV2;
12
12
  classesMetadataPayload: ClassMetadataPayload[];
@@ -1,5 +1,5 @@
1
- export declare const toSnackbarMessageSection: (v: string) => "common" | "transactionDetails_updatingPastTransactions" | "transactionDetails_transactionUpdated" | "cockpit_month_end_email_sent" | "cockpit_month_end_email_save" | "cockpit_month_end_email_attachment_upload" | "je_bill_link" | "je_posted" | "audit_score_updated" | "people_invite_people" | "people_invite_multiple_people" | "people_delete_person" | "people_update_person" | "reimbursement_updated" | "reimbursement_deleted" | "reimbursement_cancelled_deleted" | "reimbursement_cancelled" | "reimbursement_approved" | "reimbursement_rejected" | "reimbursement_sent_for_approval" | "account_added" | "business_verification_save" | "business_verification_submit" | "business_verification_from_bills_submit" | "plaid_connection" | "unlink_deposit_account" | "reimbursement_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" | "reimbursement_bulk_submit" | "reimbursement_bulk_processed" | "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" | "bill_pay_bulk_submit" | "bill_pay_bulk_processed" | "bill_pay_refund" | "bill_pay_retry" | "bill_pay_marked_as_paid" | "zeni_account_accept_term" | "update_vendor" | "data_refresh_update" | "delete_bank_account" | "create_bank_account" | "create_bank_account_ach" | "create_bank_account_wire" | "create_bank_account_international" | "transfer_money" | "update_zeni_account_nickname" | "create_checking_account" | "deposit_check" | "create_vendor" | "onboarding_customer_view" | "onboarding_customer_view_complete" | "onboarding_customer_identity_verification_save" | "onboarding_customer_identity_verification_submit" | "onboarding_customer_business_verification_save" | "onboarding_customer_business_verification_submit" | "retry_bank_account_connection" | "dashboard_invite_sent" | "onboarding_info_saved" | "approve_original_merchant" | "approve_global_merchant" | "reject_global_merchant" | "create_global_merchant" | "fetch_global_merchant_no_recommendation" | "save_vendor_renamed" | "save_vendor_sent_for_review" | "save_vendor_marked_as_employee" | "save_vendor_marked_as_local_contractor" | "charge_card_setup" | "charge_card_accept_term" | "charge_card_receipt_upload" | "charge_card_resend_invite" | "charge_card_revoke_invite" | "charge_card_update_limit" | "create_schedule" | "save_schedule" | "delete_schedule" | "ignore_schedule" | "save_task_detail" | "fetch_task_detail" | "delete_task" | "archive_task" | "create_tag" | "delete_tag" | "update_charge_card" | "issue_charge_card" | "issue_charge_cards" | "notification_settings_saved" | "referral_invite_sent" | "notification_mark_as_read" | "mark_as_complete_schedule" | "cancel_journal_entry" | "settings_accounting_accounts_updated" | "create_card_setup" | "confirm_card_setup" | "add_card_payment_source" | "fetch_payment_sources" | "task_assigned_toast_notification" | "task_due_tomorrow_toast_notification" | "task_deleted_toast_notification" | "task_archived_toast_notification" | "task_overdue_toast_notification" | "task_overdue_toast_notification_creator" | "task_notification_count" | "task_activities_toast_notification" | "task_created_toast_notification" | "task_group_creation_success" | "task_group_deletion_success" | "task_group_update_success" | "primary_funding_account_updated" | "task_time_spent_validation" | "transactions_reviewed" | "transaction_reviewed" | "transaction_reviewed_failed" | "transactions_reviewed_failed" | "missing_receipts_attachment" | "flux_analysis_unreviewed" | "flux_analysis_reviewed" | "receipts_upload" | "billing_address_view" | "express_pay_submit" | "exclude_transaction" | "reconcile" | "save_reconcile_for_later" | "recon_transaction_creation";
1
+ export declare const toSnackbarMessageSection: (v: string) => "common" | "transactionDetails_updatingPastTransactions" | "transactionDetails_transactionUpdated" | "cockpit_month_end_email_sent" | "cockpit_month_end_email_save" | "cockpit_month_end_email_attachment_upload" | "je_bill_link" | "je_posted" | "audit_score_updated" | "people_invite_people" | "people_invite_multiple_people" | "people_delete_person" | "people_update_person" | "reimbursement_updated" | "reimbursement_deleted" | "reimbursement_cancelled_deleted" | "reimbursement_cancelled" | "reimbursement_approved" | "reimbursement_rejected" | "reimbursement_sent_for_approval" | "account_added" | "business_verification_save" | "business_verification_submit" | "business_verification_from_bills_submit" | "plaid_connection" | "unlink_deposit_account" | "reimbursement_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" | "reimbursement_bulk_submit" | "reimbursement_bulk_processed" | "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" | "bill_pay_bulk_submit" | "bill_pay_bulk_processed" | "bill_pay_refund" | "bill_pay_retry" | "bill_pay_marked_as_paid" | "zeni_account_accept_term" | "update_vendor" | "data_refresh_update" | "delete_bank_account" | "create_bank_account" | "create_bank_account_ach" | "create_bank_account_wire" | "create_bank_account_international" | "transfer_money" | "update_zeni_account_nickname" | "create_checking_account" | "deposit_check" | "create_vendor" | "onboarding_customer_view" | "onboarding_customer_view_complete" | "onboarding_customer_identity_verification_save" | "onboarding_customer_identity_verification_submit" | "onboarding_customer_business_verification_save" | "onboarding_customer_business_verification_submit" | "retry_bank_account_connection" | "dashboard_invite_sent" | "onboarding_info_saved" | "approve_original_merchant" | "approve_global_merchant" | "reject_global_merchant" | "create_global_merchant" | "fetch_global_merchant_no_recommendation" | "save_vendor_renamed" | "save_vendor_sent_for_review" | "save_vendor_marked_as_employee" | "save_vendor_marked_as_local_contractor" | "charge_card_setup" | "charge_card_accept_term" | "charge_card_receipt_upload" | "charge_card_resend_invite" | "charge_card_revoke_invite" | "charge_card_update_limit" | "create_schedule" | "save_schedule" | "delete_schedule" | "ignore_schedule" | "save_task_detail" | "fetch_task_detail" | "delete_task" | "archive_task" | "create_tag" | "delete_tag" | "update_charge_card" | "issue_charge_card" | "issue_charge_cards" | "notification_settings_saved" | "referral_invite_sent" | "notification_mark_as_read" | "mark_as_complete_schedule" | "cancel_journal_entry" | "settings_accounting_accounts_updated" | "create_card_setup" | "confirm_card_setup" | "add_card_payment_source" | "fetch_payment_sources" | "task_assigned_toast_notification" | "task_due_tomorrow_toast_notification" | "task_deleted_toast_notification" | "task_archived_toast_notification" | "task_overdue_toast_notification" | "task_overdue_toast_notification_creator" | "task_notification_count" | "task_activities_toast_notification" | "task_created_toast_notification" | "task_group_creation_success" | "task_group_deletion_success" | "task_group_update_success" | "primary_funding_account_updated" | "task_time_spent_validation" | "transactions_reviewed" | "transaction_reviewed" | "transaction_reviewed_failed" | "transactions_reviewed_failed" | "missing_receipts_attachment" | "flux_analysis_unreviewed" | "flux_analysis_reviewed" | "receipts_upload" | "billing_address_view" | "express_pay_submit";
2
2
  export type SnackbarMessageSections = ReturnType<typeof toSnackbarMessageSection>;
3
- export declare const toSnackbarMessageSectionTexts: (v: string) => "notification" | "failed" | "success";
3
+ export declare const toSnackbarMessageSectionTexts: (v: string) => "failed" | "success" | "notification";
4
4
  export type SnackbarMessageSectionTexts = ReturnType<typeof toSnackbarMessageSectionTexts>;
5
5
  export type SnackbarMessageType = 'info' | 'warning' | 'error' | 'none' | 'success' | 'notification';
@@ -146,10 +146,6 @@ const ALL_SNACKBAR_MESSAGE_SECTIONS = [
146
146
  'receipts_upload',
147
147
  'billing_address_view',
148
148
  'express_pay_submit',
149
- 'exclude_transaction',
150
- 'reconcile',
151
- 'save_reconcile_for_later',
152
- 'recon_transaction_creation',
153
149
  ];
154
150
  const toSnackbarMessageSection = (v) => (0, stringToUnion_1.stringToUnion)(v, ALL_SNACKBAR_MESSAGE_SECTIONS);
155
151
  exports.toSnackbarMessageSection = toSnackbarMessageSection;
@@ -37,11 +37,11 @@ export interface TaskStatus {
37
37
  name: string;
38
38
  }
39
39
  export declare const ALL_PRIORITY_CODE: readonly ["urgent", "high", "normal", "medium", "low"];
40
- export declare const toPriorityCodeType: (v: string) => "urgent" | "high" | "normal" | "medium" | "low";
41
- export declare const toPriorityCodeTypeStrict: (v?: string) => "urgent" | "high" | "normal" | "medium" | "low" | undefined;
40
+ export declare const toPriorityCodeType: (v: string) => "normal" | "high" | "low" | "medium" | "urgent";
41
+ export declare const toPriorityCodeTypeStrict: (v?: string) => "normal" | "high" | "low" | "medium" | "urgent" | undefined;
42
42
  export type PriorityCodeType = ReturnType<typeof toPriorityCodeType>;
43
43
  export declare const ALL_TASK_STATUS_CODE: readonly ["todo", "in_progress", "on_hold", "done", "resolved"];
44
- export declare const toTaskStatusCodeType: (v: string) => "resolved" | "in_progress" | "todo" | "on_hold" | "done";
44
+ export declare const toTaskStatusCodeType: (v: string) => "done" | "resolved" | "todo" | "in_progress" | "on_hold";
45
45
  export type TaskStatusCodeType = ReturnType<typeof toTaskStatusCodeType>;
46
46
  export declare const toTaskCodeType: (v: string) => "one_time" | "recurring";
47
47
  export type TaskCodeType = NonNullable<ReturnType<typeof toTaskCodeType>>;
@@ -37,7 +37,6 @@ import { clearExpenseAutomationView } from '../../view/expenseAutomationView/exp
37
37
  import { clearExpenseAutomationFluxAnalysisView } from '../../view/expenseAutomationView/reducers/fluxAnalysisViewReducer';
38
38
  import { clearExpenseAutomationJESchedulesView } from '../../view/expenseAutomationView/reducers/jeSchedulesViewReducer';
39
39
  import { clearExpenseAutomationMissingReceiptsView } from '../../view/expenseAutomationView/reducers/missingReceiptsViewReducer';
40
- import { clearExpenseAutomationReconciliationView } from '../../view/expenseAutomationView/reducers/reconciliationViewReducer';
41
40
  import { clearExpenseAutomationTransactionsView } from '../../view/expenseAutomationView/reducers/transactionsViewReducer';
42
41
  import { clearFileViewList } from '../../view/fileView/fileViewReducer';
43
42
  import { clearFinanceStatement } from '../../view/financeStatement/financeStatementReducer';
@@ -138,7 +137,6 @@ import { clearZeniAccStatementList } from '../../view/zeniAccStatementList/zeniA
138
137
  import { clearZeniAccountsPromoCard } from '../../view/zeniAccountsPromoCard/zeniAccountsPromoCardReducer';
139
138
  import { clearAllAccounts } from '../account/accountReducer';
140
139
  import { clearAllAccountGroups } from '../accountGroup/accountGroupReducer';
141
- import { clearAllAccountRecon } from '../accountRecon/accountReconReducer';
142
140
  import { clearAllAddresses } from '../address/addressReducer';
143
141
  import { clearAllBankAccounts } from '../bankAccount/bankAccountReducer';
144
142
  import { clearAllBillTransactions } from '../billPay/billTransaction/billTransactionReducer';
@@ -185,8 +183,8 @@ import { clearAllUserRoles } from '../userRole/userRoleReducer';
185
183
  import { clearAllVendors } from '../vendor/vendorReducer';
186
184
  import { clearAllVendorExpenseTrends } from '../vendorExpense/vendorExpenseReducer';
187
185
  import { clearAll } from './tenantReducer';
188
- type clearActionTypeForViews = ReturnType<typeof clearAccountList> | ReturnType<typeof clearAccountMappingView> | ReturnType<typeof clearActivityHistory> | ReturnType<typeof clearActivityRealTimeApproval> | ReturnType<typeof clearAddressView> | ReturnType<typeof clearAllClasses> | ReturnType<typeof clearAllMonthEndCloseChecksView> | ReturnType<typeof clearApAging> | ReturnType<typeof clearApAgingDetail> | ReturnType<typeof clearArAging> | ReturnType<typeof clearArAgingDetail> | ReturnType<typeof clearAuthenticationView> | ReturnType<typeof clearBalanceSheet> | ReturnType<typeof clearBankAccountView> | ReturnType<typeof clearBillDetailView> | ReturnType<typeof clearBillList> | ReturnType<typeof clearBillPayBulkActionView> | ReturnType<typeof clearBillPayCard> | ReturnType<typeof clearBillPayConfig> | ReturnType<typeof clearBillPayReview> | ReturnType<typeof clearBillPaySetupApproverView> | ReturnType<typeof clearBillPaySetupView> | ReturnType<typeof clearCardBalance> | ReturnType<typeof clearCardPaymentView> | ReturnType<typeof clearCardUserOnboarding> | ReturnType<typeof clearCashbackDetail> | 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 clearChargeCardStatementList> | ReturnType<typeof clearCheckDeposit> | ReturnType<typeof clearCompanyConfigView> | ReturnType<typeof clearCompanyHealthMetric> | ReturnType<typeof clearCompanyHealthMetricView> | ReturnType<typeof clearCompanyMonthEndReportView> | ReturnType<typeof clearCompanyTaskManagerView> | 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 clearExpenseAutomationFluxAnalysisView> | ReturnType<typeof clearExpenseAutomationJESchedulesView> | ReturnType<typeof clearExpenseAutomationMissingReceiptsView> | ReturnType<typeof clearExpenseAutomationReconciliationView> | ReturnType<typeof clearExpenseAutomationTransactionsView> | ReturnType<typeof clearExpenseAutomationView> | ReturnType<typeof clearExpressPayView> | ReturnType<typeof clearFileViewList> | ReturnType<typeof clearFinanceStatement> | ReturnType<typeof clearForecastList> | ReturnType<typeof clearGlobalMerchantAutoCompleteResults> | ReturnType<typeof clearGlobalMerchantView> | ReturnType<typeof clearInsightsCard> | ReturnType<typeof clearInternationalWire> | ReturnType<typeof clearInternationalVerificationView> | ReturnType<typeof clearIssueChargeCard> | ReturnType<typeof clearMerchantList> | ReturnType<typeof clearNetBurnOrIncome> | ReturnType<typeof clearNetBurnOrIncomeClassesView> | ReturnType<typeof clearNetBurnOrIncomeStoryCard> | ReturnType<typeof clearNotificationView> | 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 clearReferrals> | ReturnType<typeof clearReimbursementCard> | ReturnType<typeof clearReimbursementConfig> | ReturnType<typeof clearRemiBulkActionView> | 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 clearScheduleDetailView> | ReturnType<typeof clearScheduleAccruedDetailView> | ReturnType<typeof clearScheduleList> | ReturnType<typeof clearSettingsView> | ReturnType<typeof clearSetupView> | ReturnType<typeof clearPlaidAccountView> | ReturnType<typeof clearSubscriptionView> | ReturnType<typeof clearTagView> | ReturnType<typeof clearTaskDetail> | ReturnType<typeof clearTaskGroupTemplatesView> | ReturnType<typeof clearTaskGroupView> | ReturnType<typeof clearTaskList> | 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 clearVendorReviewView> | ReturnType<typeof clearVendor1099TypeList> | ReturnType<typeof clearVendorTypeList> | ReturnType<typeof clearVendorView> | ReturnType<typeof clearVendorsFiling1099List> | ReturnType<typeof clearVendorsList> | ReturnType<typeof clearVendorsTabVendorView> | ReturnType<typeof clearWiseRedirectStatus> | ReturnType<typeof clearZeniAccStatementList> | ReturnType<typeof clearZeniAccountList> | ReturnType<typeof clearZeniAccountSetupView> | ReturnType<typeof clearZeniAccountsConfig> | ReturnType<typeof clearZeniAccountsPromoCard>;
189
- type clearActionTypeForEntities = ReturnType<typeof clearAllAccountGroups> | ReturnType<typeof clearAllAccountRecon> | ReturnType<typeof clearAllAccountingSummary> | ReturnType<typeof clearAllAccounts> | ReturnType<typeof clearAllAddresses> | ReturnType<typeof clearAllApprovalRules> | ReturnType<typeof clearAllBankAccounts> | ReturnType<typeof clearAllBillTransactions> | ReturnType<typeof clearAllCardPayments> | ReturnType<typeof clearAllChargeCardTransactions> | ReturnType<typeof clearAllChargeCards> | 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 clearAllAccruedJESchedules> | ReturnType<typeof clearAllJEScheduleTransactions> | ReturnType<typeof clearAllMerchants> | ReturnType<typeof clearAllMonthEndCloseChecks> | ReturnType<typeof clearAllNotifications> | 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 clearAllTags> | ReturnType<typeof clearAllTaskGroups> | ReturnType<typeof clearAllTaskGroupTemplates> | ReturnType<typeof clearAllTaskSummary> | ReturnType<typeof clearAllTasks> | ReturnType<typeof clearAllToastNotifications> | ReturnType<typeof clearAllTransactions> | ReturnType<typeof clearAllUserRoles> | ReturnType<typeof clearAllUsers> | ReturnType<typeof clearAllVendorExpenseTrends> | ReturnType<typeof clearAllVendors> | ReturnType<typeof clearClassList> | ReturnType<typeof clearContacts> | ReturnType<typeof clearCountryList> | ReturnType<typeof clearDepositAccountTransaction> | ReturnType<typeof clearSnackbar>;
186
+ type clearActionTypeForViews = ReturnType<typeof clearAccountList> | ReturnType<typeof clearAccountMappingView> | ReturnType<typeof clearActivityHistory> | ReturnType<typeof clearActivityRealTimeApproval> | ReturnType<typeof clearAddressView> | ReturnType<typeof clearAllClasses> | ReturnType<typeof clearAllMonthEndCloseChecksView> | ReturnType<typeof clearApAging> | ReturnType<typeof clearApAgingDetail> | ReturnType<typeof clearArAging> | ReturnType<typeof clearArAgingDetail> | ReturnType<typeof clearAuthenticationView> | ReturnType<typeof clearBalanceSheet> | ReturnType<typeof clearBankAccountView> | ReturnType<typeof clearBillDetailView> | ReturnType<typeof clearBillList> | ReturnType<typeof clearBillPayBulkActionView> | ReturnType<typeof clearBillPayCard> | ReturnType<typeof clearBillPayConfig> | ReturnType<typeof clearBillPayReview> | ReturnType<typeof clearBillPaySetupApproverView> | ReturnType<typeof clearBillPaySetupView> | ReturnType<typeof clearCardBalance> | ReturnType<typeof clearCardPaymentView> | ReturnType<typeof clearCardUserOnboarding> | ReturnType<typeof clearCashbackDetail> | 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 clearChargeCardStatementList> | ReturnType<typeof clearCheckDeposit> | ReturnType<typeof clearCompanyConfigView> | ReturnType<typeof clearCompanyHealthMetric> | ReturnType<typeof clearCompanyHealthMetricView> | ReturnType<typeof clearCompanyMonthEndReportView> | ReturnType<typeof clearCompanyTaskManagerView> | 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 clearExpenseAutomationFluxAnalysisView> | ReturnType<typeof clearExpenseAutomationJESchedulesView> | ReturnType<typeof clearExpenseAutomationMissingReceiptsView> | ReturnType<typeof clearExpenseAutomationTransactionsView> | ReturnType<typeof clearExpenseAutomationView> | ReturnType<typeof clearExpressPayView> | ReturnType<typeof clearFileViewList> | ReturnType<typeof clearFinanceStatement> | ReturnType<typeof clearForecastList> | ReturnType<typeof clearGlobalMerchantAutoCompleteResults> | ReturnType<typeof clearGlobalMerchantView> | ReturnType<typeof clearInsightsCard> | ReturnType<typeof clearInternationalWire> | ReturnType<typeof clearInternationalVerificationView> | ReturnType<typeof clearIssueChargeCard> | ReturnType<typeof clearMerchantList> | ReturnType<typeof clearNetBurnOrIncome> | ReturnType<typeof clearNetBurnOrIncomeClassesView> | ReturnType<typeof clearNetBurnOrIncomeStoryCard> | ReturnType<typeof clearNotificationView> | 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 clearReferrals> | ReturnType<typeof clearReimbursementCard> | ReturnType<typeof clearReimbursementConfig> | ReturnType<typeof clearRemiBulkActionView> | 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 clearScheduleDetailView> | ReturnType<typeof clearScheduleAccruedDetailView> | ReturnType<typeof clearScheduleList> | ReturnType<typeof clearSettingsView> | ReturnType<typeof clearSetupView> | ReturnType<typeof clearPlaidAccountView> | ReturnType<typeof clearSubscriptionView> | ReturnType<typeof clearTagView> | ReturnType<typeof clearTaskDetail> | ReturnType<typeof clearTaskGroupTemplatesView> | ReturnType<typeof clearTaskGroupView> | ReturnType<typeof clearTaskList> | 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 clearVendorReviewView> | ReturnType<typeof clearVendor1099TypeList> | ReturnType<typeof clearVendorTypeList> | ReturnType<typeof clearVendorView> | ReturnType<typeof clearVendorsFiling1099List> | ReturnType<typeof clearVendorsList> | ReturnType<typeof clearVendorsTabVendorView> | ReturnType<typeof clearWiseRedirectStatus> | ReturnType<typeof clearZeniAccStatementList> | ReturnType<typeof clearZeniAccountList> | ReturnType<typeof clearZeniAccountSetupView> | ReturnType<typeof clearZeniAccountsConfig> | ReturnType<typeof clearZeniAccountsPromoCard>;
187
+ 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 clearAllCardPayments> | ReturnType<typeof clearAllChargeCardTransactions> | ReturnType<typeof clearAllChargeCards> | 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 clearAllAccruedJESchedules> | ReturnType<typeof clearAllJEScheduleTransactions> | ReturnType<typeof clearAllMerchants> | ReturnType<typeof clearAllMonthEndCloseChecks> | ReturnType<typeof clearAllNotifications> | 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 clearAllTags> | ReturnType<typeof clearAllTaskGroups> | ReturnType<typeof clearAllTaskGroupTemplates> | ReturnType<typeof clearAllTaskSummary> | ReturnType<typeof clearAllTasks> | ReturnType<typeof clearAllToastNotifications> | ReturnType<typeof clearAllTransactions> | ReturnType<typeof clearAllUserRoles> | ReturnType<typeof clearAllUsers> | ReturnType<typeof clearAllVendorExpenseTrends> | ReturnType<typeof clearAllVendors> | ReturnType<typeof clearClassList> | ReturnType<typeof clearContacts> | ReturnType<typeof clearCountryList> | ReturnType<typeof clearDepositAccountTransaction> | ReturnType<typeof clearSnackbar>;
190
188
  export type ActionType = clearActionTypeForViews | clearActionTypeForEntities | ReturnType<typeof clearAll>;
191
189
  export declare const clearAllEpic: (actions$: ActionsObservable<ActionType>) => import("rxjs").Observable<ActionType>;
192
190
  export {};
@@ -41,7 +41,6 @@ const expenseAutomationViewReducer_1 = require("../../view/expenseAutomationView
41
41
  const fluxAnalysisViewReducer_1 = require("../../view/expenseAutomationView/reducers/fluxAnalysisViewReducer");
42
42
  const jeSchedulesViewReducer_1 = require("../../view/expenseAutomationView/reducers/jeSchedulesViewReducer");
43
43
  const missingReceiptsViewReducer_1 = require("../../view/expenseAutomationView/reducers/missingReceiptsViewReducer");
44
- const reconciliationViewReducer_1 = require("../../view/expenseAutomationView/reducers/reconciliationViewReducer");
45
44
  const transactionsViewReducer_1 = require("../../view/expenseAutomationView/reducers/transactionsViewReducer");
46
45
  const fileViewReducer_1 = require("../../view/fileView/fileViewReducer");
47
46
  const financeStatementReducer_1 = require("../../view/financeStatement/financeStatementReducer");
@@ -142,7 +141,6 @@ const zeniAccStatementListReducer_1 = require("../../view/zeniAccStatementList/z
142
141
  const zeniAccountsPromoCardReducer_1 = require("../../view/zeniAccountsPromoCard/zeniAccountsPromoCardReducer");
143
142
  const accountReducer_1 = require("../account/accountReducer");
144
143
  const accountGroupReducer_1 = require("../accountGroup/accountGroupReducer");
145
- const accountReconReducer_1 = require("../accountRecon/accountReconReducer");
146
144
  const addressReducer_1 = require("../address/addressReducer");
147
145
  const bankAccountReducer_1 = require("../bankAccount/bankAccountReducer");
148
146
  const billTransactionReducer_1 = require("../billPay/billTransaction/billTransactionReducer");
@@ -245,7 +243,6 @@ const clearAllEpic = (actions$) => actions$.pipe((0, operators_1.filter)(tenantR
245
243
  (0, fluxAnalysisViewReducer_1.clearExpenseAutomationFluxAnalysisView)(),
246
244
  (0, jeSchedulesViewReducer_1.clearExpenseAutomationJESchedulesView)(),
247
245
  (0, missingReceiptsViewReducer_1.clearExpenseAutomationMissingReceiptsView)(),
248
- (0, reconciliationViewReducer_1.clearExpenseAutomationReconciliationView)(),
249
246
  (0, transactionsViewReducer_1.clearExpenseAutomationTransactionsView)(),
250
247
  (0, expenseAutomationViewReducer_1.clearExpenseAutomationView)(),
251
248
  (0, expressPayReducer_1.clearExpressPayView)(),
@@ -328,7 +325,6 @@ const clearAllEpic = (actions$) => actions$.pipe((0, operators_1.filter)(tenantR
328
325
  // Note: Please maintain strict alphabetical order
329
326
  const clearEntityActions = [
330
327
  (0, accountGroupReducer_1.clearAllAccountGroups)(),
331
- (0, accountReconReducer_1.clearAllAccountRecon)(),
332
328
  (0, accountingSummaryReducer_1.clearAllAccountingSummary)(),
333
329
  (0, accountReducer_1.clearAllAccounts)(),
334
330
  (0, jeSchedulesReducer_1.clearAllAccruedJESchedules)(),
@@ -41,10 +41,10 @@ export declare const updateTenants: import("@reduxjs/toolkit").ActionCreatorWith
41
41
  }, "tenant/updateLoggedInUser", never, never>, fetchExternalConnections: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[userId: string, tenantId: string], {
42
42
  userId: string;
43
43
  tenantId: string;
44
- }, "tenant/fetchExternalConnections", never, never>, saveExternalConnection: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[tenantId: string, connectionMeta: ConnectionWithMetaPayload, redirectUri: import("url-parse")<Record<string, string | undefined>> | import("url-parse")<string>, companyId?: string | undefined, userId?: string | undefined], {
44
+ }, "tenant/fetchExternalConnections", never, never>, saveExternalConnection: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[tenantId: string, connectionMeta: ConnectionWithMetaPayload, redirectUri: import("url-parse")<string> | import("url-parse")<Record<string, string | undefined>>, companyId?: string | undefined, userId?: string | undefined], {
45
45
  tenantId: string;
46
46
  connectionMeta: ConnectionWithMetaPayload;
47
- redirectUri: import("url-parse")<Record<string, string | undefined>> | import("url-parse")<string>;
47
+ redirectUri: import("url-parse")<string> | import("url-parse")<Record<string, string | undefined>>;
48
48
  companyId: string | undefined;
49
49
  userId: string | undefined;
50
50
  }, "tenant/saveExternalConnection", never, never>, saveExternalConnectionSuccess: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[tenantId: string, connectionPayload: ConnectionDataPayload], {
@@ -144,7 +144,6 @@ const tenant = (0, toolkit_1.createSlice)({
144
144
  draft.excludedResourcesByTenant[action.payload.tenantId] = {
145
145
  fetchState: 'In-Progress',
146
146
  resources: [],
147
- error: undefined,
148
147
  };
149
148
  },
150
149
  },
@@ -156,7 +155,6 @@ const tenant = (0, toolkit_1.createSlice)({
156
155
  draft.excludedResourcesByTenant[action.payload.tenantId] = {
157
156
  fetchState: 'Completed',
158
157
  resources: action.payload.excludedResources.map((payload) => (0, exports.toRoleResource)(payload)),
159
- error: undefined,
160
158
  };
161
159
  },
162
160
  },
@@ -165,11 +163,9 @@ const tenant = (0, toolkit_1.createSlice)({
165
163
  return { payload: { tenantId, status } };
166
164
  },
167
165
  reducer(draft, action) {
168
- const { tenantId, status } = action.payload;
169
- draft.excludedResourcesByTenant[tenantId] = {
166
+ draft.excludedResourcesByTenant[action.payload.tenantId] = {
170
167
  fetchState: 'Error',
171
168
  resources: [],
172
- error: status,
173
169
  };
174
170
  },
175
171
  },
@@ -204,7 +200,6 @@ const tenant = (0, toolkit_1.createSlice)({
204
200
  accounting: [],
205
201
  payments: [],
206
202
  saveConnectionState: 'Not-Started',
207
- error: undefined,
208
203
  };
209
204
  },
210
205
  },
@@ -219,7 +214,6 @@ const tenant = (0, toolkit_1.createSlice)({
219
214
  accounting,
220
215
  payments,
221
216
  saveConnectionState: 'Completed',
222
- error: undefined,
223
217
  };
224
218
  },
225
219
  },
@@ -228,13 +222,11 @@ const tenant = (0, toolkit_1.createSlice)({
228
222
  return { payload: { tenantId, status } };
229
223
  },
230
224
  reducer(draft, action) {
231
- const { tenantId, status } = action.payload;
232
- draft.externalConnectionsByTenant[tenantId] = {
225
+ draft.externalConnectionsByTenant[action.payload.tenantId] = {
233
226
  fetchState: 'Error',
234
227
  accounting: [],
235
228
  payments: [],
236
229
  saveConnectionState: 'Error',
237
- error: status,
238
230
  };
239
231
  },
240
232
  },
@@ -261,7 +253,6 @@ const tenant = (0, toolkit_1.createSlice)({
261
253
  fetchState: 'Completed',
262
254
  accounting: [(0, exports.toConnection)(action.payload.connectionPayload)],
263
255
  saveConnectionState: 'Completed',
264
- error: undefined,
265
256
  });
266
257
  },
267
258
  },
@@ -270,13 +261,12 @@ const tenant = (0, toolkit_1.createSlice)({
270
261
  return { payload: { tenantId, status } };
271
262
  },
272
263
  reducer(draft, action) {
273
- const { tenantId, status } = action.payload;
274
- draft.externalConnectionsByTenant[tenantId] = Object.assign({}, draft.externalConnectionsByTenant[tenantId], {
275
- fetchState: 'Error',
276
- accounting: [],
277
- saveConnectionState: 'Error',
278
- error: status,
279
- });
264
+ draft.externalConnectionsByTenant[action.payload.tenantId] =
265
+ Object.assign({}, draft.externalConnectionsByTenant[action.payload.tenantId], {
266
+ fetchState: 'Error',
267
+ accounting: [],
268
+ saveConnectionState: 'Error',
269
+ });
280
270
  },
281
271
  },
282
272
  doSignOut(draft) {
@@ -336,6 +326,7 @@ const tenant = (0, toolkit_1.createSlice)({
336
326
  }
337
327
  },
338
328
  clearAll: {
329
+ // eslint-disable-next-line @typescript-eslint/no-inferrable-types
339
330
  prepare(keepTenantCompanyState = true) {
340
331
  return { payload: { keepTenantCompanyState } };
341
332
  },
@@ -1,6 +1,5 @@
1
1
  import { FetchState, ID } from '../../commonStateTypes/common';
2
2
  import { RootState } from '../../reducer';
3
- import { ZeniAPIStatus } from '../../responsePayload';
4
3
  import { CompanyState } from '../company/companyState';
5
4
  import { Company, CompanyBillPayInfo, CompanyChargeCardInfo, CompanyLocaleInfo, CompanyReimbursementInfo, CompanyZeniAccountInfo } from '../company/companyStateTypes';
6
5
  import { SubscriptionSummary } from '../subscription/subscriptionSummary/subscriptionSummaryState';
@@ -39,7 +38,6 @@ declare const getCurrentTenantHelper: (tenantState: TenantState, companyState: C
39
38
  excludedResources: {
40
39
  fetchState: FetchState;
41
40
  resources: RoleResource[];
42
- error?: ZeniAPIStatus;
43
41
  } | undefined;
44
42
  externalConnections: TenantExternalConnections | undefined;
45
43
  subscriptionSummary: {
@@ -67,9 +67,6 @@ const getCurrentTenantHelper = (tenantState, companyState) => {
67
67
  if (tenant != null) {
68
68
  excludedResources = excludedResourcesByTenant[tenant.tenantId];
69
69
  }
70
- else if (currentTenantId != null) {
71
- excludedResources = excludedResourcesByTenant[currentTenantId];
72
- }
73
70
  const externalConnections = (0, exports.getCurrentTenantExternalConnections)(tenantState, companyState);
74
71
  let subscriptionSummary = undefined;
75
72
  if (tenant != null) {
@@ -172,9 +169,6 @@ const getCurrentTenantExternalConnections = (tenantState, companyState) => {
172
169
  if (tenant != null) {
173
170
  externalConnections = externalConnectionsByTenant[tenant.tenantId];
174
171
  }
175
- else if (currentTenantId != null) {
176
- externalConnections = externalConnectionsByTenant[currentTenantId];
177
- }
178
172
  return externalConnections;
179
173
  };
180
174
  exports.getCurrentTenantExternalConnections = getCurrentTenantExternalConnections;
@@ -1,6 +1,5 @@
1
1
  import { FetchState, FetchStateAndError, FetchedState, ID } from '../../commonStateTypes/common';
2
2
  import { MonthYearPeriod } from '../../commonStateTypes/timePeriod';
3
- import { ZeniAPIStatus } from '../../responsePayload';
4
3
  import { AccountingMethod } from '../../view/netBurnOrIncomeStoryCard/netBurnOrIncomeStoryCardSelectorTypes';
5
4
  import { AverageMonthsCount, TimeSpanIdForAverage } from '../../view/netBurnOrIncomeStoryCard/netBurnOrIncomeStoryCardState';
6
5
  import { ZeniDate } from '../../zeniDayJS';
@@ -15,7 +14,6 @@ export interface TenantExternalConnections {
15
14
  accounting: Connection[];
16
15
  payments: Connection[];
17
16
  saveConnectionState: FetchState;
18
- error?: ZeniAPIStatus;
19
17
  }
20
18
  export interface TenantState extends FetchedState {
21
19
  onboardingTenantsById: Record<ID, Tenant>;
@@ -27,7 +25,6 @@ export interface TenantState extends FetchedState {
27
25
  excludedResourcesByTenant: Record<ID, {
28
26
  fetchState: FetchState;
29
27
  resources: RoleResource[];
30
- error?: ZeniAPIStatus;
31
28
  } | undefined>;
32
29
  externalConnectionsByTenant: Record<ID, TenantExternalConnections | undefined>;
33
30
  subscriptionSummaryByTenant: Record<ID, {
@@ -1,7 +1,7 @@
1
1
  import { CustomerBasePayload } from '../../customer/customerPayload';
2
2
  import { CustomerTransaction } from '../stateTypes/customerTransaction';
3
3
  import { TransactionPayload } from './transactionPayload';
4
- export interface CustomerTransactionPayload extends Omit<TransactionPayload, 'customer_id' | 'customer_name'>, CustomerBasePayload {
4
+ export interface CustomerTransactionPayload extends TransactionPayload, CustomerBasePayload {
5
5
  document_id: string;
6
6
  payment_type?: string;
7
7
  payment_type_name?: string;
@@ -17,6 +17,7 @@ const toCustomerTransaction = (payload) => {
17
17
  exports.toCustomerTransaction = toCustomerTransaction;
18
18
  const toCustomerTransactionPayload = (transaction) => {
19
19
  const payload = (0, transactionPayload_1.toTransactionPayload)(transaction);
20
- return Object.assign(Object.assign({}, payload), (0, customerPayload_1.toCustomerBasePayload)(transaction.customer));
20
+ return transaction.customer != null
21
+ ? Object.assign(Object.assign({}, payload), { customer_id: transaction.customer.id, customer_name: transaction.customer.name }) : payload;
21
22
  };
22
23
  exports.toCustomerTransactionPayload = toCustomerTransactionPayload;
@@ -32,8 +32,6 @@ export interface TransactionPayload extends TransactionIDPayload, AccountBasePay
32
32
  company_inc_date: string | null;
33
33
  vendor_id?: string | null;
34
34
  vendor_name?: string | null;
35
- customer_id?: string | null;
36
- customer_name?: string | null;
37
35
  recipient_total_amount?: number;
38
36
  recipient_currency_code?: string;
39
37
  recipient_currency_symbol?: string;
@@ -38,16 +38,12 @@ const toTransaction = (payload) => {
38
38
  var _a, _b, _c, _d, _e, _f, _g, _h;
39
39
  const amount = (0, exports.getTransactionPayloadAmount)(payload);
40
40
  const recipientAmount = getTransactionPayloadRecipientAmount(payload);
41
- return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, (0, transactionIDPayload_1.toTransactionID)(payload)), { typeOfTransaction: 'supported', typeName: payload.transaction_type_name, createTime: (0, zeniDayJS_1.date)(payload.transaction_create_time), updateTime: payload.transaction_update_time != null
41
+ return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, (0, transactionIDPayload_1.toTransactionID)(payload)), { typeOfTransaction: 'supported', typeName: payload.transaction_type_name, createTime: (0, zeniDayJS_1.date)(payload.transaction_create_time), updateTime: payload.transaction_update_time != null
42
42
  ? (0, zeniDayJS_1.date)(payload.transaction_update_time)
43
- : undefined, date: (0, zeniDayJS_1.date)(payload.transaction_date), amount: amount, memo: payload.transaction_memo, description: payload.transaction_description, documentId: payload.document_id, logo: (0, urlPayload_1.toURL)(payload.logo), attachments: (_a = payload.attachments) === null || _a === void 0 ? void 0 : _a.map((attachmentPayload) => (0, attachmentPayload_1.toAttachment)(attachmentPayload)) }), (payload.vendor_id !== null && payload.vendor_id !== ''
43
+ : undefined, date: (0, zeniDayJS_1.date)(payload.transaction_date), amount: amount, memo: payload.transaction_memo, description: payload.transaction_description, documentId: payload.document_id, logo: (0, urlPayload_1.toURL)(payload.logo), attachments: (_a = payload.attachments) === null || _a === void 0 ? void 0 : _a.map((attachmentPayload) => (0, attachmentPayload_1.toAttachment)(attachmentPayload)) }), (payload.vendor_id != null && payload.vendor_id != ''
44
44
  ? { vendorId: payload.vendor_id }
45
- : {})), (payload.vendor_name !== null && payload.vendor_name !== ''
45
+ : {})), (payload.vendor_name != null && payload.vendor_name != ''
46
46
  ? { vendorName: payload.vendor_name }
47
- : {})), (payload.customer_id !== null && payload.customer_id !== ''
48
- ? { customerId: payload.customer_id }
49
- : {})), (payload.customer_name !== null && payload.customer_name !== ''
50
- ? { customerName: payload.customer_name }
51
47
  : {})), { linkedTransactions: (_b = payload.linked_transactions) === null || _b === void 0 ? void 0 : _b.map((transactionIDPayload) => (0, transactionIDPayload_1.toTransactionID)(transactionIDPayload)), lines: (_c = payload === null || payload === void 0 ? void 0 : payload.lines) === null || _c === void 0 ? void 0 : _c.map((linePayload) => (0, transactionLinePayload_1.toLine)(linePayload, amount, recipientAmount)), account: payloadHasAccountInfo(payload)
52
48
  ? (0, accountPayload_1.mapAccountBasePayloadToAccountBase)(payload)
53
49
  : undefined, syncToken: (_d = payload.sync_token) === null || _d === void 0 ? void 0 : _d.toString(), paymentType: (_e = payload.payment_type) !== null && _e !== void 0 ? _e : undefined, paymentTypeName: (_f = payload.payment_type_name) !== null && _f !== void 0 ? _f : undefined, isUpdatingTransaction: (_g = payload === null || payload === void 0 ? void 0 : payload.is_updating_transaction) !== null && _g !== void 0 ? _g : false, bookCloseDate: (payload === null || payload === void 0 ? void 0 : payload.book_close_date) != null
@@ -110,10 +106,10 @@ const transformRecommendation = (recommendation) => {
110
106
  else if (mappedClasses != null &&
111
107
  mappedClasses.length >= ((_c = mappedAccounts === null || mappedAccounts === void 0 ? void 0 : mappedAccounts.length) !== null && _c !== void 0 ? _c : 0) &&
112
108
  mappedClasses.length >= ((_d = mappedRecommendedVendors === null || mappedRecommendedVendors === void 0 ? void 0 : mappedRecommendedVendors.length) !== null && _d !== void 0 ? _d : 0)) {
113
- mappedClasses.forEach((recommendedClass, index) => {
109
+ mappedClasses.forEach((cls, index) => {
114
110
  recommendations.push({
115
111
  account: mappedAccounts === null || mappedAccounts === void 0 ? void 0 : mappedAccounts[index],
116
- class: recommendedClass,
112
+ class: cls,
117
113
  vendor: mappedRecommendedVendors === null || mappedRecommendedVendors === void 0 ? void 0 : mappedRecommendedVendors[index],
118
114
  });
119
115
  });
@@ -171,6 +167,7 @@ function toRecommendationsPayload(lines, recommendationByLineID) {
171
167
  lineRecommendationPayload.vendors.push((0, recommendationPayload_1.toRecommendedVendorBasePayload)(recommendationType.vendor));
172
168
  }
173
169
  });
170
+ recommendationsPayload.push(lineRecommendationPayload);
174
171
  }
175
172
  });
176
173
  return recommendationsPayload;
@@ -1,7 +1,6 @@
1
- import { CustomerBase } from '../../customer/customerState';
2
1
  import { VendorBasePayload } from '../../vendor/vendorPayload';
3
2
  import { VendorBase } from '../../vendor/vendorState';
4
- import { VendorTransaction, VendorTransactionWithCustomer } from '../stateTypes/vendorTransaction';
3
+ import { VendorTransaction } from '../stateTypes/vendorTransaction';
5
4
  import { TransactionPayload } from './transactionPayload';
6
5
  export interface VendorTransactionPayload extends VendorBasePayload, Omit<TransactionPayload, 'vendor_id' | 'vendor_name'> {
7
6
  document_id: string;
@@ -11,13 +10,6 @@ export interface VendorTransactionPayload extends VendorBasePayload, Omit<Transa
11
10
  balance?: number;
12
11
  due_date?: string;
13
12
  }
14
- export interface VendorTransactionWithCustomerPayload extends VendorTransactionPayload {
15
- customer_id: string;
16
- customer_name: string;
17
- }
18
13
  export declare const isVendorTransactionPayload: (payload: TransactionPayload) => boolean;
19
14
  export declare const toVendorTransaction: (payload: VendorTransactionPayload) => VendorTransaction;
20
15
  export declare const toVendorTransactionPayload: (transaction: VendorTransaction, vendorUpdates?: VendorBase) => Partial<VendorTransactionPayload>;
21
- export declare const isVendorTransactionWithCustomerPayload: (payload: TransactionPayload) => boolean;
22
- export declare const toVendorTransactionWithCustomer: (payload: VendorTransactionWithCustomerPayload) => VendorTransactionWithCustomer;
23
- export declare const toVendorTransactionWithCustomerPayload: (transaction: VendorTransactionWithCustomer, customerUpdates?: CustomerBase) => Partial<VendorTransactionWithCustomerPayload>;