@zeniai/client-epic-state 5.0.66 → 5.0.67

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 (67) hide show
  1. package/lib/entity/chargeCard/chargeCardReducer.d.ts +2 -19
  2. package/lib/entity/chargeCard/chargeCardReducer.js +2 -35
  3. package/lib/entity/chargeCardTransaction/chargeCardTransactionReducer.d.ts +1 -14
  4. package/lib/entity/chargeCardTransaction/chargeCardTransactionReducer.js +2 -36
  5. package/lib/esm/entity/chargeCard/chargeCardReducer.js +1 -34
  6. package/lib/esm/entity/chargeCardTransaction/chargeCardTransactionReducer.js +1 -35
  7. package/lib/esm/index.js +5 -9
  8. package/lib/esm/view/expenseAutomationView/epics/missingReceipts/fetchCompletedTransactionsEpic.js +1 -2
  9. package/lib/esm/view/expenseAutomationView/epics/missingReceipts/searchTransactionsForManualMatchEpic.js +0 -6
  10. package/lib/esm/view/expenseAutomationView/epics/transactionCategorization/fetchTransactionCategorizationEpic.js +1 -11
  11. package/lib/esm/view/expenseAutomationView/reducers/missingReceiptsViewReducer.js +1 -2
  12. package/lib/esm/view/expenseAutomationView/reducers/transactionsViewReducer.js +1 -127
  13. package/lib/esm/view/expenseAutomationView/selectors/transactionCategorizationSelector.js +1 -20
  14. package/lib/esm/view/expenseAutomationView/types/missingReceiptsViewState.js +2 -0
  15. package/lib/esm/view/spendManagement/chargeCards/cashbackDetail/cashbackDetailReducer.js +2 -3
  16. package/lib/esm/view/spendManagement/chargeCards/chargeCardConfig/chargeCardConfigReducer.js +2 -3
  17. package/lib/esm/view/spendManagement/chargeCards/chargeCardDetail/chargeCardDetailReducer.js +18 -55
  18. package/lib/esm/view/spendManagement/chargeCards/chargeCardDetail/fetchChargeCardDetailEpic.js +2 -16
  19. package/lib/esm/view/spendManagement/chargeCards/chargeCardDetail/fetchChargeCardDetailPageEpic.js +4 -5
  20. package/lib/esm/view/spendManagement/chargeCards/chargeCardList/chargeCardListReducer.js +9 -28
  21. package/lib/esm/view/spendManagement/chargeCards/chargeCardList/fetchChargeCardListPageEpic.js +6 -9
  22. package/lib/esm/view/spendManagement/chargeCards/chargeCardPaymentHistory/chargeCardPaymentHistoryReducer.js +2 -3
  23. package/lib/esm/view/spendManagement/chargeCards/chargeCardPaymentHistory/fetchChargeCardPaymentPageEpic.js +1 -1
  24. package/lib/esm/view/spendManagement/chargeCards/chargeCardRepaymentDetail/chargeCardRepaymentDetailReducer.js +3 -7
  25. package/lib/index.d.ts +6 -10
  26. package/lib/index.js +36 -50
  27. package/lib/view/expenseAutomationView/epics/missingReceipts/fetchCompletedTransactionsEpic.js +1 -2
  28. package/lib/view/expenseAutomationView/epics/missingReceipts/searchTransactionsForManualMatchEpic.js +0 -6
  29. package/lib/view/expenseAutomationView/epics/transactionCategorization/fetchTransactionCategorizationEpic.d.ts +2 -2
  30. package/lib/view/expenseAutomationView/epics/transactionCategorization/fetchTransactionCategorizationEpic.js +0 -10
  31. package/lib/view/expenseAutomationView/payload/transactionCategorizationPayload.d.ts +0 -21
  32. package/lib/view/expenseAutomationView/reducers/missingReceiptsViewReducer.d.ts +1 -2
  33. package/lib/view/expenseAutomationView/reducers/missingReceiptsViewReducer.js +1 -2
  34. package/lib/view/expenseAutomationView/reducers/transactionsViewReducer.d.ts +2 -8
  35. package/lib/view/expenseAutomationView/reducers/transactionsViewReducer.js +2 -128
  36. package/lib/view/expenseAutomationView/selectorTypes/missingReceiptsSelectorTypes.d.ts +1 -2
  37. package/lib/view/expenseAutomationView/selectorTypes/transactionsViewSelectorTypes.d.ts +0 -14
  38. package/lib/view/expenseAutomationView/selectors/transactionCategorizationSelector.js +1 -20
  39. package/lib/view/expenseAutomationView/types/missingReceiptsViewState.d.ts +2 -1
  40. package/lib/view/expenseAutomationView/types/missingReceiptsViewState.js +4 -1
  41. package/lib/view/expenseAutomationView/types/transactionsViewState.d.ts +1 -40
  42. package/lib/view/spendManagement/chargeCards/cashbackDetail/cashbackDetailReducer.d.ts +1 -3
  43. package/lib/view/spendManagement/chargeCards/cashbackDetail/cashbackDetailReducer.js +2 -3
  44. package/lib/view/spendManagement/chargeCards/chargeCardConfig/chargeCardConfigReducer.d.ts +1 -3
  45. package/lib/view/spendManagement/chargeCards/chargeCardConfig/chargeCardConfigReducer.js +2 -3
  46. package/lib/view/spendManagement/chargeCards/chargeCardDetail/chargeCardDetailReducer.js +18 -55
  47. package/lib/view/spendManagement/chargeCards/chargeCardDetail/fetchChargeCardDetailEpic.js +2 -16
  48. package/lib/view/spendManagement/chargeCards/chargeCardDetail/fetchChargeCardDetailPageEpic.js +4 -5
  49. package/lib/view/spendManagement/chargeCards/chargeCardList/chargeCardListReducer.d.ts +3 -18
  50. package/lib/view/spendManagement/chargeCards/chargeCardList/chargeCardListReducer.js +10 -29
  51. package/lib/view/spendManagement/chargeCards/chargeCardList/fetchChargeCardListPageEpic.js +6 -9
  52. package/lib/view/spendManagement/chargeCards/chargeCardPaymentHistory/chargeCardPaymentHistoryReducer.d.ts +1 -3
  53. package/lib/view/spendManagement/chargeCards/chargeCardPaymentHistory/chargeCardPaymentHistoryReducer.js +2 -3
  54. package/lib/view/spendManagement/chargeCards/chargeCardPaymentHistory/fetchChargeCardPaymentPageEpic.js +1 -1
  55. package/lib/view/spendManagement/chargeCards/chargeCardRepaymentDetail/chargeCardRepaymentDetailReducer.d.ts +1 -3
  56. package/lib/view/spendManagement/chargeCards/chargeCardRepaymentDetail/chargeCardRepaymentDetailReducer.js +3 -7
  57. package/package.json +28 -57
  58. package/lib/commonStateTypes/cacheOverrideFetchReducer.d.ts +0 -17
  59. package/lib/commonStateTypes/cacheOverrideFetchReducer.js +0 -20
  60. package/lib/commonStateTypes/pusherActions.d.ts +0 -11
  61. package/lib/commonStateTypes/pusherActions.js +0 -6
  62. package/lib/esm/commonStateTypes/cacheOverrideFetchReducer.js +0 -16
  63. package/lib/esm/commonStateTypes/pusherActions.js +0 -3
  64. package/lib/esm/view/expenseAutomationView/types/completedSubTab.js +0 -17
  65. package/lib/tsconfig.typecheck.tsbuildinfo +0 -1
  66. package/lib/view/expenseAutomationView/types/completedSubTab.d.ts +0 -10
  67. package/lib/view/expenseAutomationView/types/completedSubTab.js +0 -21
@@ -1,10 +0,0 @@
1
- export declare const toCompletedSubTab: (v: string) => "all" | "manual" | "ai_accountant";
2
- export type CompletedSubTab = ReturnType<typeof toCompletedSubTab>;
3
- /**
4
- * "No sub-tab filter" sentinel — single source of truth for the default
5
- * value of {@link CompletedSubTab}. Use this constant in initial slice
6
- * state and at any call site that needs to fall back to the parent-tab
7
- * listing semantics (review tab requests, manual-search overrides, etc.)
8
- * so a future rename of the union doesn't require chasing literals.
9
- */
10
- export declare const DEFAULT_COMPLETED_SUB_TAB: CompletedSubTab;
@@ -1,21 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DEFAULT_COMPLETED_SUB_TAB = exports.toCompletedSubTab = void 0;
4
- const stringToUnion_1 = require("../../../commonStateTypes/stringToUnion");
5
- /**
6
- * Sub-tabs that can appear under any "Completed" tab in the Expense Automation
7
- * surface (Transaction Categorization Completed and Missing Receipts Completed
8
- * both use this exact union). Forwarded verbatim to listing APIs as `sub_tab`
9
- * / `match_type`. `'all'` preserves parent-tab semantics on the backend.
10
- */
11
- const COMPLETED_SUB_TABS = ['all', 'ai_accountant', 'manual'];
12
- const toCompletedSubTab = (v) => (0, stringToUnion_1.stringToUnion)(v.trim().toLowerCase(), COMPLETED_SUB_TABS);
13
- exports.toCompletedSubTab = toCompletedSubTab;
14
- /**
15
- * "No sub-tab filter" sentinel — single source of truth for the default
16
- * value of {@link CompletedSubTab}. Use this constant in initial slice
17
- * state and at any call site that needs to fall back to the parent-tab
18
- * listing semantics (review tab requests, manual-search overrides, etc.)
19
- * so a future rename of the union doesn't require chasing literals.
20
- */
21
- exports.DEFAULT_COMPLETED_SUB_TAB = 'all';