@zeniai/client-epic-state 4.10.7 → 4.10.8
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/commonPayloadTypes/agingReportPayloadTypes.d.ts +1 -0
- package/lib/commonPayloadTypes/subAccountView/subAccountPayloadHelper.js +2 -2
- package/lib/commonStateTypes/accountView/{getNestedAccountIDHeirarchyForReport.d.ts → getNestedAccountIDHierarchyForReport.d.ts} +2 -2
- package/lib/commonStateTypes/accountView/nestedAccountID.d.ts +2 -2
- package/lib/commonStateTypes/agingBalance/agingBalance.d.ts +4 -0
- package/lib/commonStateTypes/agingBalance/agingBalance.js +4 -1
- package/lib/commonStateTypes/classesView/getNestedClassIDHierarchyForReport.d.ts +2 -2
- package/lib/commonStateTypes/classesView/nestedClassID.d.ts +2 -2
- package/lib/commonStateTypes/customerView/getNestedCustomerHierarchy.d.ts +9 -0
- package/lib/commonStateTypes/customerView/getNestedCustomerHierarchy.js +46 -0
- package/lib/commonStateTypes/customerView/nestedCustomerID.d.ts +42 -0
- package/lib/commonStateTypes/customerView/nestedCustomerID.js +9 -0
- package/lib/commonStateTypes/selectorTypes/classesViewSelectorReport.d.ts +2 -2
- package/lib/commonStateTypes/viewAndReport/agingReportStateTypes.d.ts +4 -7
- package/lib/entity/account/subAccountSelector.d.ts +1 -1
- package/lib/entity/account/subAccountSelector.js +7 -7
- package/lib/entity/accountGroup/accountGroupV2Selector.js +3 -3
- package/lib/entity/class/classSelectorV2.d.ts +1 -1
- package/lib/entity/class/classSelectorV2.js +10 -10
- package/lib/entity/customer/customerPayload.d.ts +1 -1
- package/lib/entity/customer/customerPayload.js +1 -1
- package/lib/entity/customer/customerReducer.d.ts +1 -1
- package/lib/entity/customer/customerSelector.d.ts +1 -1
- package/lib/entity/customerIncome/customerIncomeTrend.d.ts +1 -1
- package/lib/entity/customerIncome/customerIncomeTrendReducer.d.ts +1 -1
- package/lib/entity/sectionAccountsView/getNestedAccountIDHierarchyForSection.js +9 -9
- package/lib/entity/sectionAccountsView/sectionAccountsViewEpic.js +2 -2
- package/lib/entity/sectionAccountsView/sectionAccountsViewSelector.js +3 -3
- package/lib/entity/sectionClassesViewV2/sectionClassesViewEpic.js +2 -2
- package/lib/entity/sectionClassesViewV2/sectionClassesViewSelector.js +7 -7
- package/lib/entity/sectionClassesViewV2/selectorHelpers/getNestedClassIDHierarchyForSection.js +7 -7
- package/lib/entity/transaction/stateTypes/customerTransaction.d.ts +1 -1
- package/lib/entity/transaction/stateTypes/transactionLine.d.ts +1 -1
- package/lib/index.d.ts +14 -12
- package/lib/index.js +7 -6
- package/lib/reducer.d.ts +1 -1
- package/lib/view/accountList/accountListReducer.js +2 -2
- package/lib/view/accountList/accountListSelector.d.ts +3 -3
- package/lib/view/accountList/accountListSelector.js +3 -3
- package/lib/view/accountList/accountListState.d.ts +2 -2
- package/lib/view/accountMappingView/accountMappingReducer.js +19 -19
- package/lib/view/accountMappingView/accountMappingState.d.ts +8 -8
- package/lib/view/accountMappingView/accountMappingViewSelector.d.ts +8 -8
- package/lib/view/accountMappingView/accountMappingViewSelector.js +7 -7
- package/lib/view/apAgingView/apAgingReport/apAgingReducer.d.ts +7 -5
- package/lib/view/apAgingView/apAgingReport/apAgingReducer.js +34 -15
- package/lib/view/apAgingView/apAgingReport/apAgingSelector.d.ts +1 -1
- package/lib/view/apAgingView/apAgingReport/apAgingSelector.js +29 -16
- package/lib/view/apAgingView/apAgingReport/apAgingState.d.ts +6 -3
- package/lib/view/apAgingView/apAgingReport/fetchApAgingEpic.js +11 -7
- package/lib/view/arAgingView/arAgingDetail/arAgingDetailSelector.d.ts +1 -1
- package/lib/view/arAgingView/arAgingReport/arAgingPayload.js +8 -1
- package/lib/view/arAgingView/arAgingReport/arAgingReducer.d.ts +13 -7
- package/lib/view/arAgingView/arAgingReport/arAgingReducer.js +49 -15
- package/lib/view/arAgingView/arAgingReport/arAgingSelector.d.ts +12 -6
- package/lib/view/arAgingView/arAgingReport/arAgingSelector.js +68 -35
- package/lib/view/arAgingView/arAgingReport/arAgingState.d.ts +12 -4
- package/lib/view/arAgingView/arAgingReport/fetchArAgingEpic.js +10 -7
- package/lib/view/classList/classListSelector.d.ts +3 -3
- package/lib/view/classList/classListSelector.js +3 -3
- package/lib/view/classList/classListState.d.ts +2 -2
- package/lib/view/commonVendorView/transactionVendorView/transactionVendorViewSelector.d.ts +4 -4
- package/lib/view/commonVendorView/transactionVendorView/transactionVendorViewSelector.js +4 -4
- package/lib/view/commonVendorView/vendorView/vendorViewSelector.d.ts +4 -4
- package/lib/view/commonVendorView/vendorView/vendorViewSelector.js +4 -4
- package/lib/view/commonVendorView/vendorsTabVendorView/vendorsTabVendorViewSelector.d.ts +4 -4
- package/lib/view/commonVendorView/vendorsTabVendorView/vendorsTabVendorViewSelector.js +4 -4
- package/lib/view/dashboard/dashboardEpic.js +6 -4
- package/lib/view/netBurnOrIncomeClassesView/netBurnOrIncomeClassesViewReducer.js +3 -3
- package/lib/view/netBurnOrIncomeClassesView/netBurnOrIncomeClassesViewSelector.js +3 -3
- package/lib/view/netBurnOrIncomeClassesView/netBurnOrIncomeClassesViewState.d.ts +2 -2
- package/lib/view/opExClassesView/opExClassesViewReducer.js +3 -3
- package/lib/view/opExClassesView/opExClassesViewSelector.js +3 -3
- package/lib/view/opExClassesView/opExClassesViewState.d.ts +2 -2
- package/lib/view/profitAndLossClassesView/profitAndLossClassesViewReducer.js +3 -3
- package/lib/view/profitAndLossClassesView/profitAndLossClassesViewSelector.js +2 -2
- package/lib/view/profitAndLossClassesView/profitAndLossClassesViewState.d.ts +2 -2
- package/lib/view/revenueClassesView/revenueClassesViewReducer.js +3 -3
- package/lib/view/revenueClassesView/revenueClassesViewSelector.js +3 -3
- package/lib/view/revenueClassesView/revenueClassesViewState.d.ts +2 -2
- package/lib/view/scheduleView/scheduleDetailView/scheduleDetailSelector.d.ts +5 -5
- package/lib/view/scheduleView/scheduleDetailView/scheduleDetailSelector.js +5 -5
- package/lib/view/scheduleView/scheduleListView/scheduleListHelper.d.ts +2 -2
- package/lib/view/scheduleView/scheduleListView/scheduleListSelector.d.ts +2 -2
- package/lib/view/scheduleView/scheduleListView/scheduleListSelector.js +1 -1
- package/lib/view/spendManagement/billPay/editBillView/editBillViewSelector.d.ts +4 -4
- package/lib/view/spendManagement/billPay/editBillView/editBillViewSelector.js +4 -4
- package/lib/view/spendManagement/reimbursement/editRemiView/editRemiViewSelector.d.ts +4 -4
- package/lib/view/spendManagement/reimbursement/editRemiView/editRemiViewSelector.js +4 -4
- package/lib/view/transactionDetail/transactionDetailSelector.d.ts +4 -4
- package/lib/view/transactionDetail/transactionDetailSelector.js +4 -4
- package/lib/view/transactionDetail/transactionDetailState.d.ts +1 -1
- package/lib/view/transactionDetail/transactionDetailTypes.d.ts +1 -1
- package/package.json +1 -1
- package/lib/commonStateTypes/accountView/{getNestedAccountIDHeirarchyForReport.js → getNestedAccountIDHierarchyForReport.js} +0 -0
- package/lib/entity/customer/{customer.d.ts → customerState.d.ts} +4 -4
- /package/lib/entity/customer/{customer.js → customerState.js} +0 -0
|
@@ -14,13 +14,13 @@ const getSectionClassesViewReport = (accountState, classState, sectionState, id,
|
|
|
14
14
|
const sectionKey = (0, sectionClassesView_1.getSectionClassesViewKey)(id.sectionId, id.reportId);
|
|
15
15
|
const sectionView = (0, get_1.default)(sectionState.sectionsByKey, sectionKey, undefined);
|
|
16
16
|
const nestedClassReport = [];
|
|
17
|
-
const
|
|
17
|
+
const nestedHierarchyToShow = filterOutClasses((_a = sectionView === null || sectionView === void 0 ? void 0 : sectionView.nestedClassesIds) !== null && _a !== void 0 ? _a : [], filter.classesToFilterOut);
|
|
18
18
|
const sectionBalancesTotalByPeriodArray = [];
|
|
19
|
-
|
|
19
|
+
nestedHierarchyToShow.forEach((classId) => {
|
|
20
20
|
const report = (0, classSelectorV2_1.getNestedClassReportForClass)(classState, accountState, {
|
|
21
21
|
reportId: id.reportId,
|
|
22
22
|
sectionId: id.sectionId,
|
|
23
|
-
|
|
23
|
+
classIdHierarchy: classId,
|
|
24
24
|
}, filter);
|
|
25
25
|
if (report != null) {
|
|
26
26
|
nestedClassReport.push(report);
|
|
@@ -32,17 +32,17 @@ const getSectionClassesViewReport = (accountState, classState, sectionState, id,
|
|
|
32
32
|
};
|
|
33
33
|
exports.getSectionClassesViewReport = getSectionClassesViewReport;
|
|
34
34
|
/**
|
|
35
|
-
* This function will filter out all the classes from the report
|
|
35
|
+
* This function will filter out all the classes from the report hierarchy
|
|
36
36
|
* @param nestedClassesIds
|
|
37
37
|
* @param classesToFilterOut
|
|
38
38
|
* @returns
|
|
39
39
|
*/
|
|
40
40
|
const filterOutClasses = (nestedClassesIds, classesToFilterOut) => {
|
|
41
|
-
const
|
|
41
|
+
const newClassHierarchy = [];
|
|
42
42
|
nestedClassesIds.forEach((eachClassId) => {
|
|
43
43
|
if (classesToFilterOut.find((id) => id[0] === eachClassId.id[0]) == null) {
|
|
44
|
-
|
|
44
|
+
newClassHierarchy.push(Object.assign(Object.assign({}, eachClassId), { children: filterOutClasses(eachClassId.children, classesToFilterOut) }));
|
|
45
45
|
}
|
|
46
46
|
});
|
|
47
|
-
return
|
|
47
|
+
return newClassHierarchy;
|
|
48
48
|
};
|
package/lib/entity/sectionClassesViewV2/selectorHelpers/getNestedClassIDHierarchyForSection.js
CHANGED
|
@@ -8,8 +8,8 @@ const getNestedClassIDHierarchyForReport_1 = require("../../../commonStateTypes/
|
|
|
8
8
|
* @param _classesMetadata
|
|
9
9
|
*/
|
|
10
10
|
function getNestedClassIDHierarchyForSection(sectionClassNames, classesMetadata) {
|
|
11
|
-
const
|
|
12
|
-
const
|
|
11
|
+
const nestedHierarchy = [];
|
|
12
|
+
const pushIntoParentNodeHierarchy = (classMeta, nestedClasses) => {
|
|
13
13
|
for (let index = 0; index < nestedClasses.length; index++) {
|
|
14
14
|
if (nestedClasses[index].id[0] === classMeta.parentClassId) {
|
|
15
15
|
nestedClasses[index].children.push({
|
|
@@ -20,7 +20,7 @@ function getNestedClassIDHierarchyForSection(sectionClassNames, classesMetadata)
|
|
|
20
20
|
}
|
|
21
21
|
else {
|
|
22
22
|
if (nestedClasses[index].children.length > 0) {
|
|
23
|
-
|
|
23
|
+
pushIntoParentNodeHierarchy(classMeta, nestedClasses[index].children);
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
26
|
}
|
|
@@ -29,20 +29,20 @@ function getNestedClassIDHierarchyForSection(sectionClassNames, classesMetadata)
|
|
|
29
29
|
orderedClassnames.forEach((eachClass) => {
|
|
30
30
|
if (eachClass.parentClassId != null &&
|
|
31
31
|
orderedClassnames.find((classMeta) => classMeta.classId === eachClass.parentClassId) != null) {
|
|
32
|
-
|
|
32
|
+
pushIntoParentNodeHierarchy(eachClass, nestedHierarchy);
|
|
33
33
|
}
|
|
34
34
|
else {
|
|
35
|
-
|
|
35
|
+
nestedHierarchy.push({
|
|
36
36
|
id: (0, getNestedClassIDHierarchyForReport_1.getNestedClassIDForClass)(eachClass.classId, classesMetadata),
|
|
37
37
|
children: [],
|
|
38
38
|
});
|
|
39
39
|
}
|
|
40
40
|
});
|
|
41
|
-
return
|
|
41
|
+
return nestedHierarchy;
|
|
42
42
|
}
|
|
43
43
|
exports.getNestedClassIDHierarchyForSection = getNestedClassIDHierarchyForSection;
|
|
44
44
|
/**
|
|
45
|
-
* This function will return an ordered list of all the section names that need to be part of the
|
|
45
|
+
* This function will return an ordered list of all the section names that need to be part of the hierarchy
|
|
46
46
|
* @param sectionNames
|
|
47
47
|
* @param classMetadata
|
|
48
48
|
* @returns
|
|
@@ -2,7 +2,7 @@ import { Transaction } from './transaction';
|
|
|
2
2
|
import { Amount } from '../../../commonStateTypes/amount';
|
|
3
3
|
import { ZeniDate } from '../../../zeniDayJS';
|
|
4
4
|
import { PaymentType } from './paymentType';
|
|
5
|
-
import { CustomerBase } from '../../customer/
|
|
5
|
+
import { CustomerBase } from '../../customer/customerState';
|
|
6
6
|
export interface CustomerTransaction extends Transaction {
|
|
7
7
|
customer?: CustomerBase;
|
|
8
8
|
paymentType?: PaymentType;
|
|
@@ -2,7 +2,7 @@ import { Amount } from '../../../commonStateTypes/amount';
|
|
|
2
2
|
import { ID } from '../../../commonStateTypes/common';
|
|
3
3
|
import { AccountBase } from '../../account/accountState';
|
|
4
4
|
import { ClassBase } from '../../class/classState';
|
|
5
|
-
import { CustomerBase } from '../../customer/
|
|
5
|
+
import { CustomerBase } from '../../customer/customerState';
|
|
6
6
|
import { VendorBase } from '../../vendor/vendorState';
|
|
7
7
|
import { TransactionID } from './transaction';
|
|
8
8
|
import { TransactionCategory, TransactionType } from './transactionType';
|
package/lib/index.d.ts
CHANGED
|
@@ -20,10 +20,12 @@ export { Amount, toAmount, Currency };
|
|
|
20
20
|
import { View, SelectorView, Report, ReportID, toReportID, ReportIDPlusForecastID, SelectorReport, PageToken, ReportFormat, toReportFormatStrict } from './commonStateTypes/viewAndReport/viewAndReport';
|
|
21
21
|
import { isPAndLReport, isPAndLClassesViewReport, isCashFlowOrBalanceSheetReport, isDashboardReport, isDashboardClassesViewReport, isAgingReport, isOpExByVendorReport } from './commonStateTypes/viewAndReport/reportIDHelper';
|
|
22
22
|
export { View, SelectorView, Report, ReportID, toReportID, ReportIDPlusForecastID, SelectorReport, ReportFormat, toReportFormatStrict, isCashFlowOrBalanceSheetReport, isDashboardReport, isDashboardClassesViewReport, isPAndLReport, isPAndLClassesViewReport, isAgingReport, isOpExByVendorReport, PageToken, };
|
|
23
|
-
import { NestedClassIDHierarchy, NestedClassID,
|
|
24
|
-
export { NestedClassIDHierarchy, NestedClassID,
|
|
25
|
-
import {
|
|
26
|
-
export {
|
|
23
|
+
import { NestedClassIDHierarchy, NestedClassID, NestedClassHierarchyForReport } from './commonStateTypes/classesView/nestedClassID';
|
|
24
|
+
export { NestedClassIDHierarchy, NestedClassID, NestedClassHierarchyForReport };
|
|
25
|
+
import { NestedAccountHierarchyForReport, NestedAccountID, NestedAccountIDHierarchy } from './commonStateTypes/accountView/nestedAccountID';
|
|
26
|
+
export { NestedAccountHierarchyForReport, NestedAccountID, NestedAccountIDHierarchy, };
|
|
27
|
+
import { NestedCustomerID, NestedCustomerHierarchy } from './commonStateTypes/customerView/nestedCustomerID';
|
|
28
|
+
export { NestedCustomerID, NestedCustomerHierarchy };
|
|
27
29
|
import { Status } from './commonStateTypes/status';
|
|
28
30
|
export { Status };
|
|
29
31
|
import { BalanceChange, Balance } from './commonStateTypes/balance';
|
|
@@ -186,7 +188,7 @@ export { FinanceStatementReport, getFinanceStatement, fetchFinanceStatement, upd
|
|
|
186
188
|
import { Attachment, ContentType, toContentTypeStrict, toContentType, mapFileEntityToAttachment } from './entity/transaction/stateTypes/attachment';
|
|
187
189
|
export { Attachment, ContentType, toContentTypeStrict, toContentType, mapFileEntityToAttachment, };
|
|
188
190
|
export { AttachmentPayload, toAttachment, } from './entity/transaction/payloadTypes/attachmentPayload';
|
|
189
|
-
import { CustomerBase, Customer, defaultCustomerCurrency } from './entity/customer/
|
|
191
|
+
import { CustomerBase, Customer, defaultCustomerCurrency } from './entity/customer/customerState';
|
|
190
192
|
export { CustomerBase, Customer, defaultCustomerCurrency };
|
|
191
193
|
import { CustomerTransaction, isCustomerTransaction } from './entity/transaction/stateTypes/customerTransaction';
|
|
192
194
|
export { CustomerTransaction, isCustomerTransaction };
|
|
@@ -314,8 +316,8 @@ import { CompanyDetailsLocalData, CompanyInfoLocalData, IncInfoLocalData, TaxDet
|
|
|
314
316
|
import { CompanyOfficerLocalData, PrimaryContactLocalData, CompanyOfficerType } from './view/companyView/types/companyPassport/companyUsersLocalData';
|
|
315
317
|
import { CompanyPassportLocalData, toCompanyPassportLocalData } from './view/companyView/types/companyPassport/companyPassportLocalData';
|
|
316
318
|
export { CompanyInfoLocalData, IncInfoLocalData, TaxDetailsLocalData, CompanyDetailsLocalData, PrimaryContactLocalData, CompanyOfficerLocalData, CompanyOfficerType, CompanyPassportLocalData, toCompanyPassportLocalData, };
|
|
317
|
-
import { AccountListSelectorView, getUncategorizedAccounts,
|
|
318
|
-
export { getUncategorizedAccounts, UncategorizedAccounts,
|
|
319
|
+
import { AccountListSelectorView, getUncategorizedAccounts, getNestedAccountListHierarchy, UncategorizedAccounts } from './view/accountList/accountListSelector';
|
|
320
|
+
export { getUncategorizedAccounts, UncategorizedAccounts, getNestedAccountListHierarchy, };
|
|
319
321
|
import { getBankAccount, BankAccountSelectorView } from './view/bankAccountView/bankAccountViewSelector';
|
|
320
322
|
export { getBankAccount, BankAccountSelectorView };
|
|
321
323
|
import { SubscriptionListUIState, SubscriptionUpdateData, SubscriptionCreateData, SubscriptionActionType } from './view/subscriptionView/subscriptionViewState';
|
|
@@ -584,8 +586,8 @@ export { ProductServices, ProductServiceKey, isCompanyRunwayInfinite, getCompany
|
|
|
584
586
|
import { AgingBalance, AgingPeriod } from './commonStateTypes/agingBalance/agingBalance';
|
|
585
587
|
import { fetchApAging, updateApAgingUIState } from './view/apAgingView/apAgingReport/apAgingReducer';
|
|
586
588
|
import { ApAgingReport, getApAgingReport, AgingBalancesByVendor } from './view/apAgingView/apAgingReport/apAgingSelector';
|
|
587
|
-
import { AgingReportId,
|
|
588
|
-
export { fetchApAging, getApAgingReport, updateApAgingUIState, AgingReportId,
|
|
589
|
+
import { AgingReportId, AgingDateSelectionType, AgingReportSortKey, AgingReportInvoice, AgingReportUIState, AgingDetailReportUIState, AgingDetailReportInvoice } from './commonStateTypes/viewAndReport/agingReportStateTypes';
|
|
590
|
+
export { fetchApAging, getApAgingReport, updateApAgingUIState, AgingReportId, ApAgingReport, AgingBalance, AgingPeriod, AgingReportSortKey, AgingBalancesByVendor, AgingReportUIState, AgingDetailReportUIState, AgingDetailReportInvoice, AgingDateSelectionType, };
|
|
589
591
|
import { fetchApAgingDetail, updateApAgingDetailUIState } from './view/apAgingView/apAgingDetail/apAgingDetailReducer';
|
|
590
592
|
import { ApAgingDetail, getApAgingDetailForVendor } from './view/apAgingView/apAgingDetail/apAgingDetailSelector';
|
|
591
593
|
export { fetchApAgingDetail, AgingReportInvoice, ApAgingDetail, getApAgingDetailForVendor, updateApAgingDetailUIState, };
|
|
@@ -621,11 +623,11 @@ import { approveVendorGlobalReview, rejectVendorGlobalReview, fetchVendorGlobalR
|
|
|
621
623
|
import { VendorGlobalReviewViewState, VendorGlobalReviewViewUIState, VendorGlobalReviewViewLocalData, toVendorGlobalReviewColumnSortKeyType, VendorGlobalReviewViewColumnSortKey } from './view/vendorReviewView/vendorGlobalReviewView/vendorGlobalReviewViewState';
|
|
622
624
|
import { VendorGlobalReview, getVendorGlobalReviewView, getTenantMerchantByMerchantId, VendorGlobalReviewViewSelectorView } from './view/vendorReviewView/vendorGlobalReviewView/vendorGlobalReviewViewSelector';
|
|
623
625
|
export { approveVendorGlobalReview, rejectVendorGlobalReview, fetchVendorGlobalReviewView, updateSelectedGlobalMerchant, updateVendorGlobalReviewViewUIState, getVendorGlobalReviewView, getTenantMerchantByMerchantId, toVendorGlobalReviewColumnSortKeyType, VendorGlobalReview, VendorGlobalReviewViewUIState, VendorGlobalReviewViewColumnSortKey, VendorGlobalReviewViewSelectorView, VendorGlobalReviewViewState, VendorGlobalReviewViewLocalData, };
|
|
624
|
-
import { fetchArAging, updateArAgingUIState } from './view/arAgingView/arAgingReport/arAgingReducer';
|
|
625
|
-
import { ArAgingReport, getArAgingReport,
|
|
626
|
+
import { fetchArAging, updateArAgingUIState, updateArAgingNodeCollapseState } from './view/arAgingView/arAgingReport/arAgingReducer';
|
|
627
|
+
import { ArAgingReport, getArAgingReport, NestedAgingBalancesByCustomer } from './view/arAgingView/arAgingReport/arAgingSelector';
|
|
626
628
|
import { fetchArAgingDetail, updateArAgingDetailUIState } from './view/arAgingView/arAgingDetail/arAgingDetailReducer';
|
|
627
629
|
import { ArAgingDetail, getArAgingDetailForCustomer } from './view/arAgingView/arAgingDetail/arAgingDetailSelector';
|
|
628
|
-
export { fetchArAging, updateArAgingUIState, fetchArAgingDetail, updateArAgingDetailUIState, ArAgingReport, ArAgingDetail,
|
|
630
|
+
export { fetchArAging, updateArAgingUIState, fetchArAgingDetail, updateArAgingDetailUIState, ArAgingReport, ArAgingDetail, NestedAgingBalancesByCustomer, getArAgingReport, getArAgingDetailForCustomer, updateArAgingNodeCollapseState, };
|
|
629
631
|
import { toRecurringBillFrequency, toRecurringBillFrequencyStrict, RecurringBillFrequency, RecurringBillDetail, RecurringBillConfig, RecurringBillStatus, RecurringBillPaymentStatus } from './entity/billPay/recurringBills/recurringBillsState';
|
|
630
632
|
export { toRecurringBillFrequency, toRecurringBillFrequencyStrict, RecurringBillFrequency, RecurringBillDetail, RecurringBillConfig, RecurringBillStatus, RecurringBillPaymentStatus, };
|
|
631
633
|
import { Task, TaskStatusCodeType, PriorityCodeType, TaskTagCodeType, TaskTag, TaskStatus, TaskPriority, TaskCodeType, TaskType } from './entity/task/taskState';
|
package/lib/index.js
CHANGED
|
@@ -35,7 +35,7 @@ exports.isBalanceSheetReportViewCalculatedSectionID = exports.isBalanceSheetRepo
|
|
|
35
35
|
exports.saveTransactionDetailLocalData = exports.updateTransactionListByEntity = exports.fetchEntityTransactionList = exports.getTransactionListUIStateByAccountKey = exports.getTransactionListByAccount = exports.parallelFetchTransactionListByCategoryType = exports.updateTransactionListUIStateByCategoryType = exports.updateTransactionListByClass = exports.updateTransactionListByClassUIState = exports.parallelFetchClassTransactionList = exports.updateTransactionListByAccountUIState = exports.updateTransactionListByAccountFailure = exports.updateTransactionListByAccount = exports.fetchAccountTransactionList = exports.parallelFetchEntityTransactionList = exports.parallelFetchAccountTransactionList = exports.updateLatestTransactionId = exports.clearTransactionList = exports.isTransferTransaction = exports.isVendorTransaction = exports.updateVendors = exports.defaultVendorCurrency = exports.toTransactionCategory = exports.toTransactionTypeStrict = exports.toTransactionType = exports.toPlatformLineDetailType = exports.toTransactionID = exports.isCustomerTransaction = exports.defaultCustomerCurrency = exports.toAttachment = exports.mapFileEntityToAttachment = exports.toContentType = exports.toContentTypeStrict = exports.updateFinanceStatementFormat = exports.updateFinanceStatementDisplayOrder = exports.updateFinanceStatementAdditionalBalancesSelection = exports.updateDownloadState = exports.updateSelectedReportId = exports.updateCOABalancesRange = exports.fetchFinanceStatement = exports.getFinanceStatement = exports.isCashFlowReportViewCalculatedSectionType1ID = exports.isCashFlowReportViewSectionID = exports.isCashFlowReportViewCalculatedSectionID = exports.typeOfCashFlowRootSection = exports.updateCashFlowUIState = exports.resetCashFlowNodeCollapseState = exports.getCashFlowReportFetchState = exports.getCashFlow = exports.fetchCashFlow = void 0;
|
|
36
36
|
exports.fetchEntityAutoCompleteEpic = exports.toEntityType = exports.VendorExpenseTrend = exports.CustomerIncomeTrend = exports.getTrendForEntity = exports.clearTrendData = exports.fetchExpenseTrend = exports.fetchIncomeTrend = exports.getEntityDetailUIStateByEntity = exports.getLatestTimeFrameWithTransactionsForEntity = exports.getTrendWithTransactions = exports.trendWithTransactionsUpdateSelectedTimeperiod = exports.clearTrendWithTransactions = exports.fetchTransactionsForEntity = exports.fetchTrendForEntity = exports.updateReportUIOptionCOABalancesRange = exports.updateReportUIOptionThisPeriod = exports.toggleReportUIOptionForecastMode = exports.updateReportUIOptionIsCompareModeOn = exports.updateReportUIOptionCompareMode = exports.updateReportUIOptionIsForecastVsActualOn = exports.updateReportUIOptionSelectedForecast = exports.updateReportUIOptionTimeframe = exports.getForecastList = exports.fetchForecastList = exports.updateSelectedInsightIndex = exports.fetchInsightsCard = exports.getInsights = exports.getUpdatablePeriodsForTransactionRecommendations = exports.getTransactionDetailForTransaction = exports.getTransactionDetail = exports.getTransactionListByEntityForSinglePeriod = exports.getTransactionListUIStateByClassKey = exports.getTransactionListByClass = exports.getTransactionListByEntity = exports.getThirdPartyIdFromTransactionId = exports.uploadMissingReceiptSuccess = exports.updateTransactionDetail = exports.fetchTransactionDetail = exports.updateLocalDataWithTransactionsUpdateWithVendorCheckbox = exports.resetVendor = exports.updateSelectedVendor = exports.removeEntityRecommendationForLineIdForTransactionDetail = exports.initializeTransactionDetailLocalData = exports.setAllLineItemsLocalDataIsUpdateAllChecked = exports.saveTransactionDetail = exports.setAllLineItemsToCategoryClassInLocalData = exports.resetLineItemsCategoryClassInLocalData = exports.updateTransactionListByEntityFailure = exports.clearTransactionDetailSaveStatus = void 0;
|
|
37
37
|
exports.getAddress = exports.newAddressInLocalStore = exports.getCompanyMonthEndReportHistoricData = exports.fetchCompanyMonthEndReportTemplates = exports.fetchCompanyMonthEndReportHistoricData = exports.fetchCompanyMonthEndReportHistoricDates = exports.getCompanyMonthEndReportSelectorView = exports.resetCompanyMonthEndReportFetchStatus = exports.saveCompanyMonthEndReport = exports.sendCompanyMonthEndReport = exports.fetchCompanyMonthEndReportView = exports.fetchImproveUsingZeniGPT = exports.getAllCockpitTabsFilterView = exports.isInfiniteRunway = exports.getCompanyPortfolioView = exports.getAuditWarningsCount = exports.retryBankAccountConnection = exports.getReviewCompanyListCount = exports.getReviewCompanySelectorView = exports.updateReviewCompanyListUIState = exports.fetchReviewCompanyView = exports.updateCompanyDownloadState = exports.fetchZeniUsers = exports.fetchSubscriptionView = exports.fetchPortfolioView = exports.fetchManagementView = exports.fetchOnboardingView = exports.fetchParentSubsidiaryManagementView = exports.updateCompanyManagementUIState = exports.updateCompanyPortfolioUIState = exports.fetchCompanyPortfolioView = exports.fetchCompanyManagementView = exports.fetchAllCockpitViews = exports.companyManagementSaveUpdates = exports.getParentSubsidiaryManagementView = exports.getAddonListZeniSku = exports.getPlanListZeniSku = exports.getCompanyManagementView = exports.getControllersName = exports.getFirstControllerId = exports.getFirstControllerEmail = exports.getControllersForCompany = exports.getCompanyByCompanyId = exports.ALL_ACCOUNTING_CONNECTION_CREATION_MODES = exports.getEntityByEntityIDs = exports.clearAllEntities = exports.updateEntities = exports.getEntityAutoCompleteResults = exports.fetchEntityAutoCompleteResults = exports.clearEntityAutoCompleteResults = void 0;
|
|
38
|
-
exports.getSubscriptionEstimationData = exports.getSubscriptionLocalStoreDataView = exports.getSubscriptionsDetailView = exports.clearSubscriptionLocalData = exports.clearSubscriptionUpdateViewDataByTenantId = exports.saveSubscriptionLocalData = exports.initializeSubscriptionLocalData = exports.clearSubscriptionView = exports.fetchSubscriptionUpdateEstimate = exports.fetchSubscriptionCreateEstimate = exports.saveSubscriptionNotesUpdates = exports.saveSubscriptionUpdates = exports.fetchSubscriptionDetails = exports.fetchSubscriptionCoupons = exports.fetchSubscriptionAddOns = exports.fetchSubscriptionPlans = exports.fetchSubscriptionList = exports.updateCompanySubscriptionUIState = exports.getCompanySubscriptionView = exports.toSubscriptionSortKeyType = exports.getBankAccount = exports.
|
|
38
|
+
exports.getSubscriptionEstimationData = exports.getSubscriptionLocalStoreDataView = exports.getSubscriptionsDetailView = exports.clearSubscriptionLocalData = exports.clearSubscriptionUpdateViewDataByTenantId = exports.saveSubscriptionLocalData = exports.initializeSubscriptionLocalData = exports.clearSubscriptionView = exports.fetchSubscriptionUpdateEstimate = exports.fetchSubscriptionCreateEstimate = exports.saveSubscriptionNotesUpdates = exports.saveSubscriptionUpdates = exports.fetchSubscriptionDetails = exports.fetchSubscriptionCoupons = exports.fetchSubscriptionAddOns = exports.fetchSubscriptionPlans = exports.fetchSubscriptionList = exports.updateCompanySubscriptionUIState = exports.getCompanySubscriptionView = exports.toSubscriptionSortKeyType = exports.getBankAccount = exports.getNestedAccountListHierarchy = exports.getUncategorizedAccounts = exports.toCompanyPassportLocalData = exports.clearCompanyView = exports.saveCompanyPassportDetails = exports.updateCompanyPassportLocalStoreData = exports.companyPassportClearDataInLocalStore = exports.deleteCompanyOfficerInLocalStore = exports.saveIndustryAndIncDateInCompanyPassportLocalStore = exports.companyPassportSaveDataInLocalStore = exports.isCompanyPassportDataToBeSaved = exports.getCompanyPassportLocalStoreData = exports.getCompanyPassportView = exports.fetchCompanyPassportView = exports.isAllowedValueWithID = exports.isAllowedValueWithCode = exports.toCockpitTabsFileTypeStrict = exports.toCockpitTabsIDStrict = exports.ALL_COCKPIT_TABS_IDS = exports.ALL_COCKPIT_TABS_FILE_TYPES = exports.toHealthSortKeyType = exports.toPortfolioSortKeyType = exports.toOnboardingSortKeyType = exports.toManagementSortKeyType = exports.clearAddressView = exports.fetchAddress = exports.getFormattedAddress = exports.getAllNewAddresses = exports.getNewAddress = void 0;
|
|
39
39
|
exports.updateScrollYOffset = exports.fetchVendorsList = exports.vendorsTabResetVendorDetailLocalData = exports.vendorsTabUpdateVendorDetailLocalData = exports.vendorsTabSaveVendorSuccessOrFailure = exports.vendorsTabSaveVendor = exports.getVendorsTabDetailPageView = exports.toVendorDetailTabsType = exports.getVendorAllTransactionsDefaultTimePeriod = exports.resetVendorsTabVendorAllTransactionsTabData = exports.resetSelectedTabType = exports.updateVendorsTabVendorAllTransactionsTabData = exports.updateSelectedTabType = exports.fetchVendorsTabVendorDetailPageView = exports.getVendorDetailPageView = exports.getVendorView = exports.getAnalyticsDataOnVendorSave = exports.fetchTasksCard = exports.downloadFile = exports.getAttachmentFileIdByFileName = exports.mapAttachmentFileToAttachmentFilePayload = exports.mapAttachmentFilePayloadToFile = exports.mapFilePayloadToFile = exports.uploadFile = exports.getFileDeleteStatusById = exports.getFileUpdateNameStatusById = exports.getDeleteFileListWithStatus = exports.getFileListWithStatus = exports.clearFileViewList = exports.deleteFileSuccess = exports.deleteFileFailure = exports.deleteFile = exports.deleteFileListSuccess = exports.deleteFileListFailure = exports.deleteFileList = exports.updateFilesMetadata = exports.updateFileNameSuccess = exports.updateFileNameFailure = exports.updateFileName = exports.fetchFile = exports.fetchFileListSuccess = exports.fetchFileListFailure = exports.fetchFileList = exports.toSupportedAttachmentFileType = exports.toSupportedAttachmentFileFormatType = exports.toSupportedFileTypeStrict = exports.removeAttachmentFiles = exports.updateAttachmentFiles = exports.updateFiles = exports.SUPPORTED_ATTACHMENT_FILE_TYPES = void 0;
|
|
40
40
|
exports.saveBillDetail = exports.discardBillUpdatesInLocalStore = exports.saveBillUpdatesToLocalStore = exports.fetchVendorByNameAndParseInvoice = exports.updateBillDetailSaveBillCode = exports.updateSelectedBillId = exports.updateSubTab = exports.updateTab = exports.fetchBillListPerTab = exports.fetchBillList = exports.getClassList = exports.updateBillListDownloadUIState = exports.updateRemiListDownloadUIState = exports.REIMBURSEMENT_FILTER_CATEGORIES_RESTRICTED = exports.REIMBURSEMENT_FILTER_CATEGORIES = exports.updateRemiListFilterResult = exports.updateBillListFilterResult = exports.updateRemiListSearchResult = exports.updateRemiListUIState = exports.updateRemiDetailSaveRemiCode = exports.updateRemiListSubTab = exports.updateRemiListTab = exports.fetchRemiListPerTab = exports.fetchRemiList = exports.getRemiDownloadList = exports.getRemiList = exports.toRemiTabTypeStrict = exports.toRemiTabType = exports.toRemiSubTabTypeStrict = exports.toRemiSubTabType = exports.deleteUserBankAccount = exports.createUserBankAccount = exports.resetCreateBankAccountDetails = exports.createInternationalBankAccount = exports.createBankAccount = exports.deleteBankAccount = exports.fetchBankCountryNameByIban = exports.fetchBankNameBySwift = exports.fetchBankNameByRouting = exports.fetchVendorDetailPageView = exports.fetchVendorDetails = exports.updateStatusForCreateBankAccountFlow = exports.clearBankAccountView = exports.updateInternationalBankAccountViewLocalStoreData = exports.updateBankAccountViewLocalStoreData = exports.initializeVendorAddress = exports.updateSelectedVendorForCreateFlow = exports.removeBankAccountsInVendorView = exports.saveVendor = exports.fetchVendor = void 0;
|
|
41
41
|
exports.saveCompnayOfficerPhoneInLocalStore = exports.saveSetupViewDataInLocalStore = exports.acceptBillPayUpdatedTerms = exports.acceptZeniAccountTerms = exports.acceptBillPayTerms = exports.establishPlaidConnection = exports.updatePaymentAccountStatus = exports.updatePaymentAccountLoginStatus = exports.updatePaymentAccount = exports.updateBusinessVerificationDetails = exports.updateSetupViewLocalStoreData = exports.updateSelectedCompanyOfficer = exports.getPlaidLinkToken = exports.getPaymentAccounts = exports.enableSetup = exports.fetchZeniAccountSetupView = exports.fetchBillPaySetupView = exports.hideCreatedByFilter = exports.fetchVendorAndUpdateBillLocalData = exports.convertAmountToHomeCurrency = exports.toPaymentToOption = exports.updateVendorContact = exports.verifyUser = exports.fetchUserDetails = exports.updateBillListSearchResult = exports.updateBillUploadFetchState = exports.updateContactsInVendorDetailLocalData = exports.resetVendorDetailLocalData = exports.updateVendorDetailLocalData = exports.BILL_PAY_FILTER_CATEGORIES = exports.updateBillListUIState = exports.saveVendorSuccessOrFailure = exports.updateShowAutofill = exports.fetchBillAndInitializeLocalStore = exports.getReviewPageBillDetail = exports.getEditBillDetail = exports.clearBillPayReview = exports.fetchDuplicateBill = exports.fetchAndUpdateVendorRecommendations = exports.fetchEditBillDetailPage = exports.fetchBillDetail = exports.getBillTransactionDetailKey = exports.checkApproveRejectBtnShowForBill = exports.getBillDetailView = exports.getBillDownloadList = exports.getBillList = exports.cancelAndDeleteBill = exports.deleteBill = exports.updateApprovalStatusOnSuccess = exports.approveOrRejectBill = void 0;
|
|
@@ -45,8 +45,8 @@ exports.fetchPaymentAccountList = exports.createCheckingAccount = exports.update
|
|
|
45
45
|
exports.updateOnboardingCustomerViewUIState = exports.updateCurrentStep = exports.updateOnboardingCustomerViewLocalStoreData = exports.updateOnboardingCustomerView = exports.updateOnboardingPaymentAccountStatus = exports.updateOnboardingPaymentAccountLoginStatus = exports.updateOnboardingCustomerViewCompleteStatus = exports.updateOnboardingCustomerViewAccountDetails = exports.establishOnboardingPlaidConnection = exports.getOnboardingPlaidLinkToken = exports.fetchOnboardingCustomerSetupView = exports.fetchOnboardingCustomerView = exports.isZeniClearingAccount = exports.ZENI_CLEARING_ACCOUNT = exports.isZeniClearingAccountReport = exports.getCompanyConfig = exports.fetchCompanyConfig = exports.clearTransactionVendorSaveStatus = exports.resetTransactionVendorLocalData = exports.updateTransactionVendorLocalData = exports.saveTransactionVendorSuccessOrFailure = exports.saveTransactionVendor = exports.getTransactionVendorView = exports.getZeniAccStatements = exports.fetchZeniAccStatementPage = exports.getDepositAccountTransactionList = exports.fetchDepositAccountTransactionList = exports.fetchDepositAccountHistoryFailure = exports.fetchDepositAccountHistorySuccess = exports.updateDepositAccount = exports.getCheckDepositDetail = exports.clearCheckDeposit = exports.updateCheckDepositLocalData = exports.depositCheck = exports.ZENI_ACCOUNTS_TAB = exports.fetchDepositAccountDetail = exports.fetchReviewTransferDetail = exports.clearReviewTransferDetail = exports.clearTransferDetail = exports.getTransferDetail = exports.transferMoney = exports.updateDepositToLocalData = exports.updateTransferToLocalData = exports.updateTransferMoneyLocalData = exports.fetchZeniAccountsConfig = exports.fetchDepositAccount = exports.getDepositAccountDetailForPDF = exports.getAllDepostAccounts = exports.getDepositAccountDetail = exports.unlinkPaymentAccount = void 0;
|
|
46
46
|
exports.getChargeCardBusinessVerificationDetails = exports.companyHealthMetricDropDownOptions = exports.hasCompanyHealthMetricFormFieldChanged = exports.getCompanyHealthMetricView = exports.isCompanyRunwayInfinite = exports.updateCompanyHealthViewUIState = exports.updateCompanyHealthMetricViewSuccessStatus = exports.updateCompanyHealthMetricViewErrorStatus = exports.updateCompanyHealthMetricLocalStore = exports.saveCompanyHealthMetricById = exports.removeSelectedCompanyId = exports.initializeCompanyHealthMetricViewLocalData = exports.fetchCompanyHealthMetricView = exports.clearCompanyHealthMetricView = exports.updateCompanyHealth = exports.updateCompaniesHealth = exports.getUserRoleConfig = exports.fetchUserRoleConfig = exports.clearInternationalWire = exports.deletePaymentInstrument = exports.createPaymentInstrumentUpdateStatus = exports.createPaymentInstrument = exports.fetchInternationalWireDynamicForm = exports.initializeDynamicForm = exports.updateInternationalWireLocalStoreData = exports.initializeInternationalWireLocalData = exports.getInternationalWireView = exports.fetchWiseRedirectStatus = exports.getWiseRedirect = exports.saveMagicLinkAddressInLocalStore = exports.fetchMagicLinkBankNameBySwift = exports.fetchMagicLinkBankNameByRouting = exports.updateMagicLinkInternationalBankAccountLocalStoreData = exports.updateMagicLinkBankAccountLocalStoreData = exports.saveBankAccount = exports.fetchBillAttachment = exports.fetchMagicLinkTenant = exports.getMagicLinkCurrentAddressState = exports.getMagicLinkBankAccountView = exports.getMagicLinkView = exports.initializeAccountMappingView = exports.getAccountMappingView = exports.clearAccountMappingLocalData = exports.saveAccountMappingLocalData = exports.saveAccountMapping = exports.getOnboardingCustomerView = exports.clearOnboardingCustomerViewDataInLocalStore = exports.clearOnboardingCustomerView = exports.saveOnboardingCustomerViewDataInLocalStore = exports.saveOnboardingCompnayOfficerPhoneInLocalStore = void 0;
|
|
47
47
|
exports.updatedJELinkInLocalData = exports.getThirdPartyIDFromQBOURL = exports.getQBOUrlForLink = exports.updatedSelectedJELinkRowIndex = exports.updateScheduleListDownloadState = exports.updateScheduleDetailsLocalData = exports.createNewSchedules = exports.deleteScheduleDetail = exports.saveScheduleDetails = exports.fetchScheduleDetailsPage = exports.getScheduleDetailsView = exports.fetchScheduleDetails = exports.updateSelectedJEScheduleKey = exports.updateScheduleListSortState = exports.updateScheduleListScrollState = exports.updateScheduleListSearchText = exports.updateScheduleListSubTab = exports.toScheduleSubTabType = exports.toScheduleListTabsFileTypeStrict = exports.toScheduleTypesTypeStrict = exports.toScheduleTypesType = exports.getFetchStateForScheduleAccountList = exports.updateScheduleListLocalData = exports.fetchSchedulesAccount = exports.fetchDownloadSchedules = exports.fetchScheduleList = exports.getScheduleListReport = exports.ALL_SCHEDULES_TYPES = exports.updateApAgingDetailUIState = exports.getApAgingDetailForVendor = exports.fetchApAgingDetail = exports.updateApAgingUIState = exports.getApAgingReport = exports.fetchApAging = exports.updateChargeCardDetail = exports.updateChargeCardListUIState = exports.updateChargeCardListSearchText = exports.resetIssueChargeCardForm = exports.updateChargeCardLocalStore = exports.issueChargeCard = exports.acceptChargeCardTerms = exports.fetchChargeCardSetupView = exports.getChargeCardSetupViewDetails = exports.toCreditLimitFrequencyCodeType = exports.toChargeCardSortKeyType = exports.fetchChargeCardTransactionList = exports.getChargeCardDetailView = exports.fetchChargeCardDetailPage = exports.getChargeCardListView = exports.fetchChargeCardListPage = void 0;
|
|
48
|
-
exports.
|
|
49
|
-
exports.getMinAllowedEndDate = exports.toRecurringFrequency = exports.getRecurringEndDateFromCount = exports.fetchRewardsPlan = exports.resendReferralInvite = exports.updateReferralListSortUiState = exports.saveReferralFormDataInLocalStore = exports.clearReferrals = exports.sendReferralInvite = exports.fetchReferrals = exports.AmountStatusTypes = exports.StatusTypes = exports.toReferralListViewSortKeyType = exports.getInviteFormView = exports.getReferralListView = exports.getNotificationsForSelectedSubTab = exports.getExternalNotificationsForSelectedSubTab = exports.getNotificationView = exports.updateNotificationViewUIState = exports.updateNotificationViewSubTab = exports.updateNotificationViewCurrentTabAndSubTab = exports.updateNotificationViewTabState = exports.updateNotificationViewNotificationStatus = exports.updateNotificationViewAllNotificationsStatus = exports.fetchNotificationUnreadCountSuccess = exports.fetchNotificationUnreadCount = exports.fetchNotificationView = exports.toNotificationTabTypeStrict = exports.toNotificationSubTabTypeStrict = exports.updateCommentsNotificationsStatuses = exports.updateCommentsNotifications = exports.toNotificationModeStrict = exports.fetchZeniAccountsPromoCard = exports.getZeniAccountsPromoCard = exports.getAuthenticationView = exports.fetchCollaborationAuthToken = exports.clearAuditReportGroupViewByCompanyId = exports.fetchAuditReportGroupView = exports.fetchAuditRuleGroupView = exports.getAuditRuleGroupViewSelectorView = exports.getAuditReportGroupViewSelectorView = exports.discardTaskUpdatesInLocalStore = exports.deleteTask = exports.TASK_LIST_FILTER_CATEGORIES = exports.updateTaskFilters = exports.allTaskPriority = void 0;
|
|
48
|
+
exports.allTaskTags = exports.updateTaskListUIState = exports.updateTaskListSearchText = exports.archiveTask = exports.saveTaskDetail = exports.saveTaskUpdatesToLocalStore = exports.fetchTaskDetailPage = exports.getTaskDetail = exports.fetchTaskListPage = exports.getAllTasks = exports.toRecurringBillFrequencyStrict = exports.toRecurringBillFrequency = exports.updateArAgingNodeCollapseState = exports.getArAgingDetailForCustomer = exports.getArAgingReport = exports.updateArAgingDetailUIState = exports.fetchArAgingDetail = exports.updateArAgingUIState = exports.fetchArAging = exports.toVendorGlobalReviewColumnSortKeyType = exports.getTenantMerchantByMerchantId = exports.getVendorGlobalReviewView = exports.updateVendorGlobalReviewViewUIState = exports.updateSelectedGlobalMerchant = exports.fetchVendorGlobalReviewView = exports.rejectVendorGlobalReview = exports.approveVendorGlobalReview = exports.getGlobalMerchantView = exports.clearGlobalMerchantView = exports.updateCreateGlobalMerchantLocalData = exports.createGlobalMerchant = exports.fetchGlobalMerchantRecommendation = exports.clearGlobalMerchantAutoCompleteResults = exports.fetchGlobalMerchantAutoCompleteView = exports.updateVendorFirstReviewSortUiState = exports.updateVendorFirstReviewViewLocalData = exports.saveVendorFirstReviewView = exports.clearRecentlySavedErroredVendorData = exports.updateVendorFirstReviewViewPageToken = exports.resetVendorFirstReviewLocalData = exports.updateVendorFirstReviewViewScrollYOffset = exports.fetchVendorFirstReviewView = exports.getVendorFirstReviewView = exports.getGlobalMerchantAutoCompleteResults = exports.toVendorFirstReviewViewColumnKeyType = exports.getDefaultSelectedTimeframeForScheduleType = exports.getFetchStateForScheduleListByType = exports.updatedJELinkWithRecommendedLocalData = exports.resetJELinkInLocalData = exports.updateAmountsInScheduleDetail = void 0;
|
|
49
|
+
exports.getMinAllowedEndDate = exports.toRecurringFrequency = exports.getRecurringEndDateFromCount = exports.fetchRewardsPlan = exports.resendReferralInvite = exports.updateReferralListSortUiState = exports.saveReferralFormDataInLocalStore = exports.clearReferrals = exports.sendReferralInvite = exports.fetchReferrals = exports.AmountStatusTypes = exports.StatusTypes = exports.toReferralListViewSortKeyType = exports.getInviteFormView = exports.getReferralListView = exports.getNotificationsForSelectedSubTab = exports.getExternalNotificationsForSelectedSubTab = exports.getNotificationView = exports.updateNotificationViewUIState = exports.updateNotificationViewSubTab = exports.updateNotificationViewCurrentTabAndSubTab = exports.updateNotificationViewTabState = exports.updateNotificationViewNotificationStatus = exports.updateNotificationViewAllNotificationsStatus = exports.fetchNotificationUnreadCountSuccess = exports.fetchNotificationUnreadCount = exports.fetchNotificationView = exports.toNotificationTabTypeStrict = exports.toNotificationSubTabTypeStrict = exports.updateCommentsNotificationsStatuses = exports.updateCommentsNotifications = exports.toNotificationModeStrict = exports.fetchZeniAccountsPromoCard = exports.getZeniAccountsPromoCard = exports.getAuthenticationView = exports.fetchCollaborationAuthToken = exports.clearAuditReportGroupViewByCompanyId = exports.fetchAuditReportGroupView = exports.fetchAuditRuleGroupView = exports.getAuditRuleGroupViewSelectorView = exports.getAuditReportGroupViewSelectorView = exports.discardTaskUpdatesInLocalStore = exports.deleteTask = exports.TASK_LIST_FILTER_CATEGORIES = exports.updateTaskFilters = exports.allTaskPriority = exports.allTaskStatus = void 0;
|
|
50
50
|
const zeniDayJS_1 = require("./zeniDayJS");
|
|
51
51
|
Object.defineProperty(exports, "Dayjs", { enumerable: true, get: function () { return zeniDayJS_1.Dayjs; } });
|
|
52
52
|
Object.defineProperty(exports, "updateZeniDateLocaleID", { enumerable: true, get: function () { return zeniDayJS_1.updateZeniDateLocaleID; } });
|
|
@@ -465,8 +465,8 @@ Object.defineProperty(exports, "toContentType", { enumerable: true, get: functio
|
|
|
465
465
|
Object.defineProperty(exports, "mapFileEntityToAttachment", { enumerable: true, get: function () { return attachment_1.mapFileEntityToAttachment; } });
|
|
466
466
|
var attachmentPayload_1 = require("./entity/transaction/payloadTypes/attachmentPayload");
|
|
467
467
|
Object.defineProperty(exports, "toAttachment", { enumerable: true, get: function () { return attachmentPayload_1.toAttachment; } });
|
|
468
|
-
const
|
|
469
|
-
Object.defineProperty(exports, "defaultCustomerCurrency", { enumerable: true, get: function () { return
|
|
468
|
+
const customerState_1 = require("./entity/customer/customerState");
|
|
469
|
+
Object.defineProperty(exports, "defaultCustomerCurrency", { enumerable: true, get: function () { return customerState_1.defaultCustomerCurrency; } });
|
|
470
470
|
const customerTransaction_1 = require("./entity/transaction/stateTypes/customerTransaction");
|
|
471
471
|
Object.defineProperty(exports, "isCustomerTransaction", { enumerable: true, get: function () { return customerTransaction_1.isCustomerTransaction; } });
|
|
472
472
|
var transactionIDPayload_1 = require("./entity/transaction/payloadTypes/transactionIDPayload");
|
|
@@ -675,7 +675,7 @@ const companyPassportLocalData_1 = require("./view/companyView/types/companyPass
|
|
|
675
675
|
Object.defineProperty(exports, "toCompanyPassportLocalData", { enumerable: true, get: function () { return companyPassportLocalData_1.toCompanyPassportLocalData; } });
|
|
676
676
|
const accountListSelector_1 = require("./view/accountList/accountListSelector");
|
|
677
677
|
Object.defineProperty(exports, "getUncategorizedAccounts", { enumerable: true, get: function () { return accountListSelector_1.getUncategorizedAccounts; } });
|
|
678
|
-
Object.defineProperty(exports, "
|
|
678
|
+
Object.defineProperty(exports, "getNestedAccountListHierarchy", { enumerable: true, get: function () { return accountListSelector_1.getNestedAccountListHierarchy; } });
|
|
679
679
|
const bankAccountViewSelector_1 = require("./view/bankAccountView/bankAccountViewSelector");
|
|
680
680
|
Object.defineProperty(exports, "getBankAccount", { enumerable: true, get: function () { return bankAccountViewSelector_1.getBankAccount; } });
|
|
681
681
|
const subscriptionViewReducer_1 = require("./view/subscriptionView/subscriptionViewReducer");
|
|
@@ -1317,6 +1317,7 @@ Object.defineProperty(exports, "getTenantMerchantByMerchantId", { enumerable: tr
|
|
|
1317
1317
|
const arAgingReducer_1 = require("./view/arAgingView/arAgingReport/arAgingReducer");
|
|
1318
1318
|
Object.defineProperty(exports, "fetchArAging", { enumerable: true, get: function () { return arAgingReducer_1.fetchArAging; } });
|
|
1319
1319
|
Object.defineProperty(exports, "updateArAgingUIState", { enumerable: true, get: function () { return arAgingReducer_1.updateArAgingUIState; } });
|
|
1320
|
+
Object.defineProperty(exports, "updateArAgingNodeCollapseState", { enumerable: true, get: function () { return arAgingReducer_1.updateArAgingNodeCollapseState; } });
|
|
1320
1321
|
const arAgingSelector_1 = require("./view/arAgingView/arAgingReport/arAgingSelector");
|
|
1321
1322
|
Object.defineProperty(exports, "getArAgingReport", { enumerable: true, get: function () { return arAgingSelector_1.getArAgingReport; } });
|
|
1322
1323
|
const arAgingDetailReducer_1 = require("./view/arAgingView/arAgingDetail/arAgingDetailReducer");
|
package/lib/reducer.d.ts
CHANGED
|
@@ -83,7 +83,7 @@ import { EditRemiDetailViewState } from './view/spendManagement/reimbursement/ed
|
|
|
83
83
|
import { EditBillDetailViewState } from './view/spendManagement/billPay/editBillView/editBillViewState';
|
|
84
84
|
import { PreviousBillsState } from './view/spendManagement/billPay/previousBills/previousBillsState';
|
|
85
85
|
import { BillPayReviewState } from './view/spendManagement/billPay/billPayReview/billPayReviewState';
|
|
86
|
-
import { CustomerState } from './entity/customer/
|
|
86
|
+
import { CustomerState } from './entity/customer/customerState';
|
|
87
87
|
import { PaymentAccountState } from './entity/paymentAccount/paymentAccountState';
|
|
88
88
|
import { SubscriptionPaymentAccountState } from './entity/subscriptionPaymentAccount/subscriptionPaymentAccountState';
|
|
89
89
|
import { BillPaySetupViewState } from './view/spendManagement/billPay/billPaySetupView/billPaySetupViewState';
|
|
@@ -9,7 +9,7 @@ const toolkit_1 = require("@reduxjs/toolkit");
|
|
|
9
9
|
const get_1 = __importDefault(require("lodash/get"));
|
|
10
10
|
const accountPayload_1 = require("../../entity/account/accountPayload");
|
|
11
11
|
const accountState_1 = require("../../entity/account/accountState");
|
|
12
|
-
const
|
|
12
|
+
const getNestedAccountIDHierarchyForReport_1 = require("../../commonStateTypes/accountView/getNestedAccountIDHierarchyForReport");
|
|
13
13
|
exports.initialAccountList = {
|
|
14
14
|
fetchState: 'Not-Started',
|
|
15
15
|
error: undefined,
|
|
@@ -64,7 +64,7 @@ const accountList = (0, toolkit_1.createSlice)({
|
|
|
64
64
|
var _a, _b, _c, _d, _e, _f;
|
|
65
65
|
const exisitngData = draft.byReportId[action.payload.accountListKey];
|
|
66
66
|
const accountMetadata = (_b = (_a = action.payload.accountListResponse.data) === null || _a === void 0 ? void 0 : _a.accounts.map((acc) => (0, accountPayload_1.mapAccountMetadataPayloadToAccountMetadata)(acc))) !== null && _b !== void 0 ? _b : [];
|
|
67
|
-
draft.byReportId[action.payload.accountListKey] = Object.assign(Object.assign({}, exisitngData), { fetchState: 'Completed', error: undefined, accountIds: (_d = (_c = action.payload.accountListResponse.data) === null || _c === void 0 ? void 0 : _c.accounts.map((acc) => acc.account_id)) !== null && _d !== void 0 ? _d : [], nestedAccountHierarchy: (0,
|
|
67
|
+
draft.byReportId[action.payload.accountListKey] = Object.assign(Object.assign({}, exisitngData), { fetchState: 'Completed', error: undefined, accountIds: (_d = (_c = action.payload.accountListResponse.data) === null || _c === void 0 ? void 0 : _c.accounts.map((acc) => acc.account_id)) !== null && _d !== void 0 ? _d : [], nestedAccountHierarchy: (0, getNestedAccountIDHierarchyForReport_1.geNestedAccountIDHierarchyForReport)(accountMetadata) });
|
|
68
68
|
doUpdateAccountListByLabel(draft.byReportId[action.payload.accountListKey].accountIdsByLabel, (_f = (_e = action.payload.accountListResponse.data) === null || _e === void 0 ? void 0 : _e.accounts) !== null && _f !== void 0 ? _f : []);
|
|
69
69
|
},
|
|
70
70
|
updateAccountListFailure(draft, action) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { NestedAccountHierarchyForReport } from '../../commonStateTypes/accountView/nestedAccountID';
|
|
2
2
|
import { FetchState, ID } from '../../commonStateTypes/common';
|
|
3
3
|
import { SelectorView } from '../../commonStateTypes/viewAndReport/viewAndReport';
|
|
4
4
|
import { AccountBase, AccountLabel, AccountState } from '../../entity/account/accountState';
|
|
@@ -13,7 +13,7 @@ export interface UncategorizedAccounts {
|
|
|
13
13
|
export declare const getAccountList: (accountState: AccountState, accountListState: AccountListState, accountListKey: AccountListKeyType) => AccountListSelectorView;
|
|
14
14
|
export declare const getAccountListFetchState: (accountListState: AccountListState, accountListKey: AccountListKeyType) => FetchState;
|
|
15
15
|
export declare const getUncategorizedAccounts: (accountState: AccountState, accountListState: AccountListState, accountListKey: AccountListKeyType) => UncategorizedAccounts;
|
|
16
|
-
export declare const
|
|
16
|
+
export declare const getNestedAccountListHierarchy: (accountListState: AccountListState, accountListKey: AccountListKeyType) => NestedAccountHierarchyForReport[];
|
|
17
17
|
/**
|
|
18
18
|
* This function gets the list for given label and will filter out the accounts and
|
|
19
19
|
* nested accounts based on this label
|
|
@@ -25,6 +25,6 @@ export declare const getNestedAccountListHeirarchy: (accountListState: AccountLi
|
|
|
25
25
|
*/
|
|
26
26
|
export declare const getFilteredNestedAndAccountListsForLabel: (accountState: AccountState, accountListState: AccountListState, accountListKey: AccountListKeyType, accountLabel: AccountLabel) => {
|
|
27
27
|
accountList: AccountBase[];
|
|
28
|
-
nestedAccountList:
|
|
28
|
+
nestedAccountList: NestedAccountHierarchyForReport[];
|
|
29
29
|
};
|
|
30
30
|
export declare const getAccountIdsForLabel: (accountListState: AccountListState, accountListKey: AccountListKeyType, accountLabel: AccountLabel) => ID[];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getAccountIdsForLabel = exports.getFilteredNestedAndAccountListsForLabel = exports.
|
|
3
|
+
exports.getAccountIdsForLabel = exports.getFilteredNestedAndAccountListsForLabel = exports.getNestedAccountListHierarchy = exports.getUncategorizedAccounts = exports.getAccountListFetchState = exports.getAccountList = void 0;
|
|
4
4
|
const accountSelector_1 = require("../../entity/account/accountSelector");
|
|
5
5
|
const getAccountList = (accountState, accountListState, accountListKey) => {
|
|
6
6
|
const accListState = accountListState.byReportId[accountListKey];
|
|
@@ -44,10 +44,10 @@ const getUncategorizedAccounts = (accountState, accountListState, accountListKey
|
|
|
44
44
|
};
|
|
45
45
|
};
|
|
46
46
|
exports.getUncategorizedAccounts = getUncategorizedAccounts;
|
|
47
|
-
const
|
|
47
|
+
const getNestedAccountListHierarchy = (accountListState, accountListKey) => {
|
|
48
48
|
return accountListState.byReportId[accountListKey].nestedAccountHierarchy;
|
|
49
49
|
};
|
|
50
|
-
exports.
|
|
50
|
+
exports.getNestedAccountListHierarchy = getNestedAccountListHierarchy;
|
|
51
51
|
/**
|
|
52
52
|
* This function gets the list for given label and will filter out the accounts and
|
|
53
53
|
* nested accounts based on this label
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { NestedAccountHierarchyForReport } from '../../commonStateTypes/accountView/nestedAccountID';
|
|
2
2
|
import { FetchedState, ID } from '../../commonStateTypes/common';
|
|
3
3
|
import { AccountLabel } from '../../entity/account/accountState';
|
|
4
4
|
export declare type AccountListKeyType = 'accountList' | 'reimbursementAccountList' | 'schedulesAccountList' | 'billPayAccountList';
|
|
5
5
|
export interface AccountList extends FetchedState {
|
|
6
6
|
accountIds: ID[];
|
|
7
7
|
accountIdsByLabel: Record<AccountLabel, ID[]>;
|
|
8
|
-
nestedAccountHierarchy:
|
|
8
|
+
nestedAccountHierarchy: NestedAccountHierarchyForReport[];
|
|
9
9
|
}
|
|
10
10
|
export interface AccountListState {
|
|
11
11
|
byReportId: Record<AccountListKeyType, AccountList>;
|
|
@@ -5,7 +5,7 @@ exports.clearAccountMappingView = exports.saveAccountMappingSuccess = exports.sa
|
|
|
5
5
|
const toolkit_1 = require("@reduxjs/toolkit");
|
|
6
6
|
const accountTypeRecommendationPayload_1 = require("./accountTypeRecommendation/accountTypeRecommendationPayload");
|
|
7
7
|
const accountPayload_1 = require("../../entity/account/accountPayload");
|
|
8
|
-
const
|
|
8
|
+
const getNestedAccountIDHierarchyForReport_1 = require("../../commonStateTypes/accountView/getNestedAccountIDHierarchyForReport");
|
|
9
9
|
exports.initialState = {
|
|
10
10
|
data: {
|
|
11
11
|
isExpenseRecommendationChecked: false,
|
|
@@ -40,23 +40,23 @@ exports.initialState = {
|
|
|
40
40
|
fetchState: 'Not-Started',
|
|
41
41
|
},
|
|
42
42
|
incomeAccountIdList: [],
|
|
43
|
-
|
|
43
|
+
incomeNestedAccountListHierarchy: [],
|
|
44
44
|
incomeRecommendations: [],
|
|
45
45
|
expenseAccountIdList: [],
|
|
46
|
-
|
|
46
|
+
expenseNestedAccountListHierarchy: [],
|
|
47
47
|
expenseRecommendations: [],
|
|
48
|
-
|
|
48
|
+
billPayNestedAccountListHierarchy: [],
|
|
49
49
|
billPayRecommendations: [],
|
|
50
|
-
|
|
50
|
+
reimbursementsNestedAccountListHierarchy: [],
|
|
51
51
|
reimbursementsRecommendations: [],
|
|
52
52
|
prepaidExpensesAccountIdList: [],
|
|
53
|
-
|
|
53
|
+
prepaidExpensesNestedAccountListHierarchy: [],
|
|
54
54
|
prepaidExpensesRecommendations: [],
|
|
55
55
|
fixedAssetsAccountIdList: [],
|
|
56
|
-
|
|
56
|
+
fixedAssetsNestedAccountListHierarchy: [],
|
|
57
57
|
fixedAssetsRecommendations: [],
|
|
58
58
|
accruedExpensesAccountIdList: [],
|
|
59
|
-
|
|
59
|
+
accruedExpensesNestedAccountListHierarchy: [],
|
|
60
60
|
accruedExpensesRecommendations: [],
|
|
61
61
|
};
|
|
62
62
|
const accountMapping = (0, toolkit_1.createSlice)({
|
|
@@ -180,49 +180,49 @@ const doUpdateAccountListForAccountTypes = (draft, accountPayloadList) => {
|
|
|
180
180
|
if (incomeAccountIdentified != null) {
|
|
181
181
|
draft.data = Object.assign(Object.assign({}, draft.data), { selectedIncomeAccountId: incomeAccountIdentified.accountId, previousIncomeAccount: incomeAccountIdentified });
|
|
182
182
|
}
|
|
183
|
-
draft.
|
|
183
|
+
draft.incomeNestedAccountListHierarchy = (0, getNestedAccountIDHierarchyForReport_1.geNestedAccountIDHierarchyForReport)(incomeAccountMetadata);
|
|
184
184
|
const expenseAccountMetadata = expenseList.map((acc) => (0, accountPayload_1.mapAccountMetadataPayloadToAccountMetadata)(acc));
|
|
185
185
|
const expenseAccountBase = expenseList.map((acc) => (0, accountPayload_1.mapAccountBasePayloadToAccountBase)(acc));
|
|
186
186
|
const expenseAccountIdentified = expenseAccountBase.find((account) => account.labels.includes('uncategorized_expense'));
|
|
187
187
|
if (expenseAccountIdentified != null) {
|
|
188
188
|
draft.data = Object.assign(Object.assign({}, draft.data), { selectedExpenseAccountId: expenseAccountIdentified.accountId, previousExpenseAccount: expenseAccountIdentified });
|
|
189
189
|
}
|
|
190
|
-
draft.
|
|
190
|
+
draft.expenseNestedAccountListHierarchy = (0, getNestedAccountIDHierarchyForReport_1.geNestedAccountIDHierarchyForReport)(expenseAccountMetadata);
|
|
191
191
|
const billPayAccountIdentified = expenseAccountBase.find((account) => account.labels.includes('bank_charges_and_fees'));
|
|
192
192
|
if (billPayAccountIdentified != null) {
|
|
193
193
|
draft.data = Object.assign(Object.assign({}, draft.data), { selectedBillPayAccountId: billPayAccountIdentified.accountId, previousBillPayAccount: billPayAccountIdentified });
|
|
194
194
|
}
|
|
195
|
-
draft.
|
|
195
|
+
draft.billPayNestedAccountListHierarchy = (0, getNestedAccountIDHierarchyForReport_1.geNestedAccountIDHierarchyForReport)(expenseAccountMetadata);
|
|
196
196
|
const reimbursementsAccountIdentified = expenseAccountBase.find((account) => account.labels.includes('travel_transportation'));
|
|
197
197
|
if (reimbursementsAccountIdentified != null) {
|
|
198
198
|
draft.data = Object.assign(Object.assign({}, draft.data), { selectedReimbursementsAccountId: reimbursementsAccountIdentified.accountId, previousReimbursementsAccount: reimbursementsAccountIdentified });
|
|
199
199
|
}
|
|
200
|
-
draft.
|
|
201
|
-
(0,
|
|
200
|
+
draft.reimbursementsNestedAccountListHierarchy =
|
|
201
|
+
(0, getNestedAccountIDHierarchyForReport_1.geNestedAccountIDHierarchyForReport)(expenseAccountMetadata);
|
|
202
202
|
const prepaidExpensesAccountMetadata = prepaidExpensesList.map((acc) => (0, accountPayload_1.mapAccountMetadataPayloadToAccountMetadata)(acc));
|
|
203
203
|
const prepaidExpensesAccountBase = prepaidExpensesList.map((acc) => (0, accountPayload_1.mapAccountBasePayloadToAccountBase)(acc));
|
|
204
204
|
const prepaidExpensesAccountsIdentified = prepaidExpensesAccountBase.filter((account) => account.labels.includes('prepaid_expenses'));
|
|
205
205
|
if (prepaidExpensesAccountsIdentified != null) {
|
|
206
206
|
draft.data = Object.assign(Object.assign({}, draft.data), { selectedPrepaidExpensesAccountIds: prepaidExpensesAccountsIdentified.map((account) => account.accountId), previousPrepaidExpensesAccount: prepaidExpensesAccountsIdentified });
|
|
207
207
|
}
|
|
208
|
-
draft.
|
|
209
|
-
(0,
|
|
208
|
+
draft.prepaidExpensesNestedAccountListHierarchy =
|
|
209
|
+
(0, getNestedAccountIDHierarchyForReport_1.geNestedAccountIDHierarchyForReport)(prepaidExpensesAccountMetadata);
|
|
210
210
|
const fixedAssetsAccountMetadata = fixedAssetsList.map((acc) => (0, accountPayload_1.mapAccountMetadataPayloadToAccountMetadata)(acc));
|
|
211
211
|
const fixedAssetsAccountBase = fixedAssetsList.map((acc) => (0, accountPayload_1.mapAccountBasePayloadToAccountBase)(acc));
|
|
212
212
|
const fixedAssetsAccountsIdentified = fixedAssetsAccountBase.filter((account) => account.labels.includes('fixed_assets'));
|
|
213
213
|
if (fixedAssetsAccountsIdentified != null) {
|
|
214
214
|
draft.data = Object.assign(Object.assign({}, draft.data), { selectedFixedAssetsAccountIds: fixedAssetsAccountsIdentified.map((account) => account.accountId), previousFixedAssetsAccount: fixedAssetsAccountsIdentified });
|
|
215
215
|
}
|
|
216
|
-
draft.
|
|
217
|
-
(0,
|
|
216
|
+
draft.fixedAssetsNestedAccountListHierarchy =
|
|
217
|
+
(0, getNestedAccountIDHierarchyForReport_1.geNestedAccountIDHierarchyForReport)(fixedAssetsAccountMetadata);
|
|
218
218
|
const accruedExpensesAccountMetadata = accruedExpensesList.map((acc) => (0, accountPayload_1.mapAccountMetadataPayloadToAccountMetadata)(acc));
|
|
219
219
|
const accruedExpensesAccountBase = accruedExpensesList.map((acc) => (0, accountPayload_1.mapAccountBasePayloadToAccountBase)(acc));
|
|
220
220
|
const accruedExpensesAccountsIdentified = accruedExpensesAccountBase.filter((account) => account.labels.includes('accrued_expenses'));
|
|
221
221
|
if (accruedExpensesAccountsIdentified != null) {
|
|
222
222
|
draft.data = Object.assign(Object.assign({}, draft.data), { selectedAccruedExpensesAccountIds: accruedExpensesAccountsIdentified.map((account) => account.accountId), previousAccruedExpensesAccount: accruedExpensesAccountsIdentified });
|
|
223
223
|
}
|
|
224
|
-
draft.
|
|
225
|
-
(0,
|
|
224
|
+
draft.accruedExpensesNestedAccountListHierarchy =
|
|
225
|
+
(0, getNestedAccountIDHierarchyForReport_1.geNestedAccountIDHierarchyForReport)(accruedExpensesAccountMetadata);
|
|
226
226
|
draft.accountListFetchState = {
|
|
227
227
|
error: undefined,
|
|
228
228
|
fetchState: 'Completed',
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { NestedAccountHierarchyForReport } from '../../commonStateTypes/accountView/nestedAccountID';
|
|
2
2
|
import { FetchStateAndError, ID } from '../../commonStateTypes/common';
|
|
3
3
|
import { Recommendation } from '../../commonStateTypes/recommendationBase';
|
|
4
4
|
import { AccountBase } from '../../entity/account/accountState';
|
|
@@ -28,22 +28,22 @@ export interface AccountMappingState {
|
|
|
28
28
|
recommendationFetchState: FetchStateAndError;
|
|
29
29
|
updateFetchState: FetchStateAndError;
|
|
30
30
|
incomeAccountIdList: ID[];
|
|
31
|
-
|
|
31
|
+
incomeNestedAccountListHierarchy: NestedAccountHierarchyForReport[];
|
|
32
32
|
incomeRecommendations: Recommendation[];
|
|
33
33
|
expenseAccountIdList: ID[];
|
|
34
|
-
|
|
34
|
+
expenseNestedAccountListHierarchy: NestedAccountHierarchyForReport[];
|
|
35
35
|
expenseRecommendations: Recommendation[];
|
|
36
|
-
|
|
36
|
+
billPayNestedAccountListHierarchy: NestedAccountHierarchyForReport[];
|
|
37
37
|
billPayRecommendations: Recommendation[];
|
|
38
|
-
|
|
38
|
+
reimbursementsNestedAccountListHierarchy: NestedAccountHierarchyForReport[];
|
|
39
39
|
reimbursementsRecommendations: Recommendation[];
|
|
40
40
|
prepaidExpensesAccountIdList: ID[];
|
|
41
|
-
|
|
41
|
+
prepaidExpensesNestedAccountListHierarchy: NestedAccountHierarchyForReport[];
|
|
42
42
|
prepaidExpensesRecommendations: Recommendation[];
|
|
43
43
|
fixedAssetsAccountIdList: ID[];
|
|
44
|
-
|
|
44
|
+
fixedAssetsNestedAccountListHierarchy: NestedAccountHierarchyForReport[];
|
|
45
45
|
fixedAssetsRecommendations: Recommendation[];
|
|
46
46
|
accruedExpensesAccountIdList: ID[];
|
|
47
|
-
|
|
47
|
+
accruedExpensesNestedAccountListHierarchy: NestedAccountHierarchyForReport[];
|
|
48
48
|
accruedExpensesRecommendations: Recommendation[];
|
|
49
49
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { NestedAccountHierarchyForReport } from '../../commonStateTypes/accountView/nestedAccountID';
|
|
2
2
|
import { Recommendation } from '../../commonStateTypes/recommendationBase';
|
|
3
3
|
import { SelectorView } from '../../commonStateTypes/viewAndReport/viewAndReport';
|
|
4
4
|
import { AccountBase } from '../../entity/account/accountState';
|
|
@@ -20,13 +20,13 @@ export interface AccountMappingView extends SelectorView {
|
|
|
20
20
|
prepaidExpensesRecommendation: Recommendation[];
|
|
21
21
|
fixedAssetsRecommendation: Recommendation[];
|
|
22
22
|
accruedExpensesRecommendation: Recommendation[];
|
|
23
|
-
incomeAccountHierachy:
|
|
24
|
-
expenseAccountHierarchy:
|
|
25
|
-
billPayAccountHierarchy:
|
|
26
|
-
reimbursementsAccountHierarchy:
|
|
27
|
-
prepaidExpensesAccountHierarchy:
|
|
28
|
-
fixedAssetsAccountHierarchy:
|
|
29
|
-
accruedExpensesAccountHierarchy:
|
|
23
|
+
incomeAccountHierachy: NestedAccountHierarchyForReport[];
|
|
24
|
+
expenseAccountHierarchy: NestedAccountHierarchyForReport[];
|
|
25
|
+
billPayAccountHierarchy: NestedAccountHierarchyForReport[];
|
|
26
|
+
reimbursementsAccountHierarchy: NestedAccountHierarchyForReport[];
|
|
27
|
+
prepaidExpensesAccountHierarchy: NestedAccountHierarchyForReport[];
|
|
28
|
+
fixedAssetsAccountHierarchy: NestedAccountHierarchyForReport[];
|
|
29
|
+
accruedExpensesAccountHierarchy: NestedAccountHierarchyForReport[];
|
|
30
30
|
accountMappingLocalData?: AccountMappingLocalData;
|
|
31
31
|
saveState: FetchStateAndError;
|
|
32
32
|
}
|
|
@@ -83,13 +83,13 @@ exports.getAccountMappingView = (0, toolkit_1.createSelector)((state) => state.a
|
|
|
83
83
|
fixedAssetsRecommendation: accountMappingState.fixedAssetsRecommendations,
|
|
84
84
|
accruedExpensesRecommendation: accountMappingState.accruedExpensesRecommendations,
|
|
85
85
|
accountMappingLocalData: accountMappingState.data,
|
|
86
|
-
incomeAccountHierachy: accountMappingState.
|
|
87
|
-
expenseAccountHierarchy: accountMappingState.
|
|
88
|
-
billPayAccountHierarchy: accountMappingState.
|
|
89
|
-
reimbursementsAccountHierarchy: accountMappingState.
|
|
90
|
-
prepaidExpensesAccountHierarchy: accountMappingState.
|
|
91
|
-
fixedAssetsAccountHierarchy: accountMappingState.
|
|
92
|
-
accruedExpensesAccountHierarchy: accountMappingState.
|
|
86
|
+
incomeAccountHierachy: accountMappingState.incomeNestedAccountListHierarchy,
|
|
87
|
+
expenseAccountHierarchy: accountMappingState.expenseNestedAccountListHierarchy,
|
|
88
|
+
billPayAccountHierarchy: accountMappingState.billPayNestedAccountListHierarchy,
|
|
89
|
+
reimbursementsAccountHierarchy: accountMappingState.reimbursementsNestedAccountListHierarchy,
|
|
90
|
+
prepaidExpensesAccountHierarchy: accountMappingState.prepaidExpensesNestedAccountListHierarchy,
|
|
91
|
+
fixedAssetsAccountHierarchy: accountMappingState.fixedAssetsNestedAccountListHierarchy,
|
|
92
|
+
accruedExpensesAccountHierarchy: accountMappingState.accruedExpensesNestedAccountListHierarchy,
|
|
93
93
|
fetchState: fetchState.fetchState,
|
|
94
94
|
saveState,
|
|
95
95
|
};
|
|
@@ -1,15 +1,17 @@
|
|
|
1
|
-
import { ApAgingState } from './apAgingState';
|
|
1
|
+
import { ApAgingState, APAgingBalancesByAgingBalancesKey } from './apAgingState';
|
|
2
2
|
import { ApAgingPayload } from './apAgingPayload';
|
|
3
3
|
import { ZeniAPIStatus } from '../../../responsePayload';
|
|
4
4
|
import { AgingReportUIState } from '../../../commonStateTypes/viewAndReport/agingReportStateTypes';
|
|
5
5
|
export declare const inititalUIState: AgingReportUIState;
|
|
6
6
|
export declare const initialState: ApAgingState;
|
|
7
|
-
export declare const
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
export declare const initialStateAgingBalances: APAgingBalancesByAgingBalancesKey;
|
|
8
|
+
export declare const fetchApAging: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[reportDate: import("dayjs").Dayjs, cacheOverride?: any], {
|
|
9
|
+
cacheOverride: any;
|
|
10
|
+
reportDate: import("dayjs").Dayjs;
|
|
10
11
|
}, string, never, never>, updateApAgingUIState: import("@reduxjs/toolkit").ActionCreatorWithPayload<Partial<AgingReportUIState>, string>, updateApAgingOnFailure: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[error: ZeniAPIStatus<Record<string, unknown>>], {
|
|
11
12
|
error: ZeniAPIStatus<Record<string, unknown>>;
|
|
12
|
-
}, string, never, never>, updateApAgingOnSuccess: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[data: ApAgingPayload], {
|
|
13
|
+
}, string, never, never>, updateApAgingOnSuccess: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[reportDate: import("dayjs").Dayjs, data: ApAgingPayload], {
|
|
14
|
+
reportDate: import("dayjs").Dayjs;
|
|
13
15
|
data: ApAgingPayload;
|
|
14
16
|
}, string, never, never>, clearApAging: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>;
|
|
15
17
|
declare const _default: import("@reduxjs/toolkit").Reducer<ApAgingState, import("@reduxjs/toolkit").AnyAction>;
|