@zeniai/client-epic-state 4.17.45 → 4.17.46
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 +1 -0
- package/lib/commonStateTypes/viewAndReport/viewAndReport.d.ts +2 -2
- package/lib/commonStateTypes/viewAndReport/viewAndReport.js +1 -0
- 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 +27 -2
- package/lib/entity/company/companyPayload.js +38 -2
- package/lib/entity/company/companyStateTypes.d.ts +22 -0
- package/lib/entity/company/companyStateTypes.js +13 -1
- package/lib/entity/entityApprovalStatus/entityApprovalStatusState.d.ts +2 -2
- package/lib/entity/entityApprovalStatus/entityApprovalStatusState.js +1 -0
- package/lib/entity/file/fileState.d.ts +2 -2
- package/lib/entity/file/fileState.js +1 -0
- 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 +4 -0
- package/lib/entity/tenant/clearAllEpic.d.ts +5 -1
- package/lib/entity/tenant/clearAllEpic.js +8 -0
- package/lib/entity/tenant/tenantPayload.d.ts +3 -0
- package/lib/entity/tenant/tenantReducer.js +1 -0
- package/lib/entity/tenant/tenantSelector.d.ts +5 -1
- package/lib/entity/tenant/tenantSelector.js +6 -0
- package/lib/entity/tenant/tenantState.d.ts +1 -0
- package/lib/entity/userRole/userRolePayload.d.ts +6 -0
- package/lib/entity/userRole/userRolePayload.js +6 -0
- package/lib/entity/userRole/userRoleReducer.js +3 -0
- package/lib/entity/userRole/userRoleState.d.ts +1 -0
- package/lib/entity/userRole/userRoleType.d.ts +5 -2
- package/lib/entity/userRole/userRoleType.js +44 -5
- package/lib/epic.d.ts +11 -1
- package/lib/epic.js +11 -1
- package/lib/index.d.ts +23 -9
- package/lib/index.js +64 -33
- package/lib/reducer.d.ts +12 -0
- package/lib/reducer.js +12 -0
- package/lib/view/addressView/__mocks__/json/createCompanyAddressSuccess.json +21 -0
- package/lib/view/addressView/__mocks__/json/createCompanyUserAddressSuccess.json +43 -0
- 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 +1 -0
- package/lib/view/onboardingView/cockpitView/onboardingCockpitViewPayload.js +7 -0
- package/lib/view/onboardingView/cockpitView/onboardingCockpitViewSelector.js +5 -0
- package/lib/view/onboardingView/cockpitView/types/onboardingCockpitViewTypes.d.ts +2 -2
- package/lib/view/onboardingView/cockpitView/types/onboardingCockpitViewTypes.js +1 -0
- package/lib/view/onboardingView/customerView/onboardingCustomerViewSelector.js +1 -0
- package/lib/view/reimbursementCard/reimbursementCardSelector.d.ts +1 -1
- package/lib/view/settingsView/settingsViewHelpers.d.ts +2 -1
- package/lib/view/settingsView/settingsViewHelpers.js +4 -3
- package/lib/view/settingsView/settingsViewSelector.d.ts +1 -1
- package/lib/view/settingsView/settingsViewSelector.js +9 -2
- package/lib/view/spendManagement/commonHistoryView/commonHistoryReducer.d.ts +2 -2
- package/lib/view/spendManagement/commonSetup/epic/setup/updateBusinessVerificationDetailsEpic.js +6 -1
- package/lib/view/spendManagement/commonSetup/epic/setup/updateSetupViewLocalStoreDataEpic.js +3 -1
- package/lib/view/spendManagement/commonSetup/setupViewReducer.d.ts +6 -6
- package/lib/view/spendManagement/commonSetup/setupViewReducer.js +15 -2
- package/lib/view/spendManagement/commonSetup/setupViewSelector.d.ts +1 -0
- package/lib/view/spendManagement/commonSetup/setupViewSelector.js +10 -2
- package/lib/view/spendManagement/commonSetup/setupViewState.d.ts +3 -1
- package/lib/view/spendManagement/commonSetup/types/businessVerification.d.ts +1 -0
- package/lib/view/spendManagement/plaidAccount/epic/paymentAccounts/updatePrimaryFundingAccountEpic.js +6 -0
- package/lib/view/spendManagement/plaidAccount/plaidAccountViewReducer.d.ts +10 -10
- package/lib/view/spendManagement/plaidAccount/plaidAccountViewReducer.js +1 -0
- package/lib/view/spendManagement/plaidAccount/plaidAccountViewState.d.ts +1 -1
- package/lib/view/spendManagement/realTimeApprovalView/realTimeApprovalReducer.d.ts +2 -2
- package/lib/view/spendManagement/treasury/treasuryList/epics/fetchTreasuryDetailEpic.d.ts +9 -0
- package/lib/view/spendManagement/treasury/treasuryList/epics/fetchTreasuryDetailEpic.js +69 -0
- package/lib/view/spendManagement/treasury/treasuryList/epics/fetchTreasuryHistoryEpic.d.ts +7 -0
- package/lib/view/spendManagement/treasury/treasuryList/epics/fetchTreasuryHistoryEpic.js +31 -0
- package/lib/view/spendManagement/treasury/treasuryList/epics/fetchTreasuryTransactionListEpic.d.ts +7 -0
- package/lib/view/spendManagement/treasury/treasuryList/epics/fetchTreasuryTransactionListEpic.js +40 -0
- package/lib/view/spendManagement/treasury/treasuryList/treasuryDetailPayload.d.ts +60 -0
- package/lib/view/spendManagement/treasury/treasuryList/treasuryDetailPayload.js +18 -0
- package/lib/view/spendManagement/treasury/treasuryList/treasuryDetailReducer.d.ts +31 -0
- package/lib/view/spendManagement/treasury/treasuryList/treasuryDetailReducer.js +152 -0
- package/lib/view/spendManagement/treasury/treasuryList/treasuryDetailSelector.d.ts +14 -0
- package/lib/view/spendManagement/treasury/treasuryList/treasuryDetailSelector.js +46 -0
- package/lib/view/spendManagement/treasury/treasuryList/treasuryDetailState.d.ts +42 -0
- package/lib/view/spendManagement/treasury/treasuryList/treasuryDetailState.js +31 -0
- package/lib/view/spendManagement/treasury/treasurySetUp/epic/acceptTreasuryTermsEpic.d.ts +11 -0
- package/lib/view/spendManagement/treasury/treasurySetUp/epic/acceptTreasuryTermsEpic.js +44 -0
- package/lib/view/spendManagement/treasury/treasurySetUp/epic/fetchPortfolioAllocationEpic.d.ts +7 -0
- package/lib/view/spendManagement/treasury/treasurySetUp/epic/fetchPortfolioAllocationEpic.js +21 -0
- package/lib/view/spendManagement/treasury/treasurySetUp/epic/fetchTreasuryFundsEpic.d.ts +7 -0
- package/lib/view/spendManagement/treasury/treasurySetUp/epic/fetchTreasuryFundsEpic.js +28 -0
- package/lib/view/spendManagement/treasury/treasurySetUp/epic/fetchTreasurySetupViewEpic.d.ts +20 -0
- package/lib/view/spendManagement/treasury/treasurySetUp/epic/fetchTreasurySetupViewEpic.js +83 -0
- package/lib/view/spendManagement/treasury/treasurySetUp/epic/updatePortfolioAllocationEpic.d.ts +7 -0
- package/lib/view/spendManagement/treasury/treasurySetUp/epic/updatePortfolioAllocationEpic.js +30 -0
- package/lib/view/spendManagement/treasury/treasurySetUp/treasurySetupViewPayload.d.ts +53 -0
- package/lib/view/spendManagement/treasury/treasurySetUp/treasurySetupViewPayload.js +2 -0
- package/lib/view/spendManagement/treasury/treasurySetUp/treasurySetupViewReducer.d.ts +19 -0
- package/lib/view/spendManagement/treasury/treasurySetUp/treasurySetupViewReducer.js +264 -0
- package/lib/view/spendManagement/treasury/treasurySetUp/treasurySetupViewSelector.d.ts +24 -0
- package/lib/view/spendManagement/treasury/treasurySetUp/treasurySetupViewSelector.js +35 -0
- package/lib/view/spendManagement/treasury/treasurySetUp/treasurySetupViewState.d.ts +47 -0
- package/lib/view/spendManagement/treasury/treasurySetUp/treasurySetupViewState.js +2 -0
- package/lib/view/spendManagement/treasury/treasuryStatementList/fetchTreasuryStatementListEpic.d.ts +7 -0
- package/lib/view/spendManagement/treasury/treasuryStatementList/fetchTreasuryStatementListEpic.js +42 -0
- package/lib/view/spendManagement/treasury/treasuryStatementList/treasuryStatementList.d.ts +10 -0
- package/lib/view/spendManagement/treasury/treasuryStatementList/treasuryStatementList.js +11 -0
- package/lib/view/spendManagement/treasury/treasuryStatementList/treasuryStatementListPayload.d.ts +10 -0
- package/lib/view/spendManagement/treasury/treasuryStatementList/treasuryStatementListPayload.js +2 -0
- package/lib/view/spendManagement/treasury/treasuryStatementList/treasuryStatementListReducer.d.ts +15 -0
- package/lib/view/spendManagement/treasury/treasuryStatementList/treasuryStatementListReducer.js +57 -0
- package/lib/view/spendManagement/treasury/treasuryStatementList/treasuryStatementListSelector.d.ts +7 -0
- package/lib/view/spendManagement/treasury/treasuryStatementList/treasuryStatementListSelector.js +18 -0
- package/lib/view/spendManagement/treasury/treasuryTransferMoney/treasuryTransferMoneyEpic.d.ts +9 -0
- package/lib/view/spendManagement/treasury/treasuryTransferMoney/treasuryTransferMoneyEpic.js +92 -0
- package/lib/view/spendManagement/treasury/treasuryTransferMoney/treasuryTransferMoneyPayload.d.ts +36 -0
- package/lib/view/spendManagement/treasury/treasuryTransferMoney/treasuryTransferMoneyPayload.js +15 -0
- package/lib/view/spendManagement/treasury/treasuryTransferMoney/treasuryTransferMoneyReducer.d.ts +10 -0
- package/lib/view/spendManagement/treasury/treasuryTransferMoney/treasuryTransferMoneyReducer.js +45 -0
- package/lib/view/spendManagement/treasury/treasuryTransferMoney/treasuryTransferMoneySelector.d.ts +17 -0
- package/lib/view/spendManagement/treasury/treasuryTransferMoney/treasuryTransferMoneySelector.js +55 -0
- package/lib/view/spendManagement/treasury/treasuryTransferMoney/treasuryTransferMoneyState.d.ts +17 -0
- package/lib/view/spendManagement/treasury/treasuryTransferMoney/treasuryTransferMoneyState.js +2 -0
- package/lib/view/tasksCard/tasksCardSelector.d.ts +1 -1
- package/lib/view/topEx/topExSelector.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.toAllowedValueWithCode = exports.toCompany = exports.toOnboardingInfo = exports.defaultParentSubsidiaryObject = void 0;
|
|
3
|
+
exports.toAllowedValueWithCode = exports.toCompany = exports.toOnboardingInfo = exports.toCompanyTreasuryInfo = 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, _f;
|
|
15
15
|
return {
|
|
16
16
|
bookCloseDate: payload.book_close_date != null
|
|
17
17
|
? (0, zeniDayJS_1.date)(payload.book_close_date)
|
|
@@ -36,6 +36,7 @@ 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,
|
|
39
40
|
};
|
|
40
41
|
};
|
|
41
42
|
const toCompanyLocaleInfo = (payload) => {
|
|
@@ -194,6 +195,40 @@ const toCompanyZeniAccountInfo = (payload) => {
|
|
|
194
195
|
: undefined,
|
|
195
196
|
});
|
|
196
197
|
};
|
|
198
|
+
const toCompanyTreasuryInfo = (payload) => {
|
|
199
|
+
var _a, _b, _c, _d, _e, _f;
|
|
200
|
+
if (!payload) {
|
|
201
|
+
return {
|
|
202
|
+
isTreasuryTOSAccepted: false,
|
|
203
|
+
};
|
|
204
|
+
}
|
|
205
|
+
return {
|
|
206
|
+
treasuryTOSAcceptanceUserid: (_a = payload.treasury_accounts_tos_acceptance_user_id) !== null && _a !== void 0 ? _a : undefined,
|
|
207
|
+
treasuryTOSAcceptanceUserAgent: (_b = payload.treasury_accounts_tos_acceptance_user_agent) !== null && _b !== void 0 ? _b : undefined,
|
|
208
|
+
treasuryTOSAcceptanceTime: payload.treasury_accounts_tos_acceptance_time != null
|
|
209
|
+
? (0, zeniDayJS_1.date)(payload.treasury_accounts_tos_acceptance_time)
|
|
210
|
+
: undefined,
|
|
211
|
+
treasuryTOSAcceptanceIp: (_c = payload.treasury_accounts_tos_acceptance_ip) !== null && _c !== void 0 ? _c : undefined,
|
|
212
|
+
isTreasuryTOSAccepted: (_d = payload.is_treasury_accounts_tos_accepted) !== null && _d !== void 0 ? _d : false,
|
|
213
|
+
treasuryBusinessVerificationVerifiedTime: payload.treasury_business_verification_verified_time != null
|
|
214
|
+
? (0, zeniDayJS_1.date)(payload.treasury_business_verification_verified_time)
|
|
215
|
+
: undefined,
|
|
216
|
+
primaryFundingAccount: ((_e = payload.primary_funding_account) === null || _e === void 0 ? void 0 : _e.account_id) != null &&
|
|
217
|
+
((_f = payload.primary_funding_account) === null || _f === void 0 ? void 0 : _f.account_type) != null
|
|
218
|
+
? {
|
|
219
|
+
accountId: payload.primary_funding_account.account_id,
|
|
220
|
+
accountType: (0, billPayConfigPayload_1.getAccountTypeSubConfigCodeKey)((0, billPayConfigState_1.toAccType)(payload.primary_funding_account.account_type)),
|
|
221
|
+
}
|
|
222
|
+
: undefined,
|
|
223
|
+
businessVerificationStatus: payload.company_verification_status != null
|
|
224
|
+
? (0, exports.toAllowedValueWithCode)(payload.company_verification_status)
|
|
225
|
+
: undefined,
|
|
226
|
+
companyVerificationStatus: payload.company_verification_status != null
|
|
227
|
+
? (0, exports.toAllowedValueWithCode)(payload.company_verification_status)
|
|
228
|
+
: undefined,
|
|
229
|
+
};
|
|
230
|
+
};
|
|
231
|
+
exports.toCompanyTreasuryInfo = toCompanyTreasuryInfo;
|
|
197
232
|
const toCompanyChargeCardInfo = (payload) => {
|
|
198
233
|
var _a, _b, _c, _d, _e;
|
|
199
234
|
return ({
|
|
@@ -396,6 +431,7 @@ const toCompany = (payload, companiesPayload, isUpdate, companyInStore, companyI
|
|
|
396
431
|
companyBillPayInfo: toCompanyBillPayInfo(payload.bill_pay_info),
|
|
397
432
|
companyReimbursementInfo: toCompanyReimbursementInfo(payload.reimbursement_info),
|
|
398
433
|
companyZeniAccountInfo: toCompanyZeniAccountInfo(payload.deposit_accounts_info),
|
|
434
|
+
companyTreasuryInfo: (0, exports.toCompanyTreasuryInfo)(payload.treasury_accounts_info),
|
|
399
435
|
companyChargeCardInfo: toCompanyChargeCardInfo(payload.charge_cards_info),
|
|
400
436
|
companyDebitCardInfo: toCompanyDebitCardInfo(payload.debit_cards_info),
|
|
401
437
|
companyOnboardingInfo: toCompanyOnboardingInfo(payload),
|
|
@@ -32,6 +32,7 @@ export interface CompanyInfo {
|
|
|
32
32
|
companyDescription?: string;
|
|
33
33
|
syncToken?: string;
|
|
34
34
|
phone?: string;
|
|
35
|
+
sourceOfFunds?: string;
|
|
35
36
|
}
|
|
36
37
|
export interface CompanyLocaleInfo {
|
|
37
38
|
companyIncCountryCode: string;
|
|
@@ -141,6 +142,7 @@ export interface Company {
|
|
|
141
142
|
companyBillPayInfo: CompanyBillPayInfo;
|
|
142
143
|
companyReimbursementInfo: CompanyReimbursementInfo;
|
|
143
144
|
companyZeniAccountInfo: CompanyZeniAccountInfo;
|
|
145
|
+
companyTreasuryInfo: CompanyTreasuryInfo;
|
|
144
146
|
companyChargeCardInfo: CompanyChargeCardInfo;
|
|
145
147
|
companyDebitCardInfo: CompanyDebitCardInfo;
|
|
146
148
|
companyOnboardingInfo: CompanyOnboardingInfo;
|
|
@@ -201,6 +203,22 @@ export interface CompanyZeniAccountInfo extends UserZeniAccountInfo {
|
|
|
201
203
|
accountType: AccountTypeSubConfigCodeKeyType;
|
|
202
204
|
};
|
|
203
205
|
}
|
|
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
|
+
}
|
|
204
222
|
interface UserChargeCardInfo {
|
|
205
223
|
isChargeCardTOSAccepted: boolean;
|
|
206
224
|
chargeCardTOSAcceptanceUserAgent?: string;
|
|
@@ -289,4 +307,8 @@ export interface CompanyOnboardingInfo {
|
|
|
289
307
|
onboardingInfo?: OnboardingInfo;
|
|
290
308
|
parentCompanyId?: ID;
|
|
291
309
|
}
|
|
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;
|
|
292
314
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.toAccountingConnectionCreationModeStrict = exports.ALL_ACCOUNTING_CONNECTION_CREATION_MODES = exports.toOnboardingIdentityVerificationStatus = void 0;
|
|
3
|
+
exports.isCompanyEligibleForTreasury = exports.toTreasuryEligibleIncType = exports.TREASURY_ELIGIBLE_INC_TYPES = 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,3 +19,15 @@ 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", "charge_cards"];
|
|
5
|
-
export declare const toEntityType: (v: string) => "bill_pay" | "reimbursement" | "zeni_accounts" | "charge_cards";
|
|
4
|
+
export declare const ALL_ENTITY_TYPES: readonly ["bill_pay", "reimbursement", "zeni_accounts", "zeni_treasury", "charge_cards"];
|
|
5
|
+
export declare const toEntityType: (v: string) => "bill_pay" | "reimbursement" | "zeni_accounts" | "zeni_treasury" | "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" | undefined;
|
|
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" | "company_formation_document";
|
|
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" | "company_formation_document" | 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,6 +87,7 @@ const ALLOWED_DOCUMENT_TYPES = [
|
|
|
87
87
|
'w4',
|
|
88
88
|
'w9',
|
|
89
89
|
'certificate_of_good_standing',
|
|
90
|
+
'company_formation_document',
|
|
90
91
|
];
|
|
91
92
|
const toAllowedDocumentType = (v) => (0, stringToUnion_1.stringToUnion)(v, ALLOWED_DOCUMENT_TYPES);
|
|
92
93
|
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" | "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";
|
|
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" | "zeni_treasury" | "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}-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}`;
|
|
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}-zeni_treasury` | `${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}-zeni_treasury+${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}-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`;
|
|
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}-zeni_treasury` | `${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" | "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], {
|
|
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" | "zeni_treasury" | "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" | "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";
|
|
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" | "zeni_treasury" | "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" | "send_email_magic_link_to_user" | "complete_profile_done";
|
|
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" | "treasury_setup" | "treasury_accept_term" | "treasury_transfer_money" | "treasury_transfer_money_failed" | "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,6 +154,10 @@ 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',
|
|
157
161
|
'send_email_magic_link_to_user',
|
|
158
162
|
'complete_profile_done',
|
|
159
163
|
];
|
|
@@ -113,6 +113,10 @@ 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';
|
|
116
120
|
import { clearZeniAccountList } from '../../view/spendManagement/zeniAccounts/zeniAccountList/zeniAccountListReducer';
|
|
117
121
|
import { clearZeniAccountSetupView } from '../../view/spendManagement/zeniAccounts/zeniAccountSetUp/zeniAccountSetupViewReducer';
|
|
118
122
|
import { clearZeniAccountsConfig } from '../../view/spendManagement/zeniAccounts/zeniAccountsConfig/zeniAccountsConfigReducer';
|
|
@@ -190,7 +194,7 @@ import { clearAllUserRoles } from '../userRole/userRoleReducer';
|
|
|
190
194
|
import { clearAllVendors } from '../vendor/vendorReducer';
|
|
191
195
|
import { clearAllVendorExpenseTrends } from '../vendorExpense/vendorExpenseReducer';
|
|
192
196
|
import { clearAll } from './tenantReducer';
|
|
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>;
|
|
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 clearTreasuryOverviewDetail> | ReturnType<typeof clearTreasurySetupView> | ReturnType<typeof clearTreasuryStatementList> | ReturnType<typeof clearTreasuryTransferMoney> | 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>;
|
|
194
198
|
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>;
|
|
195
199
|
export type ActionType = clearActionTypeForViews | clearActionTypeForEntities | ReturnType<typeof clearAll>;
|
|
196
200
|
export declare const clearAllEpic: (actions$: ActionsObservable<ActionType>) => import("rxjs").Observable<ActionType>;
|
|
@@ -117,6 +117,10 @@ 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");
|
|
120
124
|
const zeniAccountListReducer_1 = require("../../view/spendManagement/zeniAccounts/zeniAccountList/zeniAccountListReducer");
|
|
121
125
|
const zeniAccountSetupViewReducer_1 = require("../../view/spendManagement/zeniAccounts/zeniAccountSetUp/zeniAccountSetupViewReducer");
|
|
122
126
|
const zeniAccountsConfigReducer_1 = require("../../view/spendManagement/zeniAccounts/zeniAccountsConfig/zeniAccountsConfigReducer");
|
|
@@ -312,6 +316,10 @@ const clearAllEpic = (actions$) => actions$.pipe((0, operators_1.filter)(tenantR
|
|
|
312
316
|
(0, transactionDetailReducer_1.clearTransactionDetail)(),
|
|
313
317
|
(0, transactionListReducer_1.clearTransactionList)(),
|
|
314
318
|
(0, transferDetailReducer_1.clearTransferDetail)(),
|
|
319
|
+
(0, treasuryDetailReducer_1.clearTreasuryOverviewDetail)(),
|
|
320
|
+
(0, treasurySetupViewReducer_1.clearTreasurySetupView)(),
|
|
321
|
+
(0, treasuryStatementListReducer_1.clearTreasuryStatementList)(),
|
|
322
|
+
(0, treasuryTransferMoneyReducer_1.clearTreasuryTransferMoney)(),
|
|
315
323
|
(0, trendReducer_1.clearTrendData)(),
|
|
316
324
|
(0, trendWithTransactionsReducer_1.clearTrendWithTransactions)(),
|
|
317
325
|
(0, twoFactorAuthenticationReducer_1.clearTwoFactorAuthentication)(),
|
|
@@ -29,6 +29,7 @@ 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;
|
|
32
33
|
is_spend_management_enabled: boolean;
|
|
33
34
|
is_other_products_enabled: boolean;
|
|
34
35
|
is_card_enabled: boolean;
|
|
@@ -56,6 +57,8 @@ interface TenantPayload {
|
|
|
56
57
|
is_reimbursements_admin: boolean;
|
|
57
58
|
is_deposit_accounts_admin: boolean;
|
|
58
59
|
is_deposit_accounts_user: boolean;
|
|
60
|
+
is_treasury_admin: boolean;
|
|
61
|
+
is_treasury_user: boolean;
|
|
59
62
|
is_deleted: boolean;
|
|
60
63
|
is_zeni: boolean;
|
|
61
64
|
is_invite_accepted: boolean;
|
|
@@ -462,6 +462,7 @@ 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,
|
|
465
466
|
isSpendManagementEnabled: payload.is_spend_management_enabled,
|
|
466
467
|
isBookkeepingEnabled: payload.is_book_keeping_enabled,
|
|
467
468
|
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, CompanyZeniAccountInfo } from '../company/companyStateTypes';
|
|
5
|
+
import { Company, CompanyBillPayInfo, CompanyChargeCardInfo, CompanyDebitCardInfo, CompanyLocaleInfo, CompanyReimbursementInfo, CompanyTreasuryInfo, 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,6 +66,10 @@ 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;
|
|
69
73
|
};
|
|
70
74
|
export type CurrentTenant = ReturnType<typeof getCurrentTenantHelper>;
|
|
71
75
|
export declare const getCurrentTenant: (state: RootState) => CurrentTenant;
|
|
@@ -80,6 +80,7 @@ const getCurrentTenantHelper = (tenantState, companyState) => {
|
|
|
80
80
|
let companyZeniAccountInfo = undefined;
|
|
81
81
|
let companyChargeCardInfo = undefined;
|
|
82
82
|
let companyDebitCardInfo = undefined;
|
|
83
|
+
let companyTreasuryInfo = undefined;
|
|
83
84
|
if (tenant != null) {
|
|
84
85
|
const company = (0, companySelector_1.getCompanyByCompanyId)(companyState, tenant.companyId);
|
|
85
86
|
companyBillPayInfo = {
|
|
@@ -102,6 +103,10 @@ const getCurrentTenantHelper = (tenantState, companyState) => {
|
|
|
102
103
|
fetchState: 'Completed',
|
|
103
104
|
info: company != null ? company.company.companyDebitCardInfo : undefined,
|
|
104
105
|
};
|
|
106
|
+
companyTreasuryInfo = {
|
|
107
|
+
fetchState: 'Completed',
|
|
108
|
+
info: company != null ? company.company.companyTreasuryInfo : undefined,
|
|
109
|
+
};
|
|
105
110
|
}
|
|
106
111
|
return Object.assign({}, tenant, {
|
|
107
112
|
excludedResources,
|
|
@@ -112,6 +117,7 @@ const getCurrentTenantHelper = (tenantState, companyState) => {
|
|
|
112
117
|
companyZeniAccountInfo,
|
|
113
118
|
companyChargeCardInfo,
|
|
114
119
|
companyDebitCardInfo,
|
|
120
|
+
companyTreasuryInfo,
|
|
115
121
|
});
|
|
116
122
|
};
|
|
117
123
|
exports.getCurrentTenant = (0, toolkit_1.createSelector)((state) => state.tenantState, (state) => state.companyState, (tenantState, companyState) => {
|
|
@@ -43,6 +43,7 @@ export interface TenantState extends FetchedState {
|
|
|
43
43
|
export interface TenantProductSettings {
|
|
44
44
|
isBookkeepingEnabled: boolean;
|
|
45
45
|
isBankingEnabled: boolean;
|
|
46
|
+
isTreasuryEnabled: boolean;
|
|
46
47
|
isSpendManagementEnabled: boolean;
|
|
47
48
|
isOtherProductsEnabled: boolean;
|
|
48
49
|
isCardsEnabled: boolean;
|
|
@@ -41,6 +41,8 @@ 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;
|
|
44
46
|
is_deleted: boolean;
|
|
45
47
|
is_zeni: boolean;
|
|
46
48
|
user_verification_status: {
|
|
@@ -65,6 +67,10 @@ export interface UserRolePayload {
|
|
|
65
67
|
invite_updater_id?: string | null;
|
|
66
68
|
inviter_email?: string | null;
|
|
67
69
|
inviter_id?: ID | null;
|
|
70
|
+
treasury_user_verification_status?: {
|
|
71
|
+
code: string | null;
|
|
72
|
+
name: string | null;
|
|
73
|
+
} | null;
|
|
68
74
|
}
|
|
69
75
|
declare function getUserRoles(userRolePayload: UserRolePayload | TenantPayload): UserRoleType[];
|
|
70
76
|
declare function getInvitationStatus(userRolePayload: UserRolePayload | TenantPayload): InvitationStatus;
|
|
@@ -67,6 +67,12 @@ 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
|
+
}
|
|
70
76
|
if (roles.length === 0) {
|
|
71
77
|
// Default fallback.. Ideally shouldn't happen in PROD
|
|
72
78
|
roles.push('bookkeeping_user');
|
|
@@ -92,5 +92,8 @@ 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,
|
|
95
98
|
};
|
|
96
99
|
}
|
|
@@ -39,6 +39,7 @@ export interface UserRole {
|
|
|
39
39
|
managerUserId?: ID;
|
|
40
40
|
userVerificationStatus?: AllowedValueWithCode;
|
|
41
41
|
userReimbursementInfo?: UserReimbursementInfo;
|
|
42
|
+
treasuryUserVerificationStatus?: AllowedValueWithCode;
|
|
42
43
|
}
|
|
43
44
|
export interface UserRoleState {
|
|
44
45
|
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" | "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";
|
|
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" | "treasury_admin" | "treasury_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" | "treasury_admin" | "treasury_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,6 +26,8 @@ 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;
|
|
29
31
|
export declare const hasBillPayAdminLevelAccess: (userRoleMap?: RoleMap) => boolean;
|
|
30
32
|
export declare const hasReimbursementAdminLevelAccess: (userRoleMap?: RoleMap) => boolean;
|
|
31
33
|
export declare const hasChargeCardAdminLevelAccess: (userRoleMap?: RoleMap) => boolean;
|
|
@@ -40,3 +42,4 @@ export declare const hasBillPayAccessible: (currentTenant: CurrentTenant | undef
|
|
|
40
42
|
export declare const hasReimbursementAccessible: (currentTenant: CurrentTenant | undefined, userRoleMap?: RoleMap) => boolean;
|
|
41
43
|
export declare const hasChargeCardAccessible: (currentTenant: CurrentTenant | undefined, userRoleMap?: RoleMap) => boolean;
|
|
42
44
|
export declare const hasZeniAccountsAccessible: (currentTenant: CurrentTenant | undefined, userRoleMap?: RoleMap) => boolean;
|
|
45
|
+
export declare const hasTreasuryAccessible: (currentTenant: CurrentTenant | undefined, userRoleMap?: RoleMap) => boolean;
|