@zeniai/client-epic-state 4.11.89 → 4.11.90

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.
@@ -89,14 +89,6 @@ export interface CompanyBillPayInfoDataPayload {
89
89
  code: string | null;
90
90
  name: string | null;
91
91
  };
92
- bill_payment_account_setup_status: {
93
- code: string | null;
94
- name: string | null;
95
- };
96
- bill_payment_method_type: {
97
- code: string | null;
98
- name: string | null;
99
- };
100
92
  schedule_pay_now_cutoff_time_by_payment_method: BillPayNowCutOffByMethodPayload;
101
93
  primary_funding_account: {
102
94
  account_id: string | null;
@@ -143,8 +143,6 @@ const toCompanyBillPayInfo = (payload) => {
143
143
  usersSelectedForVerification: payload.users_for_verification,
144
144
  businessVerificationStatus: (0, exports.toAllowedValueWithCode)(payload.business_verification_status),
145
145
  companyVerificationStatus: (0, exports.toAllowedValueWithCode)(payload.company_verification_status),
146
- billPaymentAccountSetupStatus: (0, exports.toAllowedValueWithCode)(payload.bill_payment_account_setup_status),
147
- billPaymentMethodType: (0, exports.toAllowedValueWithCode)(payload.bill_payment_method_type),
148
146
  payNowCutOffTimeByMethod: (0, exports.toPayNowCutOffByMethod)(payload.schedule_pay_now_cutoff_time_by_payment_method),
149
147
  primaryFundingAccount: payload.primary_funding_account.account_id != null &&
150
148
  payload.primary_funding_account.account_type != null
@@ -164,8 +164,6 @@ export interface CompanyBillPayInfo {
164
164
  isInternationalWireEnabled: boolean;
165
165
  businessVerificationStatus?: AllowedValueWithCode;
166
166
  companyVerificationStatus?: AllowedValueWithCode;
167
- billPaymentAccountSetupStatus?: AllowedValueWithCode;
168
- billPaymentMethodType?: AllowedValueWithCode;
169
167
  payNowCutOffTimeByMethod: BillPayNowCutOffByMethod;
170
168
  primaryFundingAccount?: {
171
169
  accountId: ID;
@@ -1,5 +1,3 @@
1
- import { AllowedValueWithCode } from '../../../../commonStateTypes/allowedValue';
2
- import { ID } from '../../../../commonStateTypes/common';
3
1
  import { SelectorView } from '../../../../commonStateTypes/viewAndReport/viewAndReport';
4
2
  import { PaymentAccount } from '../../../../entity/paymentAccount/paymentAccountState';
5
3
  import { RootState } from '../../../../reducer';
@@ -15,8 +13,7 @@ export interface ZeniAccountListSelectorView extends SelectorView {
15
13
  plaidConnectionDetails: PlaidConnectionDetails;
16
14
  newCheckingAccount: NewCheckingAccount;
17
15
  zeniAccountsConfig: ZeniAccountsConfigSelectorView;
18
- companyBillPayAccountSetupStatus?: AllowedValueWithCode;
19
16
  paymentAccount?: PaymentAccount;
20
17
  summary?: ZeniAccountSummaryWithBalance;
21
18
  }
22
- export declare const getZeniAccountList: (state: RootState, companyId: ID) => ZeniAccountListSelectorView;
19
+ export declare const getZeniAccountList: (state: RootState) => ZeniAccountListSelectorView;
@@ -3,17 +3,14 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getZeniAccountList = void 0;
4
4
  const depositAccountPayload_1 = require("../../../../entity/depositAccount/depositAccountPayload");
5
5
  const paymentAccountSelector_1 = require("../../../../entity/paymentAccount/paymentAccountSelector");
6
- const getCompanyView_1 = require("../../../companyView/selectorHelpers/getCompanyView");
7
6
  const depositAccountListSelector_1 = require("../depositAccountList/depositAccountListSelector");
8
7
  const paymentAccountListSelector_1 = require("../paymentAccountList/paymentAccountListSelector");
9
8
  const zeniAccountsConfigSelector_1 = require("../zeniAccountsConfig/zeniAccountsConfigSelector");
10
- const getZeniAccountList = (state, companyId) => {
9
+ const getZeniAccountList = (state) => {
11
10
  const { zeniAccountListState, depositAccountState, paymentAccountState, plaidAccountViewState, depositAccountListState, paymentAccountListState, } = state;
12
11
  const { plaidConnectionDetails } = plaidAccountViewState['external_account'];
13
12
  const depositAccountsSelectorView = (0, depositAccountListSelector_1.getAllDepostAccounts)(depositAccountState, depositAccountListState);
14
13
  const zeniAccountsConfig = (0, zeniAccountsConfigSelector_1.getZeniAccountsConfigDetail)(state);
15
- const companyView = (0, getCompanyView_1.getCompanyView)(state, companyId, []);
16
- const companyBillPayInfo = companyView === null || companyView === void 0 ? void 0 : companyView.company.company.companyBillPayInfo;
17
14
  const { paymentAccountIds } = paymentAccountListState;
18
15
  const externalAccountsSelectorView = (0, paymentAccountListSelector_1.getAllPaymentAccounts)(paymentAccountState, paymentAccountListState);
19
16
  let summary = undefined;
@@ -49,7 +46,6 @@ const getZeniAccountList = (state, companyId) => {
49
46
  zeniAccountsConfig,
50
47
  plaidConnectionDetails,
51
48
  externalAccountsSelectorView,
52
- companyBillPayAccountSetupStatus: companyBillPayInfo === null || companyBillPayInfo === void 0 ? void 0 : companyBillPayInfo.billPaymentAccountSetupStatus,
53
49
  newCheckingAccount: zeniAccountListState.newCheckingAccount,
54
50
  fetchState: zeniAccountListState.currentTab.id === 'zeniAccounts'
55
51
  ? depositAccountsSelectorView.fetchState
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zeniai/client-epic-state",
3
- "version": "4.11.89",
3
+ "version": "4.11.90",
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",