@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
@@ -11,7 +11,6 @@ import billTransaction, { initialState as initialBillTransactionState, } from '.
11
11
  import contact, { initialState as initialContactState, } from './entity/billPay/contact/contactReducer';
12
12
  import recurringBill, { initialState as initialRecurringBillState, } from './entity/billPay/recurringBills/recurringBillsReducer';
13
13
  import cardPayment, { initialState as initialCardPaymentState, } from './entity/cardPayment/cardPaymentReducer';
14
- import cardPolicy, { initialState as initialCardPolicyState, } from './entity/cardPolicy/cardPolicyReducer';
15
14
  import chargeCard, { initialState as initialChargeCardState, } from './entity/chargeCard/chargeCardReducer';
16
15
  import chargeCardRepayment, { initialState as initialChargeCardRepaymentState, } from './entity/chargeCardRepayment/chargeCardRepaymentReducer';
17
16
  import chargeCardTransaction, { initialState as initialChargeCardTransactionState, } from './entity/chargeCardTransaction/chargeCardTransactionReducer';
@@ -159,11 +158,6 @@ import internationalWireVerification, { initialState as initialInternationalWire
159
158
  import magicLinkView, { initialState as initialMagicLinkViewState, } from './view/spendManagement/billPay/magicLinkView/magicLinkViewReducer';
160
159
  import previousBills, { initialState as initialPreviousBillsState, } from './view/spendManagement/billPay/previousBills/previousBillsReducer';
161
160
  import wiseRedirect, { initialState as initialWiseRedirectState, } from './view/spendManagement/billPay/wiseRedirectView/wiseRedirectReducer';
162
- import autoSweepFlow, { initialState as initialAutoSweepFlowState, } from './view/spendManagement/cashManagement/autoSweepFlow/autoSweepFlowReducer';
163
- import cashManagementOverview, { initialState as initialCashManagementOverviewState, } from './view/spendManagement/cashManagement/cashManagementOverview/cashManagementOverviewReducer';
164
- import cardPolicyDetail, { initialState as initialCardPolicyDetailState, } from './view/spendManagement/chargeCards/cardPolicy/cardPolicyDetail/cardPolicyDetailReducer';
165
- import cardPolicyList, { initialState as initialCardPolicyListState, } from './view/spendManagement/chargeCards/cardPolicy/cardPolicyList/cardPolicyListReducer';
166
- import createCardPolicy, { initialState as initialCreateCardPolicyState, } from './view/spendManagement/chargeCards/cardPolicy/createCardPolicy/createCardPolicyReducer';
167
161
  import cardUserOnboarding, { initialState as initialCardUserOnboardingState, } from './view/spendManagement/chargeCards/cardUserOnboarding/cardUserOnboardingReducer';
168
162
  import cashbackDetail, { initialState as initialCashbackDetailState, } from './view/spendManagement/chargeCards/cashbackDetail/cashbackDetailReducer';
169
163
  import chargeCardConfig, { initialState as initialChargeCardConfigState, } from './view/spendManagement/chargeCards/chargeCardConfig/chargeCardConfigReducer';
@@ -244,7 +238,6 @@ const initialEntitiesState = {
244
238
  bankAccountState: initialBankAccountState,
245
239
  billTransactionState: initialBillTransactionState,
246
240
  cardPaymentState: initialCardPaymentState,
247
- cardPolicyState: initialCardPolicyState,
248
241
  chargeCardState: initialChargeCardState,
249
242
  chargeCardRepaymentState: initialChargeCardRepaymentState,
250
243
  chargeCardTransactionState: initialChargeCardTransactionState,
@@ -316,7 +309,6 @@ const initialViewsState = {
316
309
  arAgingState: initialArAgingState,
317
310
  auditReportViewState: initialAuditReportViewState,
318
311
  authenticationViewState: initialAuthenticationViewState,
319
- autoSweepFlowState: initialAutoSweepFlowState,
320
312
  autotransferRulesState: initialAutotransferRulesState,
321
313
  balanceSheetState: initialBalanceSheetState,
322
314
  bankAccountViewState: initialBankAccountView,
@@ -330,14 +322,11 @@ const initialViewsState = {
330
322
  billsBulkActionViewState: initialBillsBulkActionViewState,
331
323
  cardBalanceState: initialCardBalanceState,
332
324
  cardPaymentViewState: initialCardPaymentViewState,
333
- cardPolicyDetailState: initialCardPolicyDetailState,
334
- cardPolicyListState: initialCardPolicyListState,
335
325
  cardUserOnboardingState: initialCardUserOnboardingState,
336
326
  cashbackDetailState: initialCashbackDetailState,
337
327
  cashBalanceState: initialCashBalanceState,
338
328
  cashFlowState: initialCashFlowState,
339
329
  cashInCashOutState: initialCashInCashOutState,
340
- cashManagementOverviewState: initialCashManagementOverviewState,
341
330
  cashPositionState: initialCashPositionState,
342
331
  chargeCardConfigState: initialChargeCardConfigState,
343
332
  chargeCardDetailState: initialChargeCardDetailState,
@@ -356,7 +345,6 @@ const initialViewsState = {
356
345
  companyTaskManagerViewState: initialCompanyTaskManagerViewState,
357
346
  companyViewState: initialCompanyViewState,
358
347
  countryListState: initialCountryListState,
359
- createCardPolicyState: initialCreateCardPolicyState,
360
348
  creditAgentEntityState: initialCreditAgentEntityState,
361
349
  creditAgentViewState: initialCreditAgentViewState,
362
350
  dashboardLayoutState: initialDashboardLayoutState,
@@ -487,7 +475,6 @@ const entityReducers = {
487
475
  billPayConfigState: billPayConfig,
488
476
  billTransactionState: billTransaction,
489
477
  cardPaymentState: cardPayment,
490
- cardPolicyState: cardPolicy,
491
478
  chargeCardState: chargeCard,
492
479
  chargeCardRepaymentState: chargeCardRepayment,
493
480
  chargeCardTransactionState: chargeCardTransaction,
@@ -559,7 +546,6 @@ const viewReducers = {
559
546
  arAgingState: arAging,
560
547
  auditReportViewState: auditReportView,
561
548
  authenticationViewState: authentication,
562
- autoSweepFlowState: autoSweepFlow,
563
549
  autotransferRulesState: autotransferRules,
564
550
  balanceSheetState: balanceSheet,
565
551
  bankAccountViewState: bankAccountView,
@@ -572,14 +558,11 @@ const viewReducers = {
572
558
  billsBulkActionViewState: billsBulkActionView,
573
559
  cardBalanceState: cardBalance,
574
560
  cardPaymentViewState: cardPaymentView,
575
- cardPolicyDetailState: cardPolicyDetail,
576
- cardPolicyListState: cardPolicyList,
577
561
  cardUserOnboardingState: cardUserOnboarding,
578
562
  cashbackDetailState: cashbackDetail,
579
563
  cashBalanceState: cashBalance,
580
564
  cashFlowState: cashFlow,
581
565
  cashInCashOutState: cashInCashOut,
582
- cashManagementOverviewState: cashManagementOverview,
583
566
  cashPositionState: cashPosition,
584
567
  chargeCardConfigState: chargeCardConfig,
585
568
  chargeCardDetailState: chargeCardDetail,
@@ -598,7 +581,6 @@ const viewReducers = {
598
581
  companyTaskManagerViewState: companyTaskManagerView,
599
582
  companyViewState: companyView,
600
583
  countryListState: countryList,
601
- createCardPolicyState: createCardPolicy,
602
584
  creditAgentEntityState: creditAgentEntity,
603
585
  creditAgentViewState: creditAgentView,
604
586
  dashboardState: dashboard,
@@ -188,10 +188,8 @@ const aiCfoView = createSlice({
188
188
  draft.createSessionState.fetchState = 'In-Progress';
189
189
  draft.createSessionState.error = undefined;
190
190
  },
191
- prepare(agentId, userId, contextRefId, contextType, pageContext) {
192
- return {
193
- payload: { agentId, contextRefId, contextType, pageContext, userId },
194
- };
191
+ prepare(agentId, userId, contextRefId, contextType) {
192
+ return { payload: { agentId, contextRefId, contextType, userId } };
195
193
  },
196
194
  },
197
195
  createSessionSuccess(draft, action) {
@@ -222,7 +220,7 @@ const aiCfoView = createSlice({
222
220
  draft.createSessionAndSubmitState.fetchState = 'In-Progress';
223
221
  draft.createSessionAndSubmitState.error = undefined;
224
222
  },
225
- prepare(agentId, userId, questionAnswerId, questionId, createdAt, question, files, pageContext) {
223
+ prepare(agentId, userId, questionAnswerId, questionId, createdAt, question, files) {
226
224
  return {
227
225
  payload: {
228
226
  agentId,
@@ -232,7 +230,6 @@ const aiCfoView = createSlice({
232
230
  createdAt,
233
231
  question,
234
232
  files,
235
- pageContext,
236
233
  },
237
234
  };
238
235
  },
@@ -66,11 +66,8 @@ function waitForChannelSubscription(pusherInstance, channelName, timeoutMs = 500
66
66
  }));
67
67
  }
68
68
  export const createSessionAndSubmitEpic = (actions$, _state$, zeniAPI) => actions$.pipe(filter(createSessionAndSubmit.match), switchMap((action) => {
69
- const { agentId, userId, questionAnswerId, questionId, createdAt, question, files, pageContext, } = action.payload;
70
- const payload = {
71
- agent_id: agentId,
72
- ...(pageContext != null && { page_context: pageContext }),
73
- };
69
+ const { agentId, userId, questionAnswerId, questionId, createdAt, question, files, } = action.payload;
70
+ const payload = { agent_id: agentId };
74
71
  return zeniAPI
75
72
  .postAndGetJSON(`${zeniAPI.apiEndPoints.aiCfoMicroServiceBaseUrl}/1.0/sessions`, payload)
76
73
  .pipe(mergeMap((response) => {
@@ -5,12 +5,11 @@ import { createZeniAPIStatus, isSuccessResponse } from '../../../responsePayload
5
5
  import { date as zeniDate } from '../../../zeniDayJS';
6
6
  import { createSession, createSessionFailure, createSessionSuccess, } from '../aiCfoViewReducer';
7
7
  export const createSessionEpic = (actions$, _, zeniAPI) => actions$.pipe(filter(createSession.match), switchMap((action) => {
8
- const { agentId, contextRefId, contextType, pageContext, userId } = action.payload;
8
+ const { agentId, contextRefId, contextType, userId } = action.payload;
9
9
  const payload = {
10
10
  agent_id: agentId,
11
11
  ...(contextRefId != null && { context_ref_id: contextRefId }),
12
12
  ...(contextType != null && { context_type: contextType }),
13
- ...(pageContext != null && { page_context: pageContext }),
14
13
  };
15
14
  return zeniAPI
16
15
  .postAndGetJSON(`${zeniAPI.apiEndPoints.aiCfoMicroServiceBaseUrl}/1.0/sessions`, payload)
@@ -2,23 +2,13 @@ import { of } from 'rxjs';
2
2
  import { catchError, filter, mergeMap } from 'rxjs/operators';
3
3
  import { createZeniAPIStatus, isSuccessResponse } from '../../../responsePayload';
4
4
  import { fetchSuggestedQuestions, fetchSuggestedQuestionsFailure, fetchSuggestedQuestionsSuccess, } from '../aiCfoViewReducer';
5
- /**
6
- * GET {aiCfoMicroServiceBaseUrl}/1.0/suggested-questions?page_context=...
7
- *
8
- * Appends `&no_card_created=true` when the action payload sets
9
- * `noCardCreated: true` (AI Card Creation flow on the cards list — the tenant
10
- * has not yet created any card). Any other value omits the flag entirely so
11
- * the existing call sites continue to issue the unchanged request.
12
- */
5
+ /** GET {aiCfoMicroServiceBaseUrl}/1.0/suggested-questions?page_context=... */
13
6
  export const fetchSuggestedQuestionsEpic = (actions$, _state$, zeniAPI) => actions$.pipe(filter(fetchSuggestedQuestions.match),
14
7
  // mergeMap (not switchMap): each page_context is keyed separately in Redux; switchMap
15
8
  // would cancel in-flight HTTP for context A when B is requested, leaving A stuck In-Progress.
16
9
  mergeMap((action) => {
17
- const { pageContext, noCardCreated } = action.payload;
10
+ const { pageContext } = action.payload;
18
11
  const query = new URLSearchParams({ page_context: pageContext });
19
- if (noCardCreated === true) {
20
- query.set('no_card_created', 'true');
21
- }
22
12
  const url = `${zeniAPI.apiEndPoints.aiCfoMicroServiceBaseUrl}/1.0/suggested-questions?${query.toString()}`;
23
13
  return zeniAPI.getJSON(url).pipe(mergeMap((response) => {
24
14
  if (isSuccessResponse(response) && response.data != null) {
@@ -3,8 +3,7 @@ export const initialUIState = {
3
3
  filterText: '',
4
4
  sortKey: 'dueDate',
5
5
  sortOrder: 'descending',
6
- from: 0,
7
- filters: {},
6
+ pageToken: null,
8
7
  };
9
8
  const initialMetrics = {
10
9
  closed: 0,
@@ -19,13 +18,6 @@ export const initialState = {
19
18
  metrics: initialMetrics,
20
19
  metricsFetchState: 'Not-Started',
21
20
  uiState: initialUIState,
22
- cockpitContext: {
23
- fetchState: 'Not-Started',
24
- error: undefined,
25
- companyIds: [],
26
- userIds: [],
27
- userGroupIds: [],
28
- },
29
21
  hasValidState() {
30
22
  return this.fetchState == 'Completed';
31
23
  },
@@ -36,11 +28,10 @@ const companyTaskManagerView = createSlice({
36
28
  initialState,
37
29
  reducers: {
38
30
  fetchCompanyTaskManagerView: {
39
- prepare(from, sortKey, sortOrder, keepExistingListItems = true, searchString, filters) {
31
+ prepare(pageToken, sortKey, sortOrder, keepExistingListItems = true, searchString) {
40
32
  return {
41
33
  payload: {
42
- from,
43
- filters,
34
+ pageToken,
44
35
  searchString,
45
36
  sortKey,
46
37
  sortOrder,
@@ -49,10 +40,10 @@ const companyTaskManagerView = createSlice({
49
40
  };
50
41
  },
51
42
  reducer(draft, action) {
52
- const { from, searchString, sortKey, sortOrder, keepExistingListItems } = action.payload;
43
+ const { pageToken, searchString, sortKey, sortOrder, keepExistingListItems, } = action.payload;
53
44
  draft.uiState.sortKey = sortKey;
54
45
  draft.uiState.sortOrder = sortOrder;
55
- draft.uiState.from = from;
46
+ draft.uiState.pageToken = pageToken;
56
47
  if (keepExistingListItems === false) {
57
48
  draft.taskIds = [];
58
49
  }
@@ -65,14 +56,15 @@ const companyTaskManagerView = createSlice({
65
56
  },
66
57
  updateCompanyTaskManagerViewOnSuccess(draft, action) {
67
58
  const { data } = action.payload;
68
- const tasks = data.aggregations.group_by_company_name.buckets.flatMap((bucket) => bucket.tasks);
59
+ const { tasks, query, total_count } = data;
69
60
  draft.fetchState = 'Completed';
70
61
  draft.error = undefined;
71
62
  draft.taskIds = [...draft.taskIds, ...tasks.map((task) => task.task_id)];
72
- if (draft.uiState.filterText === '' && draft.uiState.from === 0) {
73
- draft.totalTaskCount = data.total;
63
+ // consider total count only when fetching for first time
64
+ if (draft.uiState.filterText === '' && draft.uiState.pageToken == null) {
65
+ draft.totalTaskCount = total_count;
74
66
  }
75
- draft.uiState.from = data.from + data.limit;
67
+ draft.uiState.pageToken = query.page_token;
76
68
  },
77
69
  updateCompanyTaskManagerViewOnFailure: {
78
70
  reducer(draft, action) {
@@ -93,30 +85,10 @@ const companyTaskManagerView = createSlice({
93
85
  updateTaskManagerMetricsOnFailure(draft) {
94
86
  draft.metricsFetchState = 'Error';
95
87
  },
96
- updateCompanyTaskManagerViewFilters(draft, action) {
97
- if (action.payload.filters != null) {
98
- draft.uiState.filters = action.payload.filters;
99
- }
100
- },
101
- fetchCockpitContext(draft) {
102
- draft.cockpitContext.fetchState = 'In-Progress';
103
- draft.cockpitContext.error = undefined;
104
- },
105
- updateCockpitContextOnSuccess(draft, action) {
106
- draft.cockpitContext.fetchState = 'Completed';
107
- draft.cockpitContext.error = undefined;
108
- draft.cockpitContext.companyIds = action.payload.companyIds;
109
- draft.cockpitContext.userIds = action.payload.userIds;
110
- draft.cockpitContext.userGroupIds = action.payload.userGroupIds;
111
- },
112
- updateCockpitContextOnFailure(draft, action) {
113
- draft.cockpitContext.fetchState = 'Error';
114
- draft.cockpitContext.error = action.payload;
115
- },
116
88
  clearCompanyTaskManagerView(draft) {
117
89
  Object.assign(draft, initialState);
118
90
  },
119
91
  },
120
92
  });
121
- export const { fetchCompanyTaskManagerView, updateCompanyTaskManagerViewOnSuccess, updateCompanyTaskManagerViewOnFailure, fetchTaskManagerMetrics, updateTaskManagerMetrics, updateTaskManagerMetricsOnFailure, clearCompanyTaskManagerView, updateCompanyTaskManagerViewFilters, fetchCockpitContext, updateCockpitContextOnSuccess, updateCockpitContextOnFailure, } = companyTaskManagerView.actions;
93
+ export const { fetchCompanyTaskManagerView, updateCompanyTaskManagerViewOnSuccess, updateCompanyTaskManagerViewOnFailure, fetchTaskManagerMetrics, updateTaskManagerMetrics, updateTaskManagerMetricsOnFailure, clearCompanyTaskManagerView, } = companyTaskManagerView.actions;
122
94
  export default companyTaskManagerView.reducer;
@@ -1,11 +1,10 @@
1
1
  import { createSelector } from '@reduxjs/toolkit';
2
- import { reduceAnyFetchState } from '../../commonStateTypes/reduceFetchState';
3
- import { getCompanyByCompanyId, getCompanyByCompanyIds, } from '../../entity/company/companySelector';
2
+ import { getCompanyByCompanyId } from '../../entity/company/companySelector';
4
3
  import { getTagsByIds } from '../../entity/tag/tagSelector';
5
4
  import { getTaskById } from '../../entity/task/taskSelector';
6
5
  import { getUserByUserId, getUsersByUserIds, } from '../../entity/user/userSelector';
7
6
  export const getCompanyTaskManagerView = createSelector((state) => state.companyTaskManagerViewState, (state) => state.companyState, (state) => state.userState, (state) => state.taskState, (state) => state.tagState, (companyTaskManagerViewState, companyState, userState, taskState, tagState) => {
8
- const { taskIds, uiState, totalTaskCount, metrics, metricsFetchState } = companyTaskManagerViewState;
7
+ const { taskIds, uiState, fetchState, error, totalTaskCount, metrics, metricsFetchState, } = companyTaskManagerViewState;
9
8
  const tasksList = [];
10
9
  taskIds.forEach((taskId) => {
11
10
  const task = getTaskById(taskState, taskId);
@@ -27,22 +26,13 @@ export const getCompanyTaskManagerView = createSelector((state) => state.company
27
26
  }
28
27
  }
29
28
  });
30
- const allCompanyIds = companyTaskManagerViewState.cockpitContext.companyIds;
31
- const companies = getCompanyByCompanyIds(companyState, allCompanyIds).map((c) => c.company);
32
- const users = getUsersByUserIds(userState, companyTaskManagerViewState.cockpitContext.userIds);
33
- const fetchStateAndError = reduceAnyFetchState([
34
- companyTaskManagerViewState,
35
- companyTaskManagerViewState.cockpitContext,
36
- ]);
37
29
  return {
38
- companies,
39
30
  metrics,
40
31
  metricsFetchState,
41
32
  tasksList,
42
33
  uiState,
43
- fetchState: fetchStateAndError.fetchState,
44
- error: fetchStateAndError.error,
34
+ fetchState,
35
+ error,
45
36
  totalTaskCount,
46
- users,
47
37
  };
48
38
  });
@@ -1,35 +1,51 @@
1
1
  import { from } from 'rxjs';
2
2
  import { catchError, filter, mergeMap, switchMap } from 'rxjs/operators';
3
3
  import { getSortOrder } from '../../../commonPayloadTypes/sortOrderPayload';
4
+ import { updateCompanies } from '../../../entity/company/companyReducer';
4
5
  import { updateTags } from '../../../entity/tag/tagReducer';
5
6
  import { updateTasks } from '../../../entity/task/taskReducer';
7
+ import { updateAllUsers } from '../../../entity/user/userReducer';
6
8
  import { createZeniAPIStatus, isSuccessResponse } from '../../../responsePayload';
7
9
  import { fetchCompanyTaskManagerView, updateCompanyTaskManagerViewOnFailure, updateCompanyTaskManagerViewOnSuccess, } from '../companyTaskManagerViewReducer';
8
- const DEFAULT_PAGE_SIZE = 100;
10
+ const toSortKeyPayload = (sortKey) => {
11
+ switch (sortKey) {
12
+ case 'taskName':
13
+ return 'name';
14
+ case 'dueDate':
15
+ return 'due_date';
16
+ case 'createdBy':
17
+ return 'created_by';
18
+ case 'name':
19
+ return 'company_name';
20
+ default:
21
+ return sortKey;
22
+ }
23
+ };
9
24
  export const fetchCompanyTaskManagerViewEpic = (actions$, _state$, zeniAPI) => actions$.pipe(filter(fetchCompanyTaskManagerView.match), switchMap((action) => {
10
- const { from: fromOffset, searchString, sortKey, sortOrder, filters, } = action.payload;
25
+ const { pageToken, sortKey, sortOrder, searchString } = action.payload;
11
26
  const queryValue = {
12
- size: DEFAULT_PAGE_SIZE,
13
- from: fromOffset,
14
- global_search: searchString ?? '',
27
+ page_token: pageToken,
15
28
  sort_by: toSortKeyPayload(sortKey),
16
29
  sort_order: getSortOrder(sortOrder),
17
- filter_join: filters?.categoryCombinationOperator === 'AND' ? 'and' : 'or',
18
- ...(filters?.categories != null && filters.categories.length > 0
19
- ? { filter_by: toFilterByPayload(filters) }
20
- : {}),
30
+ search_text: searchString ?? '',
31
+ view: 'cockpit_task_manager_view',
21
32
  };
22
33
  return zeniAPI
23
- .getJSON(`${zeniAPI.apiEndPoints.tenantMicroServiceBaseUrl}/1.0/cockpit-panels/tasks-es?query=${encodeURIComponent(JSON.stringify(queryValue))}`)
34
+ .getJSON(`${zeniAPI.apiEndPoints.tenantMicroServiceBaseUrl}/1.0/cockpit-panels/tasks?query=${encodeURIComponent(JSON.stringify(queryValue))}`)
24
35
  .pipe(mergeMap((response) => {
25
36
  if (isSuccessResponse(response) && response.data != null) {
26
- const tasksList = response.data.aggregations.group_by_company_name.buckets.flatMap((bucket) => bucket.tasks);
37
+ const tasksList = response.data.tasks;
27
38
  const actions = [
28
39
  updateCompanyTaskManagerViewOnSuccess({
29
40
  data: response.data,
30
41
  }),
31
42
  updateTasks(tasksList),
32
- updateTags(tasksList.flatMap((task) => task.tags)),
43
+ updateCompanies({
44
+ payload: response.data.companies,
45
+ schema: {},
46
+ }),
47
+ updateTags(tasksList.map((task) => task.tags).flat()),
48
+ updateAllUsers({ users: response.data.users }),
33
49
  ];
34
50
  return from(actions);
35
51
  }
@@ -46,28 +62,3 @@ export const fetchCompanyTaskManagerViewEpic = (actions$, _state$, zeniAPI) => a
46
62
  return from(actions);
47
63
  }));
48
64
  }));
49
- const toSortKeyPayload = (sortKey) => {
50
- switch (sortKey) {
51
- case 'taskName':
52
- return 'name';
53
- case 'dueDate':
54
- return 'due_date';
55
- case 'createdBy':
56
- return 'created_by';
57
- case 'name':
58
- return 'company_name';
59
- default:
60
- return sortKey;
61
- }
62
- };
63
- const toFilterByPayload = (filters) => {
64
- if (filters.categories == null) {
65
- return [];
66
- }
67
- return filters.categories.map((category) => ({
68
- field: category.field ?? '',
69
- operator: category.matchingOperator === 'equal' ? 'is' : 'is_not',
70
- values: category.values.map((v) => String(v)),
71
- join: category.valuesCombinationOperator === 'ALL' ? 'and' : 'or',
72
- }));
73
- };
@@ -2,7 +2,7 @@ import { from } from 'rxjs';
2
2
  import { catchError, filter, mergeMap, switchMap } from 'rxjs/operators';
3
3
  import { updateCompanies } from '../../../../entity/company/companyReducer';
4
4
  import { openSnackbar } from '../../../../entity/snackbar/snackbarReducer';
5
- import { updateTenantCapitalizationAccountOverride, updateTenantCapitalizationOnboardingDismissed, } from '../../../../entity/tenant/tenantReducer';
5
+ import { updateTenantCapitalizationOnboardingDismissed, updateTenantCapitalizationAccountOverride, } from '../../../../entity/tenant/tenantReducer';
6
6
  import { createZeniAPIStatus, isSuccessResponse, } from '../../../../responsePayload';
7
7
  import { updateCapitalizationAccountThreshold, updateCapitalizationAccountThresholdFailure, updateCapitalizationAccountThresholdSuccess, } from '../../companyViewReducer';
8
8
  export const updateCapitalizationAccountThresholdEpic = (actions$, state$, zeniAPI) => actions$.pipe(filter(updateCapitalizationAccountThreshold.match), switchMap((action) => {
@@ -50,9 +50,9 @@ export const updateCapitalizationAccountThresholdEpic = (actions$, state$, zeniA
50
50
  accountId,
51
51
  threshold,
52
52
  allOverrides: allOverrides !== undefined
53
- ? Object.keys(finalOverrides).length > 0
53
+ ? (Object.keys(finalOverrides).length > 0
54
54
  ? finalOverrides
55
- : null
55
+ : null)
56
56
  : undefined,
57
57
  }));
58
58
  if (dismissOnboardingForAccount === true) {
@@ -21,7 +21,7 @@ export const fetchAllCockpitViewsEpic = (actions$, state$) => actions$.pipe(filt
21
21
  fetchReviewCompanyView(),
22
22
  fetchCompanyHealthMetricView(),
23
23
  fetchCompanyMetaData(),
24
- fetchCompanyTaskManagerView(0, 'dueDate', 'descending', false),
24
+ fetchCompanyTaskManagerView(null, 'dueDate', 'descending', false),
25
25
  fetchCompanyHealthMetricConfig(),
26
26
  ]);
27
27
  }
@@ -74,7 +74,7 @@ export const fetchAllCockpitViewsEpic = (actions$, state$) => actions$.pipe(filt
74
74
  }
75
75
  if (state.companyTaskManagerViewState.fetchState !== 'In-Progress' &&
76
76
  state.companyTaskManagerViewState.hasValidState() === false) {
77
- fetchActions.push(fetchCompanyTaskManagerView(0, 'dueDate', 'descending', false));
77
+ fetchActions.push(fetchCompanyTaskManagerView(null, 'dueDate', 'descending', false));
78
78
  }
79
79
  return from(fetchActions);
80
80
  }
@@ -57,20 +57,13 @@ export const getDashboard = createSelector(tenantSelector, getCardBalance, getCa
57
57
  const hasTasksCardAccess = tenants.currentTenant?.excludedResources?.resources?.find((resource) => resource.resource === '/reports/task_card') == null;
58
58
  let cardsCopy = [...cards];
59
59
  const cardsToRemove = new Set();
60
- const chargeCardInfo = tenants.currentTenant.companyChargeCardInfo?.info;
61
- const creditAccountLimit = chargeCardInfo?.chargeCardsCreditAccountLimit ?? 0;
62
- let isZeniPromoCardOn4thPosition = true;
63
- const isChargeCardEnabled = chargeCardInfo?.isChargeCardEnabled ?? false;
60
+ // Credit-only express-interest promo; always omitted while cards are company-product-gated. Reintroduce only with an explicit show rule.
61
+ cardsToRemove.add('zeni_promo_card');
64
62
  if (cardBalance != null &&
65
63
  cardBalance.fetchState === 'Completed' &&
66
64
  (cardBalance.accountsInOrder.length === 0 ||
67
65
  cardBalance.status?.code !== 200)) {
68
66
  cardsToRemove.add('card_balance');
69
- isZeniPromoCardOn4thPosition = false;
70
- }
71
- if (isChargeCardEnabled || creditAccountLimit === -1) {
72
- cardsToRemove.add('zeni_promo_card');
73
- isZeniPromoCardOn4thPosition = false;
74
67
  }
75
68
  if (hasTopExAccess === false) {
76
69
  cardsToRemove.add('top_expenses');
@@ -160,57 +153,29 @@ export const getDashboard = createSelector(tenantSelector, getCardBalance, getCa
160
153
  cardsToRemove.add('bill_pay_card');
161
154
  cardsToRemove.add('reimbursement_card');
162
155
  }
163
- // //show cards carousel as priority, if ZC promo is coming in 2nd position, follow show promos based on Checking promo > Bills & Reimbursement promo
164
- // //else if ZC promo is coming in 3rd position, follow ZC promo > Checking promo > Bills & Reimbursement promo
165
- if (isZeniPromoCardOn4thPosition) {
156
+ const showZeniAccountsPromoCard = zeniAccountsPromoCard.isShowDepositAccountsPromo === true;
157
+ if (showZeniAccountsPromoCard) {
166
158
  cardsToRemove.add('bill_pay_promo_card');
167
159
  cardsToRemove.add('reimbursement_promo_card');
168
- cardsToRemove.add('zeni_accounts_promo_card');
169
160
  }
170
161
  else {
171
- const showZeniAccountsPromoCard = zeniAccountsPromoCard.isShowDepositAccountsPromo === true;
172
- if (showZeniAccountsPromoCard) {
173
- cardsToRemove.add('bill_pay_promo_card');
174
- cardsToRemove.add('reimbursement_promo_card');
175
- }
176
- else {
177
- cardsToRemove.add('zeni_accounts_promo_card');
178
- }
162
+ cardsToRemove.add('zeni_accounts_promo_card');
179
163
  }
180
164
  // remove treasury promo card if its already enabled
181
165
  const isTreasuryTOSAccepted = tenants.currentTenant.companyTreasuryInfo?.info?.isTreasuryTOSAccepted;
182
166
  if (isTreasuryTOSAccepted === true || isTreasuryFeatureEnabled === false) {
183
167
  cardsToRemove.add('treasury_promo_card');
184
168
  }
185
- // More than one promo card can't be shown in the dashboard(Priority: Treasury>Cards>Accounts>Bill> Remi)
186
- // There is an exception when number of card accounts connected to QBO is zero, in that case we replace card_balance tile in 2nd position with zeni_promo_card,
187
- // so 3rd position tile could be any other promo card based on priority order.
169
+ // More than one promo card can't be shown on the dashboard (priority: Treasury > Accounts > Bill > Remi).
188
170
  const PROMO_CARD_PRIORITY_ORDER = [
189
171
  'treasury_promo_card',
190
- 'zeni_promo_card',
191
172
  'zeni_accounts_promo_card',
192
173
  'bill_pay_promo_card',
193
174
  'reimbursement_promo_card',
194
175
  ];
195
- const promoCards = PROMO_CARD_PRIORITY_ORDER;
196
- const promoCardsTobeRetained = promoCards.filter((c) => !cardsToRemove.has(c));
176
+ const promoCardsTobeRetained = PROMO_CARD_PRIORITY_ORDER.filter((c) => !cardsToRemove.has(c));
197
177
  if (promoCardsTobeRetained.length > 1) {
198
- const cardsToKeep = new Set();
199
- if (cardsToRemove.has('card_balance') &&
200
- promoCardsTobeRetained.includes('zeni_promo_card')) {
201
- // zeni_promo_card is the primary promo card when card_balance is removed
202
- cardsToKeep.add('zeni_promo_card');
203
- // Also keep the highest priority non-zeni promo card as the 2nd
204
- const secondCard = promoCardsTobeRetained.find((card) => card !== 'zeni_promo_card');
205
- if (secondCard != null) {
206
- cardsToKeep.add(secondCard);
207
- }
208
- }
209
- else {
210
- // Keep only the highest priority promo card
211
- cardsToKeep.add(promoCardsTobeRetained[0]);
212
- }
213
- // Remove all other promo cards not in cardsToKeep
178
+ const cardsToKeep = new Set([promoCardsTobeRetained[0]]);
214
179
  promoCardsTobeRetained.forEach((card) => {
215
180
  if (!cardsToKeep.has(card)) {
216
181
  cardsToRemove.add(card);
@@ -5,12 +5,12 @@ import { toMonthYearPeriodId } from '../../../commonStateTypes/timePeriod';
5
5
  import { getCurrentTenant, getIsAccountingClassesEnabled, getIsAccountingProjectsEnabled, } from '../../../entity/tenant/tenantSelector';
6
6
  import { getTransactionWithCOT } from '../../../entity/transaction/transactionHelper';
7
7
  import { getSupportedTransactionsByIds } from '../../../entity/transaction/transactionSelector';
8
+ import { applyTransactionFilters, } from '../transactionFilterHelpers';
8
9
  import { getAccountList, getNestedAccountListHierarchy, getUncategorizedAccounts, } from '../../accountList/accountListSelector';
9
10
  import { getClassList, getNestedClassListHierarchy, } from '../../classList/classListSelector';
10
11
  import { getResolvedTransferAccounts } from '../../createTransferEntry/createTransferEntrySelector';
11
12
  import { getProjectList } from '../../projectList/projectListSelector';
12
13
  import { getAllSteps } from '../selectorTypes/expenseAutomationViewSelectorTypes';
13
- import { applyTransactionFilters, } from '../transactionFilterHelpers';
14
14
  // Walks the tab's transactionReviewLocalDataById map and returns
15
15
  // `{ [transactionId]: true }` for every transaction that has at least
16
16
  // one line whose targeted-fetch is In-Progress. Pulled out as a plain
@@ -1,9 +1,9 @@
1
1
  import { of } from 'rxjs';
2
- import { catchError, filter, mergeMap } from 'rxjs/operators';
2
+ import { catchError, filter, mergeMap, switchMap } from 'rxjs/operators';
3
3
  import { removeFiles } from '../../../entity/file/fileReducer';
4
4
  import { createZeniAPIStatus, isSuccessResponse } from '../../../responsePayload';
5
5
  import { deleteFile, deleteFileFailure, deleteFileSuccess, } from '../fileViewReducer';
6
- export const deleteFileEpic = (actions$, _state$, zeniAPI) => actions$.pipe(filter(deleteFile.match), mergeMap((action) => {
6
+ export const deleteFileEpic = (actions$, _state$, zeniAPI) => actions$.pipe(filter(deleteFile.match), switchMap((action) => {
7
7
  /**
8
8
  * tenantId is required for deleting onboarding files.
9
9
  */
@@ -1,9 +1,9 @@
1
1
  import { of } from 'rxjs';
2
- import { catchError, filter, mergeMap } from 'rxjs/operators';
2
+ import { catchError, filter, mergeMap, switchMap } from 'rxjs/operators';
3
3
  import { removeFiles } from '../../../entity/file/fileReducer';
4
4
  import { createZeniAPIStatus, isSuccessResponse } from '../../../responsePayload';
5
5
  import { deleteFileList, deleteFileListFailure, deleteFileListSuccess, } from '../fileViewReducer';
6
- export const deleteFileListEpic = (actions$, _state$, zeniAPI) => actions$.pipe(filter(deleteFileList.match), mergeMap((action) => {
6
+ export const deleteFileListEpic = (actions$, _state$, zeniAPI) => actions$.pipe(filter(deleteFileList.match), switchMap((action) => {
7
7
  const { fileIds } = action.payload;
8
8
  return zeniAPI
9
9
  .deleteAndGetJSON(`${zeniAPI.apiEndPoints.fileMicroServiceBaseUrl}/1.0/files?query=${encodeURIComponent(JSON.stringify({ file_ids: fileIds }))}`)