@zeniai/client-epic-state 5.0.79 → 5.0.80

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 (183) hide show
  1. package/lib/coreEpics.js +1 -1
  2. package/lib/entity/account/accountSelector.d.ts +1 -27
  3. package/lib/entity/account/accountSelector.js +1 -47
  4. package/lib/entity/account/accountState.d.ts +1 -6
  5. package/lib/entity/account/accountState.js +4 -11
  6. package/lib/entity/account/subAccountSelector.d.ts +1 -1
  7. package/lib/entity/aiAccountantCustomer/aiAccountantCustomerPayload.js +3 -1
  8. package/lib/entity/aiAccountantCustomer/aiAccountantCustomerReducer.js +2 -1
  9. package/lib/entity/aiAccountantCustomer/aiAccountantCustomerSelector.d.ts +1 -1
  10. package/lib/entity/chargeCard/chargeCardReducer.d.ts +2 -19
  11. package/lib/entity/chargeCard/chargeCardReducer.js +2 -35
  12. package/lib/entity/chargeCardTransaction/chargeCardTransactionReducer.d.ts +1 -14
  13. package/lib/entity/chargeCardTransaction/chargeCardTransactionReducer.js +2 -36
  14. package/lib/entity/class/classSelector.d.ts +0 -35
  15. package/lib/entity/class/classSelector.js +0 -50
  16. package/lib/entity/sectionProjectView/sectionProjectViewReducer.d.ts +1 -1
  17. package/lib/entity/sectionProjectView/sectionProjectViewSelector.js +1 -1
  18. package/lib/entity/tenant/SessionManager.js +3 -6
  19. package/lib/entity/tenant/clearAllEpic.d.ts +2 -2
  20. package/lib/entity/tenant/clearAllEpic.js +2 -2
  21. package/lib/entity/tenant/epic/saveAPIKeyConnectionEpic.js +2 -6
  22. package/lib/entity/tenant/epic/saveOAuthConnectionEpic.js +2 -6
  23. package/lib/entity/tenant/tenantReducer.js +1 -6
  24. package/lib/entity/transaction/payloadTypes/transactionLinePayload.js +1 -3
  25. package/lib/epic.d.ts +11 -11
  26. package/lib/epic.js +12 -12
  27. package/lib/esm/coreEpics.js +1 -1
  28. package/lib/esm/entity/account/accountSelector.js +1 -46
  29. package/lib/esm/entity/account/accountState.js +1 -7
  30. package/lib/esm/entity/aiAccountantCustomer/aiAccountantCustomerPayload.js +3 -1
  31. package/lib/esm/entity/aiAccountantCustomer/aiAccountantCustomerReducer.js +2 -1
  32. package/lib/esm/entity/chargeCard/chargeCardReducer.js +1 -34
  33. package/lib/esm/entity/chargeCardTransaction/chargeCardTransactionReducer.js +1 -35
  34. package/lib/esm/entity/class/classSelector.js +0 -48
  35. package/lib/esm/entity/sectionProjectView/sectionProjectViewSelector.js +1 -1
  36. package/lib/esm/entity/tenant/SessionManager.js +1 -4
  37. package/lib/esm/entity/tenant/clearAllEpic.js +2 -2
  38. package/lib/esm/entity/tenant/epic/saveAPIKeyConnectionEpic.js +2 -6
  39. package/lib/esm/entity/tenant/epic/saveOAuthConnectionEpic.js +2 -6
  40. package/lib/esm/entity/tenant/tenantReducer.js +1 -6
  41. package/lib/esm/entity/transaction/payloadTypes/transactionLinePayload.js +1 -3
  42. package/lib/esm/epic.js +12 -12
  43. package/lib/esm/index.js +21 -31
  44. package/lib/esm/reducer.js +2 -2
  45. package/lib/esm/view/aiAccountantView/epics/fetchAiAccountantCustomersEpic.js +5 -2
  46. package/lib/esm/view/aiAccountantView/epics/fetchAiAccountantJobsEpic.js +5 -2
  47. package/lib/esm/view/aiAccountantView/epics/triggerAiAccountantJobEpic.js +1 -4
  48. package/lib/esm/view/companyHealthMetricView/companyHealthMetricViewSelector.js +1 -1
  49. package/lib/esm/view/companyTaskManagerView/companyTaskManagerViewSelector.js +1 -1
  50. package/lib/esm/view/companyTaskManagerView/epics/fetchTaskManagerMetricsEpic.js +1 -1
  51. package/lib/esm/view/companyView/helpers/cockpitHelpers.js +1 -1
  52. package/lib/esm/view/companyView/selector/companyManagementViewSelector.js +1 -1
  53. package/lib/esm/view/companyView/selector/companyPortfolioViewSelector.js +1 -1
  54. package/lib/esm/view/creditAgentView/creditAgentViewReducer.js +16 -1
  55. package/lib/esm/view/creditAgentView/epics/fetchCreditAgentAccessEpic.js +13 -0
  56. package/lib/esm/view/expenseAutomationView/epics/missingReceipts/fetchBulkUploadBatchesEpic.js +2 -2
  57. package/lib/esm/view/expenseAutomationView/epics/missingReceipts/fetchCompletedTransactionsEpic.js +1 -2
  58. package/lib/esm/view/expenseAutomationView/epics/missingReceipts/restoreBulkUploadAutomatchingOnMountEpic.js +6 -8
  59. package/lib/esm/view/expenseAutomationView/epics/missingReceipts/searchTransactionsForManualMatchEpic.js +1 -7
  60. package/lib/esm/view/expenseAutomationView/epics/transactionCategorization/fetchTransactionCategorizationEpic.js +1 -11
  61. package/lib/esm/view/expenseAutomationView/helpers/transactionCategorizationLocalDataHelper.js +1 -21
  62. package/lib/esm/view/expenseAutomationView/reducers/missingReceiptsViewReducer.js +1 -2
  63. package/lib/esm/view/expenseAutomationView/reducers/transactionsViewReducer.js +14 -253
  64. package/lib/esm/view/expenseAutomationView/selectors/transactionCategorizationSelector.js +13 -147
  65. package/lib/esm/view/expenseAutomationView/types/missingReceiptsViewState.js +2 -0
  66. package/lib/esm/view/financeStatement/financeStatementSelector.js +1 -1
  67. package/lib/esm/view/recommendation/recommendationHelper.js +0 -29
  68. package/lib/esm/view/recommendation/recommendationReducer.js +1 -26
  69. package/lib/esm/view/spendManagement/chargeCards/cashbackDetail/cashbackDetailReducer.js +2 -3
  70. package/lib/esm/view/spendManagement/chargeCards/chargeCardConfig/chargeCardConfigReducer.js +2 -3
  71. package/lib/esm/view/spendManagement/chargeCards/chargeCardDetail/chargeCardDetailReducer.js +18 -55
  72. package/lib/esm/view/spendManagement/chargeCards/chargeCardDetail/fetchChargeCardDetailEpic.js +2 -16
  73. package/lib/esm/view/spendManagement/chargeCards/chargeCardDetail/fetchChargeCardDetailPageEpic.js +4 -5
  74. package/lib/esm/view/spendManagement/chargeCards/chargeCardList/chargeCardListReducer.js +9 -26
  75. package/lib/esm/view/spendManagement/chargeCards/chargeCardList/fetchChargeCardListPageEpic.js +6 -9
  76. package/lib/esm/view/spendManagement/chargeCards/chargeCardPaymentHistory/chargeCardPaymentHistoryReducer.js +2 -3
  77. package/lib/esm/view/spendManagement/chargeCards/chargeCardPaymentHistory/fetchChargeCardPaymentPageEpic.js +1 -1
  78. package/lib/esm/view/spendManagement/chargeCards/chargeCardRepaymentDetail/chargeCardRepaymentDetailReducer.js +3 -7
  79. package/lib/esm/view/spendManagement/spendManagementFilterHelpers.js +2 -4
  80. package/lib/esm/view/subscriptionView/subscriptionViewSelector.js +1 -1
  81. package/lib/esm/view/taskManager/cannedResponsesView/epics/fetchCannedResponsesEpic.js +1 -1
  82. package/lib/esm/view/taskManager/cannedResponsesView/epics/saveCannedResponseEpic.js +1 -1
  83. package/lib/esm/view/taskManager/taskDetailView/epics/unsnoozeTaskEpic.js +1 -1
  84. package/lib/esm/view/taskManager/taskListView/taskListReducer.js +1 -1
  85. package/lib/esm/view/transactionDetail/transactionDetailReducer.js +6 -121
  86. package/lib/esm/view/transactionDetail/transactionDetailSelector.js +1 -29
  87. package/lib/index.d.ts +24 -31
  88. package/lib/index.js +60 -84
  89. package/lib/reducer.d.ts +2 -2
  90. package/lib/reducer.js +2 -2
  91. package/lib/tsconfig.typecheck.tsbuildinfo +1 -0
  92. package/lib/view/aiAccountantView/aiAccountantViewPayload.d.ts +2 -2
  93. package/lib/view/aiAccountantView/aiAccountantViewReducer.d.ts +1 -1
  94. package/lib/view/aiAccountantView/epics/fetchAiAccountantCustomersEpic.js +5 -2
  95. package/lib/view/aiAccountantView/epics/fetchAiAccountantJobsEpic.js +5 -2
  96. package/lib/view/aiAccountantView/epics/triggerAiAccountantJobEpic.js +1 -4
  97. package/lib/view/companyHealthMetricView/companyHealthMetricViewSelector.js +1 -1
  98. package/lib/view/companyTaskManagerView/companyTaskManagerViewSelector.d.ts +1 -1
  99. package/lib/view/companyTaskManagerView/companyTaskManagerViewSelector.js +1 -1
  100. package/lib/view/companyView/helpers/cockpitHelpers.js +1 -1
  101. package/lib/view/companyView/selector/companyManagementViewSelector.js +1 -1
  102. package/lib/view/companyView/selector/companyPortfolioViewSelector.js +1 -1
  103. package/lib/view/companyView/types/cockpitTypes.d.ts +1 -1
  104. package/lib/view/creditAgentView/creditAgentViewPayload.d.ts +3 -0
  105. package/lib/view/creditAgentView/creditAgentViewReducer.d.ts +1 -1
  106. package/lib/view/creditAgentView/creditAgentViewReducer.js +17 -2
  107. package/lib/view/creditAgentView/creditAgentViewState.d.ts +5 -0
  108. package/lib/view/creditAgentView/epics/fetchCreditAgentAccessEpic.d.ts +11 -0
  109. package/lib/view/creditAgentView/epics/fetchCreditAgentAccessEpic.js +17 -0
  110. package/lib/view/expenseAutomationView/epics/missingReceipts/fetchBulkUploadBatchesEpic.js +2 -2
  111. package/lib/view/expenseAutomationView/epics/missingReceipts/fetchCompletedTransactionsEpic.js +1 -2
  112. package/lib/view/expenseAutomationView/epics/missingReceipts/restoreBulkUploadAutomatchingOnMountEpic.js +6 -8
  113. package/lib/view/expenseAutomationView/epics/missingReceipts/searchTransactionsForManualMatchEpic.js +1 -7
  114. package/lib/view/expenseAutomationView/epics/transactionCategorization/fetchTransactionCategorizationEpic.d.ts +2 -2
  115. package/lib/view/expenseAutomationView/epics/transactionCategorization/fetchTransactionCategorizationEpic.js +0 -10
  116. package/lib/view/expenseAutomationView/helpers/transactionCategorizationLocalDataHelper.d.ts +1 -2
  117. package/lib/view/expenseAutomationView/helpers/transactionCategorizationLocalDataHelper.js +2 -23
  118. package/lib/view/expenseAutomationView/payload/transactionCategorizationPayload.d.ts +0 -21
  119. package/lib/view/expenseAutomationView/reducers/missingReceiptsViewReducer.d.ts +1 -2
  120. package/lib/view/expenseAutomationView/reducers/missingReceiptsViewReducer.js +1 -2
  121. package/lib/view/expenseAutomationView/reducers/transactionsViewReducer.d.ts +5 -28
  122. package/lib/view/expenseAutomationView/reducers/transactionsViewReducer.js +14 -253
  123. package/lib/view/expenseAutomationView/selectorTypes/missingReceiptsSelectorTypes.d.ts +1 -2
  124. package/lib/view/expenseAutomationView/selectorTypes/transactionsViewSelectorTypes.d.ts +0 -16
  125. package/lib/view/expenseAutomationView/selectors/transactionCategorizationSelector.d.ts +1 -7
  126. package/lib/view/expenseAutomationView/selectors/transactionCategorizationSelector.js +13 -150
  127. package/lib/view/expenseAutomationView/types/missingReceiptsViewState.d.ts +2 -1
  128. package/lib/view/expenseAutomationView/types/missingReceiptsViewState.js +4 -1
  129. package/lib/view/expenseAutomationView/types/transactionsViewState.d.ts +2 -44
  130. package/lib/view/financeStatement/financeStatementSelector.js +1 -1
  131. package/lib/view/profitAndLossProjectView/profitAndLossProjectViewSelectorTypes.d.ts +1 -1
  132. package/lib/view/recommendation/recommendationHelper.d.ts +0 -9
  133. package/lib/view/recommendation/recommendationHelper.js +1 -31
  134. package/lib/view/recommendation/recommendationReducer.d.ts +1 -20
  135. package/lib/view/recommendation/recommendationReducer.js +2 -27
  136. package/lib/view/spendManagement/billPay/billList/billListState.d.ts +1 -1
  137. package/lib/view/spendManagement/chargeCards/cashbackDetail/cashbackDetailReducer.d.ts +1 -3
  138. package/lib/view/spendManagement/chargeCards/cashbackDetail/cashbackDetailReducer.js +2 -3
  139. package/lib/view/spendManagement/chargeCards/chargeCardConfig/chargeCardConfigReducer.d.ts +1 -3
  140. package/lib/view/spendManagement/chargeCards/chargeCardConfig/chargeCardConfigReducer.js +2 -3
  141. package/lib/view/spendManagement/chargeCards/chargeCardDetail/chargeCardDetailReducer.js +18 -55
  142. package/lib/view/spendManagement/chargeCards/chargeCardDetail/fetchChargeCardDetailEpic.js +2 -16
  143. package/lib/view/spendManagement/chargeCards/chargeCardDetail/fetchChargeCardDetailPageEpic.js +4 -5
  144. package/lib/view/spendManagement/chargeCards/chargeCardList/chargeCardListReducer.d.ts +3 -18
  145. package/lib/view/spendManagement/chargeCards/chargeCardList/chargeCardListReducer.js +10 -27
  146. package/lib/view/spendManagement/chargeCards/chargeCardList/fetchChargeCardListPageEpic.js +6 -9
  147. package/lib/view/spendManagement/chargeCards/chargeCardPaymentHistory/chargeCardPaymentHistory.d.ts +1 -1
  148. package/lib/view/spendManagement/chargeCards/chargeCardPaymentHistory/chargeCardPaymentHistoryReducer.d.ts +1 -3
  149. package/lib/view/spendManagement/chargeCards/chargeCardPaymentHistory/chargeCardPaymentHistoryReducer.js +2 -3
  150. package/lib/view/spendManagement/chargeCards/chargeCardPaymentHistory/fetchChargeCardPaymentPageEpic.js +1 -1
  151. package/lib/view/spendManagement/chargeCards/chargeCardRepaymentDetail/chargeCardRepaymentDetailReducer.d.ts +1 -3
  152. package/lib/view/spendManagement/chargeCards/chargeCardRepaymentDetail/chargeCardRepaymentDetailReducer.js +3 -7
  153. package/lib/view/spendManagement/reimbursement/remiListView/remiListState.d.ts +1 -1
  154. package/lib/view/spendManagement/spendManagementFilterHelpers.d.ts +3 -12
  155. package/lib/view/spendManagement/spendManagementFilterHelpers.js +2 -4
  156. package/lib/view/subscriptionView/subscriptionViewSelector.js +1 -1
  157. package/lib/view/taskManager/taskListView/taskList.d.ts +1 -1
  158. package/lib/view/taskManager/taskListView/taskListReducer.js +1 -1
  159. package/lib/view/transactionDetail/transactionDetailReducer.d.ts +1 -11
  160. package/lib/view/transactionDetail/transactionDetailReducer.js +7 -122
  161. package/lib/view/transactionDetail/transactionDetailSelector.d.ts +0 -2
  162. package/lib/view/transactionDetail/transactionDetailSelector.js +2 -31
  163. package/lib/view/transactionDetail/transactionDetailTypes.d.ts +0 -1
  164. package/lib/view/zeniOAuthView/zeniOAuthSelector.d.ts +1 -1
  165. package/package.json +4 -9
  166. package/lib/commonStateTypes/cacheOverrideFetchReducer.d.ts +0 -17
  167. package/lib/commonStateTypes/cacheOverrideFetchReducer.js +0 -20
  168. package/lib/commonStateTypes/filterPrimitives.d.ts +0 -23
  169. package/lib/commonStateTypes/filterPrimitives.js +0 -21
  170. package/lib/commonStateTypes/pusherActions.d.ts +0 -11
  171. package/lib/commonStateTypes/pusherActions.js +0 -6
  172. package/lib/esm/commonStateTypes/cacheOverrideFetchReducer.js +0 -16
  173. package/lib/esm/commonStateTypes/filterPrimitives.js +0 -20
  174. package/lib/esm/commonStateTypes/pusherActions.js +0 -3
  175. package/lib/esm/view/expenseAutomationView/transactionFilterHelpers.js +0 -258
  176. package/lib/esm/view/expenseAutomationView/types/completedSubTab.js +0 -17
  177. package/lib/esm/view/recommendation/fetchEntityRecommendationsForLineUpdateEpic.js +0 -87
  178. package/lib/view/expenseAutomationView/transactionFilterHelpers.d.ts +0 -66
  179. package/lib/view/expenseAutomationView/transactionFilterHelpers.js +0 -262
  180. package/lib/view/expenseAutomationView/types/completedSubTab.d.ts +0 -10
  181. package/lib/view/expenseAutomationView/types/completedSubTab.js +0 -21
  182. package/lib/view/recommendation/fetchEntityRecommendationsForLineUpdateEpic.d.ts +0 -9
  183. package/lib/view/recommendation/fetchEntityRecommendationsForLineUpdateEpic.js +0 -91
package/lib/reducer.d.ts CHANGED
@@ -3,6 +3,7 @@ import { AccountGroupState } from './entity/accountGroup/accountGroupState';
3
3
  import { AccountReconState } from './entity/accountRecon/accountReconState';
4
4
  import { AddressState } from './entity/address/addressState';
5
5
  import { AiAccountantCustomerState } from './entity/aiAccountantCustomer/aiAccountantCustomerState';
6
+ import { CreditAgentEntityState } from './entity/creditAgent/creditAgentState';
6
7
  import { AiCfoState } from './entity/aiCfo/aiCfoState';
7
8
  import { ApprovalRuleState } from './entity/approvalRule/approvalRuleState';
8
9
  import { BankAccountState } from './entity/bankAccount/bankAccount';
@@ -18,7 +19,6 @@ import { CompanyState } from './entity/company/companyState';
18
19
  import { CompanyHealthState } from './entity/companyHealthMetric/companyHealthMetricState';
19
20
  import { ConnectedAccountState } from './entity/connectedAccount/connectedAccount';
20
21
  import { CountryListState } from './entity/countryList/countryListState';
21
- import { CreditAgentEntityState } from './entity/creditAgent/creditAgentState';
22
22
  import { CurrencyState } from './entity/currency/currency';
23
23
  import { CustomerState } from './entity/customer/customerState';
24
24
  import { CustomerIncomeState } from './entity/customerIncome/customerIncomeTrendState';
@@ -106,8 +106,8 @@ import { JESchedulesViewState as ExpenseAutomationJESchedulesViewState } from '.
106
106
  import { MissingReceiptsViewState as ExpenseAutomationMissingReceiptsViewState } from './view/expenseAutomationView/types/missingReceiptsViewState';
107
107
  import { ReconciliationViewState as ExpenseAutomationReconciliationViewState } from './view/expenseAutomationView/types/reconciliationViewState';
108
108
  import { TransactionsViewState as ExpenseAutomationTransactionsViewState } from './view/expenseAutomationView/types/transactionsViewState';
109
- import { FeatureNotificationViewState } from './view/featureNotificationView/featureNotificationViewState';
110
109
  import { FileViewState } from './view/fileView/fileViewState';
110
+ import { FeatureNotificationViewState } from './view/featureNotificationView/featureNotificationViewState';
111
111
  import { FinanceStatementState } from './view/financeStatement/financeStatementState';
112
112
  import { ForecastListState } from './view/forecastList/forecastListState';
113
113
  import { GlobalMerchantAutoCompleteState } from './view/globalMerchantView/globalMerchantAutoCompleteView/globalMerchantAutoCompleteViewState';
package/lib/reducer.js CHANGED
@@ -43,6 +43,7 @@ const accountGroupReducer_1 = __importStar(require("./entity/accountGroup/accoun
43
43
  const accountReconReducer_1 = __importStar(require("./entity/accountRecon/accountReconReducer"));
44
44
  const addressReducer_1 = __importStar(require("./entity/address/addressReducer"));
45
45
  const aiAccountantCustomerReducer_1 = __importStar(require("./entity/aiAccountantCustomer/aiAccountantCustomerReducer"));
46
+ const creditAgentReducer_1 = __importStar(require("./entity/creditAgent/creditAgentReducer"));
46
47
  const aiCfoReducer_1 = __importStar(require("./entity/aiCfo/aiCfoReducer"));
47
48
  const approvalRuleReducer_1 = __importStar(require("./entity/approvalRule/approvalRuleReducer"));
48
49
  const bankAccountReducer_1 = __importStar(require("./entity/bankAccount/bankAccountReducer"));
@@ -58,7 +59,6 @@ const companyReducer_1 = __importStar(require("./entity/company/companyReducer")
58
59
  const companyHealthMetricReducer_1 = __importStar(require("./entity/companyHealthMetric/companyHealthMetricReducer"));
59
60
  const connectedAccountReducer_1 = __importStar(require("./entity/connectedAccount/connectedAccountReducer"));
60
61
  const countryListReducer_1 = __importStar(require("./entity/countryList/countryListReducer"));
61
- const creditAgentReducer_1 = __importStar(require("./entity/creditAgent/creditAgentReducer"));
62
62
  const currencyReducer_1 = __importStar(require("./entity/currency/currencyReducer"));
63
63
  const customerReducer_1 = __importStar(require("./entity/customer/customerReducer"));
64
64
  const customerIncomeTrendReducer_1 = __importStar(require("./entity/customerIncome/customerIncomeTrendReducer"));
@@ -146,9 +146,9 @@ const jeSchedulesViewReducer_1 = __importStar(require("./view/expenseAutomationV
146
146
  const missingReceiptsViewReducer_1 = __importStar(require("./view/expenseAutomationView/reducers/missingReceiptsViewReducer"));
147
147
  const reconciliationViewReducer_1 = __importStar(require("./view/expenseAutomationView/reducers/reconciliationViewReducer"));
148
148
  const transactionsViewReducer_1 = __importStar(require("./view/expenseAutomationView/reducers/transactionsViewReducer"));
149
- const featureNotificationViewReducer_1 = __importStar(require("./view/featureNotificationView/featureNotificationViewReducer"));
150
149
  const fileViewReducer_1 = __importDefault(require("./view/fileView/fileViewReducer"));
151
150
  const fileViewState_1 = require("./view/fileView/fileViewState");
151
+ const featureNotificationViewReducer_1 = __importStar(require("./view/featureNotificationView/featureNotificationViewReducer"));
152
152
  const financeStatementReducer_1 = __importStar(require("./view/financeStatement/financeStatementReducer"));
153
153
  const forecastListReducer_1 = __importStar(require("./view/forecastList/forecastListReducer"));
154
154
  const globalMerchantAutoCompleteViewReducer_1 = __importStar(require("./view/globalMerchantView/globalMerchantAutoCompleteView/globalMerchantAutoCompleteViewReducer"));