@zeniai/client-epic-state 4.17.44 → 4.17.45
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/commonStateTypes/animations.d.ts +1 -1
- package/lib/commonStateTypes/animations.js +0 -1
- package/lib/commonStateTypes/viewAndReport/viewAndReport.d.ts +2 -2
- package/lib/commonStateTypes/viewAndReport/viewAndReport.js +0 -1
- package/lib/entity/account/accountState.d.ts +1 -1
- package/lib/entity/accountGroup/accountGroupState.d.ts +1 -1
- package/lib/entity/class/classReducer.d.ts +4 -4
- package/lib/entity/class/classState.d.ts +1 -1
- package/lib/entity/company/companyPayload.d.ts +2 -27
- package/lib/entity/company/companyPayload.js +2 -33
- package/lib/entity/company/companyStateTypes.d.ts +0 -22
- package/lib/entity/company/companyStateTypes.js +1 -13
- package/lib/entity/entityApprovalStatus/entityApprovalStatusState.d.ts +2 -2
- package/lib/entity/entityApprovalStatus/entityApprovalStatusState.js +0 -1
- package/lib/entity/file/fileState.d.ts +2 -2
- package/lib/entity/file/fileState.js +0 -1
- package/lib/entity/forecast/forecastState.d.ts +1 -1
- package/lib/entity/sectionAccountsView/sectionAccountsView.d.ts +1 -1
- package/lib/entity/sectionClassesViewV2/sectionClassesView.d.ts +1 -1
- package/lib/entity/sectionClassesViewV2/sectionClassesViewReducer.d.ts +2 -2
- package/lib/entity/snackbar/snackbarTypes.d.ts +1 -1
- package/lib/entity/snackbar/snackbarTypes.js +0 -4
- package/lib/entity/tenant/clearAllEpic.d.ts +1 -5
- package/lib/entity/tenant/clearAllEpic.js +0 -8
- package/lib/entity/tenant/tenantPayload.d.ts +0 -3
- package/lib/entity/tenant/tenantReducer.js +0 -1
- package/lib/entity/tenant/tenantSelector.d.ts +1 -5
- package/lib/entity/tenant/tenantSelector.js +0 -6
- package/lib/entity/tenant/tenantState.d.ts +0 -1
- package/lib/entity/userRole/userRolePayload.d.ts +0 -6
- package/lib/entity/userRole/userRolePayload.js +0 -6
- package/lib/entity/userRole/userRoleReducer.js +0 -3
- package/lib/entity/userRole/userRoleState.d.ts +0 -1
- package/lib/entity/userRole/userRoleType.d.ts +2 -5
- package/lib/entity/userRole/userRoleType.js +5 -44
- package/lib/epic.d.ts +1 -11
- package/lib/epic.js +1 -11
- package/lib/index.d.ts +9 -23
- package/lib/index.js +33 -64
- package/lib/reducer.d.ts +0 -12
- package/lib/reducer.js +0 -12
- package/lib/view/addressView/__mocks__/json/createCompanyAddressSuccess.json +0 -21
- package/lib/view/addressView/__mocks__/json/createCompanyUserAddressSuccess.json +0 -43
- package/lib/view/auditReportView/auditReportViewState.d.ts +1 -1
- package/lib/view/billPayCard/billPayCardSelector.d.ts +1 -1
- package/lib/view/cardBalance/cardBalanceSelector.d.ts +1 -1
- package/lib/view/cashBalance/cashBalanceSelector.d.ts +1 -1
- package/lib/view/cashInCashOut/cashInCashOutSelector.d.ts +1 -1
- package/lib/view/cashPosition/cashPositionSelector.d.ts +1 -1
- package/lib/view/dashboard/dashboardReducer.d.ts +2 -2
- package/lib/view/financeStatement/financeStatementReducer.d.ts +1 -1
- package/lib/view/globalMerchantView/globalMerchantViewReducer.d.ts +2 -2
- package/lib/view/onboardingView/cockpitView/onboardingCockpitViewPayload.d.ts +0 -1
- package/lib/view/onboardingView/cockpitView/onboardingCockpitViewPayload.js +0 -7
- package/lib/view/onboardingView/cockpitView/onboardingCockpitViewSelector.js +0 -5
- package/lib/view/onboardingView/cockpitView/types/onboardingCockpitViewTypes.d.ts +2 -2
- package/lib/view/onboardingView/cockpitView/types/onboardingCockpitViewTypes.js +0 -1
- package/lib/view/onboardingView/customerView/onboardingCustomerViewSelector.js +0 -1
- package/lib/view/reimbursementCard/reimbursementCardSelector.d.ts +1 -1
- package/lib/view/settingsView/settingsViewHelpers.d.ts +1 -2
- package/lib/view/settingsView/settingsViewHelpers.js +3 -4
- package/lib/view/settingsView/settingsViewSelector.d.ts +1 -1
- package/lib/view/settingsView/settingsViewSelector.js +2 -9
- package/lib/view/spendManagement/commonHistoryView/commonHistoryReducer.d.ts +2 -2
- package/lib/view/spendManagement/commonSetup/epic/setup/updateBusinessVerificationDetailsEpic.js +1 -6
- package/lib/view/spendManagement/commonSetup/epic/setup/updateSetupViewLocalStoreDataEpic.js +1 -3
- package/lib/view/spendManagement/commonSetup/setupViewReducer.d.ts +6 -6
- package/lib/view/spendManagement/commonSetup/setupViewReducer.js +2 -15
- package/lib/view/spendManagement/commonSetup/setupViewSelector.d.ts +0 -1
- package/lib/view/spendManagement/commonSetup/setupViewSelector.js +2 -9
- package/lib/view/spendManagement/commonSetup/setupViewState.d.ts +1 -3
- package/lib/view/spendManagement/commonSetup/types/businessVerification.d.ts +0 -1
- package/lib/view/spendManagement/plaidAccount/epic/paymentAccounts/updatePrimaryFundingAccountEpic.js +0 -6
- package/lib/view/spendManagement/plaidAccount/plaidAccountViewReducer.d.ts +10 -10
- package/lib/view/spendManagement/plaidAccount/plaidAccountViewReducer.js +0 -1
- package/lib/view/spendManagement/plaidAccount/plaidAccountViewState.d.ts +1 -1
- package/lib/view/spendManagement/realTimeApprovalView/realTimeApprovalReducer.d.ts +2 -2
- package/lib/view/tasksCard/tasksCardSelector.d.ts +1 -1
- package/lib/view/topEx/topExSelector.d.ts +1 -1
- package/package.json +1 -1
- package/lib/view/spendManagement/treasury/treasuryList/epics/fetchTreasuryDetailEpic.d.ts +0 -9
- package/lib/view/spendManagement/treasury/treasuryList/epics/fetchTreasuryDetailEpic.js +0 -69
- package/lib/view/spendManagement/treasury/treasuryList/epics/fetchTreasuryHistoryEpic.d.ts +0 -7
- package/lib/view/spendManagement/treasury/treasuryList/epics/fetchTreasuryHistoryEpic.js +0 -31
- package/lib/view/spendManagement/treasury/treasuryList/epics/fetchTreasuryTransactionListEpic.d.ts +0 -7
- package/lib/view/spendManagement/treasury/treasuryList/epics/fetchTreasuryTransactionListEpic.js +0 -40
- package/lib/view/spendManagement/treasury/treasuryList/treasuryDetailPayload.d.ts +0 -60
- package/lib/view/spendManagement/treasury/treasuryList/treasuryDetailPayload.js +0 -18
- package/lib/view/spendManagement/treasury/treasuryList/treasuryDetailReducer.d.ts +0 -31
- package/lib/view/spendManagement/treasury/treasuryList/treasuryDetailReducer.js +0 -152
- package/lib/view/spendManagement/treasury/treasuryList/treasuryDetailSelector.d.ts +0 -14
- package/lib/view/spendManagement/treasury/treasuryList/treasuryDetailSelector.js +0 -46
- package/lib/view/spendManagement/treasury/treasuryList/treasuryDetailState.d.ts +0 -42
- package/lib/view/spendManagement/treasury/treasuryList/treasuryDetailState.js +0 -31
- package/lib/view/spendManagement/treasury/treasurySetUp/epic/acceptTreasuryTermsEpic.d.ts +0 -11
- package/lib/view/spendManagement/treasury/treasurySetUp/epic/acceptTreasuryTermsEpic.js +0 -44
- package/lib/view/spendManagement/treasury/treasurySetUp/epic/fetchPortfolioAllocationEpic.d.ts +0 -7
- package/lib/view/spendManagement/treasury/treasurySetUp/epic/fetchPortfolioAllocationEpic.js +0 -21
- package/lib/view/spendManagement/treasury/treasurySetUp/epic/fetchTreasuryFundsEpic.d.ts +0 -7
- package/lib/view/spendManagement/treasury/treasurySetUp/epic/fetchTreasuryFundsEpic.js +0 -28
- package/lib/view/spendManagement/treasury/treasurySetUp/epic/fetchTreasurySetupViewEpic.d.ts +0 -20
- package/lib/view/spendManagement/treasury/treasurySetUp/epic/fetchTreasurySetupViewEpic.js +0 -83
- package/lib/view/spendManagement/treasury/treasurySetUp/epic/updatePortfolioAllocationEpic.d.ts +0 -7
- package/lib/view/spendManagement/treasury/treasurySetUp/epic/updatePortfolioAllocationEpic.js +0 -30
- package/lib/view/spendManagement/treasury/treasurySetUp/treasurySetupViewPayload.d.ts +0 -53
- package/lib/view/spendManagement/treasury/treasurySetUp/treasurySetupViewPayload.js +0 -2
- package/lib/view/spendManagement/treasury/treasurySetUp/treasurySetupViewReducer.d.ts +0 -19
- package/lib/view/spendManagement/treasury/treasurySetUp/treasurySetupViewReducer.js +0 -264
- package/lib/view/spendManagement/treasury/treasurySetUp/treasurySetupViewSelector.d.ts +0 -24
- package/lib/view/spendManagement/treasury/treasurySetUp/treasurySetupViewSelector.js +0 -35
- package/lib/view/spendManagement/treasury/treasurySetUp/treasurySetupViewState.d.ts +0 -47
- package/lib/view/spendManagement/treasury/treasurySetUp/treasurySetupViewState.js +0 -2
- package/lib/view/spendManagement/treasury/treasuryStatementList/fetchTreasuryStatementListEpic.d.ts +0 -7
- package/lib/view/spendManagement/treasury/treasuryStatementList/fetchTreasuryStatementListEpic.js +0 -42
- package/lib/view/spendManagement/treasury/treasuryStatementList/treasuryStatementList.d.ts +0 -10
- package/lib/view/spendManagement/treasury/treasuryStatementList/treasuryStatementList.js +0 -11
- package/lib/view/spendManagement/treasury/treasuryStatementList/treasuryStatementListPayload.d.ts +0 -10
- package/lib/view/spendManagement/treasury/treasuryStatementList/treasuryStatementListPayload.js +0 -2
- package/lib/view/spendManagement/treasury/treasuryStatementList/treasuryStatementListReducer.d.ts +0 -15
- package/lib/view/spendManagement/treasury/treasuryStatementList/treasuryStatementListReducer.js +0 -57
- package/lib/view/spendManagement/treasury/treasuryStatementList/treasuryStatementListSelector.d.ts +0 -7
- package/lib/view/spendManagement/treasury/treasuryStatementList/treasuryStatementListSelector.js +0 -18
- package/lib/view/spendManagement/treasury/treasuryTransferMoney/treasuryTransferMoneyEpic.d.ts +0 -9
- package/lib/view/spendManagement/treasury/treasuryTransferMoney/treasuryTransferMoneyEpic.js +0 -92
- package/lib/view/spendManagement/treasury/treasuryTransferMoney/treasuryTransferMoneyPayload.d.ts +0 -36
- package/lib/view/spendManagement/treasury/treasuryTransferMoney/treasuryTransferMoneyPayload.js +0 -15
- package/lib/view/spendManagement/treasury/treasuryTransferMoney/treasuryTransferMoneyReducer.d.ts +0 -10
- package/lib/view/spendManagement/treasury/treasuryTransferMoney/treasuryTransferMoneyReducer.js +0 -45
- package/lib/view/spendManagement/treasury/treasuryTransferMoney/treasuryTransferMoneySelector.d.ts +0 -17
- package/lib/view/spendManagement/treasury/treasuryTransferMoney/treasuryTransferMoneySelector.js +0 -55
- package/lib/view/spendManagement/treasury/treasuryTransferMoney/treasuryTransferMoneyState.d.ts +0 -17
- package/lib/view/spendManagement/treasury/treasuryTransferMoney/treasuryTransferMoneyState.js +0 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.toAllowedValueWithCode = exports.toCompany = exports.toOnboardingInfo = exports.
|
|
3
|
+
exports.toAllowedValueWithCode = exports.toCompany = exports.toOnboardingInfo = exports.defaultParentSubsidiaryObject = void 0;
|
|
4
4
|
const amount_1 = require("../../commonStateTypes/amount");
|
|
5
5
|
const timePeriod_1 = require("../../commonStateTypes/timePeriod");
|
|
6
6
|
const billPayConfigPayload_1 = require("../../view/spendManagement/billPay/billPayConfig/billPayConfigPayload");
|
|
@@ -11,7 +11,7 @@ const zeniUrl_1 = require("../../zeniUrl");
|
|
|
11
11
|
const companyStateTypes_1 = require("./companyStateTypes");
|
|
12
12
|
exports.defaultParentSubsidiaryObject = {};
|
|
13
13
|
const toCompanyInfo = (payload, companyIdTenantIdMapping, companyInStore) => {
|
|
14
|
-
var _a, _b, _c, _d, _e
|
|
14
|
+
var _a, _b, _c, _d, _e;
|
|
15
15
|
return {
|
|
16
16
|
bookCloseDate: payload.book_close_date != null
|
|
17
17
|
? (0, zeniDayJS_1.date)(payload.book_close_date)
|
|
@@ -36,7 +36,6 @@ const toCompanyInfo = (payload, companyIdTenantIdMapping, companyInStore) => {
|
|
|
36
36
|
companyDescription: (_c = payload.company_description) !== null && _c !== void 0 ? _c : undefined,
|
|
37
37
|
phone: (_d = payload.phone) !== null && _d !== void 0 ? _d : undefined,
|
|
38
38
|
firstMonthOfFY: (_e = (0, timePeriod_1.getMonthFromMonthName)(payload.first_month_of_fiscal_year)) !== null && _e !== void 0 ? _e : 1,
|
|
39
|
-
sourceOfFunds: (_f = payload.source_of_funds) !== null && _f !== void 0 ? _f : undefined,
|
|
40
39
|
};
|
|
41
40
|
};
|
|
42
41
|
const toCompanyLocaleInfo = (payload) => {
|
|
@@ -195,35 +194,6 @@ const toCompanyZeniAccountInfo = (payload) => {
|
|
|
195
194
|
: undefined,
|
|
196
195
|
});
|
|
197
196
|
};
|
|
198
|
-
const toCompanyTreasuryInfo = (payload) => {
|
|
199
|
-
var _a, _b, _c, _d, _e, _f;
|
|
200
|
-
return ({
|
|
201
|
-
treasuryTOSAcceptanceUserid: (_a = payload.treasury_accounts_tos_acceptance_user_id) !== null && _a !== void 0 ? _a : undefined,
|
|
202
|
-
treasuryTOSAcceptanceUserAgent: (_b = payload.treasury_accounts_tos_acceptance_user_agent) !== null && _b !== void 0 ? _b : undefined,
|
|
203
|
-
treasuryTOSAcceptanceTime: payload.treasury_accounts_tos_acceptance_time != null
|
|
204
|
-
? (0, zeniDayJS_1.date)(payload.treasury_accounts_tos_acceptance_time)
|
|
205
|
-
: undefined,
|
|
206
|
-
treasuryTOSAcceptanceIp: (_c = payload.treasury_accounts_tos_acceptance_ip) !== null && _c !== void 0 ? _c : undefined,
|
|
207
|
-
isTreasuryTOSAccepted: (_d = payload.is_treasury_accounts_tos_accepted) !== null && _d !== void 0 ? _d : false,
|
|
208
|
-
treasuryBusinessVerificationVerifiedTime: payload.treasury_business_verification_verified_time != null
|
|
209
|
-
? (0, zeniDayJS_1.date)(payload.treasury_business_verification_verified_time)
|
|
210
|
-
: undefined,
|
|
211
|
-
primaryFundingAccount: ((_e = payload.primary_funding_account) === null || _e === void 0 ? void 0 : _e.account_id) != null &&
|
|
212
|
-
((_f = payload.primary_funding_account) === null || _f === void 0 ? void 0 : _f.account_type) != null
|
|
213
|
-
? {
|
|
214
|
-
accountId: payload.primary_funding_account.account_id,
|
|
215
|
-
accountType: (0, billPayConfigPayload_1.getAccountTypeSubConfigCodeKey)((0, billPayConfigState_1.toAccType)(payload.primary_funding_account.account_type)),
|
|
216
|
-
}
|
|
217
|
-
: undefined,
|
|
218
|
-
businessVerificationStatus: payload.company_verification_status != null
|
|
219
|
-
? (0, exports.toAllowedValueWithCode)(payload.company_verification_status)
|
|
220
|
-
: undefined,
|
|
221
|
-
companyVerificationStatus: payload.company_verification_status != null
|
|
222
|
-
? (0, exports.toAllowedValueWithCode)(payload.company_verification_status)
|
|
223
|
-
: undefined,
|
|
224
|
-
});
|
|
225
|
-
};
|
|
226
|
-
exports.toCompanyTreasuryInfo = toCompanyTreasuryInfo;
|
|
227
197
|
const toCompanyChargeCardInfo = (payload) => {
|
|
228
198
|
var _a, _b, _c, _d, _e;
|
|
229
199
|
return ({
|
|
@@ -426,7 +396,6 @@ const toCompany = (payload, companiesPayload, isUpdate, companyInStore, companyI
|
|
|
426
396
|
companyBillPayInfo: toCompanyBillPayInfo(payload.bill_pay_info),
|
|
427
397
|
companyReimbursementInfo: toCompanyReimbursementInfo(payload.reimbursement_info),
|
|
428
398
|
companyZeniAccountInfo: toCompanyZeniAccountInfo(payload.deposit_accounts_info),
|
|
429
|
-
companyTreasuryInfo: (0, exports.toCompanyTreasuryInfo)(payload.treasury_accounts_info),
|
|
430
399
|
companyChargeCardInfo: toCompanyChargeCardInfo(payload.charge_cards_info),
|
|
431
400
|
companyDebitCardInfo: toCompanyDebitCardInfo(payload.debit_cards_info),
|
|
432
401
|
companyOnboardingInfo: toCompanyOnboardingInfo(payload),
|
|
@@ -32,7 +32,6 @@ export interface CompanyInfo {
|
|
|
32
32
|
companyDescription?: string;
|
|
33
33
|
syncToken?: string;
|
|
34
34
|
phone?: string;
|
|
35
|
-
sourceOfFunds?: string;
|
|
36
35
|
}
|
|
37
36
|
export interface CompanyLocaleInfo {
|
|
38
37
|
companyIncCountryCode: string;
|
|
@@ -142,7 +141,6 @@ export interface Company {
|
|
|
142
141
|
companyBillPayInfo: CompanyBillPayInfo;
|
|
143
142
|
companyReimbursementInfo: CompanyReimbursementInfo;
|
|
144
143
|
companyZeniAccountInfo: CompanyZeniAccountInfo;
|
|
145
|
-
companyTreasuryInfo: CompanyTreasuryInfo;
|
|
146
144
|
companyChargeCardInfo: CompanyChargeCardInfo;
|
|
147
145
|
companyDebitCardInfo: CompanyDebitCardInfo;
|
|
148
146
|
companyOnboardingInfo: CompanyOnboardingInfo;
|
|
@@ -203,22 +201,6 @@ export interface CompanyZeniAccountInfo extends UserZeniAccountInfo {
|
|
|
203
201
|
accountType: AccountTypeSubConfigCodeKeyType;
|
|
204
202
|
};
|
|
205
203
|
}
|
|
206
|
-
interface UserTreasuryInfo {
|
|
207
|
-
isTreasuryTOSAccepted: boolean;
|
|
208
|
-
treasuryTOSAcceptanceUserAgent?: string;
|
|
209
|
-
treasuryTOSAcceptanceTime?: ZeniDate;
|
|
210
|
-
treasuryTOSAcceptanceIp?: string;
|
|
211
|
-
}
|
|
212
|
-
export interface CompanyTreasuryInfo extends UserTreasuryInfo {
|
|
213
|
-
treasuryTOSAcceptanceUserid?: ID;
|
|
214
|
-
primaryFundingAccount?: {
|
|
215
|
-
accountId: ID;
|
|
216
|
-
accountType: AccountTypeSubConfigCodeKeyType;
|
|
217
|
-
};
|
|
218
|
-
businessVerificationStatus?: AllowedValueWithCode;
|
|
219
|
-
companyVerificationStatus?: AllowedValueWithCode;
|
|
220
|
-
treasuryBusinessVerificationVerifiedTime?: ZeniDate;
|
|
221
|
-
}
|
|
222
204
|
interface UserChargeCardInfo {
|
|
223
205
|
isChargeCardTOSAccepted: boolean;
|
|
224
206
|
chargeCardTOSAcceptanceUserAgent?: string;
|
|
@@ -307,8 +289,4 @@ export interface CompanyOnboardingInfo {
|
|
|
307
289
|
onboardingInfo?: OnboardingInfo;
|
|
308
290
|
parentCompanyId?: ID;
|
|
309
291
|
}
|
|
310
|
-
export declare const TREASURY_ELIGIBLE_INC_TYPES: readonly ["C Corporation", "S Corporation", "Limited Liability Company"];
|
|
311
|
-
export declare const toTreasuryEligibleIncType: (v: string) => "C Corporation" | "S Corporation" | "Limited Liability Company";
|
|
312
|
-
export type TreasuryEligibleIncType = NonNullable<ReturnType<typeof toTreasuryEligibleIncType>>;
|
|
313
|
-
export declare const isCompanyEligibleForTreasury: (company: Company) => boolean;
|
|
314
292
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.toAccountingConnectionCreationModeStrict = exports.ALL_ACCOUNTING_CONNECTION_CREATION_MODES = exports.toOnboardingIdentityVerificationStatus = void 0;
|
|
4
4
|
const stringToUnion_1 = require("../../commonStateTypes/stringToUnion");
|
|
5
5
|
const ALL_ONBOARDING_IDENTITY_VERIFICATION_STATUS = [
|
|
6
6
|
'Not Initiated',
|
|
@@ -19,15 +19,3 @@ exports.ALL_ACCOUNTING_CONNECTION_CREATION_MODES = [
|
|
|
19
19
|
const toAccountingConnectionCreationMode = (v) => (0, stringToUnion_1.stringToUnion)(v.toLocaleLowerCase(), exports.ALL_ACCOUNTING_CONNECTION_CREATION_MODES);
|
|
20
20
|
const toAccountingConnectionCreationModeStrict = (v) => (0, stringToUnion_1.stringToUnionStrict)(v !== null && v !== void 0 ? v : '', exports.ALL_ACCOUNTING_CONNECTION_CREATION_MODES);
|
|
21
21
|
exports.toAccountingConnectionCreationModeStrict = toAccountingConnectionCreationModeStrict;
|
|
22
|
-
exports.TREASURY_ELIGIBLE_INC_TYPES = [
|
|
23
|
-
'C Corporation',
|
|
24
|
-
'S Corporation',
|
|
25
|
-
'Limited Liability Company',
|
|
26
|
-
];
|
|
27
|
-
const toTreasuryEligibleIncType = (v) => (0, stringToUnion_1.stringToUnion)(v, exports.TREASURY_ELIGIBLE_INC_TYPES);
|
|
28
|
-
exports.toTreasuryEligibleIncType = toTreasuryEligibleIncType;
|
|
29
|
-
const isCompanyEligibleForTreasury = (company) => {
|
|
30
|
-
return (company.incInfo.companyIncType != null &&
|
|
31
|
-
exports.TREASURY_ELIGIBLE_INC_TYPES.includes(company.incInfo.companyIncType));
|
|
32
|
-
};
|
|
33
|
-
exports.isCompanyEligibleForTreasury = isCompanyEligibleForTreasury;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ID } from '../../commonStateTypes/common';
|
|
2
2
|
import { ZeniDate } from '../../zeniDayJS';
|
|
3
3
|
import { ApprovalActionType, StepOperatorType } from '../approvalRule/approvalRuleState';
|
|
4
|
-
export declare const ALL_ENTITY_TYPES: readonly ["bill_pay", "reimbursement", "zeni_accounts", "
|
|
5
|
-
export declare const toEntityType: (v: string) => "bill_pay" | "reimbursement" | "zeni_accounts" | "
|
|
4
|
+
export declare const ALL_ENTITY_TYPES: readonly ["bill_pay", "reimbursement", "zeni_accounts", "charge_cards"];
|
|
5
|
+
export declare const toEntityType: (v: string) => "bill_pay" | "reimbursement" | "zeni_accounts" | "charge_cards";
|
|
6
6
|
export type EntityType = ReturnType<typeof toEntityType>;
|
|
7
7
|
declare const toEntityApprovalStatusCode: (v: string) => "approved" | "rejected" | "pending";
|
|
8
8
|
type EntityApprovalStatusCode = ReturnType<typeof toEntityApprovalStatusCode>;
|
|
@@ -56,8 +56,8 @@ export declare const toSupportedTransactionLineAttachmentFileType: (v: string) =
|
|
|
56
56
|
export type SupportedTransactionLineAttachmentFileType = ReturnType<typeof toSupportedTransactionLineAttachmentFileType>;
|
|
57
57
|
export declare const toSupportedAttachmentFileFormatType: (v: string) => ".pdf" | ".jpeg" | ".jpg" | ".png" | ".txt" | ".xls" | ".xlsx";
|
|
58
58
|
type SupportedAttachmentFileFormatType = ReturnType<typeof toSupportedAttachmentFileFormatType>;
|
|
59
|
-
export declare const toAllowedDocumentType: (v: string) => "bill_pay" | "check" | "others" | "1099_C" | "address_verification" | "certificate_of_incorporation" | "contract" | "driving_license" | "employer_identification_number_confirmation" | "id_document" | "passport" | "purchase_order" | "social_security_card" | "tax_ein" | "w4" | "w9" | "certificate_of_good_standing"
|
|
60
|
-
export declare const toAllowedDocumentTypeStrict: (v: string) => "bill_pay" | "check" | "others" | "1099_C" | "address_verification" | "certificate_of_incorporation" | "contract" | "driving_license" | "employer_identification_number_confirmation" | "id_document" | "passport" | "purchase_order" | "social_security_card" | "tax_ein" | "w4" | "w9" | "certificate_of_good_standing" |
|
|
59
|
+
export declare const toAllowedDocumentType: (v: string) => "bill_pay" | "check" | "others" | "1099_C" | "address_verification" | "certificate_of_incorporation" | "contract" | "driving_license" | "employer_identification_number_confirmation" | "id_document" | "passport" | "purchase_order" | "social_security_card" | "tax_ein" | "w4" | "w9" | "certificate_of_good_standing";
|
|
60
|
+
export declare const toAllowedDocumentTypeStrict: (v: string) => "bill_pay" | "check" | "others" | "1099_C" | "address_verification" | "certificate_of_incorporation" | "contract" | "driving_license" | "employer_identification_number_confirmation" | "id_document" | "passport" | "purchase_order" | "social_security_card" | "tax_ein" | "w4" | "w9" | "certificate_of_good_standing" | undefined;
|
|
61
61
|
export type AllowedDocumentType = ReturnType<typeof toAllowedDocumentType>;
|
|
62
62
|
declare const toAllowedPurposeIdType: (v: string) => "bill_pay" | "personal_identity" | "business_verification" | "personal_identity_others" | "business_verification_others" | "international_wire_business_verification" | "others";
|
|
63
63
|
export type AllowedPurposeIdType = ReturnType<typeof toAllowedPurposeIdType>;
|
|
@@ -87,7 +87,6 @@ const ALLOWED_DOCUMENT_TYPES = [
|
|
|
87
87
|
'w4',
|
|
88
88
|
'w9',
|
|
89
89
|
'certificate_of_good_standing',
|
|
90
|
-
'company_formation_document',
|
|
91
90
|
];
|
|
92
91
|
const toAllowedDocumentType = (v) => (0, stringToUnion_1.stringToUnion)(v, ALLOWED_DOCUMENT_TYPES);
|
|
93
92
|
exports.toAllowedDocumentType = toAllowedDocumentType;
|
|
@@ -3,7 +3,7 @@ import { TimeframeTick } from '../../commonStateTypes/timeframeTick';
|
|
|
3
3
|
import { ReportID } from '../../commonStateTypes/viewAndReport/viewAndReport';
|
|
4
4
|
import { ZeniDate } from '../../zeniDayJS';
|
|
5
5
|
export type ForecastType = ReportID;
|
|
6
|
-
export declare const toForecastType: (v: string) => "cash_balance" | "card_balance" | "expense_automation_card" | "operating_expenses" | "operating_expenses_by_classes" | "revenue" | "revenue_by_classes" | "net_burn_or_income" | "net_burn_or_income_story_card" | "net_burn_or_income_by_classes" | "cash_position" | "top_expenses" | "profit_and_loss" | "profit_and_loss_by_classes" | "balance_sheet" | "cash_flow" | "dashboard" | "finance_statement" | "transaction_list_of_account" | "transaction_list_missing_receipt" | "transaction_list_of_account_by_class" | "transaction_detail" | "cash_in_cash_out" | "insights_dashboard" | "company_details" | "class_list" | "account_list" | "account_list_by_type" | "vendor" | "task_card" | "bill_pay" | "reimbursement" | "bill_pay_card" | "reimbursement_card" | "bill_pay_promo_card" | "zeni_accounts" | "zeni_accounts_promo_card" | "
|
|
6
|
+
export declare const toForecastType: (v: string) => "cash_balance" | "card_balance" | "expense_automation_card" | "operating_expenses" | "operating_expenses_by_classes" | "revenue" | "revenue_by_classes" | "net_burn_or_income" | "net_burn_or_income_story_card" | "net_burn_or_income_by_classes" | "cash_position" | "top_expenses" | "profit_and_loss" | "profit_and_loss_by_classes" | "balance_sheet" | "cash_flow" | "dashboard" | "finance_statement" | "transaction_list_of_account" | "transaction_list_missing_receipt" | "transaction_list_of_account_by_class" | "transaction_detail" | "cash_in_cash_out" | "insights_dashboard" | "company_details" | "class_list" | "account_list" | "account_list_by_type" | "vendor" | "task_card" | "bill_pay" | "reimbursement" | "bill_pay_card" | "reimbursement_card" | "bill_pay_promo_card" | "zeni_accounts" | "zeni_accounts_promo_card" | "charge_cards" | "reimbursement_promo_card" | "onboarding" | "operating_expenses_by_vendor" | "operating_expenses_by_vendor_summary" | "vendors_tab" | "accounts_payable_aging" | "accounts_receivable_aging" | "vendor_global_review" | "prepaid_expenses" | "fixed_assets" | "notification" | "rewards_card" | "billing" | "flux_analysis_operating_expense" | "account_reconciliation";
|
|
7
7
|
export interface Forecast {
|
|
8
8
|
id: ID;
|
|
9
9
|
type: ForecastType;
|
|
@@ -10,5 +10,5 @@ export interface SectionAccountsView {
|
|
|
10
10
|
accountGroupKeys: AccountGroupKey[];
|
|
11
11
|
balancesByPeriod?: COABalanceGroupedByPeriod;
|
|
12
12
|
}
|
|
13
|
-
export declare function getSectionAccountViewKey(sectionId: ID, reportId: ReportIDPlusForecastID): `${string}-cash_balance` | `${string}-card_balance` | `${string}-expense_automation_card` | `${string}-operating_expenses` | `${string}-operating_expenses_by_classes` | `${string}-revenue` | `${string}-revenue_by_classes` | `${string}-net_burn_or_income` | `${string}-net_burn_or_income_story_card` | `${string}-net_burn_or_income_by_classes` | `${string}-cash_position` | `${string}-top_expenses` | `${string}-profit_and_loss` | `${string}-profit_and_loss_by_classes` | `${string}-balance_sheet` | `${string}-cash_flow` | `${string}-dashboard` | `${string}-finance_statement` | `${string}-transaction_list_of_account` | `${string}-transaction_list_missing_receipt` | `${string}-transaction_list_of_account_by_class` | `${string}-transaction_detail` | `${string}-cash_in_cash_out` | `${string}-insights_dashboard` | `${string}-company_details` | `${string}-class_list` | `${string}-account_list` | `${string}-account_list_by_type` | `${string}-vendor` | `${string}-task_card` | `${string}-bill_pay` | `${string}-reimbursement` | `${string}-bill_pay_card` | `${string}-reimbursement_card` | `${string}-bill_pay_promo_card` | `${string}-zeni_accounts` | `${string}-zeni_accounts_promo_card` | `${string}-
|
|
13
|
+
export declare function getSectionAccountViewKey(sectionId: ID, reportId: ReportIDPlusForecastID): `${string}-cash_balance` | `${string}-card_balance` | `${string}-expense_automation_card` | `${string}-operating_expenses` | `${string}-operating_expenses_by_classes` | `${string}-revenue` | `${string}-revenue_by_classes` | `${string}-net_burn_or_income` | `${string}-net_burn_or_income_story_card` | `${string}-net_burn_or_income_by_classes` | `${string}-cash_position` | `${string}-top_expenses` | `${string}-profit_and_loss` | `${string}-profit_and_loss_by_classes` | `${string}-balance_sheet` | `${string}-cash_flow` | `${string}-dashboard` | `${string}-finance_statement` | `${string}-transaction_list_of_account` | `${string}-transaction_list_missing_receipt` | `${string}-transaction_list_of_account_by_class` | `${string}-transaction_detail` | `${string}-cash_in_cash_out` | `${string}-insights_dashboard` | `${string}-company_details` | `${string}-class_list` | `${string}-account_list` | `${string}-account_list_by_type` | `${string}-vendor` | `${string}-task_card` | `${string}-bill_pay` | `${string}-reimbursement` | `${string}-bill_pay_card` | `${string}-reimbursement_card` | `${string}-bill_pay_promo_card` | `${string}-zeni_accounts` | `${string}-zeni_accounts_promo_card` | `${string}-charge_cards` | `${string}-reimbursement_promo_card` | `${string}-onboarding` | `${string}-operating_expenses_by_vendor` | `${string}-operating_expenses_by_vendor_summary` | `${string}-vendors_tab` | `${string}-accounts_payable_aging` | `${string}-accounts_receivable_aging` | `${string}-vendor_global_review` | `${string}-prepaid_expenses` | `${string}-fixed_assets` | `${string}-notification` | `${string}-rewards_card` | `${string}-billing` | `${string}-flux_analysis_operating_expense` | `${string}-account_reconciliation` | `${string}-cash_balance+${string}` | `${string}-card_balance+${string}` | `${string}-expense_automation_card+${string}` | `${string}-operating_expenses+${string}` | `${string}-operating_expenses_by_classes+${string}` | `${string}-revenue+${string}` | `${string}-revenue_by_classes+${string}` | `${string}-net_burn_or_income+${string}` | `${string}-net_burn_or_income_story_card+${string}` | `${string}-net_burn_or_income_by_classes+${string}` | `${string}-cash_position+${string}` | `${string}-top_expenses+${string}` | `${string}-profit_and_loss+${string}` | `${string}-profit_and_loss_by_classes+${string}` | `${string}-balance_sheet+${string}` | `${string}-cash_flow+${string}` | `${string}-dashboard+${string}` | `${string}-finance_statement+${string}` | `${string}-transaction_list_of_account+${string}` | `${string}-transaction_list_missing_receipt+${string}` | `${string}-transaction_list_of_account_by_class+${string}` | `${string}-transaction_detail+${string}` | `${string}-cash_in_cash_out+${string}` | `${string}-insights_dashboard+${string}` | `${string}-company_details+${string}` | `${string}-class_list+${string}` | `${string}-account_list+${string}` | `${string}-account_list_by_type+${string}` | `${string}-vendor+${string}` | `${string}-task_card+${string}` | `${string}-bill_pay+${string}` | `${string}-reimbursement+${string}` | `${string}-bill_pay_card+${string}` | `${string}-reimbursement_card+${string}` | `${string}-bill_pay_promo_card+${string}` | `${string}-zeni_accounts+${string}` | `${string}-zeni_accounts_promo_card+${string}` | `${string}-charge_cards+${string}` | `${string}-reimbursement_promo_card+${string}` | `${string}-onboarding+${string}` | `${string}-operating_expenses_by_vendor+${string}` | `${string}-operating_expenses_by_vendor_summary+${string}` | `${string}-vendors_tab+${string}` | `${string}-accounts_payable_aging+${string}` | `${string}-accounts_receivable_aging+${string}` | `${string}-vendor_global_review+${string}` | `${string}-prepaid_expenses+${string}` | `${string}-fixed_assets+${string}` | `${string}-notification+${string}` | `${string}-rewards_card+${string}` | `${string}-billing+${string}` | `${string}-flux_analysis_operating_expense+${string}` | `${string}-account_reconciliation+${string}`;
|
|
14
14
|
export type SectionAccountKey = ReturnType<typeof getSectionAccountViewKey>;
|
|
@@ -8,5 +8,5 @@ export interface SectionClassesView {
|
|
|
8
8
|
nestedClassesIds: NestedClassIDHierarchy[];
|
|
9
9
|
balancesByPeriod?: COABalanceGroupedByPeriod;
|
|
10
10
|
}
|
|
11
|
-
export declare function getSectionClassesViewKey(sectionId: ID, reportId: ReportID): `${string}-cash_balance` | `${string}-card_balance` | `${string}-expense_automation_card` | `${string}-operating_expenses` | `${string}-operating_expenses_by_classes` | `${string}-revenue` | `${string}-revenue_by_classes` | `${string}-net_burn_or_income` | `${string}-net_burn_or_income_story_card` | `${string}-net_burn_or_income_by_classes` | `${string}-cash_position` | `${string}-top_expenses` | `${string}-profit_and_loss` | `${string}-profit_and_loss_by_classes` | `${string}-balance_sheet` | `${string}-cash_flow` | `${string}-dashboard` | `${string}-finance_statement` | `${string}-transaction_list_of_account` | `${string}-transaction_list_missing_receipt` | `${string}-transaction_list_of_account_by_class` | `${string}-transaction_detail` | `${string}-cash_in_cash_out` | `${string}-insights_dashboard` | `${string}-company_details` | `${string}-class_list` | `${string}-account_list` | `${string}-account_list_by_type` | `${string}-vendor` | `${string}-task_card` | `${string}-bill_pay` | `${string}-reimbursement` | `${string}-bill_pay_card` | `${string}-reimbursement_card` | `${string}-bill_pay_promo_card` | `${string}-zeni_accounts` | `${string}-zeni_accounts_promo_card` | `${string}-
|
|
11
|
+
export declare function getSectionClassesViewKey(sectionId: ID, reportId: ReportID): `${string}-cash_balance` | `${string}-card_balance` | `${string}-expense_automation_card` | `${string}-operating_expenses` | `${string}-operating_expenses_by_classes` | `${string}-revenue` | `${string}-revenue_by_classes` | `${string}-net_burn_or_income` | `${string}-net_burn_or_income_story_card` | `${string}-net_burn_or_income_by_classes` | `${string}-cash_position` | `${string}-top_expenses` | `${string}-profit_and_loss` | `${string}-profit_and_loss_by_classes` | `${string}-balance_sheet` | `${string}-cash_flow` | `${string}-dashboard` | `${string}-finance_statement` | `${string}-transaction_list_of_account` | `${string}-transaction_list_missing_receipt` | `${string}-transaction_list_of_account_by_class` | `${string}-transaction_detail` | `${string}-cash_in_cash_out` | `${string}-insights_dashboard` | `${string}-company_details` | `${string}-class_list` | `${string}-account_list` | `${string}-account_list_by_type` | `${string}-vendor` | `${string}-task_card` | `${string}-bill_pay` | `${string}-reimbursement` | `${string}-bill_pay_card` | `${string}-reimbursement_card` | `${string}-bill_pay_promo_card` | `${string}-zeni_accounts` | `${string}-zeni_accounts_promo_card` | `${string}-charge_cards` | `${string}-reimbursement_promo_card` | `${string}-onboarding` | `${string}-operating_expenses_by_vendor` | `${string}-operating_expenses_by_vendor_summary` | `${string}-vendors_tab` | `${string}-accounts_payable_aging` | `${string}-accounts_receivable_aging` | `${string}-vendor_global_review` | `${string}-prepaid_expenses` | `${string}-fixed_assets` | `${string}-notification` | `${string}-rewards_card` | `${string}-billing` | `${string}-flux_analysis_operating_expense` | `${string}-account_reconciliation`;
|
|
12
12
|
export type SectionClassesKey = ReturnType<typeof getSectionClassesViewKey>;
|
|
@@ -4,9 +4,9 @@ import { AccountMetadataPayload } from '../account/accountPayload';
|
|
|
4
4
|
import { ClassMetadataPayload } from '../class/classPayload';
|
|
5
5
|
import { SectionClassesViewStateV2 } from './sectionClassesViewState';
|
|
6
6
|
export declare const initialState: SectionClassesViewStateV2;
|
|
7
|
-
export declare const updateSectionClassesView: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[timeframe: "month" | "year" | "quarter", sectionId: string, reportId: "cash_balance" | "card_balance" | "expense_automation_card" | "operating_expenses" | "operating_expenses_by_classes" | "revenue" | "revenue_by_classes" | "net_burn_or_income" | "net_burn_or_income_story_card" | "net_burn_or_income_by_classes" | "cash_position" | "top_expenses" | "profit_and_loss" | "profit_and_loss_by_classes" | "balance_sheet" | "cash_flow" | "dashboard" | "finance_statement" | "transaction_list_of_account" | "transaction_list_missing_receipt" | "transaction_list_of_account_by_class" | "transaction_detail" | "cash_in_cash_out" | "insights_dashboard" | "company_details" | "class_list" | "account_list" | "account_list_by_type" | "vendor" | "task_card" | "bill_pay" | "reimbursement" | "bill_pay_card" | "reimbursement_card" | "bill_pay_promo_card" | "zeni_accounts" | "zeni_accounts_promo_card" | "
|
|
7
|
+
export declare const updateSectionClassesView: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[timeframe: "month" | "year" | "quarter", sectionId: string, reportId: "cash_balance" | "card_balance" | "expense_automation_card" | "operating_expenses" | "operating_expenses_by_classes" | "revenue" | "revenue_by_classes" | "net_burn_or_income" | "net_burn_or_income_story_card" | "net_burn_or_income_by_classes" | "cash_position" | "top_expenses" | "profit_and_loss" | "profit_and_loss_by_classes" | "balance_sheet" | "cash_flow" | "dashboard" | "finance_statement" | "transaction_list_of_account" | "transaction_list_missing_receipt" | "transaction_list_of_account_by_class" | "transaction_detail" | "cash_in_cash_out" | "insights_dashboard" | "company_details" | "class_list" | "account_list" | "account_list_by_type" | "vendor" | "task_card" | "bill_pay" | "reimbursement" | "bill_pay_card" | "reimbursement_card" | "bill_pay_promo_card" | "zeni_accounts" | "zeni_accounts_promo_card" | "charge_cards" | "reimbursement_promo_card" | "onboarding" | "operating_expenses_by_vendor" | "operating_expenses_by_vendor_summary" | "vendors_tab" | "accounts_payable_aging" | "accounts_receivable_aging" | "vendor_global_review" | "prepaid_expenses" | "fixed_assets" | "notification" | "rewards_card" | "billing" | "flux_analysis_operating_expense" | "account_reconciliation", sectionPayload: SectionByClassCOABalanceGroupedPayloadV2, classesMetadataPayload: ClassMetadataPayload[], accountsMetadataPayload: AccountMetadataPayload[], currencyPayload: CurrencyPayload], {
|
|
8
8
|
timeframe: "month" | "year" | "quarter";
|
|
9
|
-
reportId: "cash_balance" | "card_balance" | "expense_automation_card" | "operating_expenses" | "operating_expenses_by_classes" | "revenue" | "revenue_by_classes" | "net_burn_or_income" | "net_burn_or_income_story_card" | "net_burn_or_income_by_classes" | "cash_position" | "top_expenses" | "profit_and_loss" | "profit_and_loss_by_classes" | "balance_sheet" | "cash_flow" | "dashboard" | "finance_statement" | "transaction_list_of_account" | "transaction_list_missing_receipt" | "transaction_list_of_account_by_class" | "transaction_detail" | "cash_in_cash_out" | "insights_dashboard" | "company_details" | "class_list" | "account_list" | "account_list_by_type" | "vendor" | "task_card" | "bill_pay" | "reimbursement" | "bill_pay_card" | "reimbursement_card" | "bill_pay_promo_card" | "zeni_accounts" | "zeni_accounts_promo_card" | "
|
|
9
|
+
reportId: "cash_balance" | "card_balance" | "expense_automation_card" | "operating_expenses" | "operating_expenses_by_classes" | "revenue" | "revenue_by_classes" | "net_burn_or_income" | "net_burn_or_income_story_card" | "net_burn_or_income_by_classes" | "cash_position" | "top_expenses" | "profit_and_loss" | "profit_and_loss_by_classes" | "balance_sheet" | "cash_flow" | "dashboard" | "finance_statement" | "transaction_list_of_account" | "transaction_list_missing_receipt" | "transaction_list_of_account_by_class" | "transaction_detail" | "cash_in_cash_out" | "insights_dashboard" | "company_details" | "class_list" | "account_list" | "account_list_by_type" | "vendor" | "task_card" | "bill_pay" | "reimbursement" | "bill_pay_card" | "reimbursement_card" | "bill_pay_promo_card" | "zeni_accounts" | "zeni_accounts_promo_card" | "charge_cards" | "reimbursement_promo_card" | "onboarding" | "operating_expenses_by_vendor" | "operating_expenses_by_vendor_summary" | "vendors_tab" | "accounts_payable_aging" | "accounts_receivable_aging" | "vendor_global_review" | "prepaid_expenses" | "fixed_assets" | "notification" | "rewards_card" | "billing" | "flux_analysis_operating_expense" | "account_reconciliation";
|
|
10
10
|
sectionId: string;
|
|
11
11
|
sectionPayload: SectionByClassCOABalanceGroupedPayloadV2;
|
|
12
12
|
classesMetadataPayload: ClassMetadataPayload[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const toSnackbarMessageSection: (v: string) => "common" | "transactionDetails_updatingPastTransactions" | "transactionDetails_transactionUpdated" | "cockpit_month_end_email_sent" | "cockpit_month_end_email_save" | "cockpit_month_end_email_attachment_upload" | "je_bill_link" | "je_posted" | "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_setup" | "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" | "reimbursement_bulk_submit" | "reimbursement_bulk_processed" | "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" | "bill_pay_refund" | "bill_pay_retry" | "bill_pay_marked_as_paid" | "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" | "charge_card_receipt_upload" | "charge_card_resend_invite" | "charge_card_revoke_invite" | "charge_card_update_limit" | "create_schedule" | "save_schedule" | "delete_schedule" | "ignore_schedule" | "save_task_detail" | "fetch_task_detail" | "delete_task" | "archive_task" | "create_tag" | "delete_tag" | "update_charge_card" | "issue_charge_card" | "issue_charge_cards" | "notification_settings_saved" | "referral_invite_sent" | "notification_mark_as_read" | "mark_as_complete_schedule" | "cancel_journal_entry" | "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" | "task_time_spent_validation" | "transactions_reviewed" | "transaction_reviewed" | "transaction_reviewed_failed" | "transactions_reviewed_failed" | "missing_receipts_attachment" | "flux_analysis_unreviewed" | "flux_analysis_reviewed" | "receipts_upload" | "billing_address_view" | "express_pay_submit" | "exclude_transaction" | "reconcile" | "save_reconcile_for_later" | "recon_transaction_categorize" | "recon_transaction_match" | "update_debit_card_pin_attempt" | "set_debit_card_pin" | "ai_cfo_create_session_and_submit" | "
|
|
1
|
+
export declare const toSnackbarMessageSection: (v: string) => "common" | "transactionDetails_updatingPastTransactions" | "transactionDetails_transactionUpdated" | "cockpit_month_end_email_sent" | "cockpit_month_end_email_save" | "cockpit_month_end_email_attachment_upload" | "je_bill_link" | "je_posted" | "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_setup" | "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" | "reimbursement_bulk_submit" | "reimbursement_bulk_processed" | "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" | "bill_pay_refund" | "bill_pay_retry" | "bill_pay_marked_as_paid" | "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" | "charge_card_receipt_upload" | "charge_card_resend_invite" | "charge_card_revoke_invite" | "charge_card_update_limit" | "create_schedule" | "save_schedule" | "delete_schedule" | "ignore_schedule" | "save_task_detail" | "fetch_task_detail" | "delete_task" | "archive_task" | "create_tag" | "delete_tag" | "update_charge_card" | "issue_charge_card" | "issue_charge_cards" | "notification_settings_saved" | "referral_invite_sent" | "notification_mark_as_read" | "mark_as_complete_schedule" | "cancel_journal_entry" | "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" | "task_time_spent_validation" | "transactions_reviewed" | "transaction_reviewed" | "transaction_reviewed_failed" | "transactions_reviewed_failed" | "missing_receipts_attachment" | "flux_analysis_unreviewed" | "flux_analysis_reviewed" | "receipts_upload" | "billing_address_view" | "express_pay_submit" | "exclude_transaction" | "reconcile" | "save_reconcile_for_later" | "recon_transaction_categorize" | "recon_transaction_match" | "update_debit_card_pin_attempt" | "set_debit_card_pin" | "ai_cfo_create_session_and_submit" | "send_email_magic_link_to_user" | "complete_profile_done";
|
|
2
2
|
export type SnackbarMessageSections = ReturnType<typeof toSnackbarMessageSection>;
|
|
3
3
|
export declare const toSnackbarMessageSectionTexts: (v: string) => "notification" | "failed" | "success";
|
|
4
4
|
export type SnackbarMessageSectionTexts = ReturnType<typeof toSnackbarMessageSectionTexts>;
|
|
@@ -154,10 +154,6 @@ const ALL_SNACKBAR_MESSAGE_SECTIONS = [
|
|
|
154
154
|
'update_debit_card_pin_attempt',
|
|
155
155
|
'set_debit_card_pin',
|
|
156
156
|
'ai_cfo_create_session_and_submit',
|
|
157
|
-
'treasury_setup',
|
|
158
|
-
'treasury_accept_term',
|
|
159
|
-
'treasury_transfer_money',
|
|
160
|
-
'treasury_transfer_money_failed',
|
|
161
157
|
'send_email_magic_link_to_user',
|
|
162
158
|
'complete_profile_done',
|
|
163
159
|
];
|
|
@@ -113,10 +113,6 @@ import { clearDepositAccountTransactionList } from '../../view/spendManagement/z
|
|
|
113
113
|
import { clearExpressPayView } from '../../view/spendManagement/zeniAccounts/expressPay/expressPayReducer';
|
|
114
114
|
import { clearPaymentAccountList } from '../../view/spendManagement/zeniAccounts/paymentAccountList/paymentAccountListReducer';
|
|
115
115
|
import { clearTransferDetail } from '../../view/spendManagement/zeniAccounts/transferDetail/transferDetailReducer';
|
|
116
|
-
import { clearTreasuryOverviewDetail } from '../../view/spendManagement/treasury/treasuryList/treasuryDetailReducer';
|
|
117
|
-
import { clearTreasurySetupView } from '../../view/spendManagement/treasury/treasurySetUp/treasurySetupViewReducer';
|
|
118
|
-
import { clearTreasuryStatementList } from '../../view/spendManagement/treasury/treasuryStatementList/treasuryStatementListReducer';
|
|
119
|
-
import { clearTreasuryTransferMoney } from '../../view/spendManagement/treasury/treasuryTransferMoney/treasuryTransferMoneyReducer';
|
|
120
116
|
import { clearZeniAccountList } from '../../view/spendManagement/zeniAccounts/zeniAccountList/zeniAccountListReducer';
|
|
121
117
|
import { clearZeniAccountSetupView } from '../../view/spendManagement/zeniAccounts/zeniAccountSetUp/zeniAccountSetupViewReducer';
|
|
122
118
|
import { clearZeniAccountsConfig } from '../../view/spendManagement/zeniAccounts/zeniAccountsConfig/zeniAccountsConfigReducer';
|
|
@@ -194,7 +190,7 @@ import { clearAllUserRoles } from '../userRole/userRoleReducer';
|
|
|
194
190
|
import { clearAllVendors } from '../vendor/vendorReducer';
|
|
195
191
|
import { clearAllVendorExpenseTrends } from '../vendorExpense/vendorExpenseReducer';
|
|
196
192
|
import { clearAll } from './tenantReducer';
|
|
197
|
-
type clearActionTypeForViews = ReturnType<typeof clearAccountList> | ReturnType<typeof clearAccountMappingView> | ReturnType<typeof clearActivityHistory> | ReturnType<typeof clearActivityRealTimeApproval> | ReturnType<typeof clearAddressView> | ReturnType<typeof clearAiCfoView> | ReturnType<typeof clearAllClasses> | ReturnType<typeof clearAllMonthEndCloseChecksView> | ReturnType<typeof clearApAging> | ReturnType<typeof clearApAgingDetail> | ReturnType<typeof clearArAging> | ReturnType<typeof clearArAgingDetail> | ReturnType<typeof clearAuthenticationView> | ReturnType<typeof clearBalanceSheet> | ReturnType<typeof clearBankAccountView> | ReturnType<typeof clearBillDetailView> | ReturnType<typeof clearBillList> | ReturnType<typeof clearBillPayBulkActionView> | ReturnType<typeof clearBillPayCard> | ReturnType<typeof clearBillPayConfig> | ReturnType<typeof clearBillPayReview> | ReturnType<typeof clearBillPaySetupApproverView> | ReturnType<typeof clearBillPaySetupView> | ReturnType<typeof clearCardBalance> | ReturnType<typeof clearCardPaymentView> | ReturnType<typeof clearCardUserOnboarding> | ReturnType<typeof clearCashbackDetail> | ReturnType<typeof clearCashBalance> | ReturnType<typeof clearCashFlow> | ReturnType<typeof clearCashInCashOut> | ReturnType<typeof clearCashPosition> | ReturnType<typeof clearChargeCardConfig> | ReturnType<typeof clearChargeCardDetail> | ReturnType<typeof clearChargeCardList> | ReturnType<typeof clearChargeCardSetupView> | ReturnType<typeof clearChargeCardStatementList> | ReturnType<typeof clearCheckDeposit> | ReturnType<typeof clearCompanyConfigView> | ReturnType<typeof clearCompanyHealthMetric> | ReturnType<typeof clearCompanyHealthMetricView> | ReturnType<typeof clearCompanyMonthEndReportView> | ReturnType<typeof clearCompanyTaskManagerView> | ReturnType<typeof clearCompanyView> | ReturnType<typeof clearDashboard> | ReturnType<typeof clearDashboardLayout> | ReturnType<typeof clearDepositAccountDetail> | ReturnType<typeof clearDepositAccountList> | ReturnType<typeof clearDepositAccountTransactionList> | ReturnType<typeof clearEditBillViewDetail> | ReturnType<typeof clearEditRemiViewDetail> | ReturnType<typeof clearAllEntityAutoCompleteResults> | ReturnType<typeof clearExpenseAutomationFluxAnalysisView> | ReturnType<typeof clearExpenseAutomationJESchedulesView> | ReturnType<typeof clearExpenseAutomationMissingReceiptsView> | ReturnType<typeof clearExpenseAutomationReconciliationView> | ReturnType<typeof clearExpenseAutomationTransactionsView> | ReturnType<typeof clearExpenseAutomationView> | ReturnType<typeof clearExpressPayView> | ReturnType<typeof clearFileViewList> | ReturnType<typeof clearFinanceStatement> | ReturnType<typeof clearForecastList> | ReturnType<typeof clearGlobalMerchantAutoCompleteResults> | ReturnType<typeof clearGlobalMerchantView> | ReturnType<typeof clearInsightsCard> | ReturnType<typeof clearInternationalWire> | ReturnType<typeof clearInternationalVerificationView> | ReturnType<typeof clearIssueChargeCard> | ReturnType<typeof clearMerchantList> | ReturnType<typeof clearNetBurnOrIncome> | ReturnType<typeof clearNetBurnOrIncomeClassesView> | ReturnType<typeof clearNetBurnOrIncomeStoryCard> | ReturnType<typeof clearNotificationView> | ReturnType<typeof clearOnboardingCockpitView> | ReturnType<typeof clearOnboardingCustomerView> | ReturnType<typeof clearOpEx> | ReturnType<typeof clearOpExByVendor> | ReturnType<typeof clearOpExClassesView> | ReturnType<typeof clearOwnerList> | ReturnType<typeof clearPaymentAccountList> | ReturnType<typeof clearPeople> | ReturnType<typeof clearAggregatedReport> | ReturnType<typeof clearPreviousBills> | ReturnType<typeof clearProfitAndLoss> | ReturnType<typeof clearProfitAndLossClassesView> | ReturnType<typeof clearRecommendation> | ReturnType<typeof clearReferrals> | ReturnType<typeof clearReimbursementCard> | ReturnType<typeof clearReimbursementConfig> | ReturnType<typeof clearRemiBulkActionView> | ReturnType<typeof clearRemiDetailView> | ReturnType<typeof clearRemiList> | ReturnType<typeof clearRemiSetupApproverView> | ReturnType<typeof clearRemiSetupView> | ReturnType<typeof clearReportUIOption> | ReturnType<typeof clearRevenue> | ReturnType<typeof clearRevenueClassesView> | ReturnType<typeof clearReviewCompany> | ReturnType<typeof clearScheduleDetailView> | ReturnType<typeof clearScheduleAccruedDetailView> | ReturnType<typeof clearScheduleList> | ReturnType<typeof clearSettingsView> | ReturnType<typeof clearSetupView> | ReturnType<typeof clearPlaidAccountView> | ReturnType<typeof clearSubscriptionView> | ReturnType<typeof clearTagView> | ReturnType<typeof clearTaskDetail> | ReturnType<typeof clearTaskGroupTemplatesView> | ReturnType<typeof clearTaskGroupView> | ReturnType<typeof clearTaskList> | ReturnType<typeof clearTasksCard> | ReturnType<typeof clearTopEx> | ReturnType<typeof clearTransactionDetail> | ReturnType<typeof clearTransactionList> | ReturnType<typeof clearTransferDetail> | ReturnType<typeof
|
|
193
|
+
type clearActionTypeForViews = ReturnType<typeof clearAccountList> | ReturnType<typeof clearAccountMappingView> | ReturnType<typeof clearActivityHistory> | ReturnType<typeof clearActivityRealTimeApproval> | ReturnType<typeof clearAddressView> | ReturnType<typeof clearAiCfoView> | ReturnType<typeof clearAllClasses> | ReturnType<typeof clearAllMonthEndCloseChecksView> | ReturnType<typeof clearApAging> | ReturnType<typeof clearApAgingDetail> | ReturnType<typeof clearArAging> | ReturnType<typeof clearArAgingDetail> | ReturnType<typeof clearAuthenticationView> | ReturnType<typeof clearBalanceSheet> | ReturnType<typeof clearBankAccountView> | ReturnType<typeof clearBillDetailView> | ReturnType<typeof clearBillList> | ReturnType<typeof clearBillPayBulkActionView> | ReturnType<typeof clearBillPayCard> | ReturnType<typeof clearBillPayConfig> | ReturnType<typeof clearBillPayReview> | ReturnType<typeof clearBillPaySetupApproverView> | ReturnType<typeof clearBillPaySetupView> | ReturnType<typeof clearCardBalance> | ReturnType<typeof clearCardPaymentView> | ReturnType<typeof clearCardUserOnboarding> | ReturnType<typeof clearCashbackDetail> | ReturnType<typeof clearCashBalance> | ReturnType<typeof clearCashFlow> | ReturnType<typeof clearCashInCashOut> | ReturnType<typeof clearCashPosition> | ReturnType<typeof clearChargeCardConfig> | ReturnType<typeof clearChargeCardDetail> | ReturnType<typeof clearChargeCardList> | ReturnType<typeof clearChargeCardSetupView> | ReturnType<typeof clearChargeCardStatementList> | ReturnType<typeof clearCheckDeposit> | ReturnType<typeof clearCompanyConfigView> | ReturnType<typeof clearCompanyHealthMetric> | ReturnType<typeof clearCompanyHealthMetricView> | ReturnType<typeof clearCompanyMonthEndReportView> | ReturnType<typeof clearCompanyTaskManagerView> | ReturnType<typeof clearCompanyView> | ReturnType<typeof clearDashboard> | ReturnType<typeof clearDashboardLayout> | ReturnType<typeof clearDepositAccountDetail> | ReturnType<typeof clearDepositAccountList> | ReturnType<typeof clearDepositAccountTransactionList> | ReturnType<typeof clearEditBillViewDetail> | ReturnType<typeof clearEditRemiViewDetail> | ReturnType<typeof clearAllEntityAutoCompleteResults> | ReturnType<typeof clearExpenseAutomationFluxAnalysisView> | ReturnType<typeof clearExpenseAutomationJESchedulesView> | ReturnType<typeof clearExpenseAutomationMissingReceiptsView> | ReturnType<typeof clearExpenseAutomationReconciliationView> | ReturnType<typeof clearExpenseAutomationTransactionsView> | ReturnType<typeof clearExpenseAutomationView> | ReturnType<typeof clearExpressPayView> | ReturnType<typeof clearFileViewList> | ReturnType<typeof clearFinanceStatement> | ReturnType<typeof clearForecastList> | ReturnType<typeof clearGlobalMerchantAutoCompleteResults> | ReturnType<typeof clearGlobalMerchantView> | ReturnType<typeof clearInsightsCard> | ReturnType<typeof clearInternationalWire> | ReturnType<typeof clearInternationalVerificationView> | ReturnType<typeof clearIssueChargeCard> | ReturnType<typeof clearMerchantList> | ReturnType<typeof clearNetBurnOrIncome> | ReturnType<typeof clearNetBurnOrIncomeClassesView> | ReturnType<typeof clearNetBurnOrIncomeStoryCard> | ReturnType<typeof clearNotificationView> | ReturnType<typeof clearOnboardingCockpitView> | ReturnType<typeof clearOnboardingCustomerView> | ReturnType<typeof clearOpEx> | ReturnType<typeof clearOpExByVendor> | ReturnType<typeof clearOpExClassesView> | ReturnType<typeof clearOwnerList> | ReturnType<typeof clearPaymentAccountList> | ReturnType<typeof clearPeople> | ReturnType<typeof clearAggregatedReport> | ReturnType<typeof clearPreviousBills> | ReturnType<typeof clearProfitAndLoss> | ReturnType<typeof clearProfitAndLossClassesView> | ReturnType<typeof clearRecommendation> | ReturnType<typeof clearReferrals> | ReturnType<typeof clearReimbursementCard> | ReturnType<typeof clearReimbursementConfig> | ReturnType<typeof clearRemiBulkActionView> | ReturnType<typeof clearRemiDetailView> | ReturnType<typeof clearRemiList> | ReturnType<typeof clearRemiSetupApproverView> | ReturnType<typeof clearRemiSetupView> | ReturnType<typeof clearReportUIOption> | ReturnType<typeof clearRevenue> | ReturnType<typeof clearRevenueClassesView> | ReturnType<typeof clearReviewCompany> | ReturnType<typeof clearScheduleDetailView> | ReturnType<typeof clearScheduleAccruedDetailView> | ReturnType<typeof clearScheduleList> | ReturnType<typeof clearSettingsView> | ReturnType<typeof clearSetupView> | ReturnType<typeof clearPlaidAccountView> | ReturnType<typeof clearSubscriptionView> | ReturnType<typeof clearTagView> | ReturnType<typeof clearTaskDetail> | ReturnType<typeof clearTaskGroupTemplatesView> | ReturnType<typeof clearTaskGroupView> | ReturnType<typeof clearTaskList> | ReturnType<typeof clearTasksCard> | ReturnType<typeof clearTopEx> | ReturnType<typeof clearTransactionDetail> | ReturnType<typeof clearTransactionList> | ReturnType<typeof clearTransferDetail> | ReturnType<typeof clearTrendData> | ReturnType<typeof clearTrendWithTransactions> | ReturnType<typeof clearTwoFactorAuthentication> | ReturnType<typeof clearUserFinancialAccount> | ReturnType<typeof clearUserListView> | ReturnType<typeof clearUserRoleConfigView> | ReturnType<typeof clearVendorGlobalReviewView> | ReturnType<typeof clearVendorReviewView> | ReturnType<typeof clearVendorTypeList> | ReturnType<typeof clearVendor1099TypeList> | ReturnType<typeof clearVendorView> | ReturnType<typeof clearVendorsFiling1099List> | ReturnType<typeof clearVendorsList> | ReturnType<typeof clearVendorsTabVendorView> | ReturnType<typeof clearWiseRedirectStatus> | ReturnType<typeof clearZeniAccStatementList> | ReturnType<typeof clearZeniAccountList> | ReturnType<typeof clearZeniAccountSetupView> | ReturnType<typeof clearZeniAccountsConfig> | ReturnType<typeof clearZeniAccountsPromoCard>;
|
|
198
194
|
type clearActionTypeForEntities = ReturnType<typeof clearAiCfo> | ReturnType<typeof clearAllAccountGroups> | ReturnType<typeof clearAllAccountRecon> | ReturnType<typeof clearAllAccountingSummary> | ReturnType<typeof clearAllAccounts> | ReturnType<typeof clearAllAddresses> | ReturnType<typeof clearAllApprovalRules> | ReturnType<typeof clearAllBankAccounts> | ReturnType<typeof clearAllBillTransactions> | ReturnType<typeof clearAllCardPayments> | ReturnType<typeof clearAllChargeCardTransactions> | ReturnType<typeof clearAllChargeCards> | ReturnType<typeof clearAllCompanies> | ReturnType<typeof clearAllConnectedAccounts> | ReturnType<typeof clearAllCurrencies> | ReturnType<typeof clearAllCustomerIncomeTrend> | ReturnType<typeof clearAllCustomers> | ReturnType<typeof clearAllDepositAccounts> | ReturnType<typeof clearAllEntities> | ReturnType<typeof clearAllEntityApprovalStatus> | ReturnType<typeof clearAllFiles> | ReturnType<typeof clearAllForecasts> | ReturnType<typeof clearAllGlobalMerchants> | ReturnType<typeof clearAllInsights> | ReturnType<typeof clearAllAccruedJESchedules> | ReturnType<typeof clearAllJEScheduleTransactions> | ReturnType<typeof clearAllMerchants> | ReturnType<typeof clearAllMonthEndCloseChecks> | ReturnType<typeof clearAllNotifications> | ReturnType<typeof clearAllOnboardingCustomersInfo> | ReturnType<typeof clearAllPaymentAccounts> | ReturnType<typeof clearAllPaymentInstruments> | ReturnType<typeof clearAllRecurringBills> | ReturnType<typeof clearAllReimbursements> | ReturnType<typeof clearAllSectionsAccountsView> | ReturnType<typeof clearAllSectionsClassesViewV2> | ReturnType<typeof clearAllSubscriptionAddOns> | ReturnType<typeof clearAllSubscriptionCoupons> | ReturnType<typeof clearAllSubscriptionPlans> | ReturnType<typeof clearAllSubscriptionSummary> | ReturnType<typeof clearAllSubscriptions> | ReturnType<typeof clearAllTags> | ReturnType<typeof clearAllTaskGroups> | ReturnType<typeof clearAllTaskGroupTemplates> | ReturnType<typeof clearAllTaskSummary> | ReturnType<typeof clearAllTasks> | ReturnType<typeof clearAllToastNotifications> | ReturnType<typeof clearAllTransactions> | ReturnType<typeof clearAllUserRoles> | ReturnType<typeof clearAllUsers> | ReturnType<typeof clearAllVendorExpenseTrends> | ReturnType<typeof clearAllVendors> | ReturnType<typeof clearClassList> | ReturnType<typeof clearContacts> | ReturnType<typeof clearCountryList> | ReturnType<typeof clearDepositAccountTransaction> | ReturnType<typeof clearSnackbar>;
|
|
199
195
|
export type ActionType = clearActionTypeForViews | clearActionTypeForEntities | ReturnType<typeof clearAll>;
|
|
200
196
|
export declare const clearAllEpic: (actions$: ActionsObservable<ActionType>) => import("rxjs").Observable<ActionType>;
|
|
@@ -117,10 +117,6 @@ const depositAccountTransactionListReducer_1 = require("../../view/spendManageme
|
|
|
117
117
|
const expressPayReducer_1 = require("../../view/spendManagement/zeniAccounts/expressPay/expressPayReducer");
|
|
118
118
|
const paymentAccountListReducer_1 = require("../../view/spendManagement/zeniAccounts/paymentAccountList/paymentAccountListReducer");
|
|
119
119
|
const transferDetailReducer_1 = require("../../view/spendManagement/zeniAccounts/transferDetail/transferDetailReducer");
|
|
120
|
-
const treasuryDetailReducer_1 = require("../../view/spendManagement/treasury/treasuryList/treasuryDetailReducer");
|
|
121
|
-
const treasurySetupViewReducer_1 = require("../../view/spendManagement/treasury/treasurySetUp/treasurySetupViewReducer");
|
|
122
|
-
const treasuryStatementListReducer_1 = require("../../view/spendManagement/treasury/treasuryStatementList/treasuryStatementListReducer");
|
|
123
|
-
const treasuryTransferMoneyReducer_1 = require("../../view/spendManagement/treasury/treasuryTransferMoney/treasuryTransferMoneyReducer");
|
|
124
120
|
const zeniAccountListReducer_1 = require("../../view/spendManagement/zeniAccounts/zeniAccountList/zeniAccountListReducer");
|
|
125
121
|
const zeniAccountSetupViewReducer_1 = require("../../view/spendManagement/zeniAccounts/zeniAccountSetUp/zeniAccountSetupViewReducer");
|
|
126
122
|
const zeniAccountsConfigReducer_1 = require("../../view/spendManagement/zeniAccounts/zeniAccountsConfig/zeniAccountsConfigReducer");
|
|
@@ -316,10 +312,6 @@ const clearAllEpic = (actions$) => actions$.pipe((0, operators_1.filter)(tenantR
|
|
|
316
312
|
(0, transactionDetailReducer_1.clearTransactionDetail)(),
|
|
317
313
|
(0, transactionListReducer_1.clearTransactionList)(),
|
|
318
314
|
(0, transferDetailReducer_1.clearTransferDetail)(),
|
|
319
|
-
(0, treasuryDetailReducer_1.clearTreasuryOverviewDetail)(),
|
|
320
|
-
(0, treasurySetupViewReducer_1.clearTreasurySetupView)(),
|
|
321
|
-
(0, treasuryStatementListReducer_1.clearTreasuryStatementList)(),
|
|
322
|
-
(0, treasuryTransferMoneyReducer_1.clearTreasuryTransferMoney)(),
|
|
323
315
|
(0, trendReducer_1.clearTrendData)(),
|
|
324
316
|
(0, trendWithTransactionsReducer_1.clearTrendWithTransactions)(),
|
|
325
317
|
(0, twoFactorAuthenticationReducer_1.clearTwoFactorAuthentication)(),
|
|
@@ -29,7 +29,6 @@ interface TenantPayload {
|
|
|
29
29
|
hubspot_id: ID | null;
|
|
30
30
|
is_book_keeping_enabled: boolean;
|
|
31
31
|
is_banking_enabled: boolean;
|
|
32
|
-
is_treasury_enabled: boolean;
|
|
33
32
|
is_spend_management_enabled: boolean;
|
|
34
33
|
is_other_products_enabled: boolean;
|
|
35
34
|
is_card_enabled: boolean;
|
|
@@ -57,8 +56,6 @@ interface TenantPayload {
|
|
|
57
56
|
is_reimbursements_admin: boolean;
|
|
58
57
|
is_deposit_accounts_admin: boolean;
|
|
59
58
|
is_deposit_accounts_user: boolean;
|
|
60
|
-
is_treasury_admin: boolean;
|
|
61
|
-
is_treasury_user: boolean;
|
|
62
59
|
is_deleted: boolean;
|
|
63
60
|
is_zeni: boolean;
|
|
64
61
|
is_invite_accepted: boolean;
|
|
@@ -462,7 +462,6 @@ function mapTenantPayloadToTenant(payload, userTenantPayload) {
|
|
|
462
462
|
updateTime: (0, zeniDayJS_1.date)(payload.update_time),
|
|
463
463
|
productSettings: {
|
|
464
464
|
isBankingEnabled: payload.is_banking_enabled,
|
|
465
|
-
isTreasuryEnabled: payload.is_treasury_enabled,
|
|
466
465
|
isSpendManagementEnabled: payload.is_spend_management_enabled,
|
|
467
466
|
isBookkeepingEnabled: payload.is_book_keeping_enabled,
|
|
468
467
|
isOtherProductsEnabled: payload.is_other_products_enabled,
|
|
@@ -2,7 +2,7 @@ import { FetchState, ID } from '../../commonStateTypes/common';
|
|
|
2
2
|
import { RootState } from '../../reducer';
|
|
3
3
|
import { ZeniAPIStatus } from '../../responsePayload';
|
|
4
4
|
import { CompanyState } from '../company/companyState';
|
|
5
|
-
import { Company, CompanyBillPayInfo, CompanyChargeCardInfo, CompanyDebitCardInfo, CompanyLocaleInfo, CompanyReimbursementInfo,
|
|
5
|
+
import { Company, CompanyBillPayInfo, CompanyChargeCardInfo, CompanyDebitCardInfo, CompanyLocaleInfo, CompanyReimbursementInfo, CompanyZeniAccountInfo } from '../company/companyStateTypes';
|
|
6
6
|
import { SubscriptionSummary } from '../subscription/subscriptionSummary/subscriptionSummaryState';
|
|
7
7
|
import { UserRoleType } from '../userRole/userRoleType';
|
|
8
8
|
import { RoleResource, Tenant, TenantExternalConnections, TenantState } from './tenantState';
|
|
@@ -66,10 +66,6 @@ declare const getCurrentTenantHelper: (tenantState: TenantState, companyState: C
|
|
|
66
66
|
fetchState: FetchState;
|
|
67
67
|
info?: CompanyDebitCardInfo;
|
|
68
68
|
} | undefined;
|
|
69
|
-
companyTreasuryInfo: {
|
|
70
|
-
fetchState: FetchState;
|
|
71
|
-
info?: CompanyTreasuryInfo;
|
|
72
|
-
} | undefined;
|
|
73
69
|
};
|
|
74
70
|
export type CurrentTenant = ReturnType<typeof getCurrentTenantHelper>;
|
|
75
71
|
export declare const getCurrentTenant: (state: RootState) => CurrentTenant;
|
|
@@ -80,7 +80,6 @@ const getCurrentTenantHelper = (tenantState, companyState) => {
|
|
|
80
80
|
let companyZeniAccountInfo = undefined;
|
|
81
81
|
let companyChargeCardInfo = undefined;
|
|
82
82
|
let companyDebitCardInfo = undefined;
|
|
83
|
-
let companyTreasuryInfo = undefined;
|
|
84
83
|
if (tenant != null) {
|
|
85
84
|
const company = (0, companySelector_1.getCompanyByCompanyId)(companyState, tenant.companyId);
|
|
86
85
|
companyBillPayInfo = {
|
|
@@ -103,10 +102,6 @@ const getCurrentTenantHelper = (tenantState, companyState) => {
|
|
|
103
102
|
fetchState: 'Completed',
|
|
104
103
|
info: company != null ? company.company.companyDebitCardInfo : undefined,
|
|
105
104
|
};
|
|
106
|
-
companyTreasuryInfo = {
|
|
107
|
-
fetchState: 'Completed',
|
|
108
|
-
info: company != null ? company.company.companyTreasuryInfo : undefined,
|
|
109
|
-
};
|
|
110
105
|
}
|
|
111
106
|
return Object.assign({}, tenant, {
|
|
112
107
|
excludedResources,
|
|
@@ -117,7 +112,6 @@ const getCurrentTenantHelper = (tenantState, companyState) => {
|
|
|
117
112
|
companyZeniAccountInfo,
|
|
118
113
|
companyChargeCardInfo,
|
|
119
114
|
companyDebitCardInfo,
|
|
120
|
-
companyTreasuryInfo,
|
|
121
115
|
});
|
|
122
116
|
};
|
|
123
117
|
exports.getCurrentTenant = (0, toolkit_1.createSelector)((state) => state.tenantState, (state) => state.companyState, (tenantState, companyState) => {
|
|
@@ -43,7 +43,6 @@ export interface TenantState extends FetchedState {
|
|
|
43
43
|
export interface TenantProductSettings {
|
|
44
44
|
isBookkeepingEnabled: boolean;
|
|
45
45
|
isBankingEnabled: boolean;
|
|
46
|
-
isTreasuryEnabled: boolean;
|
|
47
46
|
isSpendManagementEnabled: boolean;
|
|
48
47
|
isOtherProductsEnabled: boolean;
|
|
49
48
|
isCardsEnabled: boolean;
|
|
@@ -41,8 +41,6 @@ export interface UserRolePayload {
|
|
|
41
41
|
is_reimbursements_admin: boolean;
|
|
42
42
|
is_deposit_accounts_admin: boolean;
|
|
43
43
|
is_deposit_accounts_user: boolean;
|
|
44
|
-
is_treasury_admin: boolean;
|
|
45
|
-
is_treasury_user: boolean;
|
|
46
44
|
is_deleted: boolean;
|
|
47
45
|
is_zeni: boolean;
|
|
48
46
|
user_verification_status: {
|
|
@@ -67,10 +65,6 @@ export interface UserRolePayload {
|
|
|
67
65
|
invite_updater_id?: string | null;
|
|
68
66
|
inviter_email?: string | null;
|
|
69
67
|
inviter_id?: ID | null;
|
|
70
|
-
treasury_user_verification_status?: {
|
|
71
|
-
code: string | null;
|
|
72
|
-
name: string | null;
|
|
73
|
-
} | null;
|
|
74
68
|
}
|
|
75
69
|
declare function getUserRoles(userRolePayload: UserRolePayload | TenantPayload): UserRoleType[];
|
|
76
70
|
declare function getInvitationStatus(userRolePayload: UserRolePayload | TenantPayload): InvitationStatus;
|
|
@@ -67,12 +67,6 @@ function getUserRoles(userRolePayload) {
|
|
|
67
67
|
if (userRolePayload.is_deposit_accounts_user === true) {
|
|
68
68
|
roles.push('deposit_accounts_user');
|
|
69
69
|
}
|
|
70
|
-
if (userRolePayload.is_treasury_admin === true) {
|
|
71
|
-
roles.push('treasury_admin');
|
|
72
|
-
}
|
|
73
|
-
if (userRolePayload.is_treasury_user === true) {
|
|
74
|
-
roles.push('treasury_user');
|
|
75
|
-
}
|
|
76
70
|
if (roles.length === 0) {
|
|
77
71
|
// Default fallback.. Ideally shouldn't happen in PROD
|
|
78
72
|
roles.push('bookkeeping_user');
|
|
@@ -92,8 +92,5 @@ function mapUserRolePayloadToUserRole(userRolePayload) {
|
|
|
92
92
|
userReimbursementInfo: userRolePayload.reimbursement_info != null
|
|
93
93
|
? (0, userRolePayload_1.toUserReimbursementInfo)(userRolePayload.reimbursement_info)
|
|
94
94
|
: undefined,
|
|
95
|
-
treasuryUserVerificationStatus: userRolePayload.treasury_user_verification_status != null
|
|
96
|
-
? (0, companyPayload_1.toAllowedValueWithCode)(userRolePayload.treasury_user_verification_status)
|
|
97
|
-
: undefined,
|
|
98
95
|
};
|
|
99
96
|
}
|
|
@@ -39,7 +39,6 @@ export interface UserRole {
|
|
|
39
39
|
managerUserId?: ID;
|
|
40
40
|
userVerificationStatus?: AllowedValueWithCode;
|
|
41
41
|
userReimbursementInfo?: UserReimbursementInfo;
|
|
42
|
-
treasuryUserVerificationStatus?: AllowedValueWithCode;
|
|
43
42
|
}
|
|
44
43
|
export interface UserRoleState {
|
|
45
44
|
userRoleByUserId: Record<ID, UserRole>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { CurrentTenant, TenantView } from '../tenant/tenantSelector';
|
|
2
2
|
import { LoggedInUser } from '../tenant/tenantState';
|
|
3
|
-
export declare const toUserRoleTypeStrict: (v?: string) => "admin" | "bookkeeping_admin" | "bookkeeping_user" | "investor_or_banker" | "company_officer" | "reimbursements_user" | "bill_pay_admin" | "bill_pay_user" | "reimbursements_admin" | "deposit_accounts_admin" | "deposit_accounts_user" | "charge_card_admin" | "charge_card_user" | "
|
|
4
|
-
export declare const toUserRoleType: (v: string) => "admin" | "bookkeeping_admin" | "bookkeeping_user" | "investor_or_banker" | "company_officer" | "reimbursements_user" | "bill_pay_admin" | "bill_pay_user" | "reimbursements_admin" | "deposit_accounts_admin" | "deposit_accounts_user" | "charge_card_admin" | "charge_card_user" | "
|
|
3
|
+
export declare const toUserRoleTypeStrict: (v?: string) => "admin" | "bookkeeping_admin" | "bookkeeping_user" | "investor_or_banker" | "company_officer" | "reimbursements_user" | "bill_pay_admin" | "bill_pay_user" | "reimbursements_admin" | "deposit_accounts_admin" | "deposit_accounts_user" | "charge_card_admin" | "charge_card_user" | "controller" | "tax_lead" | "ap_analyst" | "preparer" | "reviewer" | "customer_success_manager" | "zeni_support_user" | undefined;
|
|
4
|
+
export declare const toUserRoleType: (v: string) => "admin" | "bookkeeping_admin" | "bookkeeping_user" | "investor_or_banker" | "company_officer" | "reimbursements_user" | "bill_pay_admin" | "bill_pay_user" | "reimbursements_admin" | "deposit_accounts_admin" | "deposit_accounts_user" | "charge_card_admin" | "charge_card_user" | "controller" | "tax_lead" | "ap_analyst" | "preparer" | "reviewer" | "customer_success_manager" | "zeni_support_user";
|
|
5
5
|
export type UserRoleType = ReturnType<typeof toUserRoleType>;
|
|
6
6
|
export type RoleMap = Record<string, boolean>;
|
|
7
7
|
export declare const isFinOpsUserRoleType: (userRole: UserRoleType) => boolean;
|
|
@@ -26,8 +26,6 @@ export declare const hasBillPayAccess: (userRoleMap?: RoleMap) => boolean;
|
|
|
26
26
|
export declare const hasReimbursementAccess: (userRoleMap?: RoleMap) => boolean;
|
|
27
27
|
export declare const hasChargeCardAccess: (userRoleMap?: RoleMap) => boolean;
|
|
28
28
|
export declare const hasZeniAccountsAccess: (userRoleMap?: RoleMap) => boolean;
|
|
29
|
-
export declare const hasTreasuryAccess: (userRoleMap?: RoleMap) => boolean;
|
|
30
|
-
export declare const hasTreasuryAdminLevelAccess: (userRoleMap?: RoleMap) => boolean;
|
|
31
29
|
export declare const hasBillPayAdminLevelAccess: (userRoleMap?: RoleMap) => boolean;
|
|
32
30
|
export declare const hasReimbursementAdminLevelAccess: (userRoleMap?: RoleMap) => boolean;
|
|
33
31
|
export declare const hasChargeCardAdminLevelAccess: (userRoleMap?: RoleMap) => boolean;
|
|
@@ -42,4 +40,3 @@ export declare const hasBillPayAccessible: (currentTenant: CurrentTenant | undef
|
|
|
42
40
|
export declare const hasReimbursementAccessible: (currentTenant: CurrentTenant | undefined, userRoleMap?: RoleMap) => boolean;
|
|
43
41
|
export declare const hasChargeCardAccessible: (currentTenant: CurrentTenant | undefined, userRoleMap?: RoleMap) => boolean;
|
|
44
42
|
export declare const hasZeniAccountsAccessible: (currentTenant: CurrentTenant | undefined, userRoleMap?: RoleMap) => boolean;
|
|
45
|
-
export declare const hasTreasuryAccessible: (currentTenant: CurrentTenant | undefined, userRoleMap?: RoleMap) => boolean;
|