@zeniai/client-epic-state 4.8.80 → 4.8.82
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/viewAndReport.d.ts +1 -0
- package/lib/commonStateTypes/viewAndReport/viewAndReport.js +3 -3
- package/lib/entity/snackbar/snackbarTypes.d.ts +1 -1
- package/lib/entity/snackbar/snackbarTypes.js +1 -0
- package/lib/entity/tenant/clearAllEpic.d.ts +2 -1
- package/lib/entity/tenant/clearAllEpic.js +2 -0
- package/lib/entity/tenant/tenantSelector.d.ts +12 -4
- package/lib/entity/tenant/tenantSelector.js +95 -31
- package/lib/epic.d.ts +7 -1
- package/lib/epic.js +7 -1
- package/lib/index.d.ts +17 -9
- package/lib/index.js +45 -19
- package/lib/init.js +1 -1
- package/lib/reducer.d.ts +6 -0
- package/lib/reducer.js +6 -0
- package/lib/view/auditReportView/auditReportViewHelper.d.ts +12 -0
- package/lib/view/auditReportView/auditReportViewHelper.js +79 -0
- package/lib/view/auditReportView/auditReportViewPayload.d.ts +53 -0
- package/lib/view/auditReportView/auditReportViewPayload.js +2 -0
- package/lib/view/auditReportView/auditReportViewReducer.d.ts +27 -0
- package/lib/view/auditReportView/auditReportViewReducer.js +121 -0
- package/lib/view/auditReportView/auditReportViewSelector.d.ts +22 -0
- package/lib/view/auditReportView/auditReportViewSelector.js +34 -0
- package/lib/view/auditReportView/auditReportViewState.d.ts +71 -0
- package/lib/view/auditReportView/auditReportViewState.js +22 -0
- package/lib/view/auditReportView/epics/fetchAuditReportGroupViewEpic.d.ts +7 -0
- package/lib/view/auditReportView/epics/fetchAuditReportGroupViewEpic.js +54 -0
- package/lib/view/auditReportView/epics/fetchAuditRuleGroupViewEpic.d.ts +7 -0
- package/lib/view/auditReportView/epics/fetchAuditRuleGroupViewEpic.js +39 -0
- package/lib/view/companyView/types/cockpitTypes.d.ts +4 -2
- package/lib/view/companyView/types/cockpitTypes.js +10 -1
- package/lib/view/people/changeZeniPersonRolesEpic.d.ts +1 -1
- package/lib/view/people/deletePersonEpic.d.ts +1 -1
- package/lib/view/people/invitePeopleEpic.d.ts +1 -1
- package/lib/view/people/inviteZeniPeopleEpic.d.ts +1 -1
- package/lib/view/people/resendInviteEpic.d.ts +1 -1
- package/lib/view/referralView/epics/fetchReferralsEpic.d.ts +7 -0
- package/lib/view/referralView/epics/fetchReferralsEpic.js +36 -0
- package/lib/view/referralView/epics/fetchRewardsPlanEpic.d.ts +7 -0
- package/lib/view/referralView/epics/fetchRewardsPlanEpic.js +41 -0
- package/lib/view/referralView/epics/resendReferralInviteEpic.d.ts +8 -0
- package/lib/view/referralView/epics/resendReferralInviteEpic.js +39 -0
- package/lib/view/referralView/epics/sendReferralInviteEpic.d.ts +8 -0
- package/lib/view/referralView/epics/sendReferralInviteEpic.js +52 -0
- package/lib/view/referralView/referralPayload.d.ts +43 -0
- package/lib/view/referralView/referralPayload.js +33 -0
- package/lib/view/referralView/referralReducer.d.ts +23 -0
- package/lib/view/referralView/referralReducer.js +162 -0
- package/lib/view/referralView/referralSelector.d.ts +21 -0
- package/lib/view/referralView/referralSelector.js +76 -0
- package/lib/view/referralView/referralState.d.ts +54 -0
- package/lib/view/referralView/referralState.js +37 -0
- package/lib/view/reviewCompanyView/fetchReviewCompanyViewEpic.js +1 -1
- package/lib/view/reviewCompanyView/reviewCompanyPayload.d.ts +25 -1
- package/lib/view/reviewCompanyView/reviewCompanyViewSelector.d.ts +1 -0
- package/lib/view/reviewCompanyView/reviewCompanyViewSelector.js +31 -8
- package/lib/view/reviewCompanyView/reviewCompanyViewState.d.ts +12 -4
- package/lib/view/reviewCompanyView/reviewCompanyViewState.js +15 -5
- package/lib/view/settingsView/epic/saveNotificationSettingsEpic.d.ts +1 -1
- package/package.json +2 -2
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var _a;
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.clearAuditReportGroupView = exports.clearAuditReportGroupViewByCompanyId = exports.clearAuditRuleGroupView = exports.updateAuditReportGroupViewOnFailure = exports.updateAuditReportGroupViewOnSuccess = exports.fetchAuditReportGroupView = exports.updateAuditRuleGroupViewOnFailure = exports.updateAuditRuleGroupViewOnSuccess = exports.fetchAuditRuleGroupView = exports.initialState = void 0;
|
|
5
|
+
const toolkit_1 = require("@reduxjs/toolkit");
|
|
6
|
+
const auditReportViewHelper_1 = require("./auditReportViewHelper");
|
|
7
|
+
exports.initialState = {
|
|
8
|
+
auditRuleGroupView: {
|
|
9
|
+
auditRuleGroups: [],
|
|
10
|
+
fetchState: 'Not-Started',
|
|
11
|
+
error: undefined,
|
|
12
|
+
hasValidState() {
|
|
13
|
+
return this.fetchState == 'Completed';
|
|
14
|
+
},
|
|
15
|
+
},
|
|
16
|
+
auditReportViewByCompanyId: {},
|
|
17
|
+
};
|
|
18
|
+
const auditReportView = (0, toolkit_1.createSlice)({
|
|
19
|
+
name: 'auditReportView',
|
|
20
|
+
initialState: exports.initialState,
|
|
21
|
+
reducers: {
|
|
22
|
+
fetchAuditRuleGroupView: {
|
|
23
|
+
prepare(cacheOverride = true) {
|
|
24
|
+
return { payload: { cacheOverride } };
|
|
25
|
+
},
|
|
26
|
+
reducer(draft) {
|
|
27
|
+
if (draft.auditRuleGroupView.fetchState !== 'Completed' ||
|
|
28
|
+
draft.auditRuleGroupView.auditRuleGroups.length === 0) {
|
|
29
|
+
draft.auditRuleGroupView.fetchState = 'In-Progress';
|
|
30
|
+
}
|
|
31
|
+
draft.auditRuleGroupView.error = undefined;
|
|
32
|
+
},
|
|
33
|
+
},
|
|
34
|
+
updateAuditRuleGroupViewOnSuccess: {
|
|
35
|
+
reducer(draft, action) {
|
|
36
|
+
const { auditRuleGroups } = action.payload;
|
|
37
|
+
draft.auditRuleGroupView.fetchState = 'Completed';
|
|
38
|
+
draft.auditRuleGroupView.error = undefined;
|
|
39
|
+
draft.auditRuleGroupView.auditRuleGroups = auditRuleGroups.map((ruleGroup) => (0, auditReportViewHelper_1.toAuditRuleGroupFromPayload)(ruleGroup));
|
|
40
|
+
},
|
|
41
|
+
prepare(auditRuleGroups) {
|
|
42
|
+
return {
|
|
43
|
+
payload: { auditRuleGroups },
|
|
44
|
+
};
|
|
45
|
+
},
|
|
46
|
+
},
|
|
47
|
+
updateAuditRuleGroupViewOnFailure: {
|
|
48
|
+
reducer(draft, action) {
|
|
49
|
+
draft.auditRuleGroupView.fetchState = 'Error';
|
|
50
|
+
draft.auditRuleGroupView.error = action.payload.error;
|
|
51
|
+
},
|
|
52
|
+
prepare(error) {
|
|
53
|
+
return { payload: { error } };
|
|
54
|
+
},
|
|
55
|
+
},
|
|
56
|
+
fetchAuditReportGroupView: {
|
|
57
|
+
prepare(companyId, fetchAction, reportGroupId) {
|
|
58
|
+
return {
|
|
59
|
+
payload: { companyId, fetchAction, reportGroupId },
|
|
60
|
+
};
|
|
61
|
+
},
|
|
62
|
+
reducer(draft, action) {
|
|
63
|
+
var _a;
|
|
64
|
+
const { companyId, reportGroupId } = action.payload;
|
|
65
|
+
const draftReportById = (_a = draft.auditReportViewByCompanyId[companyId]) === null || _a === void 0 ? void 0 : _a.auditReportGroupViewByGroupId;
|
|
66
|
+
draft.auditReportViewByCompanyId[companyId] = {
|
|
67
|
+
auditReportGroupViewByGroupId: Object.assign(Object.assign({}, draftReportById), { [reportGroupId]: {
|
|
68
|
+
id: reportGroupId,
|
|
69
|
+
fetchState: 'In-Progress',
|
|
70
|
+
error: undefined,
|
|
71
|
+
hasValidState: exports.initialState.auditRuleGroupView.hasValidState,
|
|
72
|
+
} }),
|
|
73
|
+
};
|
|
74
|
+
},
|
|
75
|
+
},
|
|
76
|
+
updateAuditReportGroupViewOnSuccess: {
|
|
77
|
+
reducer(draft, action) {
|
|
78
|
+
const { auditReportGroupPayload, reportGroupId, companyId } = action.payload;
|
|
79
|
+
draft.auditReportViewByCompanyId[companyId].auditReportGroupViewByGroupId[reportGroupId].fetchState = 'Completed';
|
|
80
|
+
draft.auditReportViewByCompanyId[companyId].auditReportGroupViewByGroupId[reportGroupId].error = undefined;
|
|
81
|
+
draft.auditReportViewByCompanyId[companyId].auditReportGroupViewByGroupId[reportGroupId].auditReportGroup =
|
|
82
|
+
(0, auditReportViewHelper_1.toAuditReportGroupViewFromPayload)(auditReportGroupPayload);
|
|
83
|
+
},
|
|
84
|
+
prepare(companyId, reportGroupId, auditReportGroupPayload) {
|
|
85
|
+
return {
|
|
86
|
+
payload: { companyId, reportGroupId, auditReportGroupPayload },
|
|
87
|
+
};
|
|
88
|
+
},
|
|
89
|
+
},
|
|
90
|
+
updateAuditReportGroupViewOnFailure: {
|
|
91
|
+
reducer(draft, action) {
|
|
92
|
+
const { companyId, reportGroupId } = action.payload;
|
|
93
|
+
draft.auditReportViewByCompanyId[companyId].auditReportGroupViewByGroupId[reportGroupId].fetchState = 'Error';
|
|
94
|
+
draft.auditReportViewByCompanyId[companyId].auditReportGroupViewByGroupId[reportGroupId].error =
|
|
95
|
+
action.payload.error;
|
|
96
|
+
},
|
|
97
|
+
prepare(companyId, reportGroupId, error) {
|
|
98
|
+
return { payload: { companyId, reportGroupId, error } };
|
|
99
|
+
},
|
|
100
|
+
},
|
|
101
|
+
clearAuditReportGroupViewByCompanyId: {
|
|
102
|
+
reducer(draft, action) {
|
|
103
|
+
const { companyId } = action.payload;
|
|
104
|
+
delete draft.auditReportViewByCompanyId[companyId];
|
|
105
|
+
},
|
|
106
|
+
prepare(companyId) {
|
|
107
|
+
return {
|
|
108
|
+
payload: { companyId },
|
|
109
|
+
};
|
|
110
|
+
},
|
|
111
|
+
},
|
|
112
|
+
clearAuditRuleGroupView(draft) {
|
|
113
|
+
draft.auditRuleGroupView = Object.assign(draft.auditRuleGroupView, exports.initialState.auditRuleGroupView);
|
|
114
|
+
},
|
|
115
|
+
clearAuditReportGroupView(draft) {
|
|
116
|
+
Object.assign(draft, exports.initialState);
|
|
117
|
+
},
|
|
118
|
+
},
|
|
119
|
+
});
|
|
120
|
+
_a = auditReportView.actions, exports.fetchAuditRuleGroupView = _a.fetchAuditRuleGroupView, exports.updateAuditRuleGroupViewOnSuccess = _a.updateAuditRuleGroupViewOnSuccess, exports.updateAuditRuleGroupViewOnFailure = _a.updateAuditRuleGroupViewOnFailure, exports.fetchAuditReportGroupView = _a.fetchAuditReportGroupView, exports.updateAuditReportGroupViewOnSuccess = _a.updateAuditReportGroupViewOnSuccess, exports.updateAuditReportGroupViewOnFailure = _a.updateAuditReportGroupViewOnFailure, exports.clearAuditRuleGroupView = _a.clearAuditRuleGroupView, exports.clearAuditReportGroupViewByCompanyId = _a.clearAuditReportGroupViewByCompanyId, exports.clearAuditReportGroupView = _a.clearAuditReportGroupView;
|
|
121
|
+
exports.default = auditReportView.reducer;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { RootState } from '../../reducer';
|
|
2
|
+
import { SelectorView } from '../../commonStateTypes/viewAndReport/viewAndReport';
|
|
3
|
+
import { ID } from '../../commonStateTypes/common';
|
|
4
|
+
import { AuditReport, AuditRuleGroup } from './auditReportViewState';
|
|
5
|
+
export interface AuditRuleGroupViewSelectorView extends SelectorView {
|
|
6
|
+
auditRuleGroups: AuditRuleGroup[];
|
|
7
|
+
}
|
|
8
|
+
export interface AuditReportGroupSelectorView extends SelectorView {
|
|
9
|
+
auditReportGroupId: ID;
|
|
10
|
+
auditReport?: AuditReport;
|
|
11
|
+
}
|
|
12
|
+
export interface AuditReportGroupViewSelectorView {
|
|
13
|
+
auditReportGroups: AuditReportGroupSelectorView[];
|
|
14
|
+
}
|
|
15
|
+
export declare const getAuditRuleGroupViewSelectorView: (state: RootState) => {
|
|
16
|
+
auditRuleGroups: AuditRuleGroup[];
|
|
17
|
+
fetchState: import("../../commonStateTypes/common").FetchState;
|
|
18
|
+
error: import("../..").ZeniAPIStatus<Record<string, unknown>> | undefined;
|
|
19
|
+
};
|
|
20
|
+
export declare const getAuditReportGroupViewSelectorView: (companyId: ID, state: RootState) => {
|
|
21
|
+
auditReportGroups: AuditReportGroupSelectorView[];
|
|
22
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getAuditReportGroupViewSelectorView = exports.getAuditRuleGroupViewSelectorView = void 0;
|
|
4
|
+
const getAuditRuleGroupViewSelectorView = (state) => {
|
|
5
|
+
const { auditRuleGroupView } = state.auditReportViewState;
|
|
6
|
+
const auditRuleGroups = auditRuleGroupView.auditRuleGroups;
|
|
7
|
+
return {
|
|
8
|
+
auditRuleGroups,
|
|
9
|
+
fetchState: auditRuleGroupView.fetchState,
|
|
10
|
+
error: auditRuleGroupView.error,
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
exports.getAuditRuleGroupViewSelectorView = getAuditRuleGroupViewSelectorView;
|
|
14
|
+
const getAuditReportGroupViewSelectorView = (companyId, state) => {
|
|
15
|
+
var _a;
|
|
16
|
+
const { auditReportViewByCompanyId } = state.auditReportViewState;
|
|
17
|
+
const auditReportGroupViewByGroupId = (_a = auditReportViewByCompanyId[companyId]) === null || _a === void 0 ? void 0 : _a.auditReportGroupViewByGroupId;
|
|
18
|
+
const auditReportGroups = [];
|
|
19
|
+
if (auditReportGroupViewByGroupId != null) {
|
|
20
|
+
Object.values(auditReportGroupViewByGroupId).forEach((reportView) => {
|
|
21
|
+
var _a;
|
|
22
|
+
auditReportGroups.push({
|
|
23
|
+
auditReportGroupId: reportView.id,
|
|
24
|
+
auditReport: (_a = reportView.auditReportGroup) === null || _a === void 0 ? void 0 : _a.report,
|
|
25
|
+
fetchState: reportView.fetchState,
|
|
26
|
+
error: reportView.error,
|
|
27
|
+
});
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
return {
|
|
31
|
+
auditReportGroups,
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
exports.getAuditReportGroupViewSelectorView = getAuditReportGroupViewSelectorView;
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { FetchedState, ID } from '../../commonStateTypes/common';
|
|
2
|
+
import { Status } from '../../commonStateTypes/status';
|
|
3
|
+
import { View } from '../../commonStateTypes/viewAndReport/viewAndReport';
|
|
4
|
+
export declare const AUDIT_RULE_ENTITY_TYPES: readonly ["reports", "transactions", "dashboard"];
|
|
5
|
+
export declare const toAuditRuleEntityType: (v: string) => "dashboard" | "transactions" | "reports";
|
|
6
|
+
export declare type AuditRuleEntityType = ReturnType<typeof toAuditRuleEntityType>;
|
|
7
|
+
export declare const AUDIT_RULE_ENTITY_IDS: readonly ["uncategorized-expense", "uncategorized-income", "cash_balance", "card_balance", "operating_expenses", "operating_expenses_by_classes", "revenue", "revenue_by_classes", "net_burn_or_income", "net_burn_or_income_story_card", "net_burn_or_income_by_classes", "cash_position", "top_expenses", "profit_and_loss", "profit_and_loss_by_classes", "balance_sheet", "cash_flow", "dashboard", "finance_statement", "transaction_list_of_account", "transaction_list_missing_receipt", "transaction_list_of_account_by_class", "transaction_detail", "cash_in_cash_out", "insights_dashboard", "company_details", "class_list", "account_list", "account_list_by_type", "vendor", "task_card", "bill_pay", "reimbursement", "bill_pay_card", "reimbursement_card", "bill_pay_promo_card", "zeni_accounts", "zeni_accounts_promo_card", "charge_cards", "reimbursement_promo_card", "onboarding", "operating_expenses_by_vendor", "operating_expenses_by_vendor_summary", "vendors_tab", "accounts_payable_aging", "accounts_receivable_aging", "vendor_global_review", "prepaid_expenses"];
|
|
8
|
+
export declare const toAuditRuleEntityIdType: (v: string) => "cash_balance" | "card_balance" | "operating_expenses" | "operating_expenses_by_classes" | "revenue" | "revenue_by_classes" | "net_burn_or_income" | "net_burn_or_income_story_card" | "net_burn_or_income_by_classes" | "cash_position" | "top_expenses" | "profit_and_loss" | "profit_and_loss_by_classes" | "balance_sheet" | "cash_flow" | "dashboard" | "finance_statement" | "transaction_list_of_account" | "transaction_list_missing_receipt" | "transaction_list_of_account_by_class" | "transaction_detail" | "cash_in_cash_out" | "insights_dashboard" | "company_details" | "class_list" | "account_list" | "account_list_by_type" | "vendor" | "task_card" | "bill_pay" | "reimbursement" | "bill_pay_card" | "reimbursement_card" | "bill_pay_promo_card" | "zeni_accounts" | "zeni_accounts_promo_card" | "charge_cards" | "reimbursement_promo_card" | "onboarding" | "operating_expenses_by_vendor" | "operating_expenses_by_vendor_summary" | "vendors_tab" | "accounts_payable_aging" | "accounts_receivable_aging" | "vendor_global_review" | "prepaid_expenses" | "uncategorized-expense" | "uncategorized-income";
|
|
9
|
+
export declare type AuditRuleEntityIdType = ReturnType<typeof toAuditRuleEntityIdType>;
|
|
10
|
+
export declare const AUDIT_REPORT_ACTION_TYPES: readonly ["generate", "view"];
|
|
11
|
+
export declare const toAuditReportActionType: (v: string) => "view" | "generate";
|
|
12
|
+
export declare type AuditReportActionType = ReturnType<typeof toAuditReportActionType>;
|
|
13
|
+
export interface AuditRuleGroupBase {
|
|
14
|
+
auditRuleGroupId: ID;
|
|
15
|
+
}
|
|
16
|
+
export interface AuditRuleBase {
|
|
17
|
+
auditRuleId: string;
|
|
18
|
+
}
|
|
19
|
+
export interface AuditRuleGroup extends AuditRuleGroupBase {
|
|
20
|
+
auditRuleCategory: string;
|
|
21
|
+
auditRuleGroupDescription: string;
|
|
22
|
+
auditRules: AuditRule[];
|
|
23
|
+
sequence: number;
|
|
24
|
+
}
|
|
25
|
+
export interface AuditRule extends AuditRuleBase {
|
|
26
|
+
auditRuleDescription: string;
|
|
27
|
+
sequence: number;
|
|
28
|
+
}
|
|
29
|
+
export interface AuditReportRule extends AuditRuleBase {
|
|
30
|
+
isSuccess: boolean;
|
|
31
|
+
entityType: AuditRuleEntityType;
|
|
32
|
+
entityIds: AuditRuleEntityIdType[];
|
|
33
|
+
message: string;
|
|
34
|
+
sequence: number;
|
|
35
|
+
}
|
|
36
|
+
export interface AuditRuleGroupReport extends AuditRuleGroupBase {
|
|
37
|
+
isSuccess: boolean;
|
|
38
|
+
message: string;
|
|
39
|
+
auditRules: AuditReportRule[];
|
|
40
|
+
sequence: number;
|
|
41
|
+
}
|
|
42
|
+
export interface AuditReport {
|
|
43
|
+
auditRulesGroupReport: AuditRuleGroupReport[];
|
|
44
|
+
reportId: ID;
|
|
45
|
+
reportTitle: string;
|
|
46
|
+
status: Status;
|
|
47
|
+
version: string;
|
|
48
|
+
auditMonthAndYear: string;
|
|
49
|
+
}
|
|
50
|
+
export interface AuditReportGroupQuery {
|
|
51
|
+
auditRuleGroupIds: ID[];
|
|
52
|
+
action: AuditReportActionType;
|
|
53
|
+
}
|
|
54
|
+
export interface AuditReportGroup {
|
|
55
|
+
query: AuditReportGroupQuery;
|
|
56
|
+
report: AuditReport;
|
|
57
|
+
}
|
|
58
|
+
export interface AuditReportGroupView extends FetchedState {
|
|
59
|
+
id: ID;
|
|
60
|
+
auditReportGroup?: AuditReportGroup;
|
|
61
|
+
}
|
|
62
|
+
export interface AuditRuleGroupViewState extends FetchedState, View {
|
|
63
|
+
auditRuleGroups: AuditRuleGroup[];
|
|
64
|
+
}
|
|
65
|
+
export interface AuditReportGroupViewState {
|
|
66
|
+
auditReportGroupViewByGroupId: Record<ID, AuditReportGroupView>;
|
|
67
|
+
}
|
|
68
|
+
export interface AuditReportViewState {
|
|
69
|
+
auditRuleGroupView: AuditRuleGroupViewState;
|
|
70
|
+
auditReportViewByCompanyId: Record<ID, AuditReportGroupViewState>;
|
|
71
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.toAuditReportActionType = exports.AUDIT_REPORT_ACTION_TYPES = exports.toAuditRuleEntityIdType = exports.AUDIT_RULE_ENTITY_IDS = exports.toAuditRuleEntityType = exports.AUDIT_RULE_ENTITY_TYPES = void 0;
|
|
4
|
+
const stringToUnion_1 = require("../../commonStateTypes/stringToUnion");
|
|
5
|
+
const viewAndReport_1 = require("../../commonStateTypes/viewAndReport/viewAndReport");
|
|
6
|
+
exports.AUDIT_RULE_ENTITY_TYPES = [
|
|
7
|
+
'reports',
|
|
8
|
+
'transactions',
|
|
9
|
+
'dashboard',
|
|
10
|
+
];
|
|
11
|
+
const toAuditRuleEntityType = (v) => (0, stringToUnion_1.stringToUnion)(v, exports.AUDIT_RULE_ENTITY_TYPES);
|
|
12
|
+
exports.toAuditRuleEntityType = toAuditRuleEntityType;
|
|
13
|
+
exports.AUDIT_RULE_ENTITY_IDS = [
|
|
14
|
+
'uncategorized-expense',
|
|
15
|
+
'uncategorized-income',
|
|
16
|
+
...viewAndReport_1.ALL_REPORT_IDS,
|
|
17
|
+
];
|
|
18
|
+
const toAuditRuleEntityIdType = (v) => (0, stringToUnion_1.stringToUnion)(v, exports.AUDIT_RULE_ENTITY_IDS);
|
|
19
|
+
exports.toAuditRuleEntityIdType = toAuditRuleEntityIdType;
|
|
20
|
+
exports.AUDIT_REPORT_ACTION_TYPES = ['generate', 'view'];
|
|
21
|
+
const toAuditReportActionType = (v) => (0, stringToUnion_1.stringToUnion)(v, exports.AUDIT_REPORT_ACTION_TYPES);
|
|
22
|
+
exports.toAuditReportActionType = toAuditReportActionType;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
import { ActionsObservable, StateObservable } from 'redux-observable';
|
|
3
|
+
import { ZeniAPI } from '../../../zeniAPI';
|
|
4
|
+
import { RootState } from '../../../reducer';
|
|
5
|
+
import { fetchAuditReportGroupView, updateAuditReportGroupViewOnSuccess, updateAuditReportGroupViewOnFailure } from '../auditReportViewReducer';
|
|
6
|
+
export declare type ActionType = ReturnType<typeof fetchAuditReportGroupView> | ReturnType<typeof updateAuditReportGroupViewOnSuccess> | ReturnType<typeof updateAuditReportGroupViewOnFailure>;
|
|
7
|
+
export declare const fetchAuditReportGroupViewEpic: (actions$: ActionsObservable<ActionType>, state$: StateObservable<RootState>, zeniAPI: ZeniAPI) => Observable<ActionType>;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.fetchAuditReportGroupViewEpic = void 0;
|
|
4
|
+
const rxjs_1 = require("rxjs");
|
|
5
|
+
const operators_1 = require("rxjs/operators");
|
|
6
|
+
const responsePayload_1 = require("../../../responsePayload");
|
|
7
|
+
const auditReportViewReducer_1 = require("../auditReportViewReducer");
|
|
8
|
+
const fetchAuditReportGroupViewEpic = (actions$, state$, zeniAPI) => actions$.pipe((0, operators_1.filter)(auditReportViewReducer_1.fetchAuditReportGroupView.match), (0, operators_1.mergeMap)((action) => {
|
|
9
|
+
const { companyId, fetchAction, reportGroupId } = action.payload;
|
|
10
|
+
const state = state$.value;
|
|
11
|
+
const company = state.companyState.companiesById[companyId];
|
|
12
|
+
const tenantId = company.companyInfo.tenantId;
|
|
13
|
+
if (tenantId != null) {
|
|
14
|
+
const query = toQueryPayload(fetchAction, reportGroupId);
|
|
15
|
+
const { userId, sessionId } = zeniAPI;
|
|
16
|
+
const headers = {
|
|
17
|
+
'zeni-user-id': userId,
|
|
18
|
+
'zeni-tenant-id': tenantId,
|
|
19
|
+
'zeni-session-id': sessionId,
|
|
20
|
+
};
|
|
21
|
+
return zeniAPI
|
|
22
|
+
.getJSON(`${zeniAPI.apiEndPoints.accountMicroServiceBaseUrl}/1.0/reports/audit?query=${encodeURIComponent(JSON.stringify(query))}`, headers)
|
|
23
|
+
.pipe((0, operators_1.mergeMap)((response) => {
|
|
24
|
+
if ((0, responsePayload_1.isSuccessResponse)(response) && response.data != null) {
|
|
25
|
+
const actions = [
|
|
26
|
+
(0, auditReportViewReducer_1.updateAuditReportGroupViewOnSuccess)(companyId, reportGroupId, response.data),
|
|
27
|
+
];
|
|
28
|
+
return (0, rxjs_1.from)(actions);
|
|
29
|
+
}
|
|
30
|
+
else {
|
|
31
|
+
const actions = [
|
|
32
|
+
(0, auditReportViewReducer_1.updateAuditReportGroupViewOnFailure)(companyId, reportGroupId, response.status),
|
|
33
|
+
];
|
|
34
|
+
return (0, rxjs_1.from)(actions);
|
|
35
|
+
}
|
|
36
|
+
}), (0, operators_1.catchError)((error) => {
|
|
37
|
+
const actions = [
|
|
38
|
+
(0, auditReportViewReducer_1.updateAuditReportGroupViewOnFailure)(companyId, reportGroupId, (0, responsePayload_1.createZeniAPIStatus)('Unexpected error', 'Audit Report Group view errored out' +
|
|
39
|
+
JSON.stringify(error))),
|
|
40
|
+
];
|
|
41
|
+
return (0, rxjs_1.from)(actions);
|
|
42
|
+
}));
|
|
43
|
+
}
|
|
44
|
+
else {
|
|
45
|
+
return (0, rxjs_1.from)([]);
|
|
46
|
+
}
|
|
47
|
+
}));
|
|
48
|
+
exports.fetchAuditReportGroupViewEpic = fetchAuditReportGroupViewEpic;
|
|
49
|
+
const toQueryPayload = (action, groupId) => {
|
|
50
|
+
return {
|
|
51
|
+
action,
|
|
52
|
+
audit_rule_group_ids: [groupId],
|
|
53
|
+
};
|
|
54
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
import { ActionsObservable, StateObservable } from 'redux-observable';
|
|
3
|
+
import { ZeniAPI } from '../../../zeniAPI';
|
|
4
|
+
import { RootState } from '../../../reducer';
|
|
5
|
+
import { fetchAuditRuleGroupView, updateAuditRuleGroupViewOnFailure, updateAuditRuleGroupViewOnSuccess } from '../auditReportViewReducer';
|
|
6
|
+
export declare type ActionType = ReturnType<typeof fetchAuditRuleGroupView> | ReturnType<typeof updateAuditRuleGroupViewOnSuccess> | ReturnType<typeof updateAuditRuleGroupViewOnFailure>;
|
|
7
|
+
export declare const fetchAuditRuleGroupViewEpic: (actions$: ActionsObservable<ActionType>, state$: StateObservable<RootState>, zeniAPI: ZeniAPI) => Observable<ActionType>;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.fetchAuditRuleGroupViewEpic = void 0;
|
|
4
|
+
const rxjs_1 = require("rxjs");
|
|
5
|
+
const operators_1 = require("rxjs/operators");
|
|
6
|
+
const responsePayload_1 = require("../../../responsePayload");
|
|
7
|
+
const auditReportViewReducer_1 = require("../auditReportViewReducer");
|
|
8
|
+
const fetchAuditRuleGroupViewEpic = (actions$, state$, zeniAPI) => actions$.pipe((0, operators_1.filter)(auditReportViewReducer_1.fetchAuditRuleGroupView.match), (0, operators_1.switchMap)((action) => {
|
|
9
|
+
const { cacheOverride } = action.payload;
|
|
10
|
+
const state = state$.value;
|
|
11
|
+
const { fetchState } = state.auditReportViewState.auditRuleGroupView;
|
|
12
|
+
if (cacheOverride === true || fetchState !== 'In-Progress') {
|
|
13
|
+
return zeniAPI
|
|
14
|
+
.getJSON(`${zeniAPI.apiEndPoints.accountMicroServiceBaseUrl}/1.0/audit-rule-groups`)
|
|
15
|
+
.pipe((0, operators_1.mergeMap)((response) => {
|
|
16
|
+
if ((0, responsePayload_1.isSuccessResponse)(response) && response.data != null) {
|
|
17
|
+
const actions = [
|
|
18
|
+
(0, auditReportViewReducer_1.updateAuditRuleGroupViewOnSuccess)(response.data.audit_rule_groups),
|
|
19
|
+
];
|
|
20
|
+
return (0, rxjs_1.from)(actions);
|
|
21
|
+
}
|
|
22
|
+
else {
|
|
23
|
+
const actions = [
|
|
24
|
+
(0, auditReportViewReducer_1.updateAuditRuleGroupViewOnFailure)(response.status),
|
|
25
|
+
];
|
|
26
|
+
return (0, rxjs_1.from)(actions);
|
|
27
|
+
}
|
|
28
|
+
}), (0, operators_1.catchError)((error) => {
|
|
29
|
+
const actions = [
|
|
30
|
+
(0, auditReportViewReducer_1.updateAuditRuleGroupViewOnFailure)((0, responsePayload_1.createZeniAPIStatus)('Unexpected error', 'Audit rule group view errored out' + JSON.stringify(error))),
|
|
31
|
+
];
|
|
32
|
+
return (0, rxjs_1.from)(actions);
|
|
33
|
+
}));
|
|
34
|
+
}
|
|
35
|
+
else {
|
|
36
|
+
return (0, rxjs_1.from)([]);
|
|
37
|
+
}
|
|
38
|
+
}));
|
|
39
|
+
exports.fetchAuditRuleGroupViewEpic = fetchAuditRuleGroupViewEpic;
|
|
@@ -2,11 +2,11 @@ import { SortOrder } from '../../../commonStateTypes/selectorTypes/sortOrderType
|
|
|
2
2
|
import { SubscriptionViewSortKey } from '../../subscriptionView/types/subscriptionTypes';
|
|
3
3
|
import { CockpitDownloadTabsID, CockpitTabsFileType } from './cockpitTabsID';
|
|
4
4
|
export declare const ALL_PORTFOLIO_SORT_KEYS: readonly ["companyName", "cashBalance", "runway", "expenses", "revenues", "netIncome"];
|
|
5
|
-
export declare const ALL_MANAGEMENT_SORT_KEYS: readonly ["companyName", "task", "status", "group", "plans", "controller", "reviewer", "preparer", "apAnalyst", "reportSent", "taxStatus", "taxLead", "monthlyRecurringRevenue", "annualRecurringRevenue", "notes", "satisfaction"];
|
|
5
|
+
export declare const ALL_MANAGEMENT_SORT_KEYS: readonly ["companyName", "task", "status", "group", "plans", "controller", "reviewer", "preparer", "apAnalyst", "reportSent", "taxStatus", "taxLead", "monthlyRecurringRevenue", "annualRecurringRevenue", "notes", "satisfaction", "bookCloseDate"];
|
|
6
6
|
export declare const ALL_ONBOARDING_SORT_KEYS: readonly ["companyName", "bankAccountLinked", "qboLinked", "identityVerified", "businessVerified", "groupCreated", "customerCreated", "enroller", "notes", "invite"];
|
|
7
7
|
export declare const ALL_HEALTH_SORT_KEYS: readonly ["companyName", "issues", "productVerticals", "runway", "churnProbability", "netPromoterScore", "controller", "lastReportSent", "subscriptionDate", "renewalDate"];
|
|
8
8
|
export declare const toPortfolioSortKeyType: (v: string) => "expenses" | "runway" | "cashBalance" | "netIncome" | "companyName" | "revenues";
|
|
9
|
-
export declare const toManagementSortKeyType: (v: string) => "status" | "group" | "controller" | "preparer" | "reviewer" | "companyName" | "monthlyRecurringRevenue" | "annualRecurringRevenue" | "taxStatus" | "plans" | "notes" | "task" | "apAnalyst" | "reportSent" | "taxLead" | "satisfaction";
|
|
9
|
+
export declare const toManagementSortKeyType: (v: string) => "status" | "group" | "bookCloseDate" | "controller" | "preparer" | "reviewer" | "companyName" | "monthlyRecurringRevenue" | "annualRecurringRevenue" | "taxStatus" | "plans" | "notes" | "task" | "apAnalyst" | "reportSent" | "taxLead" | "satisfaction";
|
|
10
10
|
export declare const toOnboardingSortKeyType: (v: string) => "companyName" | "identityVerified" | "businessVerified" | "bankAccountLinked" | "qboLinked" | "groupCreated" | "customerCreated" | "notes" | "enroller" | "invite";
|
|
11
11
|
export declare const toHealthSortKeyType: (v: string) => "runway" | "controller" | "companyName" | "issues" | "productVerticals" | "churnProbability" | "netPromoterScore" | "lastReportSent" | "subscriptionDate" | "renewalDate";
|
|
12
12
|
export declare type PortfolioViewSortKey = ReturnType<typeof toPortfolioSortKeyType>;
|
|
@@ -41,3 +41,5 @@ export interface DownloadCockpitTabOptions {
|
|
|
41
41
|
tabs: CockpitDownloadTabsID[];
|
|
42
42
|
filterByTabs: Record<CockpitDownloadTabsID, FilterCombinationsByTabs>;
|
|
43
43
|
}
|
|
44
|
+
export declare const ALL_ONBOARDING_STEP_KEYS: readonly ["bankAccountLinked", "qboLinked", "identityVerified", "businessVerified"];
|
|
45
|
+
export declare const toOnboardingStepKeyType: (v: string) => "identityVerified" | "businessVerified" | "bankAccountLinked" | "qboLinked";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.toManagementStatusCodeType = exports.MANAGEMENT_STATUS_CODES = exports.toHealthSortKeyType = exports.toOnboardingSortKeyType = exports.toManagementSortKeyType = exports.toPortfolioSortKeyType = exports.ALL_HEALTH_SORT_KEYS = exports.ALL_ONBOARDING_SORT_KEYS = exports.ALL_MANAGEMENT_SORT_KEYS = exports.ALL_PORTFOLIO_SORT_KEYS = void 0;
|
|
3
|
+
exports.toOnboardingStepKeyType = exports.ALL_ONBOARDING_STEP_KEYS = exports.toManagementStatusCodeType = exports.MANAGEMENT_STATUS_CODES = exports.toHealthSortKeyType = exports.toOnboardingSortKeyType = exports.toManagementSortKeyType = exports.toPortfolioSortKeyType = exports.ALL_HEALTH_SORT_KEYS = exports.ALL_ONBOARDING_SORT_KEYS = exports.ALL_MANAGEMENT_SORT_KEYS = exports.ALL_PORTFOLIO_SORT_KEYS = void 0;
|
|
4
4
|
const stringToUnion_1 = require("../../../commonStateTypes/stringToUnion");
|
|
5
5
|
exports.ALL_PORTFOLIO_SORT_KEYS = [
|
|
6
6
|
'companyName',
|
|
@@ -27,6 +27,7 @@ exports.ALL_MANAGEMENT_SORT_KEYS = [
|
|
|
27
27
|
'annualRecurringRevenue',
|
|
28
28
|
'notes',
|
|
29
29
|
'satisfaction',
|
|
30
|
+
'bookCloseDate',
|
|
30
31
|
];
|
|
31
32
|
exports.ALL_ONBOARDING_SORT_KEYS = [
|
|
32
33
|
'companyName',
|
|
@@ -69,3 +70,11 @@ exports.MANAGEMENT_STATUS_CODES = [
|
|
|
69
70
|
];
|
|
70
71
|
const toManagementStatusCodeType = (v) => (0, stringToUnion_1.stringToUnion)(v, exports.MANAGEMENT_STATUS_CODES);
|
|
71
72
|
exports.toManagementStatusCodeType = toManagementStatusCodeType;
|
|
73
|
+
exports.ALL_ONBOARDING_STEP_KEYS = [
|
|
74
|
+
'bankAccountLinked',
|
|
75
|
+
'qboLinked',
|
|
76
|
+
'identityVerified',
|
|
77
|
+
'businessVerified',
|
|
78
|
+
];
|
|
79
|
+
const toOnboardingStepKeyType = (v) => (0, stringToUnion_1.stringToUnion)(v, exports.ALL_ONBOARDING_STEP_KEYS);
|
|
80
|
+
exports.toOnboardingStepKeyType = toOnboardingStepKeyType;
|
|
@@ -26,7 +26,7 @@ export declare const changeZeniPersonRolesEpic: (actions$: ActionsObservable<Act
|
|
|
26
26
|
type: string;
|
|
27
27
|
} | {
|
|
28
28
|
payload: {
|
|
29
|
-
messageSection: "common" | "transactionDetails_updatingPastTransactions" | "transactionDetails_transactionUpdated" | "cockpit_monthEndEmailSent" | "cockpit_monthEndEmailSave" | "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_setup" | "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" | "bill_pay_setup" | "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" | "zeni_account_accept_term" | "update_vendor" | "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" | "charge_card_setup" | "charge_card_accept_term" | "create_schedule" | "save_schedule" | "save_task_detail" | "delete_task" | "archive_task" | "update_charge_card" | "notification_settings_saved";
|
|
29
|
+
messageSection: "common" | "transactionDetails_updatingPastTransactions" | "transactionDetails_transactionUpdated" | "cockpit_monthEndEmailSent" | "cockpit_monthEndEmailSave" | "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_setup" | "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" | "bill_pay_setup" | "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" | "zeni_account_accept_term" | "update_vendor" | "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" | "charge_card_setup" | "charge_card_accept_term" | "create_schedule" | "save_schedule" | "save_task_detail" | "delete_task" | "archive_task" | "update_charge_card" | "notification_settings_saved" | "referral_invite_sent";
|
|
30
30
|
messageText: "failed" | "success";
|
|
31
31
|
type: import("../..").SnackbarMessageType;
|
|
32
32
|
showStatusIcon?: boolean | undefined;
|
|
@@ -18,7 +18,7 @@ export declare const deletePersonEpic: (actions$: ActionsObservable<ActionType>,
|
|
|
18
18
|
type: string;
|
|
19
19
|
} | {
|
|
20
20
|
payload: {
|
|
21
|
-
messageSection: "common" | "transactionDetails_updatingPastTransactions" | "transactionDetails_transactionUpdated" | "cockpit_monthEndEmailSent" | "cockpit_monthEndEmailSave" | "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_setup" | "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" | "bill_pay_setup" | "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" | "zeni_account_accept_term" | "update_vendor" | "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" | "charge_card_setup" | "charge_card_accept_term" | "create_schedule" | "save_schedule" | "save_task_detail" | "delete_task" | "archive_task" | "update_charge_card" | "notification_settings_saved";
|
|
21
|
+
messageSection: "common" | "transactionDetails_updatingPastTransactions" | "transactionDetails_transactionUpdated" | "cockpit_monthEndEmailSent" | "cockpit_monthEndEmailSave" | "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_setup" | "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" | "bill_pay_setup" | "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" | "zeni_account_accept_term" | "update_vendor" | "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" | "charge_card_setup" | "charge_card_accept_term" | "create_schedule" | "save_schedule" | "save_task_detail" | "delete_task" | "archive_task" | "update_charge_card" | "notification_settings_saved" | "referral_invite_sent";
|
|
22
22
|
messageText: "failed" | "success";
|
|
23
23
|
type: import("../..").SnackbarMessageType;
|
|
24
24
|
showStatusIcon?: boolean | undefined;
|
|
@@ -35,7 +35,7 @@ export declare const invitePeopleEpic: (actions$: ActionsObservable<ActionType>,
|
|
|
35
35
|
type: string;
|
|
36
36
|
} | {
|
|
37
37
|
payload: {
|
|
38
|
-
messageSection: "common" | "transactionDetails_updatingPastTransactions" | "transactionDetails_transactionUpdated" | "cockpit_monthEndEmailSent" | "cockpit_monthEndEmailSave" | "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_setup" | "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" | "bill_pay_setup" | "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" | "zeni_account_accept_term" | "update_vendor" | "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" | "charge_card_setup" | "charge_card_accept_term" | "create_schedule" | "save_schedule" | "save_task_detail" | "delete_task" | "archive_task" | "update_charge_card" | "notification_settings_saved";
|
|
38
|
+
messageSection: "common" | "transactionDetails_updatingPastTransactions" | "transactionDetails_transactionUpdated" | "cockpit_monthEndEmailSent" | "cockpit_monthEndEmailSave" | "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_setup" | "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" | "bill_pay_setup" | "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" | "zeni_account_accept_term" | "update_vendor" | "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" | "charge_card_setup" | "charge_card_accept_term" | "create_schedule" | "save_schedule" | "save_task_detail" | "delete_task" | "archive_task" | "update_charge_card" | "notification_settings_saved" | "referral_invite_sent";
|
|
39
39
|
messageText: "failed" | "success";
|
|
40
40
|
type: import("../..").SnackbarMessageType;
|
|
41
41
|
showStatusIcon?: boolean | undefined;
|
|
@@ -32,7 +32,7 @@ export declare const inviteZeniPeopleEpic: (actions$: ActionsObservable<ActionTy
|
|
|
32
32
|
type: string;
|
|
33
33
|
} | {
|
|
34
34
|
payload: {
|
|
35
|
-
messageSection: "common" | "transactionDetails_updatingPastTransactions" | "transactionDetails_transactionUpdated" | "cockpit_monthEndEmailSent" | "cockpit_monthEndEmailSave" | "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_setup" | "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" | "bill_pay_setup" | "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" | "zeni_account_accept_term" | "update_vendor" | "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" | "charge_card_setup" | "charge_card_accept_term" | "create_schedule" | "save_schedule" | "save_task_detail" | "delete_task" | "archive_task" | "update_charge_card" | "notification_settings_saved";
|
|
35
|
+
messageSection: "common" | "transactionDetails_updatingPastTransactions" | "transactionDetails_transactionUpdated" | "cockpit_monthEndEmailSent" | "cockpit_monthEndEmailSave" | "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_setup" | "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" | "bill_pay_setup" | "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" | "zeni_account_accept_term" | "update_vendor" | "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" | "charge_card_setup" | "charge_card_accept_term" | "create_schedule" | "save_schedule" | "save_task_detail" | "delete_task" | "archive_task" | "update_charge_card" | "notification_settings_saved" | "referral_invite_sent";
|
|
36
36
|
messageText: "failed" | "success";
|
|
37
37
|
type: import("../..").SnackbarMessageType;
|
|
38
38
|
showStatusIcon?: boolean | undefined;
|
|
@@ -13,7 +13,7 @@ export declare const resendInviteEpic: (actions$: ActionsObservable<ActionType>,
|
|
|
13
13
|
type: string;
|
|
14
14
|
} | {
|
|
15
15
|
payload: {
|
|
16
|
-
messageSection: "common" | "transactionDetails_updatingPastTransactions" | "transactionDetails_transactionUpdated" | "cockpit_monthEndEmailSent" | "cockpit_monthEndEmailSave" | "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_setup" | "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" | "bill_pay_setup" | "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" | "zeni_account_accept_term" | "update_vendor" | "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" | "charge_card_setup" | "charge_card_accept_term" | "create_schedule" | "save_schedule" | "save_task_detail" | "delete_task" | "archive_task" | "update_charge_card" | "notification_settings_saved";
|
|
16
|
+
messageSection: "common" | "transactionDetails_updatingPastTransactions" | "transactionDetails_transactionUpdated" | "cockpit_monthEndEmailSent" | "cockpit_monthEndEmailSave" | "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_setup" | "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" | "bill_pay_setup" | "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" | "zeni_account_accept_term" | "update_vendor" | "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" | "charge_card_setup" | "charge_card_accept_term" | "create_schedule" | "save_schedule" | "save_task_detail" | "delete_task" | "archive_task" | "update_charge_card" | "notification_settings_saved" | "referral_invite_sent";
|
|
17
17
|
messageText: "failed" | "success";
|
|
18
18
|
type: import("../..").SnackbarMessageType;
|
|
19
19
|
showStatusIcon?: boolean | undefined;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ActionsObservable, StateObservable } from 'redux-observable';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { RootState } from '../../../reducer';
|
|
4
|
+
import { ZeniAPI } from '../../../zeniAPI';
|
|
5
|
+
import { updateReferrals, fetchReferrals, updateReferralsFailure } from '../referralReducer';
|
|
6
|
+
export declare type ActionType = ReturnType<typeof updateReferrals> | ReturnType<typeof fetchReferrals> | ReturnType<typeof updateReferralsFailure>;
|
|
7
|
+
export declare const fetchReferralsEpic: (actions$: ActionsObservable<ActionType>, state$: StateObservable<RootState>, zeniAPI: ZeniAPI) => Observable<ActionType>;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.fetchReferralsEpic = void 0;
|
|
4
|
+
const rxjs_1 = require("rxjs");
|
|
5
|
+
const operators_1 = require("rxjs/operators");
|
|
6
|
+
const responsePayload_1 = require("../../../responsePayload");
|
|
7
|
+
const referralReducer_1 = require("../referralReducer");
|
|
8
|
+
const fetchReferralsEpic = (actions$, state$, zeniAPI) => actions$.pipe((0, operators_1.filter)(referralReducer_1.fetchReferrals.match), (0, operators_1.mergeMap)((action) => {
|
|
9
|
+
const { cacheOverride } = action.payload;
|
|
10
|
+
const state = state$.value;
|
|
11
|
+
const fetchState = state.referralViewState.fetchState;
|
|
12
|
+
if (cacheOverride === true || fetchState === 'Not-Started') {
|
|
13
|
+
const { userId, sessionId } = zeniAPI;
|
|
14
|
+
const headers = {
|
|
15
|
+
'zeni-user-id': userId,
|
|
16
|
+
'zeni-tenant-id': '',
|
|
17
|
+
'zeni-session-id': sessionId,
|
|
18
|
+
};
|
|
19
|
+
return zeniAPI
|
|
20
|
+
.getJSON(`${zeniAPI.apiEndPoints.tenantMicroServiceBaseUrl}/1.0/company-referals`, headers)
|
|
21
|
+
.pipe((0, operators_1.mergeMap)((response) => {
|
|
22
|
+
if ((0, responsePayload_1.isSuccessResponse)(response) && response.data != null) {
|
|
23
|
+
const actions = [(0, referralReducer_1.updateReferrals)(response.data)];
|
|
24
|
+
return (0, rxjs_1.from)(actions);
|
|
25
|
+
}
|
|
26
|
+
else {
|
|
27
|
+
return (0, rxjs_1.of)((0, referralReducer_1.updateReferralsFailure)(response.status));
|
|
28
|
+
}
|
|
29
|
+
}), (0, operators_1.catchError)((error) => (0, rxjs_1.of)((0, referralReducer_1.updateReferralsFailure)((0, responsePayload_1.createZeniAPIStatus)('Unexpected Error', 'Fetch referrals REST API call errored out' +
|
|
30
|
+
JSON.stringify(error))))));
|
|
31
|
+
}
|
|
32
|
+
else {
|
|
33
|
+
return [];
|
|
34
|
+
}
|
|
35
|
+
}));
|
|
36
|
+
exports.fetchReferralsEpic = fetchReferralsEpic;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ActionsObservable, StateObservable } from 'redux-observable';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { RootState } from '../../../reducer';
|
|
4
|
+
import { ZeniAPI } from '../../../zeniAPI';
|
|
5
|
+
import { fetchRewardsPlan, updateRewardsPlan, updateRewardsPlanFailure } from '../referralReducer';
|
|
6
|
+
export declare type ActionType = ReturnType<typeof updateRewardsPlan> | ReturnType<typeof fetchRewardsPlan> | ReturnType<typeof updateRewardsPlanFailure>;
|
|
7
|
+
export declare const fetchRewardsPlanEpic: (actions$: ActionsObservable<ActionType>, state$: StateObservable<RootState>, zeniAPI: ZeniAPI) => Observable<ActionType>;
|