@zeniai/client-epic-state 4.8.28 → 4.8.29

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.
@@ -114,7 +114,7 @@ export interface EditBillInitialDetails {
114
114
  paymentDetailsSection?: PaymentDetailsSectionView;
115
115
  totalAmount?: Amount;
116
116
  }
117
- export declare const getEditBillDetail: (state: RootState, isVendorRecommendationFeatureEnabled: boolean, billId?: string | undefined) => EditBillDetailSelectorView;
117
+ export declare const getEditBillDetail: (state: RootState, isVendorRecommendationFeatureEnabled: boolean, isZeniAccountsEnabled: boolean, billId?: string | undefined) => EditBillDetailSelectorView;
118
118
  export declare const getBillPayConfigList: (billPayConfigState: BillPayConfigState) => BillPayConfig[];
119
119
  export declare const getPaymentMethodType: (billPayConfigState: BillPayConfigState, accType: AccountTypeSubConfigCodeKeyType, paymentMethod?: BillPaymentMethod | undefined, internationalTransferFeeBearerPaymentMethod?: "swift_our" | "swift_sha" | undefined) => BillPayConfig | undefined;
120
120
  export declare function getWhatForSection(updatedWhatForSection: WhatForSection | undefined): WhatForSection;
@@ -29,7 +29,7 @@ const billPayConfigPayload_1 = require("../billPayConfig/billPayConfigPayload");
29
29
  const transferDetailSelector_1 = require("../../zeniAccounts/transferDetail/transferDetailSelector");
30
30
  const depositAccountListSelector_1 = require("../../zeniAccounts/depositAccountList/depositAccountListSelector");
31
31
  const depositAccountSelector_1 = require("../../../../entity/depositAccount/depositAccountSelector");
32
- const getEditBillDetail = (state, isVendorRecommendationFeatureEnabled, billId) => {
32
+ const getEditBillDetail = (state, isVendorRecommendationFeatureEnabled, isZeniAccountsEnabled, billId) => {
33
33
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4;
34
34
  const { accountListState, accountState, bankAccountState, billDetailViewState, setupViewState, billTransactionState, billPayConfigState, classListState, classState, editBillDetailViewState, paymentAccountState, vendorState, tenantState, companyState, userState, commonHistoryState, contactState, paymentInstrumentState, recurringBillState, depositAccountListState, depositAccountState, } = state;
35
35
  const transaction = (0, get_1.default)(billTransactionState.transactionById, billId !== null && billId !== void 0 ? billId : '', undefined);
@@ -65,7 +65,10 @@ const getEditBillDetail = (state, isVendorRecommendationFeatureEnabled, billId)
65
65
  (transaction === null || transaction === void 0 ? void 0 : transaction.billPayInfo.fromAccount.billAccountId) != null
66
66
  ? (0, depositAccountSelector_1.getDepositAccountByDepositAccountId)(depositAccountState, transaction === null || transaction === void 0 ? void 0 : transaction.billPayInfo.fromAccount.billAccountId)
67
67
  : undefined;
68
- const allDepositAccounts = (0, depositAccountListSelector_1.getAllDepostAccounts)(depositAccountState, depositAccountListState).depositAccounts;
68
+ const allDepositAccounts = isZeniAccountsEnabled
69
+ ? (0, depositAccountListSelector_1.getAllDepostAccounts)(depositAccountState, depositAccountListState)
70
+ .depositAccounts
71
+ : [];
69
72
  if (allDepositAccounts.length === 0 && fromDepositAccount != null) {
70
73
  allDepositAccounts.push(fromDepositAccount);
71
74
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zeniai/client-epic-state",
3
- "version": "4.8.28",
3
+ "version": "4.8.29",
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",