@zeniai/client-epic-state 4.13.94 → 4.13.96
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/entity/billPay/recurringBills/recurringBillsState.d.ts +2 -2
- package/lib/entity/chargeCard/chargeCard.d.ts +1 -1
- package/lib/entity/vendorExpense/vendorExpenseSelector.d.ts +2 -2
- package/lib/index.d.ts +3 -3
- package/lib/index.js +8 -11
- package/lib/view/addressView/epic/fetchAddressEpic.d.ts +3 -3
- package/lib/view/addressView/epic/updateAddressEpic.d.ts +3 -3
- package/lib/view/common/recurringViewHelper.d.ts +2 -2
- package/lib/view/commonVendorView/vendorsTabVendorView/vendorsTabVendorViewReducer.d.ts +2 -2
- package/lib/view/companyView/types/cockpitTabsID.d.ts +1 -1
- package/lib/view/companyView/types/cockpitTypes.d.ts +2 -2
- package/lib/view/dashboard/dashboardEpic.js +2 -16
- package/lib/view/expenseAutomationView/epics/fluxAnalysis/reviewFluxAnalysisEpic.d.ts +3 -2
- package/lib/view/expenseAutomationView/epics/fluxAnalysis/reviewFluxAnalysisEpic.js +13 -1
- package/lib/view/expenseAutomationView/epics/jeSchedule/ignoreRecommendedJeScheduleEpic.d.ts +2 -1
- package/lib/view/expenseAutomationView/epics/jeSchedule/ignoreRecommendedJeScheduleEpic.js +7 -0
- package/lib/view/expenseAutomationView/epics/jeSchedule/retryJeSchedulesEpic.d.ts +2 -1
- package/lib/view/expenseAutomationView/epics/jeSchedule/retryJeSchedulesEpic.js +7 -0
- package/lib/view/expenseAutomationView/epics/missingReceipts/uploadMissingReceiptSuccessEpic.d.ts +5 -8
- package/lib/view/expenseAutomationView/epics/missingReceipts/uploadMissingReceiptSuccessEpic.js +16 -2
- package/lib/view/expenseAutomationView/epics/transactionCategorization/updateTransactionCategorizationEpic.d.ts +2 -1
- package/lib/view/expenseAutomationView/epics/transactionCategorization/updateTransactionCategorizationEpic.js +13 -0
- package/lib/view/expenseAutomationView/helpers/helpers.d.ts +3 -0
- package/lib/view/expenseAutomationView/helpers/helpers.js +18 -1
- package/lib/view/expenseAutomationView/selectors/fluxAnalysisViewSelector.js +1 -14
- package/lib/view/expenseAutomationView/selectors/jeSchedulesViewSelector.js +9 -8
- package/lib/view/expenseAutomationView/selectors/missingReceiptsSelector.js +11 -6
- package/lib/view/expenseAutomationView/selectors/transactionCategorizationSelector.js +11 -17
- package/lib/view/people/changeZeniPersonRolesEpic.d.ts +3 -3
- package/lib/view/people/invitePeopleEpic.d.ts +12 -12
- package/lib/view/people/inviteZeniPeopleEpic.d.ts +12 -12
- package/lib/view/people/resendInviteEpic.d.ts +3 -3
- package/lib/view/reportUIOptions/updateReportUIOptionCOABalancesRangeEpic.d.ts +3 -3
- package/lib/view/reviewCompanyView/reviewCompanyViewState.d.ts +1 -1
- package/lib/view/settingsView/epic/fetchMyProfileEpic.d.ts +6 -6
- package/lib/view/settingsView/settingsViewState.d.ts +1 -1
- package/lib/view/spendManagement/zeniAccounts/depositAccountList/fetchDepositAccountListEpic.js +0 -1
- package/lib/view/spendManagement/zeniAccounts/zeniAccountList/fetchZeniAccountListPageEpic.js +1 -1
- package/lib/view/spendManagement/zeniAccounts/zeniAccountList/zeniAccountListReducer.d.ts +1 -5
- package/lib/view/spendManagement/zeniAccounts/zeniAccountList/zeniAccountListReducer.js +4 -19
- package/lib/view/spendManagement/zeniAccounts/zeniAccountList/zeniAccountListSelector.d.ts +1 -2
- package/lib/view/spendManagement/zeniAccounts/zeniAccountList/zeniAccountListSelector.js +2 -11
- package/lib/view/spendManagement/zeniAccounts/zeniAccountList/zeniAccountListState.d.ts +1 -10
- package/lib/view/spendManagement/zeniAccounts/zeniAccountList/zeniAccountListState.js +0 -4
- package/lib/view/subscriptionView/types/subscriptionTypes.d.ts +1 -1
- package/lib/view/topEx/topExReducer.d.ts +1 -1
- package/lib/view/topEx/topExSelector.d.ts +2 -2
- package/lib/view/topEx/topExState.d.ts +1 -1
- package/lib/view/vendorReviewView/common/state/commonTypes.d.ts +1 -1
- package/package.json +1 -1
|
@@ -11,10 +11,12 @@ const lodash_1 = require("lodash");
|
|
|
11
11
|
const scheduleDetailSelector_1 = require("../../scheduleView/scheduleDetailView/scheduleDetailSelector");
|
|
12
12
|
const timePeriod_1 = require("../../../commonStateTypes/timePeriod");
|
|
13
13
|
const tenantSelector_1 = require("../../../entity/tenant/tenantSelector");
|
|
14
|
+
const expenseAutomationViewSelectorTypes_1 = require("../selectorTypes/expenseAutomationViewSelectorTypes");
|
|
14
15
|
function getExpenseAutomationJESchedulesView(state) {
|
|
16
|
+
var _a;
|
|
15
17
|
const jeScheduledTransaction = [];
|
|
16
18
|
const failedJeScheduledTransaction = [];
|
|
17
|
-
const { accountState, accountListState, classState, classListState, expenseAutomationJESchedulesViewState, expenseAutomationViewState, } = state;
|
|
19
|
+
const { accountState, accountListState, classState, classListState, expenseAutomationJESchedulesViewState, expenseAutomationViewState, monthEndCloseChecksState, } = state;
|
|
18
20
|
const { jeScheduleTransactionKeysByPeriod, failedJeScheduleTransactionKeysByPeriod, jeScheduleLocalDataById, postStatusById, ignoreStatusById, uiState, error, fetchState, refreshStatus, } = expenseAutomationJESchedulesViewState;
|
|
19
21
|
const currentTenant = (0, tenantSelector_1.getCurrentTenant)(state);
|
|
20
22
|
const { selectedPeriodByTenantId } = expenseAutomationViewState;
|
|
@@ -66,6 +68,11 @@ function getExpenseAutomationJESchedulesView(state) {
|
|
|
66
68
|
resolveSchedules.push(Object.assign(Object.assign({}, schedule), { scheduledJournalEntry: journalEntry }));
|
|
67
69
|
});
|
|
68
70
|
});
|
|
71
|
+
const allSteps = monthYearPeriodId != null
|
|
72
|
+
? (0, expenseAutomationViewSelectorTypes_1.getAllSteps)(monthEndCloseChecksState, monthYearPeriodId, currentTenant.tenantId)
|
|
73
|
+
: [];
|
|
74
|
+
const jeCompletionStatus = (_a = allSteps.find((step) => step.step === 'je_schedules')) === null || _a === void 0 ? void 0 : _a.completionStatus;
|
|
75
|
+
const completionStatus = jeCompletionStatus != null ? jeCompletionStatus : 'incomplete';
|
|
69
76
|
return {
|
|
70
77
|
uncategorizedAccounts,
|
|
71
78
|
allDepreciationAccountList: filteredDepAccounts,
|
|
@@ -83,13 +90,7 @@ function getExpenseAutomationJESchedulesView(state) {
|
|
|
83
90
|
uiState: uiState,
|
|
84
91
|
error: error,
|
|
85
92
|
refreshStatus,
|
|
86
|
-
completionStatus
|
|
87
|
-
draftSchedules.length === 0 &&
|
|
88
|
-
resolveSchedules.length === 0 &&
|
|
89
|
-
jeScheduleTransactionKeysForSelectedPeriod != null &&
|
|
90
|
-
failedJeScheduleTransactionKeysForSelectedPeriod != null
|
|
91
|
-
? 'complete'
|
|
92
|
-
: 'incomplete',
|
|
93
|
+
completionStatus,
|
|
93
94
|
};
|
|
94
95
|
}
|
|
95
96
|
exports.getExpenseAutomationJESchedulesView = getExpenseAutomationJESchedulesView;
|
|
@@ -8,8 +8,10 @@ const orderBy_1 = __importDefault(require("lodash/orderBy"));
|
|
|
8
8
|
const transactionSelector_1 = require("../../../entity/transaction/transactionSelector");
|
|
9
9
|
const timePeriod_1 = require("../../../commonStateTypes/timePeriod");
|
|
10
10
|
const tenantSelector_1 = require("../../../entity/tenant/tenantSelector");
|
|
11
|
+
const expenseAutomationViewSelectorTypes_1 = require("../selectorTypes/expenseAutomationViewSelectorTypes");
|
|
11
12
|
function getExpenseAutomationMissingReceiptsView(state) {
|
|
12
|
-
|
|
13
|
+
var _a;
|
|
14
|
+
const { expenseAutomationMissingReceiptsViewState, expenseAutomationViewState, transactionState, monthEndCloseChecksState, } = state;
|
|
13
15
|
const currentTenant = (0, tenantSelector_1.getCurrentTenant)(state);
|
|
14
16
|
const { selectedPeriodByTenantId } = expenseAutomationViewState;
|
|
15
17
|
const selectedPeriod = selectedPeriodByTenantId[currentTenant.tenantId];
|
|
@@ -44,6 +46,13 @@ function getExpenseAutomationMissingReceiptsView(state) {
|
|
|
44
46
|
return ((_c = transaction.vendorName) !== null && _c !== void 0 ? _c : transaction.description).toLowerCase();
|
|
45
47
|
}
|
|
46
48
|
}, uiState.sortOrder === 'ascending' ? 'asc' : 'desc');
|
|
49
|
+
const allSteps = monthYearPeriodId != null
|
|
50
|
+
? (0, expenseAutomationViewSelectorTypes_1.getAllSteps)(monthEndCloseChecksState, monthYearPeriodId, currentTenant.tenantId)
|
|
51
|
+
: [];
|
|
52
|
+
const missingReceiptsCompletionStatus = (_a = allSteps.find((step) => step.step === 'missing_receipts')) === null || _a === void 0 ? void 0 : _a.completionStatus;
|
|
53
|
+
const completionStatus = missingReceiptsCompletionStatus != null
|
|
54
|
+
? missingReceiptsCompletionStatus
|
|
55
|
+
: 'incomplete';
|
|
47
56
|
return {
|
|
48
57
|
fetchState,
|
|
49
58
|
error,
|
|
@@ -51,11 +60,7 @@ function getExpenseAutomationMissingReceiptsView(state) {
|
|
|
51
60
|
uiState,
|
|
52
61
|
refreshStatus,
|
|
53
62
|
transactions: sortedTransactions,
|
|
54
|
-
completionStatus
|
|
55
|
-
fetchState === 'Completed' &&
|
|
56
|
-
transactionIds.length === 0
|
|
57
|
-
? 'complete'
|
|
58
|
-
: 'incomplete',
|
|
63
|
+
completionStatus,
|
|
59
64
|
};
|
|
60
65
|
}
|
|
61
66
|
exports.getExpenseAutomationMissingReceiptsView = getExpenseAutomationMissingReceiptsView;
|
|
@@ -11,11 +11,11 @@ const transactionSelector_1 = require("../../../entity/transaction/transactionSe
|
|
|
11
11
|
const timePeriod_1 = require("../../../commonStateTypes/timePeriod");
|
|
12
12
|
const tenantSelector_1 = require("../../../entity/tenant/tenantSelector");
|
|
13
13
|
const reduceFetchState_1 = require("../../../commonStateTypes/reduceFetchState");
|
|
14
|
+
const expenseAutomationViewSelectorTypes_1 = require("../selectorTypes/expenseAutomationViewSelectorTypes");
|
|
14
15
|
function getExpenseAutomationTransactionView(state, selectedTab) {
|
|
15
|
-
|
|
16
|
+
var _a;
|
|
17
|
+
const { accountState, classState, classListState, accountListState, expenseAutomationTransactionsViewState, expenseAutomationViewState, transactionState, monthEndCloseChecksState, } = state;
|
|
16
18
|
const { uiState, refreshStatus, saveStatus, markAsNotMiscategorizedStatus, transactionIdsBySelectedPeriod, transactionReviewLocalDataById, selectedCheckBoxTransactionIds, } = expenseAutomationTransactionsViewState[selectedTab];
|
|
17
|
-
const { transactionIdsBySelectedPeriod: transactionIdsBySelectedPeriodAutoCatTab, } = expenseAutomationTransactionsViewState.autoCategorized;
|
|
18
|
-
const { transactionIdsBySelectedPeriod: transactionIdsBySelectedPeriodReviewTab, } = expenseAutomationTransactionsViewState.review;
|
|
19
19
|
const uncategorizedIncomeExpense = (0, accountListSelector_1.getUncategorizedAccounts)(accountState, accountListState, 'accountList');
|
|
20
20
|
const accountList = (0, accountListSelector_1.getAccountList)(accountState, accountListState, 'accountList');
|
|
21
21
|
const classList = (0, classListSelector_1.getClassList)(classState, classListState);
|
|
@@ -31,15 +31,7 @@ function getExpenseAutomationTransactionView(state, selectedTab) {
|
|
|
31
31
|
const transactionIdsForSelectedPeriod = monthYearPeriodId != null
|
|
32
32
|
? transactionIdsBySelectedPeriod[monthYearPeriodId]
|
|
33
33
|
: null;
|
|
34
|
-
const transactionIdsForSelectedPeriodAutoCat = monthYearPeriodId != null
|
|
35
|
-
? transactionIdsBySelectedPeriodAutoCatTab[monthYearPeriodId]
|
|
36
|
-
: null;
|
|
37
|
-
const transactionIdsForSelectedPeriodReview = monthYearPeriodId != null
|
|
38
|
-
? transactionIdsBySelectedPeriodReviewTab[monthYearPeriodId]
|
|
39
|
-
: null;
|
|
40
34
|
const transactionIds = transactionIdsForSelectedPeriod !== null && transactionIdsForSelectedPeriod !== void 0 ? transactionIdsForSelectedPeriod : [];
|
|
41
|
-
const transactionIdsAutoCat = transactionIdsForSelectedPeriodAutoCat !== null && transactionIdsForSelectedPeriodAutoCat !== void 0 ? transactionIdsForSelectedPeriodAutoCat : [];
|
|
42
|
-
const transactionIdsReview = transactionIdsForSelectedPeriodReview !== null && transactionIdsForSelectedPeriodReview !== void 0 ? transactionIdsForSelectedPeriodReview : [];
|
|
43
35
|
const transactionLocalData = transactionIds
|
|
44
36
|
.map((transactionId) => {
|
|
45
37
|
const transactionData = transactionReviewLocalDataById[transactionId];
|
|
@@ -76,6 +68,13 @@ function getExpenseAutomationTransactionView(state, selectedTab) {
|
|
|
76
68
|
expenseAutomationTransactionsViewState.autoCategorized,
|
|
77
69
|
]),
|
|
78
70
|
};
|
|
71
|
+
const allSteps = monthYearPeriodId != null
|
|
72
|
+
? (0, expenseAutomationViewSelectorTypes_1.getAllSteps)(monthEndCloseChecksState, monthYearPeriodId, currentTenant.tenantId)
|
|
73
|
+
: [];
|
|
74
|
+
const transactionCompletionStatus = (_a = allSteps.find((step) => step.step === 'transaction_categorization')) === null || _a === void 0 ? void 0 : _a.completionStatus;
|
|
75
|
+
const completionStatus = transactionCompletionStatus != null
|
|
76
|
+
? transactionCompletionStatus
|
|
77
|
+
: 'incomplete';
|
|
79
78
|
return {
|
|
80
79
|
version: 0,
|
|
81
80
|
fetchState: fetchStatus.fetchState,
|
|
@@ -93,12 +92,7 @@ function getExpenseAutomationTransactionView(state, selectedTab) {
|
|
|
93
92
|
refreshStatus,
|
|
94
93
|
saveStatus,
|
|
95
94
|
markAsNotMiscategorizedStatus,
|
|
96
|
-
completionStatus
|
|
97
|
-
fetchStatus.fetchState === 'Completed' &&
|
|
98
|
-
transactionIdsAutoCat.length === 0 &&
|
|
99
|
-
transactionIdsReview.length === 0
|
|
100
|
-
? 'complete'
|
|
101
|
-
: 'incomplete',
|
|
95
|
+
completionStatus,
|
|
102
96
|
totalCountByTab,
|
|
103
97
|
fetchStateByTransactionTabs: fetchStateByTab,
|
|
104
98
|
};
|
|
@@ -9,9 +9,6 @@ export declare const changeZeniPersonRolesEpic: (actions$: ActionsObservable<Act
|
|
|
9
9
|
} | {
|
|
10
10
|
payload: import("../../responsePayload").ZeniAPIStatus<Record<string, unknown>>;
|
|
11
11
|
type: string;
|
|
12
|
-
} | {
|
|
13
|
-
payload: UserRolePayload[];
|
|
14
|
-
type: string;
|
|
15
12
|
} | {
|
|
16
13
|
payload: {
|
|
17
14
|
userType: import("../userListView/userListViewState").UserListType;
|
|
@@ -36,6 +33,9 @@ export declare const changeZeniPersonRolesEpic: (actions$: ActionsObservable<Act
|
|
|
36
33
|
}[] | undefined;
|
|
37
34
|
};
|
|
38
35
|
type: string;
|
|
36
|
+
} | {
|
|
37
|
+
payload: UserRolePayload[];
|
|
38
|
+
type: string;
|
|
39
39
|
} | {
|
|
40
40
|
payload: {
|
|
41
41
|
companyId: string;
|
|
@@ -9,18 +9,6 @@ export declare const invitePeopleEpic: (actions$: ActionsObservable<ActionType>,
|
|
|
9
9
|
} | {
|
|
10
10
|
payload: import("../../responsePayload").ZeniAPIStatus<Record<string, unknown>>;
|
|
11
11
|
type: string;
|
|
12
|
-
} | {
|
|
13
|
-
payload: import("./peoplePayload").PeoplePayload;
|
|
14
|
-
type: string;
|
|
15
|
-
} | {
|
|
16
|
-
payload: {
|
|
17
|
-
users: import("../..").UserPayload[];
|
|
18
|
-
updateType?: import("../..").UpdateType | undefined;
|
|
19
|
-
};
|
|
20
|
-
type: string;
|
|
21
|
-
} | {
|
|
22
|
-
payload: UserRolePayload[];
|
|
23
|
-
type: string;
|
|
24
12
|
} | {
|
|
25
13
|
payload: {
|
|
26
14
|
userType: import("../userListView/userListViewState").UserListType;
|
|
@@ -33,6 +21,9 @@ export declare const invitePeopleEpic: (actions$: ActionsObservable<ActionType>,
|
|
|
33
21
|
id: string;
|
|
34
22
|
};
|
|
35
23
|
type: string;
|
|
24
|
+
} | {
|
|
25
|
+
payload: import("./peoplePayload").PeoplePayload;
|
|
26
|
+
type: string;
|
|
36
27
|
} | {
|
|
37
28
|
payload: {
|
|
38
29
|
messageSection: "bill_pay_setup" | "reimbursement_setup" | "charge_card_setup" | "common" | "transactionDetails_updatingPastTransactions" | "transactionDetails_transactionUpdated" | "cockpit_month_end_email_sent" | "cockpit_month_end_email_save" | "cockpit_month_end_email_attachment_upload" | "je_bill_link" | "je_posted" | "audit_score_updated" | "people_invite_people" | "people_invite_multiple_people" | "people_delete_person" | "people_update_person" | "reimbursement_updated" | "reimbursement_deleted" | "reimbursement_cancelled_deleted" | "reimbursement_cancelled" | "reimbursement_approved" | "reimbursement_rejected" | "reimbursement_sent_for_approval" | "account_added" | "business_verification_save" | "business_verification_submit" | "business_verification_from_bills_submit" | "plaid_connection" | "unlink_deposit_account" | "reimbursement_approval_create" | "reimbursement_duplicate_approval_create" | "reimbursement_approval_update" | "reimbursement_duplicate_approval_update" | "reimbursement_approval_delete" | "reimbursement_create_mileage" | "reimbursement_update_mileage" | "reimbursement_accept_term" | "reimbursement_accept_employee_term" | "reimbursement_bulk_submit" | "reimbursement_bulk_processed" | "zeni_accounts_setup" | "bill_pay_approval_create" | "bill_pay_duplicate_approval_create" | "bill_pay_approval_update" | "bill_pay_duplicate_approval_update" | "bill_pay_approval_delete" | "bill_pay_updated" | "bill_pay_deleted" | "bill_pay_cancelled_deleted" | "bill_pay_cancelled" | "bill_pay_approved" | "real_time_approver_added" | "bill_pay_rejected" | "bill_pay_sent_for_approval" | "bill_pay_accept_term" | "bill_pay_bulk_submit" | "bill_pay_bulk_processed" | "bill_pay_refund" | "bill_pay_retry" | "zeni_account_accept_term" | "update_vendor" | "data_refresh_update" | "delete_bank_account" | "create_bank_account" | "create_bank_account_ach" | "create_bank_account_wire" | "create_bank_account_international" | "transfer_money" | "update_zeni_account_nickname" | "create_checking_account" | "deposit_check" | "create_vendor" | "onboarding_customer_view" | "onboarding_customer_view_complete" | "onboarding_customer_identity_verification_save" | "onboarding_customer_identity_verification_submit" | "onboarding_customer_business_verification_save" | "onboarding_customer_business_verification_submit" | "retry_bank_account_connection" | "dashboard_invite_sent" | "onboarding_info_saved" | "approve_original_merchant" | "approve_global_merchant" | "reject_global_merchant" | "create_global_merchant" | "fetch_global_merchant_no_recommendation" | "save_vendor_renamed" | "save_vendor_sent_for_review" | "save_vendor_marked_as_employee" | "save_vendor_marked_as_local_contractor" | "charge_card_accept_term" | "charge_card_receipt_upload" | "charge_card_resend_invite" | "charge_card_revoke_invite" | "create_schedule" | "save_schedule" | "delete_schedule" | "ignore_schedule" | "save_task_detail" | "fetch_task_detail" | "delete_task" | "archive_task" | "create_tag" | "delete_tag" | "update_charge_card" | "issue_charge_card" | "issue_charge_cards" | "notification_settings_saved" | "referral_invite_sent" | "notification_mark_as_read" | "mark_as_complete_schedule" | "cancel_journal_entry" | "settings_accounting_accounts_updated" | "create_card_setup" | "confirm_card_setup" | "add_card_payment_source" | "fetch_payment_sources" | "task_assigned_toast_notification" | "task_due_tomorrow_toast_notification" | "task_deleted_toast_notification" | "task_archived_toast_notification" | "task_overdue_toast_notification" | "task_overdue_toast_notification_creator" | "task_notification_count" | "task_activities_toast_notification" | "task_created_toast_notification" | "task_group_creation_success" | "task_group_deletion_success" | "task_group_update_success" | "primary_funding_account_updated" | "task_time_spent_validation" | "transactions_reviewed" | "missing_receipts_attachment" | "flux_analysis_unreviewed" | "flux_analysis_reviewed" | "receipts_upload";
|
|
@@ -45,4 +36,13 @@ export declare const invitePeopleEpic: (actions$: ActionsObservable<ActionType>,
|
|
|
45
36
|
}[] | undefined;
|
|
46
37
|
};
|
|
47
38
|
type: string;
|
|
39
|
+
} | {
|
|
40
|
+
payload: {
|
|
41
|
+
users: import("../..").UserPayload[];
|
|
42
|
+
updateType?: import("../..").UpdateType | undefined;
|
|
43
|
+
};
|
|
44
|
+
type: string;
|
|
45
|
+
} | {
|
|
46
|
+
payload: UserRolePayload[];
|
|
47
|
+
type: string;
|
|
48
48
|
}>;
|
|
@@ -6,18 +6,6 @@ import { UserRolePayload } from '../../entity/userRole/userRolePayload';
|
|
|
6
6
|
export declare const inviteZeniPeopleEpic: (actions$: ActionsObservable<ActionType>, state$: StateObservable<RootState>, zeniAPI: ZeniAPI) => import("rxjs").Observable<{
|
|
7
7
|
payload: import("../../responsePayload").ZeniAPIStatus<Record<string, unknown>>;
|
|
8
8
|
type: string;
|
|
9
|
-
} | {
|
|
10
|
-
payload: import("./peoplePayload").PeoplePayload;
|
|
11
|
-
type: string;
|
|
12
|
-
} | {
|
|
13
|
-
payload: {
|
|
14
|
-
users: import("../..").UserPayload[];
|
|
15
|
-
updateType?: import("../..").UpdateType | undefined;
|
|
16
|
-
};
|
|
17
|
-
type: string;
|
|
18
|
-
} | {
|
|
19
|
-
payload: UserRolePayload[];
|
|
20
|
-
type: string;
|
|
21
9
|
} | {
|
|
22
10
|
payload: {
|
|
23
11
|
userType: import("../userListView/userListViewState").UserListType;
|
|
@@ -30,6 +18,9 @@ export declare const inviteZeniPeopleEpic: (actions$: ActionsObservable<ActionTy
|
|
|
30
18
|
id: string;
|
|
31
19
|
};
|
|
32
20
|
type: string;
|
|
21
|
+
} | {
|
|
22
|
+
payload: import("./peoplePayload").PeoplePayload;
|
|
23
|
+
type: string;
|
|
33
24
|
} | {
|
|
34
25
|
payload: {
|
|
35
26
|
messageSection: "bill_pay_setup" | "reimbursement_setup" | "charge_card_setup" | "common" | "transactionDetails_updatingPastTransactions" | "transactionDetails_transactionUpdated" | "cockpit_month_end_email_sent" | "cockpit_month_end_email_save" | "cockpit_month_end_email_attachment_upload" | "je_bill_link" | "je_posted" | "audit_score_updated" | "people_invite_people" | "people_invite_multiple_people" | "people_delete_person" | "people_update_person" | "reimbursement_updated" | "reimbursement_deleted" | "reimbursement_cancelled_deleted" | "reimbursement_cancelled" | "reimbursement_approved" | "reimbursement_rejected" | "reimbursement_sent_for_approval" | "account_added" | "business_verification_save" | "business_verification_submit" | "business_verification_from_bills_submit" | "plaid_connection" | "unlink_deposit_account" | "reimbursement_approval_create" | "reimbursement_duplicate_approval_create" | "reimbursement_approval_update" | "reimbursement_duplicate_approval_update" | "reimbursement_approval_delete" | "reimbursement_create_mileage" | "reimbursement_update_mileage" | "reimbursement_accept_term" | "reimbursement_accept_employee_term" | "reimbursement_bulk_submit" | "reimbursement_bulk_processed" | "zeni_accounts_setup" | "bill_pay_approval_create" | "bill_pay_duplicate_approval_create" | "bill_pay_approval_update" | "bill_pay_duplicate_approval_update" | "bill_pay_approval_delete" | "bill_pay_updated" | "bill_pay_deleted" | "bill_pay_cancelled_deleted" | "bill_pay_cancelled" | "bill_pay_approved" | "real_time_approver_added" | "bill_pay_rejected" | "bill_pay_sent_for_approval" | "bill_pay_accept_term" | "bill_pay_bulk_submit" | "bill_pay_bulk_processed" | "bill_pay_refund" | "bill_pay_retry" | "zeni_account_accept_term" | "update_vendor" | "data_refresh_update" | "delete_bank_account" | "create_bank_account" | "create_bank_account_ach" | "create_bank_account_wire" | "create_bank_account_international" | "transfer_money" | "update_zeni_account_nickname" | "create_checking_account" | "deposit_check" | "create_vendor" | "onboarding_customer_view" | "onboarding_customer_view_complete" | "onboarding_customer_identity_verification_save" | "onboarding_customer_identity_verification_submit" | "onboarding_customer_business_verification_save" | "onboarding_customer_business_verification_submit" | "retry_bank_account_connection" | "dashboard_invite_sent" | "onboarding_info_saved" | "approve_original_merchant" | "approve_global_merchant" | "reject_global_merchant" | "create_global_merchant" | "fetch_global_merchant_no_recommendation" | "save_vendor_renamed" | "save_vendor_sent_for_review" | "save_vendor_marked_as_employee" | "save_vendor_marked_as_local_contractor" | "charge_card_accept_term" | "charge_card_receipt_upload" | "charge_card_resend_invite" | "charge_card_revoke_invite" | "create_schedule" | "save_schedule" | "delete_schedule" | "ignore_schedule" | "save_task_detail" | "fetch_task_detail" | "delete_task" | "archive_task" | "create_tag" | "delete_tag" | "update_charge_card" | "issue_charge_card" | "issue_charge_cards" | "notification_settings_saved" | "referral_invite_sent" | "notification_mark_as_read" | "mark_as_complete_schedule" | "cancel_journal_entry" | "settings_accounting_accounts_updated" | "create_card_setup" | "confirm_card_setup" | "add_card_payment_source" | "fetch_payment_sources" | "task_assigned_toast_notification" | "task_due_tomorrow_toast_notification" | "task_deleted_toast_notification" | "task_archived_toast_notification" | "task_overdue_toast_notification" | "task_overdue_toast_notification_creator" | "task_notification_count" | "task_activities_toast_notification" | "task_created_toast_notification" | "task_group_creation_success" | "task_group_deletion_success" | "task_group_update_success" | "primary_funding_account_updated" | "task_time_spent_validation" | "transactions_reviewed" | "missing_receipts_attachment" | "flux_analysis_unreviewed" | "flux_analysis_reviewed" | "receipts_upload";
|
|
@@ -42,6 +33,15 @@ export declare const inviteZeniPeopleEpic: (actions$: ActionsObservable<ActionTy
|
|
|
42
33
|
}[] | undefined;
|
|
43
34
|
};
|
|
44
35
|
type: string;
|
|
36
|
+
} | {
|
|
37
|
+
payload: {
|
|
38
|
+
users: import("../..").UserPayload[];
|
|
39
|
+
updateType?: import("../..").UpdateType | undefined;
|
|
40
|
+
};
|
|
41
|
+
type: string;
|
|
42
|
+
} | {
|
|
43
|
+
payload: UserRolePayload[];
|
|
44
|
+
type: string;
|
|
45
45
|
} | {
|
|
46
46
|
payload: {
|
|
47
47
|
companyId: string;
|
|
@@ -8,9 +8,6 @@ export declare type ActionType = ReturnType<typeof resendInvite> | ReturnType<ty
|
|
|
8
8
|
export declare const resendInviteEpic: (actions$: ActionsObservable<ActionType>, _: StateObservable<RootState>, zeniAPI: ZeniAPI) => import("rxjs").Observable<{
|
|
9
9
|
payload: string;
|
|
10
10
|
type: string;
|
|
11
|
-
} | {
|
|
12
|
-
payload: import("../../entity/userRole/userRolePayload").UserRolePayload[];
|
|
13
|
-
type: string;
|
|
14
11
|
} | {
|
|
15
12
|
payload: {
|
|
16
13
|
messageSection: "bill_pay_setup" | "reimbursement_setup" | "charge_card_setup" | "common" | "transactionDetails_updatingPastTransactions" | "transactionDetails_transactionUpdated" | "cockpit_month_end_email_sent" | "cockpit_month_end_email_save" | "cockpit_month_end_email_attachment_upload" | "je_bill_link" | "je_posted" | "audit_score_updated" | "people_invite_people" | "people_invite_multiple_people" | "people_delete_person" | "people_update_person" | "reimbursement_updated" | "reimbursement_deleted" | "reimbursement_cancelled_deleted" | "reimbursement_cancelled" | "reimbursement_approved" | "reimbursement_rejected" | "reimbursement_sent_for_approval" | "account_added" | "business_verification_save" | "business_verification_submit" | "business_verification_from_bills_submit" | "plaid_connection" | "unlink_deposit_account" | "reimbursement_approval_create" | "reimbursement_duplicate_approval_create" | "reimbursement_approval_update" | "reimbursement_duplicate_approval_update" | "reimbursement_approval_delete" | "reimbursement_create_mileage" | "reimbursement_update_mileage" | "reimbursement_accept_term" | "reimbursement_accept_employee_term" | "reimbursement_bulk_submit" | "reimbursement_bulk_processed" | "zeni_accounts_setup" | "bill_pay_approval_create" | "bill_pay_duplicate_approval_create" | "bill_pay_approval_update" | "bill_pay_duplicate_approval_update" | "bill_pay_approval_delete" | "bill_pay_updated" | "bill_pay_deleted" | "bill_pay_cancelled_deleted" | "bill_pay_cancelled" | "bill_pay_approved" | "real_time_approver_added" | "bill_pay_rejected" | "bill_pay_sent_for_approval" | "bill_pay_accept_term" | "bill_pay_bulk_submit" | "bill_pay_bulk_processed" | "bill_pay_refund" | "bill_pay_retry" | "zeni_account_accept_term" | "update_vendor" | "data_refresh_update" | "delete_bank_account" | "create_bank_account" | "create_bank_account_ach" | "create_bank_account_wire" | "create_bank_account_international" | "transfer_money" | "update_zeni_account_nickname" | "create_checking_account" | "deposit_check" | "create_vendor" | "onboarding_customer_view" | "onboarding_customer_view_complete" | "onboarding_customer_identity_verification_save" | "onboarding_customer_identity_verification_submit" | "onboarding_customer_business_verification_save" | "onboarding_customer_business_verification_submit" | "retry_bank_account_connection" | "dashboard_invite_sent" | "onboarding_info_saved" | "approve_original_merchant" | "approve_global_merchant" | "reject_global_merchant" | "create_global_merchant" | "fetch_global_merchant_no_recommendation" | "save_vendor_renamed" | "save_vendor_sent_for_review" | "save_vendor_marked_as_employee" | "save_vendor_marked_as_local_contractor" | "charge_card_accept_term" | "charge_card_receipt_upload" | "charge_card_resend_invite" | "charge_card_revoke_invite" | "create_schedule" | "save_schedule" | "delete_schedule" | "ignore_schedule" | "save_task_detail" | "fetch_task_detail" | "delete_task" | "archive_task" | "create_tag" | "delete_tag" | "update_charge_card" | "issue_charge_card" | "issue_charge_cards" | "notification_settings_saved" | "referral_invite_sent" | "notification_mark_as_read" | "mark_as_complete_schedule" | "cancel_journal_entry" | "settings_accounting_accounts_updated" | "create_card_setup" | "confirm_card_setup" | "add_card_payment_source" | "fetch_payment_sources" | "task_assigned_toast_notification" | "task_due_tomorrow_toast_notification" | "task_deleted_toast_notification" | "task_archived_toast_notification" | "task_overdue_toast_notification" | "task_overdue_toast_notification_creator" | "task_notification_count" | "task_activities_toast_notification" | "task_created_toast_notification" | "task_group_creation_success" | "task_group_deletion_success" | "task_group_update_success" | "primary_funding_account_updated" | "task_time_spent_validation" | "transactions_reviewed" | "missing_receipts_attachment" | "flux_analysis_unreviewed" | "flux_analysis_reviewed" | "receipts_upload";
|
|
@@ -23,4 +20,7 @@ export declare const resendInviteEpic: (actions$: ActionsObservable<ActionType>,
|
|
|
23
20
|
}[] | undefined;
|
|
24
21
|
};
|
|
25
22
|
type: string;
|
|
23
|
+
} | {
|
|
24
|
+
payload: import("../../entity/userRole/userRolePayload").UserRolePayload[];
|
|
25
|
+
type: string;
|
|
26
26
|
}>;
|
|
@@ -31,13 +31,13 @@ export declare const updateReportUIOptionCOABalancesRangeEpic: (actions$: Action
|
|
|
31
31
|
highlightedCOABalancesRange?: import("../..").COABalancesRangeWithThisPeriod | undefined;
|
|
32
32
|
};
|
|
33
33
|
type: string;
|
|
34
|
-
} | {
|
|
35
|
-
payload: import("../..").COABalancesRange;
|
|
36
|
-
type: string;
|
|
37
34
|
} | {
|
|
38
35
|
payload: {
|
|
39
36
|
selectedCOABalancesRange: import("../..").COABalancesRange;
|
|
40
37
|
highlightedCOABalancesRange?: import("../..").COABalancesRangeWithThisPeriod | undefined;
|
|
41
38
|
};
|
|
42
39
|
type: string;
|
|
40
|
+
} | {
|
|
41
|
+
payload: import("../..").COABalancesRange;
|
|
42
|
+
type: string;
|
|
43
43
|
}>;
|
|
@@ -3,7 +3,7 @@ import { SortOrder } from '../../commonStateTypes/selectorTypes/sortOrderTypes';
|
|
|
3
3
|
import { OnboardingInfo } from '../../entity/company/companyStateTypes';
|
|
4
4
|
import { ZeniDate } from '../../zeniDayJS';
|
|
5
5
|
import { AuditSummaryPayload, ReviewCompanyPayload } from './reviewCompanyPayload';
|
|
6
|
-
export declare const toReviewColumnKeyType: (v: string) => "uncategorized" | "
|
|
6
|
+
export declare const toReviewColumnKeyType: (v: string) => "uncategorized" | "auditScore" | "miscategorized" | "companyName" | "notes" | "warnings" | "vendorReview" | "reviewVendor";
|
|
7
7
|
export declare type ReviewCompanyColumnKey = ReturnType<typeof toReviewColumnKeyType>;
|
|
8
8
|
export declare type ReviewTransactionsType = 'income' | 'expense';
|
|
9
9
|
export interface AuditSummary {
|
|
@@ -16,6 +16,12 @@ export declare const fetchMyProfileEpic: (actions$: ActionsObservable<ActionType
|
|
|
16
16
|
} | {
|
|
17
17
|
payload: import("../../../responsePayload").ZeniAPIStatus<Record<string, unknown>>;
|
|
18
18
|
type: string;
|
|
19
|
+
} | {
|
|
20
|
+
payload: {
|
|
21
|
+
userType: import("../../userListView/userListViewState").UserListType;
|
|
22
|
+
usersPayload: UserPayload[];
|
|
23
|
+
};
|
|
24
|
+
type: string;
|
|
19
25
|
} | {
|
|
20
26
|
payload: {
|
|
21
27
|
users: UserPayload[];
|
|
@@ -28,12 +34,6 @@ export declare const fetchMyProfileEpic: (actions$: ActionsObservable<ActionType
|
|
|
28
34
|
} | {
|
|
29
35
|
payload: import("../../../entity/address/addressPayload").AddressPayload[];
|
|
30
36
|
type: string;
|
|
31
|
-
} | {
|
|
32
|
-
payload: {
|
|
33
|
-
userType: import("../../userListView/userListViewState").UserListType;
|
|
34
|
-
usersPayload: UserPayload[];
|
|
35
|
-
};
|
|
36
|
-
type: string;
|
|
37
37
|
} | {
|
|
38
38
|
payload: {
|
|
39
39
|
userId: string;
|
|
@@ -9,7 +9,7 @@ export interface IntegrationsSettings {
|
|
|
9
9
|
export declare const REMINDER_NOTIFICATION_TYPES: readonly ["missingReceiptNotification", "uncategorizedTransactionNotification", "pendingBillApprovalNotification", "pendingReimbursementApprovalNotification"];
|
|
10
10
|
declare const toReminderTypeKey: (v: string) => "missingReceiptNotification" | "uncategorizedTransactionNotification" | "pendingBillApprovalNotification" | "pendingReimbursementApprovalNotification";
|
|
11
11
|
export declare type ReminderTypeKey = ReturnType<typeof toReminderTypeKey>;
|
|
12
|
-
export declare const toRemindersFrequencyType: (v: string) => "
|
|
12
|
+
export declare const toRemindersFrequencyType: (v: string) => "weekly" | "monthly" | "daily" | "bi-weekly";
|
|
13
13
|
export declare type FrequencyTypeKey = ReturnType<typeof toRemindersFrequencyType>;
|
|
14
14
|
export declare const NOTIFICATION_MODES: readonly ["email", "dashboard"];
|
|
15
15
|
export declare const toNotificationMode: (v: string) => "dashboard" | "email";
|
package/lib/view/spendManagement/zeniAccounts/depositAccountList/fetchDepositAccountListEpic.js
CHANGED
|
@@ -14,7 +14,6 @@ const fetchDepositAccountListEpic = (actions$, _state$, zeniAPI) => actions$.pip
|
|
|
14
14
|
var _a, _b, _c, _d, _e;
|
|
15
15
|
if ((0, responsePayload_1.isSuccessResponse)(response)) {
|
|
16
16
|
return (0, rxjs_1.of)((0, depositAccountReducer_1.updateDepositAccounts)((_b = (_a = response.data) === null || _a === void 0 ? void 0 : _a.deposit_accounts) !== null && _b !== void 0 ? _b : []), (0, zeniAccountListReducer_1.updateZeniAccountsSummary)({
|
|
17
|
-
ZeniAccountsTab: 'zeniAccounts',
|
|
18
17
|
summaryPayload: (_c = response.data) === null || _c === void 0 ? void 0 : _c.all_deposit_accounts_summary,
|
|
19
18
|
}), (0, depositAccountListReducer_1.updateDepositAccountList)({
|
|
20
19
|
data: (_e = (_d = response.data) === null || _d === void 0 ? void 0 : _d.deposit_accounts) !== null && _e !== void 0 ? _e : [],
|
package/lib/view/spendManagement/zeniAccounts/zeniAccountList/fetchZeniAccountListPageEpic.js
CHANGED
|
@@ -21,7 +21,7 @@ const fetchZeniAccountListEpic = (actions$, state$) => actions$.pipe((0, operato
|
|
|
21
21
|
const zeniAccountList = state.zeniAccountListState;
|
|
22
22
|
if ((depositAccountList.hasValidState() === false &&
|
|
23
23
|
depositAccountList.fetchState !== 'In-Progress') ||
|
|
24
|
-
zeniAccountList.summary
|
|
24
|
+
zeniAccountList.summary == null) {
|
|
25
25
|
zeniAccountActions.push((0, depositAccountListReducer_1.fetchDepositAccountList)());
|
|
26
26
|
}
|
|
27
27
|
const paymentAccountList = state.paymentAccountListState;
|
|
@@ -2,12 +2,11 @@ import { FetchState } from '../../../../commonStateTypes/common';
|
|
|
2
2
|
import { ZeniAPIStatus } from '../../../../responsePayload';
|
|
3
3
|
import { DepositBalancePayload } from '../depositAccountList/depositAccountListPayload';
|
|
4
4
|
import { ZeniAccountsSummaryPayloadKey } from './zeniAccountListPayload';
|
|
5
|
-
import { ZeniAccountListState,
|
|
5
|
+
import { ZeniAccountListState, ZeniAccountSummaryWithBalance } from './zeniAccountListState';
|
|
6
6
|
export declare const initialState: ZeniAccountListState;
|
|
7
7
|
export declare const fetchZeniAccountList: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[cacheOverride: any], {
|
|
8
8
|
cacheOverride: any;
|
|
9
9
|
}, string, never, never>, updateZeniAccountsSummary: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
10
|
-
ZeniAccountsTab: ZeniAccountsTab;
|
|
11
10
|
summaryPayload?: Record<ZeniAccountsSummaryPayloadKey, DepositBalancePayload> | undefined;
|
|
12
11
|
}, string>, createCheckingAccount: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[nickname: string], {
|
|
13
12
|
nickname: string;
|
|
@@ -15,9 +14,6 @@ export declare const fetchZeniAccountList: import("@reduxjs/toolkit").ActionCrea
|
|
|
15
14
|
fetchState: FetchState;
|
|
16
15
|
accoutnId?: string | undefined;
|
|
17
16
|
error?: ZeniAPIStatus<Record<string, unknown>> | undefined;
|
|
18
|
-
}, string>, updateSubTab: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
19
|
-
id: ZeniAccountsTab;
|
|
20
|
-
index: number;
|
|
21
17
|
}, string>, clearZeniAccountList: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>;
|
|
22
18
|
declare const _default: import("@reduxjs/toolkit").Reducer<ZeniAccountListState, import("@reduxjs/toolkit").AnyAction>;
|
|
23
19
|
export default _default;
|
|
@@ -1,23 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var _a;
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.getSummaryKey = exports.clearZeniAccountList = exports.
|
|
4
|
+
exports.getSummaryKey = exports.clearZeniAccountList = exports.createCheckingAccountSuccessOrfailure = exports.createCheckingAccount = exports.updateZeniAccountsSummary = exports.fetchZeniAccountList = exports.initialState = void 0;
|
|
5
5
|
const toolkit_1 = require("@reduxjs/toolkit");
|
|
6
6
|
const depositAccountListPayload_1 = require("../depositAccountList/depositAccountListPayload");
|
|
7
7
|
exports.initialState = {
|
|
8
|
-
currentTab: {
|
|
9
|
-
id: 'zeniAccounts',
|
|
10
|
-
index: 0,
|
|
11
|
-
},
|
|
12
8
|
newCheckingAccount: {
|
|
13
9
|
fetchState: 'Not-Started',
|
|
14
10
|
error: undefined,
|
|
15
11
|
accountId: undefined,
|
|
16
12
|
},
|
|
17
|
-
summary:
|
|
18
|
-
zeniAccounts: undefined,
|
|
19
|
-
externalAccounts: undefined,
|
|
20
|
-
},
|
|
13
|
+
summary: undefined,
|
|
21
14
|
};
|
|
22
15
|
const zeniAccountList = (0, toolkit_1.createSlice)({
|
|
23
16
|
name: 'zeniAccountList',
|
|
@@ -41,21 +34,16 @@ const zeniAccountList = (0, toolkit_1.createSlice)({
|
|
|
41
34
|
},
|
|
42
35
|
updateZeniAccountsSummary(draft, action) {
|
|
43
36
|
const summaryPayload = action.payload.summaryPayload;
|
|
44
|
-
const ZeniAccountsTab = action.payload.ZeniAccountsTab;
|
|
45
37
|
if (summaryPayload != null) {
|
|
46
38
|
const summaryPayloadKeys = Object.keys(summaryPayload);
|
|
47
39
|
summaryPayloadKeys.forEach((summaryPayloadKey) => {
|
|
48
40
|
const summaryKey = (0, exports.getSummaryKey)(summaryPayloadKey);
|
|
49
41
|
const balance = (0, depositAccountListPayload_1.mapDepositBalancePayloadToDepositBalance)(summaryPayload[summaryPayloadKey]);
|
|
50
|
-
draft.summary
|
|
42
|
+
draft.summary = Object.assign({}, draft.summary, {
|
|
51
43
|
[summaryKey]: balance,
|
|
52
44
|
});
|
|
53
45
|
});
|
|
54
46
|
}
|
|
55
|
-
else {
|
|
56
|
-
const oldSummary = draft.summary[ZeniAccountsTab];
|
|
57
|
-
draft.summary[ZeniAccountsTab] = oldSummary;
|
|
58
|
-
}
|
|
59
47
|
},
|
|
60
48
|
createCheckingAccount: {
|
|
61
49
|
reducer(draft) {
|
|
@@ -75,15 +63,12 @@ const zeniAccountList = (0, toolkit_1.createSlice)({
|
|
|
75
63
|
draft.newCheckingAccount.fetchState = action.payload.fetchState;
|
|
76
64
|
draft.newCheckingAccount.error = action.payload.error;
|
|
77
65
|
},
|
|
78
|
-
updateSubTab(draft, action) {
|
|
79
|
-
draft.currentTab = action.payload;
|
|
80
|
-
},
|
|
81
66
|
clearZeniAccountList(draft) {
|
|
82
67
|
Object.assign(draft, exports.initialState);
|
|
83
68
|
},
|
|
84
69
|
},
|
|
85
70
|
});
|
|
86
|
-
_a = zeniAccountList.actions, exports.fetchZeniAccountList = _a.fetchZeniAccountList, exports.updateZeniAccountsSummary = _a.updateZeniAccountsSummary, exports.createCheckingAccount = _a.createCheckingAccount, exports.createCheckingAccountSuccessOrfailure = _a.createCheckingAccountSuccessOrfailure, exports.
|
|
71
|
+
_a = zeniAccountList.actions, exports.fetchZeniAccountList = _a.fetchZeniAccountList, exports.updateZeniAccountsSummary = _a.updateZeniAccountsSummary, exports.createCheckingAccount = _a.createCheckingAccount, exports.createCheckingAccountSuccessOrfailure = _a.createCheckingAccountSuccessOrfailure, exports.clearZeniAccountList = _a.clearZeniAccountList;
|
|
87
72
|
exports.default = zeniAccountList.reducer;
|
|
88
73
|
// helper
|
|
89
74
|
const getSummaryKey = (summaryPayload) => {
|
|
@@ -5,9 +5,8 @@ import { PlaidConnectionDetails } from '../../plaidAccount/plaidAccountViewState
|
|
|
5
5
|
import { DepositAccountListSelectorView } from '../depositAccountList/depositAccountListSelector';
|
|
6
6
|
import { PaymentAccountListSelectorView } from '../paymentAccountList/paymentAccountListSelector';
|
|
7
7
|
import { ZeniAccountsConfigSelectorView } from '../zeniAccountsConfig/zeniAccountsConfigSelector';
|
|
8
|
-
import { ZeniAccountSummaryWithBalance, NewCheckingAccount
|
|
8
|
+
import { ZeniAccountSummaryWithBalance, NewCheckingAccount } from './zeniAccountListState';
|
|
9
9
|
export interface ZeniAccountListSelectorView extends SelectorView {
|
|
10
|
-
selectedTab: ZeniAccountsTabWithIndex;
|
|
11
10
|
depositAccountsSelectorView: DepositAccountListSelectorView;
|
|
12
11
|
externalAccountsSelectorView: PaymentAccountListSelectorView;
|
|
13
12
|
plaidConnectionDetails: PlaidConnectionDetails;
|
|
@@ -13,13 +13,7 @@ const getZeniAccountList = (state) => {
|
|
|
13
13
|
const zeniAccountsConfig = (0, zeniAccountsConfigSelector_1.getZeniAccountsConfigDetail)(state);
|
|
14
14
|
const { paymentAccountIds } = paymentAccountListState;
|
|
15
15
|
const externalAccountsSelectorView = (0, paymentAccountListSelector_1.getAllPaymentAccounts)(paymentAccountState, paymentAccountListState);
|
|
16
|
-
|
|
17
|
-
if (zeniAccountListState.currentTab.id === 'zeniAccounts') {
|
|
18
|
-
summary = zeniAccountListState.summary.zeniAccounts;
|
|
19
|
-
}
|
|
20
|
-
else if (zeniAccountListState.currentTab.id === 'externalAccounts') {
|
|
21
|
-
summary = zeniAccountListState.summary.externalAccounts;
|
|
22
|
-
}
|
|
16
|
+
const summary = zeniAccountListState.summary;
|
|
23
17
|
let paymentAccount;
|
|
24
18
|
if ((paymentAccountIds === null || paymentAccountIds === void 0 ? void 0 : paymentAccountIds.length) > 0) {
|
|
25
19
|
const paymentAccountId = paymentAccountIds[0];
|
|
@@ -39,7 +33,6 @@ const getZeniAccountList = (state) => {
|
|
|
39
33
|
? -1
|
|
40
34
|
: 1);
|
|
41
35
|
return {
|
|
42
|
-
selectedTab: zeniAccountListState.currentTab,
|
|
43
36
|
summary,
|
|
44
37
|
paymentAccount,
|
|
45
38
|
depositAccountsSelectorView,
|
|
@@ -47,9 +40,7 @@ const getZeniAccountList = (state) => {
|
|
|
47
40
|
plaidConnectionDetails,
|
|
48
41
|
externalAccountsSelectorView,
|
|
49
42
|
newCheckingAccount: zeniAccountListState.newCheckingAccount,
|
|
50
|
-
fetchState:
|
|
51
|
-
? depositAccountsSelectorView.fetchState
|
|
52
|
-
: externalAccountsSelectorView.fetchState,
|
|
43
|
+
fetchState: depositAccountsSelectorView.fetchState,
|
|
53
44
|
};
|
|
54
45
|
};
|
|
55
46
|
exports.getZeniAccountList = getZeniAccountList;
|
|
@@ -1,13 +1,8 @@
|
|
|
1
1
|
import { FetchStateAndError, ID } from '../../../../commonStateTypes/common';
|
|
2
2
|
import { DepositBalance } from '../depositAccountList/depositAccountList';
|
|
3
3
|
export interface ZeniAccountListState {
|
|
4
|
-
currentTab: ZeniAccountsTabWithIndex;
|
|
5
4
|
newCheckingAccount: NewCheckingAccount;
|
|
6
|
-
summary
|
|
7
|
-
}
|
|
8
|
-
export interface ZeniAccountsTabWithIndex {
|
|
9
|
-
id: ZeniAccountsTab;
|
|
10
|
-
index: number;
|
|
5
|
+
summary?: ZeniAccountSummaryWithBalance;
|
|
11
6
|
}
|
|
12
7
|
export interface NewCheckingAccount extends FetchStateAndError {
|
|
13
8
|
accountId?: ID;
|
|
@@ -17,7 +12,3 @@ export interface ZeniAccountSummaryWithBalance {
|
|
|
17
12
|
insuredBalance: DepositBalance;
|
|
18
13
|
totalInterest: DepositBalance;
|
|
19
14
|
}
|
|
20
|
-
export declare const ZENI_ACCOUNTS_TAB: readonly ["zeniAccounts", "externalAccounts"];
|
|
21
|
-
declare const toZeniAccountsTab: (v: string) => "zeniAccounts" | "externalAccounts";
|
|
22
|
-
export declare type ZeniAccountsTab = ReturnType<typeof toZeniAccountsTab>;
|
|
23
|
-
export {};
|
|
@@ -1,6 +1,2 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ZENI_ACCOUNTS_TAB = void 0;
|
|
4
|
-
const stringToUnion_1 = require("../../../../commonStateTypes/stringToUnion");
|
|
5
|
-
exports.ZENI_ACCOUNTS_TAB = ['zeniAccounts', 'externalAccounts'];
|
|
6
|
-
const toZeniAccountsTab = (v) => (0, stringToUnion_1.stringToUnion)(v, exports.ZENI_ACCOUNTS_TAB);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const toSubscriptionSortKeyType: (v: string) => "status" | "controller" | "companyName" | "
|
|
1
|
+
export declare const toSubscriptionSortKeyType: (v: string) => "status" | "controller" | "companyName" | "notes" | "plans" | "planLowerLimit" | "planHigherLimit" | "avg2MonthExpenses" | "addons" | "upgradeStatus" | "monthlyRecurringRevenue";
|
|
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;
|
|
@@ -3,6 +3,6 @@ import { ZeniAPIStatus, ZeniReportData } from '../../responsePayload';
|
|
|
3
3
|
import { TopExState } from './topExState';
|
|
4
4
|
import { FetchState } from '../../commonStateTypes/common';
|
|
5
5
|
export declare const initialState: TopExState;
|
|
6
|
-
export declare const fetchTopEx: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, updateTopEx: import("@reduxjs/toolkit").ActionCreatorWithPayload<ZeniReportData<TopExPayload>, string>, updateTopExFailure: import("@reduxjs/toolkit").ActionCreatorWithPayload<ZeniAPIStatus<Record<string, unknown>>, string>, clearTopEx: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, updateTopExTimeFrame: import("@reduxjs/toolkit").ActionCreatorWithPayload<"last_month" | "
|
|
6
|
+
export declare const fetchTopEx: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, updateTopEx: import("@reduxjs/toolkit").ActionCreatorWithPayload<ZeniReportData<TopExPayload>, string>, updateTopExFailure: import("@reduxjs/toolkit").ActionCreatorWithPayload<ZeniAPIStatus<Record<string, unknown>>, string>, clearTopEx: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, updateTopExTimeFrame: import("@reduxjs/toolkit").ActionCreatorWithPayload<"last_month" | "this_week_to_date" | "last_week" | "this_month_to_date" | "last_3_months" | "last_6_months" | "last_12_months" | "this_year_to_date" | "last_year", string>, updateTopExDownloadState: import("@reduxjs/toolkit").ActionCreatorWithPayload<FetchState, string>;
|
|
7
7
|
declare const _default: import("@reduxjs/toolkit").Reducer<TopExState, import("@reduxjs/toolkit").AnyAction>;
|
|
8
8
|
export default _default;
|
|
@@ -11,12 +11,12 @@ export declare const getTopExpenses: (accountState: AccountState, topExState: To
|
|
|
11
11
|
status: import("../..").Status | undefined;
|
|
12
12
|
fetchState: import("../..").FetchState;
|
|
13
13
|
error: import("../..").ZeniAPIStatus<Record<string, unknown>> | undefined;
|
|
14
|
-
topExTimePeriod: "last_month" | "
|
|
14
|
+
topExTimePeriod: "last_month" | "this_week_to_date" | "last_week" | "this_month_to_date" | "last_3_months" | "last_6_months" | "last_12_months" | "this_year_to_date" | "last_year";
|
|
15
15
|
topExpenses: {
|
|
16
16
|
total: import("../..").Amount | undefined;
|
|
17
17
|
startDate: import("dayjs").Dayjs | undefined;
|
|
18
18
|
endDate: import("dayjs").Dayjs | undefined;
|
|
19
|
-
timePeriod: "last_month" | "
|
|
19
|
+
timePeriod: "last_month" | "this_week_to_date" | "last_week" | "this_month_to_date" | "last_3_months" | "last_6_months" | "last_12_months" | "this_year_to_date" | "last_year";
|
|
20
20
|
timePeriodLabel: string | undefined;
|
|
21
21
|
itemOrder: EntityOrder;
|
|
22
22
|
accountsOrdered: {
|
|
@@ -4,7 +4,7 @@ import { Amount } from '../../commonStateTypes/amount';
|
|
|
4
4
|
import { ZeniDate } from '../../zeniDayJS';
|
|
5
5
|
import { Balance } from '../../commonStateTypes/balance';
|
|
6
6
|
export declare const TOP_EX_TIME_PERIODS: readonly ["this_week_to_date", "last_week", "this_month_to_date", "last_month", "last_3_months", "last_6_months", "last_12_months", "this_year_to_date", "last_year"];
|
|
7
|
-
export declare const toTopExTimePeriod: (v: string) => "last_month" | "
|
|
7
|
+
export declare const toTopExTimePeriod: (v: string) => "last_month" | "this_week_to_date" | "last_week" | "this_month_to_date" | "last_3_months" | "last_6_months" | "last_12_months" | "this_year_to_date" | "last_year";
|
|
8
8
|
export declare type TopExTimePeriod = ReturnType<typeof toTopExTimePeriod>;
|
|
9
9
|
export interface AccountBalance {
|
|
10
10
|
accountId: ID;
|
|
@@ -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" | "under_review" | "merge_in_qbo" | "merge_in_netsuite" | "reviewed" | "review_rejected" | undefined;
|
|
6
6
|
declare type VendorFirstReviewViewStatusesKey = ReturnType<typeof toVendorFirstReviewViewStatusesTypeStrict>;
|
|
7
7
|
export declare type ReviewStatus = {
|
|
8
8
|
code: VendorFirstReviewViewStatusesKey;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zeniai/client-epic-state",
|
|
3
|
-
"version": "4.13.
|
|
3
|
+
"version": "4.13.96",
|
|
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",
|