@zeniai/client-epic-state 4.15.41 → 4.15.43
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/README.md +1 -19
- package/lib/commonPayloadTypes/recommendationPayload.d.ts +0 -1
- package/lib/commonStateTypes/common.d.ts +1 -1
- package/lib/commonStateTypes/fiscalYearHelpers/getFYMonths.d.ts +2 -2
- package/lib/commonStateTypes/fiscalYearHelpers/getFYQuarterAndYear.d.ts +2 -2
- package/lib/commonStateTypes/timePeriod.d.ts +7 -7
- package/lib/commonStateTypes/timePeriod.js +2 -2
- package/lib/commonStateTypes/viewAndReport/agingReportStateTypes.d.ts +1 -1
- package/lib/commonStateTypes/viewAndReport/agingReportStateTypes.js +1 -1
- package/lib/commonStateTypes/viewAndReport/viewAndReport.d.ts +2 -2
- package/lib/commonStateTypes/viewAndReport/viewAndReport.js +0 -1
- package/lib/configureStore.js +1 -2
- package/lib/entity/account/accountSelector.d.ts +3 -3
- package/lib/entity/account/accountState.d.ts +1 -1
- package/lib/entity/account/pickAndMergeForecastAccountReport.d.ts +1 -1
- package/lib/entity/accountGroup/accountGroupSelector.d.ts +22 -22
- package/lib/entity/accountGroup/accountGroupState.d.ts +1 -1
- package/lib/entity/approvalRule/approvalRuleState.d.ts +2 -2
- package/lib/entity/billPay/billTransaction/billTransactionState.d.ts +4 -4
- package/lib/entity/chargeCard/chargeCard.d.ts +1 -1
- package/lib/entity/chargeCardTransaction/chargeCardTransaction.d.ts +1 -1
- package/lib/entity/class/classReducer.d.ts +4 -4
- package/lib/entity/class/classState.d.ts +1 -1
- package/lib/entity/company/companyReducer.js +1 -0
- package/lib/entity/customer/customerPayload.d.ts +1 -1
- package/lib/entity/customer/customerPayload.js +6 -16
- package/lib/entity/depositAccountTransaction/depositAccountTransaction.d.ts +1 -1
- package/lib/entity/entityApprovalStatus/entityApprovalStatusState.d.ts +2 -2
- package/lib/entity/file/fileState.d.ts +3 -3
- package/lib/entity/forecast/forecastState.d.ts +1 -1
- package/lib/entity/jeSchedules/jeSchedulesReducer.d.ts +2 -2
- package/lib/entity/jeSchedules/jeSchedulesTypes.d.ts +2 -2
- package/lib/entity/notification/types/notificationTypes.d.ts +2 -2
- package/lib/entity/sectionAccountsView/sectionAccountsView.d.ts +1 -1
- package/lib/entity/sectionClassesViewV2/sectionClassesView.d.ts +1 -1
- package/lib/entity/sectionClassesViewV2/sectionClassesViewReducer.d.ts +2 -2
- package/lib/entity/snackbar/snackbarTypes.d.ts +2 -2
- package/lib/entity/snackbar/snackbarTypes.js +0 -4
- package/lib/entity/task/taskState.d.ts +3 -3
- package/lib/entity/tenant/clearAllEpic.d.ts +2 -4
- package/lib/entity/tenant/clearAllEpic.js +0 -4
- package/lib/entity/tenant/tenantReducer.d.ts +2 -2
- package/lib/entity/tenant/tenantReducer.js +1 -0
- package/lib/entity/transaction/payloadTypes/customerTransactionPayload.d.ts +1 -1
- package/lib/entity/transaction/payloadTypes/customerTransactionPayload.js +2 -1
- package/lib/entity/transaction/payloadTypes/transactionPayload.d.ts +0 -2
- package/lib/entity/transaction/payloadTypes/transactionPayload.js +6 -9
- package/lib/entity/transaction/payloadTypes/vendorTransactionPayload.d.ts +1 -9
- package/lib/entity/transaction/payloadTypes/vendorTransactionPayload.js +2 -24
- package/lib/entity/transaction/stateTypes/attachment.d.ts +2 -2
- package/lib/entity/transaction/stateTypes/transaction.d.ts +1 -3
- package/lib/entity/transaction/stateTypes/transactionType.d.ts +1 -1
- package/lib/entity/transaction/stateTypes/transactionType.js +1 -1
- package/lib/entity/transaction/stateTypes/vendorTransaction.d.ts +0 -5
- package/lib/entity/transaction/stateTypes/vendorTransaction.js +1 -5
- package/lib/entity/transaction/toSupportedTransaction.js +1 -6
- package/lib/entity/transaction/transactionReducer.d.ts +0 -17
- package/lib/entity/transaction/transactionReducer.js +2 -47
- package/lib/entity/transaction/transactionSelector.d.ts +0 -2
- package/lib/entity/transaction/transactionSelector.js +0 -5
- package/lib/entity/transaction/transactionState.d.ts +4 -6
- package/lib/entity/vendorExpense/vendorExpenseReducer.js +1 -0
- package/lib/entity/vendorExpense/vendorExpenseSelector.d.ts +2 -2
- package/lib/epic.d.ts +1 -6
- package/lib/epic.js +1 -6
- package/lib/index.d.ts +12 -20
- package/lib/index.js +27 -56
- package/lib/init.d.ts +1 -2
- package/lib/init.js +2 -9
- package/lib/reducer.d.ts +1 -7
- package/lib/reducer.js +0 -6
- package/lib/view/accountList/accountListReducer.js +3 -1
- package/lib/view/accountMappingView/accountMappingReducer.js +1 -0
- package/lib/view/apAgingView/apAgingDetail/apAgingDetailReducer.js +2 -1
- package/lib/view/auditReportView/auditReportViewReducer.d.ts +2 -2
- package/lib/view/auditReportView/auditReportViewState.d.ts +2 -2
- package/lib/view/balanceSheet/balanceSheetReducer.js +6 -1
- package/lib/view/bankAccountView/bankAccountViewReducer.js +1 -0
- package/lib/view/billPayCard/billPayCardSelector.d.ts +2 -2
- package/lib/view/cardBalance/cardBalanceSelector.d.ts +3 -3
- package/lib/view/cashBalance/cashBalanceSelector.d.ts +3 -3
- package/lib/view/cashFlow/cashFlowReducer.js +4 -1
- package/lib/view/cashInCashOut/cashInCashOutSelector.d.ts +2 -2
- package/lib/view/cashPosition/cashPositionReducer.js +1 -0
- package/lib/view/cashPosition/cashPositionSelector.d.ts +2 -2
- package/lib/view/common/reportsHelpers.d.ts +1 -1
- package/lib/view/commonVendorView/transactionVendorView/epics/saveTransactionVendorEpic.js +0 -7
- package/lib/view/commonVendorView/vendorView/epics/fetchAndUpdateVendorRecommendationsEpic.js +3 -1
- package/lib/view/commonVendorView/vendorsTabVendorView/vendorsTabVendorViewReducer.d.ts +2 -2
- package/lib/view/companyTaskManagerView/companyTaskManagerViewReducer.d.ts +2 -2
- package/lib/view/companyView/companyViewReducer.d.ts +1 -1
- package/lib/view/companyView/companyViewReducer.js +10 -1
- package/lib/view/companyView/types/cockpitTypes.d.ts +3 -3
- package/lib/view/companyView/types/companyPassport/companyUsersLocalData.d.ts +1 -1
- package/lib/view/dashboard/dashboardEpic.js +2 -0
- package/lib/view/dashboard/dashboardReducer.d.ts +2 -2
- package/lib/view/expenseAutomationView/epics/common/fetchAllExpenseAutomationTabsEpic.d.ts +1 -2
- package/lib/view/expenseAutomationView/epics/common/fetchAllExpenseAutomationTabsEpic.js +10 -24
- package/lib/view/expenseAutomationView/epics/common/refreshExpenseAutomationCurrentTabEpic.d.ts +1 -2
- package/lib/view/expenseAutomationView/epics/common/refreshExpenseAutomationCurrentTabEpic.js +0 -14
- package/lib/view/expenseAutomationView/epics/transactionCategorization/updateTransactionCategorizationEpic.js +7 -30
- package/lib/view/expenseAutomationView/expenseAutomationViewReducer.d.ts +2 -2
- package/lib/view/expenseAutomationView/expenseAutomationViewReducer.js +5 -1
- package/lib/view/expenseAutomationView/expenseAutomationViewSelector.js +2 -17
- package/lib/view/expenseAutomationView/expenseAutomationViewState.d.ts +2 -2
- package/lib/view/expenseAutomationView/expenseAutomationViewState.js +1 -1
- package/lib/view/expenseAutomationView/helpers/saveTransactionHelper.js +42 -98
- package/lib/view/expenseAutomationView/helpers/transactionCategorizationLocalDataHelper.d.ts +1 -1
- package/lib/view/expenseAutomationView/helpers/transactionCategorizationLocalDataHelper.js +10 -86
- package/lib/view/expenseAutomationView/reducers/jeSchedulesViewReducer.d.ts +11 -11
- package/lib/view/expenseAutomationView/reducers/transactionsViewReducer.d.ts +1 -12
- package/lib/view/expenseAutomationView/reducers/transactionsViewReducer.js +7 -66
- package/lib/view/expenseAutomationView/selectorTypes/expenseAutomationViewSelectorTypes.d.ts +0 -2
- package/lib/view/expenseAutomationView/selectorTypes/expenseAutomationViewSelectorTypes.js +1 -1
- package/lib/view/expenseAutomationView/selectors/jeSchedulesViewSelector.js +2 -5
- package/lib/view/expenseAutomationView/types/fluxAnalysisViewState.d.ts +1 -1
- package/lib/view/expenseAutomationView/types/missingReceiptsViewState.d.ts +1 -1
- package/lib/view/expenseAutomationView/types/transactionsViewState.d.ts +2 -12
- package/lib/view/financeStatement/financeStatementReducer.d.ts +1 -1
- package/lib/view/financeStatement/financeStatementReducer.js +4 -1
- package/lib/view/globalMerchantView/globalMerchantViewReducer.d.ts +4 -4
- package/lib/view/netBurnOrIncome/netBurnOrIncomeReducer.js +10 -3
- package/lib/view/netBurnOrIncomeClassesView/netBurnOrIncomeClassesViewReducer.js +6 -1
- package/lib/view/netBurnOrIncomeStoryCard/netBurnOrIncomeStoryCardReducer.js +1 -0
- package/lib/view/netBurnOrIncomeStoryCard/netBurnOrIncomeStoryCardState.d.ts +1 -1
- package/lib/view/notificationView/notificationViewReducer.d.ts +8 -8
- package/lib/view/notificationView/notificationViewState.d.ts +2 -2
- package/lib/view/onboardingView/cockpitView/onboardingCockpitViewReducer.js +3 -0
- package/lib/view/onboardingView/customerView/onboardingCustomerViewReducer.d.ts +2 -2
- package/lib/view/opEx/opExForTimeFrameEpic.js +1 -1
- package/lib/view/opEx/opExReducer.js +14 -4
- package/lib/view/opExByVendor/opExByVendorReducer.js +3 -1
- package/lib/view/opExByVendor/opExByVendorState.d.ts +1 -1
- package/lib/view/opExClassesView/opExClassesViewReducer.js +6 -1
- package/lib/view/people/fetchPeopleEpic.js +3 -1
- package/lib/view/people/invitePeopleEpic.js +3 -1
- package/lib/view/people/inviteZeniPeopleEpic.js +3 -1
- package/lib/view/people/peopleReducer.js +1 -0
- package/lib/view/people/peopleSaveUpdatesEpic.js +1 -1
- package/lib/view/profitAndLoss/profitAndLossReducer.js +6 -1
- package/lib/view/profitAndLossClassesView/profitAndLossClassesViewReducer.js +6 -1
- package/lib/view/recommendation/recommendationReducer.js +4 -1
- package/lib/view/referralView/referralState.d.ts +1 -1
- package/lib/view/reimbursementCard/reimbursementCardSelector.d.ts +2 -2
- package/lib/view/reportUIOptions/reportUIOptionsReducer.d.ts +8 -8
- package/lib/view/reportUIOptions/updateReportUIOptionThisPeriodEpic.js +3 -1
- package/lib/view/revenue/revenueReducer.js +10 -3
- package/lib/view/revenueClassesView/revenueClassesViewReducer.js +6 -1
- package/lib/view/scheduleView/scheduleAccruedDetailView/LinkBillExpenseView/linkBillExpense.d.ts +1 -1
- package/lib/view/scheduleView/scheduleDetailView/scheduleDetailReducer.d.ts +4 -4
- package/lib/view/scheduleView/scheduleListView/scheduleListTypes.d.ts +2 -2
- package/lib/view/settingsView/settingsViewReducer.js +1 -0
- package/lib/view/settingsView/settingsViewState.d.ts +1 -1
- package/lib/view/spendManagement/billPay/billList/billListReducer.d.ts +1 -1
- package/lib/view/spendManagement/billPay/billList/billListReducer.js +1 -0
- package/lib/view/spendManagement/billPay/billList/billListState.d.ts +2 -2
- package/lib/view/spendManagement/billPay/billPayConfig/billPayConfigState.d.ts +1 -1
- package/lib/view/spendManagement/billPay/billPayConfig/billPayConfigState.js +6 -0
- package/lib/view/spendManagement/billPay/billsBulkActionView/billsBulkActionViewReducer.d.ts +2 -2
- package/lib/view/spendManagement/billPay/billsBulkActionView/epics/validateBillsBulkActionEpic.ts.js +3 -4
- package/lib/view/spendManagement/billPay/editBillView/epics/fetchBillAndInitializeLocalStoreEpic.js +3 -1
- package/lib/view/spendManagement/chargeCards/chargeCardDetail/chargeCardDetail.d.ts +2 -2
- package/lib/view/spendManagement/commonHistoryView/commonHistory.d.ts +1 -1
- package/lib/view/spendManagement/commonSetup/setupViewReducer.d.ts +7 -7
- package/lib/view/spendManagement/commonSetup/setupViewState.d.ts +1 -1
- package/lib/view/spendManagement/plaidAccount/epic/plaidConnection/establishPlaidConnectionEpic.js +3 -11
- package/lib/view/spendManagement/plaidAccount/plaidAccountViewReducer.d.ts +10 -11
- package/lib/view/spendManagement/plaidAccount/plaidAccountViewReducer.js +1 -3
- package/lib/view/spendManagement/plaidAccount/plaidAccountViewState.d.ts +1 -1
- package/lib/view/spendManagement/reimbursement/editRemiView/epics/fetchRecommendationsAndUpdateMerchantRecommendationsEpic.js +6 -2
- package/lib/view/spendManagement/reimbursement/editRemiView/epics/fetchRemiAndInitializeLocalStoreEpic.js +3 -1
- package/lib/view/spendManagement/reimbursement/remiListView/remiListReducer.d.ts +1 -1
- package/lib/view/spendManagement/reimbursement/remiListView/remiListReducer.js +1 -0
- package/lib/view/spendManagement/reimbursement/remiListView/remiListState.d.ts +4 -4
- package/lib/view/spendManagement/reimbursement/remisBulkActionView/remisBulkActionViewReducer.d.ts +2 -2
- package/lib/view/subscriptionView/subscriptionViewReducer.js +1 -0
- package/lib/view/subscriptionView/types/subscriptionTypes.js +1 -0
- package/lib/view/taskManager/taskListView/epics/dragNDropTasksEpic.js +3 -1
- package/lib/view/taskManager/taskListView/taskList.d.ts +3 -3
- package/lib/view/taskManager/taskListView/taskListSelector.d.ts +1 -1
- package/lib/view/tasksCard/fetchTasksCardEpic.js +2 -1
- package/lib/view/tasksCard/tasksCardSelector.d.ts +2 -2
- package/lib/view/tasksCard/tasksCardSelector.js +1 -1
- package/lib/view/topEx/topExSelector.d.ts +3 -3
- package/lib/view/transactionDetail/epics/saveTransactionHelper.js +52 -45
- package/lib/view/transactionDetail/epics/updateTransactionDetailEpic.js +4 -22
- package/lib/view/transactionDetail/transactionDetailLocalDataHelper.js +13 -66
- package/lib/view/transactionDetail/transactionDetailReducer.d.ts +4 -13
- package/lib/view/transactionDetail/transactionDetailReducer.js +21 -51
- package/lib/view/transactionDetail/transactionDetailState.d.ts +2 -3
- package/lib/view/transactionDetail/transactionDetailTypes.d.ts +0 -8
- package/lib/view/transactionList/transactionListByEntitySelector.js +2 -0
- package/lib/view/transactionList/transactionListReducer.js +6 -4
- package/lib/view/trendWithTransactions/trendWithTransactionsReducer.js +1 -0
- package/lib/view/userFinancialAccount/userFinancialAccountReducer.js +3 -1
- package/lib/view/vendorFiling1099/vendorFiling1099List/vendorFiling1099ListState.d.ts +1 -1
- package/lib/view/vendorReviewView/vendorFirstReviewView/vendorFirstReviewViewState.d.ts +1 -1
- package/lib/view/vendorReviewView/vendorGlobalReviewView/vendorGlobalReviewViewState.d.ts +1 -1
- package/lib/zeniAPI.d.ts +0 -1
- package/lib/zeniUrl.d.ts +1 -1
- package/package.json +12 -13
- package/lib/entity/accountRecon/accountReconPayload.d.ts +0 -70
- package/lib/entity/accountRecon/accountReconPayload.js +0 -125
- package/lib/entity/accountRecon/accountReconReducer.d.ts +0 -16
- package/lib/entity/accountRecon/accountReconReducer.js +0 -71
- package/lib/entity/accountRecon/accountReconSelector.d.ts +0 -28
- package/lib/entity/accountRecon/accountReconSelector.js +0 -44
- package/lib/entity/accountRecon/accountReconState.d.ts +0 -70
- package/lib/entity/accountRecon/accountReconState.js +0 -28
- package/lib/entity/transaction/payloadTypes/reconciliationTransactionPayloads.d.ts +0 -35
- package/lib/entity/transaction/payloadTypes/reconciliationTransactionPayloads.js +0 -53
- package/lib/entity/transaction/stateTypes/reconciliationTransaction.d.ts +0 -32
- package/lib/entity/transaction/stateTypes/reconciliationTransaction.js +0 -10
- package/lib/view/expenseAutomationView/epics/accountRecon/fetchReconciliationViewEpic.d.ts +0 -15
- package/lib/view/expenseAutomationView/epics/accountRecon/fetchReconciliationViewEpic.js +0 -118
- package/lib/view/expenseAutomationView/epics/accountRecon/initialiseLocalDataForSelectedAccountIdEpic.d.ts +0 -10
- package/lib/view/expenseAutomationView/epics/accountRecon/initialiseLocalDataForSelectedAccountIdEpic.js +0 -49
- package/lib/view/expenseAutomationView/epics/accountRecon/saveReconciliationDetailEpic.d.ts +0 -14
- package/lib/view/expenseAutomationView/epics/accountRecon/saveReconciliationDetailEpic.js +0 -169
- package/lib/view/expenseAutomationView/epics/accountRecon/saveReconciliationReviewEpic.d.ts +0 -9
- package/lib/view/expenseAutomationView/epics/accountRecon/saveReconciliationReviewEpic.js +0 -154
- package/lib/view/expenseAutomationView/epics/accountRecon/updateReconcileTabLocalDataEpic.d.ts +0 -6
- package/lib/view/expenseAutomationView/epics/accountRecon/updateReconcileTabLocalDataEpic.js +0 -110
- package/lib/view/expenseAutomationView/helpers/reconciliationHelpers.d.ts +0 -7
- package/lib/view/expenseAutomationView/helpers/reconciliationHelpers.js +0 -18
- package/lib/view/expenseAutomationView/payload/reconciliationPayload.d.ts +0 -28
- package/lib/view/expenseAutomationView/payload/reconciliationPayload.js +0 -51
- package/lib/view/expenseAutomationView/reducers/reconciliationViewReducer.d.ts +0 -66
- package/lib/view/expenseAutomationView/reducers/reconciliationViewReducer.js +0 -384
- package/lib/view/expenseAutomationView/selectorTypes/reconciliationViewSelectorTypes.d.ts +0 -51
- package/lib/view/expenseAutomationView/selectorTypes/reconciliationViewSelectorTypes.js +0 -7
- package/lib/view/expenseAutomationView/selectors/reconciliationViewSelector.d.ts +0 -5
- package/lib/view/expenseAutomationView/selectors/reconciliationViewSelector.js +0 -254
- package/lib/view/expenseAutomationView/types/reconciliationViewState.d.ts +0 -103
- package/lib/view/expenseAutomationView/types/reconciliationViewState.js +0 -37
package/lib/init.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ export declare let store: ZeniStore;
|
|
|
11
11
|
* Note: This version SHOULD BE used only in the client side. Not intended to be used
|
|
12
12
|
* when using from server side.
|
|
13
13
|
*/
|
|
14
|
-
export default function initialize(restEndPoints: RESTAPIEndpoints, userId?: string, sessionId?: string, tenantId?: string
|
|
14
|
+
export default function initialize(restEndPoints: RESTAPIEndpoints, userId?: string, sessionId?: string, tenantId?: string): ZeniStore;
|
|
15
15
|
export interface PusherAuthPayload {
|
|
16
16
|
auth: ID;
|
|
17
17
|
}
|
|
@@ -23,7 +23,6 @@ export declare function initializePusher(pusherClientSecret: ID, options: Option
|
|
|
23
23
|
tenantId: ID;
|
|
24
24
|
sessionId: ID;
|
|
25
25
|
}, reInitialize?: boolean): Pusher | undefined;
|
|
26
|
-
export declare function disconnectPusher(): void;
|
|
27
26
|
/**
|
|
28
27
|
* Update the Zeni REST API client client config
|
|
29
28
|
* Note: This version SHOULD BE used only in the client side. Not intended to be used
|
package/lib/init.js
CHANGED
|
@@ -15,7 +15,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
15
15
|
exports.store = exports.zeniAPI = void 0;
|
|
16
16
|
exports.default = initialize;
|
|
17
17
|
exports.initializePusher = initializePusher;
|
|
18
|
-
exports.disconnectPusher = disconnectPusher;
|
|
19
18
|
exports.updateZeniAPIClientConfig = updateZeniAPIClientConfig;
|
|
20
19
|
exports.zeniAPIClientConfig = zeniAPIClientConfig;
|
|
21
20
|
exports.initializeWithNewStore = initializeWithNewStore;
|
|
@@ -30,7 +29,7 @@ let initialized = false;
|
|
|
30
29
|
* Note: This version SHOULD BE used only in the client side. Not intended to be used
|
|
31
30
|
* when using from server side.
|
|
32
31
|
*/
|
|
33
|
-
function initialize(restEndPoints, userId, sessionId, tenantId
|
|
32
|
+
function initialize(restEndPoints, userId, sessionId, tenantId) {
|
|
34
33
|
if (initialized) {
|
|
35
34
|
console.warn(`Already initialized with url ${JSON.stringify(exports.zeniAPI.apiEndPoints)}`);
|
|
36
35
|
return exports.store;
|
|
@@ -39,7 +38,7 @@ function initialize(restEndPoints, userId, sessionId, tenantId, isSandboxEnv) {
|
|
|
39
38
|
console.info(`initializing with ${JSON.stringify(restEndPoints)}`);
|
|
40
39
|
initialize3rdPartyExtensions();
|
|
41
40
|
exports.zeniAPI = new zeniAPI_1.ZeniAPIClient(restEndPoints, userId, sessionId, tenantId);
|
|
42
|
-
exports.store = (0, configureStore_1.default)(exports.zeniAPI,
|
|
41
|
+
exports.store = (0, configureStore_1.default)(exports.zeniAPI, false);
|
|
43
42
|
return exports.store;
|
|
44
43
|
}
|
|
45
44
|
let isPusherInitialized = false;
|
|
@@ -88,12 +87,6 @@ const customHandler = (params, headers, callback) => __awaiter(void 0, void 0, v
|
|
|
88
87
|
callback(error, null);
|
|
89
88
|
});
|
|
90
89
|
});
|
|
91
|
-
function disconnectPusher() {
|
|
92
|
-
if (pusher != null) {
|
|
93
|
-
pusher.disconnect();
|
|
94
|
-
isPusherInitialized = false;
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
90
|
/**
|
|
98
91
|
* Update the Zeni REST API client client config
|
|
99
92
|
* Note: This version SHOULD BE used only in the client side. Not intended to be used
|
package/lib/reducer.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { AccountState } from './entity/account/accountState';
|
|
2
2
|
import { AccountGroupState } from './entity/accountGroup/accountGroupState';
|
|
3
|
-
import { AccountReconState } from './entity/accountRecon/accountReconState';
|
|
4
3
|
import { AddressState } from './entity/address/addressState';
|
|
5
4
|
import { ApprovalRuleState } from './entity/approvalRule/approvalRuleState';
|
|
6
5
|
import { BankAccountState } from './entity/bankAccount/bankAccount';
|
|
@@ -90,7 +89,6 @@ import { ExpenseAutomationViewState } from './view/expenseAutomationView/expense
|
|
|
90
89
|
import { FluxAnalysisViewState as ExpenseAutomationFluxAnalysisViewState } from './view/expenseAutomationView/types/fluxAnalysisViewState';
|
|
91
90
|
import { JESchedulesViewState as ExpenseAutomationJESchedulesViewState } from './view/expenseAutomationView/types/jeSchedulesViewState';
|
|
92
91
|
import { MissingReceiptsViewState as ExpenseAutomationMissingReceiptsViewState } from './view/expenseAutomationView/types/missingReceiptsViewState';
|
|
93
|
-
import { ReconciliationViewState as ExpenseAutomationReconciliationViewState } from './view/expenseAutomationView/types/reconciliationViewState';
|
|
94
92
|
import { TransactionsViewState as ExpenseAutomationTransactionsViewState } from './view/expenseAutomationView/types/transactionsViewState';
|
|
95
93
|
import { FileViewState } from './view/fileView/fileViewState';
|
|
96
94
|
import { FinanceStatementState } from './view/financeStatement/financeStatementState';
|
|
@@ -195,7 +193,6 @@ import { ZeniAccountsPromoCardState } from './view/zeniAccountsPromoCard/zeniAcc
|
|
|
195
193
|
type EntitiesState = {
|
|
196
194
|
accountGroupState: AccountGroupState;
|
|
197
195
|
accountingSummaryState: AccountingSummaryState;
|
|
198
|
-
accountReconState: AccountReconState;
|
|
199
196
|
accountState: AccountState;
|
|
200
197
|
addressState: AddressState;
|
|
201
198
|
approvalRuleState: ApprovalRuleState;
|
|
@@ -227,8 +224,8 @@ type EntitiesState = {
|
|
|
227
224
|
onboardingCustomerState: OnboardingCustomerState;
|
|
228
225
|
paymentAccountState: PaymentAccountState;
|
|
229
226
|
paymentInstrumentState: PaymentInstrumentState;
|
|
230
|
-
recurringBillState: RecurringBillState;
|
|
231
227
|
reimbursementConfigState: ReimbursementConfigState;
|
|
228
|
+
recurringBillState: RecurringBillState;
|
|
232
229
|
reimbursementState: ReimbursementState;
|
|
233
230
|
sectionAccountsViewState: SectionAccountsViewState;
|
|
234
231
|
sectionClassesViewStateV2: SectionClassesViewStateV2;
|
|
@@ -306,7 +303,6 @@ type ViewsState = {
|
|
|
306
303
|
expenseAutomationFluxAnalysisViewState: ExpenseAutomationFluxAnalysisViewState;
|
|
307
304
|
expenseAutomationJESchedulesViewState: ExpenseAutomationJESchedulesViewState;
|
|
308
305
|
expenseAutomationMissingReceiptsViewState: ExpenseAutomationMissingReceiptsViewState;
|
|
309
|
-
expenseAutomationReconciliationViewState: ExpenseAutomationReconciliationViewState;
|
|
310
306
|
expenseAutomationTransactionsViewState: ExpenseAutomationTransactionsViewState;
|
|
311
307
|
expenseAutomationViewState: ExpenseAutomationViewState;
|
|
312
308
|
expressPayState: ExpressPayState;
|
|
@@ -445,7 +441,6 @@ declare const reducers: import("redux").Reducer<import("redux").CombinedState<{
|
|
|
445
441
|
expenseAutomationFluxAnalysisViewState: ExpenseAutomationFluxAnalysisViewState;
|
|
446
442
|
expenseAutomationJESchedulesViewState: ExpenseAutomationJESchedulesViewState;
|
|
447
443
|
expenseAutomationMissingReceiptsViewState: ExpenseAutomationMissingReceiptsViewState;
|
|
448
|
-
expenseAutomationReconciliationViewState: ExpenseAutomationReconciliationViewState;
|
|
449
444
|
expenseAutomationTransactionsViewState: ExpenseAutomationTransactionsViewState;
|
|
450
445
|
expenseAutomationViewState: ExpenseAutomationViewState;
|
|
451
446
|
expressPayState: ExpressPayState;
|
|
@@ -531,7 +526,6 @@ declare const reducers: import("redux").Reducer<import("redux").CombinedState<{
|
|
|
531
526
|
zeniAccStatementListState: ZeniAccStatementListState;
|
|
532
527
|
zeniAccountsPromoCardState: ZeniAccountsPromoCardState;
|
|
533
528
|
accountGroupState: AccountGroupState;
|
|
534
|
-
accountReconState: AccountReconState;
|
|
535
529
|
accountingSummaryState: AccountingSummaryState;
|
|
536
530
|
accountState: AccountState;
|
|
537
531
|
addressState: AddressState;
|
package/lib/reducer.js
CHANGED
|
@@ -40,7 +40,6 @@ exports.initialRootState = void 0;
|
|
|
40
40
|
const redux_1 = require("redux");
|
|
41
41
|
const accountReducer_1 = __importStar(require("./entity/account/accountReducer"));
|
|
42
42
|
const accountGroupReducer_1 = __importStar(require("./entity/accountGroup/accountGroupReducer"));
|
|
43
|
-
const accountReconReducer_1 = __importStar(require("./entity/accountRecon/accountReconReducer"));
|
|
44
43
|
const addressReducer_1 = __importStar(require("./entity/address/addressReducer"));
|
|
45
44
|
const approvalRuleReducer_1 = __importStar(require("./entity/approvalRule/approvalRuleReducer"));
|
|
46
45
|
const bankAccountReducer_1 = __importStar(require("./entity/bankAccount/bankAccountReducer"));
|
|
@@ -130,7 +129,6 @@ const expenseAutomationViewReducer_1 = __importStar(require("./view/expenseAutom
|
|
|
130
129
|
const fluxAnalysisViewReducer_1 = __importStar(require("./view/expenseAutomationView/reducers/fluxAnalysisViewReducer"));
|
|
131
130
|
const jeSchedulesViewReducer_1 = __importStar(require("./view/expenseAutomationView/reducers/jeSchedulesViewReducer"));
|
|
132
131
|
const missingReceiptsViewReducer_1 = __importStar(require("./view/expenseAutomationView/reducers/missingReceiptsViewReducer"));
|
|
133
|
-
const reconciliationViewReducer_1 = __importStar(require("./view/expenseAutomationView/reducers/reconciliationViewReducer"));
|
|
134
132
|
const transactionsViewReducer_1 = __importStar(require("./view/expenseAutomationView/reducers/transactionsViewReducer"));
|
|
135
133
|
const fileViewReducer_1 = __importDefault(require("./view/fileView/fileViewReducer"));
|
|
136
134
|
const fileViewState_1 = require("./view/fileView/fileViewState");
|
|
@@ -237,7 +235,6 @@ const zeniAccountsPromoCardReducer_1 = __importStar(require("./view/zeniAccounts
|
|
|
237
235
|
const initialEntitiesState = {
|
|
238
236
|
accountGroupState: accountGroupReducer_1.initialState,
|
|
239
237
|
accountingSummaryState: accountingSummaryReducer_1.initialState,
|
|
240
|
-
accountReconState: accountReconReducer_1.initialState,
|
|
241
238
|
accountState: accountReducer_1.initialState,
|
|
242
239
|
addressState: addressReducer_1.initialState,
|
|
243
240
|
approvalRuleState: approvalRuleReducer_1.initialState,
|
|
@@ -349,7 +346,6 @@ const initialViewsState = {
|
|
|
349
346
|
expenseAutomationFluxAnalysisViewState: fluxAnalysisViewReducer_1.initialState,
|
|
350
347
|
expenseAutomationJESchedulesViewState: jeSchedulesViewReducer_1.initialState,
|
|
351
348
|
expenseAutomationMissingReceiptsViewState: missingReceiptsViewReducer_1.initialState,
|
|
352
|
-
expenseAutomationReconciliationViewState: reconciliationViewReducer_1.initialState,
|
|
353
349
|
expenseAutomationTransactionsViewState: transactionsViewReducer_1.initialState,
|
|
354
350
|
expenseAutomationViewState: expenseAutomationViewReducer_1.initialState,
|
|
355
351
|
expressPayState: expressPayReducer_1.initialState,
|
|
@@ -438,7 +434,6 @@ exports.initialRootState = Object.assign(Object.assign({}, initialEntitiesState)
|
|
|
438
434
|
// Note: Please maintain strict alphabetical order
|
|
439
435
|
const entityReducers = {
|
|
440
436
|
accountGroupState: accountGroupReducer_1.default,
|
|
441
|
-
accountReconState: accountReconReducer_1.default,
|
|
442
437
|
accountingSummaryState: accountingSummaryReducer_1.default,
|
|
443
438
|
accountState: accountReducer_1.default,
|
|
444
439
|
addressState: addressReducer_1.default,
|
|
@@ -551,7 +546,6 @@ const viewReducers = {
|
|
|
551
546
|
expenseAutomationFluxAnalysisViewState: fluxAnalysisViewReducer_1.default,
|
|
552
547
|
expenseAutomationJESchedulesViewState: jeSchedulesViewReducer_1.default,
|
|
553
548
|
expenseAutomationMissingReceiptsViewState: missingReceiptsViewReducer_1.default,
|
|
554
|
-
expenseAutomationReconciliationViewState: reconciliationViewReducer_1.default,
|
|
555
549
|
expenseAutomationTransactionsViewState: transactionsViewReducer_1.default,
|
|
556
550
|
expenseAutomationViewState: expenseAutomationViewReducer_1.default,
|
|
557
551
|
expressPayState: expressPayReducer_1.default,
|
|
@@ -41,7 +41,9 @@ const accountList = (0, toolkit_1.createSlice)({
|
|
|
41
41
|
initialState: exports.initialState,
|
|
42
42
|
reducers: {
|
|
43
43
|
fetchAccountList: {
|
|
44
|
-
reducer(draft,
|
|
44
|
+
reducer(draft,
|
|
45
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
46
|
+
action) {
|
|
45
47
|
const existingData = draft.byReportId[action.payload.accountListKey];
|
|
46
48
|
draft.byReportId[action.payload.accountListKey] = Object.assign(Object.assign({}, existingData), { fetchState: 'In-Progress', error: undefined });
|
|
47
49
|
},
|
|
@@ -71,6 +71,7 @@ const accountMapping = (0, toolkit_1.createSlice)({
|
|
|
71
71
|
name: 'accountMapping',
|
|
72
72
|
initialState: exports.initialState,
|
|
73
73
|
reducers: {
|
|
74
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
74
75
|
initializeAccountMappingView(draft) {
|
|
75
76
|
draft.data = exports.initialState.data;
|
|
76
77
|
},
|
|
@@ -29,7 +29,8 @@ const apAgingDetail = (0, toolkit_1.createSlice)({
|
|
|
29
29
|
const entityKey = (0, agingReportStateTypes_1.getAgingDetailReportEntityKey)(vendorId, reportDate);
|
|
30
30
|
draft.apAgingDetailByVendorId[entityKey] = Object.assign(Object.assign({}, draft.apAgingDetailByVendorId[entityKey]), { fetchState: 'In-Progress', error: undefined, invoices: [] });
|
|
31
31
|
},
|
|
32
|
-
prepare(vendorId, reportDate, cacheOverride = false
|
|
32
|
+
prepare(vendorId, reportDate, cacheOverride = false // eslint-disable-line @typescript-eslint/no-inferrable-types,
|
|
33
|
+
) {
|
|
33
34
|
return {
|
|
34
35
|
payload: {
|
|
35
36
|
cacheOverride,
|
|
@@ -9,9 +9,9 @@ export declare const fetchAuditRuleGroupView: import("@reduxjs/toolkit").ActionC
|
|
|
9
9
|
auditRuleGroups: AuditRuleGroupPayload[];
|
|
10
10
|
}, "auditReportView/updateAuditRuleGroupViewOnSuccess", never, never>, updateAuditRuleGroupViewOnFailure: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[error: ZeniAPIStatus<Record<string, unknown>>], {
|
|
11
11
|
error: ZeniAPIStatus<Record<string, unknown>>;
|
|
12
|
-
}, "auditReportView/updateAuditRuleGroupViewOnFailure", never, never>, fetchAuditReportGroupView: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[companyId: string, fetchAction: "
|
|
12
|
+
}, "auditReportView/updateAuditRuleGroupViewOnFailure", never, never>, fetchAuditReportGroupView: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[companyId: string, fetchAction: "view" | "generate", reportGroupId: string], {
|
|
13
13
|
companyId: string;
|
|
14
|
-
fetchAction: "
|
|
14
|
+
fetchAction: "view" | "generate";
|
|
15
15
|
reportGroupId: string;
|
|
16
16
|
}, "auditReportView/fetchAuditReportGroupView", never, never>, updateAuditReportGroupViewOnSuccess: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[companyId: string, reportGroupId: string, auditReportGroupPayload: AuditReportGroupPayload], {
|
|
17
17
|
companyId: string;
|
|
@@ -5,12 +5,12 @@ import { ZeniDate } from '../../zeniDayJS';
|
|
|
5
5
|
import { AuditSummary } from '../reviewCompanyView/reviewCompanyViewState';
|
|
6
6
|
export declare const toAuditRuleEntityType: (v: string) => "dashboard" | "reports" | "transactions";
|
|
7
7
|
export type AuditRuleEntityType = ReturnType<typeof toAuditRuleEntityType>;
|
|
8
|
-
declare const toAuditRuleEntityIdType: (v: string) => "cash_balance" | "card_balance" | "expense_automation_card" | "operating_expenses" | "operating_expenses_by_classes" | "revenue" | "revenue_by_classes" | "net_burn_or_income" | "net_burn_or_income_story_card" | "net_burn_or_income_by_classes" | "cash_position" | "top_expenses" | "profit_and_loss" | "profit_and_loss_by_classes" | "balance_sheet" | "cash_flow" | "dashboard" | "finance_statement" | "transaction_list_of_account" | "transaction_list_missing_receipt" | "transaction_list_of_account_by_class" | "transaction_detail" | "cash_in_cash_out" | "insights_dashboard" | "company_details" | "class_list" | "account_list" | "account_list_by_type" | "vendor" | "task_card" | "bill_pay" | "reimbursement" | "bill_pay_card" | "reimbursement_card" | "bill_pay_promo_card" | "zeni_accounts" | "zeni_accounts_promo_card" | "charge_cards" | "reimbursement_promo_card" | "onboarding" | "operating_expenses_by_vendor" | "operating_expenses_by_vendor_summary" | "vendors_tab" | "accounts_payable_aging" | "accounts_receivable_aging" | "vendor_global_review" | "prepaid_expenses" | "fixed_assets" | "notification" | "rewards_card" | "
|
|
8
|
+
declare const toAuditRuleEntityIdType: (v: string) => "billing" | "cash_balance" | "card_balance" | "expense_automation_card" | "operating_expenses" | "operating_expenses_by_classes" | "revenue" | "revenue_by_classes" | "net_burn_or_income" | "net_burn_or_income_story_card" | "net_burn_or_income_by_classes" | "cash_position" | "top_expenses" | "profit_and_loss" | "profit_and_loss_by_classes" | "balance_sheet" | "cash_flow" | "dashboard" | "finance_statement" | "transaction_list_of_account" | "transaction_list_missing_receipt" | "transaction_list_of_account_by_class" | "transaction_detail" | "cash_in_cash_out" | "insights_dashboard" | "company_details" | "class_list" | "account_list" | "account_list_by_type" | "vendor" | "task_card" | "bill_pay" | "reimbursement" | "bill_pay_card" | "reimbursement_card" | "bill_pay_promo_card" | "zeni_accounts" | "zeni_accounts_promo_card" | "charge_cards" | "reimbursement_promo_card" | "onboarding" | "operating_expenses_by_vendor" | "operating_expenses_by_vendor_summary" | "vendors_tab" | "accounts_payable_aging" | "accounts_receivable_aging" | "vendor_global_review" | "prepaid_expenses" | "fixed_assets" | "notification" | "rewards_card" | "flux_analysis_operating_expense" | "uncategorized-expense" | "uncategorized-income";
|
|
9
9
|
export type AuditRuleEntityIdType = ReturnType<typeof toAuditRuleEntityIdType>;
|
|
10
10
|
export declare const toAuditRuleTypeIdType: (v: string) => "accounting" | "business";
|
|
11
11
|
type AuditRuleTypeIdType = ReturnType<typeof toAuditRuleTypeIdType>;
|
|
12
12
|
export declare const AUDIT_REPORT_ACTION_TYPES: readonly ["generate", "view"];
|
|
13
|
-
export declare const toAuditReportActionType: (v: string) => "
|
|
13
|
+
export declare const toAuditReportActionType: (v: string) => "view" | "generate";
|
|
14
14
|
export type AuditReportActionType = ReturnType<typeof toAuditReportActionType>;
|
|
15
15
|
interface AuditRuleGroupBase {
|
|
16
16
|
auditRuleGroupId: ID;
|
|
@@ -36,6 +36,7 @@ const balanceSheet = (0, toolkit_1.createSlice)({
|
|
|
36
36
|
initialState: exports.initialState,
|
|
37
37
|
reducers: {
|
|
38
38
|
fetchBalanceSheet: {
|
|
39
|
+
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
|
|
39
40
|
prepare(cacheOverride = false) {
|
|
40
41
|
return { payload: { cacheOverride } };
|
|
41
42
|
},
|
|
@@ -48,7 +49,11 @@ const balanceSheet = (0, toolkit_1.createSlice)({
|
|
|
48
49
|
},
|
|
49
50
|
},
|
|
50
51
|
fetchBalanceSheetForTimeframe: {
|
|
51
|
-
prepare(timeframe,
|
|
52
|
+
prepare(timeframe,
|
|
53
|
+
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
|
|
54
|
+
fetchFullReport = true,
|
|
55
|
+
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
|
|
56
|
+
cacheOverride = false) {
|
|
52
57
|
return {
|
|
53
58
|
payload: { timeframe, fetchFullReport, cacheOverride },
|
|
54
59
|
};
|
|
@@ -45,6 +45,7 @@ const bankAccountView = (0, toolkit_1.createSlice)({
|
|
|
45
45
|
},
|
|
46
46
|
},
|
|
47
47
|
createInternationalBankAccount: {
|
|
48
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
48
49
|
reducer(draft) {
|
|
49
50
|
draft.createInternationalBankAccountDetails.createStatus.fetchState =
|
|
50
51
|
'In-Progress';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { RootState } from '../../reducer';
|
|
2
2
|
export declare const getBillPayCardReport: (state: RootState) => {
|
|
3
|
-
reportId: "cash_balance" | "card_balance" | "expense_automation_card" | "operating_expenses" | "operating_expenses_by_classes" | "revenue" | "revenue_by_classes" | "net_burn_or_income" | "net_burn_or_income_story_card" | "net_burn_or_income_by_classes" | "cash_position" | "top_expenses" | "profit_and_loss" | "profit_and_loss_by_classes" | "balance_sheet" | "cash_flow" | "dashboard" | "finance_statement" | "transaction_list_of_account" | "transaction_list_missing_receipt" | "transaction_list_of_account_by_class" | "transaction_detail" | "cash_in_cash_out" | "insights_dashboard" | "company_details" | "class_list" | "account_list" | "account_list_by_type" | "vendor" | "task_card" | "bill_pay" | "reimbursement" | "bill_pay_card" | "reimbursement_card" | "bill_pay_promo_card" | "zeni_accounts" | "zeni_accounts_promo_card" | "charge_cards" | "reimbursement_promo_card" | "onboarding" | "operating_expenses_by_vendor" | "operating_expenses_by_vendor_summary" | "vendors_tab" | "accounts_payable_aging" | "accounts_receivable_aging" | "vendor_global_review" | "prepaid_expenses" | "fixed_assets" | "notification" | "rewards_card" | "
|
|
3
|
+
reportId: "billing" | "cash_balance" | "card_balance" | "expense_automation_card" | "operating_expenses" | "operating_expenses_by_classes" | "revenue" | "revenue_by_classes" | "net_burn_or_income" | "net_burn_or_income_story_card" | "net_burn_or_income_by_classes" | "cash_position" | "top_expenses" | "profit_and_loss" | "profit_and_loss_by_classes" | "balance_sheet" | "cash_flow" | "dashboard" | "finance_statement" | "transaction_list_of_account" | "transaction_list_missing_receipt" | "transaction_list_of_account_by_class" | "transaction_detail" | "cash_in_cash_out" | "insights_dashboard" | "company_details" | "class_list" | "account_list" | "account_list_by_type" | "vendor" | "task_card" | "bill_pay" | "reimbursement" | "bill_pay_card" | "reimbursement_card" | "bill_pay_promo_card" | "zeni_accounts" | "zeni_accounts_promo_card" | "charge_cards" | "reimbursement_promo_card" | "onboarding" | "operating_expenses_by_vendor" | "operating_expenses_by_vendor_summary" | "vendors_tab" | "accounts_payable_aging" | "accounts_receivable_aging" | "vendor_global_review" | "prepaid_expenses" | "fixed_assets" | "notification" | "rewards_card" | "flux_analysis_operating_expense";
|
|
4
4
|
reportTitle: string;
|
|
5
5
|
version: string | number | undefined;
|
|
6
6
|
fetchState: import("../..").FetchState;
|
|
7
7
|
billPayAmountByKey: Record<string, import("../..").Amount>;
|
|
8
8
|
error: import("../..").ZeniAPIStatus<Record<string, unknown>> | undefined;
|
|
9
9
|
transactionCount: number;
|
|
10
|
-
firstMonthOfFY:
|
|
10
|
+
firstMonthOfFY: 2 | 1 | 3 | 4 | 8 | 5 | 6 | 10 | 7 | 12 | 11 | 9;
|
|
11
11
|
};
|
|
12
12
|
export type BillPayCardReport = ReturnType<typeof getBillPayCardReport>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { RootState } from '../../reducer';
|
|
2
2
|
export declare const getCardBalance: (state: RootState) => {
|
|
3
|
-
reportId: "cash_balance" | "card_balance" | "expense_automation_card" | "operating_expenses" | "operating_expenses_by_classes" | "revenue" | "revenue_by_classes" | "net_burn_or_income" | "net_burn_or_income_story_card" | "net_burn_or_income_by_classes" | "cash_position" | "top_expenses" | "profit_and_loss" | "profit_and_loss_by_classes" | "balance_sheet" | "cash_flow" | "dashboard" | "finance_statement" | "transaction_list_of_account" | "transaction_list_missing_receipt" | "transaction_list_of_account_by_class" | "transaction_detail" | "cash_in_cash_out" | "insights_dashboard" | "company_details" | "class_list" | "account_list" | "account_list_by_type" | "vendor" | "task_card" | "bill_pay" | "reimbursement" | "bill_pay_card" | "reimbursement_card" | "bill_pay_promo_card" | "zeni_accounts" | "zeni_accounts_promo_card" | "charge_cards" | "reimbursement_promo_card" | "onboarding" | "operating_expenses_by_vendor" | "operating_expenses_by_vendor_summary" | "vendors_tab" | "accounts_payable_aging" | "accounts_receivable_aging" | "vendor_global_review" | "prepaid_expenses" | "fixed_assets" | "notification" | "rewards_card" | "
|
|
3
|
+
reportId: "billing" | "cash_balance" | "card_balance" | "expense_automation_card" | "operating_expenses" | "operating_expenses_by_classes" | "revenue" | "revenue_by_classes" | "net_burn_or_income" | "net_burn_or_income_story_card" | "net_burn_or_income_by_classes" | "cash_position" | "top_expenses" | "profit_and_loss" | "profit_and_loss_by_classes" | "balance_sheet" | "cash_flow" | "dashboard" | "finance_statement" | "transaction_list_of_account" | "transaction_list_missing_receipt" | "transaction_list_of_account_by_class" | "transaction_detail" | "cash_in_cash_out" | "insights_dashboard" | "company_details" | "class_list" | "account_list" | "account_list_by_type" | "vendor" | "task_card" | "bill_pay" | "reimbursement" | "bill_pay_card" | "reimbursement_card" | "bill_pay_promo_card" | "zeni_accounts" | "zeni_accounts_promo_card" | "charge_cards" | "reimbursement_promo_card" | "onboarding" | "operating_expenses_by_vendor" | "operating_expenses_by_vendor_summary" | "vendors_tab" | "accounts_payable_aging" | "accounts_receivable_aging" | "vendor_global_review" | "prepaid_expenses" | "fixed_assets" | "notification" | "rewards_card" | "flux_analysis_operating_expense";
|
|
4
4
|
reportTitle: string;
|
|
5
5
|
version: string | number | undefined;
|
|
6
6
|
status: import("../..").Status | undefined;
|
|
@@ -12,7 +12,7 @@ export declare const getCardBalance: (state: RootState) => {
|
|
|
12
12
|
accountSubType: string | undefined;
|
|
13
13
|
accountDescription: string;
|
|
14
14
|
last4Digits: string | undefined;
|
|
15
|
-
logo: import("url-parse")<
|
|
15
|
+
logo: import("url-parse")<string> | import("url-parse")<Record<string, string | undefined>> | undefined;
|
|
16
16
|
status: import("../..").Status | undefined;
|
|
17
17
|
balance: import("../..").Balance | undefined;
|
|
18
18
|
statementCloseDay: import("../..").StatementCloseDay | undefined;
|
|
@@ -23,7 +23,7 @@ export declare const getCardBalance: (state: RootState) => {
|
|
|
23
23
|
labels: ("prepaid_expenses" | "fixed_assets" | "uncategorized_income" | "uncategorized_expense" | "bank_charges_and_fees" | "travel_transportation" | "accrued_expenses")[];
|
|
24
24
|
}[];
|
|
25
25
|
balance: import("../..").Balance | undefined;
|
|
26
|
-
firstMonthOfFY:
|
|
26
|
+
firstMonthOfFY: 2 | 1 | 3 | 4 | 8 | 5 | 6 | 10 | 7 | 12 | 11 | 9;
|
|
27
27
|
dataAvailable: import("../..").TimeframeTick | undefined;
|
|
28
28
|
error: import("../..").ZeniAPIStatus<Record<string, unknown>> | undefined;
|
|
29
29
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { RootState } from '../../reducer';
|
|
2
2
|
export declare const getCashBalance: (state: RootState) => {
|
|
3
|
-
reportId: "cash_balance" | "card_balance" | "expense_automation_card" | "operating_expenses" | "operating_expenses_by_classes" | "revenue" | "revenue_by_classes" | "net_burn_or_income" | "net_burn_or_income_story_card" | "net_burn_or_income_by_classes" | "cash_position" | "top_expenses" | "profit_and_loss" | "profit_and_loss_by_classes" | "balance_sheet" | "cash_flow" | "dashboard" | "finance_statement" | "transaction_list_of_account" | "transaction_list_missing_receipt" | "transaction_list_of_account_by_class" | "transaction_detail" | "cash_in_cash_out" | "insights_dashboard" | "company_details" | "class_list" | "account_list" | "account_list_by_type" | "vendor" | "task_card" | "bill_pay" | "reimbursement" | "bill_pay_card" | "reimbursement_card" | "bill_pay_promo_card" | "zeni_accounts" | "zeni_accounts_promo_card" | "charge_cards" | "reimbursement_promo_card" | "onboarding" | "operating_expenses_by_vendor" | "operating_expenses_by_vendor_summary" | "vendors_tab" | "accounts_payable_aging" | "accounts_receivable_aging" | "vendor_global_review" | "prepaid_expenses" | "fixed_assets" | "notification" | "rewards_card" | "
|
|
3
|
+
reportId: "billing" | "cash_balance" | "card_balance" | "expense_automation_card" | "operating_expenses" | "operating_expenses_by_classes" | "revenue" | "revenue_by_classes" | "net_burn_or_income" | "net_burn_or_income_story_card" | "net_burn_or_income_by_classes" | "cash_position" | "top_expenses" | "profit_and_loss" | "profit_and_loss_by_classes" | "balance_sheet" | "cash_flow" | "dashboard" | "finance_statement" | "transaction_list_of_account" | "transaction_list_missing_receipt" | "transaction_list_of_account_by_class" | "transaction_detail" | "cash_in_cash_out" | "insights_dashboard" | "company_details" | "class_list" | "account_list" | "account_list_by_type" | "vendor" | "task_card" | "bill_pay" | "reimbursement" | "bill_pay_card" | "reimbursement_card" | "bill_pay_promo_card" | "zeni_accounts" | "zeni_accounts_promo_card" | "charge_cards" | "reimbursement_promo_card" | "onboarding" | "operating_expenses_by_vendor" | "operating_expenses_by_vendor_summary" | "vendors_tab" | "accounts_payable_aging" | "accounts_receivable_aging" | "vendor_global_review" | "prepaid_expenses" | "fixed_assets" | "notification" | "rewards_card" | "flux_analysis_operating_expense";
|
|
4
4
|
reportTitle: string;
|
|
5
5
|
version: string | number | undefined;
|
|
6
6
|
status: import("../..").Status | undefined;
|
|
@@ -12,7 +12,7 @@ export declare const getCashBalance: (state: RootState) => {
|
|
|
12
12
|
accountSubType: string | undefined;
|
|
13
13
|
accountDescription: string;
|
|
14
14
|
last4Digits: string | undefined;
|
|
15
|
-
logo: import("url-parse")<
|
|
15
|
+
logo: import("url-parse")<string> | import("url-parse")<Record<string, string | undefined>> | undefined;
|
|
16
16
|
status: import("../..").Status | undefined;
|
|
17
17
|
balance: import("../..").Balance | undefined;
|
|
18
18
|
statementCloseDay: import("../..").StatementCloseDay | undefined;
|
|
@@ -23,7 +23,7 @@ export declare const getCashBalance: (state: RootState) => {
|
|
|
23
23
|
labels: ("prepaid_expenses" | "fixed_assets" | "uncategorized_income" | "uncategorized_expense" | "bank_charges_and_fees" | "travel_transportation" | "accrued_expenses")[];
|
|
24
24
|
}[];
|
|
25
25
|
balance: import("../..").Balance | undefined;
|
|
26
|
-
firstMonthOfFY:
|
|
26
|
+
firstMonthOfFY: 2 | 1 | 3 | 4 | 8 | 5 | 6 | 10 | 7 | 12 | 11 | 9;
|
|
27
27
|
dataAvailable: import("../..").TimeframeTick | undefined;
|
|
28
28
|
error: import("../..").ZeniAPIStatus<Record<string, unknown>> | undefined;
|
|
29
29
|
};
|
|
@@ -37,6 +37,7 @@ const cashFlow = (0, toolkit_1.createSlice)({
|
|
|
37
37
|
initialState: exports.initialState,
|
|
38
38
|
reducers: {
|
|
39
39
|
fetchCashFlow: {
|
|
40
|
+
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
|
|
40
41
|
prepare(fetchFullReport = false, cacheOverride = true) {
|
|
41
42
|
return { payload: { fetchFullReport, cacheOverride } };
|
|
42
43
|
},
|
|
@@ -46,7 +47,9 @@ const cashFlow = (0, toolkit_1.createSlice)({
|
|
|
46
47
|
},
|
|
47
48
|
},
|
|
48
49
|
fetchCashFlowForTimeframe: {
|
|
49
|
-
prepare(timeframe,
|
|
50
|
+
prepare(timeframe,
|
|
51
|
+
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
|
|
52
|
+
fetchFullReport = true) {
|
|
50
53
|
return {
|
|
51
54
|
payload: { timeframe, fetchFullReport },
|
|
52
55
|
};
|
|
@@ -12,10 +12,10 @@ export declare const getCashInCashOut: (accountState: AccountState, accountGroup
|
|
|
12
12
|
cashOut: Section;
|
|
13
13
|
netCashFlow: import("../../commonStateTypes/coaBalance/coaBalancesFilter").COABalancesSlice;
|
|
14
14
|
allTimeframeTicks: TimeframeTickWithMetaData[];
|
|
15
|
-
firstMonthOfFY:
|
|
15
|
+
firstMonthOfFY: 2 | 1 | 3 | 4 | 8 | 5 | 6 | 10 | 7 | 12 | 11 | 9;
|
|
16
16
|
dataAvailable: import("../../commonStateTypes/timeframeTick").TimeframeTick | undefined;
|
|
17
17
|
availableNumberOfPeriods: number | undefined;
|
|
18
|
-
reportId: "cash_balance" | "card_balance" | "expense_automation_card" | "operating_expenses" | "operating_expenses_by_classes" | "revenue" | "revenue_by_classes" | "net_burn_or_income" | "net_burn_or_income_story_card" | "net_burn_or_income_by_classes" | "cash_position" | "top_expenses" | "profit_and_loss" | "profit_and_loss_by_classes" | "balance_sheet" | "cash_flow" | "dashboard" | "finance_statement" | "transaction_list_of_account" | "transaction_list_missing_receipt" | "transaction_list_of_account_by_class" | "transaction_detail" | "cash_in_cash_out" | "insights_dashboard" | "company_details" | "class_list" | "account_list" | "account_list_by_type" | "vendor" | "task_card" | "bill_pay" | "reimbursement" | "bill_pay_card" | "reimbursement_card" | "bill_pay_promo_card" | "zeni_accounts" | "zeni_accounts_promo_card" | "charge_cards" | "reimbursement_promo_card" | "onboarding" | "operating_expenses_by_vendor" | "operating_expenses_by_vendor_summary" | "vendors_tab" | "accounts_payable_aging" | "accounts_receivable_aging" | "vendor_global_review" | "prepaid_expenses" | "fixed_assets" | "notification" | "rewards_card" | "
|
|
18
|
+
reportId: "billing" | "cash_balance" | "card_balance" | "expense_automation_card" | "operating_expenses" | "operating_expenses_by_classes" | "revenue" | "revenue_by_classes" | "net_burn_or_income" | "net_burn_or_income_story_card" | "net_burn_or_income_by_classes" | "cash_position" | "top_expenses" | "profit_and_loss" | "profit_and_loss_by_classes" | "balance_sheet" | "cash_flow" | "dashboard" | "finance_statement" | "transaction_list_of_account" | "transaction_list_missing_receipt" | "transaction_list_of_account_by_class" | "transaction_detail" | "cash_in_cash_out" | "insights_dashboard" | "company_details" | "class_list" | "account_list" | "account_list_by_type" | "vendor" | "task_card" | "bill_pay" | "reimbursement" | "bill_pay_card" | "reimbursement_card" | "bill_pay_promo_card" | "zeni_accounts" | "zeni_accounts_promo_card" | "charge_cards" | "reimbursement_promo_card" | "onboarding" | "operating_expenses_by_vendor" | "operating_expenses_by_vendor_summary" | "vendors_tab" | "accounts_payable_aging" | "accounts_receivable_aging" | "vendor_global_review" | "prepaid_expenses" | "fixed_assets" | "notification" | "rewards_card" | "flux_analysis_operating_expense";
|
|
19
19
|
reportTitle: string;
|
|
20
20
|
version: string | number | undefined;
|
|
21
21
|
status: import("../..").Status | undefined;
|
|
@@ -48,6 +48,7 @@ const cashPosition = (0, toolkit_1.createSlice)({
|
|
|
48
48
|
initialState: exports.initialState,
|
|
49
49
|
reducers: {
|
|
50
50
|
fetchCashPosition: {
|
|
51
|
+
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
|
|
51
52
|
prepare(fetchFullReport = false) {
|
|
52
53
|
return { payload: { fetchFullReport } };
|
|
53
54
|
},
|
|
@@ -9,10 +9,10 @@ export declare const getCashPosition: (accountState: AccountState, cashPositionS
|
|
|
9
9
|
filter: COABalancesFilter;
|
|
10
10
|
cashPosition: SectionWithAccountOnly;
|
|
11
11
|
allTimeframeTicks: TimeframeTickWithMetaData[];
|
|
12
|
-
firstMonthOfFY:
|
|
12
|
+
firstMonthOfFY: 2 | 1 | 3 | 4 | 8 | 5 | 6 | 10 | 7 | 12 | 11 | 9;
|
|
13
13
|
dataAvailable: import("../../commonStateTypes/timeframeTick").TimeframeTick | undefined;
|
|
14
14
|
availableNumberOfPeriods: number | undefined;
|
|
15
|
-
reportId: "cash_balance" | "card_balance" | "expense_automation_card" | "operating_expenses" | "operating_expenses_by_classes" | "revenue" | "revenue_by_classes" | "net_burn_or_income" | "net_burn_or_income_story_card" | "net_burn_or_income_by_classes" | "cash_position" | "top_expenses" | "profit_and_loss" | "profit_and_loss_by_classes" | "balance_sheet" | "cash_flow" | "dashboard" | "finance_statement" | "transaction_list_of_account" | "transaction_list_missing_receipt" | "transaction_list_of_account_by_class" | "transaction_detail" | "cash_in_cash_out" | "insights_dashboard" | "company_details" | "class_list" | "account_list" | "account_list_by_type" | "vendor" | "task_card" | "bill_pay" | "reimbursement" | "bill_pay_card" | "reimbursement_card" | "bill_pay_promo_card" | "zeni_accounts" | "zeni_accounts_promo_card" | "charge_cards" | "reimbursement_promo_card" | "onboarding" | "operating_expenses_by_vendor" | "operating_expenses_by_vendor_summary" | "vendors_tab" | "accounts_payable_aging" | "accounts_receivable_aging" | "vendor_global_review" | "prepaid_expenses" | "fixed_assets" | "notification" | "rewards_card" | "
|
|
15
|
+
reportId: "billing" | "cash_balance" | "card_balance" | "expense_automation_card" | "operating_expenses" | "operating_expenses_by_classes" | "revenue" | "revenue_by_classes" | "net_burn_or_income" | "net_burn_or_income_story_card" | "net_burn_or_income_by_classes" | "cash_position" | "top_expenses" | "profit_and_loss" | "profit_and_loss_by_classes" | "balance_sheet" | "cash_flow" | "dashboard" | "finance_statement" | "transaction_list_of_account" | "transaction_list_missing_receipt" | "transaction_list_of_account_by_class" | "transaction_detail" | "cash_in_cash_out" | "insights_dashboard" | "company_details" | "class_list" | "account_list" | "account_list_by_type" | "vendor" | "task_card" | "bill_pay" | "reimbursement" | "bill_pay_card" | "reimbursement_card" | "bill_pay_promo_card" | "zeni_accounts" | "zeni_accounts_promo_card" | "charge_cards" | "reimbursement_promo_card" | "onboarding" | "operating_expenses_by_vendor" | "operating_expenses_by_vendor_summary" | "vendors_tab" | "accounts_payable_aging" | "accounts_receivable_aging" | "vendor_global_review" | "prepaid_expenses" | "fixed_assets" | "notification" | "rewards_card" | "flux_analysis_operating_expense";
|
|
16
16
|
reportTitle: string;
|
|
17
17
|
version: string | number | undefined;
|
|
18
18
|
status: import("../..").Status | undefined;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { COABalanceGroupedByPeriod } from '../../commonStateTypes/coaBalance/coaBalance';
|
|
2
|
-
export declare const getTimeSeriesGroup: (timeframe: "week" | "month" | "quarter" | "year") => "
|
|
2
|
+
export declare const getTimeSeriesGroup: (timeframe: "week" | "month" | "quarter" | "year") => "years" | "quarters" | "months" | "weeks";
|
|
3
3
|
export declare const isCOABalanceGroupedByPeriodEmptyForTimeframe: (coaBalanceGrouped: COABalanceGroupedByPeriod, timeframe: "week" | "month" | "quarter" | "year") => boolean;
|
|
@@ -63,13 +63,6 @@ const saveTransactionVendorEpic = (actions$, state$, zeniAPI) => actions$.pipe((
|
|
|
63
63
|
name: response.data.vendors[0].vendor_name,
|
|
64
64
|
id: response.data.vendors[0].vendor_id,
|
|
65
65
|
},
|
|
66
|
-
selectedEntity: {
|
|
67
|
-
name: response.data.vendors[0].vendor_name,
|
|
68
|
-
id: response.data.vendors[0].vendor_id,
|
|
69
|
-
type: 'vendor',
|
|
70
|
-
zeniId: response.data.vendors[0].vendor_id,
|
|
71
|
-
qboId: response.data.vendors[0].qbo_id,
|
|
72
|
-
},
|
|
73
66
|
}));
|
|
74
67
|
}
|
|
75
68
|
}
|
package/lib/view/commonVendorView/vendorView/epics/fetchAndUpdateVendorRecommendationsEpic.js
CHANGED
|
@@ -45,7 +45,9 @@ const fetchAndUpdateVendorRecommendationsEpic = (actions$, state$) => actions$.p
|
|
|
45
45
|
}));
|
|
46
46
|
exports.fetchAndUpdateVendorRecommendationsEpic = fetchAndUpdateVendorRecommendationsEpic;
|
|
47
47
|
// just updates the local state with new data
|
|
48
|
-
const waitForVendorRecommendationFetchThenUpdateRecommendationInBillEpic = (actions$,
|
|
48
|
+
const waitForVendorRecommendationFetchThenUpdateRecommendationInBillEpic = (actions$,
|
|
49
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
50
|
+
state$) => actions$.pipe((0, operators_1.filter)(vendorViewReducer_1.waitForVendorRecommendationAndUpdatedRecommendationByLineId.match
|
|
49
51
|
// Wait For vendor recommendation and updated recommendation by line id
|
|
50
52
|
), (0, operators_1.switchMap)((action) => {
|
|
51
53
|
const { vendorName } = action.payload;
|
|
@@ -36,8 +36,8 @@ export declare const fetchVendorsTabVendorDetails: import("@reduxjs/toolkit").Ac
|
|
|
36
36
|
}, "vendorsTabVendorView/fetchVendorsTabVendorDetailPageView", never, never>, updateVendorsTabVendorAllTransactionsTabData: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
37
37
|
timePeriod: TimePeriod;
|
|
38
38
|
numberOfQuartersFetched: number;
|
|
39
|
-
}, "vendorsTabVendorView/updateVendorsTabVendorAllTransactionsTabData">, resetSelectedTabType: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"vendorsTabVendorView/resetSelectedTabType">, updateSelectedTabType: import("@reduxjs/toolkit").ActionCreatorWithPayload<"spend_transactions" | "all_transactions", "vendorsTabVendorView/updateSelectedTabType">, updateVendorSpendTrendFilterTabValue: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[vendorSpendTrendfilterTabValue: "last_month" | "
|
|
40
|
-
vendorSpendTrendfilterTabValue: "last_month" | "
|
|
39
|
+
}, "vendorsTabVendorView/updateVendorsTabVendorAllTransactionsTabData">, resetSelectedTabType: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"vendorsTabVendorView/resetSelectedTabType">, updateSelectedTabType: import("@reduxjs/toolkit").ActionCreatorWithPayload<"spend_transactions" | "all_transactions", "vendorsTabVendorView/updateSelectedTabType">, updateVendorSpendTrendFilterTabValue: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[vendorSpendTrendfilterTabValue: "last_month" | "last_30_days" | "variance" | "last_90_days" | "YTD_spend" | "last_3_months" | "last_6_months" | "last_12_months" | "last_year"], {
|
|
40
|
+
vendorSpendTrendfilterTabValue: "last_month" | "last_30_days" | "variance" | "last_90_days" | "YTD_spend" | "last_3_months" | "last_6_months" | "last_12_months" | "last_year";
|
|
41
41
|
}, "vendorsTabVendorView/updateVendorSpendTrendFilterTabValue", never, never>, resetVendorsTabVendorAllTransactionsTabData: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"vendorsTabVendorView/resetVendorsTabVendorAllTransactionsTabData">, updateContactsInVendorTabDetailLocalData: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
42
42
|
vendorId: ID;
|
|
43
43
|
localData?: Partial<VendorsTabVendorDetailLocalData>;
|
|
@@ -4,10 +4,10 @@ import { CompanyTaskManagerViewPayload } from './companyTaskManagerViewPayload';
|
|
|
4
4
|
import { CompanyTaskManagerViewState, CompanyTaskManagerViewUIState } from './companyTaskManagerViewState';
|
|
5
5
|
export declare const initialUIState: CompanyTaskManagerViewUIState;
|
|
6
6
|
export declare const initialState: CompanyTaskManagerViewState;
|
|
7
|
-
export declare const fetchCompanyTaskManagerView: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[pageToken: PageToken, sortKey: "
|
|
7
|
+
export declare const fetchCompanyTaskManagerView: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[pageToken: PageToken, sortKey: "name" | "priority" | "status" | "dueDate" | "tags" | "createdBy" | "taskName" | "assignee", sortOrder: "ascending" | "descending", keepExistingListItems?: any, searchString?: string | undefined], {
|
|
8
8
|
pageToken: PageToken;
|
|
9
9
|
searchString: string | undefined;
|
|
10
|
-
sortKey: "
|
|
10
|
+
sortKey: "name" | "priority" | "status" | "dueDate" | "tags" | "createdBy" | "taskName" | "assignee";
|
|
11
11
|
sortOrder: "ascending" | "descending";
|
|
12
12
|
keepExistingListItems: any;
|
|
13
13
|
}, "companyTaskManagerView/fetchCompanyTaskManagerView", never, never>, updateCompanyTaskManagerViewOnSuccess: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
@@ -55,7 +55,7 @@ export declare const fetchCompanyPassportView: import("@reduxjs/toolkit").Action
|
|
|
55
55
|
fetchFullResponse: boolean;
|
|
56
56
|
}, "companyView/fetchCompanyPortfolioView", never, never>, fetchZeniUsers: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"companyView/fetchZeniUsers">, updateZeniUsersOnSuccess: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[userIds: string[]], {
|
|
57
57
|
userIds: string[];
|
|
58
|
-
}, "companyView/updateZeniUsersOnSuccess", never, never>, updateZeniUsersOnFailure: import("@reduxjs/toolkit").ActionCreatorWithPayload<ZeniAPIStatus<Record<string, unknown>>, "companyView/updateZeniUsersOnFailure">, clearCompanyView: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"companyView/clearCompanyView">, updateCompanyPortfolioUIState: import("@reduxjs/toolkit").ActionCreatorWithPayload<Partial<PortfolioUIState>, "companyView/updateCompanyPortfolioUIState">, updateCompanyManagementUIState: import("@reduxjs/toolkit").ActionCreatorWithPayload<Partial<ManagementUIState>, "companyView/updateCompanyManagementUIState">, companyPassportSaveDataInLocalStore: import("@reduxjs/toolkit").ActionCreatorWithPayload<Partial<CompanyPassportLocalData>, "companyView/companyPassportSaveDataInLocalStore">, deleteCompanyOfficerInLocalStore: import("@reduxjs/toolkit").ActionCreatorWithPayload<"
|
|
58
|
+
}, "companyView/updateZeniUsersOnSuccess", never, never>, updateZeniUsersOnFailure: import("@reduxjs/toolkit").ActionCreatorWithPayload<ZeniAPIStatus<Record<string, unknown>>, "companyView/updateZeniUsersOnFailure">, clearCompanyView: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"companyView/clearCompanyView">, updateCompanyPortfolioUIState: import("@reduxjs/toolkit").ActionCreatorWithPayload<Partial<PortfolioUIState>, "companyView/updateCompanyPortfolioUIState">, updateCompanyManagementUIState: import("@reduxjs/toolkit").ActionCreatorWithPayload<Partial<ManagementUIState>, "companyView/updateCompanyManagementUIState">, companyPassportSaveDataInLocalStore: import("@reduxjs/toolkit").ActionCreatorWithPayload<Partial<CompanyPassportLocalData>, "companyView/companyPassportSaveDataInLocalStore">, deleteCompanyOfficerInLocalStore: import("@reduxjs/toolkit").ActionCreatorWithPayload<"Officer_2" | "Officer_1" | "Officer_3" | "Officer_4" | "Officer_8" | "Officer_5" | "Officer_6" | "Officer_10" | "Officer_7" | "Officer_9", "companyView/deleteCompanyOfficerInLocalStore">, companyPassportClearDataInLocalStore: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"companyView/companyPassportClearDataInLocalStore">, companyPassportUpdateCompanyDetails: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[companyId: string, companyDetails: CompanyDetailsLocalData], {
|
|
59
59
|
companyId: string;
|
|
60
60
|
companyDetails: CompanyDetailsLocalData;
|
|
61
61
|
}, "companyView/companyPassportUpdateCompanyDetails", never, never>, companyPassportUpdateCompanyDetailsSuccess: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[companyId: string], {
|
|
@@ -49,6 +49,7 @@ const companyView = (0, toolkit_1.createSlice)({
|
|
|
49
49
|
reducer() {
|
|
50
50
|
// Do nothing.
|
|
51
51
|
},
|
|
52
|
+
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
|
|
52
53
|
prepare(cacheOverride = false) {
|
|
53
54
|
return { payload: { cacheOverride } };
|
|
54
55
|
},
|
|
@@ -57,6 +58,7 @@ const companyView = (0, toolkit_1.createSlice)({
|
|
|
57
58
|
reducer() {
|
|
58
59
|
// Do nothing.
|
|
59
60
|
},
|
|
61
|
+
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
|
|
60
62
|
prepare(cacheOverride = false) {
|
|
61
63
|
return { payload: { cacheOverride } };
|
|
62
64
|
},
|
|
@@ -65,7 +67,9 @@ const companyView = (0, toolkit_1.createSlice)({
|
|
|
65
67
|
reducer() {
|
|
66
68
|
// Do nothing.
|
|
67
69
|
},
|
|
68
|
-
prepare(
|
|
70
|
+
prepare(
|
|
71
|
+
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
|
|
72
|
+
cacheOverride = false, fetchFullResponse, companyId) {
|
|
69
73
|
return { payload: { cacheOverride, fetchFullResponse, companyId } };
|
|
70
74
|
},
|
|
71
75
|
},
|
|
@@ -73,6 +77,7 @@ const companyView = (0, toolkit_1.createSlice)({
|
|
|
73
77
|
reducer() {
|
|
74
78
|
// Do nothing.
|
|
75
79
|
},
|
|
80
|
+
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
|
|
76
81
|
prepare(cacheOverride = false, fetchFullResponse) {
|
|
77
82
|
return { payload: { cacheOverride, fetchFullResponse } };
|
|
78
83
|
},
|
|
@@ -81,11 +86,13 @@ const companyView = (0, toolkit_1.createSlice)({
|
|
|
81
86
|
reducer() {
|
|
82
87
|
// Do nothing.
|
|
83
88
|
},
|
|
89
|
+
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
|
|
84
90
|
prepare(cacheOverride = false, fetchFullResponse) {
|
|
85
91
|
return { payload: { cacheOverride, fetchFullResponse } };
|
|
86
92
|
},
|
|
87
93
|
},
|
|
88
94
|
fetchCompanyManagementView: {
|
|
95
|
+
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
|
|
89
96
|
prepare(fetchFullResponse = false, companyParentId) {
|
|
90
97
|
return { payload: { fetchFullResponse, companyParentId } };
|
|
91
98
|
},
|
|
@@ -98,6 +105,7 @@ const companyView = (0, toolkit_1.createSlice)({
|
|
|
98
105
|
},
|
|
99
106
|
},
|
|
100
107
|
fetchParentSubsidiaryManagementView: {
|
|
108
|
+
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
|
|
101
109
|
prepare(fetchFullResponse = false, companyParentId) {
|
|
102
110
|
return { payload: { fetchFullResponse, companyParentId } };
|
|
103
111
|
},
|
|
@@ -461,6 +469,7 @@ const companyView = (0, toolkit_1.createSlice)({
|
|
|
461
469
|
},
|
|
462
470
|
},
|
|
463
471
|
fetchCompanyPortfolioView: {
|
|
472
|
+
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
|
|
464
473
|
prepare(fetchFullResponse = false) {
|
|
465
474
|
return { payload: { fetchFullResponse } };
|
|
466
475
|
},
|
|
@@ -4,10 +4,10 @@ import { SubscriptionViewSortKey } from '../../subscriptionView/types/subscripti
|
|
|
4
4
|
import { FilterCategoryValueType } from '../helpers/cockpitHelpers';
|
|
5
5
|
import { CockpitDownloadTabsID, CockpitTabsFileType } from './cockpitTabsID';
|
|
6
6
|
export declare const toPortfolioSortKeyType: (v: string) => "expenses" | "runway" | "companyName" | "cashBalance" | "revenues" | "netIncome";
|
|
7
|
-
export declare const toManagementSortKeyType: (v: string) => "status" | "bookCloseDate" | "taxStatus" | "controller" | "preparer" | "reviewer" | "annualRecurringRevenue" | "monthlyRecurringRevenue" | "companyName" | "
|
|
7
|
+
export declare const toManagementSortKeyType: (v: string) => "status" | "group" | "bookCloseDate" | "taxStatus" | "controller" | "preparer" | "reviewer" | "annualRecurringRevenue" | "monthlyRecurringRevenue" | "companyName" | "task" | "notes" | "plans" | "customerSuccessManager" | "apAnalyst" | "reportSent" | "taxLead" | "satisfaction";
|
|
8
8
|
export declare const toOnboardingSortKeyType: (v: string) => "companyName" | "identityVerified" | "businessVerified" | "bankAccountLinked" | "qboLinked" | "groupCreated" | "customerCreated" | "notes" | "enroller" | "invite" | "latestCreated";
|
|
9
|
-
export declare const toHealthSortKeyType: (v: string) => "
|
|
10
|
-
export declare const toTaskManagerSortKeyType: (v: string) => "
|
|
9
|
+
export declare const toHealthSortKeyType: (v: string) => "group" | "runway" | "controller" | "monthlyRecurringRevenue" | "companyName" | "companyEngagementMetricsUpdatedAt" | "netPromoterScore" | "customerSatisfactionScore" | "externalProductServiceExposure" | "customerSuccessManager" | "lastReportSent" | "issues" | "productVerticals" | "churnProbability" | "subscriptionDate" | "renewalDate" | "dashboardLastSeen" | "lastEngagement";
|
|
10
|
+
export declare const toTaskManagerSortKeyType: (v: string) => "name" | "priority" | "status" | "dueDate" | "tags" | "createdBy" | "taskName" | "assignee";
|
|
11
11
|
export type PortfolioViewSortKey = ReturnType<typeof toPortfolioSortKeyType>;
|
|
12
12
|
export type ManagementViewSortKey = ReturnType<typeof toManagementSortKeyType>;
|
|
13
13
|
export type OnboardingViewSortKey = ReturnType<typeof toOnboardingSortKeyType>;
|
|
@@ -7,7 +7,7 @@ export interface PrimaryContactLocalData {
|
|
|
7
7
|
email: string;
|
|
8
8
|
}
|
|
9
9
|
export declare const ALL_OFFICERS: readonly [1, 2, 3, 4, 5, 6, 7, 8, 9, 10];
|
|
10
|
-
declare const toOfficerType: (n: number) => 1 | 3 |
|
|
10
|
+
declare const toOfficerType: (n: number) => 2 | 1 | 3 | 4 | 8 | 5 | 6 | 10 | 7 | 9;
|
|
11
11
|
export type OfficerType = ReturnType<typeof toOfficerType>;
|
|
12
12
|
export type CompanyOfficerType = `Officer_${OfficerType}`;
|
|
13
13
|
export declare const AllCompanyPassportAddressTypes: AddressType[];
|