@zeniai/client-epic-state 5.1.13-betaAY0 → 5.1.14

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 (439) 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/cardsVisibilityHelpers.d.ts +4 -0
  21. package/lib/entity/company/cardsVisibilityHelpers.js +14 -0
  22. package/lib/entity/company/companyPayload.d.ts +0 -4
  23. package/lib/entity/company/companyPayload.js +0 -6
  24. package/lib/entity/company/companyStateTypes.d.ts +0 -7
  25. package/lib/entity/customer/customerPayload.d.ts +0 -6
  26. package/lib/entity/customer/customerPayload.js +9 -30
  27. package/lib/entity/jeSchedules/jeSchedulesPayload.d.ts +0 -1
  28. package/lib/entity/jeSchedules/jeSchedulesPayload.js +0 -19
  29. package/lib/entity/jeSchedules/jeSchedulesState.d.ts +0 -2
  30. package/lib/entity/jeSchedules/jeSchedulesTypes.d.ts +1 -1
  31. package/lib/entity/monthEndCloseChecks/monthEndCloseChecksState.d.ts +1 -1
  32. package/lib/entity/paymentAccount/paymentAccountSelector.d.ts +0 -1
  33. package/lib/entity/paymentAccount/paymentAccountSelector.js +0 -9
  34. package/lib/entity/reimbursement/reimbursementPayload.js +1 -2
  35. package/lib/entity/snackbar/snackbarTypes.d.ts +1 -1
  36. package/lib/entity/snackbar/snackbarTypes.js +0 -5
  37. package/lib/entity/task/taskPayload.d.ts +1 -3
  38. package/lib/entity/task/taskPayload.js +0 -2
  39. package/lib/entity/task/taskState.d.ts +0 -2
  40. package/lib/entity/tenant/clearAllEpic.d.ts +2 -8
  41. package/lib/entity/tenant/clearAllEpic.js +0 -12
  42. package/lib/entity/tenant/epic/deleteConnectionEpic.d.ts +1 -1
  43. package/lib/entity/tenant/epic/saveAPIKeyConnectionEpic.d.ts +1 -1
  44. package/lib/entity/tenant/epic/saveConnectorCredentialsEpic.d.ts +3 -3
  45. package/lib/entity/tenant/epic/saveOAuthConnectionEpic.d.ts +1 -1
  46. package/lib/entity/tenant/tenantPayload.d.ts +0 -1
  47. package/lib/entity/tenant/tenantReducer.d.ts +25 -38
  48. package/lib/entity/tenant/tenantReducer.js +10 -70
  49. package/lib/entity/tenant/tenantState.d.ts +0 -1
  50. package/lib/entity/transaction/payloadTypes/transactionLinePayload.js +1 -1
  51. package/lib/entity/transaction/payloadTypes/transactionPayload.js +2 -14
  52. package/lib/entity/transactionActivityLog/transactionActivityLogPayload.js +1 -4
  53. package/lib/epic.d.ts +3 -31
  54. package/lib/epic.js +3 -32
  55. package/lib/esm/commonStateTypes/amount.js +0 -7
  56. package/lib/esm/commonStateTypes/animations.js +0 -1
  57. package/lib/esm/commonStateTypes/workingDayHelper.js +0 -26
  58. package/lib/esm/entity/aiCfo/aiCfoReducer.js +9 -249
  59. package/lib/esm/entity/aiCfo/aiCfoSelector.js +1 -17
  60. package/lib/esm/entity/aiCfo/aiCfoState.js +0 -17
  61. package/lib/esm/entity/approvalRule/approvalRulePayload.js +10 -149
  62. package/lib/esm/entity/approvalRule/approvalRuleSelector.js +0 -35
  63. package/lib/esm/entity/company/cardsVisibilityHelpers.js +9 -0
  64. package/lib/esm/entity/company/companyPayload.js +0 -6
  65. package/lib/esm/entity/customer/customerPayload.js +8 -28
  66. package/lib/esm/entity/jeSchedules/jeSchedulesPayload.js +0 -19
  67. package/lib/esm/entity/paymentAccount/paymentAccountSelector.js +0 -8
  68. package/lib/esm/entity/reimbursement/reimbursementPayload.js +2 -3
  69. package/lib/esm/entity/snackbar/snackbarTypes.js +0 -5
  70. package/lib/esm/entity/task/taskPayload.js +0 -2
  71. package/lib/esm/entity/tenant/clearAllEpic.js +0 -12
  72. package/lib/esm/entity/tenant/tenantReducer.js +8 -68
  73. package/lib/esm/entity/transaction/payloadTypes/transactionLinePayload.js +2 -2
  74. package/lib/esm/entity/transaction/payloadTypes/transactionPayload.js +2 -14
  75. package/lib/esm/entity/transactionActivityLog/transactionActivityLogPayload.js +2 -5
  76. package/lib/esm/epic.js +3 -32
  77. package/lib/esm/index.js +27 -67
  78. package/lib/esm/reducer.js +0 -18
  79. package/lib/esm/view/aiCfoView/aiCfoViewReducer.js +3 -6
  80. package/lib/esm/view/aiCfoView/epics/createSessionAndSubmitEpic.js +2 -5
  81. package/lib/esm/view/aiCfoView/epics/createSessionEpic.js +1 -2
  82. package/lib/esm/view/aiCfoView/epics/fetchSuggestedQuestionsEpic.js +2 -12
  83. package/lib/esm/view/companyTaskManagerView/companyTaskManagerViewReducer.js +11 -39
  84. package/lib/esm/view/companyTaskManagerView/companyTaskManagerViewSelector.js +4 -14
  85. package/lib/esm/view/companyTaskManagerView/epics/fetchCompanyTaskManagerViewEpic.js +28 -37
  86. package/lib/esm/view/companyView/epic/companyPassport/updateCapitalizationAccountThresholdEpic.js +3 -3
  87. package/lib/esm/view/companyView/epic/fetchAllCockpitViewsEpic.js +2 -2
  88. package/lib/esm/view/dashboard/dashboardSelector.js +8 -43
  89. package/lib/esm/view/expenseAutomationView/selectors/transactionCategorizationSelector.js +1 -1
  90. package/lib/esm/view/fileView/epic/deleteFileEpic.js +2 -2
  91. package/lib/esm/view/fileView/epic/deleteFileListEpic.js +2 -2
  92. package/lib/esm/view/onboardingView/customerView/epic/customerDetails/updateOnboardingCustomerViewEpic.js +18 -24
  93. package/lib/esm/view/onboardingView/customerView/epic/customerDetails/updateOnboardingCustomerViewLocalStoreDataEpic.js +17 -29
  94. package/lib/esm/view/onboardingView/customerView/onboardingCustomerViewReducer.js +51 -223
  95. package/lib/esm/view/onboardingView/customerView/onboardingCustomerViewSelector.js +18 -36
  96. package/lib/esm/view/onboardingView/customerView/onboardingCustomerViewState.js +6 -45
  97. package/lib/esm/view/people/initializeEditPersonEpic.js +5 -1
  98. package/lib/esm/view/people/invitePeopleEpic.js +6 -3
  99. package/lib/esm/view/people/peopleSaveUpdatesEpic.js +7 -3
  100. package/lib/esm/view/settingsView/settingsViewHelpers.js +5 -2
  101. package/lib/esm/view/spendManagement/autotransferRules/autoTransferRulesSelector.js +2 -22
  102. package/lib/esm/view/spendManagement/billPay/billPayReview/billPayReviewSelector.js +0 -14
  103. package/lib/esm/view/spendManagement/billPay/billPaySetupApproverView/billPaySetupApproverViewReducer.js +12 -109
  104. package/lib/esm/view/spendManagement/billPay/billPaySetupApproverView/epic/deleteBillPayApprovalRuleEpic.js +2 -10
  105. package/lib/esm/view/spendManagement/billPay/billPaySetupApproverView/epic/fetchBillPaySetupApproverViewEpic.js +4 -8
  106. package/lib/esm/view/spendManagement/billPay/billPaySetupApproverView/epic/initializeBillPaySetupApproverViewUpdateDataEpic.js +7 -11
  107. package/lib/esm/view/spendManagement/billPay/billPaySetupApproverView/epic/saveBillPaySetupApproverViewUpdatesEpic.js +4 -13
  108. package/lib/esm/view/spendManagement/billPay/billPaySetupApproverView/types/commonPayload.js +16 -144
  109. package/lib/esm/view/spendManagement/billPay/editBillView/editBillViewSelector.js +4 -60
  110. package/lib/esm/view/spendManagement/billPay/editBillView/epics/fetchEditBillDetailPageEpic.js +2 -8
  111. package/lib/esm/view/spendManagement/chargeCards/chargeCardList/chargeCardListSelector.js +0 -25
  112. package/lib/esm/view/spendManagement/chargeCards/issueChargeCard/issueChargeCardEpic.js +2 -2
  113. package/lib/esm/view/spendManagement/chargeCards/issueChargeCard/issueChargeCardReducer.js +4 -42
  114. package/lib/esm/view/spendManagement/chargeCards/issueChargeCard/issueChargeCardSelector.js +0 -35
  115. package/lib/esm/view/spendManagement/commonSetup/setupViewReducer.js +52 -106
  116. package/lib/esm/view/spendManagement/commonSetup/setupViewSelector.js +1 -6
  117. package/lib/esm/view/spendManagement/reimbursement/editRemiView/epics/fetchEditRemiDetailPageEpic.js +1 -5
  118. package/lib/esm/view/spendManagement/reimbursement/remiSetupApproverView/epic/deleteRemiApprovalRuleEpic.js +2 -10
  119. package/lib/esm/view/spendManagement/reimbursement/remiSetupApproverView/epic/fetchRemiSetupApproverViewEpic.js +2 -8
  120. package/lib/esm/view/spendManagement/reimbursement/remiSetupApproverView/epic/initializeRemiSetupApproverViewUpdateDataEpic.js +7 -11
  121. package/lib/esm/view/spendManagement/reimbursement/remiSetupApproverView/epic/saveRemiSetupApproverViewUpdatesEpic.js +4 -13
  122. package/lib/esm/view/spendManagement/reimbursement/remiSetupApproverView/remiSetupApproverViewReducer.js +11 -80
  123. package/lib/esm/view/transactionDetail/epics/saveTransactionHelper.js +0 -1
  124. package/lib/esm/view/transactionDetail/epics/updateTransactionDetailEpic.js +0 -6
  125. package/lib/esm/view/transactionDetail/transactionDetailLocalDataHelper.js +1 -7
  126. package/lib/index.d.ts +33 -82
  127. package/lib/index.js +32 -261
  128. package/lib/reducer.d.ts +0 -18
  129. package/lib/reducer.js +0 -18
  130. package/lib/view/aiCfoView/aiCfoViewReducer.d.ts +2 -11
  131. package/lib/view/aiCfoView/aiCfoViewReducer.js +3 -6
  132. package/lib/view/aiCfoView/epics/createSessionAndSubmitEpic.js +2 -5
  133. package/lib/view/aiCfoView/epics/createSessionEpic.js +1 -2
  134. package/lib/view/aiCfoView/epics/fetchSuggestedQuestionsEpic.d.ts +1 -8
  135. package/lib/view/aiCfoView/epics/fetchSuggestedQuestionsEpic.js +2 -12
  136. package/lib/view/companyTaskManagerView/companyTaskManagerViewPayload.d.ts +11 -19
  137. package/lib/view/companyTaskManagerView/companyTaskManagerViewReducer.d.ts +5 -11
  138. package/lib/view/companyTaskManagerView/companyTaskManagerViewReducer.js +12 -40
  139. package/lib/view/companyTaskManagerView/companyTaskManagerViewSelector.d.ts +0 -2
  140. package/lib/view/companyTaskManagerView/companyTaskManagerViewSelector.js +3 -13
  141. package/lib/view/companyTaskManagerView/companyTaskManagerViewState.d.ts +3 -11
  142. package/lib/view/companyTaskManagerView/epics/fetchCompanyTaskManagerViewEpic.d.ts +3 -1
  143. package/lib/view/companyTaskManagerView/epics/fetchCompanyTaskManagerViewEpic.js +28 -37
  144. package/lib/view/companyView/epic/companyPassport/updateCapitalizationAccountThresholdEpic.d.ts +1 -1
  145. package/lib/view/companyView/epic/companyPassport/updateCapitalizationAccountThresholdEpic.js +2 -2
  146. package/lib/view/companyView/epic/fetchAllCockpitViewsEpic.js +2 -2
  147. package/lib/view/companyView/types/cockpitTypes.d.ts +2 -3
  148. package/lib/view/dashboard/dashboardSelector.js +8 -43
  149. package/lib/view/expenseAutomationView/helpers/transactionCategorizationLocalDataHelper.d.ts +1 -1
  150. package/lib/view/expenseAutomationView/reducers/transactionsViewReducer.d.ts +1 -1
  151. package/lib/view/expenseAutomationView/selectors/transactionCategorizationSelector.d.ts +1 -1
  152. package/lib/view/expenseAutomationView/selectors/transactionCategorizationSelector.js +1 -1
  153. package/lib/view/expenseAutomationView/types/reconciliationViewState.d.ts +1 -1
  154. package/lib/view/expenseAutomationView/types/transactionsViewState.d.ts +1 -1
  155. package/lib/view/fileView/epic/deleteFileEpic.js +1 -1
  156. package/lib/view/fileView/epic/deleteFileListEpic.js +1 -1
  157. package/lib/view/onboardingView/customerView/epic/customerDetails/updateOnboardingCustomerViewEpic.js +18 -24
  158. package/lib/view/onboardingView/customerView/epic/customerDetails/updateOnboardingCustomerViewLocalStoreDataEpic.d.ts +2 -2
  159. package/lib/view/onboardingView/customerView/epic/customerDetails/updateOnboardingCustomerViewLocalStoreDataEpic.js +15 -27
  160. package/lib/view/onboardingView/customerView/onboardingCustomerViewPayload.d.ts +0 -3
  161. package/lib/view/onboardingView/customerView/onboardingCustomerViewReducer.d.ts +5 -44
  162. package/lib/view/onboardingView/customerView/onboardingCustomerViewReducer.js +52 -225
  163. package/lib/view/onboardingView/customerView/onboardingCustomerViewSelector.d.ts +1 -6
  164. package/lib/view/onboardingView/customerView/onboardingCustomerViewSelector.js +18 -39
  165. package/lib/view/onboardingView/customerView/onboardingCustomerViewState.d.ts +8 -53
  166. package/lib/view/onboardingView/customerView/onboardingCustomerViewState.js +7 -47
  167. package/lib/view/people/initializeEditPersonEpic.js +5 -1
  168. package/lib/view/people/invitePeopleEpic.js +6 -3
  169. package/lib/view/people/peopleSaveUpdatesEpic.js +7 -3
  170. package/lib/view/people/peopleTypes.d.ts +1 -1
  171. package/lib/view/scheduleView/scheduleListView/scheduleListTypes.d.ts +1 -1
  172. package/lib/view/settingsView/settingsViewHelpers.js +5 -2
  173. package/lib/view/spendManagement/autotransferRules/autoTransferRulesSelector.d.ts +1 -8
  174. package/lib/view/spendManagement/autotransferRules/autoTransferRulesSelector.js +1 -21
  175. package/lib/view/spendManagement/autotransferRules/autoTransferRulesState.d.ts +0 -22
  176. package/lib/view/spendManagement/billPay/billPayReview/billPayReviewSelector.d.ts +0 -7
  177. package/lib/view/spendManagement/billPay/billPayReview/billPayReviewSelector.js +0 -14
  178. package/lib/view/spendManagement/billPay/billPaySetupApproverView/billPaySetupApproverViewReducer.d.ts +3 -14
  179. package/lib/view/spendManagement/billPay/billPaySetupApproverView/billPaySetupApproverViewReducer.js +13 -110
  180. package/lib/view/spendManagement/billPay/billPaySetupApproverView/billPaySetupApproverViewState.d.ts +0 -16
  181. package/lib/view/spendManagement/billPay/billPaySetupApproverView/epic/deleteBillPayApprovalRuleEpic.js +2 -10
  182. package/lib/view/spendManagement/billPay/billPaySetupApproverView/epic/fetchBillPaySetupApproverViewEpic.js +4 -8
  183. package/lib/view/spendManagement/billPay/billPaySetupApproverView/epic/initializeBillPaySetupApproverViewUpdateDataEpic.js +6 -10
  184. package/lib/view/spendManagement/billPay/billPaySetupApproverView/epic/saveBillPaySetupApproverViewUpdatesEpic.js +3 -12
  185. package/lib/view/spendManagement/billPay/billPaySetupApproverView/types/commonPayload.d.ts +1 -59
  186. package/lib/view/spendManagement/billPay/billPaySetupApproverView/types/commonPayload.js +17 -146
  187. package/lib/view/spendManagement/billPay/billPaySetupApproverView/types/commonState.d.ts +5 -31
  188. package/lib/view/spendManagement/billPay/editBillView/editBillViewSelector.d.ts +1 -8
  189. package/lib/view/spendManagement/billPay/editBillView/editBillViewSelector.js +4 -60
  190. package/lib/view/spendManagement/billPay/editBillView/epics/fetchEditBillDetailPageEpic.js +2 -8
  191. package/lib/view/spendManagement/chargeCards/chargeCardList/chargeCardList.d.ts +1 -1
  192. package/lib/view/spendManagement/chargeCards/chargeCardList/chargeCardListSelector.d.ts +0 -14
  193. package/lib/view/spendManagement/chargeCards/chargeCardList/chargeCardListSelector.js +1 -27
  194. package/lib/view/spendManagement/chargeCards/issueChargeCard/issueChargeCardEpic.d.ts +2 -2
  195. package/lib/view/spendManagement/chargeCards/issueChargeCard/issueChargeCardEpic.js +1 -1
  196. package/lib/view/spendManagement/chargeCards/issueChargeCard/issueChargeCardReducer.d.ts +2 -12
  197. package/lib/view/spendManagement/chargeCards/issueChargeCard/issueChargeCardReducer.js +5 -43
  198. package/lib/view/spendManagement/chargeCards/issueChargeCard/issueChargeCardSelector.d.ts +0 -7
  199. package/lib/view/spendManagement/chargeCards/issueChargeCard/issueChargeCardSelector.js +1 -42
  200. package/lib/view/spendManagement/chargeCards/issueChargeCard/issueChargeCardState.d.ts +0 -5
  201. package/lib/view/spendManagement/commonSetup/setupViewReducer.d.ts +2 -28
  202. package/lib/view/spendManagement/commonSetup/setupViewReducer.js +53 -107
  203. package/lib/view/spendManagement/commonSetup/setupViewSelector.d.ts +2 -7
  204. package/lib/view/spendManagement/commonSetup/setupViewSelector.js +1 -6
  205. package/lib/view/spendManagement/commonSetup/setupViewState.d.ts +0 -19
  206. package/lib/view/spendManagement/reimbursement/editRemiView/epics/fetchEditRemiDetailPageEpic.js +1 -5
  207. package/lib/view/spendManagement/reimbursement/remiSetupApproverView/epic/deleteRemiApprovalRuleEpic.js +2 -10
  208. package/lib/view/spendManagement/reimbursement/remiSetupApproverView/epic/fetchRemiSetupApproverViewEpic.js +2 -8
  209. package/lib/view/spendManagement/reimbursement/remiSetupApproverView/epic/initializeRemiSetupApproverViewUpdateDataEpic.js +6 -10
  210. package/lib/view/spendManagement/reimbursement/remiSetupApproverView/epic/saveRemiSetupApproverViewUpdatesEpic.js +3 -12
  211. package/lib/view/spendManagement/reimbursement/remiSetupApproverView/remiSetupApproverViewReducer.d.ts +3 -14
  212. package/lib/view/spendManagement/reimbursement/remiSetupApproverView/remiSetupApproverViewReducer.js +12 -81
  213. package/lib/view/spendManagement/reimbursement/remiSetupApproverView/remiSetupApproverViewState.d.ts +0 -12
  214. package/lib/view/taskManager/taskListView/taskList.d.ts +3 -3
  215. package/lib/view/taskManager/taskListView/taskListReducer.d.ts +1 -1
  216. package/lib/view/transactionDetail/epics/saveTransactionHelper.js +0 -1
  217. package/lib/view/transactionDetail/epics/updateTransactionDetailEpic.js +0 -6
  218. package/lib/view/transactionDetail/journalEntryLinesViewModel.d.ts +1 -1
  219. package/lib/view/transactionDetail/transactionDetailLocalDataHelper.js +1 -7
  220. package/lib/view/transactionDetail/transactionDetailState.d.ts +0 -1
  221. package/lib/view/transactionDetail/transactionDetailTypes.d.ts +1 -1
  222. package/lib/zeniAPI.d.ts +0 -1
  223. package/package.json +34 -65
  224. package/lib/entity/approvalRule/approvalRuleConflict.d.ts +0 -56
  225. package/lib/entity/approvalRule/approvalRuleConflict.js +0 -77
  226. package/lib/entity/cardPolicy/cardPolicyPayload.d.ts +0 -277
  227. package/lib/entity/cardPolicy/cardPolicyPayload.js +0 -143
  228. package/lib/entity/cardPolicy/cardPolicyReducer.d.ts +0 -19
  229. package/lib/entity/cardPolicy/cardPolicyReducer.js +0 -175
  230. package/lib/entity/cardPolicy/cardPolicySelector.d.ts +0 -32
  231. package/lib/entity/cardPolicy/cardPolicySelector.js +0 -99
  232. package/lib/entity/cardPolicy/cardPolicyState.d.ts +0 -205
  233. package/lib/entity/cardPolicy/cardPolicyState.js +0 -14
  234. package/lib/entity/cardPolicy/extractPolicyDocumentEpic.d.ts +0 -18
  235. package/lib/entity/cardPolicy/extractPolicyDocumentEpic.js +0 -68
  236. package/lib/entity/cardPolicy/fetchCardPolicyVendorOptionsEpic.d.ts +0 -26
  237. package/lib/entity/cardPolicy/fetchCardPolicyVendorOptionsEpic.js +0 -47
  238. package/lib/entity/cardPolicy/policyDocumentExtractionToRecommendationBridgeEpic.d.ts +0 -25
  239. package/lib/entity/cardPolicy/policyDocumentExtractionToRecommendationBridgeEpic.js +0 -39
  240. package/lib/entity/cardPolicy/policyRecommendationFromUploadEpic.d.ts +0 -24
  241. package/lib/entity/cardPolicy/policyRecommendationFromUploadEpic.js +0 -105
  242. package/lib/entity/tenant/epic/initEmailConnectOAuthEpic.d.ts +0 -21
  243. package/lib/entity/tenant/epic/initEmailConnectOAuthEpic.js +0 -59
  244. package/lib/esm/entity/approvalRule/approvalRuleConflict.js +0 -74
  245. package/lib/esm/entity/cardPolicy/cardPolicyPayload.js +0 -130
  246. package/lib/esm/entity/cardPolicy/cardPolicyReducer.js +0 -171
  247. package/lib/esm/entity/cardPolicy/cardPolicySelector.js +0 -75
  248. package/lib/esm/entity/cardPolicy/cardPolicyState.js +0 -9
  249. package/lib/esm/entity/cardPolicy/extractPolicyDocumentEpic.js +0 -64
  250. package/lib/esm/entity/cardPolicy/fetchCardPolicyVendorOptionsEpic.js +0 -43
  251. package/lib/esm/entity/cardPolicy/policyDocumentExtractionToRecommendationBridgeEpic.js +0 -35
  252. package/lib/esm/entity/cardPolicy/policyRecommendationFromUploadEpic.js +0 -101
  253. package/lib/esm/entity/tenant/epic/initEmailConnectOAuthEpic.js +0 -55
  254. package/lib/esm/view/companyTaskManagerView/epics/fetchCockpitContextEpic.js +0 -38
  255. package/lib/esm/view/companyTaskManagerView/epics/updateCompanyTaskManagerViewFiltersEpic.js +0 -16
  256. package/lib/esm/view/onboardingView/customerView/epic/aiAgentsActivation/fetchAiAgentsActivationStatusEpic.js +0 -40
  257. package/lib/esm/view/onboardingView/customerView/epic/customerDetails/acknowledgeOnboardingAiActivationViewedEpic.js +0 -29
  258. package/lib/esm/view/onboardingView/customerView/epic/customerDetails/acknowledgeOnboardingAiFinanceTeamEpic.js +0 -40
  259. package/lib/esm/view/spendManagement/billPay/billPaySetupApproverView/epic/reorderBillPayApprovalRulesEpic.js +0 -54
  260. package/lib/esm/view/spendManagement/cashManagement/autoSweepFlow/autoSweepFlowPayload.js +0 -29
  261. package/lib/esm/view/spendManagement/cashManagement/autoSweepFlow/autoSweepFlowReducer.js +0 -78
  262. package/lib/esm/view/spendManagement/cashManagement/autoSweepFlow/autoSweepFlowSelector.js +0 -49
  263. package/lib/esm/view/spendManagement/cashManagement/autoSweepFlow/autoSweepFlowState.js +0 -47
  264. package/lib/esm/view/spendManagement/cashManagement/autoSweepFlow/epics/fetchCashManagementSettingsEpic.js +0 -32
  265. package/lib/esm/view/spendManagement/cashManagement/autoSweepFlow/epics/saveAutoSweepSettingsEpic.js +0 -32
  266. package/lib/esm/view/spendManagement/cashManagement/cashManagementOverview/cashManagementOverviewPayload.js +0 -54
  267. package/lib/esm/view/spendManagement/cashManagement/cashManagementOverview/cashManagementOverviewReducer.js +0 -92
  268. package/lib/esm/view/spendManagement/cashManagement/cashManagementOverview/cashManagementOverviewSelector.js +0 -212
  269. package/lib/esm/view/spendManagement/cashManagement/cashManagementOverview/cashManagementOverviewState.js +0 -10
  270. package/lib/esm/view/spendManagement/cashManagement/cashManagementOverview/epics/fetchCashManagementBannerEpic.js +0 -23
  271. package/lib/esm/view/spendManagement/cashManagement/cashManagementOverview/epics/fetchCashManagementOverviewPageEpic.js +0 -36
  272. package/lib/esm/view/spendManagement/cashManagement/cashManagementOverview/epics/fetchCashManagementRecommendationEpic.js +0 -27
  273. package/lib/esm/view/spendManagement/cashManagement/cashManagementOverview/epics/fetchRecentTransferEpic.js +0 -28
  274. package/lib/esm/view/spendManagement/chargeCards/cardPolicy/cardPolicyDetail/cardPolicyDetailReducer.js +0 -52
  275. package/lib/esm/view/spendManagement/chargeCards/cardPolicy/cardPolicyDetail/cardPolicyDetailSelector.js +0 -22
  276. package/lib/esm/view/spendManagement/chargeCards/cardPolicy/cardPolicyDetail/cardPolicyDetailState.js +0 -1
  277. package/lib/esm/view/spendManagement/chargeCards/cardPolicy/cardPolicyDetail/fetchCardPolicyDetailEpic.js +0 -36
  278. package/lib/esm/view/spendManagement/chargeCards/cardPolicy/cardPolicyDetail/updateCardPolicyEpic.js +0 -39
  279. package/lib/esm/view/spendManagement/chargeCards/cardPolicy/cardPolicyList/archiveCardPolicyEpic.js +0 -34
  280. package/lib/esm/view/spendManagement/chargeCards/cardPolicy/cardPolicyList/cardPolicyListReducer.js +0 -71
  281. package/lib/esm/view/spendManagement/chargeCards/cardPolicy/cardPolicyList/cardPolicyListSelector.js +0 -21
  282. package/lib/esm/view/spendManagement/chargeCards/cardPolicy/cardPolicyList/cardPolicyListState.js +0 -1
  283. package/lib/esm/view/spendManagement/chargeCards/cardPolicy/cardPolicyList/fetchCardPolicyListEpic.js +0 -38
  284. package/lib/esm/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/applyAiCardPolicyFormDraftUpdate.js +0 -289
  285. package/lib/esm/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/applyExtractedPolicyToAiCardPolicyDraft.js +0 -109
  286. package/lib/esm/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/applyExtractedPolicyToDraftEpic.js +0 -44
  287. package/lib/esm/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/applyExtractedPolicyToManualCardPolicyDraft.js +0 -111
  288. package/lib/esm/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/applyUploadPlanToAiCardPolicyDraft.js +0 -25
  289. package/lib/esm/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/buildAiCardPolicyFormDraftSeed.js +0 -363
  290. package/lib/esm/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/buildManualCardPolicyFormDraftSeed.js +0 -36
  291. package/lib/esm/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/cardPolicyChipIds.js +0 -19
  292. package/lib/esm/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/cardPolicyFormDraftTypes.js +0 -6
  293. package/lib/esm/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/cardPolicyRequestParts.js +0 -119
  294. package/lib/esm/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/createCardPolicyReducer.js +0 -154
  295. package/lib/esm/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/createCardPolicySelector.js +0 -22
  296. package/lib/esm/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/createCardPolicyState.js +0 -1
  297. package/lib/esm/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/createCardPolicyTemplateEpic.js +0 -49
  298. package/lib/esm/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/deriveAiPolicyReviewRowsFromInputs.js +0 -140
  299. package/lib/esm/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/fetchCardPolicyMccCategoriesEpic.js +0 -20
  300. package/lib/esm/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/seedAiCardPolicyFormDraftEpic.js +0 -100
  301. package/lib/esm/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/toBulkCardPolicyTemplateRequestsFromDraft.js +0 -96
  302. package/lib/esm/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/toCardPolicyTemplateRequestFromDraft.js +0 -59
  303. package/lib/esm/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/toManualCardPolicyTemplateRequestFromDraft.js +0 -24
  304. package/lib/esm/view/spendManagement/chargeCards/issueChargeCard/aiCardCreationFormDraftTypes.js +0 -1
  305. package/lib/esm/view/spendManagement/chargeCards/issueChargeCard/applyAiCardCreationFormDraftUpdate.js +0 -34
  306. package/lib/esm/view/spendManagement/chargeCards/issueChargeCard/buildAiCardCreationFormDraftSeed.js +0 -57
  307. package/lib/esm/view/spendManagement/chargeCards/issueChargeCard/deriveAiCardRowsFromTeams.js +0 -35
  308. package/lib/esm/view/spendManagement/chargeCards/issueChargeCard/seedAiCardCreationFormDraftEpic.js +0 -62
  309. package/lib/esm/view/spendManagement/chargeCards/issueChargeCard/toIssueChargeCardLocalDataFromDraft.js +0 -44
  310. package/lib/esm/view/spendManagement/commonSetup/epic/setup/parseUploadedKybDocumentEpic.js +0 -58
  311. package/lib/esm/view/spendManagement/commonSetup/epic/setup/parseUploadedKycDocumentEpic.js +0 -77
  312. package/lib/esm/view/spendManagement/commonSetup/kycKybAutofillActions.js +0 -14
  313. package/lib/esm/view/spendManagement/commonSetup/kycKybParseMapper.js +0 -221
  314. package/lib/esm/view/spendManagement/commonSetup/types/kycKybAutofill.js +0 -41
  315. package/lib/esm/view/spendManagement/reimbursement/remiSetupApproverView/epic/reorderRemiApprovalRulesEpic.js +0 -61
  316. package/lib/view/companyTaskManagerView/epics/fetchCockpitContextEpic.d.ts +0 -10
  317. package/lib/view/companyTaskManagerView/epics/fetchCockpitContextEpic.js +0 -42
  318. package/lib/view/companyTaskManagerView/epics/updateCompanyTaskManagerViewFiltersEpic.d.ts +0 -6
  319. package/lib/view/companyTaskManagerView/epics/updateCompanyTaskManagerViewFiltersEpic.js +0 -20
  320. package/lib/view/onboardingView/customerView/epic/aiAgentsActivation/fetchAiAgentsActivationStatusEpic.d.ts +0 -7
  321. package/lib/view/onboardingView/customerView/epic/aiAgentsActivation/fetchAiAgentsActivationStatusEpic.js +0 -44
  322. package/lib/view/onboardingView/customerView/epic/customerDetails/acknowledgeOnboardingAiActivationViewedEpic.d.ts +0 -8
  323. package/lib/view/onboardingView/customerView/epic/customerDetails/acknowledgeOnboardingAiActivationViewedEpic.js +0 -33
  324. package/lib/view/onboardingView/customerView/epic/customerDetails/acknowledgeOnboardingAiFinanceTeamEpic.d.ts +0 -9
  325. package/lib/view/onboardingView/customerView/epic/customerDetails/acknowledgeOnboardingAiFinanceTeamEpic.js +0 -44
  326. package/lib/view/spendManagement/billPay/billPaySetupApproverView/epic/reorderBillPayApprovalRulesEpic.d.ts +0 -23
  327. package/lib/view/spendManagement/billPay/billPaySetupApproverView/epic/reorderBillPayApprovalRulesEpic.js +0 -58
  328. package/lib/view/spendManagement/cashManagement/autoSweepFlow/autoSweepFlowPayload.d.ts +0 -47
  329. package/lib/view/spendManagement/cashManagement/autoSweepFlow/autoSweepFlowPayload.js +0 -34
  330. package/lib/view/spendManagement/cashManagement/autoSweepFlow/autoSweepFlowReducer.d.ts +0 -23
  331. package/lib/view/spendManagement/cashManagement/autoSweepFlow/autoSweepFlowReducer.js +0 -82
  332. package/lib/view/spendManagement/cashManagement/autoSweepFlow/autoSweepFlowSelector.d.ts +0 -40
  333. package/lib/view/spendManagement/cashManagement/autoSweepFlow/autoSweepFlowSelector.js +0 -53
  334. package/lib/view/spendManagement/cashManagement/autoSweepFlow/autoSweepFlowState.d.ts +0 -37
  335. package/lib/view/spendManagement/cashManagement/autoSweepFlow/autoSweepFlowState.js +0 -53
  336. package/lib/view/spendManagement/cashManagement/autoSweepFlow/epics/fetchCashManagementSettingsEpic.d.ts +0 -14
  337. package/lib/view/spendManagement/cashManagement/autoSweepFlow/epics/fetchCashManagementSettingsEpic.js +0 -36
  338. package/lib/view/spendManagement/cashManagement/autoSweepFlow/epics/saveAutoSweepSettingsEpic.d.ts +0 -7
  339. package/lib/view/spendManagement/cashManagement/autoSweepFlow/epics/saveAutoSweepSettingsEpic.js +0 -36
  340. package/lib/view/spendManagement/cashManagement/cashManagementOverview/cashManagementOverviewPayload.d.ts +0 -56
  341. package/lib/view/spendManagement/cashManagement/cashManagementOverview/cashManagementOverviewPayload.js +0 -60
  342. package/lib/view/spendManagement/cashManagement/cashManagementOverview/cashManagementOverviewReducer.d.ts +0 -22
  343. package/lib/view/spendManagement/cashManagement/cashManagementOverview/cashManagementOverviewReducer.js +0 -96
  344. package/lib/view/spendManagement/cashManagement/cashManagementOverview/cashManagementOverviewSelector.d.ts +0 -59
  345. package/lib/view/spendManagement/cashManagement/cashManagementOverview/cashManagementOverviewSelector.js +0 -217
  346. package/lib/view/spendManagement/cashManagement/cashManagementOverview/cashManagementOverviewState.d.ts +0 -122
  347. package/lib/view/spendManagement/cashManagement/cashManagementOverview/cashManagementOverviewState.js +0 -13
  348. package/lib/view/spendManagement/cashManagement/cashManagementOverview/epics/fetchCashManagementBannerEpic.d.ts +0 -7
  349. package/lib/view/spendManagement/cashManagement/cashManagementOverview/epics/fetchCashManagementBannerEpic.js +0 -27
  350. package/lib/view/spendManagement/cashManagement/cashManagementOverview/epics/fetchCashManagementOverviewPageEpic.d.ts +0 -9
  351. package/lib/view/spendManagement/cashManagement/cashManagementOverview/epics/fetchCashManagementOverviewPageEpic.js +0 -40
  352. package/lib/view/spendManagement/cashManagement/cashManagementOverview/epics/fetchCashManagementRecommendationEpic.d.ts +0 -7
  353. package/lib/view/spendManagement/cashManagement/cashManagementOverview/epics/fetchCashManagementRecommendationEpic.js +0 -31
  354. package/lib/view/spendManagement/cashManagement/cashManagementOverview/epics/fetchRecentTransferEpic.d.ts +0 -15
  355. package/lib/view/spendManagement/cashManagement/cashManagementOverview/epics/fetchRecentTransferEpic.js +0 -32
  356. package/lib/view/spendManagement/chargeCards/cardPolicy/cardPolicyDetail/cardPolicyDetailReducer.d.ts +0 -14
  357. package/lib/view/spendManagement/chargeCards/cardPolicy/cardPolicyDetail/cardPolicyDetailReducer.js +0 -56
  358. package/lib/view/spendManagement/chargeCards/cardPolicy/cardPolicyDetail/cardPolicyDetailSelector.d.ts +0 -15
  359. package/lib/view/spendManagement/chargeCards/cardPolicy/cardPolicyDetail/cardPolicyDetailSelector.js +0 -28
  360. package/lib/view/spendManagement/chargeCards/cardPolicy/cardPolicyDetail/cardPolicyDetailState.d.ts +0 -8
  361. package/lib/view/spendManagement/chargeCards/cardPolicy/cardPolicyDetail/cardPolicyDetailState.js +0 -2
  362. package/lib/view/spendManagement/chargeCards/cardPolicy/cardPolicyDetail/fetchCardPolicyDetailEpic.d.ts +0 -8
  363. package/lib/view/spendManagement/chargeCards/cardPolicy/cardPolicyDetail/fetchCardPolicyDetailEpic.js +0 -40
  364. package/lib/view/spendManagement/chargeCards/cardPolicy/cardPolicyDetail/updateCardPolicyEpic.d.ts +0 -8
  365. package/lib/view/spendManagement/chargeCards/cardPolicy/cardPolicyDetail/updateCardPolicyEpic.js +0 -43
  366. package/lib/view/spendManagement/chargeCards/cardPolicy/cardPolicyList/archiveCardPolicyEpic.d.ts +0 -8
  367. package/lib/view/spendManagement/chargeCards/cardPolicy/cardPolicyList/archiveCardPolicyEpic.js +0 -38
  368. package/lib/view/spendManagement/chargeCards/cardPolicy/cardPolicyList/cardPolicyListReducer.d.ts +0 -15
  369. package/lib/view/spendManagement/chargeCards/cardPolicy/cardPolicyList/cardPolicyListReducer.js +0 -75
  370. package/lib/view/spendManagement/chargeCards/cardPolicy/cardPolicyList/cardPolicyListSelector.d.ts +0 -15
  371. package/lib/view/spendManagement/chargeCards/cardPolicy/cardPolicyList/cardPolicyListSelector.js +0 -27
  372. package/lib/view/spendManagement/chargeCards/cardPolicy/cardPolicyList/cardPolicyListState.d.ts +0 -7
  373. package/lib/view/spendManagement/chargeCards/cardPolicy/cardPolicyList/cardPolicyListState.js +0 -2
  374. package/lib/view/spendManagement/chargeCards/cardPolicy/cardPolicyList/fetchCardPolicyListEpic.d.ts +0 -8
  375. package/lib/view/spendManagement/chargeCards/cardPolicy/cardPolicyList/fetchCardPolicyListEpic.js +0 -42
  376. package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/applyAiCardPolicyFormDraftUpdate.d.ts +0 -8
  377. package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/applyAiCardPolicyFormDraftUpdate.js +0 -294
  378. package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/applyExtractedPolicyToAiCardPolicyDraft.d.ts +0 -8
  379. package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/applyExtractedPolicyToAiCardPolicyDraft.js +0 -113
  380. package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/applyExtractedPolicyToDraftEpic.d.ts +0 -9
  381. package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/applyExtractedPolicyToDraftEpic.js +0 -48
  382. package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/applyExtractedPolicyToManualCardPolicyDraft.d.ts +0 -8
  383. package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/applyExtractedPolicyToManualCardPolicyDraft.js +0 -115
  384. package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/applyUploadPlanToAiCardPolicyDraft.d.ts +0 -13
  385. package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/applyUploadPlanToAiCardPolicyDraft.js +0 -29
  386. package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/buildAiCardPolicyFormDraftSeed.d.ts +0 -14
  387. package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/buildAiCardPolicyFormDraftSeed.js +0 -369
  388. package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/buildManualCardPolicyFormDraftSeed.d.ts +0 -6
  389. package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/buildManualCardPolicyFormDraftSeed.js +0 -40
  390. package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/cardPolicyChipIds.d.ts +0 -7
  391. package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/cardPolicyChipIds.js +0 -26
  392. package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/cardPolicyFormDraftTypes.d.ts +0 -116
  393. package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/cardPolicyFormDraftTypes.js +0 -10
  394. package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/cardPolicyRequestParts.d.ts +0 -33
  395. package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/cardPolicyRequestParts.js +0 -126
  396. package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/createCardPolicyReducer.d.ts +0 -52
  397. package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/createCardPolicyReducer.js +0 -158
  398. package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/createCardPolicySelector.d.ts +0 -11
  399. package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/createCardPolicySelector.js +0 -31
  400. package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/createCardPolicyState.d.ts +0 -12
  401. package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/createCardPolicyState.js +0 -2
  402. package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/createCardPolicyTemplateEpic.d.ts +0 -9
  403. package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/createCardPolicyTemplateEpic.js +0 -53
  404. package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/deriveAiPolicyReviewRowsFromInputs.d.ts +0 -10
  405. package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/deriveAiPolicyReviewRowsFromInputs.js +0 -144
  406. package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/fetchCardPolicyMccCategoriesEpic.d.ts +0 -7
  407. package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/fetchCardPolicyMccCategoriesEpic.js +0 -24
  408. package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/seedAiCardPolicyFormDraftEpic.d.ts +0 -11
  409. package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/seedAiCardPolicyFormDraftEpic.js +0 -104
  410. package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/toBulkCardPolicyTemplateRequestsFromDraft.d.ts +0 -22
  411. package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/toBulkCardPolicyTemplateRequestsFromDraft.js +0 -100
  412. package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/toCardPolicyTemplateRequestFromDraft.d.ts +0 -8
  413. package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/toCardPolicyTemplateRequestFromDraft.js +0 -63
  414. package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/toManualCardPolicyTemplateRequestFromDraft.d.ts +0 -3
  415. package/lib/view/spendManagement/chargeCards/cardPolicy/createCardPolicy/toManualCardPolicyTemplateRequestFromDraft.js +0 -28
  416. package/lib/view/spendManagement/chargeCards/issueChargeCard/aiCardCreationFormDraftTypes.d.ts +0 -34
  417. package/lib/view/spendManagement/chargeCards/issueChargeCard/aiCardCreationFormDraftTypes.js +0 -2
  418. package/lib/view/spendManagement/chargeCards/issueChargeCard/applyAiCardCreationFormDraftUpdate.d.ts +0 -7
  419. package/lib/view/spendManagement/chargeCards/issueChargeCard/applyAiCardCreationFormDraftUpdate.js +0 -38
  420. package/lib/view/spendManagement/chargeCards/issueChargeCard/buildAiCardCreationFormDraftSeed.d.ts +0 -12
  421. package/lib/view/spendManagement/chargeCards/issueChargeCard/buildAiCardCreationFormDraftSeed.js +0 -61
  422. package/lib/view/spendManagement/chargeCards/issueChargeCard/deriveAiCardRowsFromTeams.d.ts +0 -9
  423. package/lib/view/spendManagement/chargeCards/issueChargeCard/deriveAiCardRowsFromTeams.js +0 -39
  424. package/lib/view/spendManagement/chargeCards/issueChargeCard/seedAiCardCreationFormDraftEpic.d.ts +0 -11
  425. package/lib/view/spendManagement/chargeCards/issueChargeCard/seedAiCardCreationFormDraftEpic.js +0 -66
  426. package/lib/view/spendManagement/chargeCards/issueChargeCard/toIssueChargeCardLocalDataFromDraft.d.ts +0 -3
  427. package/lib/view/spendManagement/chargeCards/issueChargeCard/toIssueChargeCardLocalDataFromDraft.js +0 -48
  428. package/lib/view/spendManagement/commonSetup/epic/setup/parseUploadedKybDocumentEpic.d.ts +0 -28
  429. package/lib/view/spendManagement/commonSetup/epic/setup/parseUploadedKybDocumentEpic.js +0 -62
  430. package/lib/view/spendManagement/commonSetup/epic/setup/parseUploadedKycDocumentEpic.d.ts +0 -9
  431. package/lib/view/spendManagement/commonSetup/epic/setup/parseUploadedKycDocumentEpic.js +0 -81
  432. package/lib/view/spendManagement/commonSetup/kycKybAutofillActions.d.ts +0 -24
  433. package/lib/view/spendManagement/commonSetup/kycKybAutofillActions.js +0 -17
  434. package/lib/view/spendManagement/commonSetup/kycKybParseMapper.d.ts +0 -29
  435. package/lib/view/spendManagement/commonSetup/kycKybParseMapper.js +0 -229
  436. package/lib/view/spendManagement/commonSetup/types/kycKybAutofill.d.ts +0 -154
  437. package/lib/view/spendManagement/commonSetup/types/kycKybAutofill.js +0 -46
  438. package/lib/view/spendManagement/reimbursement/remiSetupApproverView/epic/reorderRemiApprovalRulesEpic.d.ts +0 -14
  439. package/lib/view/spendManagement/reimbursement/remiSetupApproverView/epic/reorderRemiApprovalRulesEpic.js +0 -65
@@ -1,52 +1,20 @@
1
1
  export const toApprovalChangableInfoPayload = (approverViewUpdateData) => {
2
- // Form-side criteria is a structured object with optional slots for
3
- // amount / vendor / department; flatten it into the wire format's
4
- // `conditions[]` array.
5
- let criteriaPayload;
2
+ let criteriaPayload = [];
6
3
  if (approverViewUpdateData.criteria != null) {
7
- const { amount, vendor, department } = approverViewUpdateData.criteria;
8
- const conditions = [];
9
- if (amount?.min != null) {
10
- conditions.push({
11
- field: 'amount',
12
- type: 'gte',
13
- value: amount.min.amount,
14
- });
15
- }
16
- if (amount?.max != null) {
17
- conditions.push({
18
- field: 'amount',
19
- type: 'lte',
20
- value: amount.max.amount,
21
- });
22
- }
23
- if (vendor != null && vendor.vendorIds.length > 0) {
24
- conditions.push({
25
- field: 'vendor_id',
26
- type: vendor.operator === 'is_not' ? 'not_in' : 'in',
27
- value: vendor.vendorIds,
28
- });
29
- }
30
- if (department != null && department.departmentIds.length > 0) {
31
- conditions.push({
32
- // The backend models 'department' as the accounting class
33
- // entity, so the wire field name is 'accounting_class_id'
34
- // (not 'department_id'). State-side and form-side keep
35
- // 'department' / 'departmentIds' to match product copy.
36
- field: 'accounting_class_id',
37
- type: department.operator === 'is_not' ? 'not_in' : 'in',
38
- value: department.departmentIds,
39
- });
40
- }
41
- if (conditions.length > 0) {
42
- const currency = amount?.min ?? amount?.max ?? null;
43
- criteriaPayload = {
44
- conditions,
45
- criteria_operator: 'and',
46
- currency_code: currency?.currencyCode ?? 'USD',
47
- currency_symbol: currency?.currencySymbol ?? '$',
48
- };
49
- }
4
+ const criteria = approverViewUpdateData.criteria;
5
+ const { rangeType, rangeEntity, range } = criteria;
6
+ const { min, max } = range;
7
+ const { currencyCode, currencySymbol } = min;
8
+ criteriaPayload = [
9
+ {
10
+ type: rangeType,
11
+ range_entity: rangeEntity,
12
+ min: min.amount,
13
+ max: max?.amount ?? null,
14
+ currency_code: currencyCode,
15
+ currency_symbol: currencySymbol,
16
+ },
17
+ ];
50
18
  }
51
19
  const steps = approverViewUpdateData.steps.map((step) => {
52
20
  return {
@@ -67,106 +35,10 @@ export const toApprovalChangableInfoPayload = (approverViewUpdateData) => {
67
35
  });
68
36
  const isUpdate = approverViewUpdateData.approvalRuleId != null;
69
37
  const payload = {
38
+ criteria: criteriaPayload,
70
39
  steps,
71
40
  is_applicable_on_pending_approval_entity: approverViewUpdateData.isApplicableOnPendingApprovalEntity ?? true,
72
41
  };
73
- if (criteriaPayload != null) {
74
- payload.criteria = criteriaPayload;
75
- }
76
- // Approval Rules 3.0 — surface rule-level fields when the form set them.
77
- // Send only what the user actually entered: an undefined value means
78
- // "no opinion" and stays off the wire.
79
- if (approverViewUpdateData.name != null) {
80
- payload.name = approverViewUpdateData.name;
81
- }
82
- if (approverViewUpdateData.description != null) {
83
- payload.description = approverViewUpdateData.description;
84
- }
85
- if (approverViewUpdateData.separationOfDuties != null) {
86
- payload.is_separation_of_duty_enabled =
87
- approverViewUpdateData.separationOfDuties;
88
- }
89
- if (approverViewUpdateData.isFallback != null) {
90
- payload.is_fallback = approverViewUpdateData.isFallback;
91
- }
92
- if (isUpdate) {
93
- payload.approval_rule_id = approverViewUpdateData.approvalRuleId;
94
- }
95
- return payload;
96
- };
97
- /**
98
- * V1 wire mapper — used when 'approval_rule_v3_config' resolves to OFF
99
- * for the current tenant. Emits the legacy snake_case array shape that
100
- * '/approval-rules' historically consumed (see the V1 fixture in
101
- * 'entity/entityApprovalStatus/__mocks__/json/entityApprovalStatusPayload.json'):
102
- * criteria: [{type: 'range', range_entity: 'currency', min, max,
103
- * currency_code, currency_symbol}]
104
- *
105
- * Open-ended semantics are preserved on the wire: an absent 'min' or
106
- * 'max' is sent as 'null' rather than synthesised to '0' or
107
- * 'MAX_SAFE_INTEGER', so a 'greater_than' / 'less_than' rule stays
108
- * one-sided after rollback rather than collapsing into a closed range.
109
- *
110
- * The V1 backend does not understand vendor / department criteria or
111
- * the rule-level 3.0 fields, so those are dropped on the wire.
112
- */
113
- export const toApprovalChangableInfoPayloadV1 = (approverViewUpdateData) => {
114
- const amount = approverViewUpdateData.criteria?.amount;
115
- const minAmount = amount?.min;
116
- const maxAmount = amount?.max;
117
- const currencyCode = minAmount?.currencyCode ?? maxAmount?.currencyCode ?? 'USD';
118
- const currencySymbol = minAmount?.currencySymbol ?? maxAmount?.currencySymbol ?? '$';
119
- const steps = approverViewUpdateData.steps.map((step) => {
120
- return {
121
- action: step.action,
122
- operator: step.operator,
123
- actors: step.actors
124
- .filter((actor) => actor.subType !== 'admin')
125
- .map((actor) => {
126
- return {
127
- type: actor.type,
128
- id: actor.userId ?? null,
129
- sub_type: actor.subType ?? null,
130
- id_type: actor.idType ?? null,
131
- is_implicit_actor: actor.isImplicitActor ?? false,
132
- };
133
- }),
134
- };
135
- });
136
- const isUpdate = approverViewUpdateData.approvalRuleId != null;
137
- const minValue = minAmount?.amount ?? null;
138
- const maxValue = maxAmount?.amount ?? null;
139
- // Approval Rules 3.0 — guard against the both-null case. The form
140
- // is expected to always set at least one bound, but if drift ever
141
- // hands us a rule with no min and no max we'd otherwise emit
142
- // '[{type: range, min: null, max: null, ...}]' — a payload that
143
- // (a) the read-side 'legacyAmountRangeToCriteria' decodes back to
144
- // '[]' (asymmetric round-trip), and (b) the V1 backend will
145
- // reject anyway. Emit 'criteria: []' instead so the save fails
146
- // cleanly on the server side and we leave a breadcrumb in the
147
- // console for diagnosis rather than persisting mis-shaped data.
148
- const criteria = [];
149
- if (minValue == null && maxValue == null) {
150
- console.warn('[approvalRules][V1] toApprovalChangableInfoPayloadV1: rule has ' +
151
- 'no amount bounds; emitting empty criteria array. The V1 backend ' +
152
- 'will reject this save — caller should ensure at least one bound ' +
153
- 'is set on the form.');
154
- }
155
- else {
156
- criteria.push({
157
- type: 'range',
158
- range_entity: 'currency',
159
- min: minValue,
160
- max: maxValue,
161
- currency_code: currencyCode,
162
- currency_symbol: currencySymbol,
163
- });
164
- }
165
- const payload = {
166
- steps,
167
- is_applicable_on_pending_approval_entity: approverViewUpdateData.isApplicableOnPendingApprovalEntity ?? true,
168
- criteria,
169
- };
170
42
  if (isUpdate) {
171
43
  payload.approval_rule_id = approverViewUpdateData.approvalRuleId;
172
44
  }
@@ -1,7 +1,6 @@
1
1
  import recordGet from 'lodash/get';
2
2
  import has from 'lodash/has';
3
3
  import { reduceFetchState } from '../../../../commonStateTypes/reduceFetchState';
4
- import { getAmountCriteria, getDepartmentCriteria, getVendorCriteria, } from '../../../../entity/approvalRule/approvalRuleSelector';
5
4
  import { getBankAccountByBankAccountId, getBankAccountsByBankAccountIds, } from '../../../../entity/bankAccount/bankAccountSelector';
6
5
  import { getContactById, getContactsByIds, } from '../../../../entity/billPay/contact/contactSelector';
7
6
  import { getCompanyByCompanyId } from '../../../../entity/company/companySelector';
@@ -357,14 +356,6 @@ export const getEditBillDetail = (state, isVendorRecommendationFeatureEnabled, i
357
356
  isDeleted,
358
357
  showAutofill,
359
358
  addBillAutoFields,
360
- // Bill-level accounting class. Approval Rules 3.0 'department'
361
- // criteria match against this. Lives on BillTransaction; not on
362
- // any sub-section. Empty-string is normalised to 'undefined'
363
- // so downstream readers treat "no class" uniformly regardless
364
- // of whether the wire used '' or omitted the field.
365
- classId: transaction?.classId != null && transaction.classId !== ''
366
- ? transaction.classId
367
- : undefined,
368
359
  billStage,
369
360
  deleteStatus,
370
361
  billActivities,
@@ -687,59 +678,12 @@ export const getDefaultWithdrawFromAccount = (state, depositAccounts, companyId,
687
678
  }
688
679
  return undefined;
689
680
  };
690
- export const checkIfCreatorIsApprover = (billAmount, approvalRules, signedInUser, billVendorId, billDepartmentId) => {
681
+ export const checkIfCreatorIsApprover = (billAmount, approvalRules, signedInUser) => {
691
682
  let isCreatorAlsoApprover = false;
692
- // Approval Rules 3.0 — a rule applies to a bill only when all of
693
- // its present criteria are satisfied. Criteria not declared on
694
- // the rule are treated as "no narrowing on this axis".
695
- //
696
- // Strict-match semantics for vendor / department: if the rule
697
- // narrows by an axis but the bill has no value on that axis, the
698
- // rule does NOT apply (an absent bill-side value can't satisfy
699
- // either 'is' or 'is_not'). Amount is always present on a rule
700
- // (the form enforces this), but bounds may be one-sided.
701
683
  const approvalRule = approvalRules.find((rule) => {
702
- const vendorCriteria = getVendorCriteria(rule.criteria);
703
- if (vendorCriteria != null) {
704
- if (billVendorId == null) {
705
- return false;
706
- }
707
- const includesVendor = vendorCriteria.vendorIds.includes(billVendorId);
708
- if (vendorCriteria.operator === 'is' && !includesVendor) {
709
- return false;
710
- }
711
- if (vendorCriteria.operator === 'is_not' && includesVendor) {
712
- return false;
713
- }
714
- }
715
- const departmentCriteria = getDepartmentCriteria(rule.criteria);
716
- if (departmentCriteria != null) {
717
- if (billDepartmentId == null) {
718
- return false;
719
- }
720
- const includesDepartment = departmentCriteria.departmentIds.includes(billDepartmentId);
721
- if (departmentCriteria.operator === 'is' && !includesDepartment) {
722
- return false;
723
- }
724
- if (departmentCriteria.operator === 'is_not' && includesDepartment) {
725
- return false;
726
- }
727
- }
728
- const amountCriteria = getAmountCriteria(rule.criteria);
729
- if (amountCriteria == null) {
730
- // The form guarantees an amount criterion on every rule, so
731
- // this branch is defensive against backend drift. Keep
732
- // pre-3.0 behaviour: a rule that doesn't declare amount
733
- // doesn't participate here.
734
- return false;
735
- }
736
- // Bounds use the wire's inclusive 'gte' / 'lte' semantics, and
737
- // either side may be absent for a one-sided 'greater_than' /
738
- // 'less_than' rule.
739
- const { min, max } = amountCriteria;
740
- const matchesMin = min == null || billAmount >= min.amount;
741
- const matchesMax = max == null || billAmount <= max.amount;
742
- return matchesMin && matchesMax;
684
+ const { max, min } = rule.criteria[0].range;
685
+ return (billAmount > min.amount &&
686
+ (max?.amount != null ? billAmount <= max?.amount : true));
743
687
  });
744
688
  if (approvalRule != null) {
745
689
  const requireApprovalSteps = approvalRule.steps.filter((step) => step.action === 'require_approval');
@@ -38,10 +38,7 @@ export const fetchEditBillDetailPageEpic = (actions$, state$) => actions$.pipe(f
38
38
  else {
39
39
  billDetailActions.push(updateShowAutofill(true));
40
40
  }
41
- // Side-fetch from the edit-bill page bootstrap. The triggering
42
- // action doesn't carry the V3 flag, so we explicitly target v1
43
- // here; tenants on v3 re-fetch through their own screen connector.
44
- billDetailActions.push(fetchBillPaySetupApproverView(true, true, false));
41
+ billDetailActions.push(fetchBillPaySetupApproverView(true));
45
42
  }
46
43
  else {
47
44
  if (state.ownerListState.fetchState !== 'In-Progress' &&
@@ -84,10 +81,7 @@ export const fetchEditBillDetailPageEpic = (actions$, state$) => actions$.pipe(f
84
81
  // While opening New Bill Refresh Approval Rules and Payment Accounts
85
82
  if (approvalViewFetchState !== 'In-Progress' &&
86
83
  approvalViewFetchState !== 'Completed') {
87
- // Side-fetch from the edit-bill page bootstrap. The triggering
88
- // action doesn't carry the V3 flag, so we explicitly target v1
89
- // here; tenants on v3 re-fetch through their own screen connector.
90
- billDetailActions.push(fetchBillPaySetupApproverView(true, true, false));
84
+ billDetailActions.push(fetchBillPaySetupApproverView(true));
91
85
  }
92
86
  }
93
87
  return concat(from(billDetailActions));
@@ -87,31 +87,6 @@ export const getChargeCardListView = (state, includeCreditAccountDebitSummaryAnd
87
87
  hasDebitCard,
88
88
  };
89
89
  };
90
- /**
91
- * Returns every enriched `ChargeCardWithUser` for the tenant, without
92
- * applying the cards-list screen's `searchText` filter or its column
93
- * `sortKey/sortOrder`. Used by surfaces that need the raw card universe
94
- * decoupled from whatever the user has typed/sorted on the cards list
95
- * (e.g. the Card Policy "Apply to Cards" picker, which owns its own
96
- * search + sort UI). The list-screen's filter/sort state is intentionally
97
- * left untouched so revisits to the cards list still restore the user's
98
- * search.
99
- */
100
- export const getAllChargeCardsWithUser = (state) => {
101
- const { chargeCardListState, chargeCardState, chargeCardConfigState } = state;
102
- const cards = getChargeCardsByIds(chargeCardState, chargeCardListState.cardIds);
103
- const chargeCardsWithUser = getChargeCardsWithUser(cards, state);
104
- const fetchState = reduceFetchState([
105
- chargeCardListState,
106
- chargeCardConfigState,
107
- ]).fetchState;
108
- return {
109
- fetchState,
110
- error: chargeCardListState.error,
111
- cards: chargeCardsWithUser,
112
- version: '1.0',
113
- };
114
- };
115
90
  export const getMyPendingActivationChargeCardListView = (state) => {
116
91
  const { tenantState, chargeCardListState, chargeCardState } = state;
117
92
  const cards = getChargeCardsByIds(chargeCardState, chargeCardListState.cardIds);
@@ -7,7 +7,7 @@ import { updateAllUsers } from '../../../../entity/user/userReducer';
7
7
  import { updateUserRoles } from '../../../../entity/userRole/userRoleReducer';
8
8
  import { createZeniAPIStatus, isSuccessStatus, } from '../../../../responsePayload';
9
9
  import { updateChargeCardList } from '../chargeCardList/chargeCardListReducer';
10
- import { issueChargeCardSuccessOrFailure, issueChargeCards, updateChargeCardCount, updateDebitCardCount, updateLastIssuedCardIds, updateLastSelfIssuedDebitCardId, } from './issueChargeCardReducer';
10
+ import { issueChargeCardSuccessOrFailure, issueChargeCards, updateChargeCardCount, updateDebitCardCount, updateLastSelfIssuedDebitCardId, } from './issueChargeCardReducer';
11
11
  export const issueChargeCardEpic = (actions$, state$, zeniAPI) => actions$.pipe(filter(issueChargeCards.match), switchMap(() => {
12
12
  const state = state$.value;
13
13
  const loggedInUserId = state$.value.tenantState.loggedInUser?.userId;
@@ -87,7 +87,7 @@ export const issueChargeCardEpic = (actions$, state$, zeniAPI) => actions$.pipe(
87
87
  actions.push(updateChargeCards(issuedCards), updateAllUsers({ users: response.data.users }), updateUserRoles(response.data.user_roles), updateChargeCardList({
88
88
  chargeCardListPayload: response.data,
89
89
  keepExistingListItems: true,
90
- }), updateAddresses(response.data.addresses), updateChargeCardCount(response.data?.cards_count_by_user_id ?? []), updateDebitCardCount(response.data?.debit_cards_count_by_deposit_account_id ?? {}), updateLastIssuedCardIds(issuedCards.map((card) => card.card_id)), issueChargeCardSuccessOrFailure({ fetchState: 'Completed' }));
90
+ }), updateAddresses(response.data.addresses), updateChargeCardCount(response.data?.cards_count_by_user_id ?? []), updateDebitCardCount(response.data?.debit_cards_count_by_deposit_account_id ?? {}), issueChargeCardSuccessOrFailure({ fetchState: 'Completed' }));
91
91
  if (issuedCards.length === 1 &&
92
92
  (issuedCards[0].card_type.code ===
93
93
  'business_virtual_debit_card' ||
@@ -1,6 +1,4 @@
1
1
  import { createSlice } from '@reduxjs/toolkit';
2
- import { applyAiCardCreationFormDraftUpdate } from './applyAiCardCreationFormDraftUpdate';
3
- import { buildAiCardCreationFormDraftSeed } from './buildAiCardCreationFormDraftSeed';
4
2
  export const initialState = {
5
3
  depositAccountIds: [],
6
4
  depositAccountsFetchState: { fetchState: 'Not-Started', error: undefined },
@@ -16,7 +14,6 @@ export const initialState = {
16
14
  },
17
15
  activeChargeCardCount: {},
18
16
  activeDebitCardCountByDepositAccountId: {},
19
- lastIssuedCardIds: [],
20
17
  };
21
18
  const issueChargeCard = createSlice({
22
19
  name: 'issueChargeCard',
@@ -37,19 +34,14 @@ const issueChargeCard = createSlice({
37
34
  },
38
35
  },
39
36
  issueChargeCards: {
40
- prepare(payload) {
41
- return { payload: payload ?? {} };
37
+ prepare() {
38
+ return { payload: {} };
42
39
  },
43
- reducer(draft, action) {
40
+ reducer(draft) {
44
41
  draft.saveStatus.fetchState = 'In-Progress';
45
42
  draft.saveStatus.error = undefined;
46
- draft.lastIssueSourceChatSessionId = action.payload.sourceChatSessionId;
47
- draft.lastIssuedCardIds = [];
48
43
  },
49
44
  },
50
- updateLastIssuedCardIds(draft, action) {
51
- draft.lastIssuedCardIds = action.payload;
52
- },
53
45
  updateChargeCardsLocalStore(draft, action) {
54
46
  draft.localData = action.payload;
55
47
  },
@@ -57,8 +49,6 @@ const issueChargeCard = createSlice({
57
49
  draft.localData = [...initialState.localData];
58
50
  draft.saveStatus = initialState.saveStatus;
59
51
  draft.lastSelfIssuedDebitCardId = undefined;
60
- draft.lastIssueSourceChatSessionId = undefined;
61
- draft.lastIssuedCardIds = [];
62
52
  },
63
53
  updateLastSelfIssuedDebitCardId(draft, action) {
64
54
  draft.lastSelfIssuedDebitCardId = action.payload;
@@ -134,38 +124,10 @@ const issueChargeCard = createSlice({
134
124
  draft.depositAccountsFetchState.fetchState = action.payload.fetchState;
135
125
  draft.depositAccountsFetchState.error = action.payload.error;
136
126
  },
137
- // Dispatched once when `CardsCreationInteractiveForm` mounts (or the AI
138
- // payload arrives).
139
- seedAiCardCreationFormDraft: {
140
- reducer(draft, action) {
141
- const { draft: nextDraft, context } = buildAiCardCreationFormDraftSeed({
142
- allUsers: action.payload.allUsers,
143
- initialData: action.payload.initialData,
144
- });
145
- draft.aiCardCreationFormDraft = nextDraft;
146
- draft.aiCardCreationFormDraftContext = context;
147
- },
148
- prepare(allUsers, initialData) {
149
- return { payload: { allUsers, initialData } };
150
- },
151
- },
152
- // Derivation lives in `applyAiCardCreationFormDraftUpdate` so the
153
- // Storybook owner harness shares the same rules.
154
- updateAiCardCreationFormDraft(draft, action) {
155
- draft.aiCardCreationFormDraft = applyAiCardCreationFormDraftUpdate({
156
- prev: draft.aiCardCreationFormDraft,
157
- next: action.payload,
158
- context: draft.aiCardCreationFormDraftContext,
159
- });
160
- },
161
- clearAiCardCreationFormDraft(draft) {
162
- draft.aiCardCreationFormDraft = undefined;
163
- draft.aiCardCreationFormDraftContext = undefined;
164
- },
165
127
  clearIssueChargeCard(draft) {
166
128
  Object.assign(draft, initialState);
167
129
  },
168
130
  },
169
131
  });
170
- export const { issueChargeCards, updateChargeCardsLocalStore, updateLastSelfIssuedDebitCardId, updateLastIssuedCardIds, issueChargeCardSuccessOrFailure, resetIssueChargeCardForm, updateCustomAddressId, updateChargeCardCount, updateDebitCardCount, fetchIssueCardPage, updateDepositAccountsInCards, fetchDepositAccountListForCards, updateDepositAccountListForCardsFetchStatus, seedAiCardCreationFormDraft, updateAiCardCreationFormDraft, clearAiCardCreationFormDraft, clearIssueChargeCard, } = issueChargeCard.actions;
132
+ export const { issueChargeCards, updateChargeCardsLocalStore, updateLastSelfIssuedDebitCardId, issueChargeCardSuccessOrFailure, resetIssueChargeCardForm, updateCustomAddressId, updateChargeCardCount, updateDebitCardCount, fetchIssueCardPage, updateDepositAccountsInCards, fetchDepositAccountListForCards, updateDepositAccountListForCardsFetchStatus, clearIssueChargeCard, } = issueChargeCard.actions;
171
133
  export default issueChargeCard.reducer;
@@ -5,7 +5,6 @@ import { getDepositAccountLimitsForChargeCardByDepositAccountIds } from '../../.
5
5
  import { getCurrentTenant } from '../../../../entity/tenant/tenantSelector';
6
6
  import { getNewAddress } from '../../../addressView/addressViewSelector';
7
7
  import { getUserList } from '../../../userListView/userListViewSelector';
8
- import { toIssueChargeCardLocalDataFromDraft } from './toIssueChargeCardLocalDataFromDraft';
9
8
  export const getIssueChargeCardView = (state, isCreditCardEnabled, isDebitCardEnabled) => {
10
9
  const { issueChargeCardState, userState, userRoleState, userListViewState, chargeCardConfigState, chargeCardListState, addressState, classState, depositAccountState, classListState, } = state;
11
10
  const userListSelectorView = getUserList(userState, userRoleState, userListViewState, 'cardHolderCandidate');
@@ -94,37 +93,3 @@ export const getIssueChargeCardView = (state, isCreditCardEnabled, isDebitCardEn
94
93
  lastSelfIssuedDebitCardId: issueChargeCardState.lastSelfIssuedDebitCardId,
95
94
  };
96
95
  };
97
- // AI CFO chat session that triggered the most recent issue; lets the cards
98
- // list screen attribute the pending placeholder + synthetic drawer bubble.
99
- export const getLastIssueChargeCardsSourceChatSessionId = (state) => {
100
- return state.issueChargeCardState.lastIssueSourceChatSessionId;
101
- };
102
- // Cards created by the most recent successful issue; AI CFO drawer's "Created"
103
- // bubble maps back through these.
104
- export const getLastIssuedChargeCardIds = (state) => {
105
- return state.issueChargeCardState.lastIssuedCardIds;
106
- };
107
- export const getIssueChargeCardsSaveStatus = (state) => {
108
- return state.issueChargeCardState.saveStatus;
109
- };
110
- // Mirrors `localData.length` while in flight so the list can render N skeleton
111
- // rows at the top of the table.
112
- export const getInFlightIssueChargeCardsCount = (state) => {
113
- if (state.issueChargeCardState.saveStatus.fetchState !== 'In-Progress') {
114
- return 0;
115
- }
116
- return state.issueChargeCardState.localData.length;
117
- };
118
- // Hydrates `CardsCreationInteractiveForm`'s RHF; `undefined` outside the
119
- // seed/clear window.
120
- export const getAiCardCreationFormDraft = (state) => {
121
- return state.issueChargeCardState.aiCardCreationFormDraft;
122
- };
123
- // Returns [] when the draft is absent so callers can short-circuit submission.
124
- export const selectIssueChargeCardLocalDataFromDraft = (state) => {
125
- const draft = state.issueChargeCardState.aiCardCreationFormDraft;
126
- if (draft == null) {
127
- return [];
128
- }
129
- return toIssueChargeCardLocalDataFromDraft(draft);
130
- };
@@ -1,30 +1,62 @@
1
1
  import { createSlice } from '@reduxjs/toolkit';
2
- import { parseUploadedKybDocument, parseUploadedKybDocumentFailure, parseUploadedKycDocument, parseUploadedKycDocumentFailure, } from './kycKybAutofillActions';
3
2
  const initialFetchStatus = {
4
3
  fetchState: 'Not-Started',
5
4
  error: undefined,
6
5
  };
7
- const emptyOfficerSlot = {
8
- autoFilledFields: [],
9
- localData: undefined,
10
- sendOtpStatus: initialFetchStatus,
11
- otpverificationStatus: initialFetchStatus,
12
- };
13
6
  export const initialState = {
14
7
  updateStatus: { fetchState: 'Not-Started', error: undefined },
15
- parsingDocumentFileIds: [],
16
- companyDetails: { autoFilledFields: [] },
8
+ companyDetails: {},
17
9
  companyOfficerUpdateStatus: {
18
- Officer_1: { ...emptyOfficerSlot },
19
- Officer_2: { ...emptyOfficerSlot },
20
- Officer_3: { ...emptyOfficerSlot },
21
- Officer_4: { ...emptyOfficerSlot },
22
- Officer_5: { ...emptyOfficerSlot },
23
- Officer_6: { ...emptyOfficerSlot },
24
- Officer_7: { ...emptyOfficerSlot },
25
- Officer_8: { ...emptyOfficerSlot },
26
- Officer_9: { ...emptyOfficerSlot },
27
- Officer_10: { ...emptyOfficerSlot },
10
+ Officer_1: {
11
+ localData: undefined,
12
+ sendOtpStatus: initialFetchStatus,
13
+ otpverificationStatus: initialFetchStatus,
14
+ },
15
+ Officer_2: {
16
+ localData: undefined,
17
+ sendOtpStatus: initialFetchStatus,
18
+ otpverificationStatus: initialFetchStatus,
19
+ },
20
+ Officer_3: {
21
+ localData: undefined,
22
+ sendOtpStatus: initialFetchStatus,
23
+ otpverificationStatus: initialFetchStatus,
24
+ },
25
+ Officer_4: {
26
+ localData: undefined,
27
+ sendOtpStatus: initialFetchStatus,
28
+ otpverificationStatus: initialFetchStatus,
29
+ },
30
+ Officer_5: {
31
+ localData: undefined,
32
+ sendOtpStatus: initialFetchStatus,
33
+ otpverificationStatus: initialFetchStatus,
34
+ },
35
+ Officer_6: {
36
+ localData: undefined,
37
+ sendOtpStatus: initialFetchStatus,
38
+ otpverificationStatus: initialFetchStatus,
39
+ },
40
+ Officer_7: {
41
+ localData: undefined,
42
+ sendOtpStatus: initialFetchStatus,
43
+ otpverificationStatus: initialFetchStatus,
44
+ },
45
+ Officer_8: {
46
+ localData: undefined,
47
+ sendOtpStatus: initialFetchStatus,
48
+ otpverificationStatus: initialFetchStatus,
49
+ },
50
+ Officer_9: {
51
+ localData: undefined,
52
+ sendOtpStatus: initialFetchStatus,
53
+ otpverificationStatus: initialFetchStatus,
54
+ },
55
+ Officer_10: {
56
+ localData: undefined,
57
+ sendOtpStatus: initialFetchStatus,
58
+ otpverificationStatus: initialFetchStatus,
59
+ },
28
60
  },
29
61
  primaryContactDetails: {},
30
62
  };
@@ -265,93 +297,7 @@ const setupView = createSlice({
265
297
  clearSetupView(draft) {
266
298
  Object.assign(draft, initialState);
267
299
  },
268
- /**
269
- * Merge AI-parsed officer fields into the selected officer's localData and
270
- * track which field names were autofilled so the form can show the ✦ badge.
271
- */
272
- applyKycDocumentAutofillForSetup: {
273
- reducer(draft, action) {
274
- const { officerType, values, autoFilledFieldNames, fileId } = action.payload;
275
- const slot = draft.companyOfficerUpdateStatus[officerType];
276
- slot.localData = Object.assign({}, slot.localData, values);
277
- slot.autoFilledFields = Array.from(new Set([...(slot.autoFilledFields ?? []), ...autoFilledFieldNames]));
278
- draft.parsingDocumentFileIds = (draft.parsingDocumentFileIds ?? []).filter((id) => id !== fileId);
279
- },
280
- prepare(payload) {
281
- return { payload };
282
- },
283
- },
284
- /**
285
- * Merge AI-parsed company fields into companyDetails.localData and track
286
- * which field names were autofilled.
287
- */
288
- applyKybDocumentAutofillForSetup: {
289
- reducer(draft, action) {
290
- const { values, autoFilledFieldNames, fileId } = action.payload;
291
- draft.companyDetails.localData = Object.assign({}, draft.companyDetails.localData, values);
292
- draft.companyDetails.autoFilledFields = Array.from(new Set([
293
- ...(draft.companyDetails.autoFilledFields ?? []),
294
- ...autoFilledFieldNames,
295
- ]));
296
- draft.parsingDocumentFileIds = (draft.parsingDocumentFileIds ?? []).filter((id) => id !== fileId);
297
- },
298
- prepare(payload) {
299
- return { payload };
300
- },
301
- },
302
- /**
303
- * Wipe AI-autofill badges. If `officerType` is provided, clears only that
304
- * officer; otherwise clears company details too.
305
- */
306
- clearKycKybAutofillForSetup: {
307
- reducer(draft, action) {
308
- const { officerType } = action.payload;
309
- if (officerType != null) {
310
- draft.companyOfficerUpdateStatus[officerType].autoFilledFields = [];
311
- }
312
- else {
313
- draft.companyDetails.autoFilledFields = [];
314
- Object.keys(draft.companyOfficerUpdateStatus).forEach((key) => {
315
- draft.companyOfficerUpdateStatus[key].autoFilledFields = [];
316
- });
317
- }
318
- },
319
- prepare(payload = {}) {
320
- return { payload };
321
- },
322
- },
323
- },
324
- extraReducers: (builder) => {
325
- const addParsingFileId = (draft, fileId) => {
326
- draft.parsingDocumentFileIds = draft.parsingDocumentFileIds ?? [];
327
- if (!draft.parsingDocumentFileIds.includes(fileId)) {
328
- draft.parsingDocumentFileIds.push(fileId);
329
- }
330
- };
331
- const removeParsingFileId = (draft, fileId) => {
332
- draft.parsingDocumentFileIds = (draft.parsingDocumentFileIds ?? []).filter((id) => id !== fileId);
333
- };
334
- builder.addCase(parseUploadedKycDocument, (draft, action) => {
335
- if (action.payload.target === 'setup') {
336
- addParsingFileId(draft, action.payload.fileId);
337
- }
338
- });
339
- builder.addCase(parseUploadedKybDocument, (draft, action) => {
340
- if (action.payload.target === 'setup') {
341
- addParsingFileId(draft, action.payload.fileId);
342
- }
343
- });
344
- builder.addCase(parseUploadedKycDocumentFailure, (draft, action) => {
345
- if (action.payload.target === 'setup') {
346
- removeParsingFileId(draft, action.payload.fileId);
347
- }
348
- });
349
- builder.addCase(parseUploadedKybDocumentFailure, (draft, action) => {
350
- if (action.payload.target === 'setup') {
351
- removeParsingFileId(draft, action.payload.fileId);
352
- }
353
- });
354
300
  },
355
301
  });
356
- export const { enableSetup, enableSetupSuccess, enableSetupFailure, updateBusinessVerificationDetails, updateBusinessVerificationDetailsSuccess, updateBusinessVerificationDetailsFailure, updateSelectedCompanyOfficer, updateSetupViewLocalStoreData, saveSetupViewDataInLocalStore, saveCompnayOfficerPhoneInLocalStore, saveCompnayOfficerAdditionalDocumentsInLocalStore, saveTreasuryAdditionalDocumentsInLocalStore, sendOtp: sendOtpSpendManagementSetUp, resendOtp: resendOtpSpendManagementSetUp, sendOtpSuccess: sendOtpSuccessSpendManagementSetUp, sendOtpFailure: sendOtpFailureSpendManagementSetUp, verifyOtp: verifyOtpSpendManagementSetUp, verifyOtpSuccess: verifyOtpSuccessSpendManagementSetUp, verifyOtpFailure: verifyOtpFailureSpendManagementSetUp, saveIndustryAndIncDateInLocalStore, clearSetupViewDataInLocalStore, clearSetupView, applyKycDocumentAutofillForSetup, applyKybDocumentAutofillForSetup, clearKycKybAutofillForSetup, } = setupView.actions;
302
+ export const { enableSetup, enableSetupSuccess, enableSetupFailure, updateBusinessVerificationDetails, updateBusinessVerificationDetailsSuccess, updateBusinessVerificationDetailsFailure, updateSelectedCompanyOfficer, updateSetupViewLocalStoreData, saveSetupViewDataInLocalStore, saveCompnayOfficerPhoneInLocalStore, saveCompnayOfficerAdditionalDocumentsInLocalStore, saveTreasuryAdditionalDocumentsInLocalStore, sendOtp: sendOtpSpendManagementSetUp, resendOtp: resendOtpSpendManagementSetUp, sendOtpSuccess: sendOtpSuccessSpendManagementSetUp, sendOtpFailure: sendOtpFailureSpendManagementSetUp, verifyOtp: verifyOtpSpendManagementSetUp, verifyOtpSuccess: verifyOtpSuccessSpendManagementSetUp, verifyOtpFailure: verifyOtpFailureSpendManagementSetUp, saveIndustryAndIncDateInLocalStore, clearSetupViewDataInLocalStore, clearSetupView, } = setupView.actions;
357
303
  export default setupView.reducer;