@zeniai/client-epic-state 4.11.58 → 4.11.59

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 (81) hide show
  1. package/lib/entity/cardPayment/cardPaymentPayload.d.ts +2 -2
  2. package/lib/entity/cardPayment/cardPaymentPayload.js +14 -11
  3. package/lib/entity/chargeCardTransaction/chargeCardTransaction.d.ts +1 -1
  4. package/lib/entity/company/companyPayload.d.ts +12 -0
  5. package/lib/entity/company/companyPayload.js +21 -0
  6. package/lib/entity/company/companyReducer.d.ts +7 -0
  7. package/lib/entity/company/companyReducer.js +22 -2
  8. package/lib/entity/company/companyStateTypes.d.ts +12 -0
  9. package/lib/entity/depositAccountTransaction/depositAccountTransaction.d.ts +1 -1
  10. package/lib/entity/paymentAccount/paymentAccountPayload.d.ts +2 -0
  11. package/lib/entity/paymentAccount/paymentAccountPayload.js +2 -0
  12. package/lib/entity/paymentAccount/paymentAccountState.d.ts +2 -0
  13. package/lib/entity/snackbar/snackbarTypes.d.ts +1 -1
  14. package/lib/entity/snackbar/snackbarTypes.js +1 -0
  15. package/lib/entity/tenant/epic/fetchAllTenantsEpic.d.ts +3 -3
  16. package/lib/entity/tenant/epic/fetchAllTenantsEpic.js +16 -3
  17. package/lib/entity/toastNotification/epic/pushToastNotificationEpic.d.ts +1 -1
  18. package/lib/index.d.ts +11 -11
  19. package/lib/index.js +22 -18
  20. package/lib/view/bankAccountView/epic/createBankAccountEpic.js +5 -3
  21. package/lib/view/cardPayment/epic/addCardPaymentSourceEpic.d.ts +1 -1
  22. package/lib/view/cardPayment/epic/confirmCardSetupIntentEpic.d.ts +1 -1
  23. package/lib/view/cardPayment/epic/createCardSetupIntentEpic.d.ts +1 -1
  24. package/lib/view/cardPayment/epic/fetchPaymentSourcesEpic.d.ts +1 -1
  25. package/lib/view/companyView/types/cockpitTypes.d.ts +2 -2
  26. package/lib/view/onboardingView/customerView/epic/plaidConnection/establishOnboardingPlaidConnectionEpic.js +2 -0
  27. package/lib/view/people/changeZeniPersonRolesEpic.d.ts +1 -1
  28. package/lib/view/people/deletePersonEpic.d.ts +1 -1
  29. package/lib/view/people/invitePeopleEpic.d.ts +1 -1
  30. package/lib/view/people/inviteZeniPeopleEpic.d.ts +1 -1
  31. package/lib/view/people/resendInviteEpic.d.ts +1 -1
  32. package/lib/view/referralView/referralState.d.ts +1 -1
  33. package/lib/view/reviewCompanyView/reviewCompanyViewSelector.js +45 -41
  34. package/lib/view/scheduleView/scheduleListView/scheduleListTypes.d.ts +1 -1
  35. package/lib/view/settingsView/epic/fetchBankConnectionsViewEpic.d.ts +6 -4
  36. package/lib/view/settingsView/epic/fetchBankConnectionsViewEpic.js +29 -6
  37. package/lib/view/settingsView/epic/saveNotificationSettingsEpic.d.ts +1 -1
  38. package/lib/view/settingsView/settingsViewReducer.d.ts +3 -1
  39. package/lib/view/settingsView/settingsViewReducer.js +11 -2
  40. package/lib/view/settingsView/settingsViewSelector.d.ts +1 -1
  41. package/lib/view/settingsView/settingsViewSelector.js +59 -7
  42. package/lib/view/settingsView/types/settingsViewSelectorTypes.d.ts +10 -2
  43. package/lib/view/spendManagement/billPay/billPayReview/billPayReviewSelector.js +2 -3
  44. package/lib/view/spendManagement/billPay/billPaySetupView/billPaySetupViewSelector.js +1 -1
  45. package/lib/view/spendManagement/billPay/billPaySetupView/epic/billPaySetup/fetchBillPaySetupViewEpic.d.ts +4 -1
  46. package/lib/view/spendManagement/billPay/billPaySetupView/epic/billPaySetup/fetchBillPaySetupViewEpic.js +16 -4
  47. package/lib/view/spendManagement/billPay/billsBulkActionView/billsBulkActionViewReducer.js +1 -1
  48. package/lib/view/spendManagement/billPay/billsBulkActionView/billsBulkActionViewSelector.d.ts +3 -1
  49. package/lib/view/spendManagement/billPay/billsBulkActionView/billsBulkActionViewSelector.js +20 -3
  50. package/lib/view/spendManagement/billPay/billsBulkActionView/billsBulkActionViewState.d.ts +4 -1
  51. package/lib/view/spendManagement/billPay/billsBulkActionView/billsBulkActionViewState.js +18 -1
  52. package/lib/view/spendManagement/billPay/billsBulkActionView/epics/submitDraftBillsBulkActionEpic.js +25 -6
  53. package/lib/view/spendManagement/billPay/editBillView/editBillViewSelector.js +15 -12
  54. package/lib/view/spendManagement/billPay/editBillView/epics/fetchEditBillDetailPageEpic.d.ts +2 -2
  55. package/lib/view/spendManagement/billPay/editBillView/epics/fetchEditBillDetailPageEpic.js +6 -6
  56. package/lib/view/spendManagement/billPay/editBillView/epics/initializeBillToLocalStoreEpic.d.ts +1 -2
  57. package/lib/view/spendManagement/chargeCards/chargeCardSetUp/chargeCardSetUpViewSelector.js +1 -1
  58. package/lib/view/spendManagement/chargeCards/chargeCardSetUp/epic/fetchChargeCardSetupViewEpic.d.ts +4 -1
  59. package/lib/view/spendManagement/chargeCards/chargeCardSetUp/epic/fetchChargeCardSetupViewEpic.js +16 -4
  60. package/lib/view/spendManagement/commonSetup/setupViewSelector.d.ts +4 -0
  61. package/lib/view/spendManagement/commonSetup/setupViewSelector.js +47 -31
  62. package/lib/view/spendManagement/plaidAccount/epic/paymentAccounts/updateMappedCashAccountEpic.js +4 -5
  63. package/lib/view/spendManagement/plaidAccount/epic/paymentAccounts/updatePaymentAccountEpic.js +1 -2
  64. package/lib/view/spendManagement/plaidAccount/epic/paymentAccounts/updatePaymentAccountStatusEpic.js +1 -2
  65. package/lib/view/spendManagement/plaidAccount/epic/paymentAccounts/updatePrimaryFundingAccountEpic.d.ts +2 -1
  66. package/lib/view/spendManagement/plaidAccount/epic/paymentAccounts/updatePrimaryFundingAccountEpic.js +59 -12
  67. package/lib/view/spendManagement/plaidAccount/epic/plaidConnection/establishPlaidConnectionEpic.d.ts +2 -1
  68. package/lib/view/spendManagement/plaidAccount/epic/plaidConnection/establishPlaidConnectionEpic.js +52 -16
  69. package/lib/view/spendManagement/plaidAccount/epic/plaidConnection/getPlaidLinkTokenEpic.js +1 -1
  70. package/lib/view/spendManagement/plaidAccount/plaidAccountViewReducer.d.ts +21 -27
  71. package/lib/view/spendManagement/plaidAccount/plaidAccountViewReducer.js +47 -74
  72. package/lib/view/spendManagement/plaidAccount/plaidAccountViewState.d.ts +3 -8
  73. package/lib/view/spendManagement/plaidAccount/plaidAccountViewState.js +6 -3
  74. package/lib/view/spendManagement/reimbursement/remiSetupView/epic/remiSetup/fetchRemiSetupViewEpic.js +6 -19
  75. package/lib/view/spendManagement/zeniAccounts/zeniAccountList/zeniAccountListSelector.js +2 -2
  76. package/lib/view/spendManagement/zeniAccounts/zeniAccountSetUp/epic/fetchZeniAccountSetupViewEpic.d.ts +4 -1
  77. package/lib/view/spendManagement/zeniAccounts/zeniAccountSetUp/epic/fetchZeniAccountSetupViewEpic.js +20 -9
  78. package/lib/view/spendManagement/zeniAccounts/zeniAccountSetUp/zeniAccountSetupViewSelector.js +1 -1
  79. package/lib/view/tagView/epics/createTagEpic.d.ts +6 -6
  80. package/lib/view/tagView/epics/deleteTagEpic.d.ts +6 -6
  81. 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;
8
+ first_name: string | null;
9
9
  last4: string;
10
- last_name: string;
10
+ last_name: string | null;
11
11
  masked_number: string;
12
12
  }
13
13
  export declare const mapCardPaymentPayloadToCardPayment: (payload: CardPaymentPayload) => CardPayment;
@@ -1,15 +1,18 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.mapCardPaymentPayloadToCardPayment = void 0;
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
- });
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
+ };
15
18
  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" | "authorized" | "declined";
35
+ export declare const toCardTransactionStatusCode: (v: string) => "canceled" | "paid" | "declined" | "authorized";
36
36
  export declare type ChargeCardTransactionStatusCode = ReturnType<typeof toCardTransactionStatusCode>;
@@ -100,6 +100,10 @@ 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
+ };
103
107
  }
104
108
  export interface UserReimbursementInfoDataPayload {
105
109
  reimbursement_tos_acceptance_user_agent: string | null;
@@ -122,6 +126,10 @@ export interface CompanyZeniAccountInfoDataPayload {
122
126
  deposit_accounts_tos_acceptance_ip: string | null;
123
127
  is_deposit_accounts_enabled: boolean;
124
128
  deposit_accounts_tos_acceptance_user_id: string | null;
129
+ primary_funding_account: {
130
+ account_id: string | null;
131
+ account_type: string | null;
132
+ };
125
133
  }
126
134
  export interface CompanyChargeCardInfoDataPayload {
127
135
  charge_cards_tos_acceptance_time: string | null;
@@ -130,6 +138,10 @@ export interface CompanyChargeCardInfoDataPayload {
130
138
  charge_cards_tos_acceptance_ip: string | null;
131
139
  is_charge_cards_tos_accepted: boolean;
132
140
  is_charge_cards_enabled: boolean;
141
+ primary_funding_account: {
142
+ account_id: string | null;
143
+ account_type: string | null;
144
+ };
133
145
  }
134
146
  export interface CompanyBillPayInfoPayload {
135
147
  bill_pay_info: CompanyBillPayInfoDataPayload;
@@ -148,6 +148,13 @@ 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,
151
158
  });
152
159
  };
153
160
  exports.toCompanyBillPayInfo = toCompanyBillPayInfo;
@@ -183,6 +190,13 @@ const toCompanyZeniAccountInfo = (payload) => {
183
190
  zeniAccountTOSAcceptanceIp: (_c = payload === null || payload === void 0 ? void 0 : payload.deposit_accounts_tos_acceptance_ip) !== null && _c !== void 0 ? _c : undefined,
184
191
  isZeniAccountTOSAccepted: (_d = payload === null || payload === void 0 ? void 0 : payload.is_deposit_accounts_tos_accepted) !== null && _d !== void 0 ? _d : false,
185
192
  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,
186
200
  });
187
201
  };
188
202
  exports.toCompanyZeniAccountInfo = toCompanyZeniAccountInfo;
@@ -197,6 +211,13 @@ const toCompanyChargeCardInfo = (payload) => {
197
211
  chargeCardTOSAcceptanceIp: (_c = payload.charge_cards_tos_acceptance_ip) !== null && _c !== void 0 ? _c : undefined,
198
212
  isChargeCardTOSAccepted: (_d = payload.is_charge_cards_tos_accepted) !== null && _d !== void 0 ? _d : false,
199
213
  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,
200
221
  });
201
222
  };
202
223
  exports.toCompanyChargeCardInfo = toCompanyChargeCardInfo;
@@ -2,6 +2,8 @@ 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';
5
7
  export declare const initialState: CompanyState;
6
8
  export declare const updateCompanies: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
7
9
  payload: CompanyPayload[];
@@ -32,6 +34,11 @@ export declare const updateCompanies: import("@reduxjs/toolkit").ActionCreatorWi
32
34
  }, string>, updateOnboardingInfoOnRetryBankAccountConnectionSuccess: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
33
35
  companyId: ID;
34
36
  onboardingInfo?: OnboardingInfoPayload | undefined;
37
+ }, string>, updateCompanyPrimaryAccount: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
38
+ companyId: ID;
39
+ primaryFundingAccountId: ID;
40
+ accountType: AccountTypeSubConfigCodeKeyType;
41
+ productType: SpendManagementEntityType;
35
42
  }, string>;
36
43
  declare const _default: import("@reduxjs/toolkit").Reducer<CompanyState, import("@reduxjs/toolkit").AnyAction>;
37
44
  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.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.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;
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,6 +160,26 @@ 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
+ },
163
183
  clearAllCompanies: {
164
184
  // eslint-disable-next-line @typescript-eslint/no-inferrable-types
165
185
  prepare(keepCompanyState) {
@@ -173,5 +193,5 @@ const company = (0, toolkit_1.createSlice)({
173
193
  },
174
194
  },
175
195
  });
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;
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;
177
197
  exports.default = company.reducer;
@@ -169,6 +169,10 @@ export interface CompanyBillPayInfo {
169
169
  billPaymentAccountSetupStatus?: AllowedValueWithCode;
170
170
  billPaymentMethodType?: AllowedValueWithCode;
171
171
  payNowCutOffTimeByMethod: BillPayNowCutOffByMethod;
172
+ primaryFundingAccount?: {
173
+ accountId: ID;
174
+ accountType: AccountTypeSubConfigCodeKeyType;
175
+ };
172
176
  }
173
177
  export interface UserReimbursementInfo {
174
178
  isReimbursementTOSAccepted: boolean;
@@ -193,6 +197,10 @@ export interface UserZeniAccountInfo {
193
197
  export interface CompanyZeniAccountInfo extends UserZeniAccountInfo {
194
198
  isZeniAccountEnabled: boolean;
195
199
  zeniAccountTOSAcceptanceUserid?: ID;
200
+ primaryFundingAccount?: {
201
+ accountId: ID;
202
+ accountType: AccountTypeSubConfigCodeKeyType;
203
+ };
196
204
  }
197
205
  export interface UserChargeCardInfo {
198
206
  isChargeCardTOSAccepted: boolean;
@@ -203,6 +211,10 @@ export interface UserChargeCardInfo {
203
211
  export interface CompanyChargeCardInfo extends UserChargeCardInfo {
204
212
  isChargeCardEnabled: boolean;
205
213
  chargeCardTOSAcceptanceUserid?: ID;
214
+ primaryFundingAccount?: {
215
+ accountId: ID;
216
+ accountType: AccountTypeSubConfigCodeKeyType;
217
+ };
206
218
  }
207
219
  export interface CompanyFeaturesActivationInfo {
208
220
  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" | "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";
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";
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,6 +44,8 @@ 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;
47
49
  update_time: string;
48
50
  create_time: string;
49
51
  }
@@ -23,6 +23,8 @@ 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,
26
28
  balances: payload.balances != null
27
29
  ? {
28
30
  available: payload.balances.available != null
@@ -31,6 +31,8 @@ export interface PaymentAccount {
31
31
  isPrimaryForOnboarding: boolean;
32
32
  isPrimaryForBillPay: boolean;
33
33
  isPrimaryForReimbursement: boolean;
34
+ isPrimaryForChargeCards: boolean;
35
+ isPrimaryForDepositAccounts: boolean;
34
36
  zeniAccountId: ID;
35
37
  bankAccountId?: ID;
36
38
  updateTime: ZeniDate;
@@ -1,4 +1,4 @@
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";
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" | "primary_funding_account_updated";
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>;
@@ -120,6 +120,7 @@ const ALL_SNACKBAR_MESSAGE_SECTIONS = [
120
120
  'task_group_creation_success',
121
121
  'task_group_deletion_success',
122
122
  'task_group_update_success',
123
+ 'primary_funding_account_updated',
123
124
  ];
124
125
  const toSnackbarMessageSection = (v) => (0, stringToUnion_1.stringToUnion)(v, ALL_SNACKBAR_MESSAGE_SECTIONS);
125
126
  exports.toSnackbarMessageSection = toSnackbarMessageSection;
@@ -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';
5
4
  import { ZeniAPI } from '../../../zeniAPI';
6
5
  import { RootState } from '../../../reducer';
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>;
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>;
@@ -4,19 +4,32 @@ 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 companyReducer_1 = require("../../company/companyReducer");
8
7
  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
8
+ 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
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;
14
15
  if ((0, responsePayload_1.isSuccessResponse)(response) && response.data != null) {
15
16
  let actions = [(0, tenantReducer_1.updateTenantsSuccess)(response.data)];
16
17
  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
+ }
17
30
  actions = [
18
31
  (0, companyReducer_1.updateCompanies)({
19
- payload: response.data.companies,
32
+ payload: companiesPayload,
20
33
  schema: {},
21
34
  }),
22
35
  ...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: "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";
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" | "primary_funding_account_updated";
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, BillingView } from './view/settingsView/types/settingsViewSelectorTypes';
175
- import { getMyProfileView, getApprovalRuleViewDetails, getBankConnectionsSetupViewDetails, getMyBankConnectionsDetails, getIntegrationsView, getNotificationSettingsView, getNotificationSettings } from './view/settingsView/settingsViewSelector';
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';
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, 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, };
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, };
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 } from './view/reviewCompanyView/reviewCompanyViewState';
295
- export { fetchReviewCompanyView, updateReviewCompanyListUIState, ReviewCompanyListUIState, ReviewCompanyView, ReviewCompanyColumnKey, ReviewTransactionsType, ReviewCompanySelectorView, getReviewCompanySelectorView, getReviewCompanyListCount, retryBankAccountConnection, AuditSummary, getAuditWarningsCount, };
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, };
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';
@@ -375,7 +375,7 @@ export { BillTransaction, BillPayInfo, BillStage, BillStageCodeType, BillTransac
375
375
  import { BillsSubTabType, BillTab, SaveBillStageCode, BillListUIState, BillPayViewSortKey, BillPayFilters, BillPayFilterCategory, BillListViewFilterCategoryField, BILL_PAY_FILTER_CATEGORIES } from './view/spendManagement/billPay/billList/billListState';
376
376
  import { fetchBillList, fetchBillListPerTab, updateTab, updateSubTab, updateSelectedBillId, updateBillDetailSaveBillCode, updateBillListUIState, updateSearchResult as updateBillListSearchResult, updateFilterResult as updateBillListFilterResult, updateBillListDownloadUIState } from './view/spendManagement/billPay/billList/billListReducer';
377
377
  import { updateBillsBulkActionList, removeBillFromBulkActionList, clearAllBillsFromBulkActionList, reviewDraftBillsBulkAction, approveOrRejectBillsBulkAction, cancelOrDeleteBillsBulkAction, submitDraftBillsBulkAction, autoReviewPendingApprovalBills, incrementBulkActionProcessedCount, clearBillPayBulkActionView } from './view/spendManagement/billPay/billsBulkActionView/billsBulkActionViewReducer';
378
- import { getBillsBulkReviewView, BillsBulkReviewView, getBillsBulkOperationProgress } from './view/spendManagement/billPay/billsBulkActionView/billsBulkActionViewSelector';
378
+ import { getBillsBulkReviewView, BillsBulkReviewView, getBillsBulkOperationProgress, isBillConditionallyValid } from './view/spendManagement/billPay/billsBulkActionView/billsBulkActionViewSelector';
379
379
  import { BulkOperationType, BulkSelectExceptionInfoType, BulkOperationProgress } from './view/spendManagement/billPay/billsBulkActionView/billsBulkActionViewState';
380
380
  import { getBillList, BillListReport, BillTransactionView } from './view/spendManagement/billPay/billList/billListSelector';
381
381
  import { BillListDownloadReport, getBillDownloadList } from './view/spendManagement/billPay/billList/billListDownloadSelector';
@@ -393,7 +393,7 @@ import { RemiTabType, RemiSubTabType, toRemiSubTabType, toRemiSubTabTypeStrict,
393
393
  import { getRemiList, RemiListReport, ReimbursementView } from './view/spendManagement/reimbursement/remiListView/remiListSelector';
394
394
  import { RemiListDownloadReport, getRemiDownloadList } from './view/spendManagement/reimbursement/remiListView/remiListDownloadSelector';
395
395
  import { fetchRemiList, fetchRemiListPerTab, updateTab as updateRemiListTab, updateSubTab as updateRemiListSubTab, updateRemiDetailSaveRemiCode, updateRemiListUIState, updateSearchResult as updateRemiListSearchResult, updateFilterResult as updateRemiListFilterResult, updateRemiListDownloadUIState } from './view/spendManagement/reimbursement/remiListView/remiListReducer';
396
- export { MilageReimbursementLine, OutofPocketReimbursementLine, ReimbursementLine, ReimbursementTypeCode, Reimbursement, RemiTabType, toRemiSubTabType, toRemiSubTabTypeStrict, toRemiTabType, toRemiTabTypeStrict, RemiSubTabType, ReimbursementViewSortKey, RemiListUIState, RemiListReport, RemiListDownloadReport, ReimbursementView, ReimbursementFilters, ReimbursementFilterCategory, RemiListViewFilterCategoryField, getRemiList, getRemiDownloadList, fetchRemiList, fetchRemiListPerTab, updateRemiListTab, updateRemiListSubTab, updateRemiDetailSaveRemiCode, updateRemiListUIState, updateRemiListSearchResult, updateBillListFilterResult, updateRemiListFilterResult, REIMBURSEMENT_FILTER_CATEGORIES, REIMBURSEMENT_FILTER_CATEGORIES_RESTRICTED, updateRemiListDownloadUIState, updateBillListDownloadUIState, updateBillsBulkActionList, removeBillFromBulkActionList, clearAllBillsFromBulkActionList, getBillsBulkReviewView, BillsBulkReviewView, reviewDraftBillsBulkAction, approveOrRejectBillsBulkAction, cancelOrDeleteBillsBulkAction, submitDraftBillsBulkAction, autoReviewPendingApprovalBills, BulkOperationType, BulkSelectExceptionInfoType, incrementBulkActionProcessedCount, getBillsBulkOperationProgress, BulkOperationProgress, clearBillPayBulkActionView, };
396
+ export { MilageReimbursementLine, OutofPocketReimbursementLine, ReimbursementLine, ReimbursementTypeCode, Reimbursement, RemiTabType, toRemiSubTabType, toRemiSubTabTypeStrict, toRemiTabType, toRemiTabTypeStrict, RemiSubTabType, ReimbursementViewSortKey, RemiListUIState, RemiListReport, RemiListDownloadReport, ReimbursementView, ReimbursementFilters, ReimbursementFilterCategory, RemiListViewFilterCategoryField, getRemiList, getRemiDownloadList, fetchRemiList, fetchRemiListPerTab, updateRemiListTab, updateRemiListSubTab, updateRemiDetailSaveRemiCode, updateRemiListUIState, updateRemiListSearchResult, updateBillListFilterResult, updateRemiListFilterResult, REIMBURSEMENT_FILTER_CATEGORIES, REIMBURSEMENT_FILTER_CATEGORIES_RESTRICTED, updateRemiListDownloadUIState, updateBillListDownloadUIState, updateBillsBulkActionList, removeBillFromBulkActionList, clearAllBillsFromBulkActionList, getBillsBulkReviewView, BillsBulkReviewView, reviewDraftBillsBulkAction, approveOrRejectBillsBulkAction, cancelOrDeleteBillsBulkAction, submitDraftBillsBulkAction, autoReviewPendingApprovalBills, BulkOperationType, BulkSelectExceptionInfoType, incrementBulkActionProcessedCount, getBillsBulkOperationProgress, BulkOperationProgress, clearBillPayBulkActionView, isBillConditionallyValid, };
397
397
  export { AccountListSelectorView, ClassListSelectorView, getClassList };
398
398
  export { BillTab, BillsSubTabType, SaveBillStageCode, BillPayReviewSelectorView, DuplicateBillsSelectorView, EditBillDetailSelectorView, LineItemRecommendationsLocalData, EditBillInitialDetails, BillableStatus, PaymentDetailsSection, BillListReport, BillListDownloadReport, WhatForSection, fetchBillList, fetchBillListPerTab, updateTab, updateSubTab, updateSelectedBillId, updateBillDetailSaveBillCode, fetchVendorByNameAndParseInvoice, saveBillUpdatesToLocalStore, discardBillUpdatesInLocalStore, saveBillDetail, approveOrRejectBill, updateApprovalStatusOnSuccess, deleteBill, cancelAndDeleteBill, getBillList, getBillDownloadList, BillDetailViewSelector, ActorActivityWithUser, BillActivity, StepWithStatus, getBillDetailView, checkApproveRejectBtnShowForBill, BillDetailView, getBillTransactionDetailKey, fetchBillDetail, fetchEditBillDetailPage, fetchAndUpdateVendorRecommendations, fetchDuplicateBill, clearBillPayReview, EditBillDetail, EditBillDetailViewState, getEditBillDetail, getReviewPageBillDetail, BillDetailLocalData, PaymentDetailsSectionView, fetchBillAndInitializeLocalStore, updateShowAutofill, saveVendorSuccessOrFailure, PreviousBillsSelectorView, BillPaymentStatus, BillPaymentStatusCodeType, BillStatus, BillStatusCodeType, BillApprovalType, updateBillListUIState, BillListUIState, BillPayViewSortKey, BillPayFilters, BillPayFilterCategory, BillListViewFilterCategoryField, BILL_PAY_FILTER_CATEGORIES, updateVendorDetailLocalData, resetVendorDetailLocalData, updateContactsInVendorDetailLocalData, updateBillUploadFetchState, updateBillListSearchResult, fetchUserDetails, verifyUser, updateVendorContact, PaymentToOption, toPaymentToOption, convertAmountToHomeCurrency, RecurringBillInstance, RecurringBillConfigLocalData, EditRecurringBillType, fetchVendorAndUpdateBillLocalData, };
399
399
  import { SpendManagementFiltersType, SpendManagementFilterEntityType, FilterCategoryType, BillPayFilterCategoryDropdownOption, ReimbursementFilterCategoryDropdownOption, TaskFilterCategoryDropdownOption, SpendManagementFilterCategoryDropdownOption, MatchingOperatorDropdownOption, CategoryCombinationOperator, hideCreatedByFilter } from './view/spendManagement/spendManagementFilterHelpers';
@@ -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 } from './view/spendManagement/plaidAccount/plaidAccountViewState';
410
+ import { PlaidAccountState, PlaidConnectionDetails, PlaidLinkTokenType, PlaidAccountKeyType } 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, 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, PlaidAccountKeyType, 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 } 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, AccountTypeSubConfigCodeKeyType } 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, };
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, };
499
499
  import { BillPayCardReport } from './view/billPayCard/billPayCardSelector';
500
500
  import { ReimbursementCardReport } from './view/reimbursementCard/reimbursementCardSelector';
501
501
  import { Recommendation } from './commonStateTypes/recommendationBase';