@zeniai/client-epic-state 5.0.38-betaNB1 → 5.0.39
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/viewAndReport/agingReportStateTypes.d.ts +1 -1
- package/lib/entity/accountRecon/accountReconPayload.d.ts +1 -19
- package/lib/entity/accountRecon/accountReconPayload.js +0 -21
- package/lib/entity/accountRecon/accountReconSelector.d.ts +1 -5
- package/lib/entity/accountRecon/accountReconSelector.js +0 -4
- package/lib/entity/accountRecon/accountReconState.d.ts +0 -18
- package/lib/esm/entity/accountRecon/accountReconPayload.js +0 -21
- package/lib/esm/entity/accountRecon/accountReconSelector.js +0 -4
- package/lib/esm/view/expenseAutomationView/reducers/reconciliationViewReducer.js +2 -7
- package/lib/esm/view/expenseAutomationView/selectors/reconciliationViewSelector.js +0 -2
- package/lib/esm/view/expenseAutomationView/types/reconciliationViewState.js +0 -20
- package/lib/tsconfig.typecheck.tsbuildinfo +1 -0
- package/lib/view/expenseAutomationView/payload/reconciliationPayload.d.ts +0 -19
- package/lib/view/expenseAutomationView/reducers/reconciliationViewReducer.js +2 -7
- package/lib/view/expenseAutomationView/selectorTypes/reconciliationViewSelectorTypes.d.ts +1 -2
- package/lib/view/expenseAutomationView/selectors/reconciliationViewSelector.js +0 -2
- package/lib/view/expenseAutomationView/types/reconciliationViewState.d.ts +0 -24
- package/lib/view/expenseAutomationView/types/reconciliationViewState.js +0 -21
- package/lib/view/vendorFiling1099/vendorFiling1099List/vendorFiling1099ListState.d.ts +1 -1
- package/package.json +1 -1
|
@@ -31,24 +31,6 @@ interface ExclusionInfoPayload {
|
|
|
31
31
|
export interface ExcludedAccountPayload extends AccountAndPaymentAccountPayload {
|
|
32
32
|
exclusion_info: ExclusionInfoPayload;
|
|
33
33
|
}
|
|
34
|
-
export interface ReconciliationSummaryPayload {
|
|
35
|
-
accounts: {
|
|
36
|
-
done: number;
|
|
37
|
-
failed: number;
|
|
38
|
-
in_progress: number;
|
|
39
|
-
total: number;
|
|
40
|
-
};
|
|
41
|
-
accounts_to_connect_count: number;
|
|
42
|
-
auto_matched: {
|
|
43
|
-
matched_txns: number;
|
|
44
|
-
total_txns: number;
|
|
45
|
-
};
|
|
46
|
-
needs_review: {
|
|
47
|
-
account_count: number;
|
|
48
|
-
txn_count: number;
|
|
49
|
-
};
|
|
50
|
-
time_saved_percentage: number;
|
|
51
|
-
}
|
|
52
34
|
export interface ReconciliationPayload {
|
|
53
35
|
accounts: AccountAndPaymentAccountPayload[];
|
|
54
36
|
files: FilePayload[];
|
|
@@ -57,7 +39,6 @@ export interface ReconciliationPayload {
|
|
|
57
39
|
detection_info?: DetectionInfoPayload;
|
|
58
40
|
detection_reason?: string;
|
|
59
41
|
excluded_accounts?: ExcludedAccountPayload[];
|
|
60
|
-
summary?: ReconciliationSummaryPayload;
|
|
61
42
|
}
|
|
62
43
|
export type ReconciliationResponse = ZeniAPIResponse<ReconciliationPayload>;
|
|
63
44
|
export interface SaveReconciliationReviewPayload {
|
|
@@ -6,7 +6,6 @@ const toolkit_1 = require("@reduxjs/toolkit");
|
|
|
6
6
|
const timePeriod_1 = require("../../../commonStateTypes/timePeriod");
|
|
7
7
|
const accountState_1 = require("../../../entity/account/accountState");
|
|
8
8
|
const accountReconState_1 = require("../../../entity/accountRecon/accountReconState");
|
|
9
|
-
const reconciliationViewState_1 = require("../types/reconciliationViewState");
|
|
10
9
|
// Initial state
|
|
11
10
|
exports.initialReconciliationTabsState = {
|
|
12
11
|
balances: {
|
|
@@ -80,7 +79,6 @@ exports.initialState = {
|
|
|
80
79
|
},
|
|
81
80
|
},
|
|
82
81
|
excludedAccountIDs: [],
|
|
83
|
-
summary: undefined,
|
|
84
82
|
};
|
|
85
83
|
// Create slice with reducers
|
|
86
84
|
const expenseAutomationReconciliationView = (0, toolkit_1.createSlice)({
|
|
@@ -149,7 +147,7 @@ const expenseAutomationReconciliationView = (0, toolkit_1.createSlice)({
|
|
|
149
147
|
fetchReconciliationSuccess: {
|
|
150
148
|
reducer(draft, action) {
|
|
151
149
|
if (action.payload.accountId == null) {
|
|
152
|
-
updateAllReconciliation(draft, action.payload.reconciliation.accounts, action.payload.selectedPeriod, action.payload.reconciliation.reconciliation, action.payload.refreshViewInBackground, action.payload.reconciliation.excluded_accounts ?? []
|
|
150
|
+
updateAllReconciliation(draft, action.payload.reconciliation.accounts, action.payload.selectedPeriod, action.payload.reconciliation.reconciliation, action.payload.refreshViewInBackground, action.payload.reconciliation.excluded_accounts ?? []);
|
|
153
151
|
}
|
|
154
152
|
else if (action.payload.reconciliation.reconciliation.length > 0 &&
|
|
155
153
|
action.payload.reconciliation.accounts.length > 0) {
|
|
@@ -533,7 +531,7 @@ const expenseAutomationReconciliationView = (0, toolkit_1.createSlice)({
|
|
|
533
531
|
_a = expenseAutomationReconciliationView.actions, exports.fetchReconciliation = _a.fetchReconciliation, exports.fetchReconciliationFailure = _a.fetchReconciliationFailure, exports.fetchReconciliationSuccess = _a.fetchReconciliationSuccess, exports.saveReconciliationDetail = _a.saveReconciliationDetail, exports.saveReconciliationDetailFailure = _a.saveReconciliationDetailFailure, exports.updateSelectedAccountId = _a.updateSelectedAccountId, exports.setConnectionInProgressForAccount = _a.setConnectionInProgressForAccount, exports.setStatementParseInProgress = _a.setStatementParseInProgress, exports.updateReconcileTabLocalData = _a.updateReconcileTabLocalData, exports.updateReconcileTabListSortState = _a.updateReconcileTabListSortState, exports.updateReconcileTabListScrollState = _a.updateReconcileTabListScrollState, exports.saveReconciliationDetailSuccess = _a.saveReconciliationDetailSuccess, exports.updateSelectedTab = _a.updateSelectedTab, exports.updateBalancesLocalData = _a.updateBalancesLocalData, exports.initialiseLocalDataForSelectedAccountId = _a.initialiseLocalDataForSelectedAccountId, exports.clearExpenseAutomationReconciliationView = _a.clearExpenseAutomationReconciliationView, exports.updateSelectedDrawerAccountId = _a.updateSelectedDrawerAccountId, exports.updateReviewTabSortState = _a.updateReviewTabSortState, exports.initializeReconciliationReviewTabLocalData = _a.initializeReconciliationReviewTabLocalData, exports.updateReviewTabLocalData = _a.updateReviewTabLocalData, exports.saveReconciliationReview = _a.saveReconciliationReview, exports.updateSaveReconciliationReviewFetchStatus = _a.updateSaveReconciliationReviewFetchStatus, exports.updateReconListScrollPosition = _a.updateReconListScrollPosition, exports.updateAccountReconciliationLocalData = _a.updateAccountReconciliationLocalData, exports.deleteAccountStatement = _a.deleteAccountStatement, exports.deleteAccountStatementSuccess = _a.deleteAccountStatementSuccess, exports.deleteAccountStatementFailure = _a.deleteAccountStatementFailure, exports.excludeAccountFromReconciliation = _a.excludeAccountFromReconciliation, exports.excludeAccountFromReconciliationSuccess = _a.excludeAccountFromReconciliationSuccess, exports.excludeAccountFromReconciliationFailure = _a.excludeAccountFromReconciliationFailure, exports.includeAccountInReconciliation = _a.includeAccountInReconciliation, exports.includeAccountInReconciliationSuccess = _a.includeAccountInReconciliationSuccess, exports.includeAccountInReconciliationFailure = _a.includeAccountInReconciliationFailure, exports.uploadAccountStatement = _a.uploadAccountStatement, exports.uploadAccountStatementSuccess = _a.uploadAccountStatementSuccess, exports.uploadAccountStatementFailure = _a.uploadAccountStatementFailure, exports.updateStatementUploadChosen = _a.updateStatementUploadChosen, exports.updateNodeCollapseState = _a.updateNodeCollapseState;
|
|
534
532
|
// Export reducer
|
|
535
533
|
exports.default = expenseAutomationReconciliationView.reducer;
|
|
536
|
-
function updateAllReconciliation(draft, accounts, selectedPeriod, reconciliationData, refreshViewInBackground, excludedAccounts
|
|
534
|
+
function updateAllReconciliation(draft, accounts, selectedPeriod, reconciliationData, refreshViewInBackground, excludedAccounts) {
|
|
537
535
|
draft.excludedAccountIDs = excludedAccounts.map((ea) => ea.account_id);
|
|
538
536
|
draft.excludedAccountExclusionInfo = {};
|
|
539
537
|
excludedAccounts.forEach((ea) => {
|
|
@@ -615,9 +613,6 @@ function updateAllReconciliation(draft, accounts, selectedPeriod, reconciliation
|
|
|
615
613
|
draft.fetchState = 'Completed';
|
|
616
614
|
draft.error = undefined;
|
|
617
615
|
}
|
|
618
|
-
if (summary !== undefined) {
|
|
619
|
-
draft.summary = (0, reconciliationViewState_1.toReconciliationViewSummary)(summary);
|
|
620
|
-
}
|
|
621
616
|
}
|
|
622
617
|
function updateReconciliationByAccountID(draft, accounts, selectedPeriod, accountId, reconciliationData, refreshViewInBackground) {
|
|
623
618
|
const oldRecord = draft.accountReconciliationRecordsBySelectedPeriod[(0, timePeriod_1.toMonthYearPeriodId)(selectedPeriod)].reconciliationByAccountID[accountId];
|
|
@@ -9,7 +9,7 @@ import { BankStatusCodeType } from '../../../entity/accountRecon/accountReconSta
|
|
|
9
9
|
import { ClassBase } from '../../../entity/class/classState';
|
|
10
10
|
import { Vendor } from '../../../entity/vendor/vendorState';
|
|
11
11
|
import { PlaidConnectionDetails } from '../../spendManagement/plaidAccount/plaidAccountViewState';
|
|
12
|
-
import { AccountReconciliationLocalData, ActionFetchStates, ReconListUIState, ReconciliationTabsState,
|
|
12
|
+
import { AccountReconciliationLocalData, ActionFetchStates, ReconListUIState, ReconciliationTabsState, ReconciliationViewTabType } from '../types/reconciliationViewState';
|
|
13
13
|
export declare const ALL_ACCOUNT_RECON_SECTION_IDS: readonly ["assets", "liabilities"];
|
|
14
14
|
export declare const toAccountReconSectionID: (v: string) => "assets" | "liabilities";
|
|
15
15
|
export type AccountReconSectionID = ReturnType<typeof toAccountReconSectionID>;
|
|
@@ -41,7 +41,6 @@ export interface ExpenseAutomationReconciliationViewSelector {
|
|
|
41
41
|
selectedAccountId?: ID;
|
|
42
42
|
selectedDrawerAccountId?: ID;
|
|
43
43
|
selectedReconAccount?: AccountReconciliationByAccount;
|
|
44
|
-
summary?: ReconciliationViewSummary;
|
|
45
44
|
}
|
|
46
45
|
export interface AccountReconciliationBySection {
|
|
47
46
|
accountIDs: ID[];
|
|
@@ -121,7 +121,6 @@ exports.getExpenseAutomationReconciliationView = (0, toolkit_1.createSelector)((
|
|
|
121
121
|
excludeAccountFetchState: reconciliationViewState.actionFetchState.excludeAccountFetch,
|
|
122
122
|
includeAccountFetchState: reconciliationViewState.actionFetchState.includeAccountFetch,
|
|
123
123
|
excludedAccountIDs: reconciliationViewState.excludedAccountIDs,
|
|
124
|
-
summary: reconciliationViewState.summary,
|
|
125
124
|
};
|
|
126
125
|
}
|
|
127
126
|
const allAccountIDs = accountReconForMonthYearPeriod.accountIDs;
|
|
@@ -430,7 +429,6 @@ exports.getExpenseAutomationReconciliationView = (0, toolkit_1.createSelector)((
|
|
|
430
429
|
excludeAccountFetchState: reconciliationViewState.actionFetchState.excludeAccountFetch,
|
|
431
430
|
includeAccountFetchState: reconciliationViewState.actionFetchState.includeAccountFetch,
|
|
432
431
|
excludedAccountIDs: reconciliationViewState.excludedAccountIDs,
|
|
433
|
-
summary: reconciliationViewState.summary,
|
|
434
432
|
};
|
|
435
433
|
});
|
|
436
434
|
const isAccountReconReport = (reportId) => {
|
|
@@ -7,29 +7,6 @@ import { BankStatusCodeType } from '../../../entity/accountRecon/accountReconSta
|
|
|
7
7
|
import { CustomerBase } from '../../../entity/customer/customerState';
|
|
8
8
|
import { VendorBase } from '../../../entity/vendor/vendorState';
|
|
9
9
|
import { ZeniAPIStatus } from '../../../responsePayload';
|
|
10
|
-
import { ReconciliationSummaryPayload } from '../payload/reconciliationPayload';
|
|
11
|
-
export interface ReconciliationSummaryAccounts {
|
|
12
|
-
done: number;
|
|
13
|
-
failed: number;
|
|
14
|
-
inProgress: number;
|
|
15
|
-
total: number;
|
|
16
|
-
}
|
|
17
|
-
export interface ReconciliationSummaryAutoMatched {
|
|
18
|
-
matchedTxns: number;
|
|
19
|
-
totalTxns: number;
|
|
20
|
-
}
|
|
21
|
-
export interface ReconciliationSummaryNeedsReview {
|
|
22
|
-
accountCount: number;
|
|
23
|
-
txnCount: number;
|
|
24
|
-
}
|
|
25
|
-
export interface ReconciliationViewSummary {
|
|
26
|
-
accounts: ReconciliationSummaryAccounts;
|
|
27
|
-
accountsToConnectCount: number;
|
|
28
|
-
autoMatched: ReconciliationSummaryAutoMatched;
|
|
29
|
-
needsReview: ReconciliationSummaryNeedsReview;
|
|
30
|
-
timeSavedPercentage: number;
|
|
31
|
-
}
|
|
32
|
-
export declare function toReconciliationViewSummary(payload: ReconciliationSummaryPayload): ReconciliationViewSummary;
|
|
33
10
|
export declare const RECONCILE_ACTIONS: readonly ["reconcile", "save_reconcile_for_later", "exclude"];
|
|
34
11
|
export declare const toReconcileActions: (v: string) => "reconcile" | "save_reconcile_for_later" | "exclude";
|
|
35
12
|
export type ReconcileActionType = ReturnType<typeof toReconcileActions>;
|
|
@@ -133,7 +110,6 @@ export interface ReconciliationViewState extends FetchStateAndError {
|
|
|
133
110
|
statementUploadChosen: boolean;
|
|
134
111
|
selectedAccountId?: ID;
|
|
135
112
|
selectedDrawerAccountId?: ID;
|
|
136
|
-
summary?: ReconciliationViewSummary;
|
|
137
113
|
}
|
|
138
114
|
export interface BankConnectionStatus {
|
|
139
115
|
connectionInProgress: boolean;
|
|
@@ -1,28 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.toReconciliationTabsType = exports.toReconcileActions = exports.RECONCILE_ACTIONS = void 0;
|
|
4
|
-
exports.toReconciliationViewSummary = toReconciliationViewSummary;
|
|
5
4
|
const stringToUnion_1 = require("../../../commonStateTypes/stringToUnion");
|
|
6
|
-
function toReconciliationViewSummary(payload) {
|
|
7
|
-
return {
|
|
8
|
-
accounts: {
|
|
9
|
-
done: payload.accounts.done,
|
|
10
|
-
failed: payload.accounts.failed,
|
|
11
|
-
inProgress: payload.accounts.in_progress,
|
|
12
|
-
total: payload.accounts.total,
|
|
13
|
-
},
|
|
14
|
-
accountsToConnectCount: payload.accounts_to_connect_count,
|
|
15
|
-
autoMatched: {
|
|
16
|
-
matchedTxns: payload.auto_matched.matched_txns,
|
|
17
|
-
totalTxns: payload.auto_matched.total_txns,
|
|
18
|
-
},
|
|
19
|
-
needsReview: {
|
|
20
|
-
accountCount: payload.needs_review.account_count,
|
|
21
|
-
txnCount: payload.needs_review.txn_count,
|
|
22
|
-
},
|
|
23
|
-
timeSavedPercentage: payload.time_saved_percentage,
|
|
24
|
-
};
|
|
25
|
-
}
|
|
26
5
|
exports.RECONCILE_ACTIONS = [
|
|
27
6
|
'reconcile',
|
|
28
7
|
'save_reconcile_for_later',
|
|
@@ -20,7 +20,7 @@ export interface VendorFiling1099ListQuery {
|
|
|
20
20
|
sortKey: VendorFiling1099ListViewSortKey;
|
|
21
21
|
sortOrder: SortOrder;
|
|
22
22
|
}
|
|
23
|
-
declare const toVendorFiling1099ListViewSortKey: (v: string) => "status" | "w9" | "
|
|
23
|
+
declare const toVendorFiling1099ListViewSortKey: (v: string) => "status" | "w9" | "legal_name" | "total" | "tax_classification" | "filing1099type";
|
|
24
24
|
export type VendorFiling1099ListViewSortKey = ReturnType<typeof toVendorFiling1099ListViewSortKey>;
|
|
25
25
|
export type Type1099Download = 'nec' | 'misc' | 'int';
|
|
26
26
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zeniai/client-epic-state",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.39",
|
|
4
4
|
"description": "Shared module between Web & Mobile containing required abstractions for state management, async network communication. ",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "lib/esm/index.js",
|