@zeniai/client-epic-state 4.11.56 → 4.11.58

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 (73) hide show
  1. package/lib/entity/cardPayment/cardPaymentPayload.d.ts +2 -2
  2. package/lib/entity/cardPayment/cardPaymentPayload.js +11 -14
  3. package/lib/entity/chargeCardTransaction/chargeCardTransaction.d.ts +1 -1
  4. package/lib/entity/company/companyPayload.d.ts +0 -12
  5. package/lib/entity/company/companyPayload.js +0 -21
  6. package/lib/entity/company/companyReducer.d.ts +0 -7
  7. package/lib/entity/company/companyReducer.js +2 -22
  8. package/lib/entity/company/companyStateTypes.d.ts +0 -12
  9. package/lib/entity/depositAccountTransaction/depositAccountTransaction.d.ts +1 -1
  10. package/lib/entity/paymentAccount/paymentAccountPayload.d.ts +0 -2
  11. package/lib/entity/paymentAccount/paymentAccountPayload.js +0 -2
  12. package/lib/entity/paymentAccount/paymentAccountState.d.ts +0 -2
  13. package/lib/entity/snackbar/snackbarTypes.d.ts +1 -1
  14. package/lib/entity/tenant/epic/fetchAllTenantsEpic.d.ts +3 -3
  15. package/lib/entity/tenant/epic/fetchAllTenantsEpic.js +3 -16
  16. package/lib/entity/toastNotification/epic/pushToastNotificationEpic.d.ts +1 -1
  17. package/lib/index.d.ts +9 -9
  18. package/lib/index.js +18 -21
  19. package/lib/view/bankAccountView/epic/createBankAccountEpic.js +3 -5
  20. package/lib/view/cardPayment/epic/addCardPaymentSourceEpic.d.ts +1 -1
  21. package/lib/view/cardPayment/epic/confirmCardSetupIntentEpic.d.ts +1 -1
  22. package/lib/view/cardPayment/epic/createCardSetupIntentEpic.d.ts +1 -1
  23. package/lib/view/cardPayment/epic/fetchPaymentSourcesEpic.d.ts +1 -1
  24. package/lib/view/companyView/types/cockpitTypes.d.ts +2 -2
  25. package/lib/view/onboardingView/customerView/epic/plaidConnection/establishOnboardingPlaidConnectionEpic.js +0 -2
  26. package/lib/view/people/changeZeniPersonRolesEpic.d.ts +1 -1
  27. package/lib/view/people/deletePersonEpic.d.ts +1 -1
  28. package/lib/view/people/invitePeopleEpic.d.ts +1 -1
  29. package/lib/view/people/inviteZeniPeopleEpic.d.ts +1 -1
  30. package/lib/view/people/resendInviteEpic.d.ts +1 -1
  31. package/lib/view/referralView/referralState.d.ts +1 -1
  32. package/lib/view/reviewCompanyView/reviewCompanyViewSelector.js +41 -45
  33. package/lib/view/scheduleView/scheduleListView/scheduleListTypes.d.ts +1 -1
  34. package/lib/view/settingsView/epic/fetchBankConnectionsViewEpic.d.ts +4 -6
  35. package/lib/view/settingsView/epic/fetchBankConnectionsViewEpic.js +6 -29
  36. package/lib/view/settingsView/epic/saveNotificationSettingsEpic.d.ts +1 -1
  37. package/lib/view/settingsView/settingsViewReducer.d.ts +1 -3
  38. package/lib/view/settingsView/settingsViewReducer.js +2 -11
  39. package/lib/view/settingsView/settingsViewSelector.d.ts +1 -1
  40. package/lib/view/settingsView/settingsViewSelector.js +7 -59
  41. package/lib/view/settingsView/types/settingsViewSelectorTypes.d.ts +2 -10
  42. package/lib/view/spendManagement/billPay/billPayReview/billPayReviewSelector.js +3 -2
  43. package/lib/view/spendManagement/billPay/billPaySetupView/billPaySetupViewSelector.js +1 -1
  44. package/lib/view/spendManagement/billPay/billPaySetupView/epic/billPaySetup/fetchBillPaySetupViewEpic.d.ts +1 -4
  45. package/lib/view/spendManagement/billPay/billPaySetupView/epic/billPaySetup/fetchBillPaySetupViewEpic.js +4 -16
  46. package/lib/view/spendManagement/billPay/editBillView/editBillViewSelector.js +12 -15
  47. package/lib/view/spendManagement/billPay/editBillView/epics/fetchEditBillDetailPageEpic.d.ts +2 -2
  48. package/lib/view/spendManagement/billPay/editBillView/epics/fetchEditBillDetailPageEpic.js +6 -6
  49. package/lib/view/spendManagement/billPay/editBillView/epics/initializeBillToLocalStoreEpic.d.ts +2 -1
  50. package/lib/view/spendManagement/chargeCards/chargeCardSetUp/chargeCardSetUpViewSelector.js +1 -1
  51. package/lib/view/spendManagement/chargeCards/chargeCardSetUp/epic/fetchChargeCardSetupViewEpic.d.ts +1 -4
  52. package/lib/view/spendManagement/chargeCards/chargeCardSetUp/epic/fetchChargeCardSetupViewEpic.js +4 -16
  53. package/lib/view/spendManagement/commonSetup/setupViewSelector.d.ts +0 -4
  54. package/lib/view/spendManagement/commonSetup/setupViewSelector.js +31 -47
  55. package/lib/view/spendManagement/plaidAccount/epic/paymentAccounts/updateMappedCashAccountEpic.js +5 -4
  56. package/lib/view/spendManagement/plaidAccount/epic/paymentAccounts/updatePaymentAccountEpic.js +2 -1
  57. package/lib/view/spendManagement/plaidAccount/epic/paymentAccounts/updatePaymentAccountStatusEpic.js +2 -1
  58. package/lib/view/spendManagement/plaidAccount/epic/paymentAccounts/updatePrimaryFundingAccountEpic.js +12 -34
  59. package/lib/view/spendManagement/plaidAccount/epic/plaidConnection/establishPlaidConnectionEpic.d.ts +1 -2
  60. package/lib/view/spendManagement/plaidAccount/epic/plaidConnection/establishPlaidConnectionEpic.js +16 -52
  61. package/lib/view/spendManagement/plaidAccount/epic/plaidConnection/getPlaidLinkTokenEpic.js +1 -1
  62. package/lib/view/spendManagement/plaidAccount/plaidAccountViewReducer.d.ts +27 -21
  63. package/lib/view/spendManagement/plaidAccount/plaidAccountViewReducer.js +74 -47
  64. package/lib/view/spendManagement/plaidAccount/plaidAccountViewState.d.ts +8 -3
  65. package/lib/view/spendManagement/plaidAccount/plaidAccountViewState.js +3 -6
  66. package/lib/view/spendManagement/reimbursement/remiSetupView/epic/remiSetup/fetchRemiSetupViewEpic.js +19 -6
  67. package/lib/view/spendManagement/zeniAccounts/zeniAccountList/zeniAccountListSelector.js +2 -2
  68. package/lib/view/spendManagement/zeniAccounts/zeniAccountSetUp/epic/fetchZeniAccountSetupViewEpic.d.ts +1 -4
  69. package/lib/view/spendManagement/zeniAccounts/zeniAccountSetUp/epic/fetchZeniAccountSetupViewEpic.js +9 -20
  70. package/lib/view/spendManagement/zeniAccounts/zeniAccountSetUp/zeniAccountSetupViewSelector.js +1 -1
  71. package/lib/view/tagView/epics/createTagEpic.d.ts +6 -6
  72. package/lib/view/tagView/epics/deleteTagEpic.d.ts +6 -6
  73. package/package.json +2 -2
@@ -5,9 +5,9 @@ export interface CardPaymentPayload {
5
5
  brand: string;
6
6
  expiry_month: number;
7
7
  expiry_year: number;
8
- first_name: string | null;
8
+ first_name: string;
9
9
  last4: string;
10
- last_name: string | null;
10
+ last_name: string;
11
11
  masked_number: string;
12
12
  }
13
13
  export declare const mapCardPaymentPayloadToCardPayment: (payload: CardPaymentPayload) => CardPayment;
@@ -1,18 +1,15 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.mapCardPaymentPayloadToCardPayment = void 0;
4
- const mapCardPaymentPayloadToCardPayment = (payload) => {
5
- var _a, _b, _c, _d;
6
- return ({
7
- cardId: payload.id,
8
- status: payload.status,
9
- brand: payload.brand,
10
- expiryMonth: payload.expiry_month,
11
- expiryYear: payload.expiry_year,
12
- firstName: (_b = (_a = payload.first_name) === null || _a === void 0 ? void 0 : _a.trim()) !== null && _b !== void 0 ? _b : '',
13
- last4: payload.last4,
14
- lastName: (_d = (_c = payload.last_name) === null || _c === void 0 ? void 0 : _c.trim()) !== null && _d !== void 0 ? _d : '',
15
- maskedNumber: payload.masked_number,
16
- });
17
- };
4
+ const mapCardPaymentPayloadToCardPayment = (payload) => ({
5
+ cardId: payload.id,
6
+ status: payload.status,
7
+ brand: payload.brand,
8
+ expiryMonth: payload.expiry_month,
9
+ expiryYear: payload.expiry_year,
10
+ firstName: payload.first_name.trim(),
11
+ last4: payload.last4,
12
+ lastName: payload.last_name.trim(),
13
+ maskedNumber: payload.masked_number,
14
+ });
18
15
  exports.mapCardPaymentPayloadToCardPayment = mapCardPaymentPayloadToCardPayment;
@@ -32,5 +32,5 @@ export interface ChargeCardTransactionState {
32
32
  export declare const toCardTransactionTypeCode: (v: string) => "purchase";
33
33
  export declare const toCardTransactionTypeCodeStrict: (v?: string | undefined) => "purchase" | undefined;
34
34
  export declare type ChargeCardTransactionTypeCode = ReturnType<typeof toCardTransactionTypeCode>;
35
- export declare const toCardTransactionStatusCode: (v: string) => "canceled" | "paid" | "declined" | "authorized";
35
+ export declare const toCardTransactionStatusCode: (v: string) => "canceled" | "paid" | "authorized" | "declined";
36
36
  export declare type ChargeCardTransactionStatusCode = ReturnType<typeof toCardTransactionStatusCode>;
@@ -100,10 +100,6 @@ export interface CompanyBillPayInfoDataPayload {
100
100
  name: string | null;
101
101
  };
102
102
  schedule_pay_now_cutoff_time_by_payment_method: BillPayNowCutOffByMethodPayload;
103
- primary_funding_account: {
104
- account_id: string | null;
105
- account_type: string | null;
106
- };
107
103
  }
108
104
  export interface UserReimbursementInfoDataPayload {
109
105
  reimbursement_tos_acceptance_user_agent: string | null;
@@ -126,10 +122,6 @@ export interface CompanyZeniAccountInfoDataPayload {
126
122
  deposit_accounts_tos_acceptance_ip: string | null;
127
123
  is_deposit_accounts_enabled: boolean;
128
124
  deposit_accounts_tos_acceptance_user_id: string | null;
129
- primary_funding_account: {
130
- account_id: string | null;
131
- account_type: string | null;
132
- };
133
125
  }
134
126
  export interface CompanyChargeCardInfoDataPayload {
135
127
  charge_cards_tos_acceptance_time: string | null;
@@ -138,10 +130,6 @@ export interface CompanyChargeCardInfoDataPayload {
138
130
  charge_cards_tos_acceptance_ip: string | null;
139
131
  is_charge_cards_tos_accepted: boolean;
140
132
  is_charge_cards_enabled: boolean;
141
- primary_funding_account: {
142
- account_id: string | null;
143
- account_type: string | null;
144
- };
145
133
  }
146
134
  export interface CompanyBillPayInfoPayload {
147
135
  bill_pay_info: CompanyBillPayInfoDataPayload;
@@ -148,13 +148,6 @@ const toCompanyBillPayInfo = (payload) => {
148
148
  billPaymentAccountSetupStatus: (0, exports.toAllowedValueWithCode)(payload.bill_payment_account_setup_status),
149
149
  billPaymentMethodType: (0, exports.toAllowedValueWithCode)(payload.bill_payment_method_type),
150
150
  payNowCutOffTimeByMethod: (0, exports.toPayNowCutOffByMethod)(payload.schedule_pay_now_cutoff_time_by_payment_method),
151
- primaryFundingAccount: payload.primary_funding_account.account_id != null &&
152
- payload.primary_funding_account.account_type != null
153
- ? {
154
- accountId: payload.primary_funding_account.account_id,
155
- accountType: (0, billPayConfigPayload_1.getAccountTypeSubConfigCodeKey)((0, billPayConfigState_1.toAccType)(payload.primary_funding_account.account_type)),
156
- }
157
- : undefined,
158
151
  });
159
152
  };
160
153
  exports.toCompanyBillPayInfo = toCompanyBillPayInfo;
@@ -190,13 +183,6 @@ const toCompanyZeniAccountInfo = (payload) => {
190
183
  zeniAccountTOSAcceptanceIp: (_c = payload === null || payload === void 0 ? void 0 : payload.deposit_accounts_tos_acceptance_ip) !== null && _c !== void 0 ? _c : undefined,
191
184
  isZeniAccountTOSAccepted: (_d = payload === null || payload === void 0 ? void 0 : payload.is_deposit_accounts_tos_accepted) !== null && _d !== void 0 ? _d : false,
192
185
  isZeniAccountEnabled: (_e = payload === null || payload === void 0 ? void 0 : payload.is_deposit_accounts_enabled) !== null && _e !== void 0 ? _e : false,
193
- primaryFundingAccount: payload.primary_funding_account.account_id != null &&
194
- payload.primary_funding_account.account_type != null
195
- ? {
196
- accountId: payload.primary_funding_account.account_id,
197
- accountType: (0, billPayConfigPayload_1.getAccountTypeSubConfigCodeKey)((0, billPayConfigState_1.toAccType)(payload.primary_funding_account.account_type)),
198
- }
199
- : undefined,
200
186
  });
201
187
  };
202
188
  exports.toCompanyZeniAccountInfo = toCompanyZeniAccountInfo;
@@ -211,13 +197,6 @@ const toCompanyChargeCardInfo = (payload) => {
211
197
  chargeCardTOSAcceptanceIp: (_c = payload.charge_cards_tos_acceptance_ip) !== null && _c !== void 0 ? _c : undefined,
212
198
  isChargeCardTOSAccepted: (_d = payload.is_charge_cards_tos_accepted) !== null && _d !== void 0 ? _d : false,
213
199
  isChargeCardEnabled: (_e = payload.is_charge_cards_enabled) !== null && _e !== void 0 ? _e : false,
214
- primaryFundingAccount: payload.primary_funding_account.account_id != null &&
215
- payload.primary_funding_account.account_type != null
216
- ? {
217
- accountId: payload.primary_funding_account.account_id,
218
- accountType: (0, billPayConfigPayload_1.getAccountTypeSubConfigCodeKey)((0, billPayConfigState_1.toAccType)(payload.primary_funding_account.account_type)),
219
- }
220
- : undefined,
221
200
  });
222
201
  };
223
202
  exports.toCompanyChargeCardInfo = toCompanyChargeCardInfo;
@@ -2,8 +2,6 @@ import { ID } from '../../commonStateTypes/common';
2
2
  import { CompanyPayload, CompanySchemaPayload, OnboardingInfoPayload } from './companyPayload';
3
3
  import { CompanyState } from './companyState';
4
4
  import { OnboardingInviteStatusPayload } from '../../view/onboardingView/cockpitView/onboardingCockpitViewPayload';
5
- import { SpendManagementEntityType } from '../..';
6
- import { AccountTypeSubConfigCodeKeyType } from '../../view/spendManagement/billPay/billPayConfig/billPayConfigState';
7
5
  export declare const initialState: CompanyState;
8
6
  export declare const updateCompanies: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
9
7
  payload: CompanyPayload[];
@@ -34,11 +32,6 @@ export declare const updateCompanies: import("@reduxjs/toolkit").ActionCreatorWi
34
32
  }, string>, updateOnboardingInfoOnRetryBankAccountConnectionSuccess: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
35
33
  companyId: ID;
36
34
  onboardingInfo?: OnboardingInfoPayload | undefined;
37
- }, string>, updateCompanyPrimaryAccount: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
38
- companyId: ID;
39
- primaryFundingAccountId: ID;
40
- accountType: AccountTypeSubConfigCodeKeyType;
41
- productType: SpendManagementEntityType;
42
35
  }, string>;
43
36
  declare const _default: import("@reduxjs/toolkit").Reducer<CompanyState, import("@reduxjs/toolkit").AnyAction>;
44
37
  export default _default;
@@ -4,7 +4,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  var _a;
6
6
  Object.defineProperty(exports, "__esModule", { value: true });
7
- exports.updateCompanyPrimaryAccount = exports.updateOnboardingInfoOnRetryBankAccountConnectionSuccess = exports.updateQBOConnectionStatusForCompany = exports.toggleCompanyMonthEndReportDraftFlag = exports.removeOnboardingCompletedCompany = exports.removeOnboardingCompany = exports.updateOnboardingCompletedCompanies = exports.updateOnboardingCompanies = exports.clearAllCompanies = exports.removeCompany = exports.updateCompanyMonthEndReportSentDate = exports.updateCompanies = exports.initialState = void 0;
7
+ exports.updateOnboardingInfoOnRetryBankAccountConnectionSuccess = exports.updateQBOConnectionStatusForCompany = exports.toggleCompanyMonthEndReportDraftFlag = exports.removeOnboardingCompletedCompany = exports.removeOnboardingCompany = exports.updateOnboardingCompletedCompanies = exports.updateOnboardingCompanies = exports.clearAllCompanies = exports.removeCompany = exports.updateCompanyMonthEndReportSentDate = exports.updateCompanies = exports.initialState = void 0;
8
8
  const toolkit_1 = require("@reduxjs/toolkit");
9
9
  const isEqual_1 = __importDefault(require("lodash/isEqual"));
10
10
  const isEmpty_1 = __importDefault(require("lodash/isEmpty"));
@@ -160,26 +160,6 @@ const company = (0, toolkit_1.createSlice)({
160
160
  const { companyId, onboardingInfo } = action.payload;
161
161
  draft.onboardingCompaniesById[companyId].companyOnboardingInfo.onboardingInfo = (0, companyPayload_1.toOnboardingInfo)(onboardingInfo);
162
162
  },
163
- updateCompanyPrimaryAccount(draft, action) {
164
- const { companyId, primaryFundingAccountId, accountType, productType } = action.payload;
165
- const companyProductInfo = (() => {
166
- switch (productType) {
167
- case 'bill_pay':
168
- return 'companyBillPayInfo';
169
- case 'reimbursement':
170
- return 'companyReimbursementInfo';
171
- case 'charge_cards':
172
- return 'companyChargeCardInfo';
173
- default:
174
- return 'companyZeniAccountInfo';
175
- }
176
- })();
177
- draft.companiesById[companyId][companyProductInfo].primaryFundingAccount =
178
- {
179
- accountId: primaryFundingAccountId,
180
- accountType: accountType,
181
- };
182
- },
183
163
  clearAllCompanies: {
184
164
  // eslint-disable-next-line @typescript-eslint/no-inferrable-types
185
165
  prepare(keepCompanyState) {
@@ -193,5 +173,5 @@ const company = (0, toolkit_1.createSlice)({
193
173
  },
194
174
  },
195
175
  });
196
- _a = company.actions, exports.updateCompanies = _a.updateCompanies, exports.updateCompanyMonthEndReportSentDate = _a.updateCompanyMonthEndReportSentDate, exports.removeCompany = _a.removeCompany, exports.clearAllCompanies = _a.clearAllCompanies, exports.updateOnboardingCompanies = _a.updateOnboardingCompanies, exports.updateOnboardingCompletedCompanies = _a.updateOnboardingCompletedCompanies, exports.removeOnboardingCompany = _a.removeOnboardingCompany, exports.removeOnboardingCompletedCompany = _a.removeOnboardingCompletedCompany, exports.toggleCompanyMonthEndReportDraftFlag = _a.toggleCompanyMonthEndReportDraftFlag, exports.updateQBOConnectionStatusForCompany = _a.updateQBOConnectionStatusForCompany, exports.updateOnboardingInfoOnRetryBankAccountConnectionSuccess = _a.updateOnboardingInfoOnRetryBankAccountConnectionSuccess, exports.updateCompanyPrimaryAccount = _a.updateCompanyPrimaryAccount;
176
+ _a = company.actions, exports.updateCompanies = _a.updateCompanies, exports.updateCompanyMonthEndReportSentDate = _a.updateCompanyMonthEndReportSentDate, exports.removeCompany = _a.removeCompany, exports.clearAllCompanies = _a.clearAllCompanies, exports.updateOnboardingCompanies = _a.updateOnboardingCompanies, exports.updateOnboardingCompletedCompanies = _a.updateOnboardingCompletedCompanies, exports.removeOnboardingCompany = _a.removeOnboardingCompany, exports.removeOnboardingCompletedCompany = _a.removeOnboardingCompletedCompany, exports.toggleCompanyMonthEndReportDraftFlag = _a.toggleCompanyMonthEndReportDraftFlag, exports.updateQBOConnectionStatusForCompany = _a.updateQBOConnectionStatusForCompany, exports.updateOnboardingInfoOnRetryBankAccountConnectionSuccess = _a.updateOnboardingInfoOnRetryBankAccountConnectionSuccess;
197
177
  exports.default = company.reducer;
@@ -169,10 +169,6 @@ export interface CompanyBillPayInfo {
169
169
  billPaymentAccountSetupStatus?: AllowedValueWithCode;
170
170
  billPaymentMethodType?: AllowedValueWithCode;
171
171
  payNowCutOffTimeByMethod: BillPayNowCutOffByMethod;
172
- primaryFundingAccount?: {
173
- accountId: ID;
174
- accountType: AccountTypeSubConfigCodeKeyType;
175
- };
176
172
  }
177
173
  export interface UserReimbursementInfo {
178
174
  isReimbursementTOSAccepted: boolean;
@@ -197,10 +193,6 @@ export interface UserZeniAccountInfo {
197
193
  export interface CompanyZeniAccountInfo extends UserZeniAccountInfo {
198
194
  isZeniAccountEnabled: boolean;
199
195
  zeniAccountTOSAcceptanceUserid?: ID;
200
- primaryFundingAccount?: {
201
- accountId: ID;
202
- accountType: AccountTypeSubConfigCodeKeyType;
203
- };
204
196
  }
205
197
  export interface UserChargeCardInfo {
206
198
  isChargeCardTOSAccepted: boolean;
@@ -211,10 +203,6 @@ export interface UserChargeCardInfo {
211
203
  export interface CompanyChargeCardInfo extends UserChargeCardInfo {
212
204
  isChargeCardEnabled: boolean;
213
205
  chargeCardTOSAcceptanceUserid?: ID;
214
- primaryFundingAccount?: {
215
- accountId: ID;
216
- accountType: AccountTypeSubConfigCodeKeyType;
217
- };
218
206
  }
219
207
  export interface CompanyFeaturesActivationInfo {
220
208
  isBillPayFeatureEnabled: boolean;
@@ -25,7 +25,7 @@ export interface DepositTransactionStatus {
25
25
  export interface DepositAccountTransactionState {
26
26
  byTransactionId: Record<ID, DepositAccountTransaction>;
27
27
  }
28
- export declare const toDepositAccountTransactionType: (v: string) => "wire" | "book" | "fee" | "originated_ach" | "ach_originating" | "received_ach" | "returned_ach" | "dishonored_ach" | "purchase" | "atm" | "reversal" | "card_transaction" | "batch_release" | "dispute" | "adjustment" | "interest" | "check_deposit" | "returned_check_deposit" | "payment_canceled";
28
+ export declare const toDepositAccountTransactionType: (v: string) => "wire" | "originated_ach" | "ach_originating" | "received_ach" | "returned_ach" | "dishonored_ach" | "book" | "purchase" | "atm" | "fee" | "reversal" | "card_transaction" | "batch_release" | "dispute" | "adjustment" | "interest" | "check_deposit" | "returned_check_deposit" | "payment_canceled";
29
29
  export declare type DepositAccountTransactionType = ReturnType<typeof toDepositAccountTransactionType>;
30
30
  export declare const DEPOSIT_TRANSACTION_STATUS_CODE: readonly ["pending", "pending_review", "rejected", "clearing", "failed", "sent", "canceled", "returned"];
31
31
  export declare const toDepositTransactionStatusCode: (v: string) => "failed" | "canceled" | "pending" | "rejected" | "returned" | "pending_review" | "clearing" | "sent" | undefined;
@@ -44,8 +44,6 @@ export interface PaymentAccountPayload {
44
44
  is_primary_for_onboarding: boolean | null;
45
45
  is_primary_for_bill_pay: boolean;
46
46
  is_primary_for_reimbursements: boolean;
47
- is_primary_for_charge_cards: boolean;
48
- is_primary_for_deposit_accounts: boolean;
49
47
  update_time: string;
50
48
  create_time: string;
51
49
  }
@@ -23,8 +23,6 @@ const toPaymentAccount = (payload) => {
23
23
  isPrimaryForOnboarding: Boolean(payload.is_primary_for_onboarding),
24
24
  isPrimaryForBillPay: payload.is_primary_for_bill_pay,
25
25
  isPrimaryForReimbursement: payload.is_primary_for_reimbursements,
26
- isPrimaryForChargeCards: payload.is_primary_for_charge_cards,
27
- isPrimaryForDepositAccounts: payload.is_primary_for_deposit_accounts,
28
26
  balances: payload.balances != null
29
27
  ? {
30
28
  available: payload.balances.available != null
@@ -31,8 +31,6 @@ export interface PaymentAccount {
31
31
  isPrimaryForOnboarding: boolean;
32
32
  isPrimaryForBillPay: boolean;
33
33
  isPrimaryForReimbursement: boolean;
34
- isPrimaryForChargeCards: boolean;
35
- isPrimaryForDepositAccounts: boolean;
36
34
  zeniAccountId: ID;
37
35
  bankAccountId?: ID;
38
36
  updateTime: ZeniDate;
@@ -1,4 +1,4 @@
1
- export declare const toSnackbarMessageSection: (v: string) => "bill_pay_setup" | "reimbursement_setup" | "charge_card_setup" | "common" | "transactionDetails_updatingPastTransactions" | "transactionDetails_transactionUpdated" | "cockpit_month_end_email_sent" | "cockpit_month_end_email_save" | "cockpit_month_end_email_attachment_upload" | "audit_score_updated" | "people_invite_people" | "people_invite_multiple_people" | "people_delete_person" | "people_update_person" | "reimbursement_updated" | "reimbursement_deleted" | "reimbursement_cancelled_deleted" | "reimbursement_cancelled" | "reimbursement_approved" | "reimbursement_rejected" | "reimbursement_sent_for_approval" | "account_added" | "business_verification_save" | "business_verification_submit" | "business_verification_from_bills_submit" | "plaid_connection" | "unlink_deposit_account" | "reimbursement_approval_create" | "reimbursement_duplicate_approval_create" | "reimbursement_approval_update" | "reimbursement_duplicate_approval_update" | "reimbursement_approval_delete" | "reimbursement_create_mileage" | "reimbursement_update_mileage" | "reimbursement_accept_term" | "reimbursement_accept_employee_term" | "zeni_accounts_setup" | "bill_pay_approval_create" | "bill_pay_duplicate_approval_create" | "bill_pay_approval_update" | "bill_pay_duplicate_approval_update" | "bill_pay_approval_delete" | "bill_pay_updated" | "bill_pay_deleted" | "bill_pay_cancelled_deleted" | "bill_pay_cancelled" | "bill_pay_approved" | "real_time_approver_added" | "bill_pay_rejected" | "bill_pay_sent_for_approval" | "bill_pay_accept_term" | "bill_pay_bulk_submit" | "bill_pay_bulk_processed" | "zeni_account_accept_term" | "update_vendor" | "data_refresh_update" | "delete_bank_account" | "create_bank_account" | "create_bank_account_ach" | "create_bank_account_wire" | "create_bank_account_international" | "transfer_money" | "update_zeni_account_nickname" | "create_checking_account" | "deposit_check" | "create_vendor" | "onboarding_customer_view" | "onboarding_customer_view_complete" | "onboarding_customer_identity_verification_save" | "onboarding_customer_identity_verification_submit" | "onboarding_customer_business_verification_save" | "onboarding_customer_business_verification_submit" | "retry_bank_account_connection" | "dashboard_invite_sent" | "onboarding_info_saved" | "approve_original_merchant" | "approve_global_merchant" | "reject_global_merchant" | "create_global_merchant" | "fetch_global_merchant_no_recommendation" | "save_vendor_renamed" | "save_vendor_sent_for_review" | "save_vendor_marked_as_employee" | "save_vendor_marked_as_local_contractor" | "charge_card_accept_term" | "create_schedule" | "save_schedule" | "delete_schedule" | "save_task_detail" | "fetch_task_detail" | "delete_task" | "archive_task" | "create_tag" | "delete_tag" | "update_charge_card" | "issue_charge_card" | "notification_settings_saved" | "referral_invite_sent" | "notification_mark_as_read" | "mark_as_complete_schedule" | "settings_accounting_accounts_updated" | "create_card_setup" | "confirm_card_setup" | "add_card_payment_source" | "fetch_payment_sources" | "task_assigned_toast_notification" | "task_due_tomorrow_toast_notification" | "task_deleted_toast_notification" | "task_archived_toast_notification" | "task_overdue_toast_notification" | "task_overdue_toast_notification_creator" | "task_notification_count" | "task_activities_toast_notification" | "task_created_toast_notification" | "task_group_creation_success" | "task_group_deletion_success" | "task_group_update_success";
1
+ export declare const toSnackbarMessageSection: (v: string) => "reimbursement_setup" | "common" | "transactionDetails_updatingPastTransactions" | "transactionDetails_transactionUpdated" | "cockpit_month_end_email_sent" | "cockpit_month_end_email_save" | "cockpit_month_end_email_attachment_upload" | "audit_score_updated" | "people_invite_people" | "people_invite_multiple_people" | "people_delete_person" | "people_update_person" | "reimbursement_updated" | "reimbursement_deleted" | "reimbursement_cancelled_deleted" | "reimbursement_cancelled" | "reimbursement_approved" | "reimbursement_rejected" | "reimbursement_sent_for_approval" | "account_added" | "business_verification_save" | "business_verification_submit" | "business_verification_from_bills_submit" | "plaid_connection" | "unlink_deposit_account" | "reimbursement_approval_create" | "reimbursement_duplicate_approval_create" | "reimbursement_approval_update" | "reimbursement_duplicate_approval_update" | "reimbursement_approval_delete" | "reimbursement_create_mileage" | "reimbursement_update_mileage" | "reimbursement_accept_term" | "reimbursement_accept_employee_term" | "bill_pay_setup" | "zeni_accounts_setup" | "bill_pay_approval_create" | "bill_pay_duplicate_approval_create" | "bill_pay_approval_update" | "bill_pay_duplicate_approval_update" | "bill_pay_approval_delete" | "bill_pay_updated" | "bill_pay_deleted" | "bill_pay_cancelled_deleted" | "bill_pay_cancelled" | "bill_pay_approved" | "real_time_approver_added" | "bill_pay_rejected" | "bill_pay_sent_for_approval" | "bill_pay_accept_term" | "bill_pay_bulk_submit" | "bill_pay_bulk_processed" | "zeni_account_accept_term" | "update_vendor" | "data_refresh_update" | "delete_bank_account" | "create_bank_account" | "create_bank_account_ach" | "create_bank_account_wire" | "create_bank_account_international" | "transfer_money" | "update_zeni_account_nickname" | "create_checking_account" | "deposit_check" | "create_vendor" | "onboarding_customer_view" | "onboarding_customer_view_complete" | "onboarding_customer_identity_verification_save" | "onboarding_customer_identity_verification_submit" | "onboarding_customer_business_verification_save" | "onboarding_customer_business_verification_submit" | "retry_bank_account_connection" | "dashboard_invite_sent" | "onboarding_info_saved" | "approve_original_merchant" | "approve_global_merchant" | "reject_global_merchant" | "create_global_merchant" | "fetch_global_merchant_no_recommendation" | "save_vendor_renamed" | "save_vendor_sent_for_review" | "save_vendor_marked_as_employee" | "save_vendor_marked_as_local_contractor" | "charge_card_setup" | "charge_card_accept_term" | "create_schedule" | "save_schedule" | "delete_schedule" | "save_task_detail" | "fetch_task_detail" | "delete_task" | "archive_task" | "create_tag" | "delete_tag" | "update_charge_card" | "issue_charge_card" | "notification_settings_saved" | "referral_invite_sent" | "notification_mark_as_read" | "mark_as_complete_schedule" | "settings_accounting_accounts_updated" | "create_card_setup" | "confirm_card_setup" | "add_card_payment_source" | "fetch_payment_sources" | "task_assigned_toast_notification" | "task_due_tomorrow_toast_notification" | "task_deleted_toast_notification" | "task_archived_toast_notification" | "task_overdue_toast_notification" | "task_overdue_toast_notification_creator" | "task_notification_count" | "task_activities_toast_notification" | "task_created_toast_notification" | "task_group_creation_success" | "task_group_deletion_success" | "task_group_update_success";
2
2
  export declare type SnackbarMessageSections = ReturnType<typeof toSnackbarMessageSection>;
3
3
  export declare const toSnackbarMessageSectionTexts: (v: string) => "failed" | "success" | "notification";
4
4
  export declare type SnackbarMessageSectionTexts = ReturnType<typeof toSnackbarMessageSectionTexts>;
@@ -1,8 +1,8 @@
1
1
  import { Observable } from 'rxjs';
2
2
  import { ActionsObservable, StateObservable } from 'redux-observable';
3
3
  import { fetchAllTenants, updateTenantsSuccess, updateTenantsFailure } from '../tenantReducer';
4
+ import { updateCompanies } from '../../company/companyReducer';
4
5
  import { ZeniAPI } from '../../../zeniAPI';
5
6
  import { RootState } from '../../../reducer';
6
- import { updateCompanies } from '../../company/companyReducer';
7
- export declare type ActionType = ReturnType<typeof fetchAllTenants> | ReturnType<typeof updateCompanies> | ReturnType<typeof updateTenantsSuccess> | ReturnType<typeof updateTenantsFailure>;
8
- export declare const fetchAllTenantsEpic: (actions$: ActionsObservable<ActionType>, state: StateObservable<RootState>, zeniAPI: ZeniAPI) => Observable<ActionType>;
7
+ export declare type ActionType = ReturnType<typeof fetchAllTenants> | ReturnType<typeof updateTenantsSuccess> | ReturnType<typeof updateCompanies> | ReturnType<typeof updateTenantsFailure>;
8
+ export declare const fetchAllTenantsEpic: (actions$: ActionsObservable<ActionType>, _: StateObservable<RootState>, zeniAPI: ZeniAPI) => Observable<ActionType>;
@@ -4,32 +4,19 @@ exports.fetchAllTenantsEpic = void 0;
4
4
  const rxjs_1 = require("rxjs");
5
5
  const operators_1 = require("rxjs/operators");
6
6
  const tenantReducer_1 = require("../tenantReducer");
7
- const responsePayload_1 = require("../../../responsePayload");
8
7
  const companyReducer_1 = require("../../company/companyReducer");
9
- const fetchAllTenantsEpic = (actions$, state, zeniAPI) => actions$.pipe((0, operators_1.filter)(tenantReducer_1.fetchAllTenants.match), (0, operators_1.switchMap)((action) => zeniAPI
8
+ const responsePayload_1 = require("../../../responsePayload");
9
+ const fetchAllTenantsEpic = (actions$, _, zeniAPI) => actions$.pipe((0, operators_1.filter)(tenantReducer_1.fetchAllTenants.match), (0, operators_1.switchMap)((action) => zeniAPI
10
10
  .getJSON(`${zeniAPI.apiEndPoints.tenantMicroServiceBaseUrl}/1.0/users/${action.payload.userId}/tenants`, Object.assign({ 'zeni-user-id': action.payload.userId }, { 'zeni-tenant-id': '' }, action.payload.zeniSessionId != null
11
11
  ? { 'zeni-session-id': action.payload.zeniSessionId }
12
12
  : {}))
13
13
  .pipe((0, operators_1.mergeMap)((response) => {
14
- const currentTenantId = state.value.tenantState.currentTenantId;
15
14
  if ((0, responsePayload_1.isSuccessResponse)(response) && response.data != null) {
16
15
  let actions = [(0, tenantReducer_1.updateTenantsSuccess)(response.data)];
17
16
  if (response.data.companies != null) {
18
- let companiesPayload = response.data.companies;
19
- if (currentTenantId != null) {
20
- // filter out this tenant ID related company detail
21
- // Find companyID for this tenant
22
- const currentTenantPayload = response.data.tenants.find((tenant) => tenant.tenant_id === currentTenantId);
23
- if (currentTenantPayload != null) {
24
- companiesPayload = response.data.companies.filter((company) => company.company_id !== currentTenantPayload.company_id);
25
- }
26
- else {
27
- console.warn('Selected tenant record not found in response', currentTenantId);
28
- }
29
- }
30
17
  actions = [
31
18
  (0, companyReducer_1.updateCompanies)({
32
- payload: companiesPayload,
19
+ payload: response.data.companies,
33
20
  schema: {},
34
21
  }),
35
22
  ...actions,
@@ -5,7 +5,7 @@ import { openSnackbar } from '../../../entity/snackbar/snackbarReducer';
5
5
  export declare type ActionType = ReturnType<typeof pushToastNotification> | ReturnType<typeof openSnackbar>;
6
6
  export declare const pushToastNotificationEpic: (actions$: ActionsObservable<ActionType>, state$: StateObservable<RootState>) => import("rxjs").Observable<{
7
7
  payload: {
8
- messageSection: "bill_pay_setup" | "reimbursement_setup" | "charge_card_setup" | "common" | "transactionDetails_updatingPastTransactions" | "transactionDetails_transactionUpdated" | "cockpit_month_end_email_sent" | "cockpit_month_end_email_save" | "cockpit_month_end_email_attachment_upload" | "audit_score_updated" | "people_invite_people" | "people_invite_multiple_people" | "people_delete_person" | "people_update_person" | "reimbursement_updated" | "reimbursement_deleted" | "reimbursement_cancelled_deleted" | "reimbursement_cancelled" | "reimbursement_approved" | "reimbursement_rejected" | "reimbursement_sent_for_approval" | "account_added" | "business_verification_save" | "business_verification_submit" | "business_verification_from_bills_submit" | "plaid_connection" | "unlink_deposit_account" | "reimbursement_approval_create" | "reimbursement_duplicate_approval_create" | "reimbursement_approval_update" | "reimbursement_duplicate_approval_update" | "reimbursement_approval_delete" | "reimbursement_create_mileage" | "reimbursement_update_mileage" | "reimbursement_accept_term" | "reimbursement_accept_employee_term" | "zeni_accounts_setup" | "bill_pay_approval_create" | "bill_pay_duplicate_approval_create" | "bill_pay_approval_update" | "bill_pay_duplicate_approval_update" | "bill_pay_approval_delete" | "bill_pay_updated" | "bill_pay_deleted" | "bill_pay_cancelled_deleted" | "bill_pay_cancelled" | "bill_pay_approved" | "real_time_approver_added" | "bill_pay_rejected" | "bill_pay_sent_for_approval" | "bill_pay_accept_term" | "bill_pay_bulk_submit" | "bill_pay_bulk_processed" | "zeni_account_accept_term" | "update_vendor" | "data_refresh_update" | "delete_bank_account" | "create_bank_account" | "create_bank_account_ach" | "create_bank_account_wire" | "create_bank_account_international" | "transfer_money" | "update_zeni_account_nickname" | "create_checking_account" | "deposit_check" | "create_vendor" | "onboarding_customer_view" | "onboarding_customer_view_complete" | "onboarding_customer_identity_verification_save" | "onboarding_customer_identity_verification_submit" | "onboarding_customer_business_verification_save" | "onboarding_customer_business_verification_submit" | "retry_bank_account_connection" | "dashboard_invite_sent" | "onboarding_info_saved" | "approve_original_merchant" | "approve_global_merchant" | "reject_global_merchant" | "create_global_merchant" | "fetch_global_merchant_no_recommendation" | "save_vendor_renamed" | "save_vendor_sent_for_review" | "save_vendor_marked_as_employee" | "save_vendor_marked_as_local_contractor" | "charge_card_accept_term" | "create_schedule" | "save_schedule" | "delete_schedule" | "save_task_detail" | "fetch_task_detail" | "delete_task" | "archive_task" | "create_tag" | "delete_tag" | "update_charge_card" | "issue_charge_card" | "notification_settings_saved" | "referral_invite_sent" | "notification_mark_as_read" | "mark_as_complete_schedule" | "settings_accounting_accounts_updated" | "create_card_setup" | "confirm_card_setup" | "add_card_payment_source" | "fetch_payment_sources" | "task_assigned_toast_notification" | "task_due_tomorrow_toast_notification" | "task_deleted_toast_notification" | "task_archived_toast_notification" | "task_overdue_toast_notification" | "task_overdue_toast_notification_creator" | "task_notification_count" | "task_activities_toast_notification" | "task_created_toast_notification" | "task_group_creation_success" | "task_group_deletion_success" | "task_group_update_success";
8
+ messageSection: "reimbursement_setup" | "common" | "transactionDetails_updatingPastTransactions" | "transactionDetails_transactionUpdated" | "cockpit_month_end_email_sent" | "cockpit_month_end_email_save" | "cockpit_month_end_email_attachment_upload" | "audit_score_updated" | "people_invite_people" | "people_invite_multiple_people" | "people_delete_person" | "people_update_person" | "reimbursement_updated" | "reimbursement_deleted" | "reimbursement_cancelled_deleted" | "reimbursement_cancelled" | "reimbursement_approved" | "reimbursement_rejected" | "reimbursement_sent_for_approval" | "account_added" | "business_verification_save" | "business_verification_submit" | "business_verification_from_bills_submit" | "plaid_connection" | "unlink_deposit_account" | "reimbursement_approval_create" | "reimbursement_duplicate_approval_create" | "reimbursement_approval_update" | "reimbursement_duplicate_approval_update" | "reimbursement_approval_delete" | "reimbursement_create_mileage" | "reimbursement_update_mileage" | "reimbursement_accept_term" | "reimbursement_accept_employee_term" | "bill_pay_setup" | "zeni_accounts_setup" | "bill_pay_approval_create" | "bill_pay_duplicate_approval_create" | "bill_pay_approval_update" | "bill_pay_duplicate_approval_update" | "bill_pay_approval_delete" | "bill_pay_updated" | "bill_pay_deleted" | "bill_pay_cancelled_deleted" | "bill_pay_cancelled" | "bill_pay_approved" | "real_time_approver_added" | "bill_pay_rejected" | "bill_pay_sent_for_approval" | "bill_pay_accept_term" | "bill_pay_bulk_submit" | "bill_pay_bulk_processed" | "zeni_account_accept_term" | "update_vendor" | "data_refresh_update" | "delete_bank_account" | "create_bank_account" | "create_bank_account_ach" | "create_bank_account_wire" | "create_bank_account_international" | "transfer_money" | "update_zeni_account_nickname" | "create_checking_account" | "deposit_check" | "create_vendor" | "onboarding_customer_view" | "onboarding_customer_view_complete" | "onboarding_customer_identity_verification_save" | "onboarding_customer_identity_verification_submit" | "onboarding_customer_business_verification_save" | "onboarding_customer_business_verification_submit" | "retry_bank_account_connection" | "dashboard_invite_sent" | "onboarding_info_saved" | "approve_original_merchant" | "approve_global_merchant" | "reject_global_merchant" | "create_global_merchant" | "fetch_global_merchant_no_recommendation" | "save_vendor_renamed" | "save_vendor_sent_for_review" | "save_vendor_marked_as_employee" | "save_vendor_marked_as_local_contractor" | "charge_card_setup" | "charge_card_accept_term" | "create_schedule" | "save_schedule" | "delete_schedule" | "save_task_detail" | "fetch_task_detail" | "delete_task" | "archive_task" | "create_tag" | "delete_tag" | "update_charge_card" | "issue_charge_card" | "notification_settings_saved" | "referral_invite_sent" | "notification_mark_as_read" | "mark_as_complete_schedule" | "settings_accounting_accounts_updated" | "create_card_setup" | "confirm_card_setup" | "add_card_payment_source" | "fetch_payment_sources" | "task_assigned_toast_notification" | "task_due_tomorrow_toast_notification" | "task_deleted_toast_notification" | "task_archived_toast_notification" | "task_overdue_toast_notification" | "task_overdue_toast_notification_creator" | "task_notification_count" | "task_activities_toast_notification" | "task_created_toast_notification" | "task_group_creation_success" | "task_group_deletion_success" | "task_group_update_success";
9
9
  messageText: "failed" | "success" | "notification";
10
10
  type: import("../../..").SnackbarMessageType;
11
11
  showStatusIcon?: boolean | undefined;
package/lib/index.d.ts CHANGED
@@ -171,11 +171,11 @@ import { getPeople, getPeopleLocalData } from './view/people/peopleSelector';
171
171
  import { PeopleState, PersonUpdateType, PeoplePageMode, PeopleUIState, PeopleLocalData } from './view/people/peopleState';
172
172
  export { fetchAllPeopleRequiredViews, fetchPeoplePage, fetchPeople, deletePerson, resendInvite, changeZeniPersonRoles, invitePeople, inviteZeniPeople, updatePeopleUIState, peopleSaveUpdates, resetUpdateErrorMessage, peopleSaveDataInLocalStore, peopleClearDataInLocalStore, PeopleSelectorView, PeopleLocalDataView, Person, getPeople, getPeopleLocalData, PeopleState, PersonUpdateType, PeoplePageMode, ZeniPersonUserRoleType, PeopleUIState, PeopleLocalData, initializeEditPerson, };
173
173
  import { clearSettingsView, fetchMyProfileView, fetchMyProfile, fetchBankConnectionsView, fetchBillingAccountsView, fetchNotificationSettings, fetchNotificationSettingsView, refreshQBOData, resetNotificationSettingsLocalData, resetNotificationSettingsUpdateStatus, saveNotificationSettings, updateNotificationSettingsLocalData, updateSettingsViewUIState } from './view/settingsView/settingsViewReducer';
174
- import { MyProfileSelectorView, MyProfile, BankConnectionsSetupView, MyBankConnectionsView, NotificationSettingsSelectorView, IntegrationsView, ProductWisePrimaryAccount, BillingView } from './view/settingsView/types/settingsViewSelectorTypes';
175
- import { getMyProfileView, getApprovalRuleViewDetails, getBankConnectionsSetupViewDetails, getMyBankConnectionsDetails, getIntegrationsView, getNotificationSettingsView, getNotificationSettings, getBillingAccountsViewDetails } from './view/settingsView/settingsViewSelector';
174
+ import { MyProfileSelectorView, MyProfile, BankConnectionsSetupView, MyBankConnectionsView, NotificationSettingsSelectorView, IntegrationsView, BillingView } from './view/settingsView/types/settingsViewSelectorTypes';
175
+ import { getMyProfileView, getApprovalRuleViewDetails, getBankConnectionsSetupViewDetails, getMyBankConnectionsDetails, getIntegrationsView, getNotificationSettingsView, getNotificationSettings } from './view/settingsView/settingsViewSelector';
176
176
  import { SettingsViewState, ReminderNotificationSettingsLocalData, NotificationSettingsLocalData, NotificationSettings, REMINDER_NOTIFICATION_TYPES, ReminderNotificationSettingsData, MonthEndInsightsNotificationSettingsData, MonthEndInsightsNotificationSettingsLocalData, ReminderTypeKey, NotificationModeKey, FrequencyTypeKey, NOTIFICATION_MODES, RemindersLocalData, IntegrationsSettings, SettingsViewUIState } from './view/settingsView/settingsViewState';
177
177
  import { isAccountingTabVisible, isApprovalRulesTabVisible, isBankConnectionsTabVisible, isBusinessVerificationTabVisible, isCompanyDetailsTabVisible, isIntegrationsTabVisible, isSettingsVisible, isMyBankConnectionsTabVisible, isNotificationsTabVisible, isMonthEndNotificationsSectionVisibleOnSettingsPage, isRemindersSectionVisibleOnSettingsPage } from './view/settingsView/settingsViewHelpers';
178
- export { REMINDER_NOTIFICATION_TYPES, NOTIFICATION_MODES, clearSettingsView, fetchMyProfileView, fetchMyProfile, fetchBankConnectionsView, fetchBillingAccountsView, fetchNotificationSettings, saveNotificationSettings, updateNotificationSettingsLocalData, fetchNotificationSettingsView, resetNotificationSettingsLocalData, resetNotificationSettingsUpdateStatus, refreshQBOData, updateSettingsViewUIState, isMonthEndNotificationsSectionVisibleOnSettingsPage, getNotificationSettingsView, getNotificationSettings, getBillingAccountsViewDetails, getMyProfileView, getMyBankConnectionsDetails, isAccountingTabVisible, isApprovalRulesTabVisible, isBankConnectionsTabVisible, isBusinessVerificationTabVisible, isCompanyDetailsTabVisible, isIntegrationsTabVisible, isSettingsVisible, isMyBankConnectionsTabVisible, isNotificationsTabVisible, isRemindersSectionVisibleOnSettingsPage, MyProfileSelectorView, MyBankConnectionsView, BillingView, MyProfile, SettingsViewState, SettingsViewUIState, NotificationSettings, NotificationSettingsLocalData, ReminderNotificationSettingsLocalData, NotificationSettingsSelectorView, ReminderNotificationSettingsData, MonthEndInsightsNotificationSettingsData, MonthEndInsightsNotificationSettingsLocalData, ReminderTypeKey, NotificationModeKey, FrequencyTypeKey, RemindersLocalData, IntegrationsSettings, ProductWisePrimaryAccount, };
178
+ export { REMINDER_NOTIFICATION_TYPES, NOTIFICATION_MODES, clearSettingsView, fetchMyProfileView, fetchMyProfile, fetchBankConnectionsView, fetchBillingAccountsView, fetchNotificationSettings, saveNotificationSettings, updateNotificationSettingsLocalData, fetchNotificationSettingsView, resetNotificationSettingsLocalData, resetNotificationSettingsUpdateStatus, refreshQBOData, updateSettingsViewUIState, isMonthEndNotificationsSectionVisibleOnSettingsPage, getNotificationSettingsView, getNotificationSettings, getMyProfileView, getMyBankConnectionsDetails, isAccountingTabVisible, isApprovalRulesTabVisible, isBankConnectionsTabVisible, isBusinessVerificationTabVisible, isCompanyDetailsTabVisible, isIntegrationsTabVisible, isSettingsVisible, isMyBankConnectionsTabVisible, isNotificationsTabVisible, isRemindersSectionVisibleOnSettingsPage, MyProfileSelectorView, MyBankConnectionsView, BillingView, MyProfile, SettingsViewState, SettingsViewUIState, NotificationSettings, NotificationSettingsLocalData, ReminderNotificationSettingsLocalData, NotificationSettingsSelectorView, ReminderNotificationSettingsData, MonthEndInsightsNotificationSettingsData, MonthEndInsightsNotificationSettingsLocalData, ReminderTypeKey, NotificationModeKey, FrequencyTypeKey, RemindersLocalData, IntegrationsSettings, };
179
179
  import { PeopleViewSortKey } from './view/people/peopleTypes';
180
180
  export { PeopleViewSortKey };
181
181
  import { fetchBalanceSheet, resetBalanceSheetNodeCollapseState, updateBalanceSheetUIState } from './view/balanceSheet/balanceSheetReducer';
@@ -291,8 +291,8 @@ import { companyManagementSaveUpdates, fetchAllCockpitViews, fetchCompanyManagem
291
291
  export { companyManagementSaveUpdates, fetchAllCockpitViews, fetchCompanyManagementView, fetchCompanyPortfolioView, updateCompanyPortfolioUIState, updateCompanyManagementUIState, fetchParentSubsidiaryManagementView, fetchOnboardingView, fetchManagementView, fetchPortfolioView, fetchSubscriptionView, fetchZeniUsers, updateCompanyDownloadState, };
292
292
  import { fetchReviewCompanyView, updateReviewCompanyListUIState, retryBankAccountConnection } from './view/reviewCompanyView/reviewCompanyViewReducer';
293
293
  import { ReviewCompanySelectorView, getReviewCompanySelectorView, getReviewCompanyListCount, ReviewCompanyView, getAuditWarningsCount } from './view/reviewCompanyView/reviewCompanyViewSelector';
294
- import { ReviewCompanyColumnKey, ReviewTransactionsType, AuditSummary, ReviewCompanyListUIState, toReviewColumnKeyType } from './view/reviewCompanyView/reviewCompanyViewState';
295
- export { fetchReviewCompanyView, updateReviewCompanyListUIState, ReviewCompanyListUIState, ReviewCompanyView, ReviewCompanyColumnKey, ReviewTransactionsType, ReviewCompanySelectorView, getReviewCompanySelectorView, getReviewCompanyListCount, toReviewColumnKeyType, retryBankAccountConnection, AuditSummary, getAuditWarningsCount, };
294
+ import { ReviewCompanyColumnKey, ReviewTransactionsType, AuditSummary, ReviewCompanyListUIState } from './view/reviewCompanyView/reviewCompanyViewState';
295
+ export { fetchReviewCompanyView, updateReviewCompanyListUIState, ReviewCompanyListUIState, ReviewCompanyView, ReviewCompanyColumnKey, ReviewTransactionsType, ReviewCompanySelectorView, getReviewCompanySelectorView, getReviewCompanyListCount, retryBankAccountConnection, AuditSummary, getAuditWarningsCount, };
296
296
  import { CompanyPortfolioView, getCompanyPortfolioView, isInfiniteRunway } from './view/companyView/selector/companyPortfolioViewSelector';
297
297
  export { CompanyPortfolioView, getCompanyPortfolioView, isInfiniteRunway };
298
298
  import { AllCockpitTabsView, getAllCockpitTabsFilterView } from './view/companyView/selector/getAllCockpitTabsFilterView';
@@ -407,12 +407,12 @@ import { SetupViewState, SetupViewLocalData } from './view/spendManagement/commo
407
407
  import { enableSetup, updateSelectedCompanyOfficer, updateSetupViewLocalStoreData, updateBusinessVerificationDetails, saveSetupViewDataInLocalStore, saveCompnayOfficerPhoneInLocalStore, saveCompnayOfficerAdditionalDocumentsInLocalStore, clearSetupViewDataInLocalStore, saveIndustryAndIncDateInLocalStore } from './view/spendManagement/commonSetup/setupViewReducer';
408
408
  import { BillPaySetupView, BillPayBusinessVerificationDetails, getBillPaySetupViewDetails, getBillPayBusinessVerificationDetails } from './view/spendManagement/billPay/billPaySetupView/billPaySetupViewSelector';
409
409
  import { getPlaidAccountDetails } from './view/spendManagement/plaidAccount/plaidAccountViewSelector';
410
- import { PlaidAccountState, PlaidConnectionDetails, PlaidLinkTokenType, PlaidAccountKeyType } from './view/spendManagement/plaidAccount/plaidAccountViewState';
410
+ import { PlaidAccountState, PlaidConnectionDetails, PlaidLinkTokenType } from './view/spendManagement/plaidAccount/plaidAccountViewState';
411
411
  import { ZeniAccountSetupView, ZeniAccountBusinessVerificationDetails, getZeniAccountSetupViewDetails, getZeniAccountBusinessVerificationDetails } from './view/spendManagement/zeniAccounts/zeniAccountSetUp/zeniAccountSetupViewSelector';
412
412
  import { SetupView, BusinessVerificationDetails, CompanyDetails, CompanyOfficersDetails, getCommonSetupViewDetails, getBusinessVerificationDetails, FundingAccount } from './view/spendManagement/commonSetup/setupViewSelector';
413
413
  import { sendOtp, resendOtp, verifyOtp } from './view/twoFactorAuthentication/twoFactorAuthenticationReducer';
414
414
  import { CustomerToken } from './view/twoFactorAuthentication/twoFactorAuthentication';
415
- export { BillPaySetupViewState, ZeniAccountSetupViewState, BillPaySetupViewLocalData, ZeniAccountSetupViewLocalData, PlaidAccountState, fetchBillPaySetupView, fetchZeniAccountSetupView, enableSetup, getPaymentAccounts, getPlaidLinkToken, updateSelectedCompanyOfficer, updateSetupViewLocalStoreData, updateBusinessVerificationDetails, updatePaymentAccount, updatePaymentAccountLoginStatus, updatePaymentAccountStatus, establishPlaidConnection, updateMappedCashAccount, updatePrimaryFundingAccount, acceptBillPayTerms, acceptZeniAccountTerms, acceptBillPayUpdatedTerms, saveSetupViewDataInLocalStore, saveCompnayOfficerPhoneInLocalStore, saveCompnayOfficerAdditionalDocumentsInLocalStore, saveIndustryAndIncDateInLocalStore, clearSetupViewDataInLocalStore, clearBillPaySetupView, clearZeniAccountSetupView, sendOtp, resendOtp, verifyOtp, CompanyDetails, CompanyOfficersDetails, BillPaySetupView, ZeniAccountSetupView, BillPayBusinessVerificationDetails, ZeniAccountBusinessVerificationDetails, SetupViewState, SetupViewLocalData, SetupView, BusinessVerificationDetails, getBillPaySetupViewDetails, getPlaidAccountDetails, getZeniAccountSetupViewDetails, getBusinessVerificationDetails, getBillPayBusinessVerificationDetails, getZeniAccountBusinessVerificationDetails, getCommonSetupViewDetails, PlaidConnectionDetails, PlaidLinkTokenType, PlaidAccountKeyType, CustomerToken, FundingAccount, };
415
+ export { BillPaySetupViewState, ZeniAccountSetupViewState, BillPaySetupViewLocalData, ZeniAccountSetupViewLocalData, PlaidAccountState, fetchBillPaySetupView, fetchZeniAccountSetupView, enableSetup, getPaymentAccounts, getPlaidLinkToken, updateSelectedCompanyOfficer, updateSetupViewLocalStoreData, updateBusinessVerificationDetails, updatePaymentAccount, updatePaymentAccountLoginStatus, updatePaymentAccountStatus, establishPlaidConnection, updateMappedCashAccount, updatePrimaryFundingAccount, acceptBillPayTerms, acceptZeniAccountTerms, acceptBillPayUpdatedTerms, saveSetupViewDataInLocalStore, saveCompnayOfficerPhoneInLocalStore, saveCompnayOfficerAdditionalDocumentsInLocalStore, saveIndustryAndIncDateInLocalStore, clearSetupViewDataInLocalStore, clearBillPaySetupView, clearZeniAccountSetupView, sendOtp, resendOtp, verifyOtp, CompanyDetails, CompanyOfficersDetails, BillPaySetupView, ZeniAccountSetupView, BillPayBusinessVerificationDetails, ZeniAccountBusinessVerificationDetails, SetupViewState, SetupViewLocalData, SetupView, BusinessVerificationDetails, getBillPaySetupViewDetails, getPlaidAccountDetails, getZeniAccountSetupViewDetails, getBusinessVerificationDetails, getBillPayBusinessVerificationDetails, getZeniAccountBusinessVerificationDetails, getCommonSetupViewDetails, PlaidConnectionDetails, PlaidLinkTokenType, CustomerToken, FundingAccount, };
416
416
  export { BankConnectionsSetupView, IntegrationsView, getApprovalRuleViewDetails, getBankConnectionsSetupViewDetails, getIntegrationsView, };
417
417
  import { fetchUserFinancialAccount } from './view/userFinancialAccount/userFinancialAccountReducer';
418
418
  export { fetchUserFinancialAccount };
@@ -493,9 +493,9 @@ import { getSpendManagementEffectiveListPeriod, getSelectedCompanyOfficer, showB
493
493
  export { getSpendManagementEffectiveListPeriod, getSelectedCompanyOfficer, showBillPayPromoPage, showReimbursementPromoPage, getActualPaymentDate, isVerifiedStatusCode, isBillProcessing, getBillListUniqueType, };
494
494
  import { FilterCategoryValueType, canSendMonthEndEmailReport, shouldEnableCalendarPickerForLastReportSent } from './view/companyView/helpers/cockpitHelpers';
495
495
  export { FilterCategoryValueType, canSendMonthEndEmailReport, shouldEnableCalendarPickerForLastReportSent, };
496
- import { BillPayConfig, BillPaymentConfigCodeType, BillPaymentSubConfigCodeType, Country, VendorCurrency, InternationalSubConfigCodeType, BILL_NEW_PAYMENT_METHODS, NEW_INTERNATIONAL_METHOD_SUBTEXT, SWIFT_OUR_INTERNATIONAL_METHOD_SUBTEXT, LOCAL_CURRENCY_INTERNATIONAL_METHOD_SUBTEXT, AccountTypeSubConfigCodeKeyType } from './view/spendManagement/billPay/billPayConfig/billPayConfigState';
496
+ import { BillPayConfig, BillPaymentConfigCodeType, BillPaymentSubConfigCodeType, Country, VendorCurrency, InternationalSubConfigCodeType, BILL_NEW_PAYMENT_METHODS, NEW_INTERNATIONAL_METHOD_SUBTEXT, SWIFT_OUR_INTERNATIONAL_METHOD_SUBTEXT, LOCAL_CURRENCY_INTERNATIONAL_METHOD_SUBTEXT } from './view/spendManagement/billPay/billPayConfig/billPayConfigState';
497
497
  import { getInternationalSubConfigCodeKey } from './view/spendManagement/billPay/billPayConfig/billPayConfigPayload';
498
- export { Country, BillPayConfig, BillPaymentConfigCodeType, BillPaymentSubConfigCodeType, getInternationalSubConfigCodeKey, InternationalSubConfigCodeType, BILL_NEW_PAYMENT_METHODS, NEW_INTERNATIONAL_METHOD_SUBTEXT, SWIFT_OUR_INTERNATIONAL_METHOD_SUBTEXT, LOCAL_CURRENCY_INTERNATIONAL_METHOD_SUBTEXT, AccountTypeSubConfigCodeKeyType, };
498
+ export { Country, BillPayConfig, BillPaymentConfigCodeType, BillPaymentSubConfigCodeType, getInternationalSubConfigCodeKey, InternationalSubConfigCodeType, BILL_NEW_PAYMENT_METHODS, NEW_INTERNATIONAL_METHOD_SUBTEXT, SWIFT_OUR_INTERNATIONAL_METHOD_SUBTEXT, LOCAL_CURRENCY_INTERNATIONAL_METHOD_SUBTEXT, };
499
499
  import { BillPayCardReport } from './view/billPayCard/billPayCardSelector';
500
500
  import { ReimbursementCardReport } from './view/reimbursementCard/reimbursementCardSelector';
501
501
  import { Recommendation } from './commonStateTypes/recommendationBase';