@zeniai/client-epic-state 4.12.97 → 4.12.99
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/commonStateTypes/common.d.ts +2 -0
- package/lib/commonStateTypes/common.js +5 -1
- package/lib/commonStateTypes/fiscalYearHelpers/formatZeniDateFY.d.ts +1 -0
- package/lib/commonStateTypes/fiscalYearHelpers/formatZeniDateFY.js +2 -1
- package/lib/commonStateTypes/timePeriod.d.ts +16 -0
- package/lib/commonStateTypes/timePeriod.js +31 -1
- package/lib/commonStateTypes/viewAndReport/reportIDHelper.d.ts +1 -0
- package/lib/commonStateTypes/viewAndReport/reportIDHelper.js +3 -1
- package/lib/commonStateTypes/viewAndReport/viewAndReport.d.ts +2 -2
- package/lib/commonStateTypes/viewAndReport/viewAndReport.js +2 -0
- package/lib/entity/account/accountState.d.ts +1 -1
- package/lib/entity/accountGroup/accountGroupState.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/companyStateTypes.d.ts +1 -1
- package/lib/entity/forecast/forecastState.d.ts +1 -1
- package/lib/entity/jeSchedules/jeSchedulesPayload.d.ts +1 -0
- package/lib/entity/jeSchedules/jeSchedulesPayload.js +7 -1
- package/lib/entity/jeSchedules/jeSchedulesReducer.d.ts +2 -2
- package/lib/entity/jeSchedules/jeSchedulesSelector.d.ts +3 -1
- package/lib/entity/jeSchedules/jeSchedulesSelector.js +2 -1
- package/lib/entity/jeSchedules/jeSchedulesState.d.ts +3 -1
- package/lib/entity/jeSchedules/jeSchedulesTypes.d.ts +2 -0
- package/lib/entity/jeSchedules/jeSchedulesTypes.js +12 -1
- package/lib/entity/monthEndCloseChecks/monthEndCloseChecksPayload.d.ts +32 -0
- package/lib/entity/monthEndCloseChecks/monthEndCloseChecksPayload.js +53 -0
- package/lib/entity/monthEndCloseChecks/monthEndCloseChecksReducer.d.ts +12 -0
- package/lib/entity/monthEndCloseChecks/monthEndCloseChecksReducer.js +25 -0
- package/lib/entity/monthEndCloseChecks/monthEndCloseChecksSelector.d.ts +7 -0
- package/lib/entity/monthEndCloseChecks/monthEndCloseChecksSelector.js +36 -0
- package/lib/entity/monthEndCloseChecks/monthEndCloseChecksState.d.ts +38 -0
- package/lib/entity/monthEndCloseChecks/monthEndCloseChecksState.js +10 -0
- 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/tenant/clearAllEpic.d.ts +9 -2
- package/lib/entity/tenant/clearAllEpic.js +14 -0
- package/lib/entity/tenant/epic/fetchAllTenantsEpic.d.ts +4 -1
- package/lib/entity/tenant/epic/fetchAllTenantsEpic.js +32 -2
- package/lib/entity/tenant/tenantPayload.d.ts +1 -0
- package/lib/entity/tenant/tenantReducer.js +3 -0
- package/lib/entity/tenant/tenantState.d.ts +1 -0
- package/lib/entity/transaction/payloadTypes/attachmentPayload.d.ts +1 -1
- package/lib/entity/transaction/payloadTypes/attachmentPayload.js +3 -3
- package/lib/entity/transaction/stateTypes/transactionType.d.ts +2 -2
- package/lib/entity/transaction/transactionSelector.d.ts +1 -0
- package/lib/entity/transaction/transactionSelector.js +7 -1
- package/lib/entity/vendor/__mocks__/vendorStateMocks.d.ts +1 -0
- package/lib/entity/vendor/__mocks__/vendorStateMocks.js +35 -1
- package/lib/entity/vendor/vendorPayload.js +3 -2
- package/lib/entity/vendor/vendorState.d.ts +3 -3
- package/lib/entity/vendor/vendorType.d.ts +0 -2
- package/lib/entity/vendor/vendorType.js +1 -4
- package/lib/epic.d.ts +10 -1
- package/lib/epic.js +10 -1
- package/lib/index.d.ts +40 -8
- package/lib/index.js +74 -25
- package/lib/reducer.d.ts +22 -1
- package/lib/reducer.js +22 -1
- package/lib/view/auditReportView/auditReportViewState.d.ts +2 -2
- package/lib/view/billPayCard/billPayCardSelector.d.ts +1 -1
- package/lib/view/cardBalance/cardBalanceSelector.d.ts +1 -1
- package/lib/view/cashBalance/cashBalanceSelector.d.ts +1 -1
- package/lib/view/cashInCashOut/cashInCashOutSelector.d.ts +1 -1
- package/lib/view/cashPosition/cashPositionSelector.d.ts +1 -1
- package/lib/view/companyMonthEndReportView/companyMonthEndReportViewReducer.d.ts +10 -5
- package/lib/view/companyMonthEndReportView/companyMonthEndReportViewReducer.js +10 -7
- package/lib/view/companyMonthEndReportView/epics/fetchCompanyMonthEndReportTemplatesEpic.js +4 -4
- package/lib/view/companyMonthEndReportView/epics/fetchCompanyMonthEndReportViewEpic.js +4 -4
- package/lib/view/companyMonthEndReportView/epics/improveUsingZeniGPTEpic.js +5 -3
- package/lib/view/companyMonthEndReportView/epics/saveCompanyMonthEndReportEpic.js +3 -3
- package/lib/view/companyMonthEndReportView/epics/sendCompanyMonthEndReportEpic.js +3 -3
- package/lib/view/companyView/types/cockpitTypes.d.ts +2 -2
- package/lib/view/dashboard/dashboardEpic.d.ts +2 -1
- package/lib/view/dashboard/dashboardEpic.js +22 -2
- package/lib/view/dashboard/dashboardReducer.d.ts +3 -2
- package/lib/view/dashboard/dashboardReducer.js +2 -1
- package/lib/view/dashboard/dashboardSelector.d.ts +2 -0
- package/lib/view/dashboard/dashboardSelector.js +10 -2
- package/lib/view/expenseAutomationView/epics/common/fetchAllExpenseAutomationTabsEpic.d.ts +10 -0
- package/lib/view/expenseAutomationView/epics/common/fetchAllExpenseAutomationTabsEpic.js +72 -0
- package/lib/view/expenseAutomationView/epics/common/refreshExpenseAutomationCurrentTabEpic.d.ts +11 -0
- package/lib/view/expenseAutomationView/epics/common/refreshExpenseAutomationCurrentTabEpic.js +53 -0
- package/lib/view/expenseAutomationView/epics/fluxAnalysis/fetchFluxAnalysisViewEpic.d.ts +11 -0
- package/lib/view/expenseAutomationView/epics/fluxAnalysis/fetchFluxAnalysisViewEpic.js +66 -0
- package/lib/view/expenseAutomationView/epics/fluxAnalysis/reviewFluxAnalysisEpic.d.ts +7 -0
- package/lib/view/expenseAutomationView/epics/fluxAnalysis/reviewFluxAnalysisEpic.js +39 -0
- package/lib/view/expenseAutomationView/epics/jeSchedule/fetchJeSchedulePageEpic.d.ts +7 -0
- package/lib/view/expenseAutomationView/epics/jeSchedule/fetchJeSchedulePageEpic.js +22 -0
- package/lib/view/expenseAutomationView/epics/jeSchedule/fetchJeSchedulesEpic.d.ts +8 -0
- package/lib/view/expenseAutomationView/epics/jeSchedule/fetchJeSchedulesEpic.js +59 -0
- package/lib/view/expenseAutomationView/epics/jeSchedule/ignoreRecommendedJeScheduleEpic.d.ts +7 -0
- package/lib/view/expenseAutomationView/epics/jeSchedule/ignoreRecommendedJeScheduleEpic.js +44 -0
- package/lib/view/expenseAutomationView/epics/jeSchedule/initializeJeScheduleLocalDataEpic.d.ts +6 -0
- package/lib/view/expenseAutomationView/epics/jeSchedule/initializeJeScheduleLocalDataEpic.js +28 -0
- package/lib/view/expenseAutomationView/epics/jeSchedule/retryJeSchedulesEpic.d.ts +8 -0
- package/lib/view/expenseAutomationView/epics/jeSchedule/retryJeSchedulesEpic.js +44 -0
- package/lib/view/expenseAutomationView/epics/missingReceipts/fetchMissingReceiptsEpic.d.ts +8 -0
- package/lib/view/expenseAutomationView/epics/missingReceipts/fetchMissingReceiptsEpic.js +58 -0
- package/lib/view/expenseAutomationView/epics/missingReceipts/uploadMissingReceiptSuccessEpic.d.ts +10 -0
- package/lib/view/expenseAutomationView/epics/missingReceipts/uploadMissingReceiptSuccessEpic.js +12 -0
- package/lib/view/expenseAutomationView/expenseAutomationViewPayload.d.ts +3 -0
- package/lib/view/expenseAutomationView/expenseAutomationViewPayload.js +2 -0
- package/lib/view/expenseAutomationView/expenseAutomationViewReducer.d.ts +17 -0
- package/lib/view/expenseAutomationView/expenseAutomationViewReducer.js +66 -0
- package/lib/view/expenseAutomationView/expenseAutomationViewSelector.d.ts +3 -0
- package/lib/view/expenseAutomationView/expenseAutomationViewSelector.js +97 -0
- package/lib/view/expenseAutomationView/expenseAutomationViewState.d.ts +11 -0
- package/lib/view/expenseAutomationView/expenseAutomationViewState.js +14 -0
- package/lib/view/expenseAutomationView/helpers/helpers.d.ts +7 -0
- package/lib/view/expenseAutomationView/helpers/helpers.js +67 -0
- package/lib/view/expenseAutomationView/payload/fluxAnalysisPayload.d.ts +76 -0
- package/lib/view/expenseAutomationView/payload/fluxAnalysisPayload.js +9 -0
- package/lib/view/expenseAutomationView/payload/jeSchedulesPayload.d.ts +36 -0
- package/lib/view/expenseAutomationView/payload/jeSchedulesPayload.js +58 -0
- package/lib/view/expenseAutomationView/payload/missingReceiptsPayload.d.ts +16 -0
- package/lib/view/expenseAutomationView/payload/missingReceiptsPayload.js +2 -0
- package/lib/view/expenseAutomationView/reducers/fluxAnalysisViewReducer.d.ts +34 -0
- package/lib/view/expenseAutomationView/reducers/fluxAnalysisViewReducer.js +205 -0
- package/lib/view/expenseAutomationView/reducers/jeSchedulesViewReducer.d.ts +53 -0
- package/lib/view/expenseAutomationView/reducers/jeSchedulesViewReducer.js +245 -0
- package/lib/view/expenseAutomationView/reducers/missingReceiptsViewReducer.d.ts +31 -0
- package/lib/view/expenseAutomationView/reducers/missingReceiptsViewReducer.js +130 -0
- package/lib/view/expenseAutomationView/reducers/transactionsViewReducer.d.ts +5 -0
- package/lib/view/expenseAutomationView/reducers/transactionsViewReducer.js +45 -0
- package/lib/view/expenseAutomationView/selectorTypes/expenseAutomationViewSelectorTypes.d.ts +35 -0
- package/lib/view/expenseAutomationView/selectorTypes/expenseAutomationViewSelectorTypes.js +47 -0
- package/lib/view/expenseAutomationView/selectorTypes/fluxAnalysisViewSelectorTypes.d.ts +32 -0
- package/lib/view/expenseAutomationView/selectorTypes/fluxAnalysisViewSelectorTypes.js +2 -0
- package/lib/view/expenseAutomationView/selectorTypes/jeSchedulesSelectorTypes.d.ts +28 -0
- package/lib/view/expenseAutomationView/selectorTypes/jeSchedulesSelectorTypes.js +2 -0
- package/lib/view/expenseAutomationView/selectorTypes/missingReceiptsSelectorTypes.d.ts +11 -0
- package/lib/view/expenseAutomationView/selectorTypes/missingReceiptsSelectorTypes.js +2 -0
- package/lib/view/expenseAutomationView/selectors/fluxAnalysisViewSelector.d.ts +3 -0
- package/lib/view/expenseAutomationView/selectors/fluxAnalysisViewSelector.js +55 -0
- package/lib/view/expenseAutomationView/selectors/jeSchedulesViewSelector.d.ts +7 -0
- package/lib/view/expenseAutomationView/selectors/jeSchedulesViewSelector.js +95 -0
- package/lib/view/expenseAutomationView/selectors/missingReceiptsSelector.d.ts +3 -0
- package/lib/view/expenseAutomationView/selectors/missingReceiptsSelector.js +61 -0
- package/lib/view/expenseAutomationView/types/fluxAnalysisViewState.d.ts +53 -0
- package/lib/view/expenseAutomationView/types/fluxAnalysisViewState.js +5 -0
- package/lib/view/expenseAutomationView/types/jeSchedulesViewState.d.ts +31 -0
- package/lib/view/expenseAutomationView/types/jeSchedulesViewState.js +2 -0
- package/lib/view/expenseAutomationView/types/missingReceiptsViewState.d.ts +20 -0
- package/lib/view/expenseAutomationView/types/missingReceiptsViewState.js +13 -0
- package/lib/view/expenseAutomationView/types/transactionsViewState.d.ts +28 -0
- package/lib/view/expenseAutomationView/types/transactionsViewState.js +15 -0
- package/lib/view/financeStatement/financeStatementReducer.d.ts +1 -1
- package/lib/view/globalMerchantView/globalMerchantViewReducer.d.ts +2 -2
- package/lib/view/monthEndCloseChecksView/epics/fetchMonthEndCloseChecksEpic.d.ts +8 -0
- package/lib/view/monthEndCloseChecksView/epics/fetchMonthEndCloseChecksEpic.js +58 -0
- package/lib/view/monthEndCloseChecksView/monthEndCloseChecksViewPayload.d.ts +3 -0
- package/lib/view/monthEndCloseChecksView/monthEndCloseChecksViewPayload.js +2 -0
- package/lib/view/monthEndCloseChecksView/monthEndCloseChecksViewReducer.d.ts +16 -0
- package/lib/view/monthEndCloseChecksView/monthEndCloseChecksViewReducer.js +36 -0
- package/lib/view/monthEndCloseChecksView/monthEndCloseChecksViewSelector.d.ts +10 -0
- package/lib/view/monthEndCloseChecksView/monthEndCloseChecksViewSelector.js +27 -0
- package/lib/view/monthEndCloseChecksView/monthEndCloseChecksViewState.d.ts +5 -0
- package/lib/view/monthEndCloseChecksView/monthEndCloseChecksViewState.js +2 -0
- package/lib/view/reimbursementCard/reimbursementCardSelector.d.ts +1 -1
- package/lib/view/reviewCompanyView/reviewCompanyViewState.d.ts +1 -1
- package/lib/view/scheduleView/scheduleAccruedDetailView/LinkBillExpenseView/linkBillExpense.d.ts +1 -1
- package/lib/view/scheduleView/scheduleDetailView/epics/fetchScheduleDetailsEpic.js +3 -2
- package/lib/view/scheduleView/scheduleDetailView/epics/fetchScheduleDetailsPageEpic.js +1 -1
- package/lib/view/scheduleView/scheduleDetailView/epics/saveScheduleDetailsEpic.js +2 -2
- package/lib/view/scheduleView/scheduleDetailView/scheduleDetailLocalDataHelper.js +19 -5
- package/lib/view/scheduleView/scheduleDetailView/scheduleDetailPayload.d.ts +8 -3
- package/lib/view/scheduleView/scheduleDetailView/scheduleDetailPayload.js +39 -57
- package/lib/view/scheduleView/scheduleDetailView/scheduleDetailReducer.d.ts +13 -8
- package/lib/view/scheduleView/scheduleDetailView/scheduleDetailReducer.js +19 -12
- package/lib/view/scheduleView/scheduleDetailView/scheduleDetailSelector.d.ts +1 -0
- package/lib/view/scheduleView/scheduleDetailView/scheduleDetailSelector.js +4 -3
- package/lib/view/scheduleView/scheduleDetailView/scheduleDetailState.d.ts +2 -0
- package/lib/view/scheduleView/scheduleListView/scheduleListTypes.d.ts +1 -1
- package/lib/view/spendManagement/billPay/editBillView/epics/parseInvoiceToBillEpic.js +2 -2
- package/lib/view/spendManagement/chargeCards/chargeCardList/chargeCardList.d.ts +1 -1
- package/lib/view/spendManagement/reimbursement/editRemiView/epics/parseReceiptsToRemiEpic.js +2 -2
- package/lib/view/subscriptionView/types/subscriptionTypes.d.ts +1 -1
- package/lib/view/tasksCard/tasksCardSelector.d.ts +1 -1
- package/lib/view/topEx/topExSelector.d.ts +1 -1
- package/lib/view/transactionDetail/epics/uploadMissingReceiptSuccessEpic.js +2 -2
- package/lib/view/transactionDetail/transactionDetailState.d.ts +2 -2
- package/lib/view/vendorReviewView/common/state/commonTypes.d.ts +1 -1
- package/lib/view/zeniAccStatementList/zeniAccStatementList.d.ts +2 -5
- package/lib/view/zeniAccountsPromoCard/zeniAccountsPromoCardReducer.js +3 -1
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.prepareScheduleDetailPayload = exports.mapAccruedExpenseJEScheduleTransactionToPayload = void 0;
|
|
3
|
+
exports.prepareScheduleDetailPayload = exports.mapAccruedExpenseJEScheduleTransactionToPayload = exports.mapScheduleTransactionToBaseScheduleTransactionPayload = exports.mapVendorToVendorPayload = void 0;
|
|
4
4
|
const jeSchedulesSelector_1 = require("../../../entity/jeSchedules/jeSchedulesSelector");
|
|
5
5
|
const timePeriod_1 = require("../../../commonStateTypes/timePeriod");
|
|
6
6
|
const formatZeniDateFY_1 = require("../../../commonStateTypes/fiscalYearHelpers/formatZeniDateFY");
|
|
@@ -8,6 +8,7 @@ const mapVendorToVendorPayload = (payload) => ({
|
|
|
8
8
|
vendor_id: payload.id,
|
|
9
9
|
vendor_name: payload.name,
|
|
10
10
|
});
|
|
11
|
+
exports.mapVendorToVendorPayload = mapVendorToVendorPayload;
|
|
11
12
|
const mapScheduleTransactionToBaseScheduleTransactionPayload = (payload) => {
|
|
12
13
|
var _a, _b;
|
|
13
14
|
return {
|
|
@@ -25,6 +26,7 @@ const mapScheduleTransactionToBaseScheduleTransactionPayload = (payload) => {
|
|
|
25
26
|
accounting_class_name: payload.classBase != null ? payload.classBase.className : '',
|
|
26
27
|
};
|
|
27
28
|
};
|
|
29
|
+
exports.mapScheduleTransactionToBaseScheduleTransactionPayload = mapScheduleTransactionToBaseScheduleTransactionPayload;
|
|
28
30
|
const mapJEScheduleLocalDataToScheduleDetailPayload = (jeScheduleDetails, jeScheduleTransactionState, isDelete) => {
|
|
29
31
|
const scheduleJournalEntry = jeScheduleTransactionState.scheduledJournalEntry;
|
|
30
32
|
return jeScheduleDetails.length > 0
|
|
@@ -93,10 +95,10 @@ const getJECreditAccountId = ({ isMarkAsComplete, jeScheduleTransactionState, })
|
|
|
93
95
|
}
|
|
94
96
|
return (_b = (_a = jeCredit.account) === null || _a === void 0 ? void 0 : _a.accountId) !== null && _b !== void 0 ? _b : baseTransaction.account.accountId;
|
|
95
97
|
};
|
|
96
|
-
const mapJEScheduleTransactionToPayload = (jeScheduleTransactionState, vendorState, scheduleDetailsLocalData, jeScheduleType, isDelete, isMarkAsComplete) => {
|
|
97
|
-
var _a, _b;
|
|
98
|
+
const mapJEScheduleTransactionToPayload = (jeScheduleTransactionState, vendorState, scheduleDetailsLocalData, jeScheduleType, isDelete, isMarkAsComplete, isUpdatingVendorCategoryOrClass) => {
|
|
99
|
+
var _a, _b, _c, _d;
|
|
98
100
|
const { vendor, currencyCode, currencySymbol, baseTransaction, status, startDate, endDate, balanceAsOfToday, jeScheduleId, } = jeScheduleTransactionState;
|
|
99
|
-
const { selectedMonths, selectedAccount, selectedClass, selectedDayOfMonth, lastDayOfMonth, } = scheduleDetailsLocalData;
|
|
101
|
+
const { selectedMonths, selectedAccount, selectedClass, selectedDayOfMonth, lastDayOfMonth, selectedVendor, } = scheduleDetailsLocalData;
|
|
100
102
|
let updatedStatus = Object.assign({}, status);
|
|
101
103
|
// if the current status is marked as completed, we need to send the status as new when creating a new schedule.
|
|
102
104
|
if (status.code === 'marked_as_completed') {
|
|
@@ -121,42 +123,32 @@ const mapJEScheduleTransactionToPayload = (jeScheduleTransactionState, vendorSta
|
|
|
121
123
|
: null;
|
|
122
124
|
const vendorID = vendor.id;
|
|
123
125
|
const vendorDetails = vendorState.vendorByID[vendorID];
|
|
124
|
-
const
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
posting_date: postingDate,
|
|
132
|
-
je_schedule_id: status.code === 'marked_as_completed' ? jeScheduleId : undefined,
|
|
133
|
-
balance: getBalanceAmountAsOfToday({
|
|
126
|
+
const updatedVendor = {
|
|
127
|
+
vendor_id: (_a = selectedVendor === null || selectedVendor === void 0 ? void 0 : selectedVendor.id) !== null && _a !== void 0 ? _a : '',
|
|
128
|
+
vendor_name: (_b = selectedVendor === null || selectedVendor === void 0 ? void 0 : selectedVendor.name) !== null && _b !== void 0 ? _b : '',
|
|
129
|
+
};
|
|
130
|
+
const payload = Object.assign(Object.assign({ status: updatedStatus, vendor: (selectedVendor === null || selectedVendor === void 0 ? void 0 : selectedVendor.id) !== ''
|
|
131
|
+
? updatedVendor
|
|
132
|
+
: (0, exports.mapVendorToVendorPayload)(vendorDetails), currency_code: currencyCode, currency_symbol: currencySymbol, period: selectedMonths !== null && selectedMonths !== void 0 ? selectedMonths : null, je_schedule_type: jeScheduleType, posting_date: postingDate, je_schedule_id: status.code === 'marked_as_completed' ? jeScheduleId : undefined, balance: getBalanceAmountAsOfToday({
|
|
134
133
|
isMarkAsComplete,
|
|
135
134
|
balanceAsOfToday,
|
|
136
135
|
baseTransaction,
|
|
137
|
-
}),
|
|
138
|
-
start_date: (_a = startDate === null || startDate === void 0 ? void 0 : startDate.format(formatZeniDateFY_1.DEFAULT_DATE_FORMAT)) !== null && _a !== void 0 ? _a : firstJEScheduleDate,
|
|
139
|
-
end_date: (_b = endDate === null || endDate === void 0 ? void 0 : endDate.format(formatZeniDateFY_1.DEFAULT_DATE_FORMAT)) !== null && _b !== void 0 ? _b : lastJEScheduleDate,
|
|
140
|
-
je_credit_accounting_class_id: getJECreditAccountingClassId({
|
|
136
|
+
}), start_date: (_c = startDate === null || startDate === void 0 ? void 0 : startDate.format(formatZeniDateFY_1.DEFAULT_DATE_FORMAT)) !== null && _c !== void 0 ? _c : firstJEScheduleDate, end_date: (_d = endDate === null || endDate === void 0 ? void 0 : endDate.format(formatZeniDateFY_1.DEFAULT_DATE_FORMAT)) !== null && _d !== void 0 ? _d : lastJEScheduleDate, je_credit_accounting_class_id: getJECreditAccountingClassId({
|
|
141
137
|
isMarkAsComplete,
|
|
142
138
|
jeScheduleTransactionState,
|
|
143
|
-
}),
|
|
144
|
-
je_credit_account_id: getJECreditAccountId({
|
|
139
|
+
}), je_credit_account_id: getJECreditAccountId({
|
|
145
140
|
isMarkAsComplete,
|
|
146
141
|
jeScheduleTransactionState,
|
|
147
|
-
}),
|
|
148
|
-
|
|
149
|
-
je_debit_accounting_class_id: selectedClass !== null && selectedClass !== void 0 ? selectedClass : null,
|
|
150
|
-
other_attributes: {},
|
|
151
|
-
base_transaction: mapScheduleTransactionToBaseScheduleTransactionPayload(baseTransaction),
|
|
152
|
-
};
|
|
142
|
+
}) }, (isUpdatingVendorCategoryOrClass === true
|
|
143
|
+
? { is_update_vendor_category_or_class: true }
|
|
144
|
+
: {})), { je_debit_account_id: selectedAccount !== null && selectedAccount !== void 0 ? selectedAccount : null, je_debit_accounting_class_id: selectedClass !== null && selectedClass !== void 0 ? selectedClass : null, other_attributes: {}, base_transaction: (0, exports.mapScheduleTransactionToBaseScheduleTransactionPayload)(baseTransaction) });
|
|
153
145
|
return isDelete === true
|
|
154
146
|
? Object.assign(Object.assign({}, payload), { is_deleted: true }) : payload;
|
|
155
147
|
};
|
|
156
|
-
const mapFixedAssetJEScheduleTransactionToPayload = (jeScheduleTransactionState, vendorState, scheduleDetailsLocalData, isDelete, isMarkAsComplete) => {
|
|
157
|
-
var _a, _b;
|
|
148
|
+
const mapFixedAssetJEScheduleTransactionToPayload = (jeScheduleTransactionState, vendorState, scheduleDetailsLocalData, isDelete, isMarkAsComplete, isUpdatingVendorCategoryOrClass) => {
|
|
149
|
+
var _a, _b, _c, _d;
|
|
158
150
|
const { vendor, currencyCode, currencySymbol, baseTransaction, status, startDate, endDate, balanceAsOfToday, jeScheduleId, } = jeScheduleTransactionState;
|
|
159
|
-
const { selectedMonths, selectedAccount, selectedClass, selectedDayOfMonth, lastDayOfMonth, selectedAccumulatedDepreciationCategory, assetId, } = scheduleDetailsLocalData;
|
|
151
|
+
const { selectedMonths, selectedAccount, selectedClass, selectedDayOfMonth, lastDayOfMonth, selectedAccumulatedDepreciationCategory, assetId, selectedVendor, } = scheduleDetailsLocalData;
|
|
160
152
|
let updatedStatus = Object.assign({}, status);
|
|
161
153
|
// if the current status is marked as completed, we need to send the status as new when creating a new schedule.
|
|
162
154
|
if (status.code === 'marked_as_completed') {
|
|
@@ -181,38 +173,28 @@ const mapFixedAssetJEScheduleTransactionToPayload = (jeScheduleTransactionState,
|
|
|
181
173
|
: null;
|
|
182
174
|
const vendorID = vendor.id;
|
|
183
175
|
const vendorDetails = vendorState.vendorByID[vendorID];
|
|
184
|
-
const
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
posting_date: postingDate,
|
|
192
|
-
je_schedule_id: status.code === 'marked_as_completed' ? jeScheduleId : undefined,
|
|
193
|
-
balance: getBalanceAmountAsOfToday({
|
|
176
|
+
const updatedVendor = {
|
|
177
|
+
vendor_id: (_a = selectedVendor === null || selectedVendor === void 0 ? void 0 : selectedVendor.id) !== null && _a !== void 0 ? _a : '',
|
|
178
|
+
vendor_name: (_b = selectedVendor === null || selectedVendor === void 0 ? void 0 : selectedVendor.name) !== null && _b !== void 0 ? _b : '',
|
|
179
|
+
};
|
|
180
|
+
const payload = Object.assign(Object.assign({ status: updatedStatus, vendor: (selectedVendor === null || selectedVendor === void 0 ? void 0 : selectedVendor.id) !== ''
|
|
181
|
+
? updatedVendor
|
|
182
|
+
: (0, exports.mapVendorToVendorPayload)(vendorDetails), currency_code: currencyCode, currency_symbol: currencySymbol, period: selectedMonths !== null && selectedMonths !== void 0 ? selectedMonths : null, je_schedule_type: 'fixed_assets', posting_date: postingDate, je_schedule_id: status.code === 'marked_as_completed' ? jeScheduleId : undefined, balance: getBalanceAmountAsOfToday({
|
|
194
183
|
isMarkAsComplete,
|
|
195
184
|
balanceAsOfToday,
|
|
196
185
|
baseTransaction,
|
|
197
|
-
}),
|
|
198
|
-
start_date: (_a = startDate === null || startDate === void 0 ? void 0 : startDate.format(formatZeniDateFY_1.DEFAULT_DATE_FORMAT)) !== null && _a !== void 0 ? _a : firstJEScheduleDate,
|
|
199
|
-
end_date: (_b = endDate === null || endDate === void 0 ? void 0 : endDate.format(formatZeniDateFY_1.DEFAULT_DATE_FORMAT)) !== null && _b !== void 0 ? _b : lastJEScheduleDate,
|
|
200
|
-
je_credit_accounting_class_id: getJECreditAccountingClassId({
|
|
186
|
+
}), start_date: (_c = startDate === null || startDate === void 0 ? void 0 : startDate.format(formatZeniDateFY_1.DEFAULT_DATE_FORMAT)) !== null && _c !== void 0 ? _c : firstJEScheduleDate, end_date: (_d = endDate === null || endDate === void 0 ? void 0 : endDate.format(formatZeniDateFY_1.DEFAULT_DATE_FORMAT)) !== null && _d !== void 0 ? _d : lastJEScheduleDate, je_credit_accounting_class_id: getJECreditAccountingClassId({
|
|
201
187
|
isMarkAsComplete,
|
|
202
188
|
jeScheduleTransactionState,
|
|
203
|
-
}),
|
|
204
|
-
|
|
189
|
+
}) }, (isUpdatingVendorCategoryOrClass === true
|
|
190
|
+
? { is_update_vendor_category_or_class: true }
|
|
191
|
+
: {})), { je_credit_account_id: isMarkAsComplete === true
|
|
205
192
|
? null
|
|
206
|
-
: selectedAccumulatedDepreciationCategory !== null && selectedAccumulatedDepreciationCategory !== void 0 ? selectedAccumulatedDepreciationCategory : null,
|
|
207
|
-
je_debit_account_id: selectedAccount !== null && selectedAccount !== void 0 ? selectedAccount : null,
|
|
208
|
-
je_debit_accounting_class_id: selectedClass !== null && selectedClass !== void 0 ? selectedClass : null,
|
|
209
|
-
other_attributes: assetId != null
|
|
193
|
+
: selectedAccumulatedDepreciationCategory !== null && selectedAccumulatedDepreciationCategory !== void 0 ? selectedAccumulatedDepreciationCategory : null, je_debit_account_id: selectedAccount !== null && selectedAccount !== void 0 ? selectedAccount : null, je_debit_accounting_class_id: selectedClass !== null && selectedClass !== void 0 ? selectedClass : null, other_attributes: assetId != null
|
|
210
194
|
? {
|
|
211
195
|
asset_id: assetId,
|
|
212
196
|
}
|
|
213
|
-
: {},
|
|
214
|
-
base_transaction: mapScheduleTransactionToBaseScheduleTransactionPayload(baseTransaction),
|
|
215
|
-
};
|
|
197
|
+
: {}, base_transaction: (0, exports.mapScheduleTransactionToBaseScheduleTransactionPayload)(baseTransaction) });
|
|
216
198
|
return isDelete === true
|
|
217
199
|
? Object.assign(Object.assign({}, payload), { is_deleted: true }) : payload;
|
|
218
200
|
};
|
|
@@ -246,7 +228,7 @@ const mapAccruedExpenseJEScheduleTransactionToPayload = (jeScheduleTransactionSt
|
|
|
246
228
|
const vendorDetails = vendorState.vendorByID[vendorID];
|
|
247
229
|
const payload = {
|
|
248
230
|
status: updatedStatus,
|
|
249
|
-
vendor: mapVendorToVendorPayload(vendorDetails),
|
|
231
|
+
vendor: (0, exports.mapVendorToVendorPayload)(vendorDetails),
|
|
250
232
|
currency_code: currencyCode,
|
|
251
233
|
currency_symbol: currencySymbol,
|
|
252
234
|
period: selectedMonths !== null && selectedMonths !== void 0 ? selectedMonths : null,
|
|
@@ -274,13 +256,13 @@ const mapAccruedExpenseJEScheduleTransactionToPayload = (jeScheduleTransactionSt
|
|
|
274
256
|
asset_id: assetId,
|
|
275
257
|
}
|
|
276
258
|
: {},
|
|
277
|
-
base_transaction: mapScheduleTransactionToBaseScheduleTransactionPayload(baseTransaction),
|
|
259
|
+
base_transaction: (0, exports.mapScheduleTransactionToBaseScheduleTransactionPayload)(baseTransaction),
|
|
278
260
|
};
|
|
279
261
|
return isDelete === true
|
|
280
262
|
? Object.assign(Object.assign({}, payload), { is_deleted: true }) : payload;
|
|
281
263
|
};
|
|
282
264
|
exports.mapAccruedExpenseJEScheduleTransactionToPayload = mapAccruedExpenseJEScheduleTransactionToPayload;
|
|
283
|
-
const prepareScheduleDetailPayload = (state, scheduleDetailsLocalData, selectedJEScheduleKey, jeScheduleType, isDelete, isMarkAsComplete) => {
|
|
265
|
+
const prepareScheduleDetailPayload = (state, scheduleDetailsLocalData, selectedJEScheduleKey, jeScheduleType, isDelete, isMarkAsComplete, isUpdatingVendorCategoryOrClass) => {
|
|
284
266
|
const payload = {
|
|
285
267
|
je_schedules: [],
|
|
286
268
|
scheduled_journal_entries: [],
|
|
@@ -291,10 +273,10 @@ const prepareScheduleDetailPayload = (state, scheduleDetailsLocalData, selectedJ
|
|
|
291
273
|
payload.je_schedules =
|
|
292
274
|
jeScheduleType !== 'fixed_assets'
|
|
293
275
|
? [
|
|
294
|
-
mapJEScheduleTransactionToPayload(jeScheduleTransactionState, vendorState, scheduleDetailsLocalData, jeScheduleType, isDelete, isMarkAsComplete),
|
|
276
|
+
mapJEScheduleTransactionToPayload(jeScheduleTransactionState, vendorState, scheduleDetailsLocalData, jeScheduleType, isDelete, isMarkAsComplete, isUpdatingVendorCategoryOrClass),
|
|
295
277
|
]
|
|
296
278
|
: [
|
|
297
|
-
mapFixedAssetJEScheduleTransactionToPayload(jeScheduleTransactionState, vendorState, scheduleDetailsLocalData, isDelete, isMarkAsComplete),
|
|
279
|
+
mapFixedAssetJEScheduleTransactionToPayload(jeScheduleTransactionState, vendorState, scheduleDetailsLocalData, isDelete, isMarkAsComplete, isUpdatingVendorCategoryOrClass),
|
|
298
280
|
];
|
|
299
281
|
payload.scheduled_journal_entries =
|
|
300
282
|
isMarkAsComplete === true
|
|
@@ -6,19 +6,24 @@ import ZeniUrl from '../../../zeniUrl';
|
|
|
6
6
|
import { ScheduledJournalEntry } from '../../../entity/jeSchedules/jeSchedulesSelector';
|
|
7
7
|
export declare const initialScheduleDetailsLocalData: Record<ScheduleTypes, ScheduleDetailsLocalData | ScheduleDetailsLocalDataFixedAssets>;
|
|
8
8
|
export declare const initialState: ScheduleDetailViewState;
|
|
9
|
-
export declare const createNewSchedules: import("@reduxjs/toolkit").
|
|
9
|
+
export declare const createNewSchedules: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[{
|
|
10
10
|
scheduleType: ScheduleTypes;
|
|
11
|
-
}
|
|
11
|
+
}], {
|
|
12
|
+
scheduleType: "prepaid_expenses" | "fixed_assets" | "accrued_expenses" | "deferred_revenue";
|
|
13
|
+
}, string, never, never>, fetchScheduleDetailsPage: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[scheduleType: "prepaid_expenses" | "fixed_assets" | "accrued_expenses" | "deferred_revenue", selectedJeScheduleDetailId?: string | undefined, cacheOverride?: any], {
|
|
12
14
|
scheduleType: "prepaid_expenses" | "fixed_assets" | "accrued_expenses" | "deferred_revenue";
|
|
13
15
|
selectedJeScheduleDetailId: string | undefined;
|
|
14
|
-
|
|
16
|
+
cacheOverride: any;
|
|
17
|
+
}, string, never, never>, fetchScheduleDetails: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[scheduleType: "prepaid_expenses" | "fixed_assets" | "accrued_expenses" | "deferred_revenue", selectedJeScheduleDetailId?: string | undefined, cacheOverride?: any], {
|
|
15
18
|
scheduleType: "prepaid_expenses" | "fixed_assets" | "accrued_expenses" | "deferred_revenue";
|
|
16
19
|
selectedJeScheduleDetailId: string | undefined;
|
|
20
|
+
cacheOverride: any;
|
|
17
21
|
}, string, never, never>, updateScheduleDetailsSuccess: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, updateScheduleDetailsFailure: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
18
22
|
error?: ZeniAPIStatus<Record<string, unknown>> | undefined;
|
|
19
|
-
}, string>, saveScheduleDetails: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[scheduleType: "prepaid_expenses" | "fixed_assets" | "accrued_expenses" | "deferred_revenue", selectedJeScheduleDetailId?: string | undefined], {
|
|
23
|
+
}, string>, saveScheduleDetails: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[scheduleType: "prepaid_expenses" | "fixed_assets" | "accrued_expenses" | "deferred_revenue", selectedJeScheduleDetailId?: string | undefined, isUpdatingVendorCategoryOrClass?: boolean | undefined], {
|
|
20
24
|
scheduleType: "prepaid_expenses" | "fixed_assets" | "accrued_expenses" | "deferred_revenue";
|
|
21
25
|
selectedJeScheduleDetailId: string | undefined;
|
|
26
|
+
isUpdatingVendorCategoryOrClass: boolean | undefined;
|
|
22
27
|
}, string, never, never>, saveScheduleDetailsSuccessOrFailure: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[fetchState: FetchState, error?: ZeniAPIStatus<Record<string, unknown>> | undefined], {
|
|
23
28
|
fetchState: FetchState;
|
|
24
29
|
error: ZeniAPIStatus<Record<string, unknown>> | undefined;
|
|
@@ -31,9 +36,9 @@ export declare const createNewSchedules: import("@reduxjs/toolkit").ActionCreato
|
|
|
31
36
|
}, string, never, never>, deleteScheduleDetailSuccessOrFailure: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[fetchState: FetchState, error?: ZeniAPIStatus<Record<string, unknown>> | undefined], {
|
|
32
37
|
fetchState: FetchState;
|
|
33
38
|
error: ZeniAPIStatus<Record<string, unknown>> | undefined;
|
|
34
|
-
}, string, never, never>, initializeScheduleDetailLocalData: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[scheduleType: "prepaid_expenses" | "fixed_assets" | "accrued_expenses" | "deferred_revenue", selectedJEScheduleKey: `${string}
|
|
39
|
+
}, string, never, never>, initializeScheduleDetailLocalData: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[scheduleType: "prepaid_expenses" | "fixed_assets" | "accrued_expenses" | "deferred_revenue", selectedJEScheduleKey: `${string}_invoice` | `${string}_payment` | `${string}_credit_memo` | `${string}_sales_receipt` | `${string}_delayed_credit` | `${string}_delayed_charge` | `${string}_refund` | `${string}_expense` | `${string}_check` | `${string}_bill` | `${string}_bill_payment` | `${string}_bill_payment_check` | `${string}_bill_payment_credit_card` | `${string}_vendor_credit` | `${string}_credit_card_credit` | `${string}_transfer` | `${string}_credit_card_payment` | `${string}_deposit` | `${string}_journal_entry`, selectedJeScheduleDetailId?: string | undefined], {
|
|
35
40
|
scheduleType: "prepaid_expenses" | "fixed_assets" | "accrued_expenses" | "deferred_revenue";
|
|
36
|
-
selectedJEScheduleKey: `${string}
|
|
41
|
+
selectedJEScheduleKey: `${string}_invoice` | `${string}_payment` | `${string}_credit_memo` | `${string}_sales_receipt` | `${string}_delayed_credit` | `${string}_delayed_charge` | `${string}_refund` | `${string}_expense` | `${string}_check` | `${string}_bill` | `${string}_bill_payment` | `${string}_bill_payment_check` | `${string}_bill_payment_credit_card` | `${string}_vendor_credit` | `${string}_credit_card_credit` | `${string}_transfer` | `${string}_credit_card_payment` | `${string}_deposit` | `${string}_journal_entry`;
|
|
37
42
|
selectedJeScheduleDetailId: string | undefined;
|
|
38
43
|
}, string, never, never>, updateScheduleDetailsLocalData: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
39
44
|
scheduleType: ScheduleTypes;
|
|
@@ -61,9 +66,9 @@ export declare const createNewSchedules: import("@reduxjs/toolkit").ActionCreato
|
|
|
61
66
|
jeScheduleDetailId: ID;
|
|
62
67
|
rowId: number;
|
|
63
68
|
originalScheduledJE: ScheduledJournalEntry;
|
|
64
|
-
}, string>, markAsCompleteScheduleDetail: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[scheduleType: "prepaid_expenses" | "fixed_assets" | "accrued_expenses" | "deferred_revenue", jeScheduleKey: `${string}
|
|
69
|
+
}, string>, markAsCompleteScheduleDetail: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[scheduleType: "prepaid_expenses" | "fixed_assets" | "accrued_expenses" | "deferred_revenue", jeScheduleKey: `${string}_invoice` | `${string}_payment` | `${string}_credit_memo` | `${string}_sales_receipt` | `${string}_delayed_credit` | `${string}_delayed_charge` | `${string}_refund` | `${string}_expense` | `${string}_check` | `${string}_bill` | `${string}_bill_payment` | `${string}_bill_payment_check` | `${string}_bill_payment_credit_card` | `${string}_vendor_credit` | `${string}_credit_card_credit` | `${string}_transfer` | `${string}_credit_card_payment` | `${string}_deposit` | `${string}_journal_entry`], {
|
|
65
70
|
scheduleType: "prepaid_expenses" | "fixed_assets" | "accrued_expenses" | "deferred_revenue";
|
|
66
|
-
jeScheduleKey: `${string}
|
|
71
|
+
jeScheduleKey: `${string}_invoice` | `${string}_payment` | `${string}_credit_memo` | `${string}_sales_receipt` | `${string}_delayed_credit` | `${string}_delayed_charge` | `${string}_refund` | `${string}_expense` | `${string}_check` | `${string}_bill` | `${string}_bill_payment` | `${string}_bill_payment_check` | `${string}_bill_payment_credit_card` | `${string}_vendor_credit` | `${string}_credit_card_credit` | `${string}_transfer` | `${string}_credit_card_payment` | `${string}_deposit` | `${string}_journal_entry`;
|
|
67
72
|
}, string, never, never>, markAsCompleteScheduleDetailSuccessOrFailure: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[fetchState: FetchState, error?: ZeniAPIStatus<Record<string, unknown>> | undefined], {
|
|
68
73
|
fetchState: FetchState;
|
|
69
74
|
error: ZeniAPIStatus<Record<string, unknown>> | undefined;
|
|
@@ -60,17 +60,20 @@ const scheduleDetailView = (0, toolkit_1.createSlice)({
|
|
|
60
60
|
name: 'scheduleDetailView',
|
|
61
61
|
initialState: exports.initialState,
|
|
62
62
|
reducers: {
|
|
63
|
-
createNewSchedules:
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
63
|
+
createNewSchedules: {
|
|
64
|
+
prepare({ scheduleType }) {
|
|
65
|
+
return {
|
|
66
|
+
payload: { scheduleType },
|
|
67
|
+
};
|
|
68
|
+
},
|
|
69
|
+
reducer() {
|
|
70
|
+
// Do nothing
|
|
71
|
+
},
|
|
69
72
|
},
|
|
70
73
|
fetchScheduleDetailsPage: {
|
|
71
|
-
prepare(scheduleType, selectedJeScheduleDetailId) {
|
|
74
|
+
prepare(scheduleType, selectedJeScheduleDetailId, cacheOverride = false) {
|
|
72
75
|
return {
|
|
73
|
-
payload: { scheduleType, selectedJeScheduleDetailId },
|
|
76
|
+
payload: { scheduleType, selectedJeScheduleDetailId, cacheOverride },
|
|
74
77
|
};
|
|
75
78
|
},
|
|
76
79
|
reducer() {
|
|
@@ -78,9 +81,9 @@ const scheduleDetailView = (0, toolkit_1.createSlice)({
|
|
|
78
81
|
},
|
|
79
82
|
},
|
|
80
83
|
fetchScheduleDetails: {
|
|
81
|
-
prepare(scheduleType, selectedJeScheduleDetailId) {
|
|
84
|
+
prepare(scheduleType, selectedJeScheduleDetailId, cacheOverride = false) {
|
|
82
85
|
return {
|
|
83
|
-
payload: { scheduleType, selectedJeScheduleDetailId },
|
|
86
|
+
payload: { scheduleType, selectedJeScheduleDetailId, cacheOverride },
|
|
84
87
|
};
|
|
85
88
|
},
|
|
86
89
|
reducer(draft, action) {
|
|
@@ -108,9 +111,13 @@ const scheduleDetailView = (0, toolkit_1.createSlice)({
|
|
|
108
111
|
},
|
|
109
112
|
// Fire this action to save the latest schedule data in local store in ZENI Platform.
|
|
110
113
|
saveScheduleDetails: {
|
|
111
|
-
prepare(scheduleType, selectedJeScheduleDetailId) {
|
|
114
|
+
prepare(scheduleType, selectedJeScheduleDetailId, isUpdatingVendorCategoryOrClass) {
|
|
112
115
|
return {
|
|
113
|
-
payload: {
|
|
116
|
+
payload: {
|
|
117
|
+
scheduleType,
|
|
118
|
+
selectedJeScheduleDetailId,
|
|
119
|
+
isUpdatingVendorCategoryOrClass,
|
|
120
|
+
},
|
|
114
121
|
};
|
|
115
122
|
},
|
|
116
123
|
reducer(draft) {
|
|
@@ -32,3 +32,4 @@ export interface ScheduleDetailsView extends SelectorView {
|
|
|
32
32
|
selectedJELinkRowIndex?: number;
|
|
33
33
|
}
|
|
34
34
|
export declare const getScheduleDetailsView: (state: RootState, scheduleType: ScheduleTypes) => ScheduleDetailsView;
|
|
35
|
+
export declare const filterNestedAccountHierarchyById: (accountList: NestedAccountHierarchyForReport[], targetIds: string[]) => NestedAccountHierarchyForReport[];
|
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.getScheduleDetailsView = void 0;
|
|
6
|
+
exports.filterNestedAccountHierarchyById = exports.getScheduleDetailsView = void 0;
|
|
7
7
|
const omit_1 = __importDefault(require("lodash/omit"));
|
|
8
8
|
const jeSchedulesSelector_1 = require("../../../entity/jeSchedules/jeSchedulesSelector");
|
|
9
9
|
const accountListSelector_1 = require("../../accountList/accountListSelector");
|
|
@@ -62,7 +62,7 @@ const getScheduleDetailsView = (state, scheduleType) => {
|
|
|
62
62
|
const accountListNestedAccountHierarchy = (0, accountListSelector_1.getNestedAccountListHierarchy)(accountListState, accountTypes.accountListKey).filter((account) => account.accountId[0] != null &&
|
|
63
63
|
scheduleDetailAccountIds.includes(account.accountId[0]));
|
|
64
64
|
const depAccountListNestedAccountHierarchy = (0, accountListSelector_1.getNestedAccountListHierarchy)(accountListState, accountTypes.accountListKey);
|
|
65
|
-
const filteredDepAccountListNestedAccountHierarchy = filterNestedAccountHierarchyById(depAccountListNestedAccountHierarchy, filteredDepAccounts.map((account) => account.accountId));
|
|
65
|
+
const filteredDepAccountListNestedAccountHierarchy = (0, exports.filterNestedAccountHierarchyById)(depAccountListNestedAccountHierarchy, filteredDepAccounts.map((account) => account.accountId));
|
|
66
66
|
const classListNestedAccountHierarchy = (0, classListSelector_1.getNestedClassListHierarchy)(classListState);
|
|
67
67
|
const selectedJeScheduleDetailId = jeScheduleTransactionState === null || jeScheduleTransactionState === void 0 ? void 0 : jeScheduleTransactionState.jeScheduleId;
|
|
68
68
|
const scheduleDetailsLocalData = Object.assign({}, scheduleDetailReducer_1.initialScheduleDetailsLocalData);
|
|
@@ -108,7 +108,7 @@ const filterNestedAccountHierarchyById = (accountList, targetIds) => {
|
|
|
108
108
|
for (const account of accountList) {
|
|
109
109
|
const presentInTargetIds = targetIds.includes(account.accountId[0]);
|
|
110
110
|
// Recursively filter the children
|
|
111
|
-
const filteredChildren = filterNestedAccountHierarchyById(account.children, targetIds);
|
|
111
|
+
const filteredChildren = (0, exports.filterNestedAccountHierarchyById)(account.children, targetIds);
|
|
112
112
|
// Include the current account if:
|
|
113
113
|
// - It matches the targetIds, OR
|
|
114
114
|
// - It has children that match targetIds
|
|
@@ -122,3 +122,4 @@ const filterNestedAccountHierarchyById = (accountList, targetIds) => {
|
|
|
122
122
|
}
|
|
123
123
|
return result;
|
|
124
124
|
};
|
|
125
|
+
exports.filterNestedAccountHierarchyById = filterNestedAccountHierarchyById;
|
|
@@ -4,6 +4,7 @@ import { SortOrder } from '../../../commonStateTypes/selectorTypes/sortOrderType
|
|
|
4
4
|
import { ScheduleDaysOfMonth } from '../../../commonStateTypes/timePeriod';
|
|
5
5
|
import { JEScheduleTransactionKey, ScheduleJournalEntryStatusCodeType, ScheduleTypes } from '../../../entity/jeSchedules/jeSchedulesTypes';
|
|
6
6
|
import { TransactionID } from '../../../entity/transaction/stateTypes/transaction';
|
|
7
|
+
import { VendorBase } from '../../../entity/vendor/vendorState';
|
|
7
8
|
import { ZeniDate } from '../../../zeniDayJS';
|
|
8
9
|
import { ScheduleDetailSortKey } from './scheduleDetailTypes';
|
|
9
10
|
export declare type JELinkType = 'recommended' | 'linked' | 'unknown' | 'qbourl';
|
|
@@ -30,6 +31,7 @@ export interface JEScheduleDetailsLocalData {
|
|
|
30
31
|
export interface ScheduleDetailsLocalData {
|
|
31
32
|
scheduleType: ScheduleTypes;
|
|
32
33
|
jeScheduleDetails: JEScheduleDetailsLocalData[];
|
|
34
|
+
selectedVendor?: VendorBase;
|
|
33
35
|
selectedDate?: ZeniDate;
|
|
34
36
|
selectedMonths?: number;
|
|
35
37
|
selectedAccount?: ID;
|
|
@@ -7,7 +7,7 @@ export declare const getScheduleListKey: (selectedCategory: ID, selectedTimefram
|
|
|
7
7
|
export declare type ScheduleListKey = ReturnType<typeof getScheduleListKey>;
|
|
8
8
|
export declare const toScheduleSubTabType: (v: string) => "all" | "new" | "completed" | "ongoing";
|
|
9
9
|
export declare type ScheduleSubTabType = ReturnType<typeof toScheduleSubTabType>;
|
|
10
|
-
declare const toScheduleSortKeyType: (v: string) => "status" | "user" | "months" | "amount" | "vendor" | "class" | "
|
|
10
|
+
declare const toScheduleSortKeyType: (v: string) => "status" | "user" | "months" | "amount" | "vendor" | "class" | "balanceAsOfToday" | "transactionType" | "createTime" | "memo" | "assetId" | "transactionDate" | "accruedExpenseCategory" | "scheduleCategory" | "expenseCategory" | "accumulatedDepreciationCategory" | "startMonth" | "endMonth";
|
|
11
11
|
export declare type ScheduleListSortKey = ReturnType<typeof toScheduleSortKeyType>;
|
|
12
12
|
export interface DownloadJEScheduleTabOptions {
|
|
13
13
|
timezone: string;
|
|
@@ -34,7 +34,7 @@ const parseInvoiceToBillEpic = (actions$, state$) => actions$.pipe((0, operators
|
|
|
34
34
|
const state = state$.value;
|
|
35
35
|
const showSkipAutofill = state.editBillDetailViewState.newBillState.showSkipAutofill;
|
|
36
36
|
if (!showSkipAutofill) {
|
|
37
|
-
const file = (0, attachmentPayload_1.
|
|
37
|
+
const file = (0, attachmentPayload_1.mapFileToAttachment)(invoiceProcessingPayload.files[0]);
|
|
38
38
|
return (0, rxjs_1.of)((0, editBillViewReducer_1.saveBillUpdatesToLocalStore)({
|
|
39
39
|
billDetailLocalData: Object.assign(Object.assign({}, editBillViewState_1.initialBillDetail.billDetailLocalData), { file: file }),
|
|
40
40
|
}), (0, editBillViewReducer_1.updateAddBillAutoFields)(editBillViewState_1.initialBillDetail.addBillAutoFields), (0, editBillViewReducer_1.updateBillUploadFetchState)({
|
|
@@ -98,7 +98,7 @@ const parseInvoiceToBillEpic = (actions$, state$) => actions$.pipe((0, operators
|
|
|
98
98
|
}
|
|
99
99
|
}
|
|
100
100
|
}
|
|
101
|
-
const file = (0, attachmentPayload_1.
|
|
101
|
+
const file = (0, attachmentPayload_1.mapFileToAttachment)(invoiceProcessingPayload.files[0]);
|
|
102
102
|
const finalBill = Object.assign(Object.assign({}, (0, exports.toBillDetailLocalData)(state, showVendorGptRecommendationText, invoiceProcessingPayload.bills[0], finalVendor, recommendedVendorId)), { file: file });
|
|
103
103
|
const addBillAutoFields = (0, exports.getAutoFieldsData)(finalBill, isVendorWithNewCurrency, vendorNameFromInvoice, currencyInInvoice, vendorCurrency);
|
|
104
104
|
if (finalVendor != null) {
|
|
@@ -41,7 +41,7 @@ export interface CreditAccount extends FetchStateAndError {
|
|
|
41
41
|
export declare const initialCreditAcc: CreditAccount;
|
|
42
42
|
export declare const initialIssueChargeCard: IssueChargeCard;
|
|
43
43
|
export declare const initialResendRevokeCardInvite: ResendRevokeCardInvite;
|
|
44
|
-
export declare const toChargeCardSortKeyType: (v: string) => "owner" | "
|
|
44
|
+
export declare const toChargeCardSortKeyType: (v: string) => "owner" | "limit" | "department" | "cardName" | "utilisation";
|
|
45
45
|
export declare type ChargeCardViewSortKey = ReturnType<typeof toChargeCardSortKeyType>;
|
|
46
46
|
export declare const ALL_CASHBACK_SORT_KEYS: readonly ["month", "cashback"];
|
|
47
47
|
export declare const toCashbackSortKeyType: (v: string) => "month" | "cashback";
|
package/lib/view/spendManagement/reimbursement/editRemiView/epics/parseReceiptsToRemiEpic.js
CHANGED
|
@@ -27,7 +27,7 @@ const parseReceiptsToRemiEpic = (actions$, state$) => actions$.pipe((0, operator
|
|
|
27
27
|
newUpdatesByLineId[currentLineId] = Object.assign(Object.assign({}, newUpdatesByLineId[currentLineId]), { type: 'out_of_pocket', fileId: (_a = receipt.file_id) !== null && _a !== void 0 ? _a : '', lineId: String(currentLineId) });
|
|
28
28
|
currentLineId++;
|
|
29
29
|
});
|
|
30
|
-
const files = receiptsProcessingPayload.files.map((file) => (0, attachmentPayload_1.
|
|
30
|
+
const files = receiptsProcessingPayload.files.map((file) => (0, attachmentPayload_1.mapFileToAttachment)(file));
|
|
31
31
|
return (0, rxjs_1.of)((0, editRemiViewReducer_1.saveRemiUpdatesToLocalStore)({
|
|
32
32
|
remiDetailLocalData: Object.assign(Object.assign({}, remiState.remiDetailLocalData), { files: remiState.remiDetailLocalData.files != null
|
|
33
33
|
? [...remiState.remiDetailLocalData.files, ...files]
|
|
@@ -91,7 +91,7 @@ const parseReceiptsToRemiEpic = (actions$, state$) => actions$.pipe((0, operator
|
|
|
91
91
|
}
|
|
92
92
|
currentLineId++;
|
|
93
93
|
});
|
|
94
|
-
const files = receiptsProcessingPayload.files.map((file) => (0, attachmentPayload_1.
|
|
94
|
+
const files = receiptsProcessingPayload.files.map((file) => (0, attachmentPayload_1.mapFileToAttachment)(file));
|
|
95
95
|
actions.push((0, editRemiViewReducer_1.saveRemiUpdatesToLocalStore)({
|
|
96
96
|
remiDetailLocalData: Object.assign(Object.assign({}, remiState.remiDetailLocalData), { files: remiState.remiDetailLocalData.files != null
|
|
97
97
|
? [...remiState.remiDetailLocalData.files, ...files]
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const toSubscriptionSortKeyType: (v: string) => "status" | "controller" | "companyName" | "monthlyRecurringRevenue" | "avg2MonthExpenses" | "plans" | "planLowerLimit" | "planHigherLimit" | "addons" | "upgradeStatus"
|
|
1
|
+
export declare const toSubscriptionSortKeyType: (v: string) => "status" | "controller" | "companyName" | "monthlyRecurringRevenue" | "avg2MonthExpenses" | "notes" | "plans" | "planLowerLimit" | "planHigherLimit" | "addons" | "upgradeStatus";
|
|
2
2
|
export declare type SubscriptionViewSortKey = ReturnType<typeof toSubscriptionSortKeyType>;
|
|
3
3
|
export declare const SUBSCRIPTION_STATUS_CODES: string[];
|
|
4
4
|
declare const toSubscriptionStatusCodeType: (v: string) => string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { RootState } from '../../reducer';
|
|
2
2
|
export declare const getTasksCardReport: (state: RootState) => {
|
|
3
|
-
reportId: "cash_balance" | "card_balance" | "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" | "billing";
|
|
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" | "billing" | "flux_analysis_operating_expense";
|
|
4
4
|
reportTitle: string;
|
|
5
5
|
version: string | number | undefined;
|
|
6
6
|
status: import("../..").Status | undefined;
|
|
@@ -5,7 +5,7 @@ import { AccountState } from '../../entity/account/accountState';
|
|
|
5
5
|
import { EntityOrder } from '../../commonStateTypes/selectorTypes/selectorTypes';
|
|
6
6
|
import { TopExReport, TopExTimePeriodWithMetaData } from './topExSelectorTypes';
|
|
7
7
|
export declare const getTopExpenses: (accountState: AccountState, topExState: TopExState, numberOfExpenses?: number | undefined) => {
|
|
8
|
-
reportId: "cash_balance" | "card_balance" | "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" | "billing";
|
|
8
|
+
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" | "billing" | "flux_analysis_operating_expense";
|
|
9
9
|
reportTitle: string;
|
|
10
10
|
version: string | number | undefined;
|
|
11
11
|
status: import("../..").Status | undefined;
|
|
@@ -8,8 +8,8 @@ const transactionReducer_1 = require("../../../entity/transaction/transactionRed
|
|
|
8
8
|
const transactionDetailState_1 = require("../transactionDetailState");
|
|
9
9
|
const transactionIDPayload_1 = require("../../../entity/transaction/payloadTypes/transactionIDPayload");
|
|
10
10
|
const uploadMissingReceiptSuccessEpic = (actions$) => actions$.pipe((0, operators_1.filter)(transactionDetailReducer_1.uploadMissingReceiptSuccess.match), (0, operators_1.switchMap)((action) => {
|
|
11
|
-
const
|
|
12
|
-
const transactionDetailKeyForResponse = (0, transactionDetailState_1.getTransactionDetailKey)(
|
|
11
|
+
const transactionId = (0, transactionIDPayload_1.toTransactionID)(action.payload.payload);
|
|
12
|
+
const transactionDetailKeyForResponse = (0, transactionDetailState_1.getTransactionDetailKey)(transactionId);
|
|
13
13
|
return (0, rxjs_1.of)((0, transactionReducer_1.updateTransaction)(transactionDetailKeyForResponse, action.payload.payload));
|
|
14
14
|
}));
|
|
15
15
|
exports.uploadMissingReceiptSuccessEpic = uploadMissingReceiptSuccessEpic;
|
|
@@ -8,9 +8,9 @@ import { Transaction, TransactionID } from '../../entity/transaction/stateTypes/
|
|
|
8
8
|
import { VendorBase } from '../../entity/vendor/vendorState';
|
|
9
9
|
import { EntityRecommendationKey } from '../recommendation/recommendationState';
|
|
10
10
|
import { TransactionDetailLocalData } from './transactionDetailTypes';
|
|
11
|
-
export declare const getTransactionDetailKey: (transactionId: TransactionID) => `${string}
|
|
11
|
+
export declare const getTransactionDetailKey: (transactionId: TransactionID) => `${string}_invoice` | `${string}_payment` | `${string}_credit_memo` | `${string}_sales_receipt` | `${string}_delayed_credit` | `${string}_delayed_charge` | `${string}_refund` | `${string}_expense` | `${string}_check` | `${string}_bill` | `${string}_bill_payment` | `${string}_bill_payment_check` | `${string}_bill_payment_credit_card` | `${string}_vendor_credit` | `${string}_credit_card_credit` | `${string}_transfer` | `${string}_credit_card_payment` | `${string}_deposit` | `${string}_journal_entry`;
|
|
12
12
|
export declare type TransactionDetailKey = ReturnType<typeof getTransactionDetailKey>;
|
|
13
|
-
export declare const getZeniTransactionDetailKey: (transactionId: TransactionID) => `${string}
|
|
13
|
+
export declare const getZeniTransactionDetailKey: (transactionId: TransactionID) => `${string}_invoice` | `${string}_payment` | `${string}_credit_memo` | `${string}_sales_receipt` | `${string}_delayed_credit` | `${string}_delayed_charge` | `${string}_refund` | `${string}_expense` | `${string}_check` | `${string}_bill` | `${string}_bill_payment` | `${string}_bill_payment_check` | `${string}_bill_payment_credit_card` | `${string}_vendor_credit` | `${string}_credit_card_credit` | `${string}_transfer` | `${string}_credit_card_payment` | `${string}_deposit` | `${string}_journal_entry`;
|
|
14
14
|
export declare type ZeniTransactionDetailKey = ReturnType<typeof getTransactionDetailKey>;
|
|
15
15
|
export declare const getThirdPartyIdFromTransactionId: (transactionId: TransactionID) => string;
|
|
16
16
|
/**
|
|
@@ -2,7 +2,7 @@ import { GlobalMerchantBase } from '../../../../entity/globalMerchant/globalMerc
|
|
|
2
2
|
import { ID } from '../../../../commonStateTypes/common';
|
|
3
3
|
import { RecommendedNonExistingGlobalMerchant } from '../../vendorFirstReviewView/vendorFirstReviewViewState';
|
|
4
4
|
import { RecommendedNonExistingGlobalMerchantBasePayload, VendorReviewViewAllRecommendationsPayload } from '../payload/commonTypes';
|
|
5
|
-
export declare const toVendorFirstReviewViewStatusesTypeStrict: (v: string) => "pending" | "
|
|
5
|
+
export declare const toVendorFirstReviewViewStatusesTypeStrict: (v: string) => "pending" | "reviewed" | "under_review" | "merge_in_qbo" | "review_rejected" | undefined;
|
|
6
6
|
declare type VendorFirstReviewViewStatusesKey = ReturnType<typeof toVendorFirstReviewViewStatusesTypeStrict>;
|
|
7
7
|
export declare type ReviewStatus = {
|
|
8
8
|
code: VendorFirstReviewViewStatusesKey;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { FetchedState, ID } from '../../commonStateTypes/common';
|
|
2
|
+
import { MonthYearPeriod } from '../../commonStateTypes/timePeriod';
|
|
2
3
|
export interface ZeniAccStatementListState {
|
|
3
4
|
byDepositId: Record<ID, StatementState>;
|
|
4
5
|
}
|
|
@@ -7,11 +8,7 @@ interface StatementState extends FetchedState {
|
|
|
7
8
|
}
|
|
8
9
|
export interface Statement {
|
|
9
10
|
id: ID;
|
|
10
|
-
title:
|
|
11
|
-
}
|
|
12
|
-
interface StatementTitle {
|
|
13
|
-
month: number;
|
|
14
|
-
year: number;
|
|
11
|
+
title: MonthYearPeriod;
|
|
15
12
|
}
|
|
16
13
|
export declare const initialStatements: StatementState;
|
|
17
14
|
export {};
|
|
@@ -39,7 +39,9 @@ const zeniAccountsPromoCard = (0, toolkit_1.createSlice)({
|
|
|
39
39
|
promoPayload.max_cash_balance_available != null
|
|
40
40
|
? promoPayload.max_cash_balance_available
|
|
41
41
|
: undefined;
|
|
42
|
-
|
|
42
|
+
// TODO https://app.clickup.com/t/86cxgce6m - hardcoding this fix for now until
|
|
43
|
+
// platform can fix this value
|
|
44
|
+
draft.maxInsuredAmount = 3000000; ///promoPayload.max_insured_amount;
|
|
43
45
|
draft.depositAccountId =
|
|
44
46
|
promoPayload.primary_deposit_account_id != null
|
|
45
47
|
? promoPayload.primary_deposit_account_id
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zeniai/client-epic-state",
|
|
3
|
-
"version": "4.12.
|
|
3
|
+
"version": "4.12.99",
|
|
4
4
|
"description": "Shared module between Web & Mobile containing required abstractions for state management, async network communication. ",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|