@zeniai/client-epic-state 5.2.70 → 5.2.72-beta0ND
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/actualMatching/actualMatchingReducer.d.ts +3 -1
- package/lib/entity/actualMatching/actualMatchingReducer.js +11 -2
- 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 +2 -0
- package/lib/entity/jeSchedules/jeSchedulesPayload.js +2 -0
- package/lib/entity/jeSchedules/jeSchedulesState.d.ts +2 -0
- package/lib/entity/jeSchedules/jeSchedulesTypes.d.ts +4 -4
- package/lib/entity/snackbar/snackbarTypes.d.ts +1 -1
- package/lib/entity/snackbar/snackbarTypes.js +3 -0
- package/lib/epic.d.ts +4 -2
- package/lib/epic.js +5 -1
- package/lib/esm/entity/actualMatching/actualMatchingReducer.js +9 -1
- 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 +2 -0
- package/lib/esm/entity/snackbar/snackbarTypes.js +3 -0
- package/lib/esm/epic.js +5 -1
- package/lib/esm/index.js +9 -12
- package/lib/esm/reducer.js +4 -7
- package/lib/esm/view/expenseAutomationView/epics/jeSchedule/actualMatching/fetchActualMatchingMatchEpic.js +4 -2
- package/lib/esm/view/expenseAutomationView/epics/jeSchedule/actualMatching/ignoreActualMatchingSuggestionEpic.js +50 -0
- package/lib/esm/view/expenseAutomationView/epics/jeSchedule/actualMatching/matchAndReverseAccrualsEpic.js +26 -13
- package/lib/esm/view/expenseAutomationView/epics/jeSchedule/actualMatching/searchMatchTransactionsEpic.js +2 -23
- package/lib/esm/view/expenseAutomationView/reducers/actualMatchingViewReducer.js +89 -38
- package/lib/esm/view/expenseAutomationView/selectors/actualMatchingViewSelector.js +68 -62
- package/lib/esm/view/expenseAutomationView/types/actualMatchingViewState.js +15 -0
- package/lib/esm/view/invoicing/createInvoice/createInvoiceEpic.js +9 -1
- 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/editInvoicingCustomerDetailView/editInvoicingCustomerDetailViewReducer.js +5 -1
- package/lib/esm/view/invoicing/editInvoicingSubscriptionDetailView/editInvoicingSubscriptionDetailViewSelector.js +27 -1
- package/lib/esm/view/invoicing/editInvoicingSubscriptionDetailView/saveInvoicingSubscriptionEpic.js +5 -1
- package/lib/esm/view/invoicing/invoiceList/invoiceListReducer.js +8 -1
- 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 +55 -22
- package/lib/esm/view/invoicing/invoicingCatalogListView/invoicingCatalogListViewState.js +1 -20
- package/lib/esm/view/invoicing/settingsView/settingsViewSelector.js +18 -9
- package/lib/esm/view/invoicing/settingsView/submitInvoicingBrandingFormEpic.js +11 -2
- package/lib/esm/view/onboardingView/customerView/epic/customerDetails/updateOnboardingCustomerViewEpic.js +33 -13
- package/lib/esm/view/onboardingView/customerView/onboardingCustomerViewReducer.js +2 -1
- package/lib/esm/view/spendManagement/billPay/editBillView/editBillViewSelector.js +4 -30
- package/lib/esm/view/spendManagement/commonSetup/epic/setup/resetKycKybEpic.js +37 -0
- package/lib/esm/view/spendManagement/commonSetup/setupViewReducer.js +21 -1
- package/lib/esm/view/spendManagement/commonSetup/setupViewSelector.js +2 -1
- package/lib/index.d.ts +15 -19
- package/lib/index.js +65 -63
- package/lib/reducer.d.ts +1 -2
- package/lib/reducer.js +4 -7
- package/lib/rootStateTypes.d.ts +3 -5
- package/lib/view/expenseAutomationView/epics/jeSchedule/actualMatching/fetchActualMatchingMatchEpic.d.ts +2 -2
- package/lib/view/expenseAutomationView/epics/jeSchedule/actualMatching/fetchActualMatchingMatchEpic.js +3 -1
- package/lib/view/expenseAutomationView/epics/jeSchedule/actualMatching/ignoreActualMatchingSuggestionEpic.d.ts +10 -0
- package/lib/view/expenseAutomationView/epics/jeSchedule/actualMatching/ignoreActualMatchingSuggestionEpic.js +54 -0
- package/lib/view/expenseAutomationView/epics/jeSchedule/actualMatching/matchAndReverseAccrualsEpic.js +24 -11
- package/lib/view/expenseAutomationView/epics/jeSchedule/actualMatching/searchMatchTransactionsEpic.js +1 -22
- package/lib/view/expenseAutomationView/helpers/transactionCategorizationLocalDataHelper.d.ts +1 -1
- package/lib/view/expenseAutomationView/payload/actualMatchingPayload.d.ts +12 -1
- package/lib/view/expenseAutomationView/reducers/actualMatchingViewReducer.d.ts +19 -8
- package/lib/view/expenseAutomationView/reducers/actualMatchingViewReducer.js +90 -39
- package/lib/view/expenseAutomationView/reducers/jeSchedulesViewReducer.d.ts +2 -2
- package/lib/view/expenseAutomationView/selectorTypes/actualMatchingViewSelectorTypes.d.ts +24 -10
- package/lib/view/expenseAutomationView/selectors/actualMatchingViewSelector.d.ts +7 -4
- package/lib/view/expenseAutomationView/selectors/actualMatchingViewSelector.js +71 -62
- package/lib/view/expenseAutomationView/types/actualMatchingViewState.d.ts +19 -4
- package/lib/view/expenseAutomationView/types/actualMatchingViewState.js +18 -1
- package/lib/view/invoicing/createInvoice/createInvoiceEpic.d.ts +3 -2
- package/lib/view/invoicing/createInvoice/createInvoiceEpic.js +8 -0
- 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/editInvoicingCustomerDetailView/editInvoicingCustomerDetailViewReducer.d.ts +3 -1
- package/lib/view/invoicing/editInvoicingCustomerDetailView/editInvoicingCustomerDetailViewReducer.js +6 -2
- package/lib/view/invoicing/editInvoicingSubscriptionDetailView/editInvoicingSubscriptionDetailViewSelector.d.ts +3 -2
- package/lib/view/invoicing/editInvoicingSubscriptionDetailView/editInvoicingSubscriptionDetailViewSelector.js +29 -2
- package/lib/view/invoicing/editInvoicingSubscriptionDetailView/saveInvoicingSubscriptionEpic.d.ts +3 -1
- package/lib/view/invoicing/editInvoicingSubscriptionDetailView/saveInvoicingSubscriptionEpic.js +5 -1
- package/lib/view/invoicing/invoiceList/invoiceListReducer.d.ts +3 -1
- package/lib/view/invoicing/invoiceList/invoiceListReducer.js +9 -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 +33 -15
- package/lib/view/invoicing/invoicingCatalogListView/invoicingCatalogListViewSelector.js +57 -23
- package/lib/view/invoicing/invoicingCatalogListView/invoicingCatalogListViewState.d.ts +0 -15
- package/lib/view/invoicing/invoicingCatalogListView/invoicingCatalogListViewState.js +0 -22
- 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/invoicing/settingsView/settingsViewSelector.d.ts +12 -3
- package/lib/view/invoicing/settingsView/settingsViewSelector.js +17 -8
- package/lib/view/invoicing/settingsView/submitInvoicingBrandingFormEpic.js +11 -2
- package/lib/view/onboardingView/customerView/epic/customerDetails/updateOnboardingCustomerViewEpic.js +33 -13
- package/lib/view/onboardingView/customerView/onboardingCustomerViewReducer.d.ts +3 -2
- package/lib/view/onboardingView/customerView/onboardingCustomerViewReducer.js +2 -1
- package/lib/view/onboardingView/customerView/onboardingCustomerViewState.d.ts +4 -0
- 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/billPay/editBillView/editBillViewSelector.d.ts +1 -1
- package/lib/view/spendManagement/billPay/editBillView/editBillViewSelector.js +4 -30
- package/lib/view/spendManagement/commonSetup/epic/setup/resetKycKybEpic.d.ts +8 -0
- package/lib/view/spendManagement/commonSetup/epic/setup/resetKycKybEpic.js +41 -0
- package/lib/view/spendManagement/commonSetup/setupViewReducer.d.ts +1 -1
- package/lib/view/spendManagement/commonSetup/setupViewReducer.js +22 -2
- package/lib/view/spendManagement/commonSetup/setupViewSelector.d.ts +1 -0
- package/lib/view/spendManagement/commonSetup/setupViewSelector.js +2 -1
- package/lib/view/spendManagement/commonSetup/setupViewState.d.ts +1 -0
- package/lib/view/spendManagement/commonSetup/types/businessVerification.d.ts +2 -1
- 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 -26
- 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 @@ import { ZeniAPIStatus } from '../../../responsePayload';
|
|
|
3
3
|
import { CompanyOfficerType } from '../../companyView/types/companyPassport/companyUsersLocalData';
|
|
4
4
|
import { CompanyDetailsLocalData, CompanyOfficerLocalData } from '../../spendManagement/commonSetup/setupViewState';
|
|
5
5
|
import { PlaidLinkTokenType } from '../../spendManagement/plaidAccount/plaidAccountViewState';
|
|
6
|
-
import { AiAgentsActivationCounts, AiAgentsActivationPhase, OnboardingCustomerViewState, OnboardingCustomerViewUIState, OnboardingStep, OnboardingSubStep } from './onboardingCustomerViewState';
|
|
6
|
+
import { AiAgentsActivationCounts, AiAgentsActivationPhase, OnboardingBusinessProfileUpdate, OnboardingCustomerViewState, OnboardingCustomerViewUIState, OnboardingStep, OnboardingSubStep } from './onboardingCustomerViewState';
|
|
7
7
|
export declare const initialState: OnboardingCustomerViewState;
|
|
8
8
|
export declare const fetchOnboardingCustomerView: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[companyId: string, cacheOverride?: any, reCalculateCurrentStep?: any], {
|
|
9
9
|
companyId: string;
|
|
@@ -29,12 +29,13 @@ export declare const fetchOnboardingCustomerView: import("@reduxjs/toolkit").Act
|
|
|
29
29
|
phases: AiAgentsActivationPhase[];
|
|
30
30
|
}, "onboardingCustomerView/fetchAiAgentsActivationStatusSuccess", never, never>, fetchAiAgentsActivationStatusFailure: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[error: ZeniAPIStatus<Record<string, unknown>>], ZeniAPIStatus<Record<string, unknown>>, "onboardingCustomerView/fetchAiAgentsActivationStatusFailure", never, never>, aiAgentsActivationCountsUpdated: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[payload: Partial<AiAgentsActivationCounts>], Partial<AiAgentsActivationCounts>, "onboardingCustomerView/aiAgentsActivationCountsUpdated", never, never>, aiAgentsActivationPhaseChanged: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[payload: AiAgentsActivationPhase], AiAgentsActivationPhase, "onboardingCustomerView/aiAgentsActivationPhaseChanged", never, never>, updateOnboardingCustomerViewDashboardLoaded: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[companyId: string], {
|
|
31
31
|
companyId: string;
|
|
32
|
-
}, "onboardingCustomerView/updateOnboardingCustomerViewDashboardLoaded", never, never>, updateOnboardingCustomerViewDashboardLoadedSuccess: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"onboardingCustomerView/updateOnboardingCustomerViewDashboardLoadedSuccess">, updateOnboardingCustomerViewDashboardLoadedFailure: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[error: ZeniAPIStatus<Record<string, unknown>>], ZeniAPIStatus<Record<string, unknown>>, "onboardingCustomerView/updateOnboardingCustomerViewDashboardLoadedFailure", never, never>, updateOnboardingCustomerView: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[companyId: string, sendForVerification: boolean, reCalculateCurrentStep?: boolean | undefined, isBillingAddressUpdate?: boolean | undefined, officerType?: "Officer_1" | "Officer_2" | "Officer_3" | "Officer_4" | "Officer_5" | "Officer_6" | "Officer_7" | "Officer_8" | "Officer_9" | "Officer_10" | undefined], {
|
|
32
|
+
}, "onboardingCustomerView/updateOnboardingCustomerViewDashboardLoaded", never, never>, updateOnboardingCustomerViewDashboardLoadedSuccess: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"onboardingCustomerView/updateOnboardingCustomerViewDashboardLoadedSuccess">, updateOnboardingCustomerViewDashboardLoadedFailure: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[error: ZeniAPIStatus<Record<string, unknown>>], ZeniAPIStatus<Record<string, unknown>>, "onboardingCustomerView/updateOnboardingCustomerViewDashboardLoadedFailure", never, never>, updateOnboardingCustomerView: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[companyId: string, sendForVerification: boolean, reCalculateCurrentStep?: boolean | undefined, isBillingAddressUpdate?: boolean | undefined, officerType?: "Officer_1" | "Officer_2" | "Officer_3" | "Officer_4" | "Officer_5" | "Officer_6" | "Officer_7" | "Officer_8" | "Officer_9" | "Officer_10" | undefined, businessProfile?: OnboardingBusinessProfileUpdate | undefined], {
|
|
33
33
|
companyId: string;
|
|
34
34
|
sendForVerification: boolean;
|
|
35
35
|
reCalculateCurrentStep: boolean | undefined;
|
|
36
36
|
isBillingAddressUpdate: boolean | undefined;
|
|
37
37
|
officerType: "Officer_1" | "Officer_2" | "Officer_3" | "Officer_4" | "Officer_5" | "Officer_6" | "Officer_7" | "Officer_8" | "Officer_9" | "Officer_10" | undefined;
|
|
38
|
+
businessProfile: OnboardingBusinessProfileUpdate | undefined;
|
|
38
39
|
}, "onboardingCustomerView/updateOnboardingCustomerView", never, never>, updateOnboardingCustomerViewSuccess: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"onboardingCustomerView/updateOnboardingCustomerViewSuccess">, updateOnboardingCustomerViewFailure: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[error: ZeniAPIStatus<Record<string, unknown>>], ZeniAPIStatus<Record<string, unknown>>, "onboardingCustomerView/updateOnboardingCustomerViewFailure", never, never>, updateOnboardingPaymentAccountStatus: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[verificationStatusCode: string, paymentAccountId: string, linkTokenType?: PlaidLinkTokenType | undefined], {
|
|
39
40
|
verificationStatusCode: string;
|
|
40
41
|
paymentAccountId: string;
|
|
@@ -528,7 +528,7 @@ const onboardingCustomerView = (0, toolkit_1.createSlice)({
|
|
|
528
528
|
reducer(draft) {
|
|
529
529
|
draft.saveStatus = { fetchState: 'In-Progress', error: undefined };
|
|
530
530
|
},
|
|
531
|
-
prepare(companyId, sendForVerification, reCalculateCurrentStep, isBillingAddressUpdate, officerType) {
|
|
531
|
+
prepare(companyId, sendForVerification, reCalculateCurrentStep, isBillingAddressUpdate, officerType, businessProfile) {
|
|
532
532
|
return {
|
|
533
533
|
payload: {
|
|
534
534
|
companyId,
|
|
@@ -536,6 +536,7 @@ const onboardingCustomerView = (0, toolkit_1.createSlice)({
|
|
|
536
536
|
reCalculateCurrentStep,
|
|
537
537
|
isBillingAddressUpdate,
|
|
538
538
|
officerType,
|
|
539
|
+
businessProfile,
|
|
539
540
|
},
|
|
540
541
|
};
|
|
541
542
|
},
|
|
@@ -20,6 +20,10 @@ export type OnboardingSubStep = ReturnType<typeof toOnboardingSubStepType>;
|
|
|
20
20
|
* Onboarding Custiner View Local Data - Intefaces
|
|
21
21
|
*/
|
|
22
22
|
export type OnboardingCustomerViewLocalData = SetupViewLocalData;
|
|
23
|
+
export interface OnboardingBusinessProfileUpdate {
|
|
24
|
+
companyBusinessModel: string;
|
|
25
|
+
companyIndustryType: string;
|
|
26
|
+
}
|
|
23
27
|
export interface OnboardingCustomerViewUIState {
|
|
24
28
|
isCardPaymentPopupOpen: boolean;
|
|
25
29
|
isQBOPopupOpen: boolean;
|
|
@@ -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;
|
|
@@ -141,7 +141,7 @@ export declare const getWithdrawFrom: (state: RootState, fromAccountId?: ID, fro
|
|
|
141
141
|
accountId: ID;
|
|
142
142
|
accountType: AccountTypeSubConfigCodeKeyType;
|
|
143
143
|
}) => FundingAccount | undefined;
|
|
144
|
-
export declare const getDefaultWithdrawFromAccount: (state: RootState,
|
|
144
|
+
export declare const getDefaultWithdrawFromAccount: (state: RootState, companyId: ID, lastSelectedFromAccount?: {
|
|
145
145
|
accountId: ID;
|
|
146
146
|
accountType: AccountTypeSubConfigCodeKeyType;
|
|
147
147
|
}) => FundingAccount | undefined;
|
|
@@ -640,7 +640,7 @@ const getDueDate = (billStageCode, dueDate, invoiceDate, bookCloseDate) => {
|
|
|
640
640
|
};
|
|
641
641
|
exports.getDueDate = getDueDate;
|
|
642
642
|
const getWithdrawFrom = (state, fromAccountId, fromAccountType, companyId, lastSelectedFromAccount) => {
|
|
643
|
-
const { paymentAccountState, depositAccountState,
|
|
643
|
+
const { paymentAccountState, depositAccountState, paymentAccountListState } = state;
|
|
644
644
|
if (fromAccountId != null) {
|
|
645
645
|
const withdrawFromAsDepositAcc = (0, depositAccountSelector_1.getDepositAccountByDepositAccountId)(depositAccountState, fromAccountId);
|
|
646
646
|
const withdrawFromAsPaymentAcc = (0, paymentAccountSelector_1.getPaymentAccountByPaymentAccountId)(paymentAccountState, fromAccountId);
|
|
@@ -654,42 +654,16 @@ const getWithdrawFrom = (state, fromAccountId, fromAccountType, companyId, lastS
|
|
|
654
654
|
}
|
|
655
655
|
}
|
|
656
656
|
else {
|
|
657
|
-
return (0, exports.getDefaultWithdrawFromAccount)(state,
|
|
657
|
+
return (0, exports.getDefaultWithdrawFromAccount)(state, companyId ?? '', lastSelectedFromAccount);
|
|
658
658
|
}
|
|
659
659
|
return undefined;
|
|
660
660
|
};
|
|
661
661
|
exports.getWithdrawFrom = getWithdrawFrom;
|
|
662
|
-
const getDefaultWithdrawFromAccount = (state,
|
|
662
|
+
const getDefaultWithdrawFromAccount = (state, companyId, lastSelectedFromAccount) => {
|
|
663
663
|
const { depositAccountState, paymentAccountState, paymentAccountListState } = state;
|
|
664
664
|
const companyView = (0, getCompanyView_1.getCompanyView)(state, companyId, []);
|
|
665
665
|
const primaryAccount = companyView?.company.company.companyBillPayInfo.primaryFundingAccount;
|
|
666
|
-
|
|
667
|
-
// User paying bill for first time or previously paid with external account
|
|
668
|
-
if (lastSelectedFromAccount == null ||
|
|
669
|
-
lastSelectedFromAccount?.accountType === 'paymentAccount') {
|
|
670
|
-
if (depositAccounts.length === 0) {
|
|
671
|
-
defaultAccount = primaryAccount;
|
|
672
|
-
}
|
|
673
|
-
else {
|
|
674
|
-
if (primaryAccount?.accountType === 'depositAccount') {
|
|
675
|
-
defaultAccount = primaryAccount;
|
|
676
|
-
}
|
|
677
|
-
}
|
|
678
|
-
}
|
|
679
|
-
else {
|
|
680
|
-
// User paid with Zeni account previously
|
|
681
|
-
if (depositAccounts.length === 1) {
|
|
682
|
-
defaultAccount = lastSelectedFromAccount;
|
|
683
|
-
}
|
|
684
|
-
else {
|
|
685
|
-
if (primaryAccount?.accountType === 'depositAccount') {
|
|
686
|
-
defaultAccount = primaryAccount;
|
|
687
|
-
}
|
|
688
|
-
else {
|
|
689
|
-
defaultAccount = lastSelectedFromAccount;
|
|
690
|
-
}
|
|
691
|
-
}
|
|
692
|
-
}
|
|
666
|
+
const defaultAccount = primaryAccount ?? lastSelectedFromAccount;
|
|
693
667
|
if (defaultAccount != null) {
|
|
694
668
|
const defaultAccAsDepositAcc = (0, depositAccountSelector_1.getDepositAccountByDepositAccountId)(depositAccountState, defaultAccount?.accountId);
|
|
695
669
|
const defaultAccAsPaymentAcc = (0, paymentAccountSelector_1.getPaymentAccountByPaymentAccountId)(paymentAccountState, defaultAccount?.accountId);
|
|
@@ -0,0 +1,8 @@
|
|
|
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>;
|
|
@@ -0,0 +1,41 @@
|
|
|
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;
|
|
@@ -14,7 +14,7 @@ export declare const enableSetup: import("@reduxjs/toolkit").ActionCreatorWithPr
|
|
|
14
14
|
sendForVerification: any;
|
|
15
15
|
fromBillListScreen: any;
|
|
16
16
|
isSubmittingAdditionalDocuments: any;
|
|
17
|
-
}, "setupView/updateBusinessVerificationDetails", never, never>, updateBusinessVerificationDetailsSuccess: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"setupView/updateBusinessVerificationDetailsSuccess">, updateBusinessVerificationDetailsFailure: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[error: ZeniAPIStatus<Record<string, unknown>>], ZeniAPIStatus<Record<string, unknown>>, "setupView/updateBusinessVerificationDetailsFailure", never, never>, updateSelectedCompanyOfficer: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[selectedOfficerType: "Officer_1" | "Officer_2" | "Officer_3" | "Officer_4" | "Officer_5" | "Officer_6" | "Officer_7" | "Officer_8" | "Officer_9" | "Officer_10"], {
|
|
17
|
+
}, "setupView/updateBusinessVerificationDetails", never, never>, updateBusinessVerificationDetailsSuccess: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"setupView/updateBusinessVerificationDetailsSuccess">, updateBusinessVerificationDetailsFailure: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[error: ZeniAPIStatus<Record<string, unknown>>], ZeniAPIStatus<Record<string, unknown>>, "setupView/updateBusinessVerificationDetailsFailure", never, never>, resetKycKyb: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"setupView/resetKycKyb">, resetKycKybSuccess: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"setupView/resetKycKybSuccess">, resetKycKybFailure: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[error: ZeniAPIStatus<Record<string, unknown>>], ZeniAPIStatus<Record<string, unknown>>, "setupView/resetKycKybFailure", never, never>, clearKycKybResetStatus: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"setupView/clearKycKybResetStatus">, updateSelectedCompanyOfficer: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[selectedOfficerType: "Officer_1" | "Officer_2" | "Officer_3" | "Officer_4" | "Officer_5" | "Officer_6" | "Officer_7" | "Officer_8" | "Officer_9" | "Officer_10"], {
|
|
18
18
|
selectedOfficerType: "Officer_1" | "Officer_2" | "Officer_3" | "Officer_4" | "Officer_5" | "Officer_6" | "Officer_7" | "Officer_8" | "Officer_9" | "Officer_10";
|
|
19
19
|
}, "setupView/updateSelectedCompanyOfficer", never, never>, updateSetupViewLocalStoreData: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
20
20
|
companyId: ID;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var _a;
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.clearKycKybAutofillForSetup = exports.applyKybDocumentAutofillForSetup = exports.applyKycDocumentAutofillForSetup = exports.clearSetupViewDataInLocalStore = exports.saveIndustryAndIncDateInLocalStore = exports.verifyOtpFailureSpendManagementSetUp = exports.verifyOtpSuccessSpendManagementSetUp = exports.verifyOtpSpendManagementSetUp = exports.sendOtpFailureSpendManagementSetUp = exports.sendOtpSuccessSpendManagementSetUp = exports.resendOtpSpendManagementSetUp = exports.sendOtpSpendManagementSetUp = exports.saveTreasuryAdditionalDocumentsInLocalStore = exports.saveCompnayOfficerAdditionalDocumentsInLocalStore = exports.saveCompnayOfficerPhoneInLocalStore = exports.saveSetupViewDataInLocalStore = exports.updateSetupViewLocalStoreData = exports.updateSelectedCompanyOfficer = exports.updateBusinessVerificationDetailsFailure = exports.updateBusinessVerificationDetailsSuccess = exports.updateBusinessVerificationDetails = exports.enableSetupFailure = exports.enableSetupSuccess = exports.enableSetup = exports.initialState = void 0;
|
|
4
|
+
exports.clearKycKybAutofillForSetup = exports.applyKybDocumentAutofillForSetup = exports.applyKycDocumentAutofillForSetup = exports.clearSetupViewDataInLocalStore = exports.saveIndustryAndIncDateInLocalStore = exports.verifyOtpFailureSpendManagementSetUp = exports.verifyOtpSuccessSpendManagementSetUp = exports.verifyOtpSpendManagementSetUp = exports.sendOtpFailureSpendManagementSetUp = exports.sendOtpSuccessSpendManagementSetUp = exports.resendOtpSpendManagementSetUp = exports.sendOtpSpendManagementSetUp = exports.saveTreasuryAdditionalDocumentsInLocalStore = exports.saveCompnayOfficerAdditionalDocumentsInLocalStore = exports.saveCompnayOfficerPhoneInLocalStore = exports.saveSetupViewDataInLocalStore = exports.updateSetupViewLocalStoreData = exports.updateSelectedCompanyOfficer = exports.clearKycKybResetStatus = exports.resetKycKybFailure = exports.resetKycKybSuccess = exports.resetKycKyb = exports.updateBusinessVerificationDetailsFailure = exports.updateBusinessVerificationDetailsSuccess = exports.updateBusinessVerificationDetails = exports.enableSetupFailure = exports.enableSetupSuccess = exports.enableSetup = exports.initialState = void 0;
|
|
5
5
|
const toolkit_1 = require("@reduxjs/toolkit");
|
|
6
6
|
const rootActions_1 = require("../../../rootActions");
|
|
7
7
|
const kycKybAutofillActions_1 = require("./kycKybAutofillActions");
|
|
@@ -17,6 +17,7 @@ const emptyOfficerSlot = {
|
|
|
17
17
|
};
|
|
18
18
|
exports.initialState = {
|
|
19
19
|
updateStatus: { fetchState: 'Not-Started', error: undefined },
|
|
20
|
+
kycKybResetStatus: { fetchState: 'Not-Started', error: undefined },
|
|
20
21
|
parsingDocumentFileIds: [],
|
|
21
22
|
companyDetails: { autoFilledFields: [] },
|
|
22
23
|
companyOfficerUpdateStatus: {
|
|
@@ -88,6 +89,25 @@ const setupView = (0, toolkit_1.createSlice)({
|
|
|
88
89
|
};
|
|
89
90
|
},
|
|
90
91
|
},
|
|
92
|
+
resetKycKyb(draft) {
|
|
93
|
+
draft.kycKybResetStatus = { fetchState: 'In-Progress', error: undefined };
|
|
94
|
+
},
|
|
95
|
+
resetKycKybSuccess(draft) {
|
|
96
|
+
draft.kycKybResetStatus = { fetchState: 'Completed', error: undefined };
|
|
97
|
+
},
|
|
98
|
+
resetKycKybFailure: {
|
|
99
|
+
reducer(draft, action) {
|
|
100
|
+
draft.kycKybResetStatus = { fetchState: 'Error', error: action.payload };
|
|
101
|
+
},
|
|
102
|
+
prepare(error) {
|
|
103
|
+
return {
|
|
104
|
+
payload: error,
|
|
105
|
+
};
|
|
106
|
+
},
|
|
107
|
+
},
|
|
108
|
+
clearKycKybResetStatus(draft) {
|
|
109
|
+
draft.kycKybResetStatus = { fetchState: 'Not-Started', error: undefined };
|
|
110
|
+
},
|
|
91
111
|
updateSelectedCompanyOfficer: {
|
|
92
112
|
reducer(draft, action) {
|
|
93
113
|
const { selectedOfficerType } = action.payload;
|
|
@@ -363,5 +383,5 @@ const setupView = (0, toolkit_1.createSlice)({
|
|
|
363
383
|
});
|
|
364
384
|
},
|
|
365
385
|
});
|
|
366
|
-
_a = setupView.actions, exports.enableSetup = _a.enableSetup, exports.enableSetupSuccess = _a.enableSetupSuccess, exports.enableSetupFailure = _a.enableSetupFailure, exports.updateBusinessVerificationDetails = _a.updateBusinessVerificationDetails, exports.updateBusinessVerificationDetailsSuccess = _a.updateBusinessVerificationDetailsSuccess, exports.updateBusinessVerificationDetailsFailure = _a.updateBusinessVerificationDetailsFailure, exports.updateSelectedCompanyOfficer = _a.updateSelectedCompanyOfficer, exports.updateSetupViewLocalStoreData = _a.updateSetupViewLocalStoreData, exports.saveSetupViewDataInLocalStore = _a.saveSetupViewDataInLocalStore, exports.saveCompnayOfficerPhoneInLocalStore = _a.saveCompnayOfficerPhoneInLocalStore, exports.saveCompnayOfficerAdditionalDocumentsInLocalStore = _a.saveCompnayOfficerAdditionalDocumentsInLocalStore, exports.saveTreasuryAdditionalDocumentsInLocalStore = _a.saveTreasuryAdditionalDocumentsInLocalStore, exports.sendOtpSpendManagementSetUp = _a.sendOtp, exports.resendOtpSpendManagementSetUp = _a.resendOtp, exports.sendOtpSuccessSpendManagementSetUp = _a.sendOtpSuccess, exports.sendOtpFailureSpendManagementSetUp = _a.sendOtpFailure, exports.verifyOtpSpendManagementSetUp = _a.verifyOtp, exports.verifyOtpSuccessSpendManagementSetUp = _a.verifyOtpSuccess, exports.verifyOtpFailureSpendManagementSetUp = _a.verifyOtpFailure, exports.saveIndustryAndIncDateInLocalStore = _a.saveIndustryAndIncDateInLocalStore, exports.clearSetupViewDataInLocalStore = _a.clearSetupViewDataInLocalStore, exports.applyKycDocumentAutofillForSetup = _a.applyKycDocumentAutofillForSetup, exports.applyKybDocumentAutofillForSetup = _a.applyKybDocumentAutofillForSetup, exports.clearKycKybAutofillForSetup = _a.clearKycKybAutofillForSetup;
|
|
386
|
+
_a = setupView.actions, exports.enableSetup = _a.enableSetup, exports.enableSetupSuccess = _a.enableSetupSuccess, exports.enableSetupFailure = _a.enableSetupFailure, exports.updateBusinessVerificationDetails = _a.updateBusinessVerificationDetails, exports.updateBusinessVerificationDetailsSuccess = _a.updateBusinessVerificationDetailsSuccess, exports.updateBusinessVerificationDetailsFailure = _a.updateBusinessVerificationDetailsFailure, exports.resetKycKyb = _a.resetKycKyb, exports.resetKycKybSuccess = _a.resetKycKybSuccess, exports.resetKycKybFailure = _a.resetKycKybFailure, exports.clearKycKybResetStatus = _a.clearKycKybResetStatus, exports.updateSelectedCompanyOfficer = _a.updateSelectedCompanyOfficer, exports.updateSetupViewLocalStoreData = _a.updateSetupViewLocalStoreData, exports.saveSetupViewDataInLocalStore = _a.saveSetupViewDataInLocalStore, exports.saveCompnayOfficerPhoneInLocalStore = _a.saveCompnayOfficerPhoneInLocalStore, exports.saveCompnayOfficerAdditionalDocumentsInLocalStore = _a.saveCompnayOfficerAdditionalDocumentsInLocalStore, exports.saveTreasuryAdditionalDocumentsInLocalStore = _a.saveTreasuryAdditionalDocumentsInLocalStore, exports.sendOtpSpendManagementSetUp = _a.sendOtp, exports.resendOtpSpendManagementSetUp = _a.resendOtp, exports.sendOtpSuccessSpendManagementSetUp = _a.sendOtpSuccess, exports.sendOtpFailureSpendManagementSetUp = _a.sendOtpFailure, exports.verifyOtpSpendManagementSetUp = _a.verifyOtp, exports.verifyOtpSuccessSpendManagementSetUp = _a.verifyOtpSuccess, exports.verifyOtpFailureSpendManagementSetUp = _a.verifyOtpFailure, exports.saveIndustryAndIncDateInLocalStore = _a.saveIndustryAndIncDateInLocalStore, exports.clearSetupViewDataInLocalStore = _a.clearSetupViewDataInLocalStore, exports.applyKycDocumentAutofillForSetup = _a.applyKycDocumentAutofillForSetup, exports.applyKybDocumentAutofillForSetup = _a.applyKybDocumentAutofillForSetup, exports.clearKycKybAutofillForSetup = _a.clearKycKybAutofillForSetup;
|
|
367
387
|
exports.default = setupView.reducer;
|
|
@@ -21,6 +21,7 @@ export interface SetupView {
|
|
|
21
21
|
}
|
|
22
22
|
export interface BusinessVerificationDetails extends CompanyAndOfficerLocalData {
|
|
23
23
|
allNationalityCountries: Country[];
|
|
24
|
+
kycKybResetStatus: FetchStateAndError;
|
|
24
25
|
updateStatus: FetchStateAndError;
|
|
25
26
|
companyView?: CompanyView;
|
|
26
27
|
}
|
|
@@ -90,7 +90,7 @@ function getPrimaryAccountForTheProduct(state, companyId, setupViewType) {
|
|
|
90
90
|
}
|
|
91
91
|
function getBusinessVerificationDetails(state, companyId) {
|
|
92
92
|
const { setupViewState, countryListState } = state;
|
|
93
|
-
const { companyDetails, companyOfficerUpdateStatus, primaryContactDetails, updateStatus, } = setupViewState;
|
|
93
|
+
const { companyDetails, companyOfficerUpdateStatus, kycKybResetStatus, primaryContactDetails, updateStatus, } = setupViewState;
|
|
94
94
|
const companyView = (0, getCompanyView_1.getCompanyView)(state, companyId, []);
|
|
95
95
|
const { companyDetailsLocalData, companyOfficerLocalData, parsingDocumentFileIds, } = (0, exports.getCompanyAndIdentityDetails)(state, companyId, {
|
|
96
96
|
companyDetails,
|
|
@@ -105,6 +105,7 @@ function getBusinessVerificationDetails(state, companyId) {
|
|
|
105
105
|
parsingDocumentFileIds,
|
|
106
106
|
companyView,
|
|
107
107
|
updateStatus,
|
|
108
|
+
kycKybResetStatus,
|
|
108
109
|
allNationalityCountries,
|
|
109
110
|
};
|
|
110
111
|
}
|
|
@@ -185,6 +185,7 @@ export interface CompanyAndIdentityDetails {
|
|
|
185
185
|
};
|
|
186
186
|
}
|
|
187
187
|
export interface SetupViewState extends CompanyAndIdentityDetails {
|
|
188
|
+
kycKybResetStatus: FetchStateAndError;
|
|
188
189
|
/**
|
|
189
190
|
* File IDs currently being parsed by the AI autofill epic. Populated when
|
|
190
191
|
* `parseUploadedKyc/KybDocument` dispatches and cleared when the
|
|
@@ -92,9 +92,10 @@ export interface CompanyDetailsVerificationPayload {
|
|
|
92
92
|
source_of_funds: string;
|
|
93
93
|
sync_token: string;
|
|
94
94
|
tax_id: string;
|
|
95
|
+
company_business_model?: string;
|
|
95
96
|
company_countries_of_operations?: string[];
|
|
96
97
|
company_inc_state?: string | null;
|
|
97
|
-
company_industry_sub_type?: string;
|
|
98
|
+
company_industry_sub_type?: string | null;
|
|
98
99
|
company_industry_type?: string;
|
|
99
100
|
company_purpose_of_account?: CompanyPurposeOfAccountCode;
|
|
100
101
|
company_purpose_of_account_desc?: string;
|
|
@@ -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.72-beta0ND",
|
|
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",
|
|
@@ -53,31 +53,6 @@
|
|
|
53
53
|
"url": "https://github.com/zeni-ai/client-epic-state/issues"
|
|
54
54
|
},
|
|
55
55
|
"homepage": "https://github.com/zeni-ai/client-epic-state#readme",
|
|
56
|
-
"devDependencies": {
|
|
57
|
-
"@eslint/js": "^9.24.0",
|
|
58
|
-
"@liveblocks/client": "^2.23.0",
|
|
59
|
-
"@trivago/prettier-plugin-sort-imports": "^5.2.2",
|
|
60
|
-
"@types/big.js": "^6.2.2",
|
|
61
|
-
"@types/lodash": "^4.17.23",
|
|
62
|
-
"@types/node": "^20.19.0",
|
|
63
|
-
"@types/url-parse": "^1.4.11",
|
|
64
|
-
"@typescript-eslint/eslint-plugin": "^8.56.0",
|
|
65
|
-
"@typescript-eslint/parser": "^8.56.0",
|
|
66
|
-
"concurrently": "^9.1.2",
|
|
67
|
-
"eslint": "^9.24.0",
|
|
68
|
-
"eslint-config-prettier": "^10.0.2",
|
|
69
|
-
"eslint-plugin-perfectionist": "^4.15.0",
|
|
70
|
-
"eslint-plugin-unused-imports": "^4.1.4",
|
|
71
|
-
"globals": "^16.0.0",
|
|
72
|
-
"knip": "^6.21.0",
|
|
73
|
-
"madge": "^8.0.0",
|
|
74
|
-
"prettier": "^3.5.3",
|
|
75
|
-
"rimraf": "^6.0.1",
|
|
76
|
-
"semver": "^7.7.1",
|
|
77
|
-
"typescript": "^5.7.3",
|
|
78
|
-
"vite": "^7.3.5",
|
|
79
|
-
"vitest": "^4.1.11"
|
|
80
|
-
},
|
|
81
56
|
"dependencies": {
|
|
82
57
|
"@redux-devtools/extension": "^3.3.0",
|
|
83
58
|
"@reduxjs/toolkit": "^1.6.2",
|
|
@@ -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;
|