@zeniai/client-epic-state 4.15.41 → 4.15.42

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 (248) hide show
  1. package/README.md +1 -19
  2. package/lib/commonPayloadTypes/recommendationPayload.d.ts +0 -1
  3. package/lib/commonStateTypes/common.d.ts +1 -1
  4. package/lib/commonStateTypes/fiscalYearHelpers/getFYMonths.d.ts +2 -2
  5. package/lib/commonStateTypes/fiscalYearHelpers/getFYQuarterAndYear.d.ts +2 -2
  6. package/lib/commonStateTypes/timePeriod.d.ts +7 -7
  7. package/lib/commonStateTypes/timePeriod.js +2 -2
  8. package/lib/commonStateTypes/viewAndReport/agingReportStateTypes.d.ts +1 -1
  9. package/lib/commonStateTypes/viewAndReport/agingReportStateTypes.js +1 -1
  10. package/lib/commonStateTypes/viewAndReport/viewAndReport.d.ts +2 -2
  11. package/lib/commonStateTypes/viewAndReport/viewAndReport.js +0 -1
  12. package/lib/configureStore.js +1 -2
  13. package/lib/entity/account/accountSelector.d.ts +3 -3
  14. package/lib/entity/account/accountState.d.ts +1 -1
  15. package/lib/entity/account/pickAndMergeForecastAccountReport.d.ts +1 -1
  16. package/lib/entity/accountGroup/accountGroupSelector.d.ts +22 -22
  17. package/lib/entity/accountGroup/accountGroupState.d.ts +1 -1
  18. package/lib/entity/approvalRule/approvalRuleState.d.ts +2 -2
  19. package/lib/entity/billPay/billTransaction/billTransactionState.d.ts +4 -4
  20. package/lib/entity/chargeCard/chargeCard.d.ts +1 -1
  21. package/lib/entity/chargeCardTransaction/chargeCardTransaction.d.ts +1 -1
  22. package/lib/entity/class/classReducer.d.ts +4 -4
  23. package/lib/entity/class/classState.d.ts +1 -1
  24. package/lib/entity/company/companyReducer.js +1 -0
  25. package/lib/entity/customer/customerPayload.d.ts +1 -1
  26. package/lib/entity/customer/customerPayload.js +6 -16
  27. package/lib/entity/depositAccountTransaction/depositAccountTransaction.d.ts +1 -1
  28. package/lib/entity/entityApprovalStatus/entityApprovalStatusState.d.ts +2 -2
  29. package/lib/entity/file/fileState.d.ts +3 -3
  30. package/lib/entity/forecast/forecastState.d.ts +1 -1
  31. package/lib/entity/jeSchedules/jeSchedulesReducer.d.ts +2 -2
  32. package/lib/entity/jeSchedules/jeSchedulesTypes.d.ts +2 -2
  33. package/lib/entity/notification/types/notificationTypes.d.ts +2 -2
  34. package/lib/entity/sectionAccountsView/sectionAccountsView.d.ts +1 -1
  35. package/lib/entity/sectionClassesViewV2/sectionClassesView.d.ts +1 -1
  36. package/lib/entity/sectionClassesViewV2/sectionClassesViewReducer.d.ts +2 -2
  37. package/lib/entity/snackbar/snackbarTypes.d.ts +2 -2
  38. package/lib/entity/snackbar/snackbarTypes.js +0 -4
  39. package/lib/entity/task/taskState.d.ts +3 -3
  40. package/lib/entity/tenant/clearAllEpic.d.ts +2 -4
  41. package/lib/entity/tenant/clearAllEpic.js +0 -4
  42. package/lib/entity/tenant/tenantReducer.d.ts +2 -2
  43. package/lib/entity/tenant/tenantReducer.js +1 -0
  44. package/lib/entity/transaction/payloadTypes/customerTransactionPayload.d.ts +1 -1
  45. package/lib/entity/transaction/payloadTypes/customerTransactionPayload.js +2 -1
  46. package/lib/entity/transaction/payloadTypes/transactionPayload.d.ts +0 -2
  47. package/lib/entity/transaction/payloadTypes/transactionPayload.js +6 -9
  48. package/lib/entity/transaction/payloadTypes/vendorTransactionPayload.d.ts +1 -9
  49. package/lib/entity/transaction/payloadTypes/vendorTransactionPayload.js +2 -24
  50. package/lib/entity/transaction/stateTypes/attachment.d.ts +2 -2
  51. package/lib/entity/transaction/stateTypes/transaction.d.ts +1 -3
  52. package/lib/entity/transaction/stateTypes/transactionType.d.ts +1 -1
  53. package/lib/entity/transaction/stateTypes/transactionType.js +1 -1
  54. package/lib/entity/transaction/stateTypes/vendorTransaction.d.ts +0 -5
  55. package/lib/entity/transaction/stateTypes/vendorTransaction.js +1 -5
  56. package/lib/entity/transaction/toSupportedTransaction.js +1 -6
  57. package/lib/entity/transaction/transactionReducer.d.ts +0 -17
  58. package/lib/entity/transaction/transactionReducer.js +2 -47
  59. package/lib/entity/transaction/transactionSelector.d.ts +0 -2
  60. package/lib/entity/transaction/transactionSelector.js +0 -5
  61. package/lib/entity/transaction/transactionState.d.ts +4 -6
  62. package/lib/entity/vendorExpense/vendorExpenseReducer.js +1 -0
  63. package/lib/entity/vendorExpense/vendorExpenseSelector.d.ts +2 -2
  64. package/lib/epic.d.ts +1 -6
  65. package/lib/epic.js +1 -6
  66. package/lib/index.d.ts +13 -22
  67. package/lib/index.js +27 -56
  68. package/lib/init.d.ts +1 -2
  69. package/lib/init.js +2 -9
  70. package/lib/reducer.d.ts +1 -7
  71. package/lib/reducer.js +0 -6
  72. package/lib/view/accountList/accountListReducer.js +3 -1
  73. package/lib/view/accountMappingView/accountMappingReducer.js +1 -0
  74. package/lib/view/apAgingView/apAgingDetail/apAgingDetailReducer.js +2 -1
  75. package/lib/view/auditReportView/auditReportViewReducer.d.ts +2 -2
  76. package/lib/view/auditReportView/auditReportViewState.d.ts +2 -2
  77. package/lib/view/balanceSheet/balanceSheetReducer.js +6 -1
  78. package/lib/view/bankAccountView/bankAccountViewReducer.js +1 -0
  79. package/lib/view/billPayCard/billPayCardSelector.d.ts +2 -2
  80. package/lib/view/cardBalance/cardBalanceSelector.d.ts +3 -3
  81. package/lib/view/cashBalance/cashBalanceSelector.d.ts +3 -3
  82. package/lib/view/cashFlow/cashFlowReducer.js +4 -1
  83. package/lib/view/cashInCashOut/cashInCashOutSelector.d.ts +2 -2
  84. package/lib/view/cashPosition/cashPositionReducer.js +1 -0
  85. package/lib/view/cashPosition/cashPositionSelector.d.ts +2 -2
  86. package/lib/view/common/reportsHelpers.d.ts +1 -1
  87. package/lib/view/commonVendorView/transactionVendorView/epics/saveTransactionVendorEpic.js +0 -7
  88. package/lib/view/commonVendorView/vendorView/epics/fetchAndUpdateVendorRecommendationsEpic.js +3 -1
  89. package/lib/view/commonVendorView/vendorsTabVendorView/vendorsTabVendorViewReducer.d.ts +2 -2
  90. package/lib/view/companyTaskManagerView/companyTaskManagerViewReducer.d.ts +2 -2
  91. package/lib/view/companyView/companyViewReducer.d.ts +1 -1
  92. package/lib/view/companyView/companyViewReducer.js +10 -1
  93. package/lib/view/companyView/types/cockpitTypes.d.ts +3 -3
  94. package/lib/view/companyView/types/companyPassport/companyUsersLocalData.d.ts +1 -1
  95. package/lib/view/dashboard/dashboardEpic.js +2 -0
  96. package/lib/view/dashboard/dashboardReducer.d.ts +2 -2
  97. package/lib/view/expenseAutomationView/epics/common/fetchAllExpenseAutomationTabsEpic.d.ts +1 -2
  98. package/lib/view/expenseAutomationView/epics/common/fetchAllExpenseAutomationTabsEpic.js +10 -24
  99. package/lib/view/expenseAutomationView/epics/common/refreshExpenseAutomationCurrentTabEpic.d.ts +1 -2
  100. package/lib/view/expenseAutomationView/epics/common/refreshExpenseAutomationCurrentTabEpic.js +0 -14
  101. package/lib/view/expenseAutomationView/epics/transactionCategorization/updateTransactionCategorizationEpic.js +7 -30
  102. package/lib/view/expenseAutomationView/expenseAutomationViewReducer.d.ts +2 -2
  103. package/lib/view/expenseAutomationView/expenseAutomationViewReducer.js +5 -1
  104. package/lib/view/expenseAutomationView/expenseAutomationViewSelector.js +2 -17
  105. package/lib/view/expenseAutomationView/expenseAutomationViewState.d.ts +2 -2
  106. package/lib/view/expenseAutomationView/expenseAutomationViewState.js +1 -1
  107. package/lib/view/expenseAutomationView/helpers/saveTransactionHelper.js +42 -98
  108. package/lib/view/expenseAutomationView/helpers/transactionCategorizationLocalDataHelper.d.ts +1 -1
  109. package/lib/view/expenseAutomationView/helpers/transactionCategorizationLocalDataHelper.js +10 -86
  110. package/lib/view/expenseAutomationView/reducers/jeSchedulesViewReducer.d.ts +11 -11
  111. package/lib/view/expenseAutomationView/reducers/transactionsViewReducer.d.ts +1 -12
  112. package/lib/view/expenseAutomationView/reducers/transactionsViewReducer.js +7 -66
  113. package/lib/view/expenseAutomationView/selectorTypes/expenseAutomationViewSelectorTypes.d.ts +0 -2
  114. package/lib/view/expenseAutomationView/selectorTypes/expenseAutomationViewSelectorTypes.js +1 -1
  115. package/lib/view/expenseAutomationView/selectors/jeSchedulesViewSelector.js +2 -5
  116. package/lib/view/expenseAutomationView/types/fluxAnalysisViewState.d.ts +1 -1
  117. package/lib/view/expenseAutomationView/types/missingReceiptsViewState.d.ts +1 -1
  118. package/lib/view/expenseAutomationView/types/transactionsViewState.d.ts +2 -12
  119. package/lib/view/financeStatement/financeStatementReducer.d.ts +1 -1
  120. package/lib/view/financeStatement/financeStatementReducer.js +4 -1
  121. package/lib/view/globalMerchantView/globalMerchantViewReducer.d.ts +4 -4
  122. package/lib/view/netBurnOrIncome/netBurnOrIncomeReducer.js +10 -3
  123. package/lib/view/netBurnOrIncomeClassesView/netBurnOrIncomeClassesViewReducer.js +6 -1
  124. package/lib/view/netBurnOrIncomeStoryCard/netBurnOrIncomeStoryCardReducer.js +1 -0
  125. package/lib/view/netBurnOrIncomeStoryCard/netBurnOrIncomeStoryCardState.d.ts +1 -1
  126. package/lib/view/notificationView/notificationViewReducer.d.ts +8 -8
  127. package/lib/view/notificationView/notificationViewState.d.ts +2 -2
  128. package/lib/view/onboardingView/cockpitView/onboardingCockpitViewReducer.js +3 -0
  129. package/lib/view/onboardingView/customerView/onboardingCustomerViewReducer.d.ts +2 -2
  130. package/lib/view/opEx/opExForTimeFrameEpic.js +1 -1
  131. package/lib/view/opEx/opExReducer.js +14 -4
  132. package/lib/view/opExByVendor/opExByVendorReducer.js +3 -1
  133. package/lib/view/opExByVendor/opExByVendorState.d.ts +1 -1
  134. package/lib/view/opExClassesView/opExClassesViewReducer.js +6 -1
  135. package/lib/view/people/fetchPeopleEpic.js +3 -1
  136. package/lib/view/people/invitePeopleEpic.js +3 -1
  137. package/lib/view/people/inviteZeniPeopleEpic.js +3 -1
  138. package/lib/view/people/peopleReducer.js +1 -0
  139. package/lib/view/people/peopleSaveUpdatesEpic.js +1 -1
  140. package/lib/view/profitAndLoss/profitAndLossReducer.js +6 -1
  141. package/lib/view/profitAndLossClassesView/profitAndLossClassesViewReducer.js +6 -1
  142. package/lib/view/recommendation/recommendationReducer.js +4 -1
  143. package/lib/view/referralView/referralState.d.ts +1 -1
  144. package/lib/view/reimbursementCard/reimbursementCardSelector.d.ts +2 -2
  145. package/lib/view/reportUIOptions/reportUIOptionsReducer.d.ts +8 -8
  146. package/lib/view/reportUIOptions/updateReportUIOptionThisPeriodEpic.js +3 -1
  147. package/lib/view/revenue/revenueReducer.js +10 -3
  148. package/lib/view/revenueClassesView/revenueClassesViewReducer.js +6 -1
  149. package/lib/view/scheduleView/scheduleAccruedDetailView/LinkBillExpenseView/linkBillExpense.d.ts +1 -1
  150. package/lib/view/scheduleView/scheduleDetailView/scheduleDetailReducer.d.ts +4 -4
  151. package/lib/view/scheduleView/scheduleListView/scheduleListTypes.d.ts +2 -2
  152. package/lib/view/settingsView/settingsViewReducer.js +1 -0
  153. package/lib/view/settingsView/settingsViewState.d.ts +1 -1
  154. package/lib/view/spendManagement/billPay/billList/billListReducer.d.ts +1 -1
  155. package/lib/view/spendManagement/billPay/billList/billListReducer.js +1 -0
  156. package/lib/view/spendManagement/billPay/billList/billListState.d.ts +2 -2
  157. package/lib/view/spendManagement/billPay/billPayConfig/billPayConfigPayload.d.ts +1 -5
  158. package/lib/view/spendManagement/billPay/billPayConfig/billPayConfigState.d.ts +1 -1
  159. package/lib/view/spendManagement/billPay/billPayConfig/billPayConfigState.js +6 -0
  160. package/lib/view/spendManagement/billPay/billsBulkActionView/billsBulkActionViewReducer.d.ts +2 -2
  161. package/lib/view/spendManagement/billPay/billsBulkActionView/epics/validateBillsBulkActionEpic.ts.js +3 -4
  162. package/lib/view/spendManagement/billPay/editBillView/epics/fetchBillAndInitializeLocalStoreEpic.js +3 -1
  163. package/lib/view/spendManagement/billPay/editBillView/epics/saveBillDetailEpic.d.ts +1 -2
  164. package/lib/view/spendManagement/chargeCards/chargeCardDetail/chargeCardDetail.d.ts +2 -2
  165. package/lib/view/spendManagement/commonHistoryView/commonHistory.d.ts +1 -1
  166. package/lib/view/spendManagement/commonSetup/setupViewReducer.d.ts +7 -7
  167. package/lib/view/spendManagement/commonSetup/setupViewState.d.ts +1 -1
  168. package/lib/view/spendManagement/plaidAccount/epic/plaidConnection/establishPlaidConnectionEpic.js +3 -11
  169. package/lib/view/spendManagement/plaidAccount/plaidAccountViewReducer.d.ts +10 -11
  170. package/lib/view/spendManagement/plaidAccount/plaidAccountViewReducer.js +1 -3
  171. package/lib/view/spendManagement/plaidAccount/plaidAccountViewState.d.ts +1 -1
  172. package/lib/view/spendManagement/reimbursement/editRemiView/epics/fetchRecommendationsAndUpdateMerchantRecommendationsEpic.js +6 -2
  173. package/lib/view/spendManagement/reimbursement/editRemiView/epics/fetchRemiAndInitializeLocalStoreEpic.js +3 -1
  174. package/lib/view/spendManagement/reimbursement/remiListView/remiListReducer.d.ts +1 -1
  175. package/lib/view/spendManagement/reimbursement/remiListView/remiListReducer.js +1 -0
  176. package/lib/view/spendManagement/reimbursement/remiListView/remiListState.d.ts +4 -4
  177. package/lib/view/spendManagement/reimbursement/remisBulkActionView/remisBulkActionViewReducer.d.ts +2 -2
  178. package/lib/view/spendManagement/zeniAccounts/expressPay/epics/fetchExpressPayInitialDetailsEpic.d.ts +2 -2
  179. package/lib/view/spendManagement/zeniAccounts/expressPay/epics/fetchExpressPayInitialDetailsEpic.js +7 -7
  180. package/lib/view/spendManagement/zeniAccounts/expressPay/expressPaySelector.d.ts +2 -2
  181. package/lib/view/spendManagement/zeniAccounts/expressPay/expressPaySelector.js +4 -5
  182. package/lib/view/spendManagement/zeniAccounts/expressPay/expressPayState.d.ts +2 -2
  183. package/lib/view/spendManagement/zeniAccounts/zeniAccountsConfig/zeniAccountsConfigPayload.d.ts +0 -14
  184. package/lib/view/spendManagement/zeniAccounts/zeniAccountsConfig/zeniAccountsConfigPayload.js +1 -78
  185. package/lib/view/spendManagement/zeniAccounts/zeniAccountsConfig/zeniAccountsConfigReducer.js +1 -3
  186. package/lib/view/spendManagement/zeniAccounts/zeniAccountsConfig/zeniAccountsConfigSelector.d.ts +1 -2
  187. package/lib/view/spendManagement/zeniAccounts/zeniAccountsConfig/zeniAccountsConfigSelector.js +1 -2
  188. package/lib/view/spendManagement/zeniAccounts/zeniAccountsConfig/zeniAccountsConfigState.d.ts +0 -9
  189. package/lib/view/subscriptionView/subscriptionViewReducer.js +1 -0
  190. package/lib/view/subscriptionView/types/subscriptionTypes.js +1 -0
  191. package/lib/view/taskManager/taskListView/epics/dragNDropTasksEpic.js +3 -1
  192. package/lib/view/taskManager/taskListView/taskList.d.ts +3 -3
  193. package/lib/view/taskManager/taskListView/taskListSelector.d.ts +1 -1
  194. package/lib/view/tasksCard/fetchTasksCardEpic.js +2 -1
  195. package/lib/view/tasksCard/tasksCardSelector.d.ts +2 -2
  196. package/lib/view/tasksCard/tasksCardSelector.js +1 -1
  197. package/lib/view/topEx/topExSelector.d.ts +3 -3
  198. package/lib/view/transactionDetail/epics/saveTransactionHelper.js +52 -45
  199. package/lib/view/transactionDetail/epics/updateTransactionDetailEpic.js +4 -22
  200. package/lib/view/transactionDetail/transactionDetailLocalDataHelper.js +13 -66
  201. package/lib/view/transactionDetail/transactionDetailReducer.d.ts +4 -13
  202. package/lib/view/transactionDetail/transactionDetailReducer.js +21 -51
  203. package/lib/view/transactionDetail/transactionDetailState.d.ts +2 -3
  204. package/lib/view/transactionDetail/transactionDetailTypes.d.ts +0 -8
  205. package/lib/view/transactionList/transactionListByEntitySelector.js +2 -0
  206. package/lib/view/transactionList/transactionListReducer.js +6 -4
  207. package/lib/view/trendWithTransactions/trendWithTransactionsReducer.js +1 -0
  208. package/lib/view/userFinancialAccount/userFinancialAccountReducer.js +3 -1
  209. package/lib/view/vendorFiling1099/vendorFiling1099List/vendorFiling1099ListState.d.ts +1 -1
  210. package/lib/view/vendorReviewView/vendorFirstReviewView/vendorFirstReviewViewState.d.ts +1 -1
  211. package/lib/view/vendorReviewView/vendorGlobalReviewView/vendorGlobalReviewViewState.d.ts +1 -1
  212. package/lib/zeniAPI.d.ts +0 -1
  213. package/lib/zeniUrl.d.ts +1 -1
  214. package/package.json +12 -14
  215. package/lib/entity/accountRecon/accountReconPayload.d.ts +0 -70
  216. package/lib/entity/accountRecon/accountReconPayload.js +0 -125
  217. package/lib/entity/accountRecon/accountReconReducer.d.ts +0 -16
  218. package/lib/entity/accountRecon/accountReconReducer.js +0 -71
  219. package/lib/entity/accountRecon/accountReconSelector.d.ts +0 -28
  220. package/lib/entity/accountRecon/accountReconSelector.js +0 -44
  221. package/lib/entity/accountRecon/accountReconState.d.ts +0 -70
  222. package/lib/entity/accountRecon/accountReconState.js +0 -28
  223. package/lib/entity/transaction/payloadTypes/reconciliationTransactionPayloads.d.ts +0 -35
  224. package/lib/entity/transaction/payloadTypes/reconciliationTransactionPayloads.js +0 -53
  225. package/lib/entity/transaction/stateTypes/reconciliationTransaction.d.ts +0 -32
  226. package/lib/entity/transaction/stateTypes/reconciliationTransaction.js +0 -10
  227. package/lib/view/expenseAutomationView/epics/accountRecon/fetchReconciliationViewEpic.d.ts +0 -15
  228. package/lib/view/expenseAutomationView/epics/accountRecon/fetchReconciliationViewEpic.js +0 -118
  229. package/lib/view/expenseAutomationView/epics/accountRecon/initialiseLocalDataForSelectedAccountIdEpic.d.ts +0 -10
  230. package/lib/view/expenseAutomationView/epics/accountRecon/initialiseLocalDataForSelectedAccountIdEpic.js +0 -49
  231. package/lib/view/expenseAutomationView/epics/accountRecon/saveReconciliationDetailEpic.d.ts +0 -14
  232. package/lib/view/expenseAutomationView/epics/accountRecon/saveReconciliationDetailEpic.js +0 -169
  233. package/lib/view/expenseAutomationView/epics/accountRecon/saveReconciliationReviewEpic.d.ts +0 -9
  234. package/lib/view/expenseAutomationView/epics/accountRecon/saveReconciliationReviewEpic.js +0 -154
  235. package/lib/view/expenseAutomationView/epics/accountRecon/updateReconcileTabLocalDataEpic.d.ts +0 -6
  236. package/lib/view/expenseAutomationView/epics/accountRecon/updateReconcileTabLocalDataEpic.js +0 -110
  237. package/lib/view/expenseAutomationView/helpers/reconciliationHelpers.d.ts +0 -7
  238. package/lib/view/expenseAutomationView/helpers/reconciliationHelpers.js +0 -18
  239. package/lib/view/expenseAutomationView/payload/reconciliationPayload.d.ts +0 -28
  240. package/lib/view/expenseAutomationView/payload/reconciliationPayload.js +0 -51
  241. package/lib/view/expenseAutomationView/reducers/reconciliationViewReducer.d.ts +0 -66
  242. package/lib/view/expenseAutomationView/reducers/reconciliationViewReducer.js +0 -384
  243. package/lib/view/expenseAutomationView/selectorTypes/reconciliationViewSelectorTypes.d.ts +0 -51
  244. package/lib/view/expenseAutomationView/selectorTypes/reconciliationViewSelectorTypes.js +0 -7
  245. package/lib/view/expenseAutomationView/selectors/reconciliationViewSelector.d.ts +0 -5
  246. package/lib/view/expenseAutomationView/selectors/reconciliationViewSelector.js +0 -254
  247. package/lib/view/expenseAutomationView/types/reconciliationViewState.d.ts +0 -103
  248. 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], {
@@ -326,6 +326,7 @@ const tenant = (0, toolkit_1.createSlice)({
326
326
  }
327
327
  },
328
328
  clearAll: {
329
+ // eslint-disable-next-line @typescript-eslint/no-inferrable-types
329
330
  prepare(keepTenantCompanyState = true) {
330
331
  return { payload: { keepTenantCompanyState } };
331
332
  },
@@ -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>;
@@ -1,25 +1,21 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.toVendorTransactionWithCustomerPayload = exports.toVendorTransactionWithCustomer = exports.isVendorTransactionWithCustomerPayload = exports.toVendorTransactionPayload = exports.toVendorTransaction = exports.isVendorTransactionPayload = void 0;
3
+ exports.toVendorTransactionPayload = exports.toVendorTransaction = exports.isVendorTransactionPayload = void 0;
4
4
  const amount_1 = require("../../../commonStateTypes/amount");
5
5
  const zeniDayJS_1 = require("../../../zeniDayJS");
6
- const customerPayload_1 = require("../../customer/customerPayload");
7
6
  const vendorPayload_1 = require("../../vendor/vendorPayload");
8
7
  const paymentType_1 = require("../stateTypes/paymentType");
9
8
  const transactionType_1 = require("../stateTypes/transactionType");
10
9
  const transactionPayload_1 = require("./transactionPayload");
11
10
  const isVendorTransactionPayload = (payload) => (0, transactionType_1.toVendorTransactionTypeStrict)(payload.transaction_type) != null;
12
11
  exports.isVendorTransactionPayload = isVendorTransactionPayload;
13
- function buildVendorTransactionBase(payload) {
12
+ const toVendorTransaction = (payload) => {
14
13
  const transaction = (0, transactionPayload_1.toTransaction)(payload);
15
14
  return Object.assign(Object.assign({}, transaction), { documentId: payload.document_id, vendor: payload.vendor_id != null
16
15
  ? (0, vendorPayload_1.mapVendorBasePayloadToVendorBase)(payload)
17
16
  : undefined, paymentType: (0, paymentType_1.toPaymentTypeStrict)(payload.payment_type), paymentTypeName: payload.payment_type_name, paymentMethodName: payload.payment_method_name, balance: payload.balance != null
18
17
  ? (0, amount_1.toAmountWC)(payload.balance, transaction.amount)
19
18
  : undefined, dueDate: payload.due_date != null ? (0, zeniDayJS_1.date)(payload.due_date) : undefined });
20
- }
21
- const toVendorTransaction = (payload) => {
22
- return buildVendorTransactionBase(payload);
23
19
  };
24
20
  exports.toVendorTransaction = toVendorTransaction;
25
21
  const toVendorTransactionPayload = (transaction, vendorUpdates) => {
@@ -27,21 +23,3 @@ const toVendorTransactionPayload = (transaction, vendorUpdates) => {
27
23
  return Object.assign(Object.assign({}, payload), (0, vendorPayload_1.toVendorBasePayload)(transaction.vendor, vendorUpdates));
28
24
  };
29
25
  exports.toVendorTransactionPayload = toVendorTransactionPayload;
30
- /*
31
- This is used to check if the transaction is a vendor transaction with a customer
32
- */
33
- const isVendorTransactionWithCustomerPayload = (payload) => (0, transactionType_1.toVendorTransactionTypeStrict)(payload.transaction_type) != null &&
34
- Boolean(payload.customer_id) === true &&
35
- Boolean(payload.customer_name) === true;
36
- exports.isVendorTransactionWithCustomerPayload = isVendorTransactionWithCustomerPayload;
37
- const toVendorTransactionWithCustomer = (payload) => {
38
- return Object.assign(Object.assign({}, buildVendorTransactionBase(payload)), { customer: Boolean(payload.customer_id) === true
39
- ? (0, customerPayload_1.toCustomerBase)(payload, false)
40
- : undefined });
41
- };
42
- exports.toVendorTransactionWithCustomer = toVendorTransactionWithCustomer;
43
- const toVendorTransactionWithCustomerPayload = (transaction, customerUpdates) => {
44
- const payload = (0, transactionPayload_1.toTransactionPayload)(transaction);
45
- return Object.assign(Object.assign(Object.assign({}, payload), (0, customerPayload_1.toCustomerBasePayload)(transaction.customer, customerUpdates)), { vendor_id: '', vendor_name: '' });
46
- };
47
- exports.toVendorTransactionWithCustomerPayload = toVendorTransactionWithCustomerPayload;
@@ -4,9 +4,9 @@ import { ZeniDate } from '../../../zeniDayJS';
4
4
  import { ZeniUrl as Url } from '../../../zeniUrl';
5
5
  import { File } from '../../file/fileState';
6
6
  import { AttachmentPayload } from '../payloadTypes/attachmentPayload';
7
- export declare const toContentType: (v: string) => "application/pdf" | "image/jpeg" | "image/jpg" | "image/png" | "image/heic" | "text/html" | "text/csv" | "text/plain" | "application/vnd.ms-excel" | "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" | "image/gif" | "text/xml" | "application/msword" | "application/postscript" | "application/vnd.openxmlformats-officedocument.wordprocessingml.document" | "application/vnd.oasis.opendocument.text" | "application/vnd.oasis.opendocument.spreadsheet" | "application/rtf" | "image/heif" | "image/svg+xml" | "image/webp";
7
+ export declare const toContentType: (v: string) => "image/svg+xml" | "text/html" | "text/xml" | "application/pdf" | "image/jpeg" | "image/jpg" | "image/png" | "image/heic" | "text/csv" | "text/plain" | "application/vnd.ms-excel" | "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" | "image/gif" | "application/msword" | "application/postscript" | "application/vnd.openxmlformats-officedocument.wordprocessingml.document" | "application/vnd.oasis.opendocument.text" | "application/vnd.oasis.opendocument.spreadsheet" | "application/rtf" | "image/heif" | "image/webp";
8
8
  export type ContentType = ReturnType<typeof toContentType>;
9
- export declare const toContentTypeStrict: (v: string) => "application/pdf" | "image/jpeg" | "image/jpg" | "image/png" | "image/heic" | "text/html" | "text/csv" | "text/plain" | "application/vnd.ms-excel" | "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" | "image/gif" | "text/xml" | "application/msword" | "application/postscript" | "application/vnd.openxmlformats-officedocument.wordprocessingml.document" | "application/vnd.oasis.opendocument.text" | "application/vnd.oasis.opendocument.spreadsheet" | "application/rtf" | "image/heif" | "image/svg+xml" | "image/webp" | undefined;
9
+ export declare const toContentTypeStrict: (v: string) => "image/svg+xml" | "text/html" | "text/xml" | "application/pdf" | "image/jpeg" | "image/jpg" | "image/png" | "image/heic" | "text/csv" | "text/plain" | "application/vnd.ms-excel" | "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" | "image/gif" | "application/msword" | "application/postscript" | "application/vnd.openxmlformats-officedocument.wordprocessingml.document" | "application/vnd.oasis.opendocument.text" | "application/vnd.oasis.opendocument.spreadsheet" | "application/rtf" | "image/heif" | "image/webp" | undefined;
10
10
  export interface Attachment {
11
11
  id: ID;
12
12
  contentType?: ContentType;
@@ -16,9 +16,9 @@ export interface BaseTransaction extends TransactionID {
16
16
  date: ZeniDate;
17
17
  amount: Amount;
18
18
  memo: string;
19
- typeOfTransaction: TypeOfTransactionType;
20
19
  typeName?: string;
21
20
  account?: AccountBase;
21
+ typeOfTransaction: TypeOfTransactionType;
22
22
  }
23
23
  export interface Transaction extends BaseTransaction {
24
24
  description: string;
@@ -39,6 +39,4 @@ export interface Transaction extends BaseTransaction {
39
39
  isRecommendedTransaction?: boolean;
40
40
  vendorId?: ID;
41
41
  vendorName?: string;
42
- customerId?: ID;
43
- customerName?: string;
44
42
  }
@@ -1,4 +1,4 @@
1
- export declare const toTypeOfTransaction: (v: string) => "schedule" | "supported" | "uncategorized" | "matched";
1
+ export declare const toTypeOfTransaction: (v: string) => "schedule" | "supported" | "uncategorized";
2
2
  export type TypeOfTransactionType = ReturnType<typeof toTypeOfTransaction>;
3
3
  declare const toCustomerTransactionType: (v: string) => "invoice" | "payment" | "credit_memo" | "sales_receipt" | "delayed_credit" | "delayed_charge" | "refund";
4
4
  export declare const toCustomerTransactionTypeStrict: (v?: string) => "invoice" | "payment" | "credit_memo" | "sales_receipt" | "delayed_credit" | "delayed_charge" | "refund" | undefined;
@@ -6,8 +6,8 @@ const ALL_TYPES_OF_TRANSACTIONS = [
6
6
  'schedule',
7
7
  'supported', // supported is like a superset at this point
8
8
  'uncategorized',
9
- 'matched', // used for reconcile transactions
10
9
  ];
10
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
11
11
  const toTypeOfTransaction = (v) => (0, stringToUnion_1.stringToUnion)(v, ALL_TYPES_OF_TRANSACTIONS);
12
12
  exports.toTypeOfTransaction = toTypeOfTransaction;
13
13
  const ALL_CUSTOMER_TRANSACTION_TYPE = [
@@ -1,6 +1,5 @@
1
1
  import { Amount } from '../../../commonStateTypes/amount';
2
2
  import { ZeniDate } from '../../../zeniDayJS';
3
- import { CustomerBase } from '../../customer/customerState';
4
3
  import { VendorBase } from '../../vendor/vendorState';
5
4
  import { PaymentType } from './paymentType';
6
5
  import { Transaction } from './transaction';
@@ -12,8 +11,4 @@ export interface VendorTransaction extends Transaction {
12
11
  balance?: Amount;
13
12
  dueDate?: ZeniDate;
14
13
  }
15
- export interface VendorTransactionWithCustomer extends VendorTransaction {
16
- customer?: CustomerBase;
17
- }
18
14
  export declare const isVendorTransaction: (transaction: Transaction) => boolean;
19
- export declare const isVendorTransactionWithCustomer: (transaction: Transaction) => boolean;
@@ -1,10 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isVendorTransactionWithCustomer = exports.isVendorTransaction = void 0;
3
+ exports.isVendorTransaction = void 0;
4
4
  const transactionType_1 = require("./transactionType");
5
5
  const isVendorTransaction = (transaction) => (0, transactionType_1.toVendorTransactionTypeStrict)(transaction.type) != null;
6
6
  exports.isVendorTransaction = isVendorTransaction;
7
- const isVendorTransactionWithCustomer = (transaction) => (0, transactionType_1.toVendorTransactionTypeStrict)(transaction.type) != null &&
8
- Boolean(transaction.customerId) === true &&
9
- Boolean(transaction.customerName) === true;
10
- exports.isVendorTransactionWithCustomer = isVendorTransactionWithCustomer;