@zeniai/client-epic-state 4.15.31 → 4.15.32
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/timePeriod.d.ts +1 -1
- package/lib/commonStateTypes/timePeriod.js +2 -2
- package/lib/commonStateTypes/viewAndReport/viewAndReport.d.ts +2 -2
- package/lib/commonStateTypes/viewAndReport/viewAndReport.js +0 -1
- package/lib/configureStore.js +1 -2
- package/lib/entity/account/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/customer/customerPayload.d.ts +1 -1
- package/lib/entity/customer/customerPayload.js +6 -16
- package/lib/entity/forecast/forecastState.d.ts +1 -1
- package/lib/entity/sectionAccountsView/sectionAccountsView.d.ts +1 -1
- package/lib/entity/sectionClassesViewV2/sectionClassesView.d.ts +1 -1
- package/lib/entity/sectionClassesViewV2/sectionClassesViewReducer.d.ts +2 -2
- package/lib/entity/snackbar/snackbarTypes.d.ts +1 -1
- package/lib/entity/snackbar/snackbarTypes.js +0 -4
- package/lib/entity/task/taskState.d.ts +1 -1
- package/lib/entity/tenant/clearAllEpic.d.ts +2 -4
- package/lib/entity/tenant/clearAllEpic.js +0 -4
- package/lib/entity/transaction/payloadTypes/customerTransactionPayload.d.ts +1 -1
- package/lib/entity/transaction/payloadTypes/customerTransactionPayload.js +2 -1
- package/lib/entity/transaction/payloadTypes/transactionPayload.d.ts +0 -2
- package/lib/entity/transaction/payloadTypes/transactionPayload.js +3 -7
- package/lib/entity/transaction/payloadTypes/vendorTransactionPayload.d.ts +1 -9
- package/lib/entity/transaction/payloadTypes/vendorTransactionPayload.js +2 -23
- package/lib/entity/transaction/stateTypes/transaction.d.ts +1 -3
- package/lib/entity/transaction/stateTypes/transactionType.d.ts +1 -1
- package/lib/entity/transaction/stateTypes/transactionType.js +0 -1
- package/lib/entity/transaction/stateTypes/vendorTransaction.d.ts +0 -5
- package/lib/entity/transaction/stateTypes/vendorTransaction.js +1 -5
- package/lib/entity/transaction/toSupportedTransaction.js +1 -6
- package/lib/entity/transaction/transactionReducer.d.ts +0 -17
- package/lib/entity/transaction/transactionReducer.js +2 -47
- package/lib/entity/transaction/transactionSelector.d.ts +0 -2
- package/lib/entity/transaction/transactionSelector.js +0 -5
- package/lib/entity/transaction/transactionState.d.ts +4 -6
- package/lib/entity/vendorExpense/vendorExpenseSelector.d.ts +2 -2
- package/lib/epic.d.ts +1 -6
- package/lib/epic.js +1 -6
- package/lib/index.d.ts +7 -16
- package/lib/index.js +27 -52
- package/lib/init.d.ts +1 -2
- package/lib/init.js +2 -9
- package/lib/reducer.d.ts +1 -7
- package/lib/reducer.js +0 -6
- package/lib/view/auditReportView/auditReportViewState.d.ts +1 -1
- 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/commonVendorView/vendorsTabVendorView/vendorsTabVendorViewReducer.d.ts +2 -2
- package/lib/view/dashboard/dashboardReducer.d.ts +2 -2
- package/lib/view/expenseAutomationView/epics/common/fetchAllExpenseAutomationTabsEpic.d.ts +1 -2
- package/lib/view/expenseAutomationView/epics/common/fetchAllExpenseAutomationTabsEpic.js +10 -24
- package/lib/view/expenseAutomationView/epics/common/refreshExpenseAutomationCurrentTabEpic.d.ts +1 -2
- package/lib/view/expenseAutomationView/epics/common/refreshExpenseAutomationCurrentTabEpic.js +0 -14
- package/lib/view/expenseAutomationView/epics/transactionCategorization/updateTransactionCategorizationEpic.js +4 -20
- package/lib/view/expenseAutomationView/expenseAutomationViewReducer.d.ts +2 -2
- package/lib/view/expenseAutomationView/expenseAutomationViewSelector.js +2 -17
- package/lib/view/expenseAutomationView/expenseAutomationViewState.d.ts +2 -2
- package/lib/view/expenseAutomationView/expenseAutomationViewState.js +1 -1
- package/lib/view/expenseAutomationView/helpers/saveTransactionHelper.js +30 -81
- package/lib/view/expenseAutomationView/helpers/transactionCategorizationLocalDataHelper.d.ts +1 -1
- package/lib/view/expenseAutomationView/helpers/transactionCategorizationLocalDataHelper.js +10 -54
- package/lib/view/expenseAutomationView/reducers/transactionsViewReducer.d.ts +1 -2
- package/lib/view/expenseAutomationView/reducers/transactionsViewReducer.js +4 -5
- package/lib/view/expenseAutomationView/selectorTypes/expenseAutomationViewSelectorTypes.d.ts +0 -2
- package/lib/view/expenseAutomationView/selectorTypes/expenseAutomationViewSelectorTypes.js +1 -1
- package/lib/view/expenseAutomationView/types/transactionsViewState.d.ts +0 -8
- package/lib/view/financeStatement/financeStatementReducer.d.ts +1 -1
- package/lib/view/globalMerchantView/globalMerchantViewReducer.d.ts +2 -2
- package/lib/view/reimbursementCard/reimbursementCardSelector.d.ts +1 -1
- package/lib/view/scheduleView/scheduleListView/scheduleListTypes.d.ts +1 -1
- package/lib/view/spendManagement/billPay/billPayConfig/billPayConfigPayload.d.ts +1 -5
- package/lib/view/spendManagement/billPay/billsBulkActionView/epics/validateBillsBulkActionEpic.ts.js +3 -4
- package/lib/view/spendManagement/billPay/editBillView/epics/saveBillDetailEpic.d.ts +1 -2
- package/lib/view/spendManagement/plaidAccount/epic/plaidConnection/establishPlaidConnectionEpic.js +3 -11
- package/lib/view/spendManagement/plaidAccount/plaidAccountViewReducer.d.ts +1 -2
- package/lib/view/spendManagement/plaidAccount/plaidAccountViewReducer.js +1 -3
- package/lib/view/spendManagement/plaidAccount/plaidAccountViewState.d.ts +1 -1
- package/lib/view/spendManagement/zeniAccounts/expressPay/epics/fetchExpressPayInitialDetailsEpic.d.ts +2 -2
- package/lib/view/spendManagement/zeniAccounts/expressPay/epics/fetchExpressPayInitialDetailsEpic.js +7 -7
- package/lib/view/spendManagement/zeniAccounts/expressPay/expressPaySelector.d.ts +2 -2
- package/lib/view/spendManagement/zeniAccounts/expressPay/expressPaySelector.js +4 -5
- package/lib/view/spendManagement/zeniAccounts/expressPay/expressPayState.d.ts +2 -2
- package/lib/view/spendManagement/zeniAccounts/zeniAccountsConfig/zeniAccountsConfigPayload.d.ts +0 -14
- package/lib/view/spendManagement/zeniAccounts/zeniAccountsConfig/zeniAccountsConfigPayload.js +1 -78
- package/lib/view/spendManagement/zeniAccounts/zeniAccountsConfig/zeniAccountsConfigReducer.js +1 -3
- package/lib/view/spendManagement/zeniAccounts/zeniAccountsConfig/zeniAccountsConfigSelector.d.ts +1 -2
- package/lib/view/spendManagement/zeniAccounts/zeniAccountsConfig/zeniAccountsConfigSelector.js +1 -2
- package/lib/view/spendManagement/zeniAccounts/zeniAccountsConfig/zeniAccountsConfigState.d.ts +0 -9
- package/lib/view/tasksCard/tasksCardSelector.d.ts +1 -1
- package/lib/view/topEx/topExSelector.d.ts +1 -1
- package/lib/view/transactionDetail/epics/saveTransactionHelper.js +4 -13
- package/lib/view/transactionDetail/epics/updateTransactionDetailEpic.js +3 -16
- package/lib/view/transactionDetail/transactionDetailLocalDataHelper.js +5 -22
- package/lib/view/transactionDetail/transactionDetailState.d.ts +0 -1
- package/lib/view/transactionDetail/transactionDetailTypes.d.ts +0 -6
- package/lib/view/vendorReviewView/vendorGlobalReviewView/vendorGlobalReviewViewState.d.ts +1 -1
- package/lib/zeniAPI.d.ts +0 -1
- package/package.json +1 -2
- package/lib/entity/accountRecon/accountReconPayload.d.ts +0 -70
- package/lib/entity/accountRecon/accountReconPayload.js +0 -125
- package/lib/entity/accountRecon/accountReconReducer.d.ts +0 -16
- package/lib/entity/accountRecon/accountReconReducer.js +0 -71
- package/lib/entity/accountRecon/accountReconSelector.d.ts +0 -28
- package/lib/entity/accountRecon/accountReconSelector.js +0 -44
- package/lib/entity/accountRecon/accountReconState.d.ts +0 -70
- package/lib/entity/accountRecon/accountReconState.js +0 -28
- package/lib/entity/transaction/payloadTypes/reconciliationTransactionPayloads.d.ts +0 -35
- package/lib/entity/transaction/payloadTypes/reconciliationTransactionPayloads.js +0 -53
- package/lib/entity/transaction/stateTypes/reconciliationTransaction.d.ts +0 -32
- package/lib/entity/transaction/stateTypes/reconciliationTransaction.js +0 -10
- package/lib/view/expenseAutomationView/epics/accountRecon/fetchReconciliationViewEpic.d.ts +0 -15
- package/lib/view/expenseAutomationView/epics/accountRecon/fetchReconciliationViewEpic.js +0 -118
- package/lib/view/expenseAutomationView/epics/accountRecon/initialiseLocalDataForSelectedAccountIdEpic.d.ts +0 -10
- package/lib/view/expenseAutomationView/epics/accountRecon/initialiseLocalDataForSelectedAccountIdEpic.js +0 -49
- package/lib/view/expenseAutomationView/epics/accountRecon/saveReconciliationDetailEpic.d.ts +0 -14
- package/lib/view/expenseAutomationView/epics/accountRecon/saveReconciliationDetailEpic.js +0 -169
- package/lib/view/expenseAutomationView/epics/accountRecon/saveReconciliationReviewEpic.d.ts +0 -9
- package/lib/view/expenseAutomationView/epics/accountRecon/saveReconciliationReviewEpic.js +0 -154
- package/lib/view/expenseAutomationView/epics/accountRecon/updateReconcileTabLocalDataEpic.d.ts +0 -6
- package/lib/view/expenseAutomationView/epics/accountRecon/updateReconcileTabLocalDataEpic.js +0 -110
- package/lib/view/expenseAutomationView/helpers/reconciliationHelpers.d.ts +0 -7
- package/lib/view/expenseAutomationView/helpers/reconciliationHelpers.js +0 -18
- package/lib/view/expenseAutomationView/payload/reconciliationPayload.d.ts +0 -28
- package/lib/view/expenseAutomationView/payload/reconciliationPayload.js +0 -51
- package/lib/view/expenseAutomationView/reducers/reconciliationViewReducer.d.ts +0 -66
- package/lib/view/expenseAutomationView/reducers/reconciliationViewReducer.js +0 -384
- package/lib/view/expenseAutomationView/selectorTypes/reconciliationViewSelectorTypes.d.ts +0 -51
- package/lib/view/expenseAutomationView/selectorTypes/reconciliationViewSelectorTypes.js +0 -7
- package/lib/view/expenseAutomationView/selectors/reconciliationViewSelector.d.ts +0 -5
- package/lib/view/expenseAutomationView/selectors/reconciliationViewSelector.js +0 -250
- package/lib/view/expenseAutomationView/types/reconciliationViewState.d.ts +0 -103
- package/lib/view/expenseAutomationView/types/reconciliationViewState.js +0 -38
package/lib/view/spendManagement/zeniAccounts/zeniAccountsConfig/zeniAccountsConfigPayload.d.ts
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import { AddressPayload } from '../../../../entity/address/addressPayload';
|
|
2
2
|
import { ZeniAPIResponse } from '../../../../responsePayload';
|
|
3
|
-
import { ConfigTimelinePayload, TimelineDetail } from '../../billPay/billPayConfig/billPayConfigPayload';
|
|
4
|
-
import { BillPaymentConfigCodeType, PaymentAchSubConfigCodeType } from '../../billPay/billPayConfig/billPayConfigState';
|
|
5
3
|
import { ZeniAccountsConfig } from './zeniAccountsConfigState';
|
|
6
4
|
export interface ZeniAccountsConfigPayload {
|
|
7
5
|
apy: string | null;
|
|
@@ -9,18 +7,7 @@ export interface ZeniAccountsConfigPayload {
|
|
|
9
7
|
deposit_product_config: DepositProductConfigPayload;
|
|
10
8
|
mailing_address: AddressPayload;
|
|
11
9
|
bank_address: AddressPayload;
|
|
12
|
-
payment_processor: PaymentProcessorPayload;
|
|
13
|
-
is_us_domestic_wire_enabled: boolean;
|
|
14
|
-
is_same_day_ach_enabled: boolean;
|
|
15
10
|
}
|
|
16
|
-
export interface PaymentProcessorPayload {
|
|
17
|
-
payment_timeline: PaymentTimeline;
|
|
18
|
-
}
|
|
19
|
-
interface PaymentTimeline {
|
|
20
|
-
ach: Record<PaymentAchSubConfigCodeType, ConfigTimelineForAccTypePayload>;
|
|
21
|
-
wire: Record<'us-domestic', ConfigTimelineForAccTypePayload>;
|
|
22
|
-
}
|
|
23
|
-
export type ConfigTimelineForAccTypePayload = Record<'deposit_account', ConfigTimelinePayload>;
|
|
24
11
|
export declare const mapZeniAccountsConfigPayloadToZeniAccountsConfigState: (payload: ZeniAccountsConfigPayload) => ZeniAccountsConfig;
|
|
25
12
|
interface DepositProductConfigPayload {
|
|
26
13
|
deposit_products: DepositProductsPayload[];
|
|
@@ -30,5 +17,4 @@ interface DepositProductsPayload {
|
|
|
30
17
|
range: (number | null)[];
|
|
31
18
|
}
|
|
32
19
|
export type FetchZeniAccountsConfigResponse = ZeniAPIResponse<ZeniAccountsConfigPayload>;
|
|
33
|
-
export declare const getTimelineDetail: (paymentTimeline: PaymentTimeline, code: BillPaymentConfigCodeType, subCode: "standard" | "same-day" | "us-domestic") => TimelineDetail;
|
|
34
20
|
export {};
|
package/lib/view/spendManagement/zeniAccounts/zeniAccountsConfig/zeniAccountsConfigPayload.js
CHANGED
|
@@ -1,15 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
const billPayConfigPayload_1 = require("../../billPay/billPayConfig/billPayConfigPayload");
|
|
5
|
-
const billPayConfigState_1 = require("../../billPay/billPayConfig/billPayConfigState");
|
|
3
|
+
exports.mapZeniAccountsConfigPayloadToZeniAccountsConfigState = void 0;
|
|
6
4
|
const mapZeniAccountsConfigPayloadToZeniAccountsConfigState = (payload) => ({
|
|
7
5
|
annualPercentageYield: payload.apy != null ? payload.apy : '',
|
|
8
6
|
bankName: payload.bank_name,
|
|
9
7
|
mailingAddressId: payload.mailing_address.address_id,
|
|
10
8
|
bankAddressId: payload.bank_address.address_id,
|
|
11
9
|
depositProductConfig: mapDepositProductConfigPayloadToDepositProductConfig(payload.deposit_product_config),
|
|
12
|
-
paymentMethods: mapZeniAccountConfigPayloadToPaymentMethods(payload.payment_processor, payload.is_same_day_ach_enabled, payload.is_us_domestic_wire_enabled),
|
|
13
10
|
});
|
|
14
11
|
exports.mapZeniAccountsConfigPayloadToZeniAccountsConfigState = mapZeniAccountsConfigPayloadToZeniAccountsConfigState;
|
|
15
12
|
const mapDepositProductConfigPayloadToDepositProductConfig = (payload) => {
|
|
@@ -23,77 +20,3 @@ const mapDepositProductConfigPayloadToDepositProductConfig = (payload) => {
|
|
|
23
20
|
depositProducts: array,
|
|
24
21
|
};
|
|
25
22
|
};
|
|
26
|
-
const mapZeniAccountConfigPayloadToPaymentMethods = (paymentProcessor, isSameDayAchEnabled, isDomesticWireEnabled) => {
|
|
27
|
-
const paymentMethods = [];
|
|
28
|
-
billPayConfigState_1.BILL_PAYMENT_METHOD_CODE.forEach((code) => {
|
|
29
|
-
switch (code) {
|
|
30
|
-
case 'ach': {
|
|
31
|
-
billPayConfigState_1.PAYMENT_ACH_SUB_CODES.forEach((subCode) => {
|
|
32
|
-
billPayConfigState_1.ACCOUNT_TYPE_CODES.forEach((accType) => {
|
|
33
|
-
paymentMethods.push(mapBillPayConfigPayloadToBillPayConfig(paymentProcessor, subCode === 'standard' ? true : isSameDayAchEnabled, true, code, subCode, accType));
|
|
34
|
-
});
|
|
35
|
-
});
|
|
36
|
-
break;
|
|
37
|
-
}
|
|
38
|
-
case 'wire': {
|
|
39
|
-
billPayConfigState_1.BILL_PAYMENT_WIRE_SUB_CODES.forEach((subCode) => {
|
|
40
|
-
if (subCode === 'us-domestic') {
|
|
41
|
-
billPayConfigState_1.ACCOUNT_TYPE_CODES.forEach((accType) => {
|
|
42
|
-
paymentMethods.push(mapBillPayConfigPayloadToBillPayConfig(paymentProcessor, isDomesticWireEnabled, true, code, subCode, accType));
|
|
43
|
-
});
|
|
44
|
-
}
|
|
45
|
-
});
|
|
46
|
-
break;
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
});
|
|
50
|
-
return paymentMethods;
|
|
51
|
-
};
|
|
52
|
-
const mapBillPayConfigPayloadToBillPayConfig = (paymentProcessor, isEnabled, isVerified, code, subCode, accType) => {
|
|
53
|
-
const { payment_timeline } = paymentProcessor;
|
|
54
|
-
const { minPeriod, maxPeriod } = (0, exports.getTimelineDetail)(payment_timeline, code, subCode);
|
|
55
|
-
return {
|
|
56
|
-
minPeriod: minPeriod,
|
|
57
|
-
maxPeriod: maxPeriod,
|
|
58
|
-
method: (0, billPayConfigState_1.getBillPayConfigMethodKey)(code, (0, billPayConfigState_1.toBillPaymentSubConfigCodeKeyType)((0, billPayConfigPayload_1.getBillPaymentSubConfigCodeKey)(subCode)), accType != null ? (0, billPayConfigPayload_1.getAccountTypeSubConfigCodeKey)(accType) : undefined),
|
|
59
|
-
isEnabled,
|
|
60
|
-
isVerified,
|
|
61
|
-
};
|
|
62
|
-
};
|
|
63
|
-
const getTimelineDetail = (paymentTimeline, code, subCode) => {
|
|
64
|
-
const accType = 'deposit_account';
|
|
65
|
-
let minPeriod = {
|
|
66
|
-
value: 0,
|
|
67
|
-
units: 'days',
|
|
68
|
-
};
|
|
69
|
-
let maxPeriod = {
|
|
70
|
-
value: 0,
|
|
71
|
-
units: 'days',
|
|
72
|
-
};
|
|
73
|
-
if (code === 'ach') {
|
|
74
|
-
minPeriod = {
|
|
75
|
-
value: paymentTimeline[code][(0, billPayConfigState_1.toPaymentAchSubMethodCodeType)(subCode)][accType]
|
|
76
|
-
.min.value,
|
|
77
|
-
units: paymentTimeline[code][(0, billPayConfigState_1.toPaymentAchSubMethodCodeType)(subCode)][accType]
|
|
78
|
-
.min.units,
|
|
79
|
-
};
|
|
80
|
-
maxPeriod = {
|
|
81
|
-
value: paymentTimeline[code][(0, billPayConfigState_1.toPaymentAchSubMethodCodeType)(subCode)][accType]
|
|
82
|
-
.max.value,
|
|
83
|
-
units: paymentTimeline[code][(0, billPayConfigState_1.toPaymentAchSubMethodCodeType)(subCode)][accType]
|
|
84
|
-
.max.units,
|
|
85
|
-
};
|
|
86
|
-
}
|
|
87
|
-
else if (code === 'wire') {
|
|
88
|
-
minPeriod = {
|
|
89
|
-
value: paymentTimeline[code]['us-domestic'][accType].min.value,
|
|
90
|
-
units: paymentTimeline[code]['us-domestic'][accType].min.units,
|
|
91
|
-
};
|
|
92
|
-
maxPeriod = {
|
|
93
|
-
value: paymentTimeline[code]['us-domestic'][accType].max.value,
|
|
94
|
-
units: paymentTimeline[code]['us-domestic'][accType].max.units,
|
|
95
|
-
};
|
|
96
|
-
}
|
|
97
|
-
return { minPeriod, maxPeriod };
|
|
98
|
-
};
|
|
99
|
-
exports.getTimelineDetail = getTimelineDetail;
|
package/lib/view/spendManagement/zeniAccounts/zeniAccountsConfig/zeniAccountsConfigReducer.js
CHANGED
|
@@ -13,7 +13,6 @@ exports.initialState = {
|
|
|
13
13
|
depositProductConfig: {
|
|
14
14
|
depositProducts: [{ annualPercentageYield: 0, range: [] }],
|
|
15
15
|
},
|
|
16
|
-
paymentMethods: [],
|
|
17
16
|
},
|
|
18
17
|
hasValidState() {
|
|
19
18
|
return this.fetchState == 'Completed';
|
|
@@ -30,14 +29,13 @@ const zeniAccountsConfig = (0, toolkit_1.createSlice)({
|
|
|
30
29
|
draft.error = undefined;
|
|
31
30
|
},
|
|
32
31
|
updateZeniAccountsConfigSuccess(draft, action) {
|
|
33
|
-
const { bankName, mailingAddressId, bankAddressId, depositProductConfig, annualPercentageYield,
|
|
32
|
+
const { bankName, mailingAddressId, bankAddressId, depositProductConfig, annualPercentageYield, } = (0, zeniAccountsConfigPayload_1.mapZeniAccountsConfigPayloadToZeniAccountsConfigState)(action.payload);
|
|
34
33
|
draft.zeniAccountsConfig = {
|
|
35
34
|
annualPercentageYield,
|
|
36
35
|
bankName,
|
|
37
36
|
mailingAddressId,
|
|
38
37
|
bankAddressId,
|
|
39
38
|
depositProductConfig,
|
|
40
|
-
paymentMethods,
|
|
41
39
|
};
|
|
42
40
|
draft.fetchState = 'Completed';
|
|
43
41
|
draft.error = undefined;
|
package/lib/view/spendManagement/zeniAccounts/zeniAccountsConfig/zeniAccountsConfigSelector.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { SelectorView } from '../../../../commonStateTypes/viewAndReport/viewAndReport';
|
|
2
2
|
import { Address } from '../../../../entity/address/addressState';
|
|
3
3
|
import { RootState } from '../../../../reducer';
|
|
4
|
-
import { DepositProductConfig
|
|
4
|
+
import { DepositProductConfig } from './zeniAccountsConfigState';
|
|
5
5
|
export interface ZeniAccountsConfigSelectorView extends SelectorView {
|
|
6
6
|
zeniAccountsConfigDetail: {
|
|
7
7
|
annualPercentageYield: string;
|
|
@@ -9,7 +9,6 @@ export interface ZeniAccountsConfigSelectorView extends SelectorView {
|
|
|
9
9
|
depositProductConfig: DepositProductConfig;
|
|
10
10
|
mailingAddress?: Address;
|
|
11
11
|
bankAddress?: Address;
|
|
12
|
-
paymentMethods: ZeniAccountPaymentMethod[];
|
|
13
12
|
};
|
|
14
13
|
}
|
|
15
14
|
export declare const getZeniAccountsConfigDetail: (state: RootState) => ZeniAccountsConfigSelectorView;
|
package/lib/view/spendManagement/zeniAccounts/zeniAccountsConfig/zeniAccountsConfigSelector.js
CHANGED
|
@@ -4,7 +4,7 @@ exports.getZeniAccountsConfigDetail = void 0;
|
|
|
4
4
|
const addressSelector_1 = require("../../../../entity/address/addressSelector");
|
|
5
5
|
const getZeniAccountsConfigDetail = (state) => {
|
|
6
6
|
const { zeniAccountsConfigState, addressState } = state;
|
|
7
|
-
const { bankName, depositProductConfig, bankAddressId, mailingAddressId, annualPercentageYield,
|
|
7
|
+
const { bankName, depositProductConfig, bankAddressId, mailingAddressId, annualPercentageYield, } = zeniAccountsConfigState.zeniAccountsConfig;
|
|
8
8
|
const mailingAddress = (0, addressSelector_1.getAddressByAddressId)(addressState, mailingAddressId);
|
|
9
9
|
const bankAddress = (0, addressSelector_1.getAddressByAddressId)(addressState, bankAddressId);
|
|
10
10
|
return {
|
|
@@ -14,7 +14,6 @@ const getZeniAccountsConfigDetail = (state) => {
|
|
|
14
14
|
depositProductConfig: depositProductConfig,
|
|
15
15
|
mailingAddress,
|
|
16
16
|
bankAddress,
|
|
17
|
-
paymentMethods,
|
|
18
17
|
},
|
|
19
18
|
fetchState: zeniAccountsConfigState.fetchState,
|
|
20
19
|
error: zeniAccountsConfigState.error,
|
package/lib/view/spendManagement/zeniAccounts/zeniAccountsConfig/zeniAccountsConfigState.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { FetchedState, ID } from '../../../../commonStateTypes/common';
|
|
2
|
-
import { ConfigPeriod } from '../../billPay/billPayConfig/billPayConfigState';
|
|
3
2
|
export interface ZeniAccountsConfigState extends FetchedState {
|
|
4
3
|
zeniAccountsConfig: ZeniAccountsConfig;
|
|
5
4
|
}
|
|
@@ -9,14 +8,6 @@ export interface ZeniAccountsConfig {
|
|
|
9
8
|
mailingAddressId: ID;
|
|
10
9
|
bankAddressId: ID;
|
|
11
10
|
depositProductConfig: DepositProductConfig;
|
|
12
|
-
paymentMethods: ZeniAccountPaymentMethod[];
|
|
13
|
-
}
|
|
14
|
-
export interface ZeniAccountPaymentMethod {
|
|
15
|
-
minPeriod: ConfigPeriod;
|
|
16
|
-
maxPeriod: ConfigPeriod;
|
|
17
|
-
method: string;
|
|
18
|
-
isEnabled: boolean;
|
|
19
|
-
isVerified: boolean;
|
|
20
11
|
}
|
|
21
12
|
export interface DepositProductConfig {
|
|
22
13
|
depositProducts: DepositProduct[];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { RootState } from '../../reducer';
|
|
2
2
|
export declare const getTasksCardReport: (state: RootState) => {
|
|
3
|
-
reportId: "billing" | "cash_balance" | "card_balance" | "expense_automation_card" | "operating_expenses" | "operating_expenses_by_classes" | "revenue" | "revenue_by_classes" | "net_burn_or_income" | "net_burn_or_income_story_card" | "net_burn_or_income_by_classes" | "cash_position" | "top_expenses" | "profit_and_loss" | "profit_and_loss_by_classes" | "balance_sheet" | "cash_flow" | "dashboard" | "finance_statement" | "transaction_list_of_account" | "transaction_list_missing_receipt" | "transaction_list_of_account_by_class" | "transaction_detail" | "cash_in_cash_out" | "insights_dashboard" | "company_details" | "class_list" | "account_list" | "account_list_by_type" | "vendor" | "task_card" | "bill_pay" | "reimbursement" | "bill_pay_card" | "reimbursement_card" | "bill_pay_promo_card" | "zeni_accounts" | "zeni_accounts_promo_card" | "charge_cards" | "reimbursement_promo_card" | "onboarding" | "operating_expenses_by_vendor" | "operating_expenses_by_vendor_summary" | "vendors_tab" | "accounts_payable_aging" | "accounts_receivable_aging" | "vendor_global_review" | "prepaid_expenses" | "fixed_assets" | "notification" | "rewards_card" | "flux_analysis_operating_expense"
|
|
3
|
+
reportId: "billing" | "cash_balance" | "card_balance" | "expense_automation_card" | "operating_expenses" | "operating_expenses_by_classes" | "revenue" | "revenue_by_classes" | "net_burn_or_income" | "net_burn_or_income_story_card" | "net_burn_or_income_by_classes" | "cash_position" | "top_expenses" | "profit_and_loss" | "profit_and_loss_by_classes" | "balance_sheet" | "cash_flow" | "dashboard" | "finance_statement" | "transaction_list_of_account" | "transaction_list_missing_receipt" | "transaction_list_of_account_by_class" | "transaction_detail" | "cash_in_cash_out" | "insights_dashboard" | "company_details" | "class_list" | "account_list" | "account_list_by_type" | "vendor" | "task_card" | "bill_pay" | "reimbursement" | "bill_pay_card" | "reimbursement_card" | "bill_pay_promo_card" | "zeni_accounts" | "zeni_accounts_promo_card" | "charge_cards" | "reimbursement_promo_card" | "onboarding" | "operating_expenses_by_vendor" | "operating_expenses_by_vendor_summary" | "vendors_tab" | "accounts_payable_aging" | "accounts_receivable_aging" | "vendor_global_review" | "prepaid_expenses" | "fixed_assets" | "notification" | "rewards_card" | "flux_analysis_operating_expense";
|
|
4
4
|
reportTitle: string;
|
|
5
5
|
version: string | number | undefined;
|
|
6
6
|
status: import("../..").Status | undefined;
|
|
@@ -4,7 +4,7 @@ import { RootState } from '../../reducer';
|
|
|
4
4
|
import { TopExReport, TopExTimePeriodWithMetaData } from './topExSelectorTypes';
|
|
5
5
|
import { TopExState } from './topExState';
|
|
6
6
|
export declare const getTopExpenses: (accountState: AccountState, topExState: TopExState, numberOfExpenses?: number) => {
|
|
7
|
-
reportId: "billing" | "cash_balance" | "card_balance" | "expense_automation_card" | "operating_expenses" | "operating_expenses_by_classes" | "revenue" | "revenue_by_classes" | "net_burn_or_income" | "net_burn_or_income_story_card" | "net_burn_or_income_by_classes" | "cash_position" | "top_expenses" | "profit_and_loss" | "profit_and_loss_by_classes" | "balance_sheet" | "cash_flow" | "dashboard" | "finance_statement" | "transaction_list_of_account" | "transaction_list_missing_receipt" | "transaction_list_of_account_by_class" | "transaction_detail" | "cash_in_cash_out" | "insights_dashboard" | "company_details" | "class_list" | "account_list" | "account_list_by_type" | "vendor" | "task_card" | "bill_pay" | "reimbursement" | "bill_pay_card" | "reimbursement_card" | "bill_pay_promo_card" | "zeni_accounts" | "zeni_accounts_promo_card" | "charge_cards" | "reimbursement_promo_card" | "onboarding" | "operating_expenses_by_vendor" | "operating_expenses_by_vendor_summary" | "vendors_tab" | "accounts_payable_aging" | "accounts_receivable_aging" | "vendor_global_review" | "prepaid_expenses" | "fixed_assets" | "notification" | "rewards_card" | "flux_analysis_operating_expense"
|
|
7
|
+
reportId: "billing" | "cash_balance" | "card_balance" | "expense_automation_card" | "operating_expenses" | "operating_expenses_by_classes" | "revenue" | "revenue_by_classes" | "net_burn_or_income" | "net_burn_or_income_story_card" | "net_burn_or_income_by_classes" | "cash_position" | "top_expenses" | "profit_and_loss" | "profit_and_loss_by_classes" | "balance_sheet" | "cash_flow" | "dashboard" | "finance_statement" | "transaction_list_of_account" | "transaction_list_missing_receipt" | "transaction_list_of_account_by_class" | "transaction_detail" | "cash_in_cash_out" | "insights_dashboard" | "company_details" | "class_list" | "account_list" | "account_list_by_type" | "vendor" | "task_card" | "bill_pay" | "reimbursement" | "bill_pay_card" | "reimbursement_card" | "bill_pay_promo_card" | "zeni_accounts" | "zeni_accounts_promo_card" | "charge_cards" | "reimbursement_promo_card" | "onboarding" | "operating_expenses_by_vendor" | "operating_expenses_by_vendor_summary" | "vendors_tab" | "accounts_payable_aging" | "accounts_receivable_aging" | "vendor_global_review" | "prepaid_expenses" | "fixed_assets" | "notification" | "rewards_card" | "flux_analysis_operating_expense";
|
|
8
8
|
reportTitle: string;
|
|
9
9
|
version: string | number | undefined;
|
|
10
10
|
status: import("../..").Status | undefined;
|
|
@@ -25,7 +25,7 @@ const recommendationState_1 = require("../../recommendation/recommendationState"
|
|
|
25
25
|
* additionally fire “Mark as not miscat” for every point above.
|
|
26
26
|
*/
|
|
27
27
|
const toTransactionUpdatesFromTransactionDetailLocalData = (transactionDetailLocalData, transaction, isExpenseAutomationEnabled) => {
|
|
28
|
-
var _a, _b, _c
|
|
28
|
+
var _a, _b, _c;
|
|
29
29
|
const updates = {
|
|
30
30
|
updatesByLineId: {},
|
|
31
31
|
};
|
|
@@ -39,16 +39,15 @@ const toTransactionUpdatesFromTransactionDetailLocalData = (transactionDetailLoc
|
|
|
39
39
|
: undefined;
|
|
40
40
|
if ((0, vendorTransaction_1.isVendorTransaction)(transaction)) {
|
|
41
41
|
updates.vendorId = (_b = transactionDetailLocalData.vendorUpdates) === null || _b === void 0 ? void 0 : _b.id;
|
|
42
|
-
updates.customerId = (_c = transactionDetailLocalData.customerUpdates) === null || _c === void 0 ? void 0 : _c.id;
|
|
43
42
|
}
|
|
44
43
|
let isBulkUpdate = false;
|
|
45
44
|
const entity = getEntityFromTransaction(transaction);
|
|
46
45
|
let lastUpdatedCategory;
|
|
47
46
|
let lastUpdatedClass;
|
|
48
47
|
// single recommendation to just pick the last recommendation in the list of lines
|
|
49
|
-
(
|
|
48
|
+
(_c = transaction.lines) === null || _c === void 0 ? void 0 : _c.forEach((line) => {
|
|
50
49
|
var _a, _b, _c, _d, _e, _f;
|
|
51
|
-
const entityDetails = getEntityDetails(entity, transactionDetailLocalData.lineItemById[line.id], transactionDetailLocalData.vendorUpdates
|
|
50
|
+
const entityDetails = getEntityDetails(entity, transactionDetailLocalData.lineItemById[line.id], transactionDetailLocalData.vendorUpdates);
|
|
52
51
|
if (line.type === 'transaction_with_account_and_class_line' ||
|
|
53
52
|
line.type === 'transaction_with_product_or_service_line' ||
|
|
54
53
|
line.type === 'journal_entry_transaction_line') {
|
|
@@ -230,7 +229,7 @@ const getEntityFromTransaction = (transaction) => {
|
|
|
230
229
|
}
|
|
231
230
|
return entity;
|
|
232
231
|
};
|
|
233
|
-
const getEntityDetails = (entity, lineItemLocalData, vendorUpdates
|
|
232
|
+
const getEntityDetails = (entity, lineItemLocalData, vendorUpdates) => {
|
|
234
233
|
var _a, _b, _c, _d;
|
|
235
234
|
if (entity != null) {
|
|
236
235
|
return {
|
|
@@ -244,14 +243,6 @@ const getEntityDetails = (entity, lineItemLocalData, vendorUpdates, customerUpda
|
|
|
244
243
|
entityType: lineItemLocalData.vendor != null ? 'vendor' : 'customer',
|
|
245
244
|
};
|
|
246
245
|
}
|
|
247
|
-
if (customerUpdates != null &&
|
|
248
|
-
Boolean(customerUpdates.id) === true &&
|
|
249
|
-
customerUpdates.id != null) {
|
|
250
|
-
return {
|
|
251
|
-
entityId: customerUpdates.id,
|
|
252
|
-
entityType: 'customer',
|
|
253
|
-
};
|
|
254
|
-
}
|
|
255
246
|
if (vendorUpdates != null && vendorUpdates.id != null) {
|
|
256
247
|
return {
|
|
257
248
|
entityId: vendorUpdates.id,
|
|
@@ -126,7 +126,6 @@ function preparePayload(transactionState, vendorState, transactionDetailState, t
|
|
|
126
126
|
const detail = (0, transactionSelector_1.getSupportedTransactionById)(transactionState, transactionDetailKey);
|
|
127
127
|
const tranDetail = (0, get_1.default)(transactionDetailState.transactionDetailById, transactionDetailKey, undefined);
|
|
128
128
|
const tranVendorUpdates = tranDetail === null || tranDetail === void 0 ? void 0 : tranDetail.transactionDetailLocalData.vendorUpdates;
|
|
129
|
-
const tranCustomerUpdates = tranDetail === null || tranDetail === void 0 ? void 0 : tranDetail.transactionDetailLocalData.customerUpdates;
|
|
130
129
|
let vendorUpdates = undefined;
|
|
131
130
|
if ((tranVendorUpdates === null || tranVendorUpdates === void 0 ? void 0 : tranVendorUpdates.qboId) != null) {
|
|
132
131
|
const vendor = (0, vendorSelector_1.getVendorByVendorId)(vendorState, tranVendorUpdates.qboId);
|
|
@@ -143,15 +142,8 @@ function preparePayload(transactionState, vendorState, transactionDetailState, t
|
|
|
143
142
|
};
|
|
144
143
|
}
|
|
145
144
|
}
|
|
146
|
-
let customerUpdates = undefined;
|
|
147
|
-
if ((tranCustomerUpdates === null || tranCustomerUpdates === void 0 ? void 0 : tranCustomerUpdates.qboId) != null) {
|
|
148
|
-
customerUpdates = {
|
|
149
|
-
id: tranCustomerUpdates.qboId,
|
|
150
|
-
name: tranCustomerUpdates.name,
|
|
151
|
-
};
|
|
152
|
-
}
|
|
153
145
|
if (detail != null) {
|
|
154
|
-
const transUpdates = toTransactionUpdatePayload(saveUpdates.updates, detail, vendorUpdates
|
|
146
|
+
const transUpdates = toTransactionUpdatePayload(saveUpdates.updates, detail, vendorUpdates);
|
|
155
147
|
const entityUpdates = toEntityUpdatePayload(saveUpdates.entityRelatedUpdates);
|
|
156
148
|
return {
|
|
157
149
|
entity_related_updates: entityUpdates,
|
|
@@ -161,7 +153,7 @@ function preparePayload(transactionState, vendorState, transactionDetailState, t
|
|
|
161
153
|
}
|
|
162
154
|
return undefined;
|
|
163
155
|
}
|
|
164
|
-
const toTransactionUpdatePayload = (updates, detail, vendorUpdates
|
|
156
|
+
const toTransactionUpdatePayload = (updates, detail, vendorUpdates) => {
|
|
165
157
|
var _a, _b;
|
|
166
158
|
const transaction = Object.assign({}, detail);
|
|
167
159
|
transaction.memo = (_a = updates.memo) !== null && _a !== void 0 ? _a : '';
|
|
@@ -205,12 +197,7 @@ const toTransactionUpdatePayload = (updates, detail, vendorUpdates, customerUpda
|
|
|
205
197
|
return (0, customerTransactionPayload_1.toCustomerTransactionPayload)(transaction);
|
|
206
198
|
}
|
|
207
199
|
else if ((0, vendorTransaction_1.isVendorTransaction)(transaction)) {
|
|
208
|
-
|
|
209
|
-
return (0, vendorTransactionPayload_1.toVendorTransactionWithCustomerPayload)(transaction, vendorUpdates, customerUpdates);
|
|
210
|
-
}
|
|
211
|
-
else {
|
|
212
|
-
return (0, vendorTransactionPayload_1.toVendorTransactionPayload)(transaction, vendorUpdates);
|
|
213
|
-
}
|
|
200
|
+
return (0, vendorTransactionPayload_1.toVendorTransactionPayload)(transaction, vendorUpdates);
|
|
214
201
|
}
|
|
215
202
|
else if ((0, otherTransaction_1.isTransferTransaction)(transaction)) {
|
|
216
203
|
return (0, otherTransactionPayload_1.toTransferTransactionPayload)(transaction);
|
|
@@ -6,9 +6,8 @@ const customerTransaction_1 = require("../../entity/transaction/stateTypes/custo
|
|
|
6
6
|
const vendorTransaction_1 = require("../../entity/transaction/stateTypes/vendorTransaction");
|
|
7
7
|
const transactionDetailState_1 = require("./transactionDetailState");
|
|
8
8
|
const toTransactionDetailLocalData = (transaction, vendorId, uncategorizedIncomeExpense) => {
|
|
9
|
-
var _a, _b, _c, _d, _e, _f, _g
|
|
9
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
10
10
|
const transactionLocal = Object.assign({}, transactionDetailState_1.initialSupportedTransactionDetail.transactionDetailLocalData);
|
|
11
|
-
const customerId = transaction.customerId;
|
|
12
11
|
transactionLocal.memo = transaction.memo;
|
|
13
12
|
transactionLocal.vendorUpdates =
|
|
14
13
|
(0, vendorTransaction_1.isVendorTransaction)(transaction) && vendorId != null
|
|
@@ -18,28 +17,12 @@ const toTransactionDetailLocalData = (transaction, vendorId, uncategorizedIncome
|
|
|
18
17
|
qboId: (_c = transaction.vendor) === null || _c === void 0 ? void 0 : _c.id,
|
|
19
18
|
}
|
|
20
19
|
: undefined;
|
|
21
|
-
transactionLocal.customerUpdates =
|
|
22
|
-
(0, customerTransaction_1.isCustomerTransaction)(transaction) && customerId != null
|
|
23
|
-
? {
|
|
24
|
-
id: customerId,
|
|
25
|
-
name: (_e = (_d = transaction.customer) === null || _d === void 0 ? void 0 : _d.name) !== null && _e !== void 0 ? _e : '',
|
|
26
|
-
qboId: (_g = (_f = transaction.customer) === null || _f === void 0 ? void 0 : _f.id) !== null && _g !== void 0 ? _g : '',
|
|
27
|
-
}
|
|
28
|
-
: undefined;
|
|
29
20
|
transactionLocal.vendorDetails =
|
|
30
21
|
(0, vendorTransaction_1.isVendorTransaction)(transaction) && vendorId != null
|
|
31
22
|
? {
|
|
32
23
|
id: vendorId,
|
|
33
|
-
qboId: (
|
|
34
|
-
name: (
|
|
35
|
-
}
|
|
36
|
-
: undefined;
|
|
37
|
-
transactionLocal.customerDetails =
|
|
38
|
-
(0, customerTransaction_1.isCustomerTransaction)(transaction) && customerId != null
|
|
39
|
-
? {
|
|
40
|
-
id: customerId,
|
|
41
|
-
qboId: (_o = (_m = transaction.customer) === null || _m === void 0 ? void 0 : _m.id) !== null && _o !== void 0 ? _o : '',
|
|
42
|
-
name: (_q = (_p = transaction.customer) === null || _p === void 0 ? void 0 : _p.name) !== null && _q !== void 0 ? _q : '',
|
|
24
|
+
qboId: (_e = (_d = transaction.vendor) === null || _d === void 0 ? void 0 : _d.id) !== null && _e !== void 0 ? _e : '',
|
|
25
|
+
name: (_g = (_f = transaction.vendor) === null || _f === void 0 ? void 0 : _f.name) !== null && _g !== void 0 ? _g : '',
|
|
43
26
|
}
|
|
44
27
|
: undefined;
|
|
45
28
|
transactionLocal.lineItemById =
|
|
@@ -678,12 +661,12 @@ const toSetAllLineItemsToVendor = (transaction, transactionDetailLocalData, enti
|
|
|
678
661
|
? toVendorBaseFromLineEntity(entity)
|
|
679
662
|
: undefined;
|
|
680
663
|
if (line.type === 'transaction_with_product_or_service_line') {
|
|
681
|
-
const lineRecord = Object.assign(Object.assign({}, transactionDetailLocalData.lineItemById[lineId]), { vendor: record.vendor
|
|
664
|
+
const lineRecord = Object.assign(Object.assign({}, transactionDetailLocalData.lineItemById[lineId]), { vendor: record.vendor });
|
|
682
665
|
record.item = lineRecord.item;
|
|
683
666
|
record.lineDetailType = lineRecord.lineDetailType;
|
|
684
667
|
}
|
|
685
668
|
if (line.type === 'journal_entry_transaction_line') {
|
|
686
|
-
const lineRecord = Object.assign(Object.assign({}, transactionDetailLocalData.lineItemById[lineId]), { vendor: record.vendor
|
|
669
|
+
const lineRecord = Object.assign(Object.assign({}, transactionDetailLocalData.lineItemById[lineId]), { vendor: record.vendor });
|
|
687
670
|
record.lineTransactionType = lineRecord.lineTransactionType;
|
|
688
671
|
record.postingType = lineRecord.postingType;
|
|
689
672
|
record.postingTypeName = lineRecord.postingTypeName;
|
|
@@ -44,12 +44,6 @@ export interface TransactionDetailLocalData {
|
|
|
44
44
|
name: string;
|
|
45
45
|
qboId: ID;
|
|
46
46
|
};
|
|
47
|
-
customerDetails?: {
|
|
48
|
-
id: ID;
|
|
49
|
-
name: string;
|
|
50
|
-
qboId: ID;
|
|
51
|
-
};
|
|
52
|
-
customerUpdates?: TransactionVendorUpdates;
|
|
53
47
|
vendorUpdates?: TransactionVendorUpdates;
|
|
54
48
|
updatePreviousTransactionsWithUpdatedVendor?: boolean;
|
|
55
49
|
isVendorUpdateAllChecked: boolean;
|
|
@@ -3,7 +3,7 @@ import { SortOrder } from '../../../commonStateTypes/selectorTypes/sortOrderType
|
|
|
3
3
|
import { PageToken } from '../../../commonStateTypes/viewAndReport/viewAndReport';
|
|
4
4
|
import { GlobalVendorReviewRowCurrentSelection } from '../common/state/commonTypes';
|
|
5
5
|
import { RecommendedNonExistingGlobalMerchant } from '../vendorFirstReviewView/vendorFirstReviewViewState';
|
|
6
|
-
export declare const toVendorGlobalReviewColumnSortKeyType: (v: string) => "tenants" | "
|
|
6
|
+
export declare const toVendorGlobalReviewColumnSortKeyType: (v: string) => "tenants" | "originalVendor" | "recommended" | "requestedVendor";
|
|
7
7
|
export type VendorGlobalReviewViewColumnSortKey = ReturnType<typeof toVendorGlobalReviewColumnSortKeyType>;
|
|
8
8
|
export interface GlobalReviewPageCurrentSelectionByColumn {
|
|
9
9
|
requested: boolean;
|
package/lib/zeniAPI.d.ts
CHANGED
|
@@ -18,7 +18,6 @@ export interface RESTAPIEndpoints {
|
|
|
18
18
|
readonly cardMicroServiceBaseUrl: string;
|
|
19
19
|
readonly taskMicroServiceBaseUrl: string;
|
|
20
20
|
readonly notificationMicroServiceBaseUrl: string;
|
|
21
|
-
readonly reconciliationMicroServiceBaseUrl: string;
|
|
22
21
|
}
|
|
23
22
|
export interface ZeniAPI<ResponseType = FetchResponse> {
|
|
24
23
|
readonly apiEndPoints: RESTAPIEndpoints;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zeniai/client-epic-state",
|
|
3
|
-
"version": "4.15.
|
|
3
|
+
"version": "4.15.32",
|
|
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",
|
|
@@ -85,7 +85,6 @@
|
|
|
85
85
|
"lint": "eslint . --ext .js,.jsx,.ts,.tsx --fix",
|
|
86
86
|
"find-dead-code": "ts-prune | grep -v '(used in module)'",
|
|
87
87
|
"find-unused-exports": "ts-unused-exports ./tsconfig.json",
|
|
88
|
-
"circular-dependency": "npx madge --circular --extensions ts ./src",
|
|
89
88
|
"build": "concurrently --kill-others-on-fail \"eslint . --ext .js,.jsx,.ts,.tsx\" \"tsc\" \"jest --config jest.config.json\" && rimraf \"lib/**/__mocks__\" \"lib/**/__testHelpers__\"",
|
|
90
89
|
"only-build": "concurrently --kill-others-on-fail \"eslint . --ext .js,.jsx,.ts,.tsx\" \"tsc\" && rimraf \"lib/**/__mocks__\" \"lib/**/__testHelpers__\"",
|
|
91
90
|
"format": "prettier --write --ignore-unknown \"src/**/*\"",
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
import { StatusCodeWithLabelPayload } from '../../commonPayloadTypes/statusPayload';
|
|
2
|
-
import { CurrencyPayload } from '../../commonPayloadTypes/v2/viewAndReportPayloadv2';
|
|
3
|
-
import { ID } from '../../commonStateTypes/common';
|
|
4
|
-
import { MatchedTransactionPayload } from '../transaction/payloadTypes/reconciliationTransactionPayloads';
|
|
5
|
-
import { AccountReconciliationData, RecommendedReviewTransaction, TransactionsToReview } from './accountReconState';
|
|
6
|
-
export interface ReconciliationDataPayload {
|
|
7
|
-
reconciliation_id: string | null;
|
|
8
|
-
account_id: ID;
|
|
9
|
-
transactions: ReconcileReviewTransactionsPayload;
|
|
10
|
-
bank_status: StatusCodeWithLabelPayload;
|
|
11
|
-
currency: CurrencyPayload;
|
|
12
|
-
start_date: string;
|
|
13
|
-
end_date: string;
|
|
14
|
-
reconciliation_status: StatusCodeWithLabelPayload | null;
|
|
15
|
-
variance: number | null;
|
|
16
|
-
bank_balance: number | null;
|
|
17
|
-
cleared_balance: number | null;
|
|
18
|
-
initial_cleared_balance: number | null;
|
|
19
|
-
error_message: string | null;
|
|
20
|
-
source: string | null;
|
|
21
|
-
created_at: string | null;
|
|
22
|
-
updated_at: string | null;
|
|
23
|
-
payment_account_updated_at: string | null;
|
|
24
|
-
user_id: ID | null;
|
|
25
|
-
retry_count: number | null;
|
|
26
|
-
}
|
|
27
|
-
export interface RecommendedReviewTransactionPayload {
|
|
28
|
-
transaction_date: string;
|
|
29
|
-
amount: number;
|
|
30
|
-
transaction_memo: string;
|
|
31
|
-
confidence_score: number;
|
|
32
|
-
recommendation_reasons: string[];
|
|
33
|
-
transaction_id?: string | null;
|
|
34
|
-
transaction_type?: string;
|
|
35
|
-
account_id?: ID | null;
|
|
36
|
-
account_name?: string | null;
|
|
37
|
-
class_id?: ID | null;
|
|
38
|
-
class_name?: string | null;
|
|
39
|
-
merchant_id?: ID | null;
|
|
40
|
-
merchant_name?: string | null;
|
|
41
|
-
merchant_type?: string | null;
|
|
42
|
-
books_transaction_id?: string | null;
|
|
43
|
-
}
|
|
44
|
-
interface RecommendedActionPayload {
|
|
45
|
-
recommended_actions: string;
|
|
46
|
-
recommended_action_description: string;
|
|
47
|
-
recommended_transactions: RecommendedReviewTransactionPayload[];
|
|
48
|
-
}
|
|
49
|
-
export interface TransactionsToReviewPayload {
|
|
50
|
-
amount: number;
|
|
51
|
-
transaction_direction: string;
|
|
52
|
-
transaction_memo: string;
|
|
53
|
-
recommended_action: RecommendedActionPayload;
|
|
54
|
-
status: string;
|
|
55
|
-
transaction_date: string;
|
|
56
|
-
transaction_id: string;
|
|
57
|
-
merchant_id?: ID | null;
|
|
58
|
-
merchant_name?: string | null;
|
|
59
|
-
merchant_type?: string | null;
|
|
60
|
-
}
|
|
61
|
-
export interface ReconcileReviewTransactionsPayload {
|
|
62
|
-
reconcile: MatchedTransactionPayload[];
|
|
63
|
-
review: TransactionsToReviewPayload[];
|
|
64
|
-
}
|
|
65
|
-
export declare const toTransactionsToReview: (payload: TransactionsToReviewPayload, currencyPayload: CurrencyPayload) => TransactionsToReview;
|
|
66
|
-
export declare const toTransactionsToReviewPayload: (payload: TransactionsToReview) => TransactionsToReviewPayload;
|
|
67
|
-
export declare const toAccountReconciliationData: (payload: ReconciliationDataPayload) => AccountReconciliationData;
|
|
68
|
-
export declare const toRecommendedReviewTransaction: (payload: RecommendedReviewTransactionPayload, currencyPayload: CurrencyPayload) => RecommendedReviewTransaction;
|
|
69
|
-
export declare const toRecommendedReviewTransactionPayload: (payload: RecommendedReviewTransaction) => RecommendedReviewTransactionPayload;
|
|
70
|
-
export {};
|