@zeniai/client-epic-state 4.9.44 → 4.9.46

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/index.d.ts CHANGED
@@ -649,5 +649,5 @@ import { fetchZeniAccountsPromoCard } from './view/zeniAccountsPromoCard/zeniAcc
649
649
  export { ZeniAccountsPromoCardState, getZeniAccountsPromoCard, ZeniAccountsPromoCardReport, fetchZeniAccountsPromoCard, };
650
650
  import { getReferralListView, ReferralListSelectorView, getInviteFormView } from './view/referralView/referralSelector';
651
651
  import { ReferralViewState, InviteCompanyLocalData, ReferralInvitation, ReferralListViewSortKey, ReferralViewUIState, StatusTypes, AmountStatusTypes, toReferralListViewSortKeyType, ReferralStatus, ReferralAmountStatus } from './view/referralView/referralState';
652
- import { fetchReferrals, sendReferralInvite, clearReferrals, saveReferralFormDataInLocalStore, resendReferralInvite, updateReferralListSortUiState, fetchRewardsPlan, closeReferralInviteConfirmationPopup } from './view/referralView/referralReducer';
653
- export { getReferralListView, getInviteFormView, ReferralListSelectorView, ReferralViewState, InviteCompanyLocalData, ReferralInvitation, ReferralListViewSortKey, ReferralViewUIState, toReferralListViewSortKeyType, ReferralStatus, ReferralAmountStatus, StatusTypes, AmountStatusTypes, fetchReferrals, sendReferralInvite, closeReferralInviteConfirmationPopup, clearReferrals, saveReferralFormDataInLocalStore, updateReferralListSortUiState, resendReferralInvite, fetchRewardsPlan, };
652
+ import { fetchReferrals, sendReferralInvite, clearReferrals, saveReferralFormDataInLocalStore, resendReferralInvite, updateReferralListSortUiState, fetchRewardsPlan } from './view/referralView/referralReducer';
653
+ export { getReferralListView, getInviteFormView, ReferralListSelectorView, ReferralViewState, InviteCompanyLocalData, ReferralInvitation, ReferralListViewSortKey, ReferralViewUIState, toReferralListViewSortKeyType, ReferralStatus, ReferralAmountStatus, StatusTypes, AmountStatusTypes, fetchReferrals, sendReferralInvite, clearReferrals, saveReferralFormDataInLocalStore, updateReferralListSortUiState, resendReferralInvite, fetchRewardsPlan, };
package/lib/index.js CHANGED
@@ -46,7 +46,7 @@ exports.getMagicLinkCurrentAddressState = exports.getMagicLinkBankAccountView =
46
46
  exports.resetIssueChargeCardForm = exports.updateChargeCardLocalStore = exports.issueChargeCard = exports.acceptChargeCardTerms = exports.fetchChargeCardSetupView = exports.getChargeCardSetupViewDetails = exports.toCreditLimitFrequencyCodeType = exports.toChargeCardSortKeyType = exports.fetchChargeCardTransactionList = exports.getChargeCardDetailView = exports.fetchChargeCardDetailPage = exports.getChargeCardListView = exports.fetchChargeCardListPage = exports.getChargeCardBusinessVerificationDetails = exports.companyHealthMetricDropDownOptions = exports.hasCompanyHealthMetricFormFieldChanged = exports.getCompanyHealthMetricView = exports.isCompanyRunwayInfinite = exports.updateCompanyHealthViewUIState = exports.updateCompanyHealthMetricViewSuccessStatus = exports.updateCompanyHealthMetricViewErrorStatus = exports.updateCompanyHealthMetricLocalStore = exports.saveCompanyHealthMetricById = exports.removeSelectedCompanyId = exports.initializeCompanyHealthMetricViewLocalData = exports.fetchCompanyHealthMetricView = exports.clearCompanyHealthMetricView = exports.updateCompanyHealth = exports.updateCompaniesHealth = exports.getUserRoleConfig = exports.fetchUserRoleConfig = exports.clearInternationalWire = exports.deletePaymentInstrument = exports.createPaymentInstrumentUpdateStatus = exports.createPaymentInstrument = exports.fetchInternationalWireDynamicForm = exports.initializeDynamicForm = exports.updateInternationalWireLocalStoreData = exports.initializeInternationalWireLocalData = exports.getInternationalWireView = exports.fetchWiseRedirectStatus = exports.getWiseRedirect = exports.saveMagicLinkAddressInLocalStore = exports.fetchMagicLinkBankNameBySwift = exports.fetchMagicLinkBankNameByRouting = exports.updateMagicLinkInternationalBankAccountLocalStoreData = exports.updateMagicLinkBankAccountLocalStoreData = exports.saveBankAccount = exports.fetchBillAttachment = exports.fetchMagicLinkTenant = void 0;
47
47
  exports.saveVendorFirstReviewView = exports.clearRecentlySavedErroredVendorData = exports.updateVendorFirstReviewViewPageToken = exports.resetVendorFirstReviewLocalData = exports.updateVendorFirstReviewViewScrollYOffset = exports.fetchVendorFirstReviewView = exports.getVendorFirstReviewView = exports.getGlobalMerchantAutoCompleteResults = exports.toVendorFirstReviewViewColumnKeyType = exports.getFetchStateForScheduleListByType = exports.updatedJELinkWithRecommendedLocalData = exports.resetJELinkInLocalData = exports.updateAmountsInScheduleDetail = exports.updatedJELinkInLocalData = exports.getThirdPartyIDFromQBOURL = exports.getQBOUrlForLink = exports.updatedSelectedJELinkRowIndex = exports.updateScheduleListDownloadState = exports.updateScheduleDetailsLocalData = exports.createNewSchedules = exports.deleteScheduleDetail = exports.saveScheduleDetails = exports.fetchScheduleDetailsPage = exports.getScheduleDetailsView = exports.fetchScheduleDetails = exports.updateSelectedJEScheduleKey = exports.updateScheduleListSortState = exports.updateScheduleListScrollState = exports.updateScheduleListSearchText = exports.updateScheduleListSubTab = exports.toScheduleSubTabType = exports.toScheduleListTabsFileTypeStrict = exports.toScheduleTypesTypeStrict = exports.toScheduleTypesType = exports.getFetchStateForScheduleAccountList = exports.updateScheduleListLocalData = exports.fetchSchedulesAccount = exports.fetchDownloadSchedules = exports.fetchScheduleList = exports.getScheduleListReport = exports.ALL_SCHEDULES_TYPES = exports.updateApAgingDetailUIState = exports.getApAgingDetailForVendor = exports.fetchApAgingDetail = exports.updateApAgingUIState = exports.getApAgingReport = exports.fetchApAging = exports.updateChargeCardDetail = exports.updateChargeCardListUIState = exports.updateChargeCardListSearchText = void 0;
48
48
  exports.fetchZeniAccountsPromoCard = exports.getZeniAccountsPromoCard = exports.getAuthenticationView = exports.fetchCollaborationAuthToken = exports.clearAuditReportGroupViewByCompanyId = exports.fetchAuditReportGroupView = exports.fetchAuditRuleGroupView = exports.getAuditRuleGroupViewSelectorView = exports.getAuditReportGroupViewSelectorView = exports.discardTaskUpdatesInLocalStore = exports.deleteTask = exports.TASK_LIST_FILTER_CATEGORIES = exports.updateTaskFilters = exports.allTaskPriority = exports.allTaskStatus = exports.allTaskTags = exports.updateTaskListUIState = exports.updateTaskListSearchText = exports.archiveTask = exports.saveTaskDetail = exports.saveTaskUpdatesToLocalStore = exports.fetchTaskDetailPage = exports.getTaskDetail = exports.fetchTaskListPage = exports.getAllTasks = exports.toRecurringBillFrequencyStrict = exports.toRecurringBillFrequency = exports.getArAgingDetailForCustomer = exports.getArAgingReport = exports.updateArAgingDetailUIState = exports.fetchArAgingDetail = exports.updateArAgingUIState = exports.fetchArAging = exports.toVendorGlobalReviewColumnSortKeyType = exports.getTenantMerchantByMerchantId = exports.getVendorGlobalReviewView = exports.updateVendorGlobalReviewViewUIState = exports.updateSelectedGlobalMerchant = exports.fetchVendorGlobalReviewView = exports.rejectVendorGlobalReview = exports.approveVendorGlobalReview = exports.getGlobalMerchantView = exports.clearGlobalMerchantView = exports.updateCreateGlobalMerchantLocalData = exports.createGlobalMerchant = exports.fetchGlobalMerchantRecommendation = exports.clearGlobalMerchantAutoCompleteResults = exports.fetchGlobalMerchantAutoCompleteView = exports.updateVendorFirstReviewSortUiState = exports.updateVendorFirstReviewViewLocalData = void 0;
49
- exports.fetchRewardsPlan = exports.resendReferralInvite = exports.updateReferralListSortUiState = exports.saveReferralFormDataInLocalStore = exports.clearReferrals = exports.closeReferralInviteConfirmationPopup = exports.sendReferralInvite = exports.fetchReferrals = exports.AmountStatusTypes = exports.StatusTypes = exports.toReferralListViewSortKeyType = exports.getInviteFormView = exports.getReferralListView = void 0;
49
+ exports.fetchRewardsPlan = exports.resendReferralInvite = exports.updateReferralListSortUiState = exports.saveReferralFormDataInLocalStore = exports.clearReferrals = exports.sendReferralInvite = exports.fetchReferrals = exports.AmountStatusTypes = exports.StatusTypes = exports.toReferralListViewSortKeyType = exports.getInviteFormView = exports.getReferralListView = void 0;
50
50
  const zeniDayJS_1 = require("./zeniDayJS");
51
51
  Object.defineProperty(exports, "Dayjs", { enumerable: true, get: function () { return zeniDayJS_1.Dayjs; } });
52
52
  Object.defineProperty(exports, "updateZeniDateLocaleID", { enumerable: true, get: function () { return zeniDayJS_1.updateZeniDateLocaleID; } });
@@ -1362,4 +1362,3 @@ Object.defineProperty(exports, "saveReferralFormDataInLocalStore", { enumerable:
1362
1362
  Object.defineProperty(exports, "resendReferralInvite", { enumerable: true, get: function () { return referralReducer_1.resendReferralInvite; } });
1363
1363
  Object.defineProperty(exports, "updateReferralListSortUiState", { enumerable: true, get: function () { return referralReducer_1.updateReferralListSortUiState; } });
1364
1364
  Object.defineProperty(exports, "fetchRewardsPlan", { enumerable: true, get: function () { return referralReducer_1.fetchRewardsPlan; } });
1365
- Object.defineProperty(exports, "closeReferralInviteConfirmationPopup", { enumerable: true, get: function () { return referralReducer_1.closeReferralInviteConfirmationPopup; } });
@@ -17,7 +17,6 @@ export interface FetchRewardsPayload {
17
17
  referees: InviteePayload[];
18
18
  }
19
19
  export interface FetchRewardsPlanPayload {
20
- company_legal_name: string | null;
21
20
  create_time: string | null;
22
21
  is_deleted: boolean | null;
23
22
  is_primary: boolean | null;
@@ -11,7 +11,7 @@ export declare const fetchReferrals: import("@reduxjs/toolkit").ActionCreatorWit
11
11
  scrollYOffset?: number | undefined;
12
12
  }, string>, updateReferralsFailure: import("@reduxjs/toolkit").ActionCreatorWithPayload<ZeniAPIStatus<Record<string, unknown>>, string>, saveReferralFormDataInLocalStore: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
13
13
  localData: InviteCompanyLocalData[];
14
- }, string>, clearReferralFormDataInLocalStore: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, sendReferralInvite: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, sendReferralInviteSuccess: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, closeReferralInviteConfirmationPopup: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, sendReferralInviteFailure: import("@reduxjs/toolkit").ActionCreatorWithPayload<ZeniAPIStatus<Record<string, unknown>>, string>, resendReferralInvite: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[emailId: string], {
14
+ }, string>, clearReferralFormDataInLocalStore: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, sendReferralInvite: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, sendReferralInviteSuccess: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, sendReferralInviteFailure: import("@reduxjs/toolkit").ActionCreatorWithPayload<ZeniAPIStatus<Record<string, unknown>>, string>, resendReferralInvite: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[emailId: string], {
15
15
  emailId: string;
16
16
  }, string, never, never>, resendReferralInviteSuccess: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
17
17
  emailId: string;
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  var _a;
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.updateRewardsPlanFailure = exports.updateRewardsPlan = exports.fetchRewardsPlan = exports.clearReferrals = exports.resendReferralInviteSuccess = exports.resendReferralInvite = exports.sendReferralInviteFailure = exports.closeReferralInviteConfirmationPopup = exports.sendReferralInviteSuccess = exports.sendReferralInvite = exports.clearReferralFormDataInLocalStore = exports.saveReferralFormDataInLocalStore = exports.updateReferralsFailure = exports.updateReferralListSortUiState = exports.updateReferrals = exports.fetchReferrals = exports.initialState = void 0;
4
+ exports.updateRewardsPlanFailure = exports.updateRewardsPlan = exports.fetchRewardsPlan = exports.clearReferrals = exports.resendReferralInviteSuccess = exports.resendReferralInvite = exports.sendReferralInviteFailure = exports.sendReferralInviteSuccess = exports.sendReferralInvite = exports.clearReferralFormDataInLocalStore = exports.saveReferralFormDataInLocalStore = exports.updateReferralsFailure = exports.updateReferralListSortUiState = exports.updateReferrals = exports.fetchReferrals = exports.initialState = void 0;
5
5
  const toolkit_1 = require("@reduxjs/toolkit");
6
6
  const referralPayload_1 = require("./referralPayload");
7
7
  const zeniDayJS_1 = require("../../zeniDayJS");
@@ -51,9 +51,7 @@ exports.initialState = {
51
51
  },
52
52
  referRewardPlanId: 'dummy',
53
53
  referalUniqueLink: (0, zeniUrl_1.toZeniUrl)(''),
54
- companyLegalName: '',
55
54
  },
56
- showConfirmationPopup: false,
57
55
  };
58
56
  const referral = (0, toolkit_1.createSlice)({
59
57
  name: 'referral',
@@ -101,14 +99,11 @@ const referral = (0, toolkit_1.createSlice)({
101
99
  sendReferralInvite(draft) {
102
100
  draft.sendInviteState.fetchState = 'In-Progress';
103
101
  draft.sendInviteState.error = undefined;
104
- draft.showConfirmationPopup = true;
105
102
  },
106
103
  sendReferralInviteSuccess(draft) {
107
104
  draft.sendInviteState.fetchState = 'Completed';
108
105
  draft.sendInviteState.error = undefined;
109
- },
110
- closeReferralInviteConfirmationPopup(draft) {
111
- draft.showConfirmationPopup = exports.initialState.showConfirmationPopup;
106
+ draft.fetchState = 'Not-Started';
112
107
  },
113
108
  sendReferralInviteFailure(draft, action) {
114
109
  draft.sendInviteState.fetchState = 'Error';
@@ -151,14 +146,11 @@ const referral = (0, toolkit_1.createSlice)({
151
146
  },
152
147
  },
153
148
  updateRewardsPlan(draft, action) {
154
- var _a;
155
149
  draft.rewardsPlanFetchState.fetchState = 'Completed';
156
150
  draft.rewardsPlanFetchState.error = undefined;
157
151
  draft.rewardsPlan.amount = (0, amount_1.toAmount)(action.payload.referral_plan_amount.amount, action.payload.referral_plan_amount.currency_code, action.payload.referral_plan_amount.currency_symbol);
158
152
  draft.rewardsPlan.referRewardPlanId = action.payload.refer_reward_plan_id;
159
153
  draft.rewardsPlan.referalUniqueLink = (0, zeniUrl_1.toZeniUrl)(action.payload.static_referal_link);
160
- draft.rewardsPlan.companyLegalName =
161
- (_a = action.payload.company_legal_name) !== null && _a !== void 0 ? _a : '';
162
154
  },
163
155
  updateRewardsPlanFailure(draft, action) {
164
156
  draft.rewardsPlanFetchState.fetchState = 'Error';
@@ -169,5 +161,5 @@ const referral = (0, toolkit_1.createSlice)({
169
161
  },
170
162
  },
171
163
  });
172
- _a = referral.actions, exports.fetchReferrals = _a.fetchReferrals, exports.updateReferrals = _a.updateReferrals, exports.updateReferralListSortUiState = _a.updateReferralListSortUiState, exports.updateReferralsFailure = _a.updateReferralsFailure, exports.saveReferralFormDataInLocalStore = _a.saveReferralFormDataInLocalStore, exports.clearReferralFormDataInLocalStore = _a.clearReferralFormDataInLocalStore, exports.sendReferralInvite = _a.sendReferralInvite, exports.sendReferralInviteSuccess = _a.sendReferralInviteSuccess, exports.closeReferralInviteConfirmationPopup = _a.closeReferralInviteConfirmationPopup, exports.sendReferralInviteFailure = _a.sendReferralInviteFailure, exports.resendReferralInvite = _a.resendReferralInvite, exports.resendReferralInviteSuccess = _a.resendReferralInviteSuccess, exports.clearReferrals = _a.clearReferrals, exports.fetchRewardsPlan = _a.fetchRewardsPlan, exports.updateRewardsPlan = _a.updateRewardsPlan, exports.updateRewardsPlanFailure = _a.updateRewardsPlanFailure;
164
+ _a = referral.actions, exports.fetchReferrals = _a.fetchReferrals, exports.updateReferrals = _a.updateReferrals, exports.updateReferralListSortUiState = _a.updateReferralListSortUiState, exports.updateReferralsFailure = _a.updateReferralsFailure, exports.saveReferralFormDataInLocalStore = _a.saveReferralFormDataInLocalStore, exports.clearReferralFormDataInLocalStore = _a.clearReferralFormDataInLocalStore, exports.sendReferralInvite = _a.sendReferralInvite, exports.sendReferralInviteSuccess = _a.sendReferralInviteSuccess, exports.sendReferralInviteFailure = _a.sendReferralInviteFailure, exports.resendReferralInvite = _a.resendReferralInvite, exports.resendReferralInviteSuccess = _a.resendReferralInviteSuccess, exports.clearReferrals = _a.clearReferrals, exports.fetchRewardsPlan = _a.fetchRewardsPlan, exports.updateRewardsPlan = _a.updateRewardsPlan, exports.updateRewardsPlanFailure = _a.updateRewardsPlanFailure;
173
165
  exports.default = referral.reducer;
@@ -11,15 +11,12 @@ export interface ReferralListSelectorView extends SelectorView {
11
11
  referralLink: ZeniUrl;
12
12
  invitations: ReferralInvitation[];
13
13
  uiState: ReferralViewUIState;
14
- showConfirmationPopup: boolean;
15
14
  }
16
15
  export interface InviteFormSelectorView extends SelectorView {
17
16
  localData: InviteCompanyLocalData[];
18
17
  saveStatus: FetchStateAndError;
19
18
  amount: Amount;
20
19
  referalUniqueLink: ZeniUrl;
21
- showConfirmationPopup: boolean;
22
- companyLegalName: string;
23
20
  }
24
21
  export declare const getReferralListView: (state: RootState) => ReferralListSelectorView;
25
22
  export declare const getInviteFormView: (state: RootState) => InviteFormSelectorView;
@@ -70,7 +70,6 @@ const getReferralListView = (state) => {
70
70
  fetchState,
71
71
  error,
72
72
  amount: referralViewState.rewardsPlan.amount,
73
- showConfirmationPopup: referralViewState.showConfirmationPopup,
74
73
  };
75
74
  };
76
75
  exports.getReferralListView = getReferralListView;
@@ -81,10 +80,8 @@ const getInviteFormView = (state) => {
81
80
  saveStatus: referralViewState.sendInviteState,
82
81
  amount: referralViewState.rewardsPlan.amount,
83
82
  referalUniqueLink: referralViewState.rewardsPlan.referalUniqueLink,
84
- companyLegalName: referralViewState.rewardsPlan.companyLegalName,
85
83
  fetchState: referralViewState.rewardsPlanFetchState.fetchState,
86
84
  error: referralViewState.rewardsPlanFetchState.error,
87
- showConfirmationPopup: referralViewState.showConfirmationPopup,
88
85
  };
89
86
  };
90
87
  exports.getInviteFormView = getInviteFormView;
@@ -27,7 +27,6 @@ export interface ReferralViewState extends FetchedState {
27
27
  uiState: ReferralViewUIState;
28
28
  rewardsPlanFetchState: FetchStateAndError;
29
29
  rewardsPlan: RewardsPlanData;
30
- showConfirmationPopup: boolean;
31
30
  }
32
31
  export interface ReferralViewUIState {
33
32
  sortOrder: SortOrder;
@@ -38,7 +37,6 @@ export interface RewardsPlanData {
38
37
  amount: Amount;
39
38
  referRewardPlanId: ID;
40
39
  referalUniqueLink: ZeniUrl;
41
- companyLegalName: string;
42
40
  }
43
41
  export interface InviteCompanyLocalData {
44
42
  companyName: string;
@@ -47,8 +45,8 @@ export interface InviteCompanyLocalData {
47
45
  export declare const REFERRAL_LIST_VIEW_SORT_KEYS: readonly ["invitee_email", "amount", "status", "referral_date"];
48
46
  export declare const toReferralListViewSortKeyType: (v: string) => "status" | "amount" | "invitee_email" | "referral_date";
49
47
  export declare type ReferralListViewSortKey = ReturnType<typeof toReferralListViewSortKeyType>;
50
- export declare const ALL_REFERRAL_STATUSES: readonly ["invite_sent", "onboarding", "active", "declined", "resend_invite", "reward_sent"];
51
- export declare const toReferralStatusType: (v: string) => "active" | "onboarding" | "declined" | "invite_sent" | "resend_invite" | "reward_sent";
48
+ export declare const ALL_REFERRAL_STATUSES: readonly ["invite_processing", "invite_sent", "onboarding", "active", "declined", "resend_invite", "reward_sent"];
49
+ export declare const toReferralStatusType: (v: string) => "active" | "onboarding" | "declined" | "invite_processing" | "invite_sent" | "resend_invite" | "reward_sent";
52
50
  export declare type ReferralStatus = ReturnType<typeof toReferralStatusType>;
53
51
  export declare const StatusTypes: Record<ReferralStatus, string>;
54
52
  export declare const ALL_REFERRAL_AMOUNT_STATUSES: readonly ["received", "to_be_received"];
@@ -11,6 +11,7 @@ exports.REFERRAL_LIST_VIEW_SORT_KEYS = [
11
11
  const toReferralListViewSortKeyType = (v) => (0, stringToUnion_1.stringToUnion)(v, exports.REFERRAL_LIST_VIEW_SORT_KEYS);
12
12
  exports.toReferralListViewSortKeyType = toReferralListViewSortKeyType;
13
13
  exports.ALL_REFERRAL_STATUSES = [
14
+ 'invite_processing',
14
15
  'invite_sent',
15
16
  'onboarding',
16
17
  'active',
@@ -21,6 +22,7 @@ exports.ALL_REFERRAL_STATUSES = [
21
22
  const toReferralStatusType = (v) => (0, stringToUnion_1.stringToUnion)(v, exports.ALL_REFERRAL_STATUSES);
22
23
  exports.toReferralStatusType = toReferralStatusType;
23
24
  exports.StatusTypes = {
25
+ invite_processing: 'Invite Processing',
24
26
  invite_sent: 'Invite Sent',
25
27
  onboarding: 'Onboarding',
26
28
  active: 'Active',
@@ -5,6 +5,7 @@ export interface ZeniAccountsPromoCardPayload {
5
5
  max_apy: number;
6
6
  max_insured_amount: number;
7
7
  max_possible_interest: number | null;
8
+ max_cash_balance_available: number | null;
8
9
  primary_deposit_account_id: ID | null;
9
10
  }
10
11
  export declare type ZeniAccountsPromoCardResponse = ZeniAPIResponse<ZeniAccountsPromoCardPayload>;
@@ -10,6 +10,7 @@ exports.initialState = {
10
10
  maxInsuredAmount: 0,
11
11
  maxAnnualPercentageYield: 0,
12
12
  maxPossibleInterest: 0,
13
+ maxCashBalanceAvailable: 0,
13
14
  isShowDepositAccountsPromo: false,
14
15
  firstMonthOfFY: 1,
15
16
  reportId: 'zeni_accounts_promo_card',
@@ -37,6 +38,10 @@ const zeniAccountsPromoCard = (0, toolkit_1.createSlice)({
37
38
  promoPayload.max_possible_interest != null
38
39
  ? promoPayload.max_possible_interest
39
40
  : undefined;
41
+ draft.maxCashBalanceAvailable =
42
+ promoPayload.max_cash_balance_available != null
43
+ ? promoPayload.max_cash_balance_available
44
+ : undefined;
40
45
  draft.maxInsuredAmount = promoPayload.max_insured_amount;
41
46
  draft.depositAccountId =
42
47
  promoPayload.primary_deposit_account_id != null
@@ -3,6 +3,7 @@ export declare const getZeniAccountsPromoCard: (state: RootState) => {
3
3
  isShowDepositAccountsPromo: boolean;
4
4
  maxAnnualPercentageYield: number;
5
5
  maxPossibleInterest: number | undefined;
6
+ maxCashBalanceAvailable: number | undefined;
6
7
  maxInsuredAmount: number;
7
8
  depositAccountId: string | undefined;
8
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";
@@ -6,6 +6,7 @@ const getZeniAccountsPromoCardSelector = (0, toolkit_1.createSelector)((state) =
6
6
  isShowDepositAccountsPromo: zeniAccountsPromoCardState.isShowDepositAccountsPromo,
7
7
  maxAnnualPercentageYield: zeniAccountsPromoCardState.maxAnnualPercentageYield,
8
8
  maxPossibleInterest: zeniAccountsPromoCardState.maxPossibleInterest,
9
+ maxCashBalanceAvailable: zeniAccountsPromoCardState.maxCashBalanceAvailable,
9
10
  maxInsuredAmount: zeniAccountsPromoCardState.maxInsuredAmount,
10
11
  depositAccountId: zeniAccountsPromoCardState.depositAccountId,
11
12
  reportId: zeniAccountsPromoCardState.reportId,
@@ -4,6 +4,7 @@ export interface ZeniAccountsPromoCardState extends FetchedState, Report {
4
4
  isShowDepositAccountsPromo: boolean;
5
5
  maxAnnualPercentageYield: number;
6
6
  maxPossibleInterest?: number;
7
+ maxCashBalanceAvailable?: number;
7
8
  maxInsuredAmount: number;
8
9
  depositAccountId?: ID;
9
10
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zeniai/client-epic-state",
3
- "version": "4.9.44",
3
+ "version": "4.9.46",
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",