@zeniai/client-epic-state 5.2.69-betaAK0 → 5.2.70

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 (157) hide show
  1. package/lib/entity/actualMatching/actualMatchingReducer.d.ts +1 -3
  2. package/lib/entity/actualMatching/actualMatchingReducer.js +2 -11
  3. package/lib/entity/aiCfo/aiCfoState.d.ts +2 -2
  4. package/lib/entity/billPay/billTransaction/billTransactionState.d.ts +2 -2
  5. package/lib/entity/chargeCardTransaction/chargeCardTransaction.d.ts +1 -1
  6. package/lib/entity/depositAccountTransaction/depositAccountTransaction.d.ts +1 -1
  7. package/lib/entity/invoicing/plan/planPayload.d.ts +40 -0
  8. package/lib/entity/invoicing/plan/planPayload.js +51 -0
  9. package/lib/entity/invoicing/plan/planReducer.d.ts +14 -0
  10. package/lib/entity/invoicing/{invoicingCatalog/invoicingCatalogReducer.js → plan/planReducer.js} +21 -20
  11. package/lib/entity/invoicing/{invoicingCatalog/invoicingCatalogSelector.d.ts → plan/planSelector.d.ts} +6 -5
  12. package/lib/entity/invoicing/{invoicingCatalog/invoicingCatalogSelector.js → plan/planSelector.js} +12 -12
  13. package/lib/entity/invoicing/plan/planState.d.ts +43 -0
  14. package/lib/entity/invoicing/{invoicingCatalog/invoicingCatalogPayload.d.ts → product/productPayload.d.ts} +6 -44
  15. package/lib/entity/invoicing/{invoicingCatalog/invoicingCatalogPayload.js → product/productPayload.js} +6 -50
  16. package/lib/entity/invoicing/product/productReducer.d.ts +9 -0
  17. package/lib/entity/invoicing/product/productReducer.js +50 -0
  18. package/lib/entity/invoicing/product/productSelector.d.ts +4 -0
  19. package/lib/entity/invoicing/product/productSelector.js +17 -0
  20. package/lib/entity/invoicing/{invoicingCatalog/invoicingCatalogState.d.ts → product/productState.d.ts} +6 -42
  21. package/lib/entity/invoicing/product/productState.js +2 -0
  22. package/lib/entity/jeSchedules/jeSchedulesPayload.d.ts +0 -2
  23. package/lib/entity/jeSchedules/jeSchedulesPayload.js +0 -2
  24. package/lib/entity/jeSchedules/jeSchedulesState.d.ts +0 -2
  25. package/lib/entity/jeSchedules/jeSchedulesTypes.d.ts +4 -4
  26. package/lib/entity/snackbar/snackbarTypes.d.ts +1 -1
  27. package/lib/entity/snackbar/snackbarTypes.js +0 -3
  28. package/lib/epic.d.ts +2 -4
  29. package/lib/epic.js +1 -5
  30. package/lib/esm/entity/actualMatching/actualMatchingReducer.js +1 -9
  31. package/lib/esm/entity/invoicing/plan/planPayload.js +47 -0
  32. package/lib/esm/entity/invoicing/{invoicingCatalog/invoicingCatalogReducer.js → plan/planReducer.js} +20 -19
  33. package/lib/esm/entity/invoicing/{invoicingCatalog/invoicingCatalogSelector.js → plan/planSelector.js} +8 -8
  34. package/lib/esm/entity/invoicing/{invoicingCatalog/invoicingCatalogPayload.js → product/productPayload.js} +3 -46
  35. package/lib/esm/entity/invoicing/product/productReducer.js +43 -0
  36. package/lib/esm/entity/invoicing/product/productSelector.js +10 -0
  37. package/lib/esm/entity/invoicing/product/productState.js +1 -0
  38. package/lib/esm/entity/jeSchedules/jeSchedulesPayload.js +0 -2
  39. package/lib/esm/entity/snackbar/snackbarTypes.js +0 -3
  40. package/lib/esm/epic.js +1 -5
  41. package/lib/esm/index.js +11 -9
  42. package/lib/esm/reducer.js +7 -4
  43. package/lib/esm/view/expenseAutomationView/epics/jeSchedule/actualMatching/fetchActualMatchingMatchEpic.js +2 -4
  44. package/lib/esm/view/expenseAutomationView/epics/jeSchedule/actualMatching/matchAndReverseAccrualsEpic.js +13 -26
  45. package/lib/esm/view/expenseAutomationView/epics/jeSchedule/actualMatching/searchMatchTransactionsEpic.js +23 -2
  46. package/lib/esm/view/expenseAutomationView/reducers/actualMatchingViewReducer.js +38 -89
  47. package/lib/esm/view/expenseAutomationView/selectors/actualMatchingViewSelector.js +62 -68
  48. package/lib/esm/view/expenseAutomationView/types/actualMatchingViewState.js +0 -15
  49. package/lib/esm/view/invoicing/createInvoice/createInvoiceEpic.js +1 -9
  50. package/lib/esm/view/invoicing/createInvoice/createInvoiceSelector.js +1 -1
  51. package/lib/esm/view/invoicing/editInvoicingCatalogItemDetailView/editInvoicingCatalogItemDetailViewSelector.js +3 -5
  52. package/lib/esm/view/invoicing/editInvoicingCatalogItemDetailView/fetchInvoicingCatalogItemDetailEpic.js +2 -2
  53. package/lib/esm/view/invoicing/editInvoicingCatalogItemDetailView/runInvoicingCatalogPlanActionEpic.js +2 -2
  54. package/lib/esm/view/invoicing/editInvoicingCatalogItemDetailView/runInvoicingCatalogProductActionEpic.js +4 -4
  55. package/lib/esm/view/invoicing/editInvoicingCatalogItemDetailView/saveInvoicingCatalogItemEpic.js +7 -3
  56. package/lib/esm/view/invoicing/editInvoicingCatalogItemDetailView/seedInvoicingCatalogItemFormDraftEpic.js +2 -2
  57. package/lib/esm/view/invoicing/editInvoicingCustomerDetailView/editInvoicingCustomerDetailViewReducer.js +1 -5
  58. package/lib/esm/view/invoicing/editInvoicingSubscriptionDetailView/saveInvoicingSubscriptionEpic.js +1 -5
  59. package/lib/esm/view/invoicing/invoiceList/invoiceListReducer.js +1 -8
  60. package/lib/esm/view/invoicing/invoicingCatalogListView/epics/fetchInvoicingCatalogPlanListEpic.js +2 -2
  61. package/lib/esm/view/invoicing/invoicingCatalogListView/epics/fetchInvoicingCatalogProductListEpic.js +2 -2
  62. package/lib/esm/view/invoicing/invoicingCatalogListView/invoicingCatalogListViewSelector.js +20 -56
  63. package/lib/esm/view/invoicing/settingsView/settingsViewSelector.js +9 -18
  64. package/lib/esm/view/invoicing/settingsView/submitInvoicingBrandingFormEpic.js +2 -11
  65. package/lib/esm/view/onboardingView/customerView/epic/customerDetails/updateOnboardingCustomerViewEpic.js +11 -31
  66. package/lib/esm/view/onboardingView/customerView/onboardingCustomerViewReducer.js +1 -2
  67. package/lib/esm/view/spendManagement/billPay/editBillView/editBillViewSelector.js +30 -4
  68. package/lib/esm/view/spendManagement/commonSetup/setupViewReducer.js +1 -21
  69. package/lib/esm/view/spendManagement/commonSetup/setupViewSelector.js +1 -2
  70. package/lib/index.d.ts +17 -14
  71. package/lib/index.js +60 -65
  72. package/lib/reducer.d.ts +2 -1
  73. package/lib/reducer.js +7 -4
  74. package/lib/rootStateTypes.d.ts +5 -3
  75. package/lib/view/expenseAutomationView/epics/jeSchedule/actualMatching/fetchActualMatchingMatchEpic.d.ts +2 -2
  76. package/lib/view/expenseAutomationView/epics/jeSchedule/actualMatching/fetchActualMatchingMatchEpic.js +1 -3
  77. package/lib/view/expenseAutomationView/epics/jeSchedule/actualMatching/matchAndReverseAccrualsEpic.js +11 -24
  78. package/lib/view/expenseAutomationView/epics/jeSchedule/actualMatching/searchMatchTransactionsEpic.js +22 -1
  79. package/lib/view/expenseAutomationView/helpers/transactionCategorizationLocalDataHelper.d.ts +1 -1
  80. package/lib/view/expenseAutomationView/payload/actualMatchingPayload.d.ts +1 -12
  81. package/lib/view/expenseAutomationView/reducers/actualMatchingViewReducer.d.ts +8 -19
  82. package/lib/view/expenseAutomationView/reducers/actualMatchingViewReducer.js +39 -90
  83. package/lib/view/expenseAutomationView/reducers/jeSchedulesViewReducer.d.ts +2 -2
  84. package/lib/view/expenseAutomationView/selectorTypes/actualMatchingViewSelectorTypes.d.ts +10 -24
  85. package/lib/view/expenseAutomationView/selectors/actualMatchingViewSelector.d.ts +4 -7
  86. package/lib/view/expenseAutomationView/selectors/actualMatchingViewSelector.js +62 -71
  87. package/lib/view/expenseAutomationView/types/actualMatchingViewState.d.ts +4 -19
  88. package/lib/view/expenseAutomationView/types/actualMatchingViewState.js +1 -18
  89. package/lib/view/invoicing/createInvoice/createInvoiceEpic.d.ts +2 -3
  90. package/lib/view/invoicing/createInvoice/createInvoiceEpic.js +0 -8
  91. package/lib/view/invoicing/createInvoice/createInvoiceSelector.d.ts +2 -2
  92. package/lib/view/invoicing/createInvoice/createInvoiceSelector.js +2 -2
  93. package/lib/view/invoicing/editInvoicingCatalogItemDetailView/editInvoicingCatalogItemDetailViewPayload.d.ts +9 -8
  94. package/lib/view/invoicing/editInvoicingCatalogItemDetailView/editInvoicingCatalogItemDetailViewSelector.d.ts +2 -2
  95. package/lib/view/invoicing/editInvoicingCatalogItemDetailView/editInvoicingCatalogItemDetailViewSelector.js +3 -5
  96. package/lib/view/invoicing/editInvoicingCatalogItemDetailView/fetchInvoicingCatalogItemDetailEpic.d.ts +2 -2
  97. package/lib/view/invoicing/editInvoicingCatalogItemDetailView/fetchInvoicingCatalogItemDetailEpic.js +2 -2
  98. package/lib/view/invoicing/editInvoicingCatalogItemDetailView/invoicingCatalogItemFormHelper.d.ts +4 -3
  99. package/lib/view/invoicing/editInvoicingCatalogItemDetailView/runInvoicingCatalogPlanActionEpic.d.ts +2 -2
  100. package/lib/view/invoicing/editInvoicingCatalogItemDetailView/runInvoicingCatalogPlanActionEpic.js +2 -2
  101. package/lib/view/invoicing/editInvoicingCatalogItemDetailView/runInvoicingCatalogProductActionEpic.d.ts +3 -2
  102. package/lib/view/invoicing/editInvoicingCatalogItemDetailView/runInvoicingCatalogProductActionEpic.js +4 -4
  103. package/lib/view/invoicing/editInvoicingCatalogItemDetailView/saveInvoicingCatalogItemEpic.d.ts +3 -2
  104. package/lib/view/invoicing/editInvoicingCatalogItemDetailView/saveInvoicingCatalogItemEpic.js +7 -3
  105. package/lib/view/invoicing/editInvoicingCatalogItemDetailView/seedInvoicingCatalogItemFormDraftEpic.js +2 -2
  106. package/lib/view/invoicing/editInvoicingCustomerDetailView/editInvoicingCustomerDetailViewReducer.d.ts +1 -3
  107. package/lib/view/invoicing/editInvoicingCustomerDetailView/editInvoicingCustomerDetailViewReducer.js +2 -6
  108. package/lib/view/invoicing/editInvoicingSubscriptionDetailView/editInvoicingSubscriptionDetailViewSelector.d.ts +2 -2
  109. package/lib/view/invoicing/editInvoicingSubscriptionDetailView/saveInvoicingSubscriptionEpic.d.ts +1 -3
  110. package/lib/view/invoicing/editInvoicingSubscriptionDetailView/saveInvoicingSubscriptionEpic.js +1 -5
  111. package/lib/view/invoicing/invoiceList/invoiceListReducer.d.ts +1 -3
  112. package/lib/view/invoicing/invoiceList/invoiceListReducer.js +2 -9
  113. package/lib/view/invoicing/invoicingCatalogListView/epics/fetchInvoicingCatalogListPageEpic.d.ts +2 -2
  114. package/lib/view/invoicing/invoicingCatalogListView/epics/fetchInvoicingCatalogPlanListEpic.d.ts +2 -2
  115. package/lib/view/invoicing/invoicingCatalogListView/epics/fetchInvoicingCatalogPlanListEpic.js +2 -2
  116. package/lib/view/invoicing/invoicingCatalogListView/epics/fetchInvoicingCatalogProductListEpic.d.ts +2 -2
  117. package/lib/view/invoicing/invoicingCatalogListView/epics/fetchInvoicingCatalogProductListEpic.js +2 -2
  118. package/lib/view/invoicing/invoicingCatalogListView/invoicingCatalogListViewPayload.d.ts +3 -3
  119. package/lib/view/invoicing/invoicingCatalogListView/invoicingCatalogListViewSelector.d.ts +5 -29
  120. package/lib/view/invoicing/invoicingCatalogListView/invoicingCatalogListViewSelector.js +21 -58
  121. package/lib/view/invoicing/invoicingCatalogListView/invoicingCatalogListViewState.d.ts +1 -1
  122. package/lib/view/invoicing/invoicingDunningCaseListView/invoicingDunningCaseListViewReducer.d.ts +1 -1
  123. package/lib/view/invoicing/invoicingDunningCaseListView/invoicingDunningCaseListViewState.d.ts +1 -1
  124. package/lib/view/invoicing/invoicingSubscriptionListView/invoicingSubscriptionListViewReducer.d.ts +1 -1
  125. package/lib/view/invoicing/invoicingSubscriptionListView/invoicingSubscriptionListViewState.d.ts +1 -1
  126. package/lib/view/invoicing/settingsView/settingsViewSelector.d.ts +3 -12
  127. package/lib/view/invoicing/settingsView/settingsViewSelector.js +8 -17
  128. package/lib/view/invoicing/settingsView/submitInvoicingBrandingFormEpic.js +2 -11
  129. package/lib/view/onboardingView/customerView/epic/customerDetails/updateOnboardingCustomerViewEpic.js +11 -31
  130. package/lib/view/onboardingView/customerView/onboardingCustomerViewReducer.d.ts +2 -3
  131. package/lib/view/onboardingView/customerView/onboardingCustomerViewReducer.js +1 -2
  132. package/lib/view/onboardingView/customerView/onboardingCustomerViewState.d.ts +0 -4
  133. package/lib/view/scheduleView/scheduleListView/scheduleListTypes.d.ts +1 -1
  134. package/lib/view/spendManagement/billPay/billList/billListReducer.d.ts +5 -5
  135. package/lib/view/spendManagement/billPay/billList/billListState.d.ts +1 -1
  136. package/lib/view/spendManagement/billPay/editBillView/editBillViewReducer.d.ts +2 -2
  137. package/lib/view/spendManagement/billPay/editBillView/editBillViewSelector.d.ts +1 -1
  138. package/lib/view/spendManagement/billPay/editBillView/editBillViewSelector.js +30 -4
  139. package/lib/view/spendManagement/commonSetup/setupViewReducer.d.ts +1 -1
  140. package/lib/view/spendManagement/commonSetup/setupViewReducer.js +2 -22
  141. package/lib/view/spendManagement/commonSetup/setupViewSelector.d.ts +0 -1
  142. package/lib/view/spendManagement/commonSetup/setupViewSelector.js +1 -2
  143. package/lib/view/spendManagement/commonSetup/setupViewState.d.ts +0 -1
  144. package/lib/view/spendManagement/commonSetup/types/businessVerification.d.ts +1 -2
  145. package/lib/view/spendManagement/reimbursement/editRemiView/editRemiViewReducer.d.ts +2 -2
  146. package/lib/view/spendManagement/reimbursement/remiListView/remiListReducer.d.ts +5 -5
  147. package/lib/view/spendManagement/reimbursement/remiListView/remiListState.d.ts +2 -2
  148. package/package.json +1 -1
  149. package/lib/entity/invoicing/invoicingCatalog/invoicingCatalogReducer.d.ts +0 -12
  150. package/lib/esm/view/expenseAutomationView/epics/jeSchedule/actualMatching/ignoreActualMatchingSuggestionEpic.js +0 -50
  151. package/lib/esm/view/spendManagement/commonSetup/epic/setup/resetKycKybEpic.js +0 -37
  152. package/lib/view/expenseAutomationView/epics/jeSchedule/actualMatching/ignoreActualMatchingSuggestionEpic.d.ts +0 -10
  153. package/lib/view/expenseAutomationView/epics/jeSchedule/actualMatching/ignoreActualMatchingSuggestionEpic.js +0 -54
  154. package/lib/view/spendManagement/commonSetup/epic/setup/resetKycKybEpic.d.ts +0 -8
  155. package/lib/view/spendManagement/commonSetup/epic/setup/resetKycKybEpic.js +0 -41
  156. /package/lib/entity/invoicing/{invoicingCatalog/invoicingCatalogState.js → plan/planState.js} +0 -0
  157. /package/lib/esm/entity/invoicing/{invoicingCatalog/invoicingCatalogState.js → plan/planState.js} +0 -0
@@ -11,23 +11,23 @@ export declare const fetchRemiList: import("@reduxjs/toolkit").ActionCreatorWith
11
11
  isIncludeLineItems: boolean;
12
12
  isRefreshAccountAndAccountingClass: boolean;
13
13
  isBulkActionCompleteRefresh: any;
14
- }, "remiList/fetchRemiList", never, never>, fetchRemiListPerTab: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[period: TimePeriod, tab: "draft" | "paid" | "pending_approval" | "scheduled", isShowDeletedReimbursementEnabled: boolean, isIncludeLineItems: boolean, isRefreshAccountAndAccountingClass: boolean], {
14
+ }, "remiList/fetchRemiList", never, never>, fetchRemiListPerTab: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[period: TimePeriod, tab: "paid" | "pending_approval" | "scheduled" | "draft", isShowDeletedReimbursementEnabled: boolean, isIncludeLineItems: boolean, isRefreshAccountAndAccountingClass: boolean], {
15
15
  period: TimePeriod;
16
- tab: "draft" | "paid" | "pending_approval" | "scheduled";
16
+ tab: "paid" | "pending_approval" | "scheduled" | "draft";
17
17
  isShowDeletedReimbursementEnabled: boolean;
18
18
  isIncludeLineItems: boolean;
19
19
  isRefreshAccountAndAccountingClass: boolean;
20
20
  }, "remiList/fetchRemiListPerTab", never, never>, updateRemiListByStatus: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
21
21
  remiList: RemiListPayload;
22
22
  tab: RemiTabType;
23
- }, "remiList/updateRemiListByStatus">, updateRemiListFailure: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[period: TimePeriod, tab: "draft" | "paid" | "pending_approval" | "scheduled", error: ZeniAPIStatus<Record<string, unknown>>], {
23
+ }, "remiList/updateRemiListByStatus">, updateRemiListFailure: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[period: TimePeriod, tab: "paid" | "pending_approval" | "scheduled" | "draft", error: ZeniAPIStatus<Record<string, unknown>>], {
24
24
  period: TimePeriod;
25
- tab: "draft" | "paid" | "pending_approval" | "scheduled";
25
+ tab: "paid" | "pending_approval" | "scheduled" | "draft";
26
26
  error: ZeniAPIStatus<Record<string, unknown>>;
27
27
  }, "remiList/updateRemiListFailure", never, never>, updateRemiListUIState: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
28
28
  period: TimePeriod;
29
29
  uiState: Partial<RemiListUIState>;
30
- }, "remiList/updateRemiListUIState">, updateTab: import("@reduxjs/toolkit").ActionCreatorWithPayload<"draft" | "paid" | "pending_approval" | "scheduled", "remiList/updateTab">, updateSubTab: import("@reduxjs/toolkit").ActionCreatorWithPayload<"failed" | "deleted" | "cancelled" | "rejected" | "ach" | "wire" | "all" | "overdue" | "myDrafts" | "awaitingApproval" | "awaitingMyApproval" | "awaitingAllApproval", "remiList/updateSubTab">, updateSelectedRemiId: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "remiList/updateSelectedRemiId">, updateRemiDetailSaveRemiCode: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<SaveRemiStageCode, "remiList/updateRemiDetailSaveRemiCode">, updateSearchResult: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "remiList/updateSearchResult">, updateFilterResult: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
30
+ }, "remiList/updateRemiListUIState">, updateTab: import("@reduxjs/toolkit").ActionCreatorWithPayload<"paid" | "pending_approval" | "scheduled" | "draft", "remiList/updateTab">, updateSubTab: import("@reduxjs/toolkit").ActionCreatorWithPayload<"failed" | "deleted" | "cancelled" | "rejected" | "ach" | "wire" | "all" | "overdue" | "myDrafts" | "awaitingApproval" | "awaitingMyApproval" | "awaitingAllApproval", "remiList/updateSubTab">, updateSelectedRemiId: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "remiList/updateSelectedRemiId">, updateRemiDetailSaveRemiCode: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<SaveRemiStageCode, "remiList/updateRemiDetailSaveRemiCode">, updateSearchResult: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "remiList/updateSearchResult">, updateFilterResult: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
31
31
  filters: ReimbursementFilters;
32
32
  }, "remiList/updateFilterResult">, updateRemiListDownloadUIState: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
33
33
  uiState: Partial<RemiListDownloadUIState>;
@@ -30,8 +30,8 @@ export interface RemiListDownloadUIState extends RemiListUIState {
30
30
  }
31
31
  export type SaveRemiStageCode = 'draft' | 'pending_approval' | undefined;
32
32
  export declare const ALL_REMI_TABS: readonly ["paid", "pending_approval", "scheduled", "draft"];
33
- export declare const toRemiTabType: (v: string) => "draft" | "paid" | "pending_approval" | "scheduled";
34
- export declare const toRemiTabTypeStrict: (v: string) => "draft" | "paid" | "pending_approval" | "scheduled" | undefined;
33
+ export declare const toRemiTabType: (v: string) => "paid" | "pending_approval" | "scheduled" | "draft";
34
+ export declare const toRemiTabTypeStrict: (v: string) => "paid" | "pending_approval" | "scheduled" | "draft" | undefined;
35
35
  export type RemiTabType = ReturnType<typeof toRemiTabType>;
36
36
  export declare const toRemiSubTabType: (v: string) => "failed" | "deleted" | "cancelled" | "rejected" | "ach" | "wire" | "all" | "overdue" | "myDrafts" | "awaitingApproval" | "awaitingMyApproval" | "awaitingAllApproval";
37
37
  export declare const toRemiSubTabTypeStrict: (v: string) => "failed" | "deleted" | "cancelled" | "rejected" | "ach" | "wire" | "all" | "overdue" | "myDrafts" | "awaitingApproval" | "awaitingMyApproval" | "awaitingAllApproval" | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zeniai/client-epic-state",
3
- "version": "5.2.69-betaAK0",
3
+ "version": "5.2.70",
4
4
  "description": "Shared module between Web & Mobile containing required abstractions for state management, async network communication. ",
5
5
  "main": "lib/index.js",
6
6
  "module": "lib/esm/index.js",
@@ -1,12 +0,0 @@
1
- import { UpdateType } from '../../../commonStateTypes/common';
2
- import { InvoicingCatalogItemPayload, InvoicingCatalogPricePointPayload } from './invoicingCatalogPayload';
3
- import { InvoicingCatalogPricePoint, InvoicingCatalogState } from './invoicingCatalogState';
4
- export declare const initialState: InvoicingCatalogState;
5
- export declare const updateInvoicingCatalogItems: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[payload: InvoicingCatalogItemPayload[], updateType?: UpdateType | undefined], InvoicingCatalogItemPayload[], "invoicingCatalog/updateInvoicingCatalogItems", never, {
6
- updateType: UpdateType;
7
- }>, mergeInvoicingCatalogPricePoint: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[itemId: string, subFamilyPayload: InvoicingCatalogPricePointPayload], {
8
- itemId: string;
9
- subFamily: InvoicingCatalogPricePoint;
10
- }, "invoicingCatalog/mergeInvoicingCatalogPricePoint", never, never>, removeInvoicingCatalogItem: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "invoicingCatalog/removeInvoicingCatalogItem">;
11
- declare const _default: import("redux").Reducer<InvoicingCatalogState>;
12
- export default _default;
@@ -1,50 +0,0 @@
1
- import { from, of } from 'rxjs';
2
- import { catchError, exhaustMap, filter, groupBy, mergeMap, takeUntil, } from 'rxjs/operators';
3
- import { removeActualMatchingMatch } from '../../../../../entity/actualMatching/actualMatchingReducer';
4
- import { getActualMatchingMatchById } from '../../../../../entity/actualMatching/actualMatchingSelector';
5
- import { openSnackbar } from '../../../../../entity/snackbar/snackbarReducer';
6
- import { createZeniAPIStatus, isSuccessResponse } from '../../../../../responsePayload';
7
- import { clearAll } from '../../../../../rootActions';
8
- import { ignoreActualMatchingSuggestion, ignoreActualMatchingSuggestionFailure, ignoreActualMatchingSuggestionSuccess, } from '../../../reducers/actualMatchingViewReducer';
9
- import { refreshActualMatchingList } from './refreshActualMatchingList';
10
- function matchVendorName(state, matchId) {
11
- return (getActualMatchingMatchById(state.actualMatchingState, matchId)?.vendorName ??
12
- '');
13
- }
14
- function ignoreSuggestionSnackbar(vendorName, succeeded) {
15
- return openSnackbar({
16
- messageSection: 'actual_matching_ignore_suggestion',
17
- messageText: succeeded ? 'success' : 'failed',
18
- type: succeeded ? 'success' : 'error',
19
- variables: [{ variableName: '_vendor_name_', variableValue: vendorName }],
20
- });
21
- }
22
- export const ignoreActualMatchingSuggestionEpic = (actions$, state$, zeniAPI) => actions$.pipe(filter(ignoreActualMatchingSuggestion.match), groupBy((action) => action.payload.matchId), mergeMap((perMatch$) => perMatch$.pipe(exhaustMap((action) => {
23
- const { matchId, reason, note } = action.payload;
24
- const body = {
25
- reason,
26
- ...(note != null && note !== '' ? { note } : {}),
27
- };
28
- const vendorName = matchVendorName(state$.value, matchId);
29
- return zeniAPI
30
- .putAndGetJSON(`${zeniAPI.apiEndPoints.accountMicroServiceBaseUrl}/1.0/accruals/actual-matching/${encodeURIComponent(matchId)}/ignore`, body)
31
- .pipe(mergeMap((response) => {
32
- if (isSuccessResponse(response) && response.data != null) {
33
- const successActions = [
34
- removeActualMatchingMatch(matchId),
35
- ignoreActualMatchingSuggestionSuccess({ matchId }),
36
- ...refreshActualMatchingList(state$.value),
37
- ignoreSuggestionSnackbar(vendorName, true),
38
- ];
39
- return from(successActions);
40
- }
41
- return of(ignoreActualMatchingSuggestionFailure({
42
- matchId,
43
- status: response.status,
44
- }), ignoreSuggestionSnackbar(vendorName, false));
45
- }), catchError((error) => of(ignoreActualMatchingSuggestionFailure({
46
- matchId,
47
- status: createZeniAPIStatus('Unexpected Error', 'Ignore actual matching suggestion REST API call errored out' +
48
- JSON.stringify(error)),
49
- }), ignoreSuggestionSnackbar(vendorName, false))), takeUntil(actions$.pipe(filter(clearAll.match))));
50
- }))));
@@ -1,37 +0,0 @@
1
- import { from } from 'rxjs';
2
- import { catchError, filter, mergeMap } from 'rxjs/operators';
3
- import { openSnackbar } from '../../../../../entity/snackbar/snackbarReducer';
4
- import { createZeniAPIStatus, isSuccessResponse, } from '../../../../../responsePayload';
5
- import { resetKycKyb, resetKycKybFailure, resetKycKybSuccess, } from '../../setupViewReducer';
6
- export const resetKycKybEpic = (actions$, _state$, zeniAPI) => actions$.pipe(filter(resetKycKyb.match), mergeMap(() => zeniAPI
7
- .putAndGetJSON(`${zeniAPI.apiEndPoints.tenantMicroServiceBaseUrl}/1.0/kyc-kyb-reset`, { is_reset_company_officers: false })
8
- .pipe(mergeMap((response) => {
9
- if (isSuccessResponse(response)) {
10
- return from([
11
- resetKycKybSuccess(),
12
- openSnackbar({
13
- messageSection: 'kyc_kyb_reset',
14
- messageText: 'success',
15
- type: 'success',
16
- }),
17
- ]);
18
- }
19
- return from([
20
- resetKycKybFailure(response.status),
21
- openSnackbar({
22
- messageSection: 'kyc_kyb_reset',
23
- messageText: 'failed',
24
- type: 'error',
25
- }),
26
- ]);
27
- }), catchError((error) => from([
28
- resetKycKybFailure(createZeniAPIStatus('Unexpected error', 'Reset KYC/KYB errored out: ' +
29
- (error instanceof Error
30
- ? error.message
31
- : JSON.stringify(error)))),
32
- openSnackbar({
33
- messageSection: 'kyc_kyb_reset',
34
- messageText: 'failed',
35
- type: 'error',
36
- }),
37
- ])))));
@@ -1,10 +0,0 @@
1
- import { ActionsObservable, StateObservable } from 'redux-observable';
2
- import { Observable } from 'rxjs';
3
- import { removeActualMatchingMatch } from '../../../../../entity/actualMatching/actualMatchingReducer';
4
- import { openSnackbar } from '../../../../../entity/snackbar/snackbarReducer';
5
- import { clearAll } from '../../../../../rootActions';
6
- import { RootState } from '../../../../../rootStateTypes';
7
- import { ZeniAPI } from '../../../../../zeniAPI';
8
- import { fetchActualMatching, ignoreActualMatchingSuggestion, ignoreActualMatchingSuggestionFailure, ignoreActualMatchingSuggestionSuccess } from '../../../reducers/actualMatchingViewReducer';
9
- export type ActionType = ReturnType<typeof clearAll> | ReturnType<typeof fetchActualMatching> | ReturnType<typeof ignoreActualMatchingSuggestion> | ReturnType<typeof ignoreActualMatchingSuggestionFailure> | ReturnType<typeof ignoreActualMatchingSuggestionSuccess> | ReturnType<typeof openSnackbar> | ReturnType<typeof removeActualMatchingMatch>;
10
- export declare const ignoreActualMatchingSuggestionEpic: (actions$: ActionsObservable<ActionType>, state$: StateObservable<RootState>, zeniAPI: ZeniAPI) => Observable<ActionType>;
@@ -1,54 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ignoreActualMatchingSuggestionEpic = void 0;
4
- const rxjs_1 = require("rxjs");
5
- const operators_1 = require("rxjs/operators");
6
- const actualMatchingReducer_1 = require("../../../../../entity/actualMatching/actualMatchingReducer");
7
- const actualMatchingSelector_1 = require("../../../../../entity/actualMatching/actualMatchingSelector");
8
- const snackbarReducer_1 = require("../../../../../entity/snackbar/snackbarReducer");
9
- const responsePayload_1 = require("../../../../../responsePayload");
10
- const rootActions_1 = require("../../../../../rootActions");
11
- const actualMatchingViewReducer_1 = require("../../../reducers/actualMatchingViewReducer");
12
- const refreshActualMatchingList_1 = require("./refreshActualMatchingList");
13
- function matchVendorName(state, matchId) {
14
- return ((0, actualMatchingSelector_1.getActualMatchingMatchById)(state.actualMatchingState, matchId)?.vendorName ??
15
- '');
16
- }
17
- function ignoreSuggestionSnackbar(vendorName, succeeded) {
18
- return (0, snackbarReducer_1.openSnackbar)({
19
- messageSection: 'actual_matching_ignore_suggestion',
20
- messageText: succeeded ? 'success' : 'failed',
21
- type: succeeded ? 'success' : 'error',
22
- variables: [{ variableName: '_vendor_name_', variableValue: vendorName }],
23
- });
24
- }
25
- const ignoreActualMatchingSuggestionEpic = (actions$, state$, zeniAPI) => actions$.pipe((0, operators_1.filter)(actualMatchingViewReducer_1.ignoreActualMatchingSuggestion.match), (0, operators_1.groupBy)((action) => action.payload.matchId), (0, operators_1.mergeMap)((perMatch$) => perMatch$.pipe((0, operators_1.exhaustMap)((action) => {
26
- const { matchId, reason, note } = action.payload;
27
- const body = {
28
- reason,
29
- ...(note != null && note !== '' ? { note } : {}),
30
- };
31
- const vendorName = matchVendorName(state$.value, matchId);
32
- return zeniAPI
33
- .putAndGetJSON(`${zeniAPI.apiEndPoints.accountMicroServiceBaseUrl}/1.0/accruals/actual-matching/${encodeURIComponent(matchId)}/ignore`, body)
34
- .pipe((0, operators_1.mergeMap)((response) => {
35
- if ((0, responsePayload_1.isSuccessResponse)(response) && response.data != null) {
36
- const successActions = [
37
- (0, actualMatchingReducer_1.removeActualMatchingMatch)(matchId),
38
- (0, actualMatchingViewReducer_1.ignoreActualMatchingSuggestionSuccess)({ matchId }),
39
- ...(0, refreshActualMatchingList_1.refreshActualMatchingList)(state$.value),
40
- ignoreSuggestionSnackbar(vendorName, true),
41
- ];
42
- return (0, rxjs_1.from)(successActions);
43
- }
44
- return (0, rxjs_1.of)((0, actualMatchingViewReducer_1.ignoreActualMatchingSuggestionFailure)({
45
- matchId,
46
- status: response.status,
47
- }), ignoreSuggestionSnackbar(vendorName, false));
48
- }), (0, operators_1.catchError)((error) => (0, rxjs_1.of)((0, actualMatchingViewReducer_1.ignoreActualMatchingSuggestionFailure)({
49
- matchId,
50
- status: (0, responsePayload_1.createZeniAPIStatus)('Unexpected Error', 'Ignore actual matching suggestion REST API call errored out' +
51
- JSON.stringify(error)),
52
- }), ignoreSuggestionSnackbar(vendorName, false))), (0, operators_1.takeUntil)(actions$.pipe((0, operators_1.filter)(rootActions_1.clearAll.match))));
53
- }))));
54
- exports.ignoreActualMatchingSuggestionEpic = ignoreActualMatchingSuggestionEpic;
@@ -1,8 +0,0 @@
1
- import { ActionsObservable, StateObservable } from 'redux-observable';
2
- import { Observable } from 'rxjs';
3
- import { openSnackbar } from '../../../../../entity/snackbar/snackbarReducer';
4
- import { RootState } from '../../../../../rootStateTypes';
5
- import { ZeniAPI } from '../../../../../zeniAPI';
6
- import { resetKycKyb, resetKycKybFailure, resetKycKybSuccess } from '../../setupViewReducer';
7
- export type ActionType = ReturnType<typeof openSnackbar> | ReturnType<typeof resetKycKyb> | ReturnType<typeof resetKycKybSuccess> | ReturnType<typeof resetKycKybFailure>;
8
- export declare const resetKycKybEpic: (actions$: ActionsObservable<ActionType>, _state$: StateObservable<RootState>, zeniAPI: ZeniAPI) => Observable<ActionType>;
@@ -1,41 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.resetKycKybEpic = void 0;
4
- const rxjs_1 = require("rxjs");
5
- const operators_1 = require("rxjs/operators");
6
- const snackbarReducer_1 = require("../../../../../entity/snackbar/snackbarReducer");
7
- const responsePayload_1 = require("../../../../../responsePayload");
8
- const setupViewReducer_1 = require("../../setupViewReducer");
9
- const resetKycKybEpic = (actions$, _state$, zeniAPI) => actions$.pipe((0, operators_1.filter)(setupViewReducer_1.resetKycKyb.match), (0, operators_1.mergeMap)(() => zeniAPI
10
- .putAndGetJSON(`${zeniAPI.apiEndPoints.tenantMicroServiceBaseUrl}/1.0/kyc-kyb-reset`, { is_reset_company_officers: false })
11
- .pipe((0, operators_1.mergeMap)((response) => {
12
- if ((0, responsePayload_1.isSuccessResponse)(response)) {
13
- return (0, rxjs_1.from)([
14
- (0, setupViewReducer_1.resetKycKybSuccess)(),
15
- (0, snackbarReducer_1.openSnackbar)({
16
- messageSection: 'kyc_kyb_reset',
17
- messageText: 'success',
18
- type: 'success',
19
- }),
20
- ]);
21
- }
22
- return (0, rxjs_1.from)([
23
- (0, setupViewReducer_1.resetKycKybFailure)(response.status),
24
- (0, snackbarReducer_1.openSnackbar)({
25
- messageSection: 'kyc_kyb_reset',
26
- messageText: 'failed',
27
- type: 'error',
28
- }),
29
- ]);
30
- }), (0, operators_1.catchError)((error) => (0, rxjs_1.from)([
31
- (0, setupViewReducer_1.resetKycKybFailure)((0, responsePayload_1.createZeniAPIStatus)('Unexpected error', 'Reset KYC/KYB errored out: ' +
32
- (error instanceof Error
33
- ? error.message
34
- : JSON.stringify(error)))),
35
- (0, snackbarReducer_1.openSnackbar)({
36
- messageSection: 'kyc_kyb_reset',
37
- messageText: 'failed',
38
- type: 'error',
39
- }),
40
- ])))));
41
- exports.resetKycKybEpic = resetKycKybEpic;