@zeniai/client-epic-state 5.1.8 → 5.1.10

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 (420) 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 +2 -3
  42. package/lib/entity/tenant/tenantReducer.d.ts +30 -44
  43. package/lib/entity/tenant/tenantReducer.js +29 -130
  44. package/lib/entity/tenant/tenantSelector.d.ts +1 -0
  45. package/lib/entity/tenant/tenantSelector.js +10 -1
  46. package/lib/entity/tenant/tenantState.d.ts +2 -3
  47. package/lib/entity/transaction/payloadTypes/transactionPayload.js +2 -4
  48. package/lib/epic.d.ts +4 -32
  49. package/lib/epic.js +4 -33
  50. package/lib/esm/commonStateTypes/amount.js +0 -7
  51. package/lib/esm/commonStateTypes/animations.js +0 -1
  52. package/lib/esm/commonStateTypes/workingDayHelper.js +0 -26
  53. package/lib/esm/entity/aiCfo/aiCfoReducer.js +9 -249
  54. package/lib/esm/entity/aiCfo/aiCfoSelector.js +1 -17
  55. package/lib/esm/entity/aiCfo/aiCfoState.js +0 -17
  56. package/lib/esm/entity/approvalRule/approvalRulePayload.js +10 -149
  57. package/lib/esm/entity/approvalRule/approvalRuleSelector.js +0 -35
  58. package/lib/esm/entity/company/companyPayload.js +0 -6
  59. package/lib/esm/entity/jeSchedules/jeSchedulesPayload.js +0 -19
  60. package/lib/esm/entity/paymentAccount/paymentAccountSelector.js +0 -8
  61. package/lib/esm/entity/snackbar/snackbarTypes.js +0 -5
  62. package/lib/esm/entity/task/taskPayload.js +0 -2
  63. package/lib/esm/entity/tenant/clearAllEpic.js +0 -12
  64. package/lib/esm/entity/tenant/tenantReducer.js +27 -128
  65. package/lib/esm/entity/tenant/tenantSelector.js +8 -0
  66. package/lib/esm/entity/transaction/payloadTypes/transactionPayload.js +2 -4
  67. package/lib/esm/epic.js +4 -33
  68. package/lib/esm/index.js +27 -68
  69. package/lib/esm/reducer.js +0 -18
  70. package/lib/esm/view/aiCfoView/aiCfoViewReducer.js +3 -6
  71. package/lib/esm/view/aiCfoView/epics/createSessionAndSubmitEpic.js +2 -5
  72. package/lib/esm/view/aiCfoView/epics/createSessionEpic.js +1 -2
  73. package/lib/esm/view/aiCfoView/epics/fetchSuggestedQuestionsEpic.js +2 -12
  74. package/lib/esm/view/companyTaskManagerView/companyTaskManagerViewReducer.js +11 -39
  75. package/lib/esm/view/companyTaskManagerView/companyTaskManagerViewSelector.js +4 -14
  76. package/lib/esm/view/companyTaskManagerView/epics/fetchCompanyTaskManagerViewEpic.js +28 -37
  77. package/lib/esm/view/companyView/companyViewReducer.js +10 -11
  78. package/lib/esm/view/companyView/epic/companyPassport/dismissCapitalizationOnboardingEpic.js +5 -5
  79. package/lib/esm/view/companyView/epic/companyPassport/{updateCapitalizationAccountThresholdEpic.js → updateCapitalizationThresholdEpic.js} +19 -38
  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/settingsView/settingsViewHelpers.js +13 -9
  90. package/lib/esm/view/spendManagement/autotransferRules/autoTransferRulesSelector.js +2 -22
  91. package/lib/esm/view/spendManagement/billPay/billPayReview/billPayReviewSelector.js +0 -14
  92. package/lib/esm/view/spendManagement/billPay/billPaySetupApproverView/billPaySetupApproverViewReducer.js +12 -109
  93. package/lib/esm/view/spendManagement/billPay/billPaySetupApproverView/epic/deleteBillPayApprovalRuleEpic.js +2 -10
  94. package/lib/esm/view/spendManagement/billPay/billPaySetupApproverView/epic/fetchBillPaySetupApproverViewEpic.js +4 -8
  95. package/lib/esm/view/spendManagement/billPay/billPaySetupApproverView/epic/initializeBillPaySetupApproverViewUpdateDataEpic.js +7 -11
  96. package/lib/esm/view/spendManagement/billPay/billPaySetupApproverView/epic/saveBillPaySetupApproverViewUpdatesEpic.js +4 -13
  97. package/lib/esm/view/spendManagement/billPay/billPaySetupApproverView/types/commonPayload.js +16 -144
  98. package/lib/esm/view/spendManagement/billPay/editBillView/editBillViewSelector.js +4 -60
  99. package/lib/esm/view/spendManagement/billPay/editBillView/epics/fetchEditBillDetailPageEpic.js +2 -8
  100. package/lib/esm/view/spendManagement/chargeCards/chargeCardList/chargeCardListSelector.js +0 -25
  101. package/lib/esm/view/spendManagement/chargeCards/issueChargeCard/issueChargeCardEpic.js +2 -2
  102. package/lib/esm/view/spendManagement/chargeCards/issueChargeCard/issueChargeCardReducer.js +4 -42
  103. package/lib/esm/view/spendManagement/chargeCards/issueChargeCard/issueChargeCardSelector.js +0 -35
  104. package/lib/esm/view/spendManagement/commonSetup/setupViewReducer.js +52 -106
  105. package/lib/esm/view/spendManagement/commonSetup/setupViewSelector.js +1 -6
  106. package/lib/esm/view/spendManagement/reimbursement/editRemiView/epics/fetchEditRemiDetailPageEpic.js +1 -5
  107. package/lib/esm/view/spendManagement/reimbursement/remiSetupApproverView/epic/deleteRemiApprovalRuleEpic.js +2 -10
  108. package/lib/esm/view/spendManagement/reimbursement/remiSetupApproverView/epic/fetchRemiSetupApproverViewEpic.js +2 -8
  109. package/lib/esm/view/spendManagement/reimbursement/remiSetupApproverView/epic/initializeRemiSetupApproverViewUpdateDataEpic.js +7 -11
  110. package/lib/esm/view/spendManagement/reimbursement/remiSetupApproverView/epic/saveRemiSetupApproverViewUpdatesEpic.js +4 -13
  111. package/lib/esm/view/spendManagement/reimbursement/remiSetupApproverView/remiSetupApproverViewReducer.js +11 -80
  112. package/lib/index.d.ts +34 -84
  113. package/lib/index.js +35 -267
  114. package/lib/reducer.d.ts +0 -18
  115. package/lib/reducer.js +0 -18
  116. package/lib/view/aiCfoView/aiCfoViewReducer.d.ts +2 -11
  117. package/lib/view/aiCfoView/aiCfoViewReducer.js +3 -6
  118. package/lib/view/aiCfoView/epics/createSessionAndSubmitEpic.js +2 -5
  119. package/lib/view/aiCfoView/epics/createSessionEpic.js +1 -2
  120. package/lib/view/aiCfoView/epics/fetchSuggestedQuestionsEpic.d.ts +1 -8
  121. package/lib/view/aiCfoView/epics/fetchSuggestedQuestionsEpic.js +2 -12
  122. package/lib/view/companyTaskManagerView/companyTaskManagerViewPayload.d.ts +11 -19
  123. package/lib/view/companyTaskManagerView/companyTaskManagerViewReducer.d.ts +5 -11
  124. package/lib/view/companyTaskManagerView/companyTaskManagerViewReducer.js +12 -40
  125. package/lib/view/companyTaskManagerView/companyTaskManagerViewSelector.d.ts +0 -2
  126. package/lib/view/companyTaskManagerView/companyTaskManagerViewSelector.js +3 -13
  127. package/lib/view/companyTaskManagerView/companyTaskManagerViewState.d.ts +3 -11
  128. package/lib/view/companyTaskManagerView/epics/fetchCompanyTaskManagerViewEpic.d.ts +3 -1
  129. package/lib/view/companyTaskManagerView/epics/fetchCompanyTaskManagerViewEpic.js +28 -37
  130. package/lib/view/companyView/companyViewReducer.d.ts +7 -8
  131. package/lib/view/companyView/companyViewReducer.js +11 -12
  132. package/lib/view/companyView/epic/companyPassport/dismissCapitalizationOnboardingEpic.js +5 -5
  133. package/lib/view/companyView/epic/companyPassport/updateCapitalizationThresholdEpic.d.ts +10 -0
  134. package/lib/view/companyView/epic/companyPassport/{updateCapitalizationAccountThresholdEpic.js → updateCapitalizationThresholdEpic.js} +19 -38
  135. package/lib/view/companyView/epic/fetchAllCockpitViewsEpic.js +2 -2
  136. package/lib/view/companyView/types/cockpitTypes.d.ts +2 -3
  137. package/lib/view/expenseAutomationView/helpers/transactionCategorizationLocalDataHelper.d.ts +1 -1
  138. package/lib/view/expenseAutomationView/reducers/transactionsViewReducer.d.ts +1 -1
  139. package/lib/view/expenseAutomationView/selectors/transactionCategorizationSelector.d.ts +1 -1
  140. package/lib/view/expenseAutomationView/selectors/transactionCategorizationSelector.js +1 -1
  141. package/lib/view/expenseAutomationView/types/reconciliationViewState.d.ts +1 -1
  142. package/lib/view/expenseAutomationView/types/transactionsViewState.d.ts +1 -1
  143. package/lib/view/fileView/epic/deleteFileEpic.js +1 -1
  144. package/lib/view/fileView/epic/deleteFileListEpic.js +1 -1
  145. package/lib/view/onboardingView/customerView/epic/customerDetails/updateOnboardingCustomerViewEpic.js +18 -24
  146. package/lib/view/onboardingView/customerView/epic/customerDetails/updateOnboardingCustomerViewLocalStoreDataEpic.d.ts +2 -2
  147. package/lib/view/onboardingView/customerView/epic/customerDetails/updateOnboardingCustomerViewLocalStoreDataEpic.js +15 -27
  148. package/lib/view/onboardingView/customerView/onboardingCustomerViewPayload.d.ts +0 -3
  149. package/lib/view/onboardingView/customerView/onboardingCustomerViewReducer.d.ts +5 -44
  150. package/lib/view/onboardingView/customerView/onboardingCustomerViewReducer.js +52 -225
  151. package/lib/view/onboardingView/customerView/onboardingCustomerViewSelector.d.ts +1 -6
  152. package/lib/view/onboardingView/customerView/onboardingCustomerViewSelector.js +18 -39
  153. package/lib/view/onboardingView/customerView/onboardingCustomerViewState.d.ts +8 -53
  154. package/lib/view/onboardingView/customerView/onboardingCustomerViewState.js +7 -47
  155. package/lib/view/people/peopleTypes.d.ts +1 -1
  156. package/lib/view/scheduleView/scheduleListView/scheduleListTypes.d.ts +1 -1
  157. package/lib/view/settingsView/settingsViewHelpers.js +12 -8
  158. package/lib/view/spendManagement/autotransferRules/autoTransferRulesSelector.d.ts +1 -8
  159. package/lib/view/spendManagement/autotransferRules/autoTransferRulesSelector.js +1 -21
  160. package/lib/view/spendManagement/autotransferRules/autoTransferRulesState.d.ts +0 -22
  161. package/lib/view/spendManagement/billPay/billPayReview/billPayReviewSelector.d.ts +0 -7
  162. package/lib/view/spendManagement/billPay/billPayReview/billPayReviewSelector.js +0 -14
  163. package/lib/view/spendManagement/billPay/billPaySetupApproverView/billPaySetupApproverViewReducer.d.ts +3 -14
  164. package/lib/view/spendManagement/billPay/billPaySetupApproverView/billPaySetupApproverViewReducer.js +13 -110
  165. package/lib/view/spendManagement/billPay/billPaySetupApproverView/billPaySetupApproverViewState.d.ts +0 -16
  166. package/lib/view/spendManagement/billPay/billPaySetupApproverView/epic/deleteBillPayApprovalRuleEpic.js +2 -10
  167. package/lib/view/spendManagement/billPay/billPaySetupApproverView/epic/fetchBillPaySetupApproverViewEpic.js +4 -8
  168. package/lib/view/spendManagement/billPay/billPaySetupApproverView/epic/initializeBillPaySetupApproverViewUpdateDataEpic.js +6 -10
  169. package/lib/view/spendManagement/billPay/billPaySetupApproverView/epic/saveBillPaySetupApproverViewUpdatesEpic.js +3 -12
  170. package/lib/view/spendManagement/billPay/billPaySetupApproverView/types/commonPayload.d.ts +1 -59
  171. package/lib/view/spendManagement/billPay/billPaySetupApproverView/types/commonPayload.js +17 -146
  172. package/lib/view/spendManagement/billPay/billPaySetupApproverView/types/commonState.d.ts +5 -31
  173. package/lib/view/spendManagement/billPay/editBillView/editBillViewSelector.d.ts +1 -8
  174. package/lib/view/spendManagement/billPay/editBillView/editBillViewSelector.js +4 -60
  175. package/lib/view/spendManagement/billPay/editBillView/epics/fetchEditBillDetailPageEpic.js +2 -8
  176. package/lib/view/spendManagement/chargeCards/chargeCardList/chargeCardList.d.ts +1 -1
  177. package/lib/view/spendManagement/chargeCards/chargeCardList/chargeCardListSelector.d.ts +0 -14
  178. package/lib/view/spendManagement/chargeCards/chargeCardList/chargeCardListSelector.js +1 -27
  179. package/lib/view/spendManagement/chargeCards/issueChargeCard/issueChargeCardEpic.d.ts +2 -2
  180. package/lib/view/spendManagement/chargeCards/issueChargeCard/issueChargeCardEpic.js +1 -1
  181. package/lib/view/spendManagement/chargeCards/issueChargeCard/issueChargeCardReducer.d.ts +2 -12
  182. package/lib/view/spendManagement/chargeCards/issueChargeCard/issueChargeCardReducer.js +5 -43
  183. package/lib/view/spendManagement/chargeCards/issueChargeCard/issueChargeCardSelector.d.ts +0 -7
  184. package/lib/view/spendManagement/chargeCards/issueChargeCard/issueChargeCardSelector.js +1 -42
  185. package/lib/view/spendManagement/chargeCards/issueChargeCard/issueChargeCardState.d.ts +0 -5
  186. package/lib/view/spendManagement/commonSetup/setupViewReducer.d.ts +2 -28
  187. package/lib/view/spendManagement/commonSetup/setupViewReducer.js +53 -107
  188. package/lib/view/spendManagement/commonSetup/setupViewSelector.d.ts +2 -7
  189. package/lib/view/spendManagement/commonSetup/setupViewSelector.js +1 -6
  190. package/lib/view/spendManagement/commonSetup/setupViewState.d.ts +0 -19
  191. package/lib/view/spendManagement/reimbursement/editRemiView/epics/fetchEditRemiDetailPageEpic.js +1 -5
  192. package/lib/view/spendManagement/reimbursement/remiSetupApproverView/epic/deleteRemiApprovalRuleEpic.js +2 -10
  193. package/lib/view/spendManagement/reimbursement/remiSetupApproverView/epic/fetchRemiSetupApproverViewEpic.js +2 -8
  194. package/lib/view/spendManagement/reimbursement/remiSetupApproverView/epic/initializeRemiSetupApproverViewUpdateDataEpic.js +6 -10
  195. package/lib/view/spendManagement/reimbursement/remiSetupApproverView/epic/saveRemiSetupApproverViewUpdatesEpic.js +3 -12
  196. package/lib/view/spendManagement/reimbursement/remiSetupApproverView/remiSetupApproverViewReducer.d.ts +3 -14
  197. package/lib/view/spendManagement/reimbursement/remiSetupApproverView/remiSetupApproverViewReducer.js +12 -81
  198. package/lib/view/spendManagement/reimbursement/remiSetupApproverView/remiSetupApproverViewState.d.ts +0 -12
  199. package/lib/view/taskManager/taskListView/taskList.d.ts +3 -3
  200. package/lib/view/taskManager/taskListView/taskListReducer.d.ts +1 -1
  201. package/lib/view/transactionDetail/journalEntryLinesViewModel.d.ts +1 -1
  202. package/lib/zeniAPI.d.ts +0 -1
  203. package/package.json +1 -1
  204. package/lib/entity/approvalRule/approvalRuleConflict.d.ts +0 -56
  205. package/lib/entity/approvalRule/approvalRuleConflict.js +0 -77
  206. package/lib/entity/cardPolicy/cardPolicyPayload.d.ts +0 -277
  207. package/lib/entity/cardPolicy/cardPolicyPayload.js +0 -143
  208. package/lib/entity/cardPolicy/cardPolicyReducer.d.ts +0 -19
  209. package/lib/entity/cardPolicy/cardPolicyReducer.js +0 -175
  210. package/lib/entity/cardPolicy/cardPolicySelector.d.ts +0 -32
  211. package/lib/entity/cardPolicy/cardPolicySelector.js +0 -99
  212. package/lib/entity/cardPolicy/cardPolicyState.d.ts +0 -205
  213. package/lib/entity/cardPolicy/cardPolicyState.js +0 -14
  214. package/lib/entity/cardPolicy/extractPolicyDocumentEpic.d.ts +0 -18
  215. package/lib/entity/cardPolicy/extractPolicyDocumentEpic.js +0 -68
  216. package/lib/entity/cardPolicy/fetchCardPolicyVendorOptionsEpic.d.ts +0 -26
  217. package/lib/entity/cardPolicy/fetchCardPolicyVendorOptionsEpic.js +0 -47
  218. package/lib/entity/cardPolicy/policyDocumentExtractionToRecommendationBridgeEpic.d.ts +0 -25
  219. package/lib/entity/cardPolicy/policyDocumentExtractionToRecommendationBridgeEpic.js +0 -39
  220. package/lib/entity/cardPolicy/policyRecommendationFromUploadEpic.d.ts +0 -24
  221. package/lib/entity/cardPolicy/policyRecommendationFromUploadEpic.js +0 -105
  222. package/lib/entity/tenant/epic/initEmailConnectOAuthEpic.d.ts +0 -21
  223. package/lib/entity/tenant/epic/initEmailConnectOAuthEpic.js +0 -59
  224. package/lib/esm/entity/approvalRule/approvalRuleConflict.js +0 -74
  225. package/lib/esm/entity/cardPolicy/cardPolicyPayload.js +0 -130
  226. package/lib/esm/entity/cardPolicy/cardPolicyReducer.js +0 -171
  227. package/lib/esm/entity/cardPolicy/cardPolicySelector.js +0 -75
  228. package/lib/esm/entity/cardPolicy/cardPolicyState.js +0 -9
  229. package/lib/esm/entity/cardPolicy/extractPolicyDocumentEpic.js +0 -64
  230. package/lib/esm/entity/cardPolicy/fetchCardPolicyVendorOptionsEpic.js +0 -43
  231. package/lib/esm/entity/cardPolicy/policyDocumentExtractionToRecommendationBridgeEpic.js +0 -35
  232. package/lib/esm/entity/cardPolicy/policyRecommendationFromUploadEpic.js +0 -101
  233. package/lib/esm/entity/tenant/epic/initEmailConnectOAuthEpic.js +0 -55
  234. package/lib/esm/view/companyTaskManagerView/epics/fetchCockpitContextEpic.js +0 -38
  235. package/lib/esm/view/companyTaskManagerView/epics/updateCompanyTaskManagerViewFiltersEpic.js +0 -16
  236. package/lib/esm/view/onboardingView/customerView/epic/aiAgentsActivation/fetchAiAgentsActivationStatusEpic.js +0 -40
  237. package/lib/esm/view/onboardingView/customerView/epic/customerDetails/acknowledgeOnboardingAiActivationViewedEpic.js +0 -29
  238. package/lib/esm/view/onboardingView/customerView/epic/customerDetails/acknowledgeOnboardingAiFinanceTeamEpic.js +0 -40
  239. package/lib/esm/view/spendManagement/billPay/billPaySetupApproverView/epic/reorderBillPayApprovalRulesEpic.js +0 -54
  240. package/lib/esm/view/spendManagement/cashManagement/autoSweepFlow/autoSweepFlowPayload.js +0 -29
  241. package/lib/esm/view/spendManagement/cashManagement/autoSweepFlow/autoSweepFlowReducer.js +0 -78
  242. package/lib/esm/view/spendManagement/cashManagement/autoSweepFlow/autoSweepFlowSelector.js +0 -49
  243. package/lib/esm/view/spendManagement/cashManagement/autoSweepFlow/autoSweepFlowState.js +0 -47
  244. package/lib/esm/view/spendManagement/cashManagement/autoSweepFlow/epics/fetchCashManagementSettingsEpic.js +0 -32
  245. package/lib/esm/view/spendManagement/cashManagement/autoSweepFlow/epics/saveAutoSweepSettingsEpic.js +0 -32
  246. package/lib/esm/view/spendManagement/cashManagement/cashManagementOverview/cashManagementOverviewPayload.js +0 -54
  247. package/lib/esm/view/spendManagement/cashManagement/cashManagementOverview/cashManagementOverviewReducer.js +0 -92
  248. package/lib/esm/view/spendManagement/cashManagement/cashManagementOverview/cashManagementOverviewSelector.js +0 -212
  249. package/lib/esm/view/spendManagement/cashManagement/cashManagementOverview/cashManagementOverviewState.js +0 -10
  250. package/lib/esm/view/spendManagement/cashManagement/cashManagementOverview/epics/fetchCashManagementBannerEpic.js +0 -23
  251. package/lib/esm/view/spendManagement/cashManagement/cashManagementOverview/epics/fetchCashManagementOverviewPageEpic.js +0 -36
  252. package/lib/esm/view/spendManagement/cashManagement/cashManagementOverview/epics/fetchCashManagementRecommendationEpic.js +0 -27
  253. package/lib/esm/view/spendManagement/cashManagement/cashManagementOverview/epics/fetchRecentTransferEpic.js +0 -28
  254. package/lib/esm/view/spendManagement/chargeCards/cardPolicy/cardPolicyDetail/cardPolicyDetailReducer.js +0 -52
  255. package/lib/esm/view/spendManagement/chargeCards/cardPolicy/cardPolicyDetail/cardPolicyDetailSelector.js +0 -22
  256. package/lib/esm/view/spendManagement/chargeCards/cardPolicy/cardPolicyDetail/cardPolicyDetailState.js +0 -1
  257. package/lib/esm/view/spendManagement/chargeCards/cardPolicy/cardPolicyDetail/fetchCardPolicyDetailEpic.js +0 -36
  258. package/lib/esm/view/spendManagement/chargeCards/cardPolicy/cardPolicyDetail/updateCardPolicyEpic.js +0 -39
  259. package/lib/esm/view/spendManagement/chargeCards/cardPolicy/cardPolicyList/archiveCardPolicyEpic.js +0 -34
  260. package/lib/esm/view/spendManagement/chargeCards/cardPolicy/cardPolicyList/cardPolicyListReducer.js +0 -71
  261. package/lib/esm/view/spendManagement/chargeCards/cardPolicy/cardPolicyList/cardPolicyListSelector.js +0 -21
  262. package/lib/esm/view/spendManagement/chargeCards/cardPolicy/cardPolicyList/cardPolicyListState.js +0 -1
  263. package/lib/esm/view/spendManagement/chargeCards/cardPolicy/cardPolicyList/fetchCardPolicyListEpic.js +0 -38
  264. package/lib/esm/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/applyAiCardPolicyFormDraftUpdate.js +0 -289
  265. package/lib/esm/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/applyExtractedPolicyToAiCardPolicyDraft.js +0 -109
  266. package/lib/esm/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/applyExtractedPolicyToDraftEpic.js +0 -44
  267. package/lib/esm/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/applyExtractedPolicyToManualCardPolicyDraft.js +0 -111
  268. package/lib/esm/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/applyUploadPlanToAiCardPolicyDraft.js +0 -25
  269. package/lib/esm/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/buildAiCardPolicyFormDraftSeed.js +0 -363
  270. package/lib/esm/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/buildManualCardPolicyFormDraftSeed.js +0 -36
  271. package/lib/esm/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/cardPolicyChipIds.js +0 -19
  272. package/lib/esm/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/cardPolicyFormDraftTypes.js +0 -6
  273. package/lib/esm/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/cardPolicyRequestParts.js +0 -119
  274. package/lib/esm/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/createCardPolicyReducer.js +0 -154
  275. package/lib/esm/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/createCardPolicySelector.js +0 -22
  276. package/lib/esm/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/createCardPolicyState.js +0 -1
  277. package/lib/esm/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/createCardPolicyTemplateEpic.js +0 -49
  278. package/lib/esm/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/deriveAiPolicyReviewRowsFromInputs.js +0 -140
  279. package/lib/esm/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/fetchCardPolicyMccCategoriesEpic.js +0 -20
  280. package/lib/esm/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/seedAiCardPolicyFormDraftEpic.js +0 -100
  281. package/lib/esm/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/toBulkCardPolicyTemplateRequestsFromDraft.js +0 -96
  282. package/lib/esm/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/toCardPolicyTemplateRequestFromDraft.js +0 -59
  283. package/lib/esm/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/toManualCardPolicyTemplateRequestFromDraft.js +0 -24
  284. package/lib/esm/view/spendManagement/chargeCards/issueChargeCard/aiCardCreationFormDraftTypes.js +0 -1
  285. package/lib/esm/view/spendManagement/chargeCards/issueChargeCard/applyAiCardCreationFormDraftUpdate.js +0 -34
  286. package/lib/esm/view/spendManagement/chargeCards/issueChargeCard/buildAiCardCreationFormDraftSeed.js +0 -57
  287. package/lib/esm/view/spendManagement/chargeCards/issueChargeCard/deriveAiCardRowsFromTeams.js +0 -35
  288. package/lib/esm/view/spendManagement/chargeCards/issueChargeCard/seedAiCardCreationFormDraftEpic.js +0 -62
  289. package/lib/esm/view/spendManagement/chargeCards/issueChargeCard/toIssueChargeCardLocalDataFromDraft.js +0 -44
  290. package/lib/esm/view/spendManagement/commonSetup/epic/setup/parseUploadedKybDocumentEpic.js +0 -58
  291. package/lib/esm/view/spendManagement/commonSetup/epic/setup/parseUploadedKycDocumentEpic.js +0 -77
  292. package/lib/esm/view/spendManagement/commonSetup/kycKybAutofillActions.js +0 -14
  293. package/lib/esm/view/spendManagement/commonSetup/kycKybParseMapper.js +0 -221
  294. package/lib/esm/view/spendManagement/commonSetup/types/kycKybAutofill.js +0 -41
  295. package/lib/esm/view/spendManagement/reimbursement/remiSetupApproverView/epic/reorderRemiApprovalRulesEpic.js +0 -61
  296. package/lib/view/companyTaskManagerView/epics/fetchCockpitContextEpic.d.ts +0 -10
  297. package/lib/view/companyTaskManagerView/epics/fetchCockpitContextEpic.js +0 -42
  298. package/lib/view/companyTaskManagerView/epics/updateCompanyTaskManagerViewFiltersEpic.d.ts +0 -6
  299. package/lib/view/companyTaskManagerView/epics/updateCompanyTaskManagerViewFiltersEpic.js +0 -20
  300. package/lib/view/companyView/epic/companyPassport/updateCapitalizationAccountThresholdEpic.d.ts +0 -10
  301. package/lib/view/onboardingView/customerView/epic/aiAgentsActivation/fetchAiAgentsActivationStatusEpic.d.ts +0 -7
  302. package/lib/view/onboardingView/customerView/epic/aiAgentsActivation/fetchAiAgentsActivationStatusEpic.js +0 -44
  303. package/lib/view/onboardingView/customerView/epic/customerDetails/acknowledgeOnboardingAiActivationViewedEpic.d.ts +0 -8
  304. package/lib/view/onboardingView/customerView/epic/customerDetails/acknowledgeOnboardingAiActivationViewedEpic.js +0 -33
  305. package/lib/view/onboardingView/customerView/epic/customerDetails/acknowledgeOnboardingAiFinanceTeamEpic.d.ts +0 -9
  306. package/lib/view/onboardingView/customerView/epic/customerDetails/acknowledgeOnboardingAiFinanceTeamEpic.js +0 -44
  307. package/lib/view/spendManagement/billPay/billPaySetupApproverView/epic/reorderBillPayApprovalRulesEpic.d.ts +0 -23
  308. package/lib/view/spendManagement/billPay/billPaySetupApproverView/epic/reorderBillPayApprovalRulesEpic.js +0 -58
  309. package/lib/view/spendManagement/cashManagement/autoSweepFlow/autoSweepFlowPayload.d.ts +0 -47
  310. package/lib/view/spendManagement/cashManagement/autoSweepFlow/autoSweepFlowPayload.js +0 -34
  311. package/lib/view/spendManagement/cashManagement/autoSweepFlow/autoSweepFlowReducer.d.ts +0 -23
  312. package/lib/view/spendManagement/cashManagement/autoSweepFlow/autoSweepFlowReducer.js +0 -82
  313. package/lib/view/spendManagement/cashManagement/autoSweepFlow/autoSweepFlowSelector.d.ts +0 -40
  314. package/lib/view/spendManagement/cashManagement/autoSweepFlow/autoSweepFlowSelector.js +0 -53
  315. package/lib/view/spendManagement/cashManagement/autoSweepFlow/autoSweepFlowState.d.ts +0 -37
  316. package/lib/view/spendManagement/cashManagement/autoSweepFlow/autoSweepFlowState.js +0 -53
  317. package/lib/view/spendManagement/cashManagement/autoSweepFlow/epics/fetchCashManagementSettingsEpic.d.ts +0 -14
  318. package/lib/view/spendManagement/cashManagement/autoSweepFlow/epics/fetchCashManagementSettingsEpic.js +0 -36
  319. package/lib/view/spendManagement/cashManagement/autoSweepFlow/epics/saveAutoSweepSettingsEpic.d.ts +0 -7
  320. package/lib/view/spendManagement/cashManagement/autoSweepFlow/epics/saveAutoSweepSettingsEpic.js +0 -36
  321. package/lib/view/spendManagement/cashManagement/cashManagementOverview/cashManagementOverviewPayload.d.ts +0 -56
  322. package/lib/view/spendManagement/cashManagement/cashManagementOverview/cashManagementOverviewPayload.js +0 -60
  323. package/lib/view/spendManagement/cashManagement/cashManagementOverview/cashManagementOverviewReducer.d.ts +0 -22
  324. package/lib/view/spendManagement/cashManagement/cashManagementOverview/cashManagementOverviewReducer.js +0 -96
  325. package/lib/view/spendManagement/cashManagement/cashManagementOverview/cashManagementOverviewSelector.d.ts +0 -59
  326. package/lib/view/spendManagement/cashManagement/cashManagementOverview/cashManagementOverviewSelector.js +0 -217
  327. package/lib/view/spendManagement/cashManagement/cashManagementOverview/cashManagementOverviewState.d.ts +0 -122
  328. package/lib/view/spendManagement/cashManagement/cashManagementOverview/cashManagementOverviewState.js +0 -13
  329. package/lib/view/spendManagement/cashManagement/cashManagementOverview/epics/fetchCashManagementBannerEpic.d.ts +0 -7
  330. package/lib/view/spendManagement/cashManagement/cashManagementOverview/epics/fetchCashManagementBannerEpic.js +0 -27
  331. package/lib/view/spendManagement/cashManagement/cashManagementOverview/epics/fetchCashManagementOverviewPageEpic.d.ts +0 -9
  332. package/lib/view/spendManagement/cashManagement/cashManagementOverview/epics/fetchCashManagementOverviewPageEpic.js +0 -40
  333. package/lib/view/spendManagement/cashManagement/cashManagementOverview/epics/fetchCashManagementRecommendationEpic.d.ts +0 -7
  334. package/lib/view/spendManagement/cashManagement/cashManagementOverview/epics/fetchCashManagementRecommendationEpic.js +0 -31
  335. package/lib/view/spendManagement/cashManagement/cashManagementOverview/epics/fetchRecentTransferEpic.d.ts +0 -15
  336. package/lib/view/spendManagement/cashManagement/cashManagementOverview/epics/fetchRecentTransferEpic.js +0 -32
  337. package/lib/view/spendManagement/chargeCards/cardPolicy/cardPolicyDetail/cardPolicyDetailReducer.d.ts +0 -14
  338. package/lib/view/spendManagement/chargeCards/cardPolicy/cardPolicyDetail/cardPolicyDetailReducer.js +0 -56
  339. package/lib/view/spendManagement/chargeCards/cardPolicy/cardPolicyDetail/cardPolicyDetailSelector.d.ts +0 -15
  340. package/lib/view/spendManagement/chargeCards/cardPolicy/cardPolicyDetail/cardPolicyDetailSelector.js +0 -28
  341. package/lib/view/spendManagement/chargeCards/cardPolicy/cardPolicyDetail/cardPolicyDetailState.d.ts +0 -8
  342. package/lib/view/spendManagement/chargeCards/cardPolicy/cardPolicyDetail/cardPolicyDetailState.js +0 -2
  343. package/lib/view/spendManagement/chargeCards/cardPolicy/cardPolicyDetail/fetchCardPolicyDetailEpic.d.ts +0 -8
  344. package/lib/view/spendManagement/chargeCards/cardPolicy/cardPolicyDetail/fetchCardPolicyDetailEpic.js +0 -40
  345. package/lib/view/spendManagement/chargeCards/cardPolicy/cardPolicyDetail/updateCardPolicyEpic.d.ts +0 -8
  346. package/lib/view/spendManagement/chargeCards/cardPolicy/cardPolicyDetail/updateCardPolicyEpic.js +0 -43
  347. package/lib/view/spendManagement/chargeCards/cardPolicy/cardPolicyList/archiveCardPolicyEpic.d.ts +0 -8
  348. package/lib/view/spendManagement/chargeCards/cardPolicy/cardPolicyList/archiveCardPolicyEpic.js +0 -38
  349. package/lib/view/spendManagement/chargeCards/cardPolicy/cardPolicyList/cardPolicyListReducer.d.ts +0 -15
  350. package/lib/view/spendManagement/chargeCards/cardPolicy/cardPolicyList/cardPolicyListReducer.js +0 -75
  351. package/lib/view/spendManagement/chargeCards/cardPolicy/cardPolicyList/cardPolicyListSelector.d.ts +0 -15
  352. package/lib/view/spendManagement/chargeCards/cardPolicy/cardPolicyList/cardPolicyListSelector.js +0 -27
  353. package/lib/view/spendManagement/chargeCards/cardPolicy/cardPolicyList/cardPolicyListState.d.ts +0 -7
  354. package/lib/view/spendManagement/chargeCards/cardPolicy/cardPolicyList/cardPolicyListState.js +0 -2
  355. package/lib/view/spendManagement/chargeCards/cardPolicy/cardPolicyList/fetchCardPolicyListEpic.d.ts +0 -8
  356. package/lib/view/spendManagement/chargeCards/cardPolicy/cardPolicyList/fetchCardPolicyListEpic.js +0 -42
  357. package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/applyAiCardPolicyFormDraftUpdate.d.ts +0 -8
  358. package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/applyAiCardPolicyFormDraftUpdate.js +0 -294
  359. package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/applyExtractedPolicyToAiCardPolicyDraft.d.ts +0 -8
  360. package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/applyExtractedPolicyToAiCardPolicyDraft.js +0 -113
  361. package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/applyExtractedPolicyToDraftEpic.d.ts +0 -9
  362. package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/applyExtractedPolicyToDraftEpic.js +0 -48
  363. package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/applyExtractedPolicyToManualCardPolicyDraft.d.ts +0 -8
  364. package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/applyExtractedPolicyToManualCardPolicyDraft.js +0 -115
  365. package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/applyUploadPlanToAiCardPolicyDraft.d.ts +0 -13
  366. package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/applyUploadPlanToAiCardPolicyDraft.js +0 -29
  367. package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/buildAiCardPolicyFormDraftSeed.d.ts +0 -14
  368. package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/buildAiCardPolicyFormDraftSeed.js +0 -369
  369. package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/buildManualCardPolicyFormDraftSeed.d.ts +0 -6
  370. package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/buildManualCardPolicyFormDraftSeed.js +0 -40
  371. package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/cardPolicyChipIds.d.ts +0 -7
  372. package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/cardPolicyChipIds.js +0 -26
  373. package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/cardPolicyFormDraftTypes.d.ts +0 -116
  374. package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/cardPolicyFormDraftTypes.js +0 -10
  375. package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/cardPolicyRequestParts.d.ts +0 -33
  376. package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/cardPolicyRequestParts.js +0 -126
  377. package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/createCardPolicyReducer.d.ts +0 -52
  378. package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/createCardPolicyReducer.js +0 -158
  379. package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/createCardPolicySelector.d.ts +0 -11
  380. package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/createCardPolicySelector.js +0 -31
  381. package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/createCardPolicyState.d.ts +0 -12
  382. package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/createCardPolicyState.js +0 -2
  383. package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/createCardPolicyTemplateEpic.d.ts +0 -9
  384. package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/createCardPolicyTemplateEpic.js +0 -53
  385. package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/deriveAiPolicyReviewRowsFromInputs.d.ts +0 -10
  386. package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/deriveAiPolicyReviewRowsFromInputs.js +0 -144
  387. package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/fetchCardPolicyMccCategoriesEpic.d.ts +0 -7
  388. package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/fetchCardPolicyMccCategoriesEpic.js +0 -24
  389. package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/seedAiCardPolicyFormDraftEpic.d.ts +0 -11
  390. package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/seedAiCardPolicyFormDraftEpic.js +0 -104
  391. package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/toBulkCardPolicyTemplateRequestsFromDraft.d.ts +0 -22
  392. package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/toBulkCardPolicyTemplateRequestsFromDraft.js +0 -100
  393. package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/toCardPolicyTemplateRequestFromDraft.d.ts +0 -8
  394. package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/toCardPolicyTemplateRequestFromDraft.js +0 -63
  395. package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/toManualCardPolicyTemplateRequestFromDraft.d.ts +0 -3
  396. package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/toManualCardPolicyTemplateRequestFromDraft.js +0 -28
  397. package/lib/view/spendManagement/chargeCards/issueChargeCard/aiCardCreationFormDraftTypes.d.ts +0 -34
  398. package/lib/view/spendManagement/chargeCards/issueChargeCard/aiCardCreationFormDraftTypes.js +0 -2
  399. package/lib/view/spendManagement/chargeCards/issueChargeCard/applyAiCardCreationFormDraftUpdate.d.ts +0 -7
  400. package/lib/view/spendManagement/chargeCards/issueChargeCard/applyAiCardCreationFormDraftUpdate.js +0 -38
  401. package/lib/view/spendManagement/chargeCards/issueChargeCard/buildAiCardCreationFormDraftSeed.d.ts +0 -12
  402. package/lib/view/spendManagement/chargeCards/issueChargeCard/buildAiCardCreationFormDraftSeed.js +0 -61
  403. package/lib/view/spendManagement/chargeCards/issueChargeCard/deriveAiCardRowsFromTeams.d.ts +0 -9
  404. package/lib/view/spendManagement/chargeCards/issueChargeCard/deriveAiCardRowsFromTeams.js +0 -39
  405. package/lib/view/spendManagement/chargeCards/issueChargeCard/seedAiCardCreationFormDraftEpic.d.ts +0 -11
  406. package/lib/view/spendManagement/chargeCards/issueChargeCard/seedAiCardCreationFormDraftEpic.js +0 -66
  407. package/lib/view/spendManagement/chargeCards/issueChargeCard/toIssueChargeCardLocalDataFromDraft.d.ts +0 -3
  408. package/lib/view/spendManagement/chargeCards/issueChargeCard/toIssueChargeCardLocalDataFromDraft.js +0 -48
  409. package/lib/view/spendManagement/commonSetup/epic/setup/parseUploadedKybDocumentEpic.d.ts +0 -28
  410. package/lib/view/spendManagement/commonSetup/epic/setup/parseUploadedKybDocumentEpic.js +0 -62
  411. package/lib/view/spendManagement/commonSetup/epic/setup/parseUploadedKycDocumentEpic.d.ts +0 -9
  412. package/lib/view/spendManagement/commonSetup/epic/setup/parseUploadedKycDocumentEpic.js +0 -81
  413. package/lib/view/spendManagement/commonSetup/kycKybAutofillActions.d.ts +0 -24
  414. package/lib/view/spendManagement/commonSetup/kycKybAutofillActions.js +0 -17
  415. package/lib/view/spendManagement/commonSetup/kycKybParseMapper.d.ts +0 -29
  416. package/lib/view/spendManagement/commonSetup/kycKybParseMapper.js +0 -229
  417. package/lib/view/spendManagement/commonSetup/types/kycKybAutofill.d.ts +0 -154
  418. package/lib/view/spendManagement/commonSetup/types/kycKybAutofill.js +0 -46
  419. package/lib/view/spendManagement/reimbursement/remiSetupApproverView/epic/reorderRemiApprovalRulesEpic.d.ts +0 -14
  420. package/lib/view/spendManagement/reimbursement/remiSetupApproverView/epic/reorderRemiApprovalRulesEpic.js +0 -65
@@ -10,20 +10,8 @@ export interface RemiSetupApproverViewState extends FetchedState {
10
10
  fetchStatus: FetchStateAndError;
11
11
  attributeSubTypeToUserIdMapping?: Record<AttributeType, ID>;
12
12
  };
13
- /**
14
- * List-page reorder PUT status. See BillPay equivalent for the
15
- * longer rationale.
16
- */
17
- reorderStatus: FetchStateAndError;
18
13
  affectedEntityIds?: ID[];
19
14
  listeningToPusherEvent?: boolean;
20
15
  newApprovalRuleId?: ID;
21
16
  remiSetupApproverViewUpdateData?: ApproverViewUpdateData;
22
- /**
23
- * Pre-reorder snapshot of 'approvalRuleIds'. Stashed on the trigger
24
- * reducer right before the optimistic mutation and consumed on
25
- * Failure to restore the previous order without waiting for the
26
- * epic's safety-net refetch. Cleared on Success.
27
- */
28
- reorderRollbackIds?: ID[];
29
17
  }
@@ -50,15 +50,15 @@ export interface TaskFilterCategory {
50
50
  }
51
51
  export type TaskListFilterCategoryField = 'status' | 'dueDate' | 'assignee' | 'creationDate' | 'priority' | 'tag';
52
52
  export declare const TASK_LIST_GROUP_BY_KEYS: readonly ["groupName", "status", "dueDate", "assignee", "priority", "tag"];
53
- export declare const toTaskListGroupByKeyType: (v: string) => "status" | "priority" | "dueDate" | "groupName" | "tag" | "assignee";
54
- export declare const toTaskListGroupByKeyTypeStrict: (v: string) => "status" | "priority" | "dueDate" | "groupName" | "tag" | "assignee" | undefined;
53
+ export declare const toTaskListGroupByKeyType: (v: string) => "status" | "dueDate" | "groupName" | "tag" | "priority" | "assignee";
54
+ export declare const toTaskListGroupByKeyTypeStrict: (v: string) => "status" | "dueDate" | "groupName" | "tag" | "priority" | "assignee" | undefined;
55
55
  export declare type TaskGroupKey = ReturnType<typeof toTaskListGroupByKeyType>;
56
56
  export interface TaskListUIState extends SpendManagementUIState {
57
57
  groupByKey: TaskGroupKey;
58
58
  searchText: string;
59
59
  sortKey: TaskListViewSortKey;
60
60
  }
61
- declare const toTaskListSortKeyType: (v: string) => "status" | "name" | "priority" | "dueDate" | "tag" | "timeSpent" | "assignee" | "creationDate" | "visibility";
61
+ declare const toTaskListSortKeyType: (v: string) => "status" | "name" | "dueDate" | "tag" | "priority" | "timeSpent" | "assignee" | "creationDate" | "visibility";
62
62
  export declare type TaskListViewSortKey = ReturnType<typeof toTaskListSortKeyType>;
63
63
  export declare const TASK_LIST_FILTER_CATEGORIES: TaskListFilterCategoryOption[];
64
64
  interface TaskListFilterCategoryOption {
@@ -14,7 +14,7 @@ export declare const fetchTaskListPage: import("@reduxjs/toolkit").ActionCreator
14
14
  archived?: TaskPayload[];
15
15
  deleted?: TaskPayload[];
16
16
  snoozed?: TaskPayload[];
17
- }, "taskList/updateTaskList">, updateTaskListTab: import("@reduxjs/toolkit").ActionCreatorWithPayload<"deleted" | "archived" | "live" | "snoozed", "taskList/updateTaskListTab">, updateTaskListFetchStatus: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
17
+ }, "taskList/updateTaskList">, updateTaskListTab: import("@reduxjs/toolkit").ActionCreatorWithPayload<"deleted" | "live" | "archived" | "snoozed", "taskList/updateTaskListTab">, updateTaskListFetchStatus: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
18
18
  fetchState: FetchState;
19
19
  error?: ZeniAPIStatus;
20
20
  }, "taskList/updateTaskListFetchStatus">, updateTaskListSearchText: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
@@ -8,7 +8,7 @@ import { JournalEntryTransactionLine, Line, TransactionLineBase } from '../../en
8
8
  * is testable and reusable.
9
9
  */
10
10
  export declare const JOURNAL_ENTRY_SORT_KEYS: readonly ["description", "name", "category", "class", "debit", "credit"];
11
- export declare const toJournalEntrySortKey: (v: string) => "category" | "class" | "description" | "name" | "credit" | "debit";
11
+ export declare const toJournalEntrySortKey: (v: string) => "name" | "description" | "category" | "class" | "credit" | "debit";
12
12
  export type JournalEntrySortKey = ReturnType<typeof toJournalEntrySortKey>;
13
13
  export interface JournalEntryRowSortConfig {
14
14
  sortKey: JournalEntrySortKey;
package/lib/zeniAPI.d.ts CHANGED
@@ -10,7 +10,6 @@ export interface RESTAPIEndpoints {
10
10
  readonly authMicroServiceBaseUrl: string;
11
11
  readonly bankingMicroServiceBaseUrl: string;
12
12
  readonly cardMicroServiceBaseUrl: string;
13
- readonly cashManagementAgentBaseUrl: string;
14
13
  readonly communicationAgentMicroServiceBaseUrl: string;
15
14
  readonly documentAIMicroServiceBaseUrl: string;
16
15
  readonly fileMicroServiceBaseUrl: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zeniai/client-epic-state",
3
- "version": "5.1.8",
3
+ "version": "5.1.10",
4
4
  "description": "Shared module between Web & Mobile containing required abstractions for state management, async network communication. ",
5
5
  "main": "lib/index.js",
6
6
  "module": "lib/esm/index.js",
@@ -1,56 +0,0 @@
1
- import { ID } from '../../commonStateTypes/common';
2
- import { ApprovalRule, Criteria } from './approvalRuleState';
3
- /**
4
- * Approval Rules 3.0 — frontend overlap detection.
5
- *
6
- * Per product spec, two rules overlap iff:
7
- * 1. Their vendor criteria are exactly equal (same operator and
8
- * the same set of vendor IDs, or both absent), AND
9
- * 2. Their department criteria are exactly equal (same shape), AND
10
- * 3. Their amount intervals intersect.
11
- *
12
- * The intuition: we only flag overlap when the non-amount criteria
13
- * are identical, because the typical mistake is "I tried to create a
14
- * second rule for the same vendor / department slice at a different
15
- * amount threshold and forgot the existing one". Subset / superset
16
- * overlaps (e.g. one rule has a department condition and the other
17
- * does not) are intentionally not flagged in this iteration.
18
- *
19
- * Amount intervals are:
20
- * - greater_than(N) → [N, +∞)
21
- * - less_than(N) → (-∞, N]
22
- * - range(min, max) → [min, max]
23
- * - amount absent → (-∞, +∞)
24
- *
25
- * Two intervals overlap iff max(lo) <= min(hi).
26
- *
27
- * Exclusions from the comparison pool:
28
- * - The rule being edited (caller passes `excludeRuleId`).
29
- * - Fallback rules — they are a separate concept (match-all-others)
30
- * and not subject to the per-criteria overlap check.
31
- *
32
- * Callers should filter `existingRules` to the relevant entityType
33
- * (BillPay vs Reimbursement) before passing — the function does not
34
- * cross-check entityType.
35
- *
36
- * Pure function: no side effects, deterministic. Returns the list of
37
- * overlapping rules. Empty list means no overlap.
38
- */
39
- /**
40
- * Structural shape of a rule the algorithm needs. The detector only
41
- * reads `criteria`, `isFallback`, and `approvalRuleId`; it never
42
- * touches `steps`, so callers may pass any 'ApprovalRule' subtype
43
- * (e.g. `ApprovalRuleWithUser`) and we keep the richer type in the
44
- * output.
45
- */
46
- export type RuleForOverlapCheck = Pick<ApprovalRule, 'approvalRuleId' | 'criteria' | 'isFallback'>;
47
- export interface RuleOverlap<TRule extends RuleForOverlapCheck = ApprovalRule> {
48
- conflictingRule: TRule;
49
- }
50
- export interface DetectRuleOverlapInput<TRule extends RuleForOverlapCheck = ApprovalRule> {
51
- candidateCriteria: Criteria[];
52
- existingRules: TRule[];
53
- /** When editing an existing rule, exclude it from the comparison. */
54
- excludeRuleId?: ID;
55
- }
56
- export declare function detectRuleOverlap<TRule extends RuleForOverlapCheck>({ candidateCriteria, existingRules, excludeRuleId, }: DetectRuleOverlapInput<TRule>): RuleOverlap<TRule>[];
@@ -1,77 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.detectRuleOverlap = detectRuleOverlap;
4
- function detectRuleOverlap({ candidateCriteria, existingRules, excludeRuleId, }) {
5
- const candidateAmount = pickAmount(candidateCriteria);
6
- const candidateVendor = pickVendor(candidateCriteria);
7
- const candidateDepartment = pickDepartment(candidateCriteria);
8
- const overlaps = [];
9
- for (const rule of existingRules) {
10
- if (rule.approvalRuleId === excludeRuleId) {
11
- continue;
12
- }
13
- if (rule.isFallback === true) {
14
- continue;
15
- }
16
- const ruleVendor = pickVendor(rule.criteria);
17
- const ruleDepartment = pickDepartment(rule.criteria);
18
- if (!areVendorCriteriaEqual(candidateVendor, ruleVendor)) {
19
- continue;
20
- }
21
- if (!areDepartmentCriteriaEqual(candidateDepartment, ruleDepartment)) {
22
- continue;
23
- }
24
- const ruleAmount = pickAmount(rule.criteria);
25
- if (amountsOverlap(candidateAmount, ruleAmount)) {
26
- overlaps.push({ conflictingRule: rule });
27
- }
28
- }
29
- return overlaps;
30
- }
31
- const pickAmount = (criteria) => criteria.find((c) => c.type === 'amount');
32
- const pickVendor = (criteria) => criteria.find((c) => c.type === 'vendor');
33
- const pickDepartment = (criteria) => criteria.find((c) => c.type === 'department');
34
- const areVendorCriteriaEqual = (a, b) => {
35
- if (a == null && b == null) {
36
- return true;
37
- }
38
- if (a == null || b == null) {
39
- return false;
40
- }
41
- if (a.operator !== b.operator) {
42
- return false;
43
- }
44
- return idsEqual(a.vendorIds, b.vendorIds);
45
- };
46
- const areDepartmentCriteriaEqual = (a, b) => {
47
- if (a == null && b == null) {
48
- return true;
49
- }
50
- if (a == null || b == null) {
51
- return false;
52
- }
53
- if (a.operator !== b.operator) {
54
- return false;
55
- }
56
- return idsEqual(a.departmentIds, b.departmentIds);
57
- };
58
- const idsEqual = (a, b) => {
59
- if (a.length !== b.length) {
60
- return false;
61
- }
62
- const aSorted = [...a].sort();
63
- const bSorted = [...b].sort();
64
- return aSorted.every((id, i) => id === bSorted[i]);
65
- };
66
- const amountsOverlap = (a, b) => {
67
- // Absent amount criteria covers the whole real line, so any
68
- // pairing involving an absent one is a guaranteed overlap.
69
- if (a == null || b == null) {
70
- return true;
71
- }
72
- const aLow = a.min?.amount ?? Number.NEGATIVE_INFINITY;
73
- const aHigh = a.max?.amount ?? Number.POSITIVE_INFINITY;
74
- const bLow = b.min?.amount ?? Number.NEGATIVE_INFINITY;
75
- const bHigh = b.max?.amount ?? Number.POSITIVE_INFINITY;
76
- return Math.max(aLow, bLow) <= Math.min(aHigh, bHigh);
77
- };
@@ -1,277 +0,0 @@
1
- import { ID } from '../../commonStateTypes/common';
2
- import { ZeniAPIResponse } from '../../responsePayload';
3
- import { CardPolicyStats, CardPolicyTemplate, CardPolicyTemplateEntityList, CardPolicyTemplateMode, CardPolicyTemplateSpendLimits, ExtractedCardPolicyRules, MccCategory } from './cardPolicyState';
4
- export interface MccCategoryPayload {
5
- count: number;
6
- mcc_codes: string[];
7
- name: string;
8
- }
9
- /**
10
- * Wire shape for `GET /cards/1.0/cards/mcc-codes`. Beyond the universe of
11
- * MCC categories used to populate the category search dropdown, the
12
- * endpoint also ships **suggested** allow / block merchants and categories
13
- * that the chip-pickers seed into their cloud body before the user starts
14
- * editing.
15
- *
16
- * Field spellings (`*_catagories`) preserve the BE wire format verbatim;
17
- * the camelCase mapper below corrects to `Categories`.
18
- */
19
- export interface CardPolicyMccCategoriesPayload {
20
- categories: MccCategoryPayload[];
21
- suggested_allow_catagories?: MccCategoryPayload[];
22
- suggested_allow_merchants?: string[];
23
- suggested_block_catagories?: MccCategoryPayload[];
24
- suggested_block_merchants?: string[];
25
- }
26
- export type CardPolicyMccCategoriesResponse = ZeniAPIResponse<CardPolicyMccCategoriesPayload>;
27
- export declare const toMccCategory: (payload: MccCategoryPayload) => MccCategory;
28
- /**
29
- * Vendor row returned by `/accounting/1.0/vendors`. The card-policy
30
- * vendor search dropdown only needs `vendor_id` + `vendor_name`; we
31
- * deliberately ignore the rest of the payload to keep this slice
32
- * independent of the heavy `vendor` entity store.
33
- */
34
- export interface CardPolicyVendorSearchVendorPayload {
35
- vendor_id: string;
36
- vendor_name: string;
37
- }
38
- export interface CardPolicyVendorSearchData {
39
- vendors: CardPolicyVendorSearchVendorPayload[];
40
- }
41
- export type CardPolicyVendorSearchResponse = ZeniAPIResponse<CardPolicyVendorSearchData>;
42
- export interface CardPolicyVendorSearchOption {
43
- name: string;
44
- vendorId: string;
45
- }
46
- export declare const toCardPolicyVendorSearchOption: (payload: CardPolicyVendorSearchVendorPayload) => CardPolicyVendorSearchOption;
47
- interface CardPolicyTemplateEntityListPayload {
48
- category_codes: string[];
49
- merchant_names: string[];
50
- }
51
- interface CardPolicyTemplateSpendLimitsPayload {
52
- transaction: number | null;
53
- }
54
- /**
55
- * Per-template request shape. `POST /cards/1.0/policy-templates` now
56
- * accepts a bulk wrapper (`CreateCardPolicyTemplatesRequest`); this
57
- * interface describes a single entry inside the `templates` array.
58
- *
59
- * `PUT /cards/1.0/policy-templates/{id}` (update) still consumes this
60
- * shape directly — see `UpdateCardPolicyTemplateRequest` below.
61
- */
62
- export interface CreateCardPolicyTemplateRequest {
63
- allowedEntity: CardPolicyTemplateEntityList;
64
- applyToCards: ID[];
65
- blockedEntity: CardPolicyTemplateEntityList;
66
- description: string;
67
- mode: CardPolicyTemplateMode;
68
- name: string;
69
- /**
70
- * `null` indicates the require-receipt toggle is off (no threshold
71
- * configured). The BE accepts `null` and treats it as "no requirement";
72
- * `0` means the user explicitly entered zero with the toggle on.
73
- */
74
- requiredReceiptThreshold: number | null;
75
- spendLimits: CardPolicyTemplateSpendLimits;
76
- }
77
- export interface CreateCardPolicyTemplateRequestBody {
78
- allowed_entity: CardPolicyTemplateEntityListPayload;
79
- apply_to_cards: ID[];
80
- blocked_entity: CardPolicyTemplateEntityListPayload;
81
- description: string;
82
- mode: string;
83
- name: string;
84
- required_receipt_threshold: number | null;
85
- spend_limits: CardPolicyTemplateSpendLimitsPayload;
86
- }
87
- /**
88
- * Bulk request for `POST /cards/1.0/policy-templates`. The single-policy
89
- * create flow wraps its one request in a length-1 `templates` array;
90
- * future multi-policy submit (AI CFO review step) sends N entries in a
91
- * single round-trip.
92
- *
93
- * `sourceChatSessionId` ties the submit back to an AI CFO chat session so
94
- * the BE can attribute the created templates to it. Manual create-page
95
- * callers omit it.
96
- */
97
- export interface CreateCardPolicyTemplatesRequest {
98
- templates: CreateCardPolicyTemplateRequest[];
99
- sourceChatSessionId?: string;
100
- }
101
- export interface CreateCardPolicyTemplatesRequestBody {
102
- templates: CreateCardPolicyTemplateRequestBody[];
103
- source_chat_session_id?: string;
104
- }
105
- export interface CardPolicyTemplatePayload {
106
- allowed_entity: CardPolicyTemplateEntityListPayload;
107
- applied_cards: ID[];
108
- blocked_entity: CardPolicyTemplateEntityListPayload;
109
- cards_count: number;
110
- category_restrictions: unknown[];
111
- created_at: string;
112
- created_by: ID;
113
- description: string;
114
- mode: string;
115
- name: string;
116
- required_receipt_threshold: number | null;
117
- spend_limits: CardPolicyTemplateSpendLimitsPayload;
118
- status: string;
119
- template_id: ID;
120
- tenant_id: ID;
121
- updated_at: string;
122
- }
123
- /**
124
- * Per-template response envelope. Still returned by `PUT /policy-templates/{id}`,
125
- * `GET /policy-templates/{id}`, and (as the row payload) the list endpoint.
126
- * Also nested inside `CreateCardPolicyTemplatesResponseData.templates_created`.
127
- */
128
- export interface CreateCardPolicyTemplateResponseData {
129
- cards_applied: number;
130
- template: CardPolicyTemplatePayload;
131
- }
132
- export type CreateCardPolicyTemplateResponse = ZeniAPIResponse<CreateCardPolicyTemplateResponseData>;
133
- /**
134
- * Per-item error returned by the bulk POST when one or more templates in
135
- * the request fail validation / persistence. The exact field shape is
136
- * **TBD** with the BE — `message` is the only guaranteed field today; the
137
- * rest are best-effort placeholders that callers should not assume to be
138
- * present.
139
- *
140
- * TODO: lock down the shape (`index`, `name`, `code`) once the BE
141
- * documents it. See plan §"Open question to resolve with BE".
142
- */
143
- export interface BulkCreateCardPolicyTemplateErrorPayload {
144
- message: string;
145
- code?: string;
146
- index?: number;
147
- name?: string;
148
- }
149
- /**
150
- * Wire shape returned by the bulk `POST /cards/1.0/policy-templates`.
151
- * Partial success is allowed — `templates_created` holds the successfully
152
- * created rows (each in the same envelope as the single endpoint), and
153
- * `errors` holds per-item failures for the rest. `status.message` follows
154
- * the "N of M templates created" convention.
155
- */
156
- export interface CreateCardPolicyTemplatesResponseData {
157
- errors: BulkCreateCardPolicyTemplateErrorPayload[];
158
- templates_created: CreateCardPolicyTemplateResponseData[];
159
- }
160
- export type CreateCardPolicyTemplatesResponse = ZeniAPIResponse<CreateCardPolicyTemplatesResponseData>;
161
- /**
162
- * Camel-cased mirror of `BulkCreateCardPolicyTemplateErrorPayload` stored
163
- * on the create-card-policy view slice so the UI can render a partial-success
164
- * banner without re-touching the wire types.
165
- */
166
- export interface BulkCreateCardPolicyTemplateError {
167
- message: string;
168
- code?: string;
169
- index?: number;
170
- name?: string;
171
- }
172
- export type UpdateCardPolicyTemplateRequest = CreateCardPolicyTemplateRequest;
173
- export type UpdateCardPolicyTemplateRequestBody = CreateCardPolicyTemplateRequestBody;
174
- export type UpdateCardPolicyTemplateResponseData = CreateCardPolicyTemplateResponseData;
175
- export type UpdateCardPolicyTemplateResponse = CreateCardPolicyTemplateResponse;
176
- export type CardPolicyDetailResponseData = CreateCardPolicyTemplateResponseData;
177
- export type CardPolicyDetailResponse = CreateCardPolicyTemplateResponse;
178
- /**
179
- * Aggregate counters returned alongside the templates list. Stored on
180
- * the entity slice (alongside `cardPolicyTemplateById`) so any list
181
- * surface can read it without re-fetching.
182
- */
183
- export interface CardPolicyStatsPayload {
184
- active_policies: number;
185
- total_cards: number;
186
- total_templates: number;
187
- }
188
- /**
189
- * Each list row is wrapped in the same `{cards_applied, template}`
190
- * envelope the create endpoint returns. Only the `template` portion is
191
- * stored on the entity slice; `cards_applied` is a one-shot summary
192
- * carried over from create and not surfaced in the list state today.
193
- */
194
- export interface CardPolicyListRowPayload {
195
- data: CreateCardPolicyTemplateResponseData;
196
- }
197
- export interface ListCardPolicyTemplatesResponseData {
198
- stats: CardPolicyStatsPayload;
199
- templates: CardPolicyListRowPayload[];
200
- }
201
- export type ListCardPolicyTemplatesResponse = ZeniAPIResponse<ListCardPolicyTemplatesResponseData>;
202
- export declare const toCardPolicyStats: (payload: CardPolicyStatsPayload) => CardPolicyStats;
203
- export declare const toCardPolicyTemplateList: (data: ListCardPolicyTemplatesResponseData) => CardPolicyTemplate[];
204
- export declare const toCardPolicyTemplate: (payload: CardPolicyTemplatePayload) => CardPolicyTemplate;
205
- /**
206
- * Re-shape a single camelCase create request into the snake_case wire
207
- * body. Used by the bulk-create mapper to build each entry of the
208
- * `templates` array, and directly by the update epic (PUT) since the
209
- * update endpoint still consumes a single object.
210
- */
211
- export declare const toCreateCardPolicyTemplateRequestBody: (request: CreateCardPolicyTemplateRequest) => CreateCardPolicyTemplateRequestBody;
212
- /**
213
- * Re-shape a bulk create request into the snake_case wire body for
214
- * `POST /cards/1.0/policy-templates`. Maps each entry through
215
- * `toCreateCardPolicyTemplateRequestBody` and only emits
216
- * `source_chat_session_id` when the camelCase counterpart is defined,
217
- * so manual-create callers don't ship a stray `undefined` over the wire.
218
- */
219
- export declare const toCreateCardPolicyTemplatesRequestBody: (request: CreateCardPolicyTemplatesRequest) => CreateCardPolicyTemplatesRequestBody;
220
- /**
221
- * Map a single bulk-response error payload to its camelCased view shape.
222
- * Defensive against missing optional fields (see `BulkCreateCardPolicyTemplateErrorPayload`
223
- * docstring — the BE contract isn't fully locked yet).
224
- */
225
- export declare const toBulkCreateCardPolicyTemplateError: (payload: BulkCreateCardPolicyTemplateErrorPayload) => BulkCreateCardPolicyTemplateError;
226
- export declare const toUpdateCardPolicyTemplateRequestBody: (request: CreateCardPolicyTemplateRequest) => CreateCardPolicyTemplateRequestBody;
227
- /**
228
- * Seed an edit-form draft (`CreateCardPolicyTemplateRequest`) from an
229
- * existing camelCased `CardPolicyTemplate`. Used by the detail-fetch
230
- * epic so the edit page can render with the saved values pre-populated.
231
- */
232
- export declare const toCardPolicyEditFormDraft: (template: CardPolicyTemplate) => CreateCardPolicyTemplateRequest;
233
- /**
234
- * Wire shape returned by `POST /cards/1.0/policy-documents/extract`.
235
- * The backend OCRs / parses an uploaded policy document (PDF, image, etc.)
236
- * and returns a best-effort set of policy rules + a confidence score.
237
- *
238
- * Consumers (manual `CardPolicyCreatePage` + AI CFO `CardPolicyInteractiveForm`)
239
- * use `toExtractedCardPolicyRules` to map this onto the camelCase FE shape
240
- * and then feed the result through `applyExtractedPolicyRulesToFormValues`
241
- * (`@zeniai/web-components`) to seed the RHF form.
242
- */
243
- export interface ExtractedCardPolicyRulesPayload {
244
- allowed_entity: CardPolicyTemplateEntityListPayload;
245
- blocked_entity: CardPolicyTemplateEntityListPayload;
246
- confidence_score: number;
247
- policy_name: string;
248
- required_receipt_threshold: number;
249
- transaction_limit: number;
250
- }
251
- export interface PolicyDocumentExtractResponseData {
252
- extracted_rules: ExtractedCardPolicyRulesPayload;
253
- message: string;
254
- }
255
- export type PolicyDocumentExtractResponse = ZeniAPIResponse<PolicyDocumentExtractResponseData>;
256
- export declare const toExtractedCardPolicyRules: (payload: ExtractedCardPolicyRulesPayload) => ExtractedCardPolicyRules;
257
- /**
258
- * Wire shape returned by `POST /cards/1.0/ai-cfo/policy-recommendation-from-upload`.
259
- * Chained after `extractPolicyDocument` succeeds in the AI CFO `upload`
260
- * flow: the FE forwards the just-returned `extracted_rules` and the BE
261
- * synthesizes a wizard plan + upload source metadata.
262
- *
263
- * The response mirrors the same `mode`-discriminated envelope the
264
- * controller API ships for `auto` / `guided`, but always with `mode:
265
- * "upload"` and a populated `wizard_plan.step_5_review`. The FE merges
266
- * the returned `wizard_plan` + `source` into the in-flight AI CFO
267
- * answer's `CardPolicyInitialData` via
268
- * `updateAiCfoAnswerCardPolicyWizardPlan`.
269
- */
270
- export interface CardPolicyRecommendationFromUploadResponseData {
271
- mode: 'upload';
272
- source: import('../aiCfo/aiCfoPayload').CardPolicyUploadSourcePayload;
273
- tenant_id: string;
274
- wizard_plan: import('../aiCfo/aiCfoPayload').CardPolicyWizardPlanPayload;
275
- }
276
- export type CardPolicyRecommendationFromUploadResponse = ZeniAPIResponse<CardPolicyRecommendationFromUploadResponseData>;
277
- export {};
@@ -1,143 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.toExtractedCardPolicyRules = exports.toCardPolicyEditFormDraft = exports.toUpdateCardPolicyTemplateRequestBody = exports.toBulkCreateCardPolicyTemplateError = exports.toCreateCardPolicyTemplatesRequestBody = exports.toCreateCardPolicyTemplateRequestBody = exports.toCardPolicyTemplate = exports.toCardPolicyTemplateList = exports.toCardPolicyStats = exports.toCardPolicyVendorSearchOption = exports.toMccCategory = void 0;
4
- const zeniDayJS_1 = require("../../zeniDayJS");
5
- const cardPolicyState_1 = require("./cardPolicyState");
6
- const toMccCategory = (payload) => ({
7
- count: payload.count,
8
- mccCodes: payload.mcc_codes ?? [],
9
- name: payload.name,
10
- });
11
- exports.toMccCategory = toMccCategory;
12
- const toCardPolicyVendorSearchOption = (payload) => ({
13
- vendorId: payload.vendor_id,
14
- name: payload.vendor_name,
15
- });
16
- exports.toCardPolicyVendorSearchOption = toCardPolicyVendorSearchOption;
17
- const toCardPolicyStats = (payload) => ({
18
- activePolicies: payload.active_policies,
19
- totalCards: payload.total_cards,
20
- totalTemplates: payload.total_templates,
21
- });
22
- exports.toCardPolicyStats = toCardPolicyStats;
23
- const toCardPolicyTemplateList = (data) => (data.templates ?? []).map((row) => (0, exports.toCardPolicyTemplate)(row.data.template));
24
- exports.toCardPolicyTemplateList = toCardPolicyTemplateList;
25
- const toCardPolicyTemplateEntityList = (payload) => ({
26
- categoryCodes: payload.category_codes ?? [],
27
- merchantNames: payload.merchant_names ?? [],
28
- });
29
- const toCardPolicyTemplate = (payload) => ({
30
- allowedEntity: toCardPolicyTemplateEntityList(payload.allowed_entity),
31
- appliedCards: payload.applied_cards ?? [],
32
- blockedEntity: toCardPolicyTemplateEntityList(payload.blocked_entity),
33
- cardsCount: payload.cards_count,
34
- categoryRestrictions: payload.category_restrictions ?? [],
35
- createdAt: (0, zeniDayJS_1.date)(payload.created_at),
36
- createdBy: payload.created_by,
37
- description: payload.description,
38
- mode: (0, cardPolicyState_1.toCardPolicyTemplateMode)(payload.mode),
39
- name: payload.name,
40
- requiredReceiptThreshold: payload.required_receipt_threshold,
41
- spendLimits: {
42
- transaction: payload.spend_limits.transaction,
43
- },
44
- status: (0, cardPolicyState_1.toCardPolicyTemplateStatus)(payload.status),
45
- templateId: payload.template_id,
46
- tenantId: payload.tenant_id,
47
- updatedAt: (0, zeniDayJS_1.date)(payload.updated_at),
48
- });
49
- exports.toCardPolicyTemplate = toCardPolicyTemplate;
50
- /**
51
- * Re-shape a single camelCase create request into the snake_case wire
52
- * body. Used by the bulk-create mapper to build each entry of the
53
- * `templates` array, and directly by the update epic (PUT) since the
54
- * update endpoint still consumes a single object.
55
- */
56
- const toCreateCardPolicyTemplateRequestBody = (request) => ({
57
- allowed_entity: {
58
- category_codes: request.allowedEntity.categoryCodes,
59
- merchant_names: request.allowedEntity.merchantNames,
60
- },
61
- apply_to_cards: request.applyToCards,
62
- blocked_entity: {
63
- category_codes: request.blockedEntity.categoryCodes,
64
- merchant_names: request.blockedEntity.merchantNames,
65
- },
66
- description: request.description,
67
- mode: request.mode ?? 'strict',
68
- name: request.name,
69
- required_receipt_threshold: request.requiredReceiptThreshold,
70
- spend_limits: {
71
- transaction: request.spendLimits.transaction,
72
- },
73
- });
74
- exports.toCreateCardPolicyTemplateRequestBody = toCreateCardPolicyTemplateRequestBody;
75
- /**
76
- * Re-shape a bulk create request into the snake_case wire body for
77
- * `POST /cards/1.0/policy-templates`. Maps each entry through
78
- * `toCreateCardPolicyTemplateRequestBody` and only emits
79
- * `source_chat_session_id` when the camelCase counterpart is defined,
80
- * so manual-create callers don't ship a stray `undefined` over the wire.
81
- */
82
- const toCreateCardPolicyTemplatesRequestBody = (request) => {
83
- const body = {
84
- templates: request.templates.map(exports.toCreateCardPolicyTemplateRequestBody),
85
- };
86
- if (request.sourceChatSessionId != null) {
87
- body.source_chat_session_id = request.sourceChatSessionId;
88
- }
89
- return body;
90
- };
91
- exports.toCreateCardPolicyTemplatesRequestBody = toCreateCardPolicyTemplatesRequestBody;
92
- /**
93
- * Map a single bulk-response error payload to its camelCased view shape.
94
- * Defensive against missing optional fields (see `BulkCreateCardPolicyTemplateErrorPayload`
95
- * docstring — the BE contract isn't fully locked yet).
96
- */
97
- const toBulkCreateCardPolicyTemplateError = (payload) => ({
98
- message: payload.message,
99
- code: payload.code,
100
- index: payload.index,
101
- name: payload.name,
102
- });
103
- exports.toBulkCreateCardPolicyTemplateError = toBulkCreateCardPolicyTemplateError;
104
- // Update body uses the exact same wire shape as create — the PUT
105
- // endpoint is a full replace and was not affected by the bulk migration.
106
- exports.toUpdateCardPolicyTemplateRequestBody = exports.toCreateCardPolicyTemplateRequestBody;
107
- /**
108
- * Seed an edit-form draft (`CreateCardPolicyTemplateRequest`) from an
109
- * existing camelCased `CardPolicyTemplate`. Used by the detail-fetch
110
- * epic so the edit page can render with the saved values pre-populated.
111
- */
112
- const toCardPolicyEditFormDraft = (template) => ({
113
- allowedEntity: {
114
- categoryCodes: [...template.allowedEntity.categoryCodes],
115
- merchantNames: [...template.allowedEntity.merchantNames],
116
- },
117
- applyToCards: [...template.appliedCards],
118
- blockedEntity: {
119
- categoryCodes: [...template.blockedEntity.categoryCodes],
120
- merchantNames: [...template.blockedEntity.merchantNames],
121
- },
122
- description: template.description,
123
- mode: template.mode,
124
- name: template.name,
125
- requiredReceiptThreshold: template.requiredReceiptThreshold,
126
- spendLimits: { transaction: template.spendLimits.transaction },
127
- });
128
- exports.toCardPolicyEditFormDraft = toCardPolicyEditFormDraft;
129
- const toExtractedCardPolicyRules = (payload) => ({
130
- allowedEntity: {
131
- categoryCodes: payload.allowed_entity?.category_codes ?? [],
132
- merchantNames: payload.allowed_entity?.merchant_names ?? [],
133
- },
134
- blockedEntity: {
135
- categoryCodes: payload.blocked_entity?.category_codes ?? [],
136
- merchantNames: payload.blocked_entity?.merchant_names ?? [],
137
- },
138
- confidenceScore: payload.confidence_score,
139
- policyName: payload.policy_name,
140
- requiredReceiptThreshold: payload.required_receipt_threshold,
141
- transactionLimit: payload.transaction_limit,
142
- });
143
- exports.toExtractedCardPolicyRules = toExtractedCardPolicyRules;
@@ -1,19 +0,0 @@
1
- import { ZeniAPIStatus } from '../../responsePayload';
2
- import { CardPolicyMccCategoriesPayload, CardPolicyTemplatePayload, CardPolicyVendorSearchData, ExtractedCardPolicyRulesPayload } from './cardPolicyPayload';
3
- import { CardPolicyState, CardPolicyStats, CardPolicyTemplate, ExtractedCardPolicyRules } from './cardPolicyState';
4
- export declare const initialState: CardPolicyState;
5
- export declare const fetchCardPolicyMccCategories: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"cardPolicy/fetchCardPolicyMccCategories">, fetchCardPolicyVendorOptions: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[searchString?: string | undefined], {
6
- searchString: string;
7
- }, "cardPolicy/fetchCardPolicyVendorOptions", never, never>, updateCardPolicyMccCategories: import("@reduxjs/toolkit").ActionCreatorWithPayload<CardPolicyMccCategoriesPayload, "cardPolicy/updateCardPolicyMccCategories">, updateCardPolicyMccCategoriesFailure: import("@reduxjs/toolkit").ActionCreatorWithPayload<ZeniAPIStatus<Record<string, unknown>>, "cardPolicy/updateCardPolicyMccCategoriesFailure">, updateCardPolicyVendorOptions: import("@reduxjs/toolkit").ActionCreatorWithPayload<CardPolicyVendorSearchData, "cardPolicy/updateCardPolicyVendorOptions">, updateCardPolicyVendorOptionsFailure: import("@reduxjs/toolkit").ActionCreatorWithPayload<ZeniAPIStatus<Record<string, unknown>>, "cardPolicy/updateCardPolicyVendorOptionsFailure">, updateCreatedCardPolicyTemplate: import("@reduxjs/toolkit").ActionCreatorWithPayload<CardPolicyTemplatePayload, "cardPolicy/updateCreatedCardPolicyTemplate">, updateCardPolicyTemplates: import("@reduxjs/toolkit").ActionCreatorWithPayload<CardPolicyTemplate[], "cardPolicy/updateCardPolicyTemplates">, removeCardPolicyTemplate: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "cardPolicy/removeCardPolicyTemplate">, updateCardPolicyStats: import("@reduxjs/toolkit").ActionCreatorWithPayload<CardPolicyStats, "cardPolicy/updateCardPolicyStats">, extractPolicyDocument: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[files: File[], aiCfoAnswerId?: string | undefined, aiCfoChatSessionId?: string | undefined], {
8
- files: File[];
9
- aiCfoAnswerId: string | undefined;
10
- aiCfoChatSessionId: string | undefined;
11
- }, "cardPolicy/extractPolicyDocument", never, {
12
- uploadedFileName: string;
13
- }>, updatePolicyDocumentExtractionSuccess: import("@reduxjs/toolkit").ActionCreatorWithPayload<ExtractedCardPolicyRulesPayload, "cardPolicy/updatePolicyDocumentExtractionSuccess">, updatePolicyDocumentExtractionFailure: import("@reduxjs/toolkit").ActionCreatorWithPayload<ZeniAPIStatus<Record<string, unknown>>, "cardPolicy/updatePolicyDocumentExtractionFailure">, clearPolicyDocumentExtraction: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"cardPolicy/clearPolicyDocumentExtraction">, fetchCardPolicyRecommendationFromUpload: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[answerId: string, chatSessionId: string, extractedRules: ExtractedCardPolicyRules], {
14
- answerId: string;
15
- chatSessionId: string;
16
- extractedRules: ExtractedCardPolicyRules;
17
- }, "cardPolicy/fetchCardPolicyRecommendationFromUpload", never, never>, updatePolicyRecommendationFromUploadSuccess: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"cardPolicy/updatePolicyRecommendationFromUploadSuccess">, updatePolicyRecommendationFromUploadFailure: import("@reduxjs/toolkit").ActionCreatorWithPayload<ZeniAPIStatus<Record<string, unknown>>, "cardPolicy/updatePolicyRecommendationFromUploadFailure">, clearCardPolicy: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"cardPolicy/clearCardPolicy">;
18
- declare const _default: import("redux").Reducer<CardPolicyState>;
19
- export default _default;