@zeniai/client-epic-state 5.2.68 → 5.2.69-beta0MM
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.
- package/lib/entity/aiCfo/aiCfoState.d.ts +2 -2
- package/lib/entity/billPay/billTransaction/billTransactionState.d.ts +2 -2
- package/lib/entity/chargeCardTransaction/chargeCardTransaction.d.ts +1 -1
- package/lib/entity/depositAccountTransaction/depositAccountTransaction.d.ts +1 -1
- package/lib/entity/invoicing/{product/productPayload.d.ts → invoicingCatalog/invoicingCatalogPayload.d.ts} +44 -6
- package/lib/entity/invoicing/{product/productPayload.js → invoicingCatalog/invoicingCatalogPayload.js} +50 -6
- package/lib/entity/invoicing/invoicingCatalog/invoicingCatalogReducer.d.ts +12 -0
- package/lib/entity/invoicing/{plan/planReducer.js → invoicingCatalog/invoicingCatalogReducer.js} +20 -21
- package/lib/entity/invoicing/{plan/planSelector.d.ts → invoicingCatalog/invoicingCatalogSelector.d.ts} +5 -6
- package/lib/entity/invoicing/{plan/planSelector.js → invoicingCatalog/invoicingCatalogSelector.js} +12 -12
- package/lib/entity/invoicing/{product/productState.d.ts → invoicingCatalog/invoicingCatalogState.d.ts} +42 -6
- package/lib/entity/jeSchedules/jeSchedulesPayload.d.ts +1 -0
- package/lib/entity/jeSchedules/jeSchedulesPayload.js +1 -0
- package/lib/entity/jeSchedules/jeSchedulesState.d.ts +1 -0
- package/lib/entity/jeSchedules/jeSchedulesTypes.d.ts +4 -4
- package/lib/esm/entity/invoicing/{product/productPayload.js → invoicingCatalog/invoicingCatalogPayload.js} +46 -3
- package/lib/esm/entity/invoicing/{plan/planReducer.js → invoicingCatalog/invoicingCatalogReducer.js} +19 -20
- package/lib/esm/entity/invoicing/{plan/planSelector.js → invoicingCatalog/invoicingCatalogSelector.js} +8 -8
- package/lib/esm/entity/jeSchedules/jeSchedulesPayload.js +1 -0
- package/lib/esm/index.js +2 -4
- package/lib/esm/reducer.js +4 -7
- package/lib/esm/view/expenseAutomationView/selectors/actualMatchingViewSelector.js +19 -16
- package/lib/esm/view/invoicing/createInvoice/createInvoiceSelector.js +1 -1
- package/lib/esm/view/invoicing/editInvoicingCatalogItemDetailView/editInvoicingCatalogItemDetailViewSelector.js +5 -3
- package/lib/esm/view/invoicing/editInvoicingCatalogItemDetailView/fetchInvoicingCatalogItemDetailEpic.js +2 -2
- package/lib/esm/view/invoicing/editInvoicingCatalogItemDetailView/runInvoicingCatalogPlanActionEpic.js +2 -2
- package/lib/esm/view/invoicing/editInvoicingCatalogItemDetailView/runInvoicingCatalogProductActionEpic.js +4 -4
- package/lib/esm/view/invoicing/editInvoicingCatalogItemDetailView/saveInvoicingCatalogItemEpic.js +3 -7
- package/lib/esm/view/invoicing/editInvoicingCatalogItemDetailView/seedInvoicingCatalogItemFormDraftEpic.js +2 -2
- package/lib/esm/view/invoicing/invoicingCatalogListView/epics/fetchInvoicingCatalogPlanListEpic.js +2 -2
- package/lib/esm/view/invoicing/invoicingCatalogListView/epics/fetchInvoicingCatalogProductListEpic.js +2 -2
- package/lib/esm/view/invoicing/invoicingCatalogListView/invoicingCatalogListViewSelector.js +4 -4
- package/lib/index.d.ts +5 -8
- package/lib/index.js +9 -15
- package/lib/reducer.d.ts +1 -2
- package/lib/reducer.js +4 -7
- package/lib/rootStateTypes.d.ts +3 -5
- package/lib/view/expenseAutomationView/reducers/jeSchedulesViewReducer.d.ts +2 -2
- package/lib/view/expenseAutomationView/selectorTypes/actualMatchingViewSelectorTypes.d.ts +2 -1
- package/lib/view/expenseAutomationView/selectors/actualMatchingViewSelector.js +19 -16
- package/lib/view/expenseAutomationView/types/actualMatchingViewState.d.ts +2 -3
- package/lib/view/invoicing/createInvoice/createInvoiceSelector.d.ts +2 -2
- package/lib/view/invoicing/createInvoice/createInvoiceSelector.js +2 -2
- package/lib/view/invoicing/editInvoicingCatalogItemDetailView/editInvoicingCatalogItemDetailViewPayload.d.ts +8 -9
- package/lib/view/invoicing/editInvoicingCatalogItemDetailView/editInvoicingCatalogItemDetailViewSelector.d.ts +2 -2
- package/lib/view/invoicing/editInvoicingCatalogItemDetailView/editInvoicingCatalogItemDetailViewSelector.js +5 -3
- package/lib/view/invoicing/editInvoicingCatalogItemDetailView/fetchInvoicingCatalogItemDetailEpic.d.ts +2 -2
- package/lib/view/invoicing/editInvoicingCatalogItemDetailView/fetchInvoicingCatalogItemDetailEpic.js +2 -2
- package/lib/view/invoicing/editInvoicingCatalogItemDetailView/invoicingCatalogItemFormHelper.d.ts +3 -4
- package/lib/view/invoicing/editInvoicingCatalogItemDetailView/runInvoicingCatalogPlanActionEpic.d.ts +2 -2
- package/lib/view/invoicing/editInvoicingCatalogItemDetailView/runInvoicingCatalogPlanActionEpic.js +2 -2
- package/lib/view/invoicing/editInvoicingCatalogItemDetailView/runInvoicingCatalogProductActionEpic.d.ts +2 -3
- package/lib/view/invoicing/editInvoicingCatalogItemDetailView/runInvoicingCatalogProductActionEpic.js +4 -4
- package/lib/view/invoicing/editInvoicingCatalogItemDetailView/saveInvoicingCatalogItemEpic.d.ts +2 -3
- package/lib/view/invoicing/editInvoicingCatalogItemDetailView/saveInvoicingCatalogItemEpic.js +3 -7
- package/lib/view/invoicing/editInvoicingCatalogItemDetailView/seedInvoicingCatalogItemFormDraftEpic.js +2 -2
- package/lib/view/invoicing/editInvoicingSubscriptionDetailView/editInvoicingSubscriptionDetailViewSelector.d.ts +2 -2
- package/lib/view/invoicing/invoicingCatalogListView/epics/fetchInvoicingCatalogListPageEpic.d.ts +2 -2
- package/lib/view/invoicing/invoicingCatalogListView/epics/fetchInvoicingCatalogPlanListEpic.d.ts +2 -2
- package/lib/view/invoicing/invoicingCatalogListView/epics/fetchInvoicingCatalogPlanListEpic.js +2 -2
- package/lib/view/invoicing/invoicingCatalogListView/epics/fetchInvoicingCatalogProductListEpic.d.ts +2 -2
- package/lib/view/invoicing/invoicingCatalogListView/epics/fetchInvoicingCatalogProductListEpic.js +2 -2
- package/lib/view/invoicing/invoicingCatalogListView/invoicingCatalogListViewPayload.d.ts +3 -3
- package/lib/view/invoicing/invoicingCatalogListView/invoicingCatalogListViewSelector.d.ts +4 -5
- package/lib/view/invoicing/invoicingCatalogListView/invoicingCatalogListViewSelector.js +4 -4
- package/lib/view/invoicing/invoicingCatalogListView/invoicingCatalogListViewState.d.ts +1 -1
- package/lib/view/invoicing/invoicingDunningCaseListView/invoicingDunningCaseListViewReducer.d.ts +1 -1
- package/lib/view/invoicing/invoicingDunningCaseListView/invoicingDunningCaseListViewState.d.ts +1 -1
- package/lib/view/invoicing/invoicingSubscriptionListView/invoicingSubscriptionListViewReducer.d.ts +1 -1
- package/lib/view/invoicing/invoicingSubscriptionListView/invoicingSubscriptionListViewState.d.ts +1 -1
- package/lib/view/scheduleView/scheduleListView/scheduleListTypes.d.ts +1 -1
- package/lib/view/spendManagement/billPay/billList/billListReducer.d.ts +5 -5
- package/lib/view/spendManagement/billPay/billList/billListState.d.ts +1 -1
- package/lib/view/spendManagement/billPay/editBillView/editBillViewReducer.d.ts +2 -2
- package/lib/view/spendManagement/reimbursement/editRemiView/editRemiViewReducer.d.ts +2 -2
- package/lib/view/spendManagement/reimbursement/remiListView/remiListReducer.d.ts +5 -5
- package/lib/view/spendManagement/reimbursement/remiListView/remiListState.d.ts +2 -2
- package/package.json +1 -1
- package/lib/entity/invoicing/plan/planPayload.d.ts +0 -40
- package/lib/entity/invoicing/plan/planPayload.js +0 -51
- package/lib/entity/invoicing/plan/planReducer.d.ts +0 -14
- package/lib/entity/invoicing/plan/planState.d.ts +0 -43
- package/lib/entity/invoicing/product/productReducer.d.ts +0 -9
- package/lib/entity/invoicing/product/productReducer.js +0 -50
- package/lib/entity/invoicing/product/productSelector.d.ts +0 -4
- package/lib/entity/invoicing/product/productSelector.js +0 -17
- package/lib/entity/invoicing/product/productState.js +0 -2
- package/lib/esm/entity/invoicing/plan/planPayload.js +0 -47
- package/lib/esm/entity/invoicing/product/productReducer.js +0 -43
- package/lib/esm/entity/invoicing/product/productSelector.js +0 -10
- package/lib/esm/entity/invoicing/product/productState.js +0 -1
- /package/lib/entity/invoicing/{plan/planState.js → invoicingCatalog/invoicingCatalogState.js} +0 -0
- /package/lib/esm/entity/invoicing/{plan/planState.js → invoicingCatalog/invoicingCatalogState.js} +0 -0
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.seedInvoicingCatalogItemFormDraftEpic = void 0;
|
|
4
4
|
const rxjs_1 = require("rxjs");
|
|
5
5
|
const operators_1 = require("rxjs/operators");
|
|
6
|
-
const
|
|
6
|
+
const invoicingCatalogSelector_1 = require("../../../entity/invoicing/invoicingCatalog/invoicingCatalogSelector");
|
|
7
7
|
const editInvoicingCatalogItemDetailViewReducer_1 = require("./editInvoicingCatalogItemDetailViewReducer");
|
|
8
8
|
const invoicingCatalogItemFormHelper_1 = require("./invoicingCatalogItemFormHelper");
|
|
9
9
|
/**
|
|
@@ -37,7 +37,7 @@ const seedInvoicingCatalogItemFormDraftEpic = (actions$, state$) => actions$.pip
|
|
|
37
37
|
}
|
|
38
38
|
// Nothing to seed from on a cold open; the detail response triggers this
|
|
39
39
|
// again once it lands.
|
|
40
|
-
const plan = (0,
|
|
40
|
+
const plan = (0, invoicingCatalogSelector_1.getInvoicingCatalogItemById)(state.invoicingCatalogState, id);
|
|
41
41
|
if (plan == null) {
|
|
42
42
|
return rxjs_1.EMPTY;
|
|
43
43
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Amount } from '../../../commonStateTypes/amount';
|
|
2
2
|
import { FetchStateAndError, ID } from '../../../commonStateTypes/common';
|
|
3
3
|
import { SelectorView } from '../../../commonStateTypes/viewAndReport/viewAndReport';
|
|
4
|
+
import { InvoicingCatalogPricePoint } from '../../../entity/invoicing/invoicingCatalog/invoicingCatalogState';
|
|
4
5
|
import { InvoicingFieldHelpByCode, InvoicingNamedOption, InvoicingSubscriptionLifecycleActionOption } from '../../../entity/invoicing/invoicingCommonPayload';
|
|
5
6
|
import { InvoicingSubscription } from '../../../entity/invoicing/invoicingSubscription/invoicingSubscriptionState';
|
|
6
|
-
import { InvoicingProduct } from '../../../entity/invoicing/product/productState';
|
|
7
7
|
import { RootState } from '../../../rootStateTypes';
|
|
8
8
|
import { InvoicingSubscriptionFormLocalData } from './editInvoicingSubscriptionDetailViewState';
|
|
9
9
|
/**
|
|
@@ -107,7 +107,7 @@ export declare const getEditInvoicingSubscriptionDetailViewState: (state: RootSt
|
|
|
107
107
|
* Lives here rather than in a screen so the create/edit form and the detail
|
|
108
108
|
* page's inline edit narrow their pickers by the same rule.
|
|
109
109
|
*/
|
|
110
|
-
export declare const getInvoicingItemsAllowedForPlan: (products:
|
|
110
|
+
export declare const getInvoicingItemsAllowedForPlan: (products: InvoicingCatalogPricePoint[], plan: InvoicingCatalogPricePoint | undefined) => InvoicingCatalogPricePoint[];
|
|
111
111
|
/**
|
|
112
112
|
* One entry in a subscription-form picker, ready for the screen to render.
|
|
113
113
|
*
|
package/lib/view/invoicing/invoicingCatalogListView/epics/fetchInvoicingCatalogListPageEpic.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { ActionsObservable, StateObservable } from 'redux-observable';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
|
-
import {
|
|
3
|
+
import { updateInvoicingCatalogItems } from '../../../../entity/invoicing/invoicingCatalog/invoicingCatalogReducer';
|
|
4
4
|
import { RootState } from '../../../../rootStateTypes';
|
|
5
5
|
import { fetchInvoicingCatalogCounts, fetchInvoicingCatalogListPage, fetchInvoicingCatalogPlanList, fetchInvoicingCatalogProductList, updateInvoicingCatalogCounts, updateInvoicingCatalogCountsFailure, updateInvoicingCatalogPlanList, updateInvoicingCatalogPlanListFailure, updateInvoicingCatalogProductList, updateInvoicingCatalogProductListFailure } from '../invoicingCatalogListViewReducer';
|
|
6
6
|
/**
|
|
7
7
|
* Aggregate of every action emitted across the catalog list view epics. Wired
|
|
8
8
|
* into the root action union for this view.
|
|
9
9
|
*/
|
|
10
|
-
export type ActionType = ReturnType<typeof fetchInvoicingCatalogPlanList> | ReturnType<typeof fetchInvoicingCatalogProductList> | ReturnType<typeof fetchInvoicingCatalogListPage> | ReturnType<typeof fetchInvoicingCatalogCounts> | ReturnType<typeof updateInvoicingCatalogPlanList> | ReturnType<typeof updateInvoicingCatalogPlanListFailure> | ReturnType<typeof updateInvoicingCatalogProductList> | ReturnType<typeof updateInvoicingCatalogProductListFailure> | ReturnType<typeof updateInvoicingCatalogCounts> | ReturnType<typeof updateInvoicingCatalogCountsFailure> | ReturnType<typeof
|
|
10
|
+
export type ActionType = ReturnType<typeof fetchInvoicingCatalogPlanList> | ReturnType<typeof fetchInvoicingCatalogProductList> | ReturnType<typeof fetchInvoicingCatalogListPage> | ReturnType<typeof fetchInvoicingCatalogCounts> | ReturnType<typeof updateInvoicingCatalogPlanList> | ReturnType<typeof updateInvoicingCatalogPlanListFailure> | ReturnType<typeof updateInvoicingCatalogProductList> | ReturnType<typeof updateInvoicingCatalogProductListFailure> | ReturnType<typeof updateInvoicingCatalogCounts> | ReturnType<typeof updateInvoicingCatalogCountsFailure> | ReturnType<typeof updateInvoicingCatalogItems>;
|
|
11
11
|
/**
|
|
12
12
|
* Orchestrates the catalog page: on `fetchInvoicingCatalogListPage`, fans out to
|
|
13
13
|
* the plan-list, product-list and counts fetches, skipping any whose data is
|
package/lib/view/invoicing/invoicingCatalogListView/epics/fetchInvoicingCatalogPlanListEpic.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ActionsObservable, StateObservable } from 'redux-observable';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
|
-
import {
|
|
3
|
+
import { updateInvoicingCatalogItems } from '../../../../entity/invoicing/invoicingCatalog/invoicingCatalogReducer';
|
|
4
4
|
import { RootState } from '../../../../rootStateTypes';
|
|
5
5
|
import { ZeniAPI } from '../../../../zeniAPI';
|
|
6
6
|
import { fetchInvoicingCatalogPlanList, updateInvoicingCatalogPlanList, updateInvoicingCatalogPlanListFailure } from '../invoicingCatalogListViewReducer';
|
|
7
|
-
export type ActionType = ReturnType<typeof fetchInvoicingCatalogPlanList> | ReturnType<typeof updateInvoicingCatalogPlanList> | ReturnType<typeof updateInvoicingCatalogPlanListFailure> | ReturnType<typeof
|
|
7
|
+
export type ActionType = ReturnType<typeof fetchInvoicingCatalogPlanList> | ReturnType<typeof updateInvoicingCatalogPlanList> | ReturnType<typeof updateInvoicingCatalogPlanListFailure> | ReturnType<typeof updateInvoicingCatalogItems>;
|
|
8
8
|
export declare const fetchInvoicingCatalogPlanListEpic: (actions$: ActionsObservable<ActionType>, _state$: StateObservable<RootState>, zeniAPI: ZeniAPI) => Observable<ActionType>;
|
package/lib/view/invoicing/invoicingCatalogListView/epics/fetchInvoicingCatalogPlanListEpic.js
CHANGED
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.fetchInvoicingCatalogPlanListEpic = void 0;
|
|
4
4
|
const rxjs_1 = require("rxjs");
|
|
5
5
|
const operators_1 = require("rxjs/operators");
|
|
6
|
-
const
|
|
6
|
+
const invoicingCatalogReducer_1 = require("../../../../entity/invoicing/invoicingCatalog/invoicingCatalogReducer");
|
|
7
7
|
const responsePayload_1 = require("../../../../responsePayload");
|
|
8
8
|
const invoicingApiHelper_1 = require("../../invoicingApiHelper");
|
|
9
9
|
const invoicingCatalogListViewReducer_1 = require("../invoicingCatalogListViewReducer");
|
|
@@ -32,7 +32,7 @@ const fetchInvoicingCatalogPlanListEpic = (actions$, _state$, zeniAPI) => action
|
|
|
32
32
|
if ((0, responsePayload_1.isSuccessResponse)(response)) {
|
|
33
33
|
const items = response.data?.items ?? [];
|
|
34
34
|
return [
|
|
35
|
-
(0,
|
|
35
|
+
(0, invoicingCatalogReducer_1.updateInvoicingCatalogItems)(items, 'merge'),
|
|
36
36
|
(0, invoicingCatalogListViewReducer_1.updateInvoicingCatalogPlanList)({
|
|
37
37
|
ids: items.map((item) => item.id),
|
|
38
38
|
nextCursor: response.data?.next_cursor ?? null,
|
package/lib/view/invoicing/invoicingCatalogListView/epics/fetchInvoicingCatalogProductListEpic.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ActionsObservable, StateObservable } from 'redux-observable';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
|
-
import {
|
|
3
|
+
import { updateInvoicingCatalogItems } from '../../../../entity/invoicing/invoicingCatalog/invoicingCatalogReducer';
|
|
4
4
|
import { RootState } from '../../../../rootStateTypes';
|
|
5
5
|
import { ZeniAPI } from '../../../../zeniAPI';
|
|
6
6
|
import { fetchInvoicingCatalogProductList, updateInvoicingCatalogProductList, updateInvoicingCatalogProductListFailure } from '../invoicingCatalogListViewReducer';
|
|
7
|
-
export type ActionType = ReturnType<typeof fetchInvoicingCatalogProductList> | ReturnType<typeof updateInvoicingCatalogProductList> | ReturnType<typeof updateInvoicingCatalogProductListFailure> | ReturnType<typeof
|
|
7
|
+
export type ActionType = ReturnType<typeof fetchInvoicingCatalogProductList> | ReturnType<typeof updateInvoicingCatalogProductList> | ReturnType<typeof updateInvoicingCatalogProductListFailure> | ReturnType<typeof updateInvoicingCatalogItems>;
|
|
8
8
|
export declare const fetchInvoicingCatalogProductListEpic: (actions$: ActionsObservable<ActionType>, _state$: StateObservable<RootState>, zeniAPI: ZeniAPI) => Observable<ActionType>;
|
package/lib/view/invoicing/invoicingCatalogListView/epics/fetchInvoicingCatalogProductListEpic.js
CHANGED
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.fetchInvoicingCatalogProductListEpic = void 0;
|
|
4
4
|
const rxjs_1 = require("rxjs");
|
|
5
5
|
const operators_1 = require("rxjs/operators");
|
|
6
|
-
const
|
|
6
|
+
const invoicingCatalogReducer_1 = require("../../../../entity/invoicing/invoicingCatalog/invoicingCatalogReducer");
|
|
7
7
|
const responsePayload_1 = require("../../../../responsePayload");
|
|
8
8
|
const invoicingApiHelper_1 = require("../../invoicingApiHelper");
|
|
9
9
|
const invoicingCatalogListViewReducer_1 = require("../invoicingCatalogListViewReducer");
|
|
@@ -32,7 +32,7 @@ const fetchInvoicingCatalogProductListEpic = (actions$, _state$, zeniAPI) => act
|
|
|
32
32
|
if ((0, responsePayload_1.isSuccessResponse)(response)) {
|
|
33
33
|
const items = response.data?.items ?? [];
|
|
34
34
|
return [
|
|
35
|
-
(0,
|
|
35
|
+
(0, invoicingCatalogReducer_1.updateInvoicingCatalogItems)(items, 'merge'),
|
|
36
36
|
(0, invoicingCatalogListViewReducer_1.updateInvoicingCatalogProductList)({
|
|
37
37
|
ids: items.map((item) => item.id),
|
|
38
38
|
nextCursor: response.data?.next_cursor ?? null,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { InvoicingCatalogItemPayload } from '../../../entity/invoicing/invoicingCatalog/invoicingCatalogPayload';
|
|
1
2
|
import { InvoicingListCounts, InvoicingPaginatedList } from '../../../entity/invoicing/invoicingCommonPayload';
|
|
2
|
-
import { InvoicingPlanPayload } from '../../../entity/invoicing/plan/planPayload';
|
|
3
3
|
import { ZeniAPIResponse } from '../../../responsePayload';
|
|
4
|
-
export type InvoicingCatalogPlanListResponse = ZeniAPIResponse<InvoicingPaginatedList<
|
|
5
|
-
export type InvoicingCatalogProductListResponse = ZeniAPIResponse<InvoicingPaginatedList<
|
|
4
|
+
export type InvoicingCatalogPlanListResponse = ZeniAPIResponse<InvoicingPaginatedList<InvoicingCatalogItemPayload>>;
|
|
5
|
+
export type InvoicingCatalogProductListResponse = ZeniAPIResponse<InvoicingPaginatedList<InvoicingCatalogItemPayload>>;
|
|
6
6
|
export type InvoicingCatalogCountsResponse = ZeniAPIResponse<InvoicingListCounts>;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { FetchStateAndError, ID } from '../../../commonStateTypes/common';
|
|
2
2
|
import { SelectorView } from '../../../commonStateTypes/viewAndReport/viewAndReport';
|
|
3
|
+
import { InvoicingCatalogItem, InvoicingCatalogPricePoint } from '../../../entity/invoicing/invoicingCatalog/invoicingCatalogState';
|
|
3
4
|
import { InvoicingCatalogItemLifecycleAction, InvoicingCatalogLifecycleActionOption, InvoicingListCounts } from '../../../entity/invoicing/invoicingCommonPayload';
|
|
4
|
-
import { InvoicingPlan } from '../../../entity/invoicing/plan/planState';
|
|
5
|
-
import { InvoicingProduct } from '../../../entity/invoicing/product/productState';
|
|
6
5
|
import { RootState } from '../../../rootStateTypes';
|
|
7
6
|
import { InvoicingListSort } from '../invoicingApiHelper';
|
|
8
7
|
import { InvoicingCatalogPlanFilters, InvoicingCatalogProductFilters, InvoicingProductColumnConfig } from './invoicingCatalogListViewState';
|
|
@@ -13,12 +12,12 @@ export interface InvoicingCatalogListView extends SelectorView {
|
|
|
13
12
|
countsFetchState: FetchStateAndError;
|
|
14
13
|
planFilters: InvoicingCatalogPlanFilters;
|
|
15
14
|
planNextCursor: string | null;
|
|
16
|
-
plans:
|
|
15
|
+
plans: InvoicingCatalogItem[];
|
|
17
16
|
productColumns: InvoicingProductColumnConfig[];
|
|
18
17
|
productFetchState: FetchStateAndError;
|
|
19
18
|
productFilters: InvoicingCatalogProductFilters;
|
|
20
19
|
productNextCursor: string | null;
|
|
21
|
-
products:
|
|
20
|
+
products: InvoicingCatalogItem[];
|
|
22
21
|
planSort?: InvoicingListSort;
|
|
23
22
|
productSort?: InvoicingListSort;
|
|
24
23
|
/**
|
|
@@ -37,7 +36,7 @@ export interface InvoicingCatalogListView extends SelectorView {
|
|
|
37
36
|
* written after the spread so the item's own rule wins over any stale copy a
|
|
38
37
|
* price point payload may carry.
|
|
39
38
|
*/
|
|
40
|
-
export declare const getInvoicingCatalogPrices: (items:
|
|
39
|
+
export declare const getInvoicingCatalogPrices: (items: InvoicingCatalogItem[]) => InvoicingCatalogPricePoint[];
|
|
41
40
|
/**
|
|
42
41
|
* Bundled read view for the single catalog page (plans + products tabs).
|
|
43
42
|
* Memoized over the plan + product entity slices and the list-view slice so the
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getInvoicingCatalogListView = exports.getInvoicingCatalogPrices = void 0;
|
|
4
4
|
const toolkit_1 = require("@reduxjs/toolkit");
|
|
5
|
-
const
|
|
5
|
+
const invoicingCatalogSelector_1 = require("../../../entity/invoicing/invoicingCatalog/invoicingCatalogSelector");
|
|
6
6
|
const runningInvoicingActionId_1 = require("../runningInvoicingActionId");
|
|
7
7
|
const invoicingCatalogListViewState_1 = require("./invoicingCatalogListViewState");
|
|
8
8
|
/**
|
|
@@ -32,13 +32,13 @@ exports.getInvoicingCatalogPrices = getInvoicingCatalogPrices;
|
|
|
32
32
|
* denormalized arrays keep referential identity. The base `fetchState`/`error`
|
|
33
33
|
* track the plan list; the product list has its own `productFetchState`.
|
|
34
34
|
*/
|
|
35
|
-
exports.getInvoicingCatalogListView = (0, toolkit_1.createSelector)((state) => state.
|
|
35
|
+
exports.getInvoicingCatalogListView = (0, toolkit_1.createSelector)((state) => state.invoicingCatalogState, (state) => state.invoicingCatalogListViewState, (state) => state.invoicingConfigViewState.catalogItemLifecycleActionOptions, (state) => state.editInvoicingCatalogItemDetailViewState.actionStateById, (catalogState, listViewState, catalogItemLifecycleActionOptions, actionStateById) => ({
|
|
36
36
|
catalogItemLifecycleActionOptions,
|
|
37
37
|
runningActionId: (0, runningInvoicingActionId_1.runningInvoicingActionId)(actionStateById),
|
|
38
|
-
plans: (0,
|
|
38
|
+
plans: (0, invoicingCatalogSelector_1.getInvoicingCatalogItemsByIds)(catalogState, listViewState.planIds),
|
|
39
39
|
planSort: listViewState.planSort,
|
|
40
40
|
productColumns: invoicingCatalogListViewState_1.INVOICING_PRODUCT_COLUMNS,
|
|
41
|
-
products: (0,
|
|
41
|
+
products: (0, invoicingCatalogSelector_1.getInvoicingCatalogItemsByIds)(catalogState, listViewState.productIds),
|
|
42
42
|
productSort: listViewState.productSort,
|
|
43
43
|
count: listViewState.counts,
|
|
44
44
|
countsFetchState: listViewState.countsFetchState,
|
|
@@ -7,7 +7,7 @@ export type InvoicingProductSortKey = ReturnType<typeof toInvoicingProductSortKe
|
|
|
7
7
|
/**
|
|
8
8
|
* Structural column descriptor owned by CES for the catalog product table
|
|
9
9
|
* (add-ons / one-time charges), so the column set, order and sortability live
|
|
10
|
-
* next to the `
|
|
10
|
+
* next to the `InvoicingCatalogPricePoint` model rather than being hardcoded in
|
|
11
11
|
* web-components. Header labels, cell rendering and layout (alignment, widths)
|
|
12
12
|
* stay in the view layer. (The plans table keeps its own columns in web-c.)
|
|
13
13
|
*/
|
package/lib/view/invoicing/invoicingDunningCaseListView/invoicingDunningCaseListViewReducer.d.ts
CHANGED
|
@@ -26,6 +26,6 @@ export declare const fetchInvoicingDunningCaseList: import("@reduxjs/toolkit").A
|
|
|
26
26
|
ids: ID[];
|
|
27
27
|
keepExistingListItems: boolean;
|
|
28
28
|
nextCursor: string | null;
|
|
29
|
-
}, "invoicingDunningCaseListView/updateInvoicingDunningCaseList">, updateInvoicingDunningCaseListFailure: import("@reduxjs/toolkit").ActionCreatorWithPayload<ZeniAPIStatus<Record<string, unknown>>, "invoicingDunningCaseListView/updateInvoicingDunningCaseListFailure">, fetchInvoicingDunningCaseCounts: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"invoicingDunningCaseListView/fetchInvoicingDunningCaseCounts">, updateInvoicingDunningCaseCounts: import("@reduxjs/toolkit").ActionCreatorWithPayload<InvoicingListCounts, "invoicingDunningCaseListView/updateInvoicingDunningCaseCounts">, updateInvoicingDunningCaseCountsFailure: import("@reduxjs/toolkit").ActionCreatorWithPayload<ZeniAPIStatus<Record<string, unknown>>, "invoicingDunningCaseListView/updateInvoicingDunningCaseCountsFailure">, updateInvoicingDunningCaseFilters: import("@reduxjs/toolkit").ActionCreatorWithPayload<InvoicingDunningCaseFilters, "invoicingDunningCaseListView/updateInvoicingDunningCaseFilters">, setInvoicingDunningCaseActiveTab: import("@reduxjs/toolkit").ActionCreatorWithPayload<"cancelled" | "scheduled" | "retrying" | "manual_review" | "resolved" | "
|
|
29
|
+
}, "invoicingDunningCaseListView/updateInvoicingDunningCaseList">, updateInvoicingDunningCaseListFailure: import("@reduxjs/toolkit").ActionCreatorWithPayload<ZeniAPIStatus<Record<string, unknown>>, "invoicingDunningCaseListView/updateInvoicingDunningCaseListFailure">, fetchInvoicingDunningCaseCounts: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"invoicingDunningCaseListView/fetchInvoicingDunningCaseCounts">, updateInvoicingDunningCaseCounts: import("@reduxjs/toolkit").ActionCreatorWithPayload<InvoicingListCounts, "invoicingDunningCaseListView/updateInvoicingDunningCaseCounts">, updateInvoicingDunningCaseCountsFailure: import("@reduxjs/toolkit").ActionCreatorWithPayload<ZeniAPIStatus<Record<string, unknown>>, "invoicingDunningCaseListView/updateInvoicingDunningCaseCountsFailure">, updateInvoicingDunningCaseFilters: import("@reduxjs/toolkit").ActionCreatorWithPayload<InvoicingDunningCaseFilters, "invoicingDunningCaseListView/updateInvoicingDunningCaseFilters">, setInvoicingDunningCaseActiveTab: import("@reduxjs/toolkit").ActionCreatorWithPayload<"paused" | "cancelled" | "scheduled" | "retrying" | "manual_review" | "resolved" | "all", "invoicingDunningCaseListView/setInvoicingDunningCaseActiveTab">;
|
|
30
30
|
declare const _default: import("redux").Reducer<InvoicingDunningCaseListViewState>;
|
|
31
31
|
export default _default;
|
package/lib/view/invoicing/invoicingDunningCaseListView/invoicingDunningCaseListViewState.d.ts
CHANGED
|
@@ -20,7 +20,7 @@ export interface InvoicingDunningCaseColumnConfig {
|
|
|
20
20
|
}
|
|
21
21
|
export declare const INVOICING_DUNNING_CASE_COLUMNS: InvoicingDunningCaseColumnConfig[];
|
|
22
22
|
export declare const ALL_INVOICING_DUNNING_CASE_TAB_IDS: readonly ["all", "retrying", "scheduled", "manual_review", "paused", "resolved", "cancelled"];
|
|
23
|
-
export declare const toInvoicingDunningCaseTabId: (v: string) => "cancelled" | "scheduled" | "retrying" | "manual_review" | "resolved" | "
|
|
23
|
+
export declare const toInvoicingDunningCaseTabId: (v: string) => "paused" | "cancelled" | "scheduled" | "retrying" | "manual_review" | "resolved" | "all";
|
|
24
24
|
export type InvoicingDunningCaseTabId = ReturnType<typeof toInvoicingDunningCaseTabId>;
|
|
25
25
|
export interface InvoicingDunningCaseListViewState extends FetchedState {
|
|
26
26
|
/** Selected status tab (CES-owned so it persists across page revisits). */
|
package/lib/view/invoicing/invoicingSubscriptionListView/invoicingSubscriptionListViewReducer.d.ts
CHANGED
|
@@ -27,7 +27,7 @@ export declare const fetchInvoicingSubscriptionList: import("@reduxjs/toolkit").
|
|
|
27
27
|
ids: ID[];
|
|
28
28
|
keepExistingListItems: boolean;
|
|
29
29
|
nextCursor: string | null;
|
|
30
|
-
}, "invoicingSubscriptionListView/updateInvoicingSubscriptionList">, updateInvoicingSubscriptionListFailure: import("@reduxjs/toolkit").ActionCreatorWithPayload<ZeniAPIStatus<Record<string, unknown>>, "invoicingSubscriptionListView/updateInvoicingSubscriptionListFailure">, fetchInvoicingSubscriptionCounts: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"invoicingSubscriptionListView/fetchInvoicingSubscriptionCounts">, updateInvoicingSubscriptionCounts: import("@reduxjs/toolkit").ActionCreatorWithPayload<InvoicingListCounts, "invoicingSubscriptionListView/updateInvoicingSubscriptionCounts">, updateInvoicingSubscriptionCountsFailure: import("@reduxjs/toolkit").ActionCreatorWithPayload<ZeniAPIStatus<Record<string, unknown>>, "invoicingSubscriptionListView/updateInvoicingSubscriptionCountsFailure">, updateInvoicingSubscriptionFilters: import("@reduxjs/toolkit").ActionCreatorWithPayload<InvoicingSubscriptionFilters, "invoicingSubscriptionListView/updateInvoicingSubscriptionFilters">, setInvoicingSubscriptionActiveTab: import("@reduxjs/toolkit").ActionCreatorWithPayload<"
|
|
30
|
+
}, "invoicingSubscriptionListView/updateInvoicingSubscriptionList">, updateInvoicingSubscriptionListFailure: import("@reduxjs/toolkit").ActionCreatorWithPayload<ZeniAPIStatus<Record<string, unknown>>, "invoicingSubscriptionListView/updateInvoicingSubscriptionListFailure">, fetchInvoicingSubscriptionCounts: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"invoicingSubscriptionListView/fetchInvoicingSubscriptionCounts">, updateInvoicingSubscriptionCounts: import("@reduxjs/toolkit").ActionCreatorWithPayload<InvoicingListCounts, "invoicingSubscriptionListView/updateInvoicingSubscriptionCounts">, updateInvoicingSubscriptionCountsFailure: import("@reduxjs/toolkit").ActionCreatorWithPayload<ZeniAPIStatus<Record<string, unknown>>, "invoicingSubscriptionListView/updateInvoicingSubscriptionCountsFailure">, updateInvoicingSubscriptionFilters: import("@reduxjs/toolkit").ActionCreatorWithPayload<InvoicingSubscriptionFilters, "invoicingSubscriptionListView/updateInvoicingSubscriptionFilters">, setInvoicingSubscriptionActiveTab: import("@reduxjs/toolkit").ActionCreatorWithPayload<"paused" | "active" | "cancelled" | "future" | "in_trial" | "non_renewing" | "all", "invoicingSubscriptionListView/setInvoicingSubscriptionActiveTab">, addInvoicingSubscriptionToList: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
31
31
|
id: ID;
|
|
32
32
|
status?: InvoicingSubscriptionStatus;
|
|
33
33
|
}, "invoicingSubscriptionListView/addInvoicingSubscriptionToList">;
|
package/lib/view/invoicing/invoicingSubscriptionListView/invoicingSubscriptionListViewState.d.ts
CHANGED
|
@@ -23,7 +23,7 @@ export interface InvoicingSubscriptionColumnConfig {
|
|
|
23
23
|
}
|
|
24
24
|
export declare const INVOICING_SUBSCRIPTION_COLUMNS: InvoicingSubscriptionColumnConfig[];
|
|
25
25
|
export declare const ALL_INVOICING_SUBSCRIPTION_TAB_IDS: readonly ["all", "active", "in_trial", "future", "non_renewing", "paused", "cancelled"];
|
|
26
|
-
export declare const toInvoicingSubscriptionTabId: (v: string) => "
|
|
26
|
+
export declare const toInvoicingSubscriptionTabId: (v: string) => "paused" | "active" | "cancelled" | "future" | "in_trial" | "non_renewing" | "all";
|
|
27
27
|
export type InvoicingSubscriptionTabId = ReturnType<typeof toInvoicingSubscriptionTabId>;
|
|
28
28
|
export interface InvoicingSubscriptionListViewState extends FetchedState {
|
|
29
29
|
/** Selected status tab (CES-owned so it persists across page revisits). */
|
|
@@ -7,7 +7,7 @@ export declare const getScheduleListKey: (selectedCategory: ID, selectedTimefram
|
|
|
7
7
|
export type ScheduleListKey = ReturnType<typeof getScheduleListKey>;
|
|
8
8
|
export declare const toScheduleSubTabType: (v: string) => "completed" | "new" | "ongoing" | "all";
|
|
9
9
|
export type ScheduleSubTabType = ReturnType<typeof toScheduleSubTabType>;
|
|
10
|
-
declare const toScheduleSortKeyType: (v: string) => "months" | "vendor" | "status" | "class" | "createTime" | "amount" | "memo" | "
|
|
10
|
+
declare const toScheduleSortKeyType: (v: string) => "months" | "vendor" | "status" | "class" | "createTime" | "amount" | "memo" | "balanceAsOfToday" | "user" | "transactionType" | "scheduleCategory" | "startMonth" | "transactionDate" | "accruedExpenseCategory" | "expenseCategory" | "accumulatedDepreciationCategory" | "endMonth" | "assetId";
|
|
11
11
|
export declare type ScheduleListSortKey = ReturnType<typeof toScheduleSortKeyType>;
|
|
12
12
|
export interface DownloadJEScheduleTabOptions {
|
|
13
13
|
categoryId: ID;
|
|
@@ -10,18 +10,18 @@ export declare const fetchBillList: import("@reduxjs/toolkit").ActionCreatorWith
|
|
|
10
10
|
isShowDeletedBillsEnabled: boolean;
|
|
11
11
|
isBulkActionCompleteRefresh: any;
|
|
12
12
|
isInternationalWireEnabled: boolean;
|
|
13
|
-
}, "billList/fetchBillList", never, never>, fetchBillListPerTab: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[period: TimePeriod, tab: "
|
|
13
|
+
}, "billList/fetchBillList", never, never>, fetchBillListPerTab: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[period: TimePeriod, tab: "draft" | "paid" | "pending_approval" | "scheduled", isShowDeletedBillsEnabled: boolean], {
|
|
14
14
|
period: TimePeriod;
|
|
15
|
-
tab: "
|
|
15
|
+
tab: "draft" | "paid" | "pending_approval" | "scheduled";
|
|
16
16
|
isShowDeletedBillsEnabled: boolean;
|
|
17
17
|
}, "billList/fetchBillListPerTab", never, never>, updateBillListByStatus: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
18
18
|
billList: BillListPayload;
|
|
19
19
|
tab: BillTab;
|
|
20
|
-
}, "billList/updateBillListByStatus">, updateBillListFailure: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[period: TimePeriod, tab: "
|
|
20
|
+
}, "billList/updateBillListByStatus">, updateBillListFailure: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[period: TimePeriod, tab: "draft" | "paid" | "pending_approval" | "scheduled", error: ZeniAPIStatus<Record<string, unknown>>], {
|
|
21
21
|
period: TimePeriod;
|
|
22
|
-
tab: "
|
|
22
|
+
tab: "draft" | "paid" | "pending_approval" | "scheduled";
|
|
23
23
|
error: ZeniAPIStatus<Record<string, unknown>>;
|
|
24
|
-
}, "billList/updateBillListFailure", never, never>, updateTab: import("@reduxjs/toolkit").ActionCreatorWithPayload<"
|
|
24
|
+
}, "billList/updateBillListFailure", never, never>, updateTab: import("@reduxjs/toolkit").ActionCreatorWithPayload<"draft" | "paid" | "pending_approval" | "scheduled", "billList/updateTab">, updateSubTab: import("@reduxjs/toolkit").ActionCreatorWithPayload<"failed" | "deleted" | "cancelled" | "rejected" | "ach" | "wire" | "all" | "overdue" | "awaiting_approval" | "awaiting_my_approval" | "offline", "billList/updateSubTab">, updateSelectedBillId: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "billList/updateSelectedBillId">, updateBillDetailSaveBillCode: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<SaveBillStageCode, "billList/updateBillDetailSaveBillCode">, updateBillListUIState: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
25
25
|
period: TimePeriod;
|
|
26
26
|
uiState: Partial<BillListUIState>;
|
|
27
27
|
}, "billList/updateBillListUIState">, updateSearchResult: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "billList/updateSearchResult">, updateFilterResult: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
@@ -33,7 +33,7 @@ export interface BillListDownloadUIState extends BillListUIState {
|
|
|
33
33
|
}
|
|
34
34
|
export type SaveBillStageCode = 'draft' | 'pending_approval' | undefined;
|
|
35
35
|
export declare const ALL_BILL_TABS: readonly ["paid", "pending_approval", "scheduled", "draft"];
|
|
36
|
-
declare const toBillTabType: (v: string) => "
|
|
36
|
+
declare const toBillTabType: (v: string) => "draft" | "paid" | "pending_approval" | "scheduled";
|
|
37
37
|
export type BillTab = ReturnType<typeof toBillTabType>;
|
|
38
38
|
declare const toBillsSubTabType: (v: string) => "failed" | "deleted" | "cancelled" | "rejected" | "ach" | "wire" | "all" | "overdue" | "awaiting_approval" | "awaiting_my_approval" | "offline";
|
|
39
39
|
export type BillsSubTabType = ReturnType<typeof toBillsSubTabType>;
|
|
@@ -31,8 +31,8 @@ export declare const fetchEditBillDetailPage: import("@reduxjs/toolkit").ActionC
|
|
|
31
31
|
updatesByLineId: Record<string, import("./editBillViewState").LineItemRecommendationsLocalData>;
|
|
32
32
|
}, "editBillView/updateBillLineRecommendationsInLocalStore", never, never>, discardBillUpdatesInLocalStore: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
33
33
|
billId?: ID;
|
|
34
|
-
}, "editBillView/discardBillUpdatesInLocalStore">, saveBillDetail: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[billStageCode: "
|
|
35
|
-
billStageCode: "
|
|
34
|
+
}, "editBillView/discardBillUpdatesInLocalStore">, saveBillDetail: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[billStageCode: "draft" | "paid" | "pending_approval" | "scheduled", isForMarkAsPaid: boolean, isApproverMarkingAsPaid: boolean, billId?: string | undefined], {
|
|
35
|
+
billStageCode: "draft" | "paid" | "pending_approval" | "scheduled";
|
|
36
36
|
isForMarkAsPaid: boolean;
|
|
37
37
|
isApproverMarkingAsPaid: boolean;
|
|
38
38
|
billId: string | undefined;
|
|
@@ -36,8 +36,8 @@ export declare const fetchEditRemiDetailPage: import("@reduxjs/toolkit").ActionC
|
|
|
36
36
|
}, "editRemiView/discardRemiUpdatesInLocalStore">, removeFileFromRemiUpdatesInLocalStore: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
37
37
|
lineId: number;
|
|
38
38
|
reimbursementId?: ID;
|
|
39
|
-
}, "editRemiView/removeFileFromRemiUpdatesInLocalStore">, saveRemiDetail: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[remiStageCode: "
|
|
40
|
-
remiStageCode: "
|
|
39
|
+
}, "editRemiView/removeFileFromRemiUpdatesInLocalStore">, saveRemiDetail: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[remiStageCode: "draft" | "paid" | "pending_approval" | "scheduled", isSubmitted: boolean, reimbursementId?: string | undefined], {
|
|
40
|
+
remiStageCode: "draft" | "paid" | "pending_approval" | "scheduled";
|
|
41
41
|
reimbursementId: string | undefined;
|
|
42
42
|
isSubmitted: boolean;
|
|
43
43
|
}, "editRemiView/saveRemiDetail", never, never>, saveRemiSuccessOrFailure: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[fetchState: FetchState, reimbursementId?: string | undefined, error?: ZeniAPIStatus<Record<string, unknown>> | undefined], {
|
|
@@ -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: "
|
|
14
|
+
}, "remiList/fetchRemiList", never, never>, fetchRemiListPerTab: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[period: TimePeriod, tab: "draft" | "paid" | "pending_approval" | "scheduled", isShowDeletedReimbursementEnabled: boolean, isIncludeLineItems: boolean, isRefreshAccountAndAccountingClass: boolean], {
|
|
15
15
|
period: TimePeriod;
|
|
16
|
-
tab: "
|
|
16
|
+
tab: "draft" | "paid" | "pending_approval" | "scheduled";
|
|
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: "
|
|
23
|
+
}, "remiList/updateRemiListByStatus">, updateRemiListFailure: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[period: TimePeriod, tab: "draft" | "paid" | "pending_approval" | "scheduled", error: ZeniAPIStatus<Record<string, unknown>>], {
|
|
24
24
|
period: TimePeriod;
|
|
25
|
-
tab: "
|
|
25
|
+
tab: "draft" | "paid" | "pending_approval" | "scheduled";
|
|
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<"
|
|
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<{
|
|
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) => "
|
|
34
|
-
export declare const toRemiTabTypeStrict: (v: string) => "
|
|
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;
|
|
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.
|
|
3
|
+
"version": "5.2.69-beta0MM",
|
|
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,40 +0,0 @@
|
|
|
1
|
-
import { InvoicingPlanTierPayload, InvoicingProductPayload } from '../product/productPayload';
|
|
2
|
-
import { InvoicingPlan } from './planState';
|
|
3
|
-
export interface InvoicingPlanPayload {
|
|
4
|
-
id: string;
|
|
5
|
-
applicable_items?: string[];
|
|
6
|
-
archived_at?: string;
|
|
7
|
-
billing_cycles?: number;
|
|
8
|
-
created_at?: string;
|
|
9
|
-
currency_code?: string;
|
|
10
|
-
currency_symbol?: string;
|
|
11
|
-
description?: string;
|
|
12
|
-
enabled_for_checkout?: boolean;
|
|
13
|
-
enabled_in_portal?: boolean;
|
|
14
|
-
external_id?: string;
|
|
15
|
-
external_name?: string;
|
|
16
|
-
gift_claim_redirect_url?: string;
|
|
17
|
-
included_in_mrr?: boolean;
|
|
18
|
-
is_giftable?: boolean;
|
|
19
|
-
is_shippable?: boolean;
|
|
20
|
-
item_applicability?: string;
|
|
21
|
-
item_family_id?: string;
|
|
22
|
-
item_type?: string;
|
|
23
|
-
metadata?: Record<string, unknown>;
|
|
24
|
-
metered?: boolean;
|
|
25
|
-
name?: string;
|
|
26
|
-
period?: number;
|
|
27
|
-
period_unit?: string;
|
|
28
|
-
price?: number;
|
|
29
|
-
product_code?: string;
|
|
30
|
-
status?: string;
|
|
31
|
-
sub_families?: InvoicingProductPayload[];
|
|
32
|
-
tiers?: InvoicingPlanTierPayload[];
|
|
33
|
-
trial_period?: number;
|
|
34
|
-
trial_period_unit?: string;
|
|
35
|
-
type?: string;
|
|
36
|
-
unit?: string;
|
|
37
|
-
updated_at?: string;
|
|
38
|
-
usage_calculation?: string;
|
|
39
|
-
}
|
|
40
|
-
export declare const mapInvoicingPlanPayloadToState: (payload: InvoicingPlanPayload) => InvoicingPlan;
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.mapInvoicingPlanPayloadToState = void 0;
|
|
4
|
-
const amount_1 = require("../../../commonStateTypes/amount");
|
|
5
|
-
const currencyHelper_1 = require("../../../commonStateTypes/currencyHelper");
|
|
6
|
-
const zeniDayJS_1 = require("../../../zeniDayJS");
|
|
7
|
-
const productPayload_1 = require("../product/productPayload");
|
|
8
|
-
// ── Payload → State mappers (snake_case wire shape → camelCase domain shape) ──
|
|
9
|
-
const mapInvoicingPlanPayloadToState = (payload) => {
|
|
10
|
-
const currencyCode = payload.currency_code ?? currencyHelper_1.defaultCustomerCurrency.currencyCode;
|
|
11
|
-
const currencySymbol = payload.currency_symbol ?? currencyHelper_1.defaultCustomerCurrency.currencySymbol;
|
|
12
|
-
return {
|
|
13
|
-
id: payload.id,
|
|
14
|
-
applicableItems: payload.applicable_items,
|
|
15
|
-
archivedAt: payload.archived_at != null ? (0, zeniDayJS_1.date)(payload.archived_at) : undefined,
|
|
16
|
-
billingCycles: payload.billing_cycles,
|
|
17
|
-
createdAt: payload.created_at != null ? (0, zeniDayJS_1.date)(payload.created_at) : undefined,
|
|
18
|
-
currencyCode: payload.currency_code,
|
|
19
|
-
description: payload.description,
|
|
20
|
-
enabledForCheckout: payload.enabled_for_checkout,
|
|
21
|
-
enabledInPortal: payload.enabled_in_portal,
|
|
22
|
-
externalId: payload.external_id,
|
|
23
|
-
externalName: payload.external_name,
|
|
24
|
-
giftClaimRedirectUrl: payload.gift_claim_redirect_url,
|
|
25
|
-
includedInMrr: payload.included_in_mrr,
|
|
26
|
-
isGiftable: payload.is_giftable,
|
|
27
|
-
isShippable: payload.is_shippable,
|
|
28
|
-
itemApplicability: payload.item_applicability,
|
|
29
|
-
itemFamilyID: payload.item_family_id,
|
|
30
|
-
itemType: payload.item_type,
|
|
31
|
-
metadata: payload.metadata,
|
|
32
|
-
metered: payload.metered,
|
|
33
|
-
name: payload.name,
|
|
34
|
-
period: payload.period,
|
|
35
|
-
periodUnit: payload.period_unit,
|
|
36
|
-
productCode: payload.product_code,
|
|
37
|
-
price: payload.price != null
|
|
38
|
-
? (0, amount_1.toAmount)(payload.price, currencyCode, currencySymbol)
|
|
39
|
-
: undefined,
|
|
40
|
-
subFamilies: payload.sub_families?.map(productPayload_1.mapInvoicingProductPayloadToState),
|
|
41
|
-
status: payload.status,
|
|
42
|
-
tiers: payload.tiers?.map((tier) => (0, productPayload_1.mapInvoicingPlanTierPayloadToState)(tier, currencyCode, currencySymbol)),
|
|
43
|
-
trialPeriod: payload.trial_period,
|
|
44
|
-
trialPeriodUnit: payload.trial_period_unit,
|
|
45
|
-
type: payload.type,
|
|
46
|
-
unit: payload.unit,
|
|
47
|
-
updatedAt: payload.updated_at != null ? (0, zeniDayJS_1.date)(payload.updated_at) : undefined,
|
|
48
|
-
usageCalculation: payload.usage_calculation,
|
|
49
|
-
};
|
|
50
|
-
};
|
|
51
|
-
exports.mapInvoicingPlanPayloadToState = mapInvoicingPlanPayloadToState;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { UpdateType } from '../../../commonStateTypes/common';
|
|
2
|
-
import { InvoicingProductPayload } from '../product/productPayload';
|
|
3
|
-
import { InvoicingProduct } from '../product/productState';
|
|
4
|
-
import { InvoicingPlanPayload } from './planPayload';
|
|
5
|
-
import { InvoicingPlanState } from './planState';
|
|
6
|
-
export declare const initialState: InvoicingPlanState;
|
|
7
|
-
export declare const updateInvoicingPlans: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[payload: InvoicingPlanPayload[], updateType?: UpdateType | undefined], InvoicingPlanPayload[], "invoicingPlan/updateInvoicingPlans", never, {
|
|
8
|
-
updateType: UpdateType;
|
|
9
|
-
}>, mergeInvoicingPlanSubFamily: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[planId: string, subFamilyPayload: InvoicingProductPayload], {
|
|
10
|
-
planId: string;
|
|
11
|
-
subFamily: InvoicingProduct;
|
|
12
|
-
}, "invoicingPlan/mergeInvoicingPlanSubFamily", never, never>, removeInvoicingPlan: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "invoicingPlan/removeInvoicingPlan">;
|
|
13
|
-
declare const _default: import("redux").Reducer<InvoicingPlanState>;
|
|
14
|
-
export default _default;
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { Amount } from '../../../commonStateTypes/amount';
|
|
2
|
-
import { ID } from '../../../commonStateTypes/common';
|
|
3
|
-
import { ZeniDate } from '../../../zeniDayJS';
|
|
4
|
-
import { InvoicingPlanTier, InvoicingProduct } from '../product/productState';
|
|
5
|
-
export interface InvoicingPlan {
|
|
6
|
-
id: ID;
|
|
7
|
-
applicableItems?: ID[];
|
|
8
|
-
archivedAt?: ZeniDate;
|
|
9
|
-
billingCycles?: number;
|
|
10
|
-
createdAt?: ZeniDate;
|
|
11
|
-
currencyCode?: string;
|
|
12
|
-
description?: string;
|
|
13
|
-
enabledForCheckout?: boolean;
|
|
14
|
-
enabledInPortal?: boolean;
|
|
15
|
-
externalId?: string;
|
|
16
|
-
externalName?: string;
|
|
17
|
-
giftClaimRedirectUrl?: string;
|
|
18
|
-
includedInMrr?: boolean;
|
|
19
|
-
isGiftable?: boolean;
|
|
20
|
-
isShippable?: boolean;
|
|
21
|
-
itemApplicability?: string;
|
|
22
|
-
itemFamilyID?: ID;
|
|
23
|
-
itemType?: string;
|
|
24
|
-
metadata?: Record<string, unknown>;
|
|
25
|
-
metered?: boolean;
|
|
26
|
-
name?: string;
|
|
27
|
-
period?: number;
|
|
28
|
-
periodUnit?: string;
|
|
29
|
-
price?: Amount;
|
|
30
|
-
productCode?: string;
|
|
31
|
-
status?: string;
|
|
32
|
-
subFamilies?: InvoicingProduct[];
|
|
33
|
-
tiers?: InvoicingPlanTier[];
|
|
34
|
-
trialPeriod?: number;
|
|
35
|
-
trialPeriodUnit?: string;
|
|
36
|
-
type?: string;
|
|
37
|
-
unit?: string;
|
|
38
|
-
updatedAt?: ZeniDate;
|
|
39
|
-
usageCalculation?: string;
|
|
40
|
-
}
|
|
41
|
-
export interface InvoicingPlanState {
|
|
42
|
-
planByID: Record<ID, InvoicingPlan>;
|
|
43
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { UpdateType } from '../../../commonStateTypes/common';
|
|
2
|
-
import { InvoicingProductPayload } from './productPayload';
|
|
3
|
-
import { InvoicingProductState } from './productState';
|
|
4
|
-
export declare const initialState: InvoicingProductState;
|
|
5
|
-
export declare const updateInvoicingProducts: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[payload: InvoicingProductPayload[], updateType?: UpdateType | undefined], InvoicingProductPayload[], "invoicingProduct/updateInvoicingProducts", never, {
|
|
6
|
-
updateType: UpdateType;
|
|
7
|
-
}>, removeInvoicingProduct: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "invoicingProduct/removeInvoicingProduct">;
|
|
8
|
-
declare const _default: import("redux").Reducer<InvoicingProductState>;
|
|
9
|
-
export default _default;
|