@zeniai/client-epic-state 5.1.11-betaAY1 → 5.1.11

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 (422) hide show
  1. package/lib/common/aiCfo/aiCfoSuggestedQuestionsPageContext.d.ts +1 -1
  2. package/lib/commonStateTypes/amount.d.ts +0 -1
  3. package/lib/commonStateTypes/amount.js +1 -9
  4. package/lib/commonStateTypes/animations.d.ts +1 -1
  5. package/lib/commonStateTypes/animations.js +0 -1
  6. package/lib/commonStateTypes/workingDayHelper.d.ts +0 -9
  7. package/lib/commonStateTypes/workingDayHelper.js +1 -28
  8. package/lib/entity/aiCfo/aiCfoPayload.d.ts +5 -63
  9. package/lib/entity/aiCfo/aiCfoReducer.d.ts +2 -23
  10. package/lib/entity/aiCfo/aiCfoReducer.js +9 -249
  11. package/lib/entity/aiCfo/aiCfoSelector.d.ts +1 -4
  12. package/lib/entity/aiCfo/aiCfoSelector.js +1 -19
  13. package/lib/entity/aiCfo/aiCfoState.d.ts +4 -97
  14. package/lib/entity/aiCfo/aiCfoState.js +1 -20
  15. package/lib/entity/approvalRule/approvalRulePayload.d.ts +5 -34
  16. package/lib/entity/approvalRule/approvalRulePayload.js +10 -149
  17. package/lib/entity/approvalRule/approvalRuleSelector.d.ts +1 -25
  18. package/lib/entity/approvalRule/approvalRuleSelector.js +0 -40
  19. package/lib/entity/approvalRule/approvalRuleState.d.ts +7 -59
  20. package/lib/entity/company/companyPayload.d.ts +0 -4
  21. package/lib/entity/company/companyPayload.js +0 -6
  22. package/lib/entity/company/companyStateTypes.d.ts +0 -7
  23. package/lib/entity/jeSchedules/jeSchedulesPayload.d.ts +0 -1
  24. package/lib/entity/jeSchedules/jeSchedulesPayload.js +0 -19
  25. package/lib/entity/jeSchedules/jeSchedulesState.d.ts +0 -2
  26. package/lib/entity/jeSchedules/jeSchedulesTypes.d.ts +1 -1
  27. package/lib/entity/monthEndCloseChecks/monthEndCloseChecksState.d.ts +1 -1
  28. package/lib/entity/paymentAccount/paymentAccountSelector.d.ts +0 -1
  29. package/lib/entity/paymentAccount/paymentAccountSelector.js +0 -9
  30. package/lib/entity/snackbar/snackbarTypes.d.ts +1 -1
  31. package/lib/entity/snackbar/snackbarTypes.js +0 -5
  32. package/lib/entity/task/taskPayload.d.ts +1 -3
  33. package/lib/entity/task/taskPayload.js +0 -2
  34. package/lib/entity/task/taskState.d.ts +0 -2
  35. package/lib/entity/tenant/clearAllEpic.d.ts +2 -8
  36. package/lib/entity/tenant/clearAllEpic.js +0 -12
  37. package/lib/entity/tenant/epic/deleteConnectionEpic.d.ts +1 -1
  38. package/lib/entity/tenant/epic/saveAPIKeyConnectionEpic.d.ts +1 -1
  39. package/lib/entity/tenant/epic/saveConnectorCredentialsEpic.d.ts +3 -3
  40. package/lib/entity/tenant/epic/saveOAuthConnectionEpic.d.ts +1 -1
  41. package/lib/entity/tenant/tenantPayload.d.ts +0 -1
  42. package/lib/entity/tenant/tenantReducer.d.ts +25 -38
  43. package/lib/entity/tenant/tenantReducer.js +10 -70
  44. package/lib/entity/tenant/tenantState.d.ts +0 -1
  45. package/lib/entity/transaction/payloadTypes/transactionPayload.js +2 -14
  46. package/lib/entity/transactionActivityLog/transactionActivityLogPayload.js +1 -1
  47. package/lib/entity/vendor/vendorPayload.d.ts +1 -1
  48. package/lib/entity/vendor/vendorPayload.js +12 -5
  49. package/lib/epic.d.ts +3 -31
  50. package/lib/epic.js +3 -32
  51. package/lib/esm/commonStateTypes/amount.js +0 -7
  52. package/lib/esm/commonStateTypes/animations.js +0 -1
  53. package/lib/esm/commonStateTypes/workingDayHelper.js +0 -26
  54. package/lib/esm/entity/aiCfo/aiCfoReducer.js +9 -249
  55. package/lib/esm/entity/aiCfo/aiCfoSelector.js +1 -17
  56. package/lib/esm/entity/aiCfo/aiCfoState.js +0 -17
  57. package/lib/esm/entity/approvalRule/approvalRulePayload.js +10 -149
  58. package/lib/esm/entity/approvalRule/approvalRuleSelector.js +0 -35
  59. package/lib/esm/entity/company/companyPayload.js +0 -6
  60. package/lib/esm/entity/jeSchedules/jeSchedulesPayload.js +0 -19
  61. package/lib/esm/entity/paymentAccount/paymentAccountSelector.js +0 -8
  62. package/lib/esm/entity/snackbar/snackbarTypes.js +0 -5
  63. package/lib/esm/entity/task/taskPayload.js +0 -2
  64. package/lib/esm/entity/tenant/clearAllEpic.js +0 -12
  65. package/lib/esm/entity/tenant/tenantReducer.js +8 -68
  66. package/lib/esm/entity/transaction/payloadTypes/transactionPayload.js +2 -14
  67. package/lib/esm/entity/transactionActivityLog/transactionActivityLogPayload.js +2 -2
  68. package/lib/esm/entity/vendor/vendorPayload.js +12 -5
  69. package/lib/esm/epic.js +3 -32
  70. package/lib/esm/index.js +25 -66
  71. package/lib/esm/reducer.js +0 -18
  72. package/lib/esm/view/aiCfoView/aiCfoViewReducer.js +3 -6
  73. package/lib/esm/view/aiCfoView/epics/createSessionAndSubmitEpic.js +2 -5
  74. package/lib/esm/view/aiCfoView/epics/createSessionEpic.js +1 -2
  75. package/lib/esm/view/aiCfoView/epics/fetchSuggestedQuestionsEpic.js +2 -12
  76. package/lib/esm/view/companyTaskManagerView/companyTaskManagerViewReducer.js +11 -39
  77. package/lib/esm/view/companyTaskManagerView/companyTaskManagerViewSelector.js +4 -14
  78. package/lib/esm/view/companyTaskManagerView/epics/fetchCompanyTaskManagerViewEpic.js +28 -37
  79. package/lib/esm/view/companyView/epic/companyPassport/updateCapitalizationAccountThresholdEpic.js +3 -3
  80. package/lib/esm/view/companyView/epic/fetchAllCockpitViewsEpic.js +2 -2
  81. package/lib/esm/view/expenseAutomationView/selectors/transactionCategorizationSelector.js +1 -1
  82. package/lib/esm/view/fileView/epic/deleteFileEpic.js +2 -2
  83. package/lib/esm/view/fileView/epic/deleteFileListEpic.js +2 -2
  84. package/lib/esm/view/onboardingView/customerView/epic/customerDetails/updateOnboardingCustomerViewEpic.js +18 -24
  85. package/lib/esm/view/onboardingView/customerView/epic/customerDetails/updateOnboardingCustomerViewLocalStoreDataEpic.js +17 -29
  86. package/lib/esm/view/onboardingView/customerView/onboardingCustomerViewReducer.js +51 -223
  87. package/lib/esm/view/onboardingView/customerView/onboardingCustomerViewSelector.js +18 -36
  88. package/lib/esm/view/onboardingView/customerView/onboardingCustomerViewState.js +6 -45
  89. package/lib/esm/view/spendManagement/autotransferRules/autoTransferRulesSelector.js +2 -22
  90. package/lib/esm/view/spendManagement/billPay/billPayReview/billPayReviewSelector.js +0 -14
  91. package/lib/esm/view/spendManagement/billPay/billPaySetupApproverView/billPaySetupApproverViewReducer.js +12 -109
  92. package/lib/esm/view/spendManagement/billPay/billPaySetupApproverView/epic/deleteBillPayApprovalRuleEpic.js +2 -10
  93. package/lib/esm/view/spendManagement/billPay/billPaySetupApproverView/epic/fetchBillPaySetupApproverViewEpic.js +4 -8
  94. package/lib/esm/view/spendManagement/billPay/billPaySetupApproverView/epic/initializeBillPaySetupApproverViewUpdateDataEpic.js +7 -11
  95. package/lib/esm/view/spendManagement/billPay/billPaySetupApproverView/epic/saveBillPaySetupApproverViewUpdatesEpic.js +4 -13
  96. package/lib/esm/view/spendManagement/billPay/billPaySetupApproverView/types/commonPayload.js +16 -144
  97. package/lib/esm/view/spendManagement/billPay/editBillView/editBillViewSelector.js +4 -60
  98. package/lib/esm/view/spendManagement/billPay/editBillView/epics/fetchEditBillDetailPageEpic.js +2 -8
  99. package/lib/esm/view/spendManagement/chargeCards/chargeCardList/chargeCardListSelector.js +0 -25
  100. package/lib/esm/view/spendManagement/chargeCards/issueChargeCard/issueChargeCardEpic.js +2 -2
  101. package/lib/esm/view/spendManagement/chargeCards/issueChargeCard/issueChargeCardReducer.js +4 -42
  102. package/lib/esm/view/spendManagement/chargeCards/issueChargeCard/issueChargeCardSelector.js +0 -35
  103. package/lib/esm/view/spendManagement/commonSetup/setupViewReducer.js +52 -106
  104. package/lib/esm/view/spendManagement/commonSetup/setupViewSelector.js +1 -6
  105. package/lib/esm/view/spendManagement/reimbursement/editRemiView/epics/fetchEditRemiDetailPageEpic.js +1 -5
  106. package/lib/esm/view/spendManagement/reimbursement/remiSetupApproverView/epic/deleteRemiApprovalRuleEpic.js +2 -10
  107. package/lib/esm/view/spendManagement/reimbursement/remiSetupApproverView/epic/fetchRemiSetupApproverViewEpic.js +2 -8
  108. package/lib/esm/view/spendManagement/reimbursement/remiSetupApproverView/epic/initializeRemiSetupApproverViewUpdateDataEpic.js +7 -11
  109. package/lib/esm/view/spendManagement/reimbursement/remiSetupApproverView/epic/saveRemiSetupApproverViewUpdatesEpic.js +4 -13
  110. package/lib/esm/view/spendManagement/reimbursement/remiSetupApproverView/remiSetupApproverViewReducer.js +11 -80
  111. package/lib/esm/view/transactionDetail/epics/saveTransactionHelper.js +0 -1
  112. package/lib/esm/view/transactionDetail/epics/updateTransactionDetailEpic.js +0 -6
  113. package/lib/esm/view/transactionDetail/transactionDetailLocalDataHelper.js +1 -7
  114. package/lib/index.d.ts +32 -82
  115. package/lib/index.js +34 -266
  116. package/lib/reducer.d.ts +0 -18
  117. package/lib/reducer.js +0 -18
  118. package/lib/view/aiCfoView/aiCfoViewReducer.d.ts +2 -11
  119. package/lib/view/aiCfoView/aiCfoViewReducer.js +3 -6
  120. package/lib/view/aiCfoView/epics/createSessionAndSubmitEpic.js +2 -5
  121. package/lib/view/aiCfoView/epics/createSessionEpic.js +1 -2
  122. package/lib/view/aiCfoView/epics/fetchSuggestedQuestionsEpic.d.ts +1 -8
  123. package/lib/view/aiCfoView/epics/fetchSuggestedQuestionsEpic.js +2 -12
  124. package/lib/view/companyTaskManagerView/companyTaskManagerViewPayload.d.ts +11 -19
  125. package/lib/view/companyTaskManagerView/companyTaskManagerViewReducer.d.ts +5 -11
  126. package/lib/view/companyTaskManagerView/companyTaskManagerViewReducer.js +12 -40
  127. package/lib/view/companyTaskManagerView/companyTaskManagerViewSelector.d.ts +0 -2
  128. package/lib/view/companyTaskManagerView/companyTaskManagerViewSelector.js +3 -13
  129. package/lib/view/companyTaskManagerView/companyTaskManagerViewState.d.ts +3 -11
  130. package/lib/view/companyTaskManagerView/epics/fetchCompanyTaskManagerViewEpic.d.ts +3 -1
  131. package/lib/view/companyTaskManagerView/epics/fetchCompanyTaskManagerViewEpic.js +28 -37
  132. package/lib/view/companyView/epic/companyPassport/updateCapitalizationAccountThresholdEpic.d.ts +1 -1
  133. package/lib/view/companyView/epic/companyPassport/updateCapitalizationAccountThresholdEpic.js +2 -2
  134. package/lib/view/companyView/epic/fetchAllCockpitViewsEpic.js +2 -2
  135. package/lib/view/companyView/types/cockpitTypes.d.ts +2 -3
  136. package/lib/view/expenseAutomationView/helpers/transactionCategorizationLocalDataHelper.d.ts +1 -1
  137. package/lib/view/expenseAutomationView/reducers/transactionsViewReducer.d.ts +1 -1
  138. package/lib/view/expenseAutomationView/selectors/transactionCategorizationSelector.d.ts +1 -1
  139. package/lib/view/expenseAutomationView/selectors/transactionCategorizationSelector.js +1 -1
  140. package/lib/view/expenseAutomationView/types/reconciliationViewState.d.ts +1 -1
  141. package/lib/view/expenseAutomationView/types/transactionsViewState.d.ts +1 -1
  142. package/lib/view/fileView/epic/deleteFileEpic.js +1 -1
  143. package/lib/view/fileView/epic/deleteFileListEpic.js +1 -1
  144. package/lib/view/onboardingView/customerView/epic/customerDetails/updateOnboardingCustomerViewEpic.js +18 -24
  145. package/lib/view/onboardingView/customerView/epic/customerDetails/updateOnboardingCustomerViewLocalStoreDataEpic.d.ts +2 -2
  146. package/lib/view/onboardingView/customerView/epic/customerDetails/updateOnboardingCustomerViewLocalStoreDataEpic.js +15 -27
  147. package/lib/view/onboardingView/customerView/onboardingCustomerViewPayload.d.ts +0 -3
  148. package/lib/view/onboardingView/customerView/onboardingCustomerViewReducer.d.ts +5 -44
  149. package/lib/view/onboardingView/customerView/onboardingCustomerViewReducer.js +52 -225
  150. package/lib/view/onboardingView/customerView/onboardingCustomerViewSelector.d.ts +1 -6
  151. package/lib/view/onboardingView/customerView/onboardingCustomerViewSelector.js +18 -39
  152. package/lib/view/onboardingView/customerView/onboardingCustomerViewState.d.ts +8 -53
  153. package/lib/view/onboardingView/customerView/onboardingCustomerViewState.js +7 -47
  154. package/lib/view/people/peopleTypes.d.ts +1 -1
  155. package/lib/view/scheduleView/scheduleListView/scheduleListTypes.d.ts +1 -1
  156. package/lib/view/spendManagement/autotransferRules/autoTransferRulesSelector.d.ts +1 -8
  157. package/lib/view/spendManagement/autotransferRules/autoTransferRulesSelector.js +1 -21
  158. package/lib/view/spendManagement/autotransferRules/autoTransferRulesState.d.ts +0 -22
  159. package/lib/view/spendManagement/billPay/billPayReview/billPayReviewSelector.d.ts +0 -7
  160. package/lib/view/spendManagement/billPay/billPayReview/billPayReviewSelector.js +0 -14
  161. package/lib/view/spendManagement/billPay/billPaySetupApproverView/billPaySetupApproverViewReducer.d.ts +3 -14
  162. package/lib/view/spendManagement/billPay/billPaySetupApproverView/billPaySetupApproverViewReducer.js +13 -110
  163. package/lib/view/spendManagement/billPay/billPaySetupApproverView/billPaySetupApproverViewState.d.ts +0 -16
  164. package/lib/view/spendManagement/billPay/billPaySetupApproverView/epic/deleteBillPayApprovalRuleEpic.js +2 -10
  165. package/lib/view/spendManagement/billPay/billPaySetupApproverView/epic/fetchBillPaySetupApproverViewEpic.js +4 -8
  166. package/lib/view/spendManagement/billPay/billPaySetupApproverView/epic/initializeBillPaySetupApproverViewUpdateDataEpic.js +6 -10
  167. package/lib/view/spendManagement/billPay/billPaySetupApproverView/epic/saveBillPaySetupApproverViewUpdatesEpic.js +3 -12
  168. package/lib/view/spendManagement/billPay/billPaySetupApproverView/types/commonPayload.d.ts +1 -59
  169. package/lib/view/spendManagement/billPay/billPaySetupApproverView/types/commonPayload.js +17 -146
  170. package/lib/view/spendManagement/billPay/billPaySetupApproverView/types/commonState.d.ts +5 -31
  171. package/lib/view/spendManagement/billPay/editBillView/editBillViewSelector.d.ts +1 -8
  172. package/lib/view/spendManagement/billPay/editBillView/editBillViewSelector.js +4 -60
  173. package/lib/view/spendManagement/billPay/editBillView/epics/fetchEditBillDetailPageEpic.js +2 -8
  174. package/lib/view/spendManagement/chargeCards/chargeCardList/chargeCardList.d.ts +1 -1
  175. package/lib/view/spendManagement/chargeCards/chargeCardList/chargeCardListSelector.d.ts +0 -14
  176. package/lib/view/spendManagement/chargeCards/chargeCardList/chargeCardListSelector.js +1 -27
  177. package/lib/view/spendManagement/chargeCards/issueChargeCard/issueChargeCardEpic.d.ts +2 -2
  178. package/lib/view/spendManagement/chargeCards/issueChargeCard/issueChargeCardEpic.js +1 -1
  179. package/lib/view/spendManagement/chargeCards/issueChargeCard/issueChargeCardReducer.d.ts +2 -12
  180. package/lib/view/spendManagement/chargeCards/issueChargeCard/issueChargeCardReducer.js +5 -43
  181. package/lib/view/spendManagement/chargeCards/issueChargeCard/issueChargeCardSelector.d.ts +0 -7
  182. package/lib/view/spendManagement/chargeCards/issueChargeCard/issueChargeCardSelector.js +1 -42
  183. package/lib/view/spendManagement/chargeCards/issueChargeCard/issueChargeCardState.d.ts +0 -5
  184. package/lib/view/spendManagement/commonSetup/setupViewReducer.d.ts +2 -28
  185. package/lib/view/spendManagement/commonSetup/setupViewReducer.js +53 -107
  186. package/lib/view/spendManagement/commonSetup/setupViewSelector.d.ts +2 -7
  187. package/lib/view/spendManagement/commonSetup/setupViewSelector.js +1 -6
  188. package/lib/view/spendManagement/commonSetup/setupViewState.d.ts +0 -19
  189. package/lib/view/spendManagement/reimbursement/editRemiView/epics/fetchEditRemiDetailPageEpic.js +1 -5
  190. package/lib/view/spendManagement/reimbursement/remiSetupApproverView/epic/deleteRemiApprovalRuleEpic.js +2 -10
  191. package/lib/view/spendManagement/reimbursement/remiSetupApproverView/epic/fetchRemiSetupApproverViewEpic.js +2 -8
  192. package/lib/view/spendManagement/reimbursement/remiSetupApproverView/epic/initializeRemiSetupApproverViewUpdateDataEpic.js +6 -10
  193. package/lib/view/spendManagement/reimbursement/remiSetupApproverView/epic/saveRemiSetupApproverViewUpdatesEpic.js +3 -12
  194. package/lib/view/spendManagement/reimbursement/remiSetupApproverView/remiSetupApproverViewReducer.d.ts +3 -14
  195. package/lib/view/spendManagement/reimbursement/remiSetupApproverView/remiSetupApproverViewReducer.js +12 -81
  196. package/lib/view/spendManagement/reimbursement/remiSetupApproverView/remiSetupApproverViewState.d.ts +0 -12
  197. package/lib/view/taskManager/taskListView/taskList.d.ts +3 -3
  198. package/lib/view/taskManager/taskListView/taskListReducer.d.ts +1 -1
  199. package/lib/view/transactionDetail/epics/saveTransactionHelper.js +0 -1
  200. package/lib/view/transactionDetail/epics/updateTransactionDetailEpic.js +0 -6
  201. package/lib/view/transactionDetail/journalEntryLinesViewModel.d.ts +1 -1
  202. package/lib/view/transactionDetail/transactionDetailLocalDataHelper.js +1 -7
  203. package/lib/view/transactionDetail/transactionDetailState.d.ts +0 -1
  204. package/lib/view/transactionDetail/transactionDetailTypes.d.ts +0 -1
  205. package/lib/zeniAPI.d.ts +0 -1
  206. package/package.json +34 -65
  207. package/lib/entity/approvalRule/approvalRuleConflict.d.ts +0 -56
  208. package/lib/entity/approvalRule/approvalRuleConflict.js +0 -77
  209. package/lib/entity/cardPolicy/cardPolicyPayload.d.ts +0 -277
  210. package/lib/entity/cardPolicy/cardPolicyPayload.js +0 -143
  211. package/lib/entity/cardPolicy/cardPolicyReducer.d.ts +0 -19
  212. package/lib/entity/cardPolicy/cardPolicyReducer.js +0 -175
  213. package/lib/entity/cardPolicy/cardPolicySelector.d.ts +0 -32
  214. package/lib/entity/cardPolicy/cardPolicySelector.js +0 -99
  215. package/lib/entity/cardPolicy/cardPolicyState.d.ts +0 -205
  216. package/lib/entity/cardPolicy/cardPolicyState.js +0 -14
  217. package/lib/entity/cardPolicy/extractPolicyDocumentEpic.d.ts +0 -18
  218. package/lib/entity/cardPolicy/extractPolicyDocumentEpic.js +0 -68
  219. package/lib/entity/cardPolicy/fetchCardPolicyVendorOptionsEpic.d.ts +0 -26
  220. package/lib/entity/cardPolicy/fetchCardPolicyVendorOptionsEpic.js +0 -47
  221. package/lib/entity/cardPolicy/policyDocumentExtractionToRecommendationBridgeEpic.d.ts +0 -25
  222. package/lib/entity/cardPolicy/policyDocumentExtractionToRecommendationBridgeEpic.js +0 -39
  223. package/lib/entity/cardPolicy/policyRecommendationFromUploadEpic.d.ts +0 -24
  224. package/lib/entity/cardPolicy/policyRecommendationFromUploadEpic.js +0 -105
  225. package/lib/entity/tenant/epic/initEmailConnectOAuthEpic.d.ts +0 -21
  226. package/lib/entity/tenant/epic/initEmailConnectOAuthEpic.js +0 -59
  227. package/lib/esm/entity/approvalRule/approvalRuleConflict.js +0 -74
  228. package/lib/esm/entity/cardPolicy/cardPolicyPayload.js +0 -130
  229. package/lib/esm/entity/cardPolicy/cardPolicyReducer.js +0 -171
  230. package/lib/esm/entity/cardPolicy/cardPolicySelector.js +0 -75
  231. package/lib/esm/entity/cardPolicy/cardPolicyState.js +0 -9
  232. package/lib/esm/entity/cardPolicy/extractPolicyDocumentEpic.js +0 -64
  233. package/lib/esm/entity/cardPolicy/fetchCardPolicyVendorOptionsEpic.js +0 -43
  234. package/lib/esm/entity/cardPolicy/policyDocumentExtractionToRecommendationBridgeEpic.js +0 -35
  235. package/lib/esm/entity/cardPolicy/policyRecommendationFromUploadEpic.js +0 -101
  236. package/lib/esm/entity/tenant/epic/initEmailConnectOAuthEpic.js +0 -55
  237. package/lib/esm/view/companyTaskManagerView/epics/fetchCockpitContextEpic.js +0 -38
  238. package/lib/esm/view/companyTaskManagerView/epics/updateCompanyTaskManagerViewFiltersEpic.js +0 -16
  239. package/lib/esm/view/onboardingView/customerView/epic/aiAgentsActivation/fetchAiAgentsActivationStatusEpic.js +0 -40
  240. package/lib/esm/view/onboardingView/customerView/epic/customerDetails/acknowledgeOnboardingAiActivationViewedEpic.js +0 -29
  241. package/lib/esm/view/onboardingView/customerView/epic/customerDetails/acknowledgeOnboardingAiFinanceTeamEpic.js +0 -40
  242. package/lib/esm/view/spendManagement/billPay/billPaySetupApproverView/epic/reorderBillPayApprovalRulesEpic.js +0 -54
  243. package/lib/esm/view/spendManagement/cashManagement/autoSweepFlow/autoSweepFlowPayload.js +0 -29
  244. package/lib/esm/view/spendManagement/cashManagement/autoSweepFlow/autoSweepFlowReducer.js +0 -78
  245. package/lib/esm/view/spendManagement/cashManagement/autoSweepFlow/autoSweepFlowSelector.js +0 -49
  246. package/lib/esm/view/spendManagement/cashManagement/autoSweepFlow/autoSweepFlowState.js +0 -47
  247. package/lib/esm/view/spendManagement/cashManagement/autoSweepFlow/epics/fetchCashManagementSettingsEpic.js +0 -32
  248. package/lib/esm/view/spendManagement/cashManagement/autoSweepFlow/epics/saveAutoSweepSettingsEpic.js +0 -32
  249. package/lib/esm/view/spendManagement/cashManagement/cashManagementOverview/cashManagementOverviewPayload.js +0 -54
  250. package/lib/esm/view/spendManagement/cashManagement/cashManagementOverview/cashManagementOverviewReducer.js +0 -92
  251. package/lib/esm/view/spendManagement/cashManagement/cashManagementOverview/cashManagementOverviewSelector.js +0 -212
  252. package/lib/esm/view/spendManagement/cashManagement/cashManagementOverview/cashManagementOverviewState.js +0 -10
  253. package/lib/esm/view/spendManagement/cashManagement/cashManagementOverview/epics/fetchCashManagementBannerEpic.js +0 -23
  254. package/lib/esm/view/spendManagement/cashManagement/cashManagementOverview/epics/fetchCashManagementOverviewPageEpic.js +0 -36
  255. package/lib/esm/view/spendManagement/cashManagement/cashManagementOverview/epics/fetchCashManagementRecommendationEpic.js +0 -27
  256. package/lib/esm/view/spendManagement/cashManagement/cashManagementOverview/epics/fetchRecentTransferEpic.js +0 -28
  257. package/lib/esm/view/spendManagement/chargeCards/cardPolicy/cardPolicyDetail/cardPolicyDetailReducer.js +0 -52
  258. package/lib/esm/view/spendManagement/chargeCards/cardPolicy/cardPolicyDetail/cardPolicyDetailSelector.js +0 -22
  259. package/lib/esm/view/spendManagement/chargeCards/cardPolicy/cardPolicyDetail/cardPolicyDetailState.js +0 -1
  260. package/lib/esm/view/spendManagement/chargeCards/cardPolicy/cardPolicyDetail/fetchCardPolicyDetailEpic.js +0 -36
  261. package/lib/esm/view/spendManagement/chargeCards/cardPolicy/cardPolicyDetail/updateCardPolicyEpic.js +0 -39
  262. package/lib/esm/view/spendManagement/chargeCards/cardPolicy/cardPolicyList/archiveCardPolicyEpic.js +0 -34
  263. package/lib/esm/view/spendManagement/chargeCards/cardPolicy/cardPolicyList/cardPolicyListReducer.js +0 -71
  264. package/lib/esm/view/spendManagement/chargeCards/cardPolicy/cardPolicyList/cardPolicyListSelector.js +0 -21
  265. package/lib/esm/view/spendManagement/chargeCards/cardPolicy/cardPolicyList/cardPolicyListState.js +0 -1
  266. package/lib/esm/view/spendManagement/chargeCards/cardPolicy/cardPolicyList/fetchCardPolicyListEpic.js +0 -38
  267. package/lib/esm/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/applyAiCardPolicyFormDraftUpdate.js +0 -289
  268. package/lib/esm/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/applyExtractedPolicyToAiCardPolicyDraft.js +0 -109
  269. package/lib/esm/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/applyExtractedPolicyToDraftEpic.js +0 -44
  270. package/lib/esm/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/applyExtractedPolicyToManualCardPolicyDraft.js +0 -111
  271. package/lib/esm/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/applyUploadPlanToAiCardPolicyDraft.js +0 -25
  272. package/lib/esm/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/buildAiCardPolicyFormDraftSeed.js +0 -363
  273. package/lib/esm/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/buildManualCardPolicyFormDraftSeed.js +0 -36
  274. package/lib/esm/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/cardPolicyChipIds.js +0 -19
  275. package/lib/esm/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/cardPolicyFormDraftTypes.js +0 -6
  276. package/lib/esm/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/cardPolicyRequestParts.js +0 -119
  277. package/lib/esm/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/createCardPolicyReducer.js +0 -154
  278. package/lib/esm/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/createCardPolicySelector.js +0 -22
  279. package/lib/esm/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/createCardPolicyState.js +0 -1
  280. package/lib/esm/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/createCardPolicyTemplateEpic.js +0 -49
  281. package/lib/esm/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/deriveAiPolicyReviewRowsFromInputs.js +0 -140
  282. package/lib/esm/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/fetchCardPolicyMccCategoriesEpic.js +0 -20
  283. package/lib/esm/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/seedAiCardPolicyFormDraftEpic.js +0 -100
  284. package/lib/esm/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/toBulkCardPolicyTemplateRequestsFromDraft.js +0 -96
  285. package/lib/esm/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/toCardPolicyTemplateRequestFromDraft.js +0 -59
  286. package/lib/esm/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/toManualCardPolicyTemplateRequestFromDraft.js +0 -24
  287. package/lib/esm/view/spendManagement/chargeCards/issueChargeCard/aiCardCreationFormDraftTypes.js +0 -1
  288. package/lib/esm/view/spendManagement/chargeCards/issueChargeCard/applyAiCardCreationFormDraftUpdate.js +0 -34
  289. package/lib/esm/view/spendManagement/chargeCards/issueChargeCard/buildAiCardCreationFormDraftSeed.js +0 -57
  290. package/lib/esm/view/spendManagement/chargeCards/issueChargeCard/deriveAiCardRowsFromTeams.js +0 -35
  291. package/lib/esm/view/spendManagement/chargeCards/issueChargeCard/seedAiCardCreationFormDraftEpic.js +0 -62
  292. package/lib/esm/view/spendManagement/chargeCards/issueChargeCard/toIssueChargeCardLocalDataFromDraft.js +0 -44
  293. package/lib/esm/view/spendManagement/commonSetup/epic/setup/parseUploadedKybDocumentEpic.js +0 -58
  294. package/lib/esm/view/spendManagement/commonSetup/epic/setup/parseUploadedKycDocumentEpic.js +0 -77
  295. package/lib/esm/view/spendManagement/commonSetup/kycKybAutofillActions.js +0 -14
  296. package/lib/esm/view/spendManagement/commonSetup/kycKybParseMapper.js +0 -221
  297. package/lib/esm/view/spendManagement/commonSetup/types/kycKybAutofill.js +0 -41
  298. package/lib/esm/view/spendManagement/reimbursement/remiSetupApproverView/epic/reorderRemiApprovalRulesEpic.js +0 -61
  299. package/lib/view/companyTaskManagerView/epics/fetchCockpitContextEpic.d.ts +0 -10
  300. package/lib/view/companyTaskManagerView/epics/fetchCockpitContextEpic.js +0 -42
  301. package/lib/view/companyTaskManagerView/epics/updateCompanyTaskManagerViewFiltersEpic.d.ts +0 -6
  302. package/lib/view/companyTaskManagerView/epics/updateCompanyTaskManagerViewFiltersEpic.js +0 -20
  303. package/lib/view/onboardingView/customerView/epic/aiAgentsActivation/fetchAiAgentsActivationStatusEpic.d.ts +0 -7
  304. package/lib/view/onboardingView/customerView/epic/aiAgentsActivation/fetchAiAgentsActivationStatusEpic.js +0 -44
  305. package/lib/view/onboardingView/customerView/epic/customerDetails/acknowledgeOnboardingAiActivationViewedEpic.d.ts +0 -8
  306. package/lib/view/onboardingView/customerView/epic/customerDetails/acknowledgeOnboardingAiActivationViewedEpic.js +0 -33
  307. package/lib/view/onboardingView/customerView/epic/customerDetails/acknowledgeOnboardingAiFinanceTeamEpic.d.ts +0 -9
  308. package/lib/view/onboardingView/customerView/epic/customerDetails/acknowledgeOnboardingAiFinanceTeamEpic.js +0 -44
  309. package/lib/view/spendManagement/billPay/billPaySetupApproverView/epic/reorderBillPayApprovalRulesEpic.d.ts +0 -23
  310. package/lib/view/spendManagement/billPay/billPaySetupApproverView/epic/reorderBillPayApprovalRulesEpic.js +0 -58
  311. package/lib/view/spendManagement/cashManagement/autoSweepFlow/autoSweepFlowPayload.d.ts +0 -47
  312. package/lib/view/spendManagement/cashManagement/autoSweepFlow/autoSweepFlowPayload.js +0 -34
  313. package/lib/view/spendManagement/cashManagement/autoSweepFlow/autoSweepFlowReducer.d.ts +0 -23
  314. package/lib/view/spendManagement/cashManagement/autoSweepFlow/autoSweepFlowReducer.js +0 -82
  315. package/lib/view/spendManagement/cashManagement/autoSweepFlow/autoSweepFlowSelector.d.ts +0 -40
  316. package/lib/view/spendManagement/cashManagement/autoSweepFlow/autoSweepFlowSelector.js +0 -53
  317. package/lib/view/spendManagement/cashManagement/autoSweepFlow/autoSweepFlowState.d.ts +0 -37
  318. package/lib/view/spendManagement/cashManagement/autoSweepFlow/autoSweepFlowState.js +0 -53
  319. package/lib/view/spendManagement/cashManagement/autoSweepFlow/epics/fetchCashManagementSettingsEpic.d.ts +0 -14
  320. package/lib/view/spendManagement/cashManagement/autoSweepFlow/epics/fetchCashManagementSettingsEpic.js +0 -36
  321. package/lib/view/spendManagement/cashManagement/autoSweepFlow/epics/saveAutoSweepSettingsEpic.d.ts +0 -7
  322. package/lib/view/spendManagement/cashManagement/autoSweepFlow/epics/saveAutoSweepSettingsEpic.js +0 -36
  323. package/lib/view/spendManagement/cashManagement/cashManagementOverview/cashManagementOverviewPayload.d.ts +0 -56
  324. package/lib/view/spendManagement/cashManagement/cashManagementOverview/cashManagementOverviewPayload.js +0 -60
  325. package/lib/view/spendManagement/cashManagement/cashManagementOverview/cashManagementOverviewReducer.d.ts +0 -22
  326. package/lib/view/spendManagement/cashManagement/cashManagementOverview/cashManagementOverviewReducer.js +0 -96
  327. package/lib/view/spendManagement/cashManagement/cashManagementOverview/cashManagementOverviewSelector.d.ts +0 -59
  328. package/lib/view/spendManagement/cashManagement/cashManagementOverview/cashManagementOverviewSelector.js +0 -217
  329. package/lib/view/spendManagement/cashManagement/cashManagementOverview/cashManagementOverviewState.d.ts +0 -122
  330. package/lib/view/spendManagement/cashManagement/cashManagementOverview/cashManagementOverviewState.js +0 -13
  331. package/lib/view/spendManagement/cashManagement/cashManagementOverview/epics/fetchCashManagementBannerEpic.d.ts +0 -7
  332. package/lib/view/spendManagement/cashManagement/cashManagementOverview/epics/fetchCashManagementBannerEpic.js +0 -27
  333. package/lib/view/spendManagement/cashManagement/cashManagementOverview/epics/fetchCashManagementOverviewPageEpic.d.ts +0 -9
  334. package/lib/view/spendManagement/cashManagement/cashManagementOverview/epics/fetchCashManagementOverviewPageEpic.js +0 -40
  335. package/lib/view/spendManagement/cashManagement/cashManagementOverview/epics/fetchCashManagementRecommendationEpic.d.ts +0 -7
  336. package/lib/view/spendManagement/cashManagement/cashManagementOverview/epics/fetchCashManagementRecommendationEpic.js +0 -31
  337. package/lib/view/spendManagement/cashManagement/cashManagementOverview/epics/fetchRecentTransferEpic.d.ts +0 -15
  338. package/lib/view/spendManagement/cashManagement/cashManagementOverview/epics/fetchRecentTransferEpic.js +0 -32
  339. package/lib/view/spendManagement/chargeCards/cardPolicy/cardPolicyDetail/cardPolicyDetailReducer.d.ts +0 -14
  340. package/lib/view/spendManagement/chargeCards/cardPolicy/cardPolicyDetail/cardPolicyDetailReducer.js +0 -56
  341. package/lib/view/spendManagement/chargeCards/cardPolicy/cardPolicyDetail/cardPolicyDetailSelector.d.ts +0 -15
  342. package/lib/view/spendManagement/chargeCards/cardPolicy/cardPolicyDetail/cardPolicyDetailSelector.js +0 -28
  343. package/lib/view/spendManagement/chargeCards/cardPolicy/cardPolicyDetail/cardPolicyDetailState.d.ts +0 -8
  344. package/lib/view/spendManagement/chargeCards/cardPolicy/cardPolicyDetail/cardPolicyDetailState.js +0 -2
  345. package/lib/view/spendManagement/chargeCards/cardPolicy/cardPolicyDetail/fetchCardPolicyDetailEpic.d.ts +0 -8
  346. package/lib/view/spendManagement/chargeCards/cardPolicy/cardPolicyDetail/fetchCardPolicyDetailEpic.js +0 -40
  347. package/lib/view/spendManagement/chargeCards/cardPolicy/cardPolicyDetail/updateCardPolicyEpic.d.ts +0 -8
  348. package/lib/view/spendManagement/chargeCards/cardPolicy/cardPolicyDetail/updateCardPolicyEpic.js +0 -43
  349. package/lib/view/spendManagement/chargeCards/cardPolicy/cardPolicyList/archiveCardPolicyEpic.d.ts +0 -8
  350. package/lib/view/spendManagement/chargeCards/cardPolicy/cardPolicyList/archiveCardPolicyEpic.js +0 -38
  351. package/lib/view/spendManagement/chargeCards/cardPolicy/cardPolicyList/cardPolicyListReducer.d.ts +0 -15
  352. package/lib/view/spendManagement/chargeCards/cardPolicy/cardPolicyList/cardPolicyListReducer.js +0 -75
  353. package/lib/view/spendManagement/chargeCards/cardPolicy/cardPolicyList/cardPolicyListSelector.d.ts +0 -15
  354. package/lib/view/spendManagement/chargeCards/cardPolicy/cardPolicyList/cardPolicyListSelector.js +0 -27
  355. package/lib/view/spendManagement/chargeCards/cardPolicy/cardPolicyList/cardPolicyListState.d.ts +0 -7
  356. package/lib/view/spendManagement/chargeCards/cardPolicy/cardPolicyList/cardPolicyListState.js +0 -2
  357. package/lib/view/spendManagement/chargeCards/cardPolicy/cardPolicyList/fetchCardPolicyListEpic.d.ts +0 -8
  358. package/lib/view/spendManagement/chargeCards/cardPolicy/cardPolicyList/fetchCardPolicyListEpic.js +0 -42
  359. package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/applyAiCardPolicyFormDraftUpdate.d.ts +0 -8
  360. package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/applyAiCardPolicyFormDraftUpdate.js +0 -294
  361. package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/applyExtractedPolicyToAiCardPolicyDraft.d.ts +0 -8
  362. package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/applyExtractedPolicyToAiCardPolicyDraft.js +0 -113
  363. package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/applyExtractedPolicyToDraftEpic.d.ts +0 -9
  364. package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/applyExtractedPolicyToDraftEpic.js +0 -48
  365. package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/applyExtractedPolicyToManualCardPolicyDraft.d.ts +0 -8
  366. package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/applyExtractedPolicyToManualCardPolicyDraft.js +0 -115
  367. package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/applyUploadPlanToAiCardPolicyDraft.d.ts +0 -13
  368. package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/applyUploadPlanToAiCardPolicyDraft.js +0 -29
  369. package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/buildAiCardPolicyFormDraftSeed.d.ts +0 -14
  370. package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/buildAiCardPolicyFormDraftSeed.js +0 -369
  371. package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/buildManualCardPolicyFormDraftSeed.d.ts +0 -6
  372. package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/buildManualCardPolicyFormDraftSeed.js +0 -40
  373. package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/cardPolicyChipIds.d.ts +0 -7
  374. package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/cardPolicyChipIds.js +0 -26
  375. package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/cardPolicyFormDraftTypes.d.ts +0 -116
  376. package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/cardPolicyFormDraftTypes.js +0 -10
  377. package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/cardPolicyRequestParts.d.ts +0 -33
  378. package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/cardPolicyRequestParts.js +0 -126
  379. package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/createCardPolicyReducer.d.ts +0 -52
  380. package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/createCardPolicyReducer.js +0 -158
  381. package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/createCardPolicySelector.d.ts +0 -11
  382. package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/createCardPolicySelector.js +0 -31
  383. package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/createCardPolicyState.d.ts +0 -12
  384. package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/createCardPolicyState.js +0 -2
  385. package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/createCardPolicyTemplateEpic.d.ts +0 -9
  386. package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/createCardPolicyTemplateEpic.js +0 -53
  387. package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/deriveAiPolicyReviewRowsFromInputs.d.ts +0 -10
  388. package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/deriveAiPolicyReviewRowsFromInputs.js +0 -144
  389. package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/fetchCardPolicyMccCategoriesEpic.d.ts +0 -7
  390. package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/fetchCardPolicyMccCategoriesEpic.js +0 -24
  391. package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/seedAiCardPolicyFormDraftEpic.d.ts +0 -11
  392. package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/seedAiCardPolicyFormDraftEpic.js +0 -104
  393. package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/toBulkCardPolicyTemplateRequestsFromDraft.d.ts +0 -22
  394. package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/toBulkCardPolicyTemplateRequestsFromDraft.js +0 -100
  395. package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/toCardPolicyTemplateRequestFromDraft.d.ts +0 -8
  396. package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/toCardPolicyTemplateRequestFromDraft.js +0 -63
  397. package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/toManualCardPolicyTemplateRequestFromDraft.d.ts +0 -3
  398. package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/toManualCardPolicyTemplateRequestFromDraft.js +0 -28
  399. package/lib/view/spendManagement/chargeCards/issueChargeCard/aiCardCreationFormDraftTypes.d.ts +0 -34
  400. package/lib/view/spendManagement/chargeCards/issueChargeCard/aiCardCreationFormDraftTypes.js +0 -2
  401. package/lib/view/spendManagement/chargeCards/issueChargeCard/applyAiCardCreationFormDraftUpdate.d.ts +0 -7
  402. package/lib/view/spendManagement/chargeCards/issueChargeCard/applyAiCardCreationFormDraftUpdate.js +0 -38
  403. package/lib/view/spendManagement/chargeCards/issueChargeCard/buildAiCardCreationFormDraftSeed.d.ts +0 -12
  404. package/lib/view/spendManagement/chargeCards/issueChargeCard/buildAiCardCreationFormDraftSeed.js +0 -61
  405. package/lib/view/spendManagement/chargeCards/issueChargeCard/deriveAiCardRowsFromTeams.d.ts +0 -9
  406. package/lib/view/spendManagement/chargeCards/issueChargeCard/deriveAiCardRowsFromTeams.js +0 -39
  407. package/lib/view/spendManagement/chargeCards/issueChargeCard/seedAiCardCreationFormDraftEpic.d.ts +0 -11
  408. package/lib/view/spendManagement/chargeCards/issueChargeCard/seedAiCardCreationFormDraftEpic.js +0 -66
  409. package/lib/view/spendManagement/chargeCards/issueChargeCard/toIssueChargeCardLocalDataFromDraft.d.ts +0 -3
  410. package/lib/view/spendManagement/chargeCards/issueChargeCard/toIssueChargeCardLocalDataFromDraft.js +0 -48
  411. package/lib/view/spendManagement/commonSetup/epic/setup/parseUploadedKybDocumentEpic.d.ts +0 -28
  412. package/lib/view/spendManagement/commonSetup/epic/setup/parseUploadedKybDocumentEpic.js +0 -62
  413. package/lib/view/spendManagement/commonSetup/epic/setup/parseUploadedKycDocumentEpic.d.ts +0 -9
  414. package/lib/view/spendManagement/commonSetup/epic/setup/parseUploadedKycDocumentEpic.js +0 -81
  415. package/lib/view/spendManagement/commonSetup/kycKybAutofillActions.d.ts +0 -24
  416. package/lib/view/spendManagement/commonSetup/kycKybAutofillActions.js +0 -17
  417. package/lib/view/spendManagement/commonSetup/kycKybParseMapper.d.ts +0 -29
  418. package/lib/view/spendManagement/commonSetup/kycKybParseMapper.js +0 -229
  419. package/lib/view/spendManagement/commonSetup/types/kycKybAutofill.d.ts +0 -154
  420. package/lib/view/spendManagement/commonSetup/types/kycKybAutofill.js +0 -46
  421. package/lib/view/spendManagement/reimbursement/remiSetupApproverView/epic/reorderRemiApprovalRulesEpic.d.ts +0 -14
  422. package/lib/view/spendManagement/reimbursement/remiSetupApproverView/epic/reorderRemiApprovalRulesEpic.js +0 -65
@@ -9,13 +9,9 @@ export interface AiCfoAnswerParagraph {
9
9
  }>;
10
10
  }
11
11
  export declare const ALL_AI_CFO_CHARTS_TYPES: readonly ["bar_chart", "pie_chart", "line_chart"];
12
- export declare const ALL_AI_CFO_VISUALIZATION_TYPES: readonly ["bar_chart", "pie_chart", "line_chart", "table", "interactive_form"];
13
- export declare const ALL_INTERACTIVE_FORM_TYPES: readonly ["cards_creation", "card_policy"];
14
- export declare const toInteractiveFormType: (v: string) => "cards_creation" | "card_policy";
15
- export declare const toInteractiveFormTypeStrict: (v: string) => "cards_creation" | "card_policy" | undefined;
16
- export type InteractiveFormType = ReturnType<typeof toInteractiveFormType>;
17
- export declare const toAiCfoVisualizationType: (v: string) => "bar_chart" | "pie_chart" | "line_chart" | "table" | "interactive_form";
18
- export declare const toAiCfoVisualizationTypeStrict: (v: string) => "bar_chart" | "pie_chart" | "line_chart" | "table" | "interactive_form" | undefined;
12
+ export declare const ALL_AI_CFO_VISUALIZATION_TYPES: readonly ["bar_chart", "pie_chart", "line_chart", "table"];
13
+ export declare const toAiCfoVisualizationType: (v: string) => "bar_chart" | "pie_chart" | "line_chart" | "table";
14
+ export declare const toAiCfoVisualizationTypeStrict: (v: string) => "bar_chart" | "pie_chart" | "line_chart" | "table" | undefined;
19
15
  export type AiCfoVisualizationType = ReturnType<typeof toAiCfoVisualizationType>;
20
16
  export declare const toAiCfoChartType: (v: string) => "bar_chart" | "pie_chart" | "line_chart";
21
17
  export declare const toAiCfoChartTypeStrict: (v: string) => "bar_chart" | "pie_chart" | "line_chart" | undefined;
@@ -57,87 +53,8 @@ export interface ChartVisualization {
57
53
  lines?: string[];
58
54
  yFormat?: YFormat;
59
55
  }
60
- export type CardsCardKind = 'vendor' | 'class' | 'category';
61
- export interface CardNameOption {
62
- id: string;
63
- kind: CardsCardKind;
64
- label: string;
65
- }
66
- export interface CardsCreationCommonData {
67
- cardNameOptions: CardNameOption[];
68
- suggestedOwnerUserIdByTeamId: Record<string, ID | undefined>;
69
- }
70
- export type CardsCreationInitialData = (CardsCreationCommonData & {
71
- mode: 'review';
72
- teamRows: Array<{
73
- avgMonthlySpend: string;
74
- cardKind: CardsCardKind;
75
- id: string;
76
- label: string;
77
- recommendedLimit: string;
78
- recommendedLimitCadence?: string;
79
- }>;
80
- }) | (CardsCreationCommonData & {
81
- cardRows: Array<{
82
- cardKind: CardsCardKind;
83
- id: string;
84
- label: string;
85
- recommendedLimit?: number;
86
- suggestedOwnerUserId?: ID;
87
- }>;
88
- mode: 'create';
89
- });
90
- export interface CardPolicyDraftPolicyEntity {
91
- categoryCodes: string[];
92
- merchantNames: string[];
93
- }
94
- export interface CardPolicySpendLimits {
95
- transaction: number;
96
- }
97
- export interface CardPolicyDraftPolicy {
98
- allowedEntity: CardPolicyDraftPolicyEntity;
99
- applyToCards: string[];
100
- blockedEntity: CardPolicyDraftPolicyEntity;
101
- description: string;
102
- id: string;
103
- mode: string;
104
- name: string;
105
- requiredReceiptThreshold: number;
106
- spendLimits: CardPolicySpendLimits;
107
- }
108
- export interface CardPolicyStep5Review {
109
- draftPolicies: CardPolicyDraftPolicy[];
110
- groupingSource: string;
111
- prompt: string;
112
- }
113
- export interface CardPolicyWizardPlan {
114
- step5Review: CardPolicyStep5Review;
115
- }
116
- export interface CardPolicyUploadSource {
117
- confidenceScore: number;
118
- fileName: string;
119
- lowConfidenceFields: string[];
120
- }
121
- export type CardPolicyInitialData = {
122
- policyKind: 'auto';
123
- wizardPlan: CardPolicyWizardPlan;
124
- } | {
125
- policyKind: 'guided';
126
- wizardPlan: CardPolicyWizardPlan;
127
- } | {
128
- policyKind: 'upload';
129
- source?: CardPolicyUploadSource;
130
- wizardPlan?: CardPolicyWizardPlan;
131
- };
132
- export type InteractiveFormVisualization = {
133
- formType: 'cards_creation';
134
- payload: CardsCreationInitialData;
135
- } | {
136
- formType: 'card_policy';
137
- payload: CardPolicyInitialData;
138
- };
139
56
  export interface AiCfoVisualization {
140
- data: TableVisualization | ChartVisualization | InteractiveFormVisualization;
57
+ data: TableVisualization | ChartVisualization;
141
58
  type: AiCfoVisualizationType;
142
59
  }
143
60
  export declare const toMessageSender: (v: string) => "user" | "agent";
@@ -196,17 +113,7 @@ export interface ChatSessionWithMessages {
196
113
  chatSession: ChatSession;
197
114
  questionAnswers: AiCfoQuestionWithAnswer[];
198
115
  }
199
- export declare const ALL_SYNTHETIC_AI_CFO_ANSWER_KINDS: readonly ["creating_cards", "creating_policy", "created_cards", "created_policy", "errored_cards", "errored_policy"];
200
- export type SyntheticAiCfoAnswerKind = (typeof ALL_SYNTHETIC_AI_CFO_ANSWER_KINDS)[number];
201
- export interface SyntheticAiCfoAnswer {
202
- createdAt: ZeniDate;
203
- entityIds: ID[];
204
- id: ID;
205
- kind: SyntheticAiCfoAnswerKind;
206
- sourceQuestionAnswerId: ID;
207
- }
208
116
  export interface AiCfoState {
209
117
  aiCfoByChatSessionId: Record<ID, ChatSessionWithMessages>;
210
118
  partialQuestionAnswers: Record<ID, AiCfoQuestionWithAnswer | undefined>;
211
- syntheticAnswersByChatSessionId: Record<ID, SyntheticAiCfoAnswer[]>;
212
119
  }
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ALL_SYNTHETIC_AI_CFO_ANSWER_KINDS = exports.toMessageTypeStrict = exports.toMessageSenderStrict = exports.toMessageType = exports.toMessageSender = exports.toAiCfoAnswerResponseTypeStrict = exports.toAiCfoAnswerStateTypeStrict = exports.toAiCfoAnswerResponseType = exports.toAiCfoAnswerStateType = exports.toYFormatScaleStrict = exports.toYFormatUnitStrict = exports.toYFormatTypeStrict = exports.toYFormatScale = exports.toYFormatUnit = exports.toYFormatType = exports.ALL_Y_FORMAT_SCALES = exports.ALL_Y_FORMAT_NON_CURRENCY_UNITS = exports.ALL_Y_FORMAT_TYPES = exports.ALL_AI_CFO_ANSWER_RESPONSE_TYPES = exports.ALL_AI_CFO_ANSWER_STATE_TYPES = exports.toAiCfoChartTypeStrict = exports.toAiCfoChartType = exports.toAiCfoVisualizationTypeStrict = exports.toAiCfoVisualizationType = exports.toInteractiveFormTypeStrict = exports.toInteractiveFormType = exports.ALL_INTERACTIVE_FORM_TYPES = exports.ALL_AI_CFO_VISUALIZATION_TYPES = exports.ALL_AI_CFO_CHARTS_TYPES = void 0;
3
+ exports.toMessageTypeStrict = exports.toMessageSenderStrict = exports.toMessageType = exports.toMessageSender = exports.toAiCfoAnswerResponseTypeStrict = exports.toAiCfoAnswerStateTypeStrict = exports.toAiCfoAnswerResponseType = exports.toAiCfoAnswerStateType = exports.toYFormatScaleStrict = exports.toYFormatUnitStrict = exports.toYFormatTypeStrict = exports.toYFormatScale = exports.toYFormatUnit = exports.toYFormatType = exports.ALL_Y_FORMAT_SCALES = exports.ALL_Y_FORMAT_NON_CURRENCY_UNITS = exports.ALL_Y_FORMAT_TYPES = exports.ALL_AI_CFO_ANSWER_RESPONSE_TYPES = exports.ALL_AI_CFO_ANSWER_STATE_TYPES = exports.toAiCfoChartTypeStrict = exports.toAiCfoChartType = exports.toAiCfoVisualizationTypeStrict = exports.toAiCfoVisualizationType = exports.ALL_AI_CFO_VISUALIZATION_TYPES = exports.ALL_AI_CFO_CHARTS_TYPES = void 0;
4
4
  const stringToUnion_1 = require("../../commonStateTypes/stringToUnion");
5
5
  exports.ALL_AI_CFO_CHARTS_TYPES = [
6
6
  'bar_chart',
@@ -10,16 +10,7 @@ exports.ALL_AI_CFO_CHARTS_TYPES = [
10
10
  exports.ALL_AI_CFO_VISUALIZATION_TYPES = [
11
11
  ...exports.ALL_AI_CFO_CHARTS_TYPES,
12
12
  'table',
13
- 'interactive_form',
14
13
  ];
15
- exports.ALL_INTERACTIVE_FORM_TYPES = [
16
- 'cards_creation',
17
- 'card_policy',
18
- ];
19
- const toInteractiveFormType = (v) => (0, stringToUnion_1.stringToUnion)(v, exports.ALL_INTERACTIVE_FORM_TYPES);
20
- exports.toInteractiveFormType = toInteractiveFormType;
21
- const toInteractiveFormTypeStrict = (v) => (0, stringToUnion_1.stringToUnionStrict)(v, exports.ALL_INTERACTIVE_FORM_TYPES);
22
- exports.toInteractiveFormTypeStrict = toInteractiveFormTypeStrict;
23
14
  const toAiCfoVisualizationType = (v) => (0, stringToUnion_1.stringToUnion)(v, exports.ALL_AI_CFO_VISUALIZATION_TYPES);
24
15
  exports.toAiCfoVisualizationType = toAiCfoVisualizationType;
25
16
  const toAiCfoVisualizationTypeStrict = (v) => (0, stringToUnion_1.stringToUnionStrict)(v, exports.ALL_AI_CFO_VISUALIZATION_TYPES);
@@ -88,13 +79,3 @@ const toMessageSenderStrict = (v) => (0, stringToUnion_1.stringToUnionStrict)(v,
88
79
  exports.toMessageSenderStrict = toMessageSenderStrict;
89
80
  const toMessageTypeStrict = (v) => (0, stringToUnion_1.stringToUnionStrict)(v, ALL_MESSAGE_TYPES);
90
81
  exports.toMessageTypeStrict = toMessageTypeStrict;
91
- // Client-synthesized AI CFO answer bubbles (Creating…/Created) pushed when the user
92
- // submits an interactive form; not streamed from the backend.
93
- exports.ALL_SYNTHETIC_AI_CFO_ANSWER_KINDS = [
94
- 'creating_cards',
95
- 'creating_policy',
96
- 'created_cards',
97
- 'created_policy',
98
- 'errored_cards',
99
- 'errored_policy',
100
- ];
@@ -1,27 +1,11 @@
1
1
  import { ApprovalRule } from './approvalRuleState';
2
- /**
3
- * Condition Payload — one entry inside criteria.conditions[].
4
- *
5
- * field examples: 'amount' | 'vendor_id' | 'accounting_class_id'
6
- * type examples: 'gte' | 'lte' | 'eq' | 'in' | 'not_in'
7
- * value: number for amount comparisons; string[] for in / not_in lookups.
8
- */
9
- export interface ConditionPayload {
10
- field: string;
11
- type: string;
12
- value: number | string[];
13
- }
14
- /**
15
- * Criteria Payload — list of conditions joined by `criteria_operator`.
16
- *
17
- * `currency_code` / `currency_symbol` apply to amount conditions inside
18
- * `conditions[]`. Kept here pending confirmation that they should remain.
19
- */
20
2
  export interface CriteriaPayload {
21
- conditions: ConditionPayload[];
22
- criteria_operator: string;
23
3
  currency_code: string;
24
4
  currency_symbol: string;
5
+ min: number;
6
+ range_entity: string;
7
+ type: string;
8
+ max?: number | null;
25
9
  }
26
10
  export interface ActorPayload {
27
11
  type: string;
@@ -41,24 +25,11 @@ export interface StepPayload {
41
25
  export interface ApprovalRulePayload {
42
26
  approval_rule_id: string;
43
27
  create_time: string;
44
- criteria: CriteriaPayload;
28
+ criteria: CriteriaPayload[];
45
29
  entity_type: string;
46
30
  name: string | null;
47
31
  steps: StepPayload[];
48
32
  update_time: string;
49
- are_approvals_serialized?: boolean;
50
- description?: string | null;
51
- is_fallback?: boolean;
52
- /**
53
- * Approval Rules 3.0 — when `true`, the rule enforces separation of
54
- * duties (a user can't approve their own request even if they are
55
- * also an approver). The list-page rule card surfaces this as a
56
- * green "Separation of duties" capsule.
57
- */
58
- is_separation_of_duty_enabled?: boolean;
59
- pending_approvals_count?: number;
60
- pending_entity_approval_update_status?: string;
61
- priority?: number;
62
33
  version?: number | string;
63
34
  }
64
35
  /**
@@ -17,158 +17,19 @@ const toApprovalRule = (payload) => ({
17
17
  version: payload.version,
18
18
  criteria: toApprovalCriteria(payload.criteria),
19
19
  steps: toApprovalSteps(payload.steps),
20
- description: payload.description ?? undefined,
21
- priority: payload.priority,
22
- isFallback: payload.is_fallback ?? false,
23
- separationOfDuties: payload.is_separation_of_duty_enabled ?? false,
24
- areApprovalsSerialized: payload.are_approvals_serialized,
25
- pendingApprovalsCount: payload.pending_approvals_count,
26
- pendingEntityApprovalUpdateStatus: payload.pending_entity_approval_update_status,
27
20
  });
28
21
  exports.toApprovalRule = toApprovalRule;
29
- /**
30
- * Maps the wire-level criteria block into the state-side discriminated
31
- * `Criteria[]` union.
32
- *
33
- * The wire keeps each condition as a flat row inside `conditions[]`.
34
- * Amount comparisons can show up as a `gte` only, a `lte` only, or a
35
- * `gte` + `lte` pair — those collapse into a single AmountCriteria whose
36
- * `comparator` is `greater_than`, `less_than`, or `range` respectively.
37
- *
38
- * Vendor and department conditions map one-to-one: `in` becomes `is`,
39
- * `not_in` becomes `is_not`.
40
- *
41
- * Resilient to two forms of upstream drift:
42
- * - Missing / null criteria → returns [].
43
- * - Legacy criteria shape (array of amount-range objects, the pre-3.0
44
- * wire) → converted to an AmountCriteria so existing rules in production
45
- * still render while the backend rolls out.
46
- */
47
22
  const toApprovalCriteria = (payload) => {
48
- if (payload == null) {
49
- return [];
50
- }
51
- if (Array.isArray(payload)) {
52
- // Legacy pre-3.0 wire: an array of amount-range entries.
53
- return legacyAmountRangeToCriteria(payload);
54
- }
55
- if (!Array.isArray(payload.conditions)) {
56
- return [];
57
- }
58
- const results = [];
59
- const amountCriteria = toAmountCriteria(payload);
60
- if (amountCriteria != null) {
61
- results.push(amountCriteria);
62
- }
63
- payload.conditions
64
- .filter((condition) => condition.field === 'vendor_id')
65
- .forEach((condition) => {
66
- const vendor = toVendorCriteria(condition);
67
- if (vendor != null) {
68
- results.push(vendor);
69
- }
70
- });
71
- payload.conditions
72
- // Backend wire name is 'accounting_class_id' — kept in sync with
73
- // the write-side mapper in 'commonPayload.ts'. State-side and
74
- // form-side keep 'department' / 'departmentIds' to match product
75
- // copy.
76
- .filter((condition) => condition.field === 'accounting_class_id')
77
- .forEach((condition) => {
78
- const department = toDepartmentCriteria(condition);
79
- if (department != null) {
80
- results.push(department);
81
- }
82
- });
83
- return results;
84
- };
85
- const legacyAmountRangeToCriteria = (legacy) => {
86
- if (legacy.length === 0) {
87
- return [];
88
- }
89
- // The state-side 'Criteria[]' model allows at most one
90
- // 'AmountCriteria' per rule (see 'approvalRuleState.ts'). The legacy
91
- // wire was an array, so a multi-entry payload can't be represented
92
- // here without losing data. Read the first entry and log a warning
93
- // if production rules ever ship more — that would signal a backend
94
- // regression we want to catch early rather than silently truncating.
95
- if (legacy.length > 1) {
96
- console.warn('[approvalRulePayload] legacyAmountRangeToCriteria: received ' +
97
- legacy.length +
98
- ' entries but the state model only supports one; using the ' +
99
- 'first entry and dropping the rest.');
100
- }
101
- const first = legacy[0] ?? {};
102
- const currency = first.currency_code ?? 'USD';
103
- const symbol = first.currency_symbol ?? '$';
104
- const min = typeof first.min === 'number'
105
- ? (0, amount_1.toAmount)(first.min, currency, symbol)
106
- : undefined;
107
- const max = typeof first.max === 'number'
108
- ? (0, amount_1.toAmount)(first.max, currency, symbol)
109
- : undefined;
110
- if (min == null && max == null) {
111
- return [];
112
- }
113
- const comparator = min != null && max != null
114
- ? 'range'
115
- : min != null
116
- ? 'greater_than'
117
- : 'less_than';
118
- return [{ type: 'amount', comparator, min, max }];
119
- };
120
- const toAmountCriteria = (payload) => {
121
- if (!Array.isArray(payload.conditions)) {
122
- return undefined;
123
- }
124
- const amountConditions = payload.conditions.filter((condition) => condition.field === 'amount');
125
- // Approval Rules 3.0 — an 'eq' condition represents min === max. Fold
126
- // it into both finders so it decodes as comparator: 'range' (closed
127
- // single-point) rather than 'greater_than' (open upper).
128
- const gteCondition = amountConditions.find((condition) => condition.type === 'gte' || condition.type === 'eq');
129
- const lteCondition = amountConditions.find((condition) => condition.type === 'lte' || condition.type === 'eq');
130
- if (gteCondition == null && lteCondition == null) {
131
- return undefined;
132
- }
133
- const currencyCode = payload.currency_code ?? 'USD';
134
- const currencySymbol = payload.currency_symbol ?? '$';
135
- const min = typeof gteCondition?.value === 'number'
136
- ? (0, amount_1.toAmount)(gteCondition.value, currencyCode, currencySymbol)
137
- : undefined;
138
- const max = typeof lteCondition?.value === 'number'
139
- ? (0, amount_1.toAmount)(lteCondition.value, currencyCode, currencySymbol)
140
- : undefined;
141
- let comparator;
142
- if (min != null && max != null) {
143
- comparator = 'range';
144
- }
145
- else if (min != null) {
146
- comparator = 'greater_than';
147
- }
148
- else {
149
- comparator = 'less_than';
150
- }
151
- return { type: 'amount', comparator, min, max };
152
- };
153
- const toVendorCriteria = (condition) => {
154
- if (!Array.isArray(condition.value)) {
155
- return undefined;
156
- }
157
- return {
158
- type: 'vendor',
159
- operator: condition.type === 'not_in' ? 'is_not' : 'is',
160
- vendorIds: condition.value,
161
- };
162
- };
163
- const toDepartmentCriteria = (condition) => {
164
- if (!Array.isArray(condition.value)) {
165
- return undefined;
166
- }
167
- return {
168
- type: 'department',
169
- operator: condition.type === 'not_in' ? 'is_not' : 'is',
170
- departmentIds: condition.value,
171
- };
23
+ return payload.map((criteria) => ({
24
+ rangeType: criteria.type,
25
+ rangeEntity: criteria.range_entity,
26
+ range: {
27
+ min: (0, amount_1.toAmount)(criteria.min, criteria.currency_code, criteria.currency_symbol),
28
+ max: criteria.max != null
29
+ ? (0, amount_1.toAmount)(criteria.max, criteria.currency_code, criteria.currency_symbol)
30
+ : undefined,
31
+ },
32
+ }));
172
33
  };
173
34
  const toApprovalSteps = (payload) => {
174
35
  return payload.map((step) => ({
@@ -1,28 +1,4 @@
1
1
  import { ID } from '../../commonStateTypes/common';
2
- import { EntityType } from '../entityApprovalStatus/entityApprovalStatusState';
3
- import { AmountCriteria, ApprovalRule, ApprovalRuleState, Criteria, DepartmentCriteria, VendorCriteria } from './approvalRuleState';
2
+ import { ApprovalRule, ApprovalRuleState } from './approvalRuleState';
4
3
  export declare function getApprovalRuleById(approvalRuleState: ApprovalRuleState, approvalRuleId: ID): ApprovalRule | undefined;
5
4
  export declare function getApprovalRulesByIds(approvalRuleState: ApprovalRuleState, approvalRuleIds: ID[]): ApprovalRule[];
6
- /**
7
- * Returns the amount-range portion of a rule's criteria, if any.
8
- *
9
- * Use this whenever a caller needs to read amount min/max from the new
10
- * discriminated `Criteria` union without inlining a type guard.
11
- */
12
- export declare function getAmountCriteria(criteria: Criteria[]): AmountCriteria | undefined;
13
- export declare function getVendorCriteria(criteria: Criteria[]): VendorCriteria | undefined;
14
- export declare function getDepartmentCriteria(criteria: Criteria[]): DepartmentCriteria | undefined;
15
- /**
16
- * Returns all rules of the given entityType, sorted by `priority` ascending.
17
- *
18
- * Rules without a `priority` value sort to the end (treated as Infinity).
19
- * Use this for the list page where rules render in evaluation order.
20
- */
21
- export declare function getApprovalRulesByEntityType(approvalRuleState: ApprovalRuleState, entityType: EntityType): ApprovalRule[];
22
- /**
23
- * Returns the tenant's fallback rule for the given entityType, if one exists.
24
- *
25
- * The fallback rule is shown by the "fallback engine active" banner on the
26
- * list page and is used to handle bills/reimbursements that match no other rule.
27
- */
28
- export declare function getFallbackApprovalRule(approvalRuleState: ApprovalRuleState, entityType: EntityType): ApprovalRule | undefined;
@@ -2,11 +2,6 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getApprovalRuleById = getApprovalRuleById;
4
4
  exports.getApprovalRulesByIds = getApprovalRulesByIds;
5
- exports.getAmountCriteria = getAmountCriteria;
6
- exports.getVendorCriteria = getVendorCriteria;
7
- exports.getDepartmentCriteria = getDepartmentCriteria;
8
- exports.getApprovalRulesByEntityType = getApprovalRulesByEntityType;
9
- exports.getFallbackApprovalRule = getFallbackApprovalRule;
10
5
  function getApprovalRuleById(approvalRuleState, approvalRuleId) {
11
6
  return approvalRuleState.approvalRuleById[approvalRuleId] ?? undefined;
12
7
  }
@@ -16,38 +11,3 @@ function getApprovalRulesByIds(approvalRuleState, approvalRuleIds) {
16
11
  .filter((value) => value != null);
17
12
  return approvalRulesByIds;
18
13
  }
19
- /**
20
- * Returns the amount-range portion of a rule's criteria, if any.
21
- *
22
- * Use this whenever a caller needs to read amount min/max from the new
23
- * discriminated `Criteria` union without inlining a type guard.
24
- */
25
- function getAmountCriteria(criteria) {
26
- return criteria.find((c) => c.type === 'amount');
27
- }
28
- function getVendorCriteria(criteria) {
29
- return criteria.find((c) => c.type === 'vendor');
30
- }
31
- function getDepartmentCriteria(criteria) {
32
- return criteria.find((c) => c.type === 'department');
33
- }
34
- /**
35
- * Returns all rules of the given entityType, sorted by `priority` ascending.
36
- *
37
- * Rules without a `priority` value sort to the end (treated as Infinity).
38
- * Use this for the list page where rules render in evaluation order.
39
- */
40
- function getApprovalRulesByEntityType(approvalRuleState, entityType) {
41
- return Object.values(approvalRuleState.approvalRuleById)
42
- .filter((rule) => rule.entityType === entityType)
43
- .sort((a, b) => (a.priority ?? Infinity) - (b.priority ?? Infinity));
44
- }
45
- /**
46
- * Returns the tenant's fallback rule for the given entityType, if one exists.
47
- *
48
- * The fallback rule is shown by the "fallback engine active" banner on the
49
- * list page and is used to handle bills/reimbursements that match no other rule.
50
- */
51
- function getFallbackApprovalRule(approvalRuleState, entityType) {
52
- return Object.values(approvalRuleState.approvalRuleById).find((rule) => rule.entityType === entityType && rule.isFallback === true);
53
- }
@@ -25,48 +25,14 @@ export interface Actor {
25
25
  subType?: AttributeType | RoleType;
26
26
  userId?: ID;
27
27
  }
28
- /**
29
- * Approval rule criteria — discriminated union over the three condition
30
- * types the wire format supports: amount, vendor, and department.
31
- *
32
- * State-side, each rule carries a `Criteria[]` with at most one variant of
33
- * each kind (e.g. one AmountCriteria + one VendorCriteria + one DepartmentCriteria).
34
- *
35
- * Form-side, the rule create/edit form uses `ApprovalRuleFormCriteria`
36
- * (defined in commonState) — a structured object with named slots for
37
- * amount/vendor/department. Epics translate between the two.
38
- */
39
- export type AmountComparator = 'greater_than' | 'less_than' | 'range';
40
- export interface AmountCriteria {
41
- comparator: AmountComparator;
42
- type: 'amount';
43
- /** Upper bound. Present for `less_than` and `range`. */
44
- max?: Amount;
45
- /** Lower bound. Present for `greater_than` and `range`. */
46
- min?: Amount;
47
- }
48
- export interface VendorCriteria {
49
- operator: 'is' | 'is_not';
50
- type: 'vendor';
51
- vendorIds: ID[];
28
+ export interface Criteria {
29
+ range: {
30
+ min: Amount;
31
+ max?: Amount;
32
+ };
33
+ rangeEntity: string;
34
+ rangeType: string;
52
35
  }
53
- export interface DepartmentCriteria {
54
- departmentIds: ID[];
55
- operator: 'is' | 'is_not';
56
- type: 'department';
57
- }
58
- export type Criteria = AmountCriteria | VendorCriteria | DepartmentCriteria;
59
- /**
60
- * Approval Rules 3.0 — canonical discriminator across the three
61
- * condition variants. Derived from the `Criteria` union's `type`
62
- * field so it can't drift from the underlying data model.
63
- *
64
- * Used by the unified `ConditionRow` UI component to switch which
65
- * variant body to render, and by chip-rendering helpers on the list
66
- * page to pick a label format. Consumers should import this type
67
- * rather than redeclaring the three string literals locally.
68
- */
69
- export type ConditionType = Criteria['type'];
70
36
  export interface Step {
71
37
  actors: Actor[];
72
38
  operator: StepOperatorType;
@@ -85,25 +51,7 @@ export interface ApprovalRule {
85
51
  entityType: EntityType;
86
52
  steps: Step[];
87
53
  updateTime: ZeniDate;
88
- /** Backend bookkeeping: whether approval steps must run serialized. */
89
- areApprovalsSerialized?: boolean;
90
- /** Free-text description shown beneath the rule name on the list page. */
91
- description?: string;
92
- /** True when this rule is the tenant's default fallback rule. */
93
- isFallback?: boolean;
94
54
  name?: string;
95
- /** Backend bookkeeping: number of entities currently pending against this rule. */
96
- pendingApprovalsCount?: number;
97
- /** Backend bookkeeping: status of background updates against this rule. */
98
- pendingEntityApprovalUpdateStatus?: string;
99
- /** Rule's position in the evaluation order; lower number = higher priority. */
100
- priority?: number;
101
- /**
102
- * When on, the creator of a bill/reimbursement cannot auto-approve
103
- * their own request even if they are also an approver. Backend spec
104
- * is still pending — kept optional for now.
105
- */
106
- separationOfDuties?: boolean;
107
55
  version?: number | string;
108
56
  }
109
57
  export interface Approvers {
@@ -290,8 +290,6 @@ export interface OnboardingStepErrorDetails {
290
290
  export interface OnboardingInfoPayload {
291
291
  accounting_connection_created_by: string | null;
292
292
  is_interim_email_sent: boolean;
293
- is_onboarding_ai_activation_viewed: boolean;
294
- is_onboarding_ai_finance_team_acknowledged: boolean;
295
293
  is_onboarding_business_verified: boolean;
296
294
  is_onboarding_customer_created: boolean;
297
295
  is_onboarding_email_group_created: boolean;
@@ -300,8 +298,6 @@ export interface OnboardingInfoPayload {
300
298
  is_uncategorized_expense_account_identified: boolean;
301
299
  is_uncategorized_income_account_identified: boolean;
302
300
  is_zeni_subscriptions_payment_account_linked: boolean;
303
- onboarding_ai_activation_viewed_by: ID[];
304
- onboarding_ai_finance_team_acknowledged_by: ID[];
305
301
  onboarding_business_identity_verified_by: ID[];
306
302
  onboarding_business_verification_status: string;
307
303
  onboarding_customer_creation_done_by: ID[];
@@ -277,12 +277,6 @@ const toOnboardingInfo = (onboardingInfoPayload) => {
277
277
  }
278
278
  return {
279
279
  isInterimEmailSent: onboardingInfoPayload.is_interim_email_sent ?? false,
280
- onboardingAiActivationInfo: {
281
- isOnboardingAiActivationViewed: onboardingInfoPayload.is_onboarding_ai_activation_viewed,
282
- isOnboardingAiFinanceTeamAcknowledged: onboardingInfoPayload.is_onboarding_ai_finance_team_acknowledged,
283
- onboardingAiFinanceTeamAcknowledgedBy: onboardingInfoPayload.onboarding_ai_finance_team_acknowledged_by,
284
- onboardingAiActivationViewedBy: onboardingInfoPayload.onboarding_ai_activation_viewed_by,
285
- },
286
280
  bankAccountLinked: {
287
281
  completed: onboardingInfoPayload.is_zeni_subscriptions_payment_account_linked ??
288
282
  false,
@@ -272,12 +272,6 @@ export interface CompanyFeaturesActivationInfo {
272
272
  isReimbursementFeatureEnabled: boolean;
273
273
  isSameDayAchFeatureEnabled: boolean;
274
274
  }
275
- export interface CompanyOnboardingAiActivationInfo {
276
- isOnboardingAiActivationViewed: boolean;
277
- isOnboardingAiFinanceTeamAcknowledged: boolean;
278
- onboardingAiActivationViewedBy: ID[];
279
- onboardingAiFinanceTeamAcknowledgedBy: ID[];
280
- }
281
275
  export interface CompanyMileageConfigInfo {
282
276
  defaultMileageUnitAmount: number;
283
277
  denominationConversions: {
@@ -319,7 +313,6 @@ export interface OnboardingInfo extends OnboardingStepsInfo {
319
313
  businessVerified: IdentityVerificationStatus;
320
314
  identityVerified: IdentityVerificationStatus;
321
315
  isInterimEmailSent: boolean;
322
- onboardingAiActivationInfo: CompanyOnboardingAiActivationInfo;
323
316
  onboardingCustomerUserIds: ID[];
324
317
  uncategorizedExpenseAccountIdentified: boolean;
325
318
  uncategorizedIncomeAccountIdentified: boolean;
@@ -16,7 +16,6 @@ export interface JEScheduleOtherAttributesPayload {
16
16
  export interface JEScheduleAISummaryFieldPayload {
17
17
  confidence: number;
18
18
  reasoning: string;
19
- cot?: string[];
20
19
  predicted_value?: number | string;
21
20
  }
22
21
  export interface JEScheduleAISummariesPayload {