@zeniai/client-epic-state 4.10.76 → 4.10.77

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.
Files changed (49) hide show
  1. package/lib/commonStateTypes/viewAndReport/viewAndReport.d.ts +3 -3
  2. package/lib/commonStateTypes/viewAndReport/viewAndReport.js +0 -1
  3. package/lib/entity/account/accountState.d.ts +1 -1
  4. package/lib/entity/accountGroup/accountGroupState.d.ts +1 -1
  5. package/lib/entity/class/classReducer.d.ts +4 -4
  6. package/lib/entity/class/classState.d.ts +1 -1
  7. package/lib/entity/company/companySelector.d.ts +1 -2
  8. package/lib/entity/company/companySelector.js +1 -6
  9. package/lib/entity/companyHealthMetric/companyHealthMetricPayload.js +1 -0
  10. package/lib/entity/companyHealthMetric/companyHealthMetricState.d.ts +1 -0
  11. package/lib/entity/forecast/forecastState.d.ts +1 -1
  12. package/lib/entity/notification/notificationReducer.d.ts +7 -7
  13. package/lib/entity/notification/notificationSelector.d.ts +3 -3
  14. package/lib/entity/notification/notificationState.d.ts +2 -2
  15. package/lib/entity/notification/types/notificationTypes.d.ts +2 -9
  16. package/lib/entity/sectionAccountsView/sectionAccountsView.d.ts +1 -1
  17. package/lib/entity/sectionClassesViewV2/sectionClassesView.d.ts +1 -1
  18. package/lib/entity/sectionClassesViewV2/sectionClassesViewReducer.d.ts +2 -2
  19. package/lib/index.d.ts +8 -9
  20. package/lib/index.js +21 -29
  21. package/lib/view/auditReportView/auditReportViewState.d.ts +2 -2
  22. package/lib/view/authenticationView/epics/fetchCollaborationAuthTokenEpic.js +1 -1
  23. package/lib/view/billPayCard/billPayCardSelector.d.ts +1 -1
  24. package/lib/view/cardBalance/cardBalanceSelector.d.ts +1 -1
  25. package/lib/view/cashBalance/cashBalanceSelector.d.ts +1 -1
  26. package/lib/view/cashInCashOut/cashInCashOutSelector.d.ts +1 -1
  27. package/lib/view/cashPosition/cashPositionSelector.d.ts +1 -1
  28. package/lib/view/companyHealthMetricView/companyHealthMetricViewSelector.js +12 -5
  29. package/lib/view/dashboard/dashboardEpic.d.ts +1 -2
  30. package/lib/view/dashboard/dashboardEpic.js +0 -11
  31. package/lib/view/dashboard/dashboardReducer.d.ts +2 -2
  32. package/lib/view/dashboard/dashboardSelector.d.ts +2 -4
  33. package/lib/view/dashboard/dashboardSelector.js +2 -7
  34. package/lib/view/financeStatement/financeStatementReducer.d.ts +1 -1
  35. package/lib/view/globalMerchantView/globalMerchantViewReducer.d.ts +2 -2
  36. package/lib/view/notificationView/notificationViewReducer.d.ts +10 -10
  37. package/lib/view/notificationView/notificationViewSelector.d.ts +4 -4
  38. package/lib/view/notificationView/notificationViewSelector.js +2 -1
  39. package/lib/view/notificationView/notificationViewState.d.ts +2 -2
  40. package/lib/view/referralView/referralSelector.d.ts +0 -5
  41. package/lib/view/referralView/referralSelector.js +1 -8
  42. package/lib/view/reimbursementCard/reimbursementCardSelector.d.ts +1 -1
  43. package/lib/view/tasksCard/tasksCardSelector.d.ts +1 -1
  44. package/lib/view/topEx/topExSelector.d.ts +1 -1
  45. package/lib/view/zeniAccountsPromoCard/zeniAccountsPromoCardReducer.js +3 -0
  46. package/lib/view/zeniAccountsPromoCard/zeniAccountsPromoCardSelector.d.ts +11 -8
  47. package/lib/view/zeniAccountsPromoCard/zeniAccountsPromoCardSelector.js +6 -2
  48. package/lib/view/zeniAccountsPromoCard/zeniAccountsPromoCardState.d.ts +2 -1
  49. package/package.json +2 -1
@@ -144,7 +144,6 @@ const removeDuplicatesFromCompaniesArray = (companies) => {
144
144
  });
145
145
  };
146
146
  const getCategoryValueForCompany = (key, company) => {
147
- var _a, _b, _c;
148
147
  const firstControllerId = (0, companyHelper_1.getFirstControllerIdFromControllers)(company.controllers);
149
148
  const customerSuccessManagerIds = (0, companyHelper_1.getFirstControllerId)(company.managegmentInfo.customerSuccessManagerUserIds);
150
149
  const runway = (0, exports.getRunwayInfinity)(company.companyHealthMetric.runway);
@@ -154,11 +153,17 @@ const getCategoryValueForCompany = (key, company) => {
154
153
  case 'customerSuccessManager':
155
154
  return customerSuccessManagerIds;
156
155
  case 'lastReportSent':
157
- return (_a = company.managegmentInfo.lastReportSentDate) !== null && _a !== void 0 ? _a : undefined;
156
+ return company.managegmentInfo.lastReportSentDate != null
157
+ ? company.managegmentInfo.lastReportSentDate
158
+ : undefined;
158
159
  case 'subscriptionStartDate':
159
- return (_b = company.companyHealthMetric.subscriptionStartDate) !== null && _b !== void 0 ? _b : undefined;
160
+ return company.companyHealthMetric.subscriptionStartDate != null
161
+ ? company.companyHealthMetric.subscriptionStartDate
162
+ : undefined;
160
163
  case 'subscriptionRenewalDate':
161
- return (_c = company.companyHealthMetric.subscriptionRenewalDate) !== null && _c !== void 0 ? _c : undefined;
164
+ return company.companyHealthMetric.subscriptionRenewalDate != null
165
+ ? company.companyHealthMetric.subscriptionRenewalDate
166
+ : undefined;
162
167
  case 'runway':
163
168
  return runway != null ? runway.toString() : undefined;
164
169
  case 'verticalProductServices':
@@ -346,6 +351,8 @@ const sortAndFilterCompanies = (sortKey, sortOrder, filterText, filters, compani
346
351
  switch (sortKey) {
347
352
  case 'productVerticals':
348
353
  return company.noOfProductVerticalsEnabled;
354
+ case 'issues':
355
+ return company.companyHealthMetric.issueCount;
349
356
  case 'churnProbability':
350
357
  return company.companyHealthMetric.churnProbabilityPercentage;
351
358
  case 'runway':
@@ -367,8 +374,8 @@ const sortAndFilterCompanies = (sortKey, sortOrder, filterText, filters, compani
367
374
  return (0, userSelector_1.getUserNameById)(userState, company.managegmentInfo.controllerUserIds[0]).toLowerCase();
368
375
  case 'customerSuccessManager':
369
376
  return (0, userSelector_1.getUserNameById)(userState, company.managegmentInfo.customerSuccessManagerUserIds[0]).toLowerCase();
370
- case 'companyName':
371
377
  default:
378
+ case 'companyName':
372
379
  return company.companyInfo.name;
373
380
  }
374
381
  }, sortOrderKey);
@@ -19,6 +19,5 @@ import { fetchReimbursementCard } from '../reimbursementCard/reimbursementCardRe
19
19
  import { fetchApAging } from '../apAgingView/apAgingReport/apAgingReducer';
20
20
  import { fetchArAging } from '../arAgingView/arAgingReport/arAgingReducer';
21
21
  import { fetchZeniAccountsPromoCard } from '../zeniAccountsPromoCard/zeniAccountsPromoCardReducer';
22
- import { fetchRewardsPlan } from '../referralView/referralReducer';
23
- export declare type ActionType = ReturnType<typeof fetchDashboard> | ReturnType<typeof fetchAllTenants> | ReturnType<typeof fetchCardBalance> | ReturnType<typeof fetchCashBalance> | ReturnType<typeof fetchOpEx> | ReturnType<typeof fetchRevenue> | ReturnType<typeof fetchNetBurnOrIncome> | ReturnType<typeof fetchNetBurnOrIncomeStoryCard> | ReturnType<typeof fetchTopEx> | ReturnType<typeof fetchCashPosition> | ReturnType<typeof fetchCashInCashOut> | ReturnType<typeof fetchInsightsCard> | ReturnType<typeof fetchCompanyPassportView> | ReturnType<typeof fetchTasksCard> | ReturnType<typeof fetchBillPayCard> | ReturnType<typeof fetchApAging> | ReturnType<typeof fetchArAging> | ReturnType<typeof fetchReimbursementCard> | ReturnType<typeof fetchZeniAccountsPromoCard> | ReturnType<typeof fetchRewardsPlan>;
22
+ export declare type ActionType = ReturnType<typeof fetchDashboard> | ReturnType<typeof fetchAllTenants> | ReturnType<typeof fetchCardBalance> | ReturnType<typeof fetchCashBalance> | ReturnType<typeof fetchOpEx> | ReturnType<typeof fetchRevenue> | ReturnType<typeof fetchNetBurnOrIncome> | ReturnType<typeof fetchNetBurnOrIncomeStoryCard> | ReturnType<typeof fetchTopEx> | ReturnType<typeof fetchCashPosition> | ReturnType<typeof fetchCashInCashOut> | ReturnType<typeof fetchInsightsCard> | ReturnType<typeof fetchCompanyPassportView> | ReturnType<typeof fetchTasksCard> | ReturnType<typeof fetchBillPayCard> | ReturnType<typeof fetchApAging> | ReturnType<typeof fetchArAging> | ReturnType<typeof fetchReimbursementCard> | ReturnType<typeof fetchZeniAccountsPromoCard>;
24
23
  export declare const fetchDashboardEpic: (actions$: ActionsObservable<ActionType>, state$: StateObservable<RootState>) => import("rxjs").Observable<ActionType>;
@@ -27,7 +27,6 @@ const userRoleType_1 = require("../../entity/userRole/userRoleType");
27
27
  const apAgingReducer_1 = require("../apAgingView/apAgingReport/apAgingReducer");
28
28
  const arAgingReducer_1 = require("../arAgingView/arAgingReport/arAgingReducer");
29
29
  const zeniAccountsPromoCardReducer_1 = require("../zeniAccountsPromoCard/zeniAccountsPromoCardReducer");
30
- const referralReducer_1 = require("../referralView/referralReducer");
31
30
  const fetchDashboardEpic = (actions$, state$) => actions$.pipe((0, operators_1.filter)(dashboardReducer_1.fetchDashboard.match), (0, operators_1.switchMap)((action) => {
32
31
  var _a, _b, _c, _d;
33
32
  const { userId, companyId, fetchFullReport, cacheOverride, excludeResources, } = action.payload;
@@ -70,9 +69,6 @@ const fetchDashboardEpic = (actions$, state$) => actions$.pipe((0, operators_1.f
70
69
  if (isReimbursementFeatureEnabled === true && isAdmin) {
71
70
  actions.push((0, reimbursementCardReducer_1.fetchReimbursementCard)());
72
71
  }
73
- if (excludeResources.includes('rewards_card') === false) {
74
- actions.push((0, referralReducer_1.fetchRewardsPlan)(true));
75
- }
76
72
  return (0, rxjs_1.from)(actions);
77
73
  }
78
74
  else {
@@ -163,13 +159,6 @@ const fetchDashboardEpic = (actions$, state$) => actions$.pipe((0, operators_1.f
163
159
  isAdmin) {
164
160
  fetchActions.push((0, reimbursementCardReducer_1.fetchReimbursementCard)());
165
161
  }
166
- if (state.referralViewState.rewardsPlanFetchState.fetchState !==
167
- 'In-Progress' &&
168
- state.referralViewState.rewardsPlanFetchState.fetchState !==
169
- 'Completed' &&
170
- excludeResources.includes('rewards_card') === false) {
171
- fetchActions.push((0, referralReducer_1.fetchRewardsPlan)(true));
172
- }
173
162
  return (0, rxjs_1.from)(fetchActions);
174
163
  }
175
164
  }));
@@ -1,11 +1,11 @@
1
1
  import { DashboardState } from './dashboardState';
2
2
  export declare const initialState: DashboardState;
3
- export declare const fetchDashboard: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[userId: string, companyId: string, fetchFullReport?: any, cacheOverride?: any, excludeResources?: ("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")[] | undefined], {
3
+ export declare const fetchDashboard: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[userId: string, companyId: string, fetchFullReport?: any, cacheOverride?: any, excludeResources?: ("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")[] | undefined], {
4
4
  userId: string;
5
5
  companyId: string;
6
6
  fetchFullReport: any;
7
7
  cacheOverride: any;
8
- excludeResources: ("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")[];
8
+ excludeResources: ("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")[];
9
9
  }, string, never, never>, clearDashboard: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>;
10
10
  declare const _default: import("@reduxjs/toolkit").Reducer<DashboardState, import("@reduxjs/toolkit").AnyAction>;
11
11
  export default _default;
@@ -8,7 +8,7 @@ import { NetBurnOrIncomeStoryCardReport } from '../netBurnOrIncomeStoryCard/netB
8
8
  import { CashPositionReport } from '../cashPosition/cashPositionSelectorTypes';
9
9
  import { CashInCashOutReport } from '../cashInCashOut/cashInCashOutSelectorTypes';
10
10
  import { TopExReport } from '../topEx/topExSelectorTypes';
11
- import { ReportID, SelectorReport, SelectorView } from '../../commonStateTypes/viewAndReport/viewAndReport';
11
+ import { ReportID, SelectorReport } from '../../commonStateTypes/viewAndReport/viewAndReport';
12
12
  import { Tenant } from '../../entity/tenant/tenantState';
13
13
  import { TasksCardReport } from '../tasksCard/tasksCardSelector';
14
14
  import { BillPayCardReport } from '../billPayCard/billPayCardSelector';
@@ -17,7 +17,6 @@ import { OpExReport } from '../opEx/opExSelectorTypes';
17
17
  import { ApAgingReport } from '../apAgingView/apAgingReport/apAgingSelector';
18
18
  import { ArAgingReport } from '../arAgingView/arAgingReport/arAgingSelector';
19
19
  import { ZeniAccountsPromoCardReport } from '../zeniAccountsPromoCard/zeniAccountsPromoCardSelector';
20
- import { RewardsPlanCardReport } from '../referralView/referralSelector';
21
20
  export interface DashboardReport extends SelectorReport {
22
21
  tenantsOrdered: TenantsOrdered;
23
22
  currentTenant?: Tenant;
@@ -33,10 +32,9 @@ export interface DashboardReport extends SelectorReport {
33
32
  reimbursementCard: ReimbursementCardReport;
34
33
  topEx: TopExReport;
35
34
  cashPosition: CashPositionReport;
36
- reportsInOrder: (SelectorReport | SelectorView)[];
35
+ reportsInOrder: SelectorReport[];
37
36
  apAgingReport: ApAgingReport;
38
37
  arAgingReport: ArAgingReport;
39
38
  zeniAccountsPromoCard: ZeniAccountsPromoCardReport;
40
- rewardsPlanCard: RewardsPlanCardReport;
41
39
  }
42
40
  export declare const getDashboard: (state: RootState, additionalExcludedReports: ReportID[]) => DashboardReport;
@@ -23,7 +23,6 @@ const userRoleType_1 = require("../../entity/userRole/userRoleType");
23
23
  const apAgingSelector_1 = require("../apAgingView/apAgingReport/apAgingSelector");
24
24
  const arAgingSelector_1 = require("../arAgingView/arAgingReport/arAgingSelector");
25
25
  const zeniAccountsPromoCardSelector_1 = require("../zeniAccountsPromoCard/zeniAccountsPromoCardSelector");
26
- const referralSelector_1 = require("../referralView/referralSelector");
27
26
  const getNetBurnOrIncomeForLast4Periods = (state) => {
28
27
  return (0, netBurnOrIncomeSelector_1.getNetBurnOrIncomeReport)(state.accountState, state.accountGroupState, state.sectionAccountsViewState, state.netBurnOrIncomeState, state.forecastState, state.forecastListState, (0, coaBalancesFilter_1.newBalancesFilter)(state.netBurnOrIncomeState.netBurnOrIncome.firstMonthOfFY, state.netBurnOrIncomeState.uiState.timeframe, 4, undefined, 'ascending_date', state.netBurnOrIncomeState.uiState.selectedAdditionalBalances));
29
28
  };
@@ -40,7 +39,7 @@ const tenantSelector = (0, toolkit_1.createSelector)(tenantSelector_1.getTenants
40
39
  tenantsOrdered,
41
40
  currentTenant,
42
41
  }));
43
- exports.getDashboard = (0, toolkit_1.createSelector)(tenantSelector, cardBalanceSelector_1.getCardBalance, cashBalanceSelector_1.getCashBalance, getOperatingExpensesForLast5Periods, getRevenueForLast4Periods, topExSelector_1.getTop6Expenses, getNetBurnOrIncomeForLast4Periods, getNetBurnOrIncomeStoryCard, getCashPositionLast5Periods, getCashInCashOutLast4Periods, insightsCardSelector_1.getInsights, companyPassportViewSelector_1.getCompanyPassportView, tasksCardSelector_1.getTasksCardReport, billPayCardSelector_1.getBillPayCardReport, reimbursementCardSelector_1.getReimbursementCardReport, apAgingSelector, arAgingSelector, zeniAccountsPromoCardSelector_1.getZeniAccountsPromoCard, referralSelector_1.getRewardsPlanCard, (state) => state.tenantState, (_state, additionalExcludedReports) => additionalExcludedReports, (tenants, cardBalance, cashBalance, opEx, revenue, topEx, netBurnOrIncome, netBurnOrIncomeStoryCard, cashPosition, cashInCashOut, insightsView, companyPassportView, tasksCard, billPayCard, reimbursementCard, apAgingReport, arAgingReport, zeniAccountsPromoCard, rewardsPlanCard, tenantState, additionalExcludedReports) => {
42
+ exports.getDashboard = (0, toolkit_1.createSelector)(tenantSelector, cardBalanceSelector_1.getCardBalance, cashBalanceSelector_1.getCashBalance, getOperatingExpensesForLast5Periods, getRevenueForLast4Periods, topExSelector_1.getTop6Expenses, getNetBurnOrIncomeForLast4Periods, getNetBurnOrIncomeStoryCard, getCashPositionLast5Periods, getCashInCashOutLast4Periods, insightsCardSelector_1.getInsights, companyPassportViewSelector_1.getCompanyPassportView, tasksCardSelector_1.getTasksCardReport, billPayCardSelector_1.getBillPayCardReport, reimbursementCardSelector_1.getReimbursementCardReport, apAgingSelector, arAgingSelector, zeniAccountsPromoCardSelector_1.getZeniAccountsPromoCard, (state) => state.tenantState, (_state, additionalExcludedReports) => additionalExcludedReports, (tenants, cardBalance, cashBalance, opEx, revenue, topEx, netBurnOrIncome, netBurnOrIncomeStoryCard, cashPosition, cashInCashOut, insightsView, companyPassportView, tasksCard, billPayCard, reimbursementCard, apAgingReport, arAgingReport, zeniAccountsPromoCard, tenantState, additionalExcludedReports) => {
44
43
  var _a, _b, _c, _d, _e, _f, _g, _h, _j;
45
44
  const isReimbursementFeatureEnabled = (_a = tenants.currentTenant.company) === null || _a === void 0 ? void 0 : _a.featuresActivationInfo.isReimbursementFeatureEnabled;
46
45
  const isAdmin = Boolean((_b = tenants.currentTenant) === null || _b === void 0 ? void 0 : _b.userRole) === true
@@ -84,9 +83,6 @@ exports.getDashboard = (0, toolkit_1.createSelector)(tenantSelector, cardBalance
84
83
  if (additionalExcludedReports.includes('zeni_accounts_promo_card') === false) {
85
84
  reportsInOrder.push(zeniAccountsPromoCard);
86
85
  }
87
- if (additionalExcludedReports.includes('rewards_card') === false) {
88
- reportsInOrder.push(rewardsPlanCard);
89
- }
90
86
  const fetchState = (0, reduceFetchState_1.reduceFetchState)([...reportsInOrder, tenantState]);
91
87
  const firstMonthOfFY = opEx.firstMonthOfFY;
92
88
  return Object.assign(Object.assign({ reportId: 'dashboard', reportTitle: '', version: '0', fetchState: fetchState.fetchState, error: fetchState.error, firstMonthOfFY }, tenants), { cardBalance,
@@ -105,6 +101,5 @@ exports.getDashboard = (0, toolkit_1.createSelector)(tenantSelector, cardBalance
105
101
  reportsInOrder,
106
102
  apAgingReport,
107
103
  arAgingReport,
108
- zeniAccountsPromoCard,
109
- rewardsPlanCard });
104
+ zeniAccountsPromoCard });
110
105
  });
@@ -16,7 +16,7 @@ export declare const fetchFinanceStatement: import("@reduxjs/toolkit").ActionCre
16
16
  thisPeriod: TimeframeTick;
17
17
  coaBalances: COABalance[];
18
18
  maxNumOfPeriodsToHighlight: number;
19
- }, string>, updateCOABalancesRange: import("@reduxjs/toolkit").ActionCreatorWithPayload<COABalancesRange, string>, updateSelectedReportId: import("@reduxjs/toolkit").ActionCreatorWithPayload<"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", string>, updateFinanceStatementAdditionalBalancesSelection: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
19
+ }, string>, updateCOABalancesRange: import("@reduxjs/toolkit").ActionCreatorWithPayload<COABalancesRange, string>, updateSelectedReportId: import("@reduxjs/toolkit").ActionCreatorWithPayload<"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", string>, updateFinanceStatementAdditionalBalancesSelection: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
20
20
  firstMonthOfFY: Month;
21
21
  isCompareModeOn: boolean;
22
22
  additionalBalances: COABalanceType[];
@@ -4,9 +4,9 @@ import { ID } from '../../commonStateTypes/common';
4
4
  import { ZeniAPIStatus } from '../../responsePayload';
5
5
  import { VendorReviewViewAllRecommendationsPayload } from '../vendorReviewView/common/payload/commonTypes';
6
6
  export declare const initialState: GlobalMerchantViewState;
7
- export declare const createGlobalMerchant: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[merchantId?: string | undefined, context?: "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" | undefined], {
7
+ export declare const createGlobalMerchant: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[merchantId?: string | undefined, context?: "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" | undefined], {
8
8
  merchantId: string | undefined;
9
- context: "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" | undefined;
9
+ context: "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" | undefined;
10
10
  }, string, never, never>, createGlobalMerchantSuccess: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
11
11
  merchantId: ID;
12
12
  }, string>, createGlobalMerchantFailure: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
@@ -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?: ("read" | "unread")[] | undefined, isNewNotificationFetch?: boolean | undefined], {
7
+ export declare const fetchNotificationView: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[notificationGroup: "task_manager", mode?: "dashboard" | "email" | undefined, status?: ("unread" | "read")[] | undefined, isNewNotificationFetch?: boolean | undefined], {
8
8
  notificationGroup: "task_manager";
9
9
  mode: "dashboard" | "email";
10
- status: ("read" | "unread")[];
10
+ status: ("unread" | "read")[];
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: "read" | "unread", notificationIds?: string[] | undefined, showSnackBarOnSuccess?: any], {
29
+ }, string>, updateNotificationViewNotificationStatus: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[notificationGroup: "task_manager", status: "unread" | "read", notificationIds?: string[] | undefined, showSnackBarOnSuccess?: any], {
30
30
  notificationGroup: "task_manager";
31
- status: "read" | "unread";
31
+ status: "unread" | "read";
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: "read" | "unread"], {
40
+ }, string>, updateNotificationViewAllNotificationsStatus: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[notificationGroup: "task_manager", status: "unread" | "read"], {
41
41
  notificationGroup: "task_manager";
42
- status: "read" | "unread";
42
+ status: "unread" | "read";
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" | "read" | "unread" | "mentions" | undefined], {
51
+ }, string, never, never>, updateNotificationViewCurrentTabAndSubTab: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[newTab: "tasks" | "comments", newSubTab?: "all" | "unread" | "read" | "mentions" | undefined], {
52
52
  newTab: "tasks" | "comments";
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";
53
+ newSubTab: "all" | "unread" | "read" | "mentions" | undefined;
54
+ }, string, never, never>, updateNotificationViewSubTab: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[newSubTab: "all" | "unread" | "read" | "mentions"], {
55
+ newSubTab: "all" | "unread" | "read" | "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';
1
2
  import { RootState } from '../../reducer';
2
3
  import { NotificationSubTabType, NotificationTabType, NotificationTabState } from './notificationViewState';
3
4
  import { NotificationWithAuthors } from '../../entity/notification/types/notificationSelectorTypes';
4
5
  import { View } from '../../commonStateTypes/viewAndReport/viewAndReport';
5
6
  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: CustomNotificationData[];
17
+ allExternalNotifications: CoreNotificationData[];
18
18
  notificationsForCurrentTabAndSubTab: NotificationWithAuthors[];
19
- externalNotificationsForCurrentTabAndSubTab: CustomNotificationData[];
19
+ externalNotificationsForCurrentTabAndSubTab: CoreNotificationData[];
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: CustomNotificationData[], currentSubTab: NotificationSubTabType) => CustomNotificationData[];
28
+ export declare const getExternalNotificationsForSelectedSubTab: (externalNotifications: CoreNotificationData[], currentSubTab: NotificationSubTabType) => CoreNotificationData[];
29
29
  export {};
@@ -71,6 +71,7 @@ const getNotificationsForSelectedSubTab = (notifications, currentSubTab) => {
71
71
  exports.getNotificationsForSelectedSubTab = getNotificationsForSelectedSubTab;
72
72
  const getExternalNotificationsForSelectedSubTab = (externalNotifications, currentSubTab) => {
73
73
  return externalNotifications.filter((externalNotification) => {
74
+ var _a;
74
75
  switch (currentSubTab) {
75
76
  case 'all':
76
77
  return true;
@@ -79,7 +80,7 @@ const getExternalNotificationsForSelectedSubTab = (externalNotifications, curren
79
80
  case 'unread':
80
81
  return externalNotification.readStatus === 'unread';
81
82
  case 'mentions':
82
- return externalNotification.notification.includes('mention');
83
+ return (_a = externalNotification.headerTranslation) === null || _a === void 0 ? void 0 : _a.key.includes('mention');
83
84
  default:
84
85
  return false;
85
86
  }
@@ -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" | "read" | "unread" | "mentions";
9
- export declare const toNotificationSubTabTypeStrict: (v: string) => "all" | "read" | "unread" | "mentions" | undefined;
8
+ export declare const toNotificationSubTabType: (v: string) => "all" | "unread" | "read" | "mentions";
9
+ export declare const toNotificationSubTabTypeStrict: (v: string) => "all" | "unread" | "read" | "mentions" | undefined;
10
10
  export declare type NotificationSubTabType = ReturnType<typeof toNotificationSubTabType>;
11
11
  export interface NotificationViewUIState {
12
12
  pageToken: PageToken;
@@ -11,7 +11,6 @@ export interface ReferralListSelectorView extends SelectorView {
11
11
  referralLink: ZeniUrl;
12
12
  invitations: ReferralInvitation[];
13
13
  uiState: ReferralViewUIState;
14
- amount: Amount;
15
14
  }
16
15
  export interface InviteFormSelectorView extends SelectorView {
17
16
  localData: InviteCompanyLocalData[];
@@ -19,9 +18,5 @@ export interface InviteFormSelectorView extends SelectorView {
19
18
  amount: Amount;
20
19
  referralUniqueLink: ZeniUrl;
21
20
  }
22
- export interface RewardsPlanCardReport extends SelectorView {
23
- rewardsPlanAmount: Amount;
24
- }
25
21
  export declare const getReferralListView: (state: RootState) => ReferralListSelectorView;
26
22
  export declare const getInviteFormView: (state: RootState) => InviteFormSelectorView;
27
- export declare const getRewardsPlanCard: (state: RootState) => RewardsPlanCardReport;
@@ -3,8 +3,7 @@ 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.getRewardsPlanCard = exports.getInviteFormView = exports.getReferralListView = void 0;
7
- const toolkit_1 = require("@reduxjs/toolkit");
6
+ exports.getInviteFormView = exports.getReferralListView = void 0;
8
7
  const orderBy_1 = __importDefault(require("lodash/orderBy"));
9
8
  const getReferralListView = (state) => {
10
9
  const { referralViewState } = state;
@@ -86,9 +85,3 @@ const getInviteFormView = (state) => {
86
85
  };
87
86
  };
88
87
  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" | "rewards_card";
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";
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" | "rewards_card";
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";
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" | "rewards_card";
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";
9
9
  reportTitle: string;
10
10
  version: string | number | undefined;
11
11
  status: import("../..").Status | undefined;
@@ -12,6 +12,9 @@ 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: '',
15
18
  hasValidState() {
16
19
  return this.fetchState == 'Completed';
17
20
  },
@@ -1,12 +1,15 @@
1
1
  import { RootState } from '../../reducer';
2
- import { ID } from '../../commonStateTypes/common';
3
- import { SelectorView } from '../../commonStateTypes/viewAndReport/viewAndReport';
4
- export interface ZeniAccountsPromoCardReport extends SelectorView {
2
+ export declare const getZeniAccountsPromoCard: (state: RootState) => {
5
3
  isShowDepositAccountsPromo: boolean;
6
4
  maxAnnualPercentageYield: number;
7
- maxPossibleInterest?: number;
8
- maxCashBalanceAvailable?: number;
5
+ maxPossibleInterest: number | undefined;
6
+ maxCashBalanceAvailable: number | undefined;
9
7
  maxInsuredAmount: number;
10
- depositAccountId?: ID;
11
- }
12
- export declare const getZeniAccountsPromoCard: (state: RootState) => ZeniAccountsPromoCardReport;
8
+ depositAccountId: string | undefined;
9
+ 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";
10
+ reportTitle: string;
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>;
@@ -2,14 +2,18 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getZeniAccountsPromoCard = void 0;
4
4
  const toolkit_1 = require("@reduxjs/toolkit");
5
- exports.getZeniAccountsPromoCard = (0, toolkit_1.createSelector)((state) => state.zeniAccountsPromoCardState, (zeniAccountsPromoCardState) => ({
5
+ const getZeniAccountsPromoCardSelector = (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: 'zeni_accounts_promo_card',
12
+ reportId: zeniAccountsPromoCardState.reportId,
13
+ reportTitle: 'Business Banking',
14
+ firstMonthOfFY: zeniAccountsPromoCardState.firstMonthOfFY,
13
15
  fetchState: zeniAccountsPromoCardState.fetchState,
14
16
  error: zeniAccountsPromoCardState.error,
15
17
  }));
18
+ const getZeniAccountsPromoCard = (state) => getZeniAccountsPromoCardSelector(state);
19
+ exports.getZeniAccountsPromoCard = getZeniAccountsPromoCard;
@@ -1,5 +1,6 @@
1
1
  import { ID, FetchedState } from '../../commonStateTypes/common';
2
- export interface ZeniAccountsPromoCardState extends FetchedState {
2
+ import { Report } from '../../commonStateTypes/viewAndReport/viewAndReport';
3
+ export interface ZeniAccountsPromoCardState extends FetchedState, Report {
3
4
  isShowDepositAccountsPromo: boolean;
4
5
  maxAnnualPercentageYield: number;
5
6
  maxPossibleInterest?: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zeniai/client-epic-state",
3
- "version": "4.10.76",
3
+ "version": "4.10.77",
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,6 +25,7 @@
25
25
  },
26
26
  "homepage": "https://github.com/zeni-ai/client-epic-state#readme",
27
27
  "devDependencies": {
28
+ "@cord-sdk/types": "^1.45.1",
28
29
  "@types/chai": "^4.2.11",
29
30
  "@types/jest": "^29.4.0",
30
31
  "@types/lodash": "^4.14.178",