@zeniai/client-epic-state 4.10.73 → 4.10.75
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 +3 -3
- package/lib/commonStateTypes/viewAndReport/viewAndReport.js +1 -0
- package/lib/entity/account/accountState.d.ts +1 -1
- package/lib/entity/accountGroup/accountGroupState.d.ts +1 -1
- package/lib/entity/class/classReducer.d.ts +4 -4
- package/lib/entity/class/classState.d.ts +1 -1
- package/lib/entity/companyHealthMetric/companyHealthMetricPayload.js +0 -1
- package/lib/entity/companyHealthMetric/companyHealthMetricState.d.ts +0 -1
- package/lib/entity/forecast/forecastState.d.ts +1 -1
- package/lib/entity/notification/notificationReducer.d.ts +7 -7
- package/lib/entity/notification/notificationSelector.d.ts +3 -3
- package/lib/entity/notification/notificationState.d.ts +2 -2
- package/lib/entity/notification/types/notificationTypes.d.ts +9 -2
- package/lib/entity/sectionAccountsView/sectionAccountsView.d.ts +1 -1
- package/lib/entity/sectionClassesViewV2/sectionClassesView.d.ts +1 -1
- package/lib/entity/sectionClassesViewV2/sectionClassesViewReducer.d.ts +2 -2
- package/lib/index.d.ts +6 -6
- package/lib/index.js +11 -7
- package/lib/view/auditReportView/auditReportViewState.d.ts +2 -2
- package/lib/view/billPayCard/billPayCardSelector.d.ts +1 -1
- package/lib/view/cardBalance/cardBalanceSelector.d.ts +1 -1
- package/lib/view/cashBalance/cashBalanceSelector.d.ts +1 -1
- package/lib/view/cashInCashOut/cashInCashOutSelector.d.ts +1 -1
- package/lib/view/cashPosition/cashPositionSelector.d.ts +1 -1
- package/lib/view/companyHealthMetricView/companyHealthMetricViewSelector.js +5 -12
- package/lib/view/dashboard/dashboardEpic.d.ts +2 -1
- package/lib/view/dashboard/dashboardEpic.js +11 -0
- package/lib/view/dashboard/dashboardReducer.d.ts +2 -2
- package/lib/view/dashboard/dashboardSelector.d.ts +4 -2
- package/lib/view/dashboard/dashboardSelector.js +7 -2
- package/lib/view/financeStatement/financeStatementReducer.d.ts +1 -1
- package/lib/view/globalMerchantView/globalMerchantViewReducer.d.ts +2 -2
- package/lib/view/notificationView/notificationViewReducer.d.ts +10 -10
- package/lib/view/notificationView/notificationViewSelector.d.ts +4 -4
- package/lib/view/notificationView/notificationViewSelector.js +1 -2
- package/lib/view/notificationView/notificationViewState.d.ts +2 -2
- package/lib/view/referralView/referralSelector.d.ts +5 -0
- package/lib/view/referralView/referralSelector.js +8 -1
- package/lib/view/reimbursementCard/reimbursementCardSelector.d.ts +1 -1
- package/lib/view/tasksCard/tasksCardSelector.d.ts +1 -1
- package/lib/view/topEx/topExSelector.d.ts +1 -1
- package/lib/view/zeniAccountsPromoCard/zeniAccountsPromoCardReducer.js +0 -3
- package/lib/view/zeniAccountsPromoCard/zeniAccountsPromoCardSelector.d.ts +8 -11
- package/lib/view/zeniAccountsPromoCard/zeniAccountsPromoCardSelector.js +2 -6
- package/lib/view/zeniAccountsPromoCard/zeniAccountsPromoCardState.d.ts +1 -2
- package/package.json +1 -2
|
@@ -4,10 +4,10 @@ import { NotificationTabState, NotificationTabType, NotificationViewState, Notif
|
|
|
4
4
|
import { NotificationGroup } from '../../entity/notification/types/notificationTypes';
|
|
5
5
|
import { PageToken } from '../../commonStateTypes/viewAndReport/viewAndReport';
|
|
6
6
|
export declare const initialState: NotificationViewState;
|
|
7
|
-
export declare const fetchNotificationView: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[notificationGroup: "task_manager", mode?: "dashboard" | "email" | undefined, status?: ("
|
|
7
|
+
export declare const fetchNotificationView: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[notificationGroup: "task_manager", mode?: "dashboard" | "email" | undefined, status?: ("read" | "unread")[] | undefined, isNewNotificationFetch?: boolean | undefined], {
|
|
8
8
|
notificationGroup: "task_manager";
|
|
9
9
|
mode: "dashboard" | "email";
|
|
10
|
-
status: ("
|
|
10
|
+
status: ("read" | "unread")[];
|
|
11
11
|
isNewNotificationFetch: boolean;
|
|
12
12
|
}, string, never, never>, fetchNotificationViewSuccess: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[notifications: NotificationPayload[], totalCount: number, notificationGroup: "task_manager", pageToken: PageToken], {
|
|
13
13
|
notifications: NotificationPayload[];
|
|
@@ -26,9 +26,9 @@ export declare const fetchNotificationView: import("@reduxjs/toolkit").ActionCre
|
|
|
26
26
|
}, string, never, never>, fetchNotificationUnreadCountFailure: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
27
27
|
status: ZeniAPIStatus;
|
|
28
28
|
notificationGroup: NotificationGroup;
|
|
29
|
-
}, string>, updateNotificationViewNotificationStatus: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[notificationGroup: "task_manager", status: "
|
|
29
|
+
}, string>, updateNotificationViewNotificationStatus: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[notificationGroup: "task_manager", status: "read" | "unread", notificationIds?: string[] | undefined, showSnackBarOnSuccess?: any], {
|
|
30
30
|
notificationGroup: "task_manager";
|
|
31
|
-
status: "
|
|
31
|
+
status: "read" | "unread";
|
|
32
32
|
notificationIds: string[];
|
|
33
33
|
showSnackBarOnSuccess: any;
|
|
34
34
|
}, string, never, never>, updateNotificationViewNotificationStatusSuccess: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[notificationGroup: "task_manager", reduceUnreadCountBy: number], {
|
|
@@ -37,9 +37,9 @@ export declare const fetchNotificationView: import("@reduxjs/toolkit").ActionCre
|
|
|
37
37
|
}, string, never, never>, updateNotificationViewNotificationStatusFailure: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
38
38
|
status: ZeniAPIStatus;
|
|
39
39
|
notificationGroup: NotificationGroup;
|
|
40
|
-
}, string>, updateNotificationViewAllNotificationsStatus: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[notificationGroup: "task_manager", status: "
|
|
40
|
+
}, string>, updateNotificationViewAllNotificationsStatus: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[notificationGroup: "task_manager", status: "read" | "unread"], {
|
|
41
41
|
notificationGroup: "task_manager";
|
|
42
|
-
status: "
|
|
42
|
+
status: "read" | "unread";
|
|
43
43
|
}, string, never, never>, updateNotificationViewAllNotificationsStatusSuccess: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[notificationGroup: "task_manager"], {
|
|
44
44
|
notificationGroup: "task_manager";
|
|
45
45
|
}, string, never, never>, updateNotificationViewAllNotificationsStatusFailure: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
@@ -48,11 +48,11 @@ export declare const fetchNotificationView: import("@reduxjs/toolkit").ActionCre
|
|
|
48
48
|
}, string>, updateNotificationViewTabState: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[notificationTabState: Partial<NotificationTabState>, tab: "tasks" | "comments"], {
|
|
49
49
|
notificationTabState: Partial<NotificationTabState>;
|
|
50
50
|
tab: "tasks" | "comments";
|
|
51
|
-
}, string, never, never>, updateNotificationViewCurrentTabAndSubTab: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[newTab: "tasks" | "comments", newSubTab?: "all" | "
|
|
51
|
+
}, string, never, never>, updateNotificationViewCurrentTabAndSubTab: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[newTab: "tasks" | "comments", newSubTab?: "all" | "read" | "unread" | "mentions" | undefined], {
|
|
52
52
|
newTab: "tasks" | "comments";
|
|
53
|
-
newSubTab: "all" | "
|
|
54
|
-
}, string, never, never>, updateNotificationViewSubTab: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[newSubTab: "all" | "
|
|
55
|
-
newSubTab: "all" | "
|
|
53
|
+
newSubTab: "all" | "read" | "unread" | "mentions" | undefined;
|
|
54
|
+
}, string, never, never>, updateNotificationViewSubTab: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[newSubTab: "all" | "read" | "unread" | "mentions"], {
|
|
55
|
+
newSubTab: "all" | "read" | "unread" | "mentions";
|
|
56
56
|
}, string, never, never>, updateNotificationViewUIState: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[uiState: Partial<NotificationViewUIState>, tab: "tasks" | "comments"], {
|
|
57
57
|
uiState: Partial<NotificationViewUIState>;
|
|
58
58
|
tab: "tasks" | "comments";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { CoreNotificationData } from '@cord-sdk/types';
|
|
2
1
|
import { RootState } from '../../reducer';
|
|
3
2
|
import { NotificationSubTabType, NotificationTabType, NotificationTabState } from './notificationViewState';
|
|
4
3
|
import { NotificationWithAuthors } from '../../entity/notification/types/notificationSelectorTypes';
|
|
5
4
|
import { View } from '../../commonStateTypes/viewAndReport/viewAndReport';
|
|
6
5
|
import { FetchStateAndError, ID } from '../../commonStateTypes/common';
|
|
6
|
+
import { CustomNotificationData } from '../../entity/notification/types/notificationTypes';
|
|
7
7
|
interface NotificationDetails extends NotificationTabState {
|
|
8
8
|
allNotificationsIdsForSubTab: ID[];
|
|
9
9
|
selectedNotificationIdsForSubTab: ID[];
|
|
@@ -14,9 +14,9 @@ export interface NotificationView extends View {
|
|
|
14
14
|
allSubTabs: NotificationSubTabType[];
|
|
15
15
|
notificationDetailsByTab: Record<NotificationTabType, NotificationDetails>;
|
|
16
16
|
allNotifications: NotificationWithAuthors[];
|
|
17
|
-
allExternalNotifications:
|
|
17
|
+
allExternalNotifications: CustomNotificationData[];
|
|
18
18
|
notificationsForCurrentTabAndSubTab: NotificationWithAuthors[];
|
|
19
|
-
externalNotificationsForCurrentTabAndSubTab:
|
|
19
|
+
externalNotificationsForCurrentTabAndSubTab: CustomNotificationData[];
|
|
20
20
|
reducedFetchCountState: FetchStateAndError;
|
|
21
21
|
totalUnreadCount: number;
|
|
22
22
|
}
|
|
@@ -25,5 +25,5 @@ export declare const getNotificationView: (state: RootState) => NotificationView
|
|
|
25
25
|
* Helpers
|
|
26
26
|
*/
|
|
27
27
|
export declare const getNotificationsForSelectedSubTab: (notifications: NotificationWithAuthors[], currentSubTab: NotificationSubTabType) => NotificationWithAuthors[];
|
|
28
|
-
export declare const getExternalNotificationsForSelectedSubTab: (externalNotifications:
|
|
28
|
+
export declare const getExternalNotificationsForSelectedSubTab: (externalNotifications: CustomNotificationData[], currentSubTab: NotificationSubTabType) => CustomNotificationData[];
|
|
29
29
|
export {};
|
|
@@ -71,7 +71,6 @@ const getNotificationsForSelectedSubTab = (notifications, currentSubTab) => {
|
|
|
71
71
|
exports.getNotificationsForSelectedSubTab = getNotificationsForSelectedSubTab;
|
|
72
72
|
const getExternalNotificationsForSelectedSubTab = (externalNotifications, currentSubTab) => {
|
|
73
73
|
return externalNotifications.filter((externalNotification) => {
|
|
74
|
-
var _a;
|
|
75
74
|
switch (currentSubTab) {
|
|
76
75
|
case 'all':
|
|
77
76
|
return true;
|
|
@@ -80,7 +79,7 @@ const getExternalNotificationsForSelectedSubTab = (externalNotifications, curren
|
|
|
80
79
|
case 'unread':
|
|
81
80
|
return externalNotification.readStatus === 'unread';
|
|
82
81
|
case 'mentions':
|
|
83
|
-
return
|
|
82
|
+
return externalNotification.notification.includes('mention');
|
|
84
83
|
default:
|
|
85
84
|
return false;
|
|
86
85
|
}
|
|
@@ -5,8 +5,8 @@ export declare const toNotificationTabType: (v: string) => "tasks" | "comments";
|
|
|
5
5
|
export declare const toNotificationTabTypeStrict: (v: string) => "tasks" | "comments" | undefined;
|
|
6
6
|
export declare type NotificationTabType = ReturnType<typeof toNotificationTabType>;
|
|
7
7
|
export declare const ALL_NOTIFICATION_SUB_TABS: readonly ["all", "read", "unread", "mentions"];
|
|
8
|
-
export declare const toNotificationSubTabType: (v: string) => "all" | "
|
|
9
|
-
export declare const toNotificationSubTabTypeStrict: (v: string) => "all" | "
|
|
8
|
+
export declare const toNotificationSubTabType: (v: string) => "all" | "read" | "unread" | "mentions";
|
|
9
|
+
export declare const toNotificationSubTabTypeStrict: (v: string) => "all" | "read" | "unread" | "mentions" | undefined;
|
|
10
10
|
export declare type NotificationSubTabType = ReturnType<typeof toNotificationSubTabType>;
|
|
11
11
|
export interface NotificationViewUIState {
|
|
12
12
|
pageToken: PageToken;
|
|
@@ -11,6 +11,7 @@ export interface ReferralListSelectorView extends SelectorView {
|
|
|
11
11
|
referralLink: ZeniUrl;
|
|
12
12
|
invitations: ReferralInvitation[];
|
|
13
13
|
uiState: ReferralViewUIState;
|
|
14
|
+
amount: Amount;
|
|
14
15
|
}
|
|
15
16
|
export interface InviteFormSelectorView extends SelectorView {
|
|
16
17
|
localData: InviteCompanyLocalData[];
|
|
@@ -18,5 +19,9 @@ export interface InviteFormSelectorView extends SelectorView {
|
|
|
18
19
|
amount: Amount;
|
|
19
20
|
referralUniqueLink: ZeniUrl;
|
|
20
21
|
}
|
|
22
|
+
export interface RewardsPlanCardReport extends SelectorView {
|
|
23
|
+
rewardsPlanAmount: Amount;
|
|
24
|
+
}
|
|
21
25
|
export declare const getReferralListView: (state: RootState) => ReferralListSelectorView;
|
|
22
26
|
export declare const getInviteFormView: (state: RootState) => InviteFormSelectorView;
|
|
27
|
+
export declare const getRewardsPlanCard: (state: RootState) => RewardsPlanCardReport;
|
|
@@ -3,7 +3,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.getInviteFormView = exports.getReferralListView = void 0;
|
|
6
|
+
exports.getRewardsPlanCard = exports.getInviteFormView = exports.getReferralListView = void 0;
|
|
7
|
+
const toolkit_1 = require("@reduxjs/toolkit");
|
|
7
8
|
const orderBy_1 = __importDefault(require("lodash/orderBy"));
|
|
8
9
|
const getReferralListView = (state) => {
|
|
9
10
|
const { referralViewState } = state;
|
|
@@ -85,3 +86,9 @@ const getInviteFormView = (state) => {
|
|
|
85
86
|
};
|
|
86
87
|
};
|
|
87
88
|
exports.getInviteFormView = getInviteFormView;
|
|
89
|
+
exports.getRewardsPlanCard = (0, toolkit_1.createSelector)((state) => state.referralViewState, (referralViewState) => ({
|
|
90
|
+
rewardsPlanAmount: referralViewState.rewardsPlan.amount,
|
|
91
|
+
reportId: 'rewards_card',
|
|
92
|
+
fetchState: referralViewState.rewardsPlanFetchState.fetchState,
|
|
93
|
+
error: referralViewState.rewardsPlanFetchState.error,
|
|
94
|
+
}));
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { RootState } from '../../reducer';
|
|
2
2
|
export declare const getReimbursementCardReport: (state: RootState) => {
|
|
3
|
-
reportId: "cash_balance" | "card_balance" | "operating_expenses" | "operating_expenses_by_classes" | "revenue" | "revenue_by_classes" | "net_burn_or_income" | "net_burn_or_income_story_card" | "net_burn_or_income_by_classes" | "cash_position" | "top_expenses" | "profit_and_loss" | "profit_and_loss_by_classes" | "balance_sheet" | "cash_flow" | "dashboard" | "finance_statement" | "transaction_list_of_account" | "transaction_list_missing_receipt" | "transaction_list_of_account_by_class" | "transaction_detail" | "cash_in_cash_out" | "insights_dashboard" | "company_details" | "class_list" | "account_list" | "account_list_by_type" | "vendor" | "task_card" | "bill_pay" | "reimbursement" | "bill_pay_card" | "reimbursement_card" | "bill_pay_promo_card" | "zeni_accounts" | "zeni_accounts_promo_card" | "charge_cards" | "reimbursement_promo_card" | "onboarding" | "operating_expenses_by_vendor" | "operating_expenses_by_vendor_summary" | "vendors_tab" | "accounts_payable_aging" | "accounts_receivable_aging" | "vendor_global_review" | "prepaid_expenses" | "fixed_assets" | "notification";
|
|
3
|
+
reportId: "cash_balance" | "card_balance" | "operating_expenses" | "operating_expenses_by_classes" | "revenue" | "revenue_by_classes" | "net_burn_or_income" | "net_burn_or_income_story_card" | "net_burn_or_income_by_classes" | "cash_position" | "top_expenses" | "profit_and_loss" | "profit_and_loss_by_classes" | "balance_sheet" | "cash_flow" | "dashboard" | "finance_statement" | "transaction_list_of_account" | "transaction_list_missing_receipt" | "transaction_list_of_account_by_class" | "transaction_detail" | "cash_in_cash_out" | "insights_dashboard" | "company_details" | "class_list" | "account_list" | "account_list_by_type" | "vendor" | "task_card" | "bill_pay" | "reimbursement" | "bill_pay_card" | "reimbursement_card" | "bill_pay_promo_card" | "zeni_accounts" | "zeni_accounts_promo_card" | "charge_cards" | "reimbursement_promo_card" | "onboarding" | "operating_expenses_by_vendor" | "operating_expenses_by_vendor_summary" | "vendors_tab" | "accounts_payable_aging" | "accounts_receivable_aging" | "vendor_global_review" | "prepaid_expenses" | "fixed_assets" | "notification" | "rewards_card";
|
|
4
4
|
reportTitle: string;
|
|
5
5
|
version: string | number | undefined;
|
|
6
6
|
fetchState: import("../..").FetchState;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { RootState } from '../../reducer';
|
|
2
2
|
export declare const getTasksCardReport: (state: RootState) => {
|
|
3
|
-
reportId: "cash_balance" | "card_balance" | "operating_expenses" | "operating_expenses_by_classes" | "revenue" | "revenue_by_classes" | "net_burn_or_income" | "net_burn_or_income_story_card" | "net_burn_or_income_by_classes" | "cash_position" | "top_expenses" | "profit_and_loss" | "profit_and_loss_by_classes" | "balance_sheet" | "cash_flow" | "dashboard" | "finance_statement" | "transaction_list_of_account" | "transaction_list_missing_receipt" | "transaction_list_of_account_by_class" | "transaction_detail" | "cash_in_cash_out" | "insights_dashboard" | "company_details" | "class_list" | "account_list" | "account_list_by_type" | "vendor" | "task_card" | "bill_pay" | "reimbursement" | "bill_pay_card" | "reimbursement_card" | "bill_pay_promo_card" | "zeni_accounts" | "zeni_accounts_promo_card" | "charge_cards" | "reimbursement_promo_card" | "onboarding" | "operating_expenses_by_vendor" | "operating_expenses_by_vendor_summary" | "vendors_tab" | "accounts_payable_aging" | "accounts_receivable_aging" | "vendor_global_review" | "prepaid_expenses" | "fixed_assets" | "notification";
|
|
3
|
+
reportId: "cash_balance" | "card_balance" | "operating_expenses" | "operating_expenses_by_classes" | "revenue" | "revenue_by_classes" | "net_burn_or_income" | "net_burn_or_income_story_card" | "net_burn_or_income_by_classes" | "cash_position" | "top_expenses" | "profit_and_loss" | "profit_and_loss_by_classes" | "balance_sheet" | "cash_flow" | "dashboard" | "finance_statement" | "transaction_list_of_account" | "transaction_list_missing_receipt" | "transaction_list_of_account_by_class" | "transaction_detail" | "cash_in_cash_out" | "insights_dashboard" | "company_details" | "class_list" | "account_list" | "account_list_by_type" | "vendor" | "task_card" | "bill_pay" | "reimbursement" | "bill_pay_card" | "reimbursement_card" | "bill_pay_promo_card" | "zeni_accounts" | "zeni_accounts_promo_card" | "charge_cards" | "reimbursement_promo_card" | "onboarding" | "operating_expenses_by_vendor" | "operating_expenses_by_vendor_summary" | "vendors_tab" | "accounts_payable_aging" | "accounts_receivable_aging" | "vendor_global_review" | "prepaid_expenses" | "fixed_assets" | "notification" | "rewards_card";
|
|
4
4
|
reportTitle: string;
|
|
5
5
|
version: string | number | undefined;
|
|
6
6
|
status: import("../..").Status | undefined;
|
|
@@ -5,7 +5,7 @@ import { AccountState } from '../../entity/account/accountState';
|
|
|
5
5
|
import { EntityOrder } from '../../commonStateTypes/selectorTypes/selectorTypes';
|
|
6
6
|
import { TopExReport, TopExTimePeriodWithMetaData } from './topExSelectorTypes';
|
|
7
7
|
export declare const getTopExpenses: (accountState: AccountState, topExState: TopExState, numberOfExpenses?: number | undefined) => {
|
|
8
|
-
reportId: "cash_balance" | "card_balance" | "operating_expenses" | "operating_expenses_by_classes" | "revenue" | "revenue_by_classes" | "net_burn_or_income" | "net_burn_or_income_story_card" | "net_burn_or_income_by_classes" | "cash_position" | "top_expenses" | "profit_and_loss" | "profit_and_loss_by_classes" | "balance_sheet" | "cash_flow" | "dashboard" | "finance_statement" | "transaction_list_of_account" | "transaction_list_missing_receipt" | "transaction_list_of_account_by_class" | "transaction_detail" | "cash_in_cash_out" | "insights_dashboard" | "company_details" | "class_list" | "account_list" | "account_list_by_type" | "vendor" | "task_card" | "bill_pay" | "reimbursement" | "bill_pay_card" | "reimbursement_card" | "bill_pay_promo_card" | "zeni_accounts" | "zeni_accounts_promo_card" | "charge_cards" | "reimbursement_promo_card" | "onboarding" | "operating_expenses_by_vendor" | "operating_expenses_by_vendor_summary" | "vendors_tab" | "accounts_payable_aging" | "accounts_receivable_aging" | "vendor_global_review" | "prepaid_expenses" | "fixed_assets" | "notification";
|
|
8
|
+
reportId: "cash_balance" | "card_balance" | "operating_expenses" | "operating_expenses_by_classes" | "revenue" | "revenue_by_classes" | "net_burn_or_income" | "net_burn_or_income_story_card" | "net_burn_or_income_by_classes" | "cash_position" | "top_expenses" | "profit_and_loss" | "profit_and_loss_by_classes" | "balance_sheet" | "cash_flow" | "dashboard" | "finance_statement" | "transaction_list_of_account" | "transaction_list_missing_receipt" | "transaction_list_of_account_by_class" | "transaction_detail" | "cash_in_cash_out" | "insights_dashboard" | "company_details" | "class_list" | "account_list" | "account_list_by_type" | "vendor" | "task_card" | "bill_pay" | "reimbursement" | "bill_pay_card" | "reimbursement_card" | "bill_pay_promo_card" | "zeni_accounts" | "zeni_accounts_promo_card" | "charge_cards" | "reimbursement_promo_card" | "onboarding" | "operating_expenses_by_vendor" | "operating_expenses_by_vendor_summary" | "vendors_tab" | "accounts_payable_aging" | "accounts_receivable_aging" | "vendor_global_review" | "prepaid_expenses" | "fixed_assets" | "notification" | "rewards_card";
|
|
9
9
|
reportTitle: string;
|
|
10
10
|
version: string | number | undefined;
|
|
11
11
|
status: import("../..").Status | undefined;
|
|
@@ -12,9 +12,6 @@ exports.initialState = {
|
|
|
12
12
|
maxPossibleInterest: 0,
|
|
13
13
|
maxCashBalanceAvailable: 0,
|
|
14
14
|
isShowDepositAccountsPromo: false,
|
|
15
|
-
firstMonthOfFY: 1,
|
|
16
|
-
reportId: 'zeni_accounts_promo_card',
|
|
17
|
-
reportTitle: '',
|
|
18
15
|
hasValidState() {
|
|
19
16
|
return this.fetchState == 'Completed';
|
|
20
17
|
},
|
|
@@ -1,15 +1,12 @@
|
|
|
1
1
|
import { RootState } from '../../reducer';
|
|
2
|
-
|
|
2
|
+
import { ID } from '../../commonStateTypes/common';
|
|
3
|
+
import { SelectorView } from '../../commonStateTypes/viewAndReport/viewAndReport';
|
|
4
|
+
export interface ZeniAccountsPromoCardReport extends SelectorView {
|
|
3
5
|
isShowDepositAccountsPromo: boolean;
|
|
4
6
|
maxAnnualPercentageYield: number;
|
|
5
|
-
maxPossibleInterest
|
|
6
|
-
maxCashBalanceAvailable
|
|
7
|
+
maxPossibleInterest?: number;
|
|
8
|
+
maxCashBalanceAvailable?: number;
|
|
7
9
|
maxInsuredAmount: number;
|
|
8
|
-
depositAccountId
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
firstMonthOfFY: 2 | 1 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;
|
|
12
|
-
fetchState: import("../..").FetchState;
|
|
13
|
-
error: import("../..").ZeniAPIStatus<Record<string, unknown>> | undefined;
|
|
14
|
-
};
|
|
15
|
-
export declare type ZeniAccountsPromoCardReport = ReturnType<typeof getZeniAccountsPromoCard>;
|
|
10
|
+
depositAccountId?: ID;
|
|
11
|
+
}
|
|
12
|
+
export declare const getZeniAccountsPromoCard: (state: RootState) => ZeniAccountsPromoCardReport;
|
|
@@ -2,18 +2,14 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getZeniAccountsPromoCard = void 0;
|
|
4
4
|
const toolkit_1 = require("@reduxjs/toolkit");
|
|
5
|
-
|
|
5
|
+
exports.getZeniAccountsPromoCard = (0, toolkit_1.createSelector)((state) => state.zeniAccountsPromoCardState, (zeniAccountsPromoCardState) => ({
|
|
6
6
|
isShowDepositAccountsPromo: zeniAccountsPromoCardState.isShowDepositAccountsPromo,
|
|
7
7
|
maxAnnualPercentageYield: zeniAccountsPromoCardState.maxAnnualPercentageYield,
|
|
8
8
|
maxPossibleInterest: zeniAccountsPromoCardState.maxPossibleInterest,
|
|
9
9
|
maxCashBalanceAvailable: zeniAccountsPromoCardState.maxCashBalanceAvailable,
|
|
10
10
|
maxInsuredAmount: zeniAccountsPromoCardState.maxInsuredAmount,
|
|
11
11
|
depositAccountId: zeniAccountsPromoCardState.depositAccountId,
|
|
12
|
-
reportId:
|
|
13
|
-
reportTitle: 'Business Banking',
|
|
14
|
-
firstMonthOfFY: zeniAccountsPromoCardState.firstMonthOfFY,
|
|
12
|
+
reportId: 'zeni_accounts_promo_card',
|
|
15
13
|
fetchState: zeniAccountsPromoCardState.fetchState,
|
|
16
14
|
error: zeniAccountsPromoCardState.error,
|
|
17
15
|
}));
|
|
18
|
-
const getZeniAccountsPromoCard = (state) => getZeniAccountsPromoCardSelector(state);
|
|
19
|
-
exports.getZeniAccountsPromoCard = getZeniAccountsPromoCard;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { ID, FetchedState } from '../../commonStateTypes/common';
|
|
2
|
-
|
|
3
|
-
export interface ZeniAccountsPromoCardState extends FetchedState, Report {
|
|
2
|
+
export interface ZeniAccountsPromoCardState extends FetchedState {
|
|
4
3
|
isShowDepositAccountsPromo: boolean;
|
|
5
4
|
maxAnnualPercentageYield: number;
|
|
6
5
|
maxPossibleInterest?: number;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zeniai/client-epic-state",
|
|
3
|
-
"version": "4.10.
|
|
3
|
+
"version": "4.10.75",
|
|
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",
|
|
@@ -25,7 +25,6 @@
|
|
|
25
25
|
},
|
|
26
26
|
"homepage": "https://github.com/zeni-ai/client-epic-state#readme",
|
|
27
27
|
"devDependencies": {
|
|
28
|
-
"@cord-sdk/types": "^1.45.1",
|
|
29
28
|
"@types/chai": "^4.2.11",
|
|
30
29
|
"@types/jest": "^29.4.0",
|
|
31
30
|
"@types/lodash": "^4.14.178",
|