@zeniai/client-epic-state 4.7.73 → 4.7.74
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/workingDayHelper.d.ts +5 -9
- package/lib/commonStateTypes/workingDayHelper.js +12 -36
- package/lib/entity/billPay/billTransaction/billTransactionPayload.d.ts +0 -3
- package/lib/entity/billPay/billTransaction/billTransactionPayload.js +2 -2
- package/lib/entity/billPay/billTransaction/billTransactionState.d.ts +0 -3
- package/lib/entity/chargeCard/chargeCard.d.ts +2 -2
- package/lib/entity/entityApprovalStatus/entityApprovalStatusPayload.d.ts +0 -1
- package/lib/entity/entityApprovalStatus/entityApprovalStatusPayload.js +0 -1
- package/lib/entity/entityApprovalStatus/entityApprovalStatusState.d.ts +0 -1
- package/lib/entity/tenant/clearAllEpic.d.ts +1 -2
- package/lib/entity/tenant/clearAllEpic.js +0 -2
- package/lib/entity/transaction/stateTypes/attachment.js +5 -5
- package/lib/index.d.ts +4 -6
- package/lib/index.js +4 -10
- package/lib/reducer.d.ts +0 -3
- package/lib/reducer.js +0 -3
- package/lib/view/accountList/accountListReducer.js +1 -2
- package/lib/view/accountList/accountListState.d.ts +1 -1
- package/lib/view/commonVendorView/vendorView/epics/saveVendorEpic.js +0 -1
- package/lib/view/commonVendorView/vendorView/vendorViewSelector.js +1 -1
- package/lib/view/spendManagement/billPay/billDetailView/billDetailViewPayload.d.ts +0 -3
- package/lib/view/spendManagement/billPay/billDetailView/billDetailViewSelector.d.ts +0 -5
- package/lib/view/spendManagement/billPay/billDetailView/billDetailViewSelector.js +2 -13
- package/lib/view/spendManagement/billPay/billDetailView/epics/cancelAndDeleteBillEpic.d.ts +1 -2
- package/lib/view/spendManagement/billPay/billDetailView/epics/cancelAndDeleteBillEpic.js +8 -19
- package/lib/view/spendManagement/billPay/billDetailView/epics/deleteBillEpic.d.ts +1 -2
- package/lib/view/spendManagement/billPay/billDetailView/epics/deleteBillEpic.js +4 -14
- package/lib/view/spendManagement/billPay/billDetailView/epics/fetchBillDetailEpic.d.ts +1 -2
- package/lib/view/spendManagement/billPay/billDetailView/epics/fetchBillDetailEpic.js +2 -5
- package/lib/view/spendManagement/billPay/billList/billListPayload.d.ts +0 -2
- package/lib/view/spendManagement/billPay/billList/billListSelector.d.ts +0 -3
- package/lib/view/spendManagement/billPay/billList/billListSelector.js +2 -10
- package/lib/view/spendManagement/billPay/billList/fetchBillListPerTabEpic.d.ts +1 -2
- package/lib/view/spendManagement/billPay/billList/fetchBillListPerTabEpic.js +1 -3
- package/lib/view/spendManagement/billPay/billPayReview/billPayReviewSelector.d.ts +0 -4
- package/lib/view/spendManagement/billPay/billPayReview/billPayReviewSelector.js +9 -31
- package/lib/view/spendManagement/billPay/editBillView/editBillViewPayload.d.ts +0 -4
- package/lib/view/spendManagement/billPay/editBillView/editBillViewReducer.js +0 -17
- package/lib/view/spendManagement/billPay/editBillView/editBillViewSelector.d.ts +2 -10
- package/lib/view/spendManagement/billPay/editBillView/editBillViewSelector.js +14 -59
- package/lib/view/spendManagement/billPay/editBillView/editBillViewState.d.ts +0 -28
- package/lib/view/spendManagement/billPay/editBillView/editBillViewState.js +0 -1
- package/lib/view/spendManagement/billPay/editBillView/epics/fetchEditBillDetailPageEpic.js +3 -3
- package/lib/view/spendManagement/billPay/editBillView/epics/initializeBillToLocalStoreEpic.js +2 -13
- package/lib/view/spendManagement/billPay/editBillView/epics/parseInvoiceToBillEpic.js +2 -3
- package/lib/view/spendManagement/billPay/editBillView/epics/saveBillDetailEpic.d.ts +24 -11
- package/lib/view/spendManagement/billPay/editBillView/epics/saveBillDetailEpic.js +14 -100
- package/lib/view/spendManagement/commonHistoryView/commonHistory.d.ts +0 -1
- package/lib/view/spendManagement/commonHistoryView/commonHistoryPayload.d.ts +0 -1
- package/lib/view/spendManagement/commonHistoryView/commonHistoryPayload.js +5 -9
- package/lib/view/spendManagement/helpers.d.ts +1 -11
- package/lib/view/spendManagement/helpers.js +1 -134
- package/lib/view/spendManagement/reimbursement/remiDetailView/remiDetailViewSelector.d.ts +0 -1
- package/lib/view/spendManagement/zeniAccounts/zeniAccountsConfig/zeniAccountsConfigPayload.d.ts +0 -1
- package/lib/view/spendManagement/zeniAccounts/zeniAccountsConfig/zeniAccountsConfigPayload.js +0 -1
- package/lib/view/spendManagement/zeniAccounts/zeniAccountsConfig/zeniAccountsConfigReducer.js +1 -3
- package/lib/view/spendManagement/zeniAccounts/zeniAccountsConfig/zeniAccountsConfigSelector.d.ts +0 -1
- package/lib/view/spendManagement/zeniAccounts/zeniAccountsConfig/zeniAccountsConfigSelector.js +1 -2
- package/lib/view/spendManagement/zeniAccounts/zeniAccountsConfig/zeniAccountsConfigState.d.ts +0 -1
- package/package.json +4 -5
- package/lib/entity/billPay/recurringBills/recurringBillsPayload.d.ts +0 -34
- package/lib/entity/billPay/recurringBills/recurringBillsPayload.js +0 -44
- package/lib/entity/billPay/recurringBills/recurringBillsReducer.d.ts +0 -6
- package/lib/entity/billPay/recurringBills/recurringBillsReducer.js +0 -40
- package/lib/entity/billPay/recurringBills/recurringBillsState.d.ts +0 -33
- package/lib/entity/billPay/recurringBills/recurringBillsState.js +0 -14
|
@@ -1,11 +1,7 @@
|
|
|
1
|
+
export declare const getNextNthWorkingDay: (date: Date, filterDaysIndex: number[], numberOfWorkingDays: number, holidays: Date[]) => Date;
|
|
2
|
+
export declare const getPreviousNthWorkingDay: (date: Date, filterDaysIndex: number[], numberOfWorkingDays: number, holidays: Date[]) => Date;
|
|
3
|
+
export declare const isHolidayToday: (filterDaysIndex: number[], holidays: Date[]) => boolean;
|
|
4
|
+
export declare const filterDays: (date: Date, filterDaysIndex: number[], holidays: Date[]) => boolean;
|
|
5
|
+
export declare const getYearsList: (startYear?: number, endYear?: number) => number[];
|
|
1
6
|
export declare const startDate = "2000-01-01";
|
|
2
7
|
export declare const endDate = "2070-12-31";
|
|
3
|
-
export declare const PAYMENT_BUSINESS_DAYS = 4;
|
|
4
|
-
export declare const holidays: Date[];
|
|
5
|
-
export declare const holidaysFormatted: string[];
|
|
6
|
-
export declare const getNextNthWorkingDay: (date: Date, filterDaysIndex: number[], numberOfWorkingDays: number) => Date;
|
|
7
|
-
export declare const getPreviousNthWorkingDay: (date: Date, filterDaysIndex: number[], numberOfWorkingDays: number) => Date;
|
|
8
|
-
export declare const isHolidayToday: (filterDaysIndex: number[]) => boolean;
|
|
9
|
-
export declare const filterDays: (date: Date, filterDaysIndex: number[]) => boolean;
|
|
10
|
-
export declare const getYearsList: (startYear?: number, endYear?: number) => number[];
|
|
11
|
-
export declare const isHoliday: (date: Date) => boolean;
|
|
@@ -1,24 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.
|
|
7
|
-
const date_holidays_1 = __importDefault(require("date-holidays"));
|
|
3
|
+
exports.endDate = exports.startDate = exports.getYearsList = exports.filterDays = exports.isHolidayToday = exports.getPreviousNthWorkingDay = exports.getNextNthWorkingDay = void 0;
|
|
8
4
|
const zeniDayJS_1 = require("../zeniDayJS");
|
|
9
5
|
const standardFormat = 'MM/DD/YYYY';
|
|
10
|
-
|
|
11
|
-
exports.endDate = '2070-12-31';
|
|
12
|
-
exports.PAYMENT_BUSINESS_DAYS = 4;
|
|
13
|
-
const dateHolidays = new date_holidays_1.default('US');
|
|
14
|
-
exports.holidays = dateHolidays
|
|
15
|
-
.getHolidays(new Date().getFullYear())
|
|
16
|
-
.filter((holiday) => holiday.type === 'public' || holiday.type === 'bank')
|
|
17
|
-
.map((holiday) => (0, zeniDayJS_1.date)(holiday.date).toDate()); // https://www.linkedin.com/pulse/fix-invalid-date-safari-ie-hatem-ahmad/
|
|
18
|
-
exports.holidaysFormatted = exports.holidays.map((holiday) => (0, zeniDayJS_1.date)(holiday.toDateString()).format(standardFormat));
|
|
19
|
-
const getNextNthWorkingDay = (date, filterDaysIndex, numberOfWorkingDays) => {
|
|
6
|
+
const getNextNthWorkingDay = (date, filterDaysIndex, numberOfWorkingDays, holidays) => {
|
|
20
7
|
const currentDate = new Date(date.toDateString());
|
|
21
|
-
const holidaysFormatted =
|
|
8
|
+
const holidaysFormatted = holidays.map((holiday) => (0, zeniDayJS_1.date)(holiday.toDateString()).format(standardFormat));
|
|
22
9
|
Array(numberOfWorkingDays)
|
|
23
10
|
.fill(0)
|
|
24
11
|
.forEach(() => {
|
|
@@ -31,9 +18,9 @@ const getNextNthWorkingDay = (date, filterDaysIndex, numberOfWorkingDays) => {
|
|
|
31
18
|
return currentDate;
|
|
32
19
|
};
|
|
33
20
|
exports.getNextNthWorkingDay = getNextNthWorkingDay;
|
|
34
|
-
const getPreviousNthWorkingDay = (date, filterDaysIndex, numberOfWorkingDays) => {
|
|
21
|
+
const getPreviousNthWorkingDay = (date, filterDaysIndex, numberOfWorkingDays, holidays) => {
|
|
35
22
|
const currentDate = new Date(date.toDateString());
|
|
36
|
-
const holidaysFormatted =
|
|
23
|
+
const holidaysFormatted = holidays.map((holiday) => (0, zeniDayJS_1.date)(holiday.toDateString()).format(standardFormat));
|
|
37
24
|
Array(numberOfWorkingDays)
|
|
38
25
|
.fill(0)
|
|
39
26
|
.forEach(() => {
|
|
@@ -50,17 +37,18 @@ const getPreviousNthWorkingDay = (date, filterDaysIndex, numberOfWorkingDays) =>
|
|
|
50
37
|
return currentDate;
|
|
51
38
|
};
|
|
52
39
|
exports.getPreviousNthWorkingDay = getPreviousNthWorkingDay;
|
|
53
|
-
const isHolidayToday = (filterDaysIndex) => {
|
|
54
|
-
const holidaysFormatted =
|
|
40
|
+
const isHolidayToday = (filterDaysIndex, holidays) => {
|
|
41
|
+
const holidaysFormatted = holidays.map((holiday) => (0, zeniDayJS_1.date)(holiday.toDateString()).format(standardFormat));
|
|
55
42
|
const currentDate = new Date();
|
|
56
43
|
return (filterDaysIndex.includes(currentDate.getDay()) ||
|
|
57
44
|
holidaysFormatted.indexOf((0, zeniDayJS_1.date)(currentDate.toDateString()).format(standardFormat)) != -1);
|
|
58
45
|
};
|
|
59
46
|
exports.isHolidayToday = isHolidayToday;
|
|
60
|
-
const filterDays = (date, filterDaysIndex) => {
|
|
47
|
+
const filterDays = (date, filterDaysIndex, holidays) => {
|
|
61
48
|
const formattedDate = (0, zeniDayJS_1.date)(date.toDateString()).format(standardFormat);
|
|
49
|
+
const holidaysFormatted = holidays.map((holiday) => (0, zeniDayJS_1.date)(holiday.toDateString()).format(standardFormat));
|
|
62
50
|
return (filterDaysIndex.includes(date.getDay()) === false &&
|
|
63
|
-
|
|
51
|
+
holidaysFormatted.includes(formattedDate) === false);
|
|
64
52
|
};
|
|
65
53
|
exports.filterDays = filterDays;
|
|
66
54
|
const getYearsList = (startYear = 2000, endYear = new Date().getFullYear()) => {
|
|
@@ -72,17 +60,5 @@ const getYearsList = (startYear = 2000, endYear = new Date().getFullYear()) => {
|
|
|
72
60
|
return years;
|
|
73
61
|
};
|
|
74
62
|
exports.getYearsList = getYearsList;
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
if (holidayDetails === false) {
|
|
78
|
-
return false;
|
|
79
|
-
}
|
|
80
|
-
else if (holidayDetails[0].type === 'bank' ||
|
|
81
|
-
holidayDetails[0].type === 'public') {
|
|
82
|
-
return true;
|
|
83
|
-
}
|
|
84
|
-
else {
|
|
85
|
-
return false;
|
|
86
|
-
}
|
|
87
|
-
};
|
|
88
|
-
exports.isHoliday = isHoliday;
|
|
63
|
+
exports.startDate = '2000-01-01';
|
|
64
|
+
exports.endDate = '2070-12-31';
|
|
@@ -16,9 +16,6 @@ export interface BillTransactionPayload extends VendorTransactionPayload {
|
|
|
16
16
|
last_updated_by_user_id?: string;
|
|
17
17
|
candidate_vendor_name?: string;
|
|
18
18
|
tax?: number;
|
|
19
|
-
is_recurring: boolean;
|
|
20
|
-
recurring_bill_config_id: string | null;
|
|
21
|
-
recurring_bill_instance: number | null;
|
|
22
19
|
discount?: number;
|
|
23
20
|
}
|
|
24
21
|
export interface BillPayInfoPayload {
|
|
@@ -6,8 +6,8 @@ const zeniDayJS_1 = require("../../../zeniDayJS");
|
|
|
6
6
|
const vendorTransactionPayload_1 = require("../../transaction/payloadTypes/vendorTransactionPayload");
|
|
7
7
|
const billTransactionState_1 = require("./billTransactionState");
|
|
8
8
|
const toBillTransaction = (payload) => {
|
|
9
|
-
var _a, _b, _c, _d, _e, _f, _g, _h
|
|
10
|
-
return (Object.assign(Object.assign({}, (0, vendorTransactionPayload_1.toVendorTransaction)(payload)), { billPayInfo: (0, exports.toBillPayInfo)(payload.bill_pay_info), classId: (_a = payload.class_id) !== null && _a !== void 0 ? _a : '', className: (_b = payload.class_name) !== null && _b !== void 0 ? _b : '', qboClassId: (_c = payload.qbo_class_id) !== null && _c !== void 0 ? _c : '', transactionReferenceId: (_d = payload.transaction_reference_id) !== null && _d !== void 0 ? _d : '', entityApprovalId: payload.entity_approval_id, updateTime: (0, zeniDayJS_1.date)(payload.update_time), createdBy: (_e = payload.created_by_user_id) !== null && _e !== void 0 ? _e : '', candidateVendorName: (_f = payload.candidate_vendor_name) !== null && _f !== void 0 ? _f : '', bookCloseDate: payload.book_close_date != null ? (0, zeniDayJS_1.date)(payload.book_close_date) : undefined, lastUpdatedByUserId: (_g = payload.last_updated_by_user_id) !== null && _g !== void 0 ? _g : '', paymentProcessingTotalFee: (0, amount_1.toAmount)((_h = payload.total_fee) !== null && _h !== void 0 ? _h : 0, payload.currency_code, payload.currency_symbol), isDeleted: payload.is_deleted
|
|
9
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
10
|
+
return (Object.assign(Object.assign({}, (0, vendorTransactionPayload_1.toVendorTransaction)(payload)), { billPayInfo: (0, exports.toBillPayInfo)(payload.bill_pay_info), classId: (_a = payload.class_id) !== null && _a !== void 0 ? _a : '', className: (_b = payload.class_name) !== null && _b !== void 0 ? _b : '', qboClassId: (_c = payload.qbo_class_id) !== null && _c !== void 0 ? _c : '', transactionReferenceId: (_d = payload.transaction_reference_id) !== null && _d !== void 0 ? _d : '', entityApprovalId: payload.entity_approval_id, updateTime: (0, zeniDayJS_1.date)(payload.update_time), createdBy: (_e = payload.created_by_user_id) !== null && _e !== void 0 ? _e : '', candidateVendorName: (_f = payload.candidate_vendor_name) !== null && _f !== void 0 ? _f : '', bookCloseDate: payload.book_close_date != null ? (0, zeniDayJS_1.date)(payload.book_close_date) : undefined, lastUpdatedByUserId: (_g = payload.last_updated_by_user_id) !== null && _g !== void 0 ? _g : '', paymentProcessingTotalFee: (0, amount_1.toAmount)((_h = payload.total_fee) !== null && _h !== void 0 ? _h : 0, payload.currency_code, payload.currency_symbol), isDeleted: payload.is_deleted }));
|
|
11
11
|
};
|
|
12
12
|
exports.toBillTransaction = toBillTransaction;
|
|
13
13
|
const toBillPayInfo = (payload) => {
|
|
@@ -18,9 +18,6 @@ export interface BillTransaction extends VendorTransaction {
|
|
|
18
18
|
candidateVendorName: string;
|
|
19
19
|
lastUpdatedByUserId?: ID;
|
|
20
20
|
isDeleted: boolean;
|
|
21
|
-
isRecurring: boolean;
|
|
22
|
-
recurringBillConfigId?: ID;
|
|
23
|
-
recurringBillInstance?: number;
|
|
24
21
|
}
|
|
25
22
|
export interface BillPayInfo {
|
|
26
23
|
stage: BillStage;
|
|
@@ -28,8 +28,8 @@ export interface CreditLimitFrequency {
|
|
|
28
28
|
code: CreditLimitFrequencyCodeType;
|
|
29
29
|
name: string;
|
|
30
30
|
}
|
|
31
|
-
export declare const toCreditLimitFrequencyCodeType: (v: string) => "
|
|
32
|
-
export declare const toCreditLimitFrequencyCodeTypeStrict: (v?: string | undefined) => "
|
|
31
|
+
export declare const toCreditLimitFrequencyCodeType: (v: string) => "monthly" | "daily" | "weekly" | "quarterly" | "yearly";
|
|
32
|
+
export declare const toCreditLimitFrequencyCodeTypeStrict: (v?: string | undefined) => "monthly" | "daily" | "weekly" | "quarterly" | "yearly" | undefined;
|
|
33
33
|
export declare type CreditLimitFrequencyCodeType = ReturnType<typeof toCreditLimitFrequencyCodeType>;
|
|
34
34
|
export interface CardStatus {
|
|
35
35
|
code: CardStatusCodeType;
|
|
@@ -9,7 +9,6 @@ interface ActorActivityPayload extends StepApprovalActorPayload {
|
|
|
9
9
|
activity: string;
|
|
10
10
|
last_update_time?: string | null;
|
|
11
11
|
description: string;
|
|
12
|
-
is_recurring_auto_approve?: boolean | null;
|
|
13
12
|
}
|
|
14
13
|
export interface StepApprovalStatusPayload {
|
|
15
14
|
action: string;
|
|
@@ -67,7 +67,6 @@ const toStepApprovalStatus = (payload) => {
|
|
|
67
67
|
subType: activityPayload.sub_type != null
|
|
68
68
|
? activityPayload.sub_type
|
|
69
69
|
: undefined,
|
|
70
|
-
isRecurringAutoApprove: Boolean(activityPayload.is_recurring_auto_approve),
|
|
71
70
|
});
|
|
72
71
|
}),
|
|
73
72
|
description: approvalStatus.description,
|
|
@@ -74,7 +74,6 @@ import { clearRevenueClassesView } from '../../view/revenueClassesView/revenueCl
|
|
|
74
74
|
import { clearBillPaySetupApproverView } from '../../view/spendManagement/billPay/billPaySetupApproverView/billPaySetupApproverViewReducer';
|
|
75
75
|
import { clearAllOnboardingCustomersInfo } from '../onboardingCustomer/onboardingCustomerReducer';
|
|
76
76
|
import { clearOnboardingCockpitView } from '../../view/onboardingView/cockpitView/onboardingCockpitViewReducer';
|
|
77
|
-
import { clearAllRecurringBills } from '../billPay/recurringBills/recurringBillsReducer';
|
|
78
77
|
import { clearAllReimbursements } from '../reimbursement/reimbursementReducer';
|
|
79
78
|
import { clearRemiDetailView } from '../../view/spendManagement/reimbursement/remiDetailView/remiDetailViewReducer';
|
|
80
79
|
import { clearAllMerchants } from '../merchant/merchantReducer';
|
|
@@ -135,7 +134,7 @@ import { clearChargeCardDetail } from '../../view/spendManagement/chargeCards/ch
|
|
|
135
134
|
import { clearChargeCardSetupView } from '../../view/spendManagement/chargeCards/chargeCardSetUp/chargeCardSetUpViewReducer';
|
|
136
135
|
import { clearZeniAccountsConfig } from '../../view/spendManagement/zeniAccounts/zeniAccountsConfig/zeniAccountsConfigReducer';
|
|
137
136
|
declare type clearActionTypeForViews = ReturnType<typeof clearAccountList> | ReturnType<typeof clearAccountMappingView> | ReturnType<typeof clearActivityHistory> | ReturnType<typeof clearActivityRealTimeApproval> | ReturnType<typeof clearAddressView> | ReturnType<typeof clearAllClasses> | ReturnType<typeof clearApAging> | ReturnType<typeof clearApAgingDetail> | ReturnType<typeof clearArAging> | ReturnType<typeof clearArAgingDetail> | ReturnType<typeof clearBalanceSheet> | ReturnType<typeof clearBankAccountView> | ReturnType<typeof clearBillDetailView> | ReturnType<typeof clearBillList> | ReturnType<typeof clearBillPayCard> | ReturnType<typeof clearBillPayConfig> | ReturnType<typeof clearBillPayReview> | ReturnType<typeof clearBillPaySetupApproverView> | ReturnType<typeof clearBillPaySetupView> | ReturnType<typeof clearCardBalance> | 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 clearCheckDeposit> | ReturnType<typeof clearCompanyConfigView> | ReturnType<typeof clearCompanyMonthEndReportView> | ReturnType<typeof clearCompanyView> | ReturnType<typeof clearDashboard> | ReturnType<typeof clearDepositAccountDetail> | ReturnType<typeof clearDepositAccountList> | ReturnType<typeof clearDepositAccountTransactionList> | ReturnType<typeof clearEditBillViewDetail> | ReturnType<typeof clearEditRemiViewDetail> | ReturnType<typeof clearEntityAutoCompleteResults> | ReturnType<typeof clearFileViewList> | ReturnType<typeof clearFinanceStatement> | ReturnType<typeof clearForecastList> | ReturnType<typeof clearGlobalMerchantView> | ReturnType<typeof clearInsightsCard> | ReturnType<typeof clearInternationalWire> | ReturnType<typeof clearMerchantList> | ReturnType<typeof clearNetBurnOrIncome> | ReturnType<typeof clearNetBurnOrIncomeClassesView> | ReturnType<typeof clearNetBurnOrIncomeStoryCard> | 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 clearPreviousBills> | ReturnType<typeof clearProfitAndLoss> | ReturnType<typeof clearProfitAndLossClassesView> | ReturnType<typeof clearRecommendation> | ReturnType<typeof clearReimbursementCard> | ReturnType<typeof clearReimbursementConfig> | 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 clearSetupView> | ReturnType<typeof clearSubscriptionView> | ReturnType<typeof clearTasksCard> | ReturnType<typeof clearTopEx> | ReturnType<typeof clearTransactionDetail> | ReturnType<typeof clearTransactionList> | ReturnType<typeof clearTransferDetail> | ReturnType<typeof clearTrendData> | ReturnType<typeof clearTrendWithTransactions> | ReturnType<typeof clearUserFinancialAccount> | ReturnType<typeof clearUserListView> | ReturnType<typeof clearUserRoleConfigView> | ReturnType<typeof clearVendorGlobalReviewView> | ReturnType<typeof clearVendorView> | ReturnType<typeof clearVendorsList> | ReturnType<typeof clearVendorsTabVendorView> | ReturnType<typeof clearWiseRedirectStatus> | ReturnType<typeof clearZeniAccStatementList> | ReturnType<typeof clearZeniAccountList> | ReturnType<typeof clearZeniAccountsConfig> | ReturnType<typeof clearZeniAccountSetupView>;
|
|
138
|
-
declare type clearActionTypeForEntities = ReturnType<typeof clearAllAccountGroups> | ReturnType<typeof clearAllAccountingSummary> | ReturnType<typeof clearAllAccounts> | ReturnType<typeof clearAllAddresses> | ReturnType<typeof clearAllApprovalRules> | ReturnType<typeof clearAllBankAccounts> | ReturnType<typeof clearAllBillTransactions> | ReturnType<typeof clearAllChargeCards> | ReturnType<typeof clearAllChargeCardTransactions> | ReturnType<typeof clearAllCompanies> | 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 clearAllMerchants> | ReturnType<typeof clearAllOnboardingCustomersInfo> | ReturnType<typeof clearAllPaymentAccounts> | ReturnType<typeof clearAllPaymentInstruments> | ReturnType<typeof
|
|
137
|
+
declare type clearActionTypeForEntities = ReturnType<typeof clearAllAccountGroups> | ReturnType<typeof clearAllAccountingSummary> | ReturnType<typeof clearAllAccounts> | ReturnType<typeof clearAllAddresses> | ReturnType<typeof clearAllApprovalRules> | ReturnType<typeof clearAllBankAccounts> | ReturnType<typeof clearAllBillTransactions> | ReturnType<typeof clearAllChargeCards> | ReturnType<typeof clearAllChargeCardTransactions> | ReturnType<typeof clearAllCompanies> | 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 clearAllMerchants> | ReturnType<typeof clearAllOnboardingCustomersInfo> | ReturnType<typeof clearAllPaymentAccounts> | ReturnType<typeof clearAllPaymentInstruments> | 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 clearAllTransactions> | ReturnType<typeof clearAllUserRoles> | ReturnType<typeof clearAllUsers> | ReturnType<typeof clearAllVendorExpenseTrends> | ReturnType<typeof clearAllVendors> | ReturnType<typeof clearClassList> | ReturnType<typeof clearContacts> | ReturnType<typeof clearDepositAccountTransaction> | ReturnType<typeof clearSnackbar>;
|
|
139
138
|
export declare type ActionType = clearActionTypeForViews | clearActionTypeForEntities | ReturnType<typeof clearAll>;
|
|
140
139
|
export declare const clearAllEpic: (actions$: ActionsObservable<ActionType>) => import("rxjs").Observable<ActionType>;
|
|
141
140
|
export {};
|
|
@@ -78,7 +78,6 @@ const revenueClassesViewReducer_1 = require("../../view/revenueClassesView/reven
|
|
|
78
78
|
const billPaySetupApproverViewReducer_1 = require("../../view/spendManagement/billPay/billPaySetupApproverView/billPaySetupApproverViewReducer");
|
|
79
79
|
const onboardingCustomerReducer_1 = require("../onboardingCustomer/onboardingCustomerReducer");
|
|
80
80
|
const onboardingCockpitViewReducer_1 = require("../../view/onboardingView/cockpitView/onboardingCockpitViewReducer");
|
|
81
|
-
const recurringBillsReducer_1 = require("../billPay/recurringBills/recurringBillsReducer");
|
|
82
81
|
const reimbursementReducer_1 = require("../reimbursement/reimbursementReducer");
|
|
83
82
|
const remiDetailViewReducer_1 = require("../../view/spendManagement/reimbursement/remiDetailView/remiDetailViewReducer");
|
|
84
83
|
const merchantReducer_1 = require("../merchant/merchantReducer");
|
|
@@ -265,7 +264,6 @@ const clearAllEpic = (actions$) => actions$.pipe((0, operators_1.filter)(tenantR
|
|
|
265
264
|
(0, onboardingCustomerReducer_1.clearAllOnboardingCustomersInfo)(),
|
|
266
265
|
(0, paymentAccountReducer_1.clearAllPaymentAccounts)(),
|
|
267
266
|
(0, paymentInstrumentReducer_1.clearAllPaymentInstruments)(),
|
|
268
|
-
(0, recurringBillsReducer_1.clearAllRecurringBills)(),
|
|
269
267
|
(0, reimbursementReducer_1.clearAllReimbursements)(),
|
|
270
268
|
(0, sectionAccountsViewReducer_1.clearAllSectionsAccountsView)(),
|
|
271
269
|
(0, sectionClassesViewReducer_1.clearAllSectionsClassesViewV2)(),
|
|
@@ -31,17 +31,17 @@ exports.toContentType = toContentType;
|
|
|
31
31
|
const toContentTypeStrict = (v) => (0, stringToUnion_1.stringToUnionStrict)(v, ALL_CONTENT_TYPES);
|
|
32
32
|
exports.toContentTypeStrict = toContentTypeStrict;
|
|
33
33
|
const mapFileEntityToAttachment = (file) => {
|
|
34
|
-
var _a, _b;
|
|
34
|
+
var _a, _b, _c, _d;
|
|
35
35
|
return ({
|
|
36
|
-
id: file.fileId,
|
|
36
|
+
id: (_a = file.fileId) !== null && _a !== void 0 ? _a : '',
|
|
37
37
|
contentType: (0, exports.toContentTypeStrict)(file.contentType),
|
|
38
38
|
createTime: file.createTime,
|
|
39
|
-
updateTime: (
|
|
39
|
+
updateTime: (_b = file.updateTime) !== null && _b !== void 0 ? _b : (0, zeniDayJS_1.dateNow)(),
|
|
40
40
|
fileName: file.fileName,
|
|
41
41
|
fileSizeInBytes: file.fileSize,
|
|
42
42
|
fileDownloadUrl: file.signedUrl,
|
|
43
|
-
fileChecksum: (
|
|
44
|
-
fileId: file.fileId,
|
|
43
|
+
fileChecksum: (_c = file.checksum) !== null && _c !== void 0 ? _c : undefined,
|
|
44
|
+
fileId: (_d = file.fileId) !== null && _d !== void 0 ? _d : '',
|
|
45
45
|
});
|
|
46
46
|
};
|
|
47
47
|
exports.mapFileEntityToAttachment = mapFileEntityToAttachment;
|
package/lib/index.d.ts
CHANGED
|
@@ -363,7 +363,7 @@ import { approveOrRejectBill, fetchBillDetail, deleteBill, cancelAndDeleteBill,
|
|
|
363
363
|
import { fetchDuplicateBill, clearBillPayReview } from './view/spendManagement/billPay/billPayReview/billPayReviewReducer';
|
|
364
364
|
import { getReviewPageBillDetail, BillPayReviewSelectorView, DuplicateBillsSelectorView } from './view/spendManagement/billPay/billPayReview/billPayReviewSelector';
|
|
365
365
|
import { fetchEditBillDetailPage, saveBillUpdatesToLocalStore, discardBillUpdatesInLocalStore, saveBillDetail, fetchVendorByNameAndParseInvoice, fetchBillAndInitializeLocalStore, updateShowAutofill, updateBillUploadFetchState, updateVendorContact, convertAmountToHomeCurrency } from './view/spendManagement/billPay/editBillView/editBillViewReducer';
|
|
366
|
-
import { EditBillDetail, EditBillDetailViewState, WhatForSection, PaymentDetailsSection, BillDetailLocalData
|
|
366
|
+
import { EditBillDetail, EditBillDetailViewState, WhatForSection, PaymentDetailsSection, BillDetailLocalData } from './view/spendManagement/billPay/editBillView/editBillViewState';
|
|
367
367
|
import { EditBillDetailSelectorView, LineItemRecommendationsLocalData, getEditBillDetail, PaymentDetailsSectionView, EditBillInitialDetails, PaymentToOption, toPaymentToOption } from './view/spendManagement/billPay/editBillView/editBillViewSelector';
|
|
368
368
|
import { ClassListSelectorView, getClassList } from './view/classList/classListSelector';
|
|
369
369
|
import { Reimbursement, MilageReimbursementLine, OutofPocketReimbursementLine, ReimbursementLine, ReimbursementTypeCode } from './entity/reimbursement/reimbursementState';
|
|
@@ -373,7 +373,7 @@ import { RemiListDownloadReport, getRemiDownloadList } from './view/spendManagem
|
|
|
373
373
|
import { fetchRemiList, fetchRemiListPerTab, updateTab as updateRemiListTab, updateSubTab as updateRemiListSubTab, updateRemiDetailSaveRemiCode, updateRemiListUIState, updateSearchResult as updateRemiListSearchResult, updateFilterResult as updateRemiListFilterResult, updateRemiListDownloadUIState } from './view/spendManagement/reimbursement/remiListView/remiListReducer';
|
|
374
374
|
export { MilageReimbursementLine, OutofPocketReimbursementLine, ReimbursementLine, ReimbursementTypeCode, Reimbursement, RemiTabType, toRemiSubTabType, toRemiSubTabTypeStrict, toRemiTabType, toRemiTabTypeStrict, RemiSubTabType, ReimbursementViewSortKey, RemiListUIState, RemiListReport, RemiListDownloadReport, ReimbursementView, ReimbursementFilters, ReimbursementFilterCategory, RemiListViewFilterCategoryField, getRemiList, getRemiDownloadList, fetchRemiList, fetchRemiListPerTab, updateRemiListTab, updateRemiListSubTab, updateRemiDetailSaveRemiCode, updateRemiListUIState, updateRemiListSearchResult, updateBillListFilterResult, updateRemiListFilterResult, REIMBURSEMENT_FILTER_CATEGORIES, REIMBURSEMENT_FILTER_CATEGORIES_RESTRICTED, updateRemiListDownloadUIState, updateBillListDownloadUIState, };
|
|
375
375
|
export { AccountListSelectorView, ClassListSelectorView, getClassList };
|
|
376
|
-
export { BillTab, BillsSubTabType, SaveBillStageCode, BillPayReviewSelectorView, DuplicateBillsSelectorView, EditBillDetailSelectorView, LineItemRecommendationsLocalData, EditBillInitialDetails, BillableStatus, PaymentDetailsSection, BillListReport, BillListDownloadReport, WhatForSection, fetchBillList, fetchBillListPerTab, updateTab, updateSubTab, updateSelectedBillId, updateBillDetailSaveBillCode, fetchVendorByNameAndParseInvoice, saveBillUpdatesToLocalStore, discardBillUpdatesInLocalStore, saveBillDetail, approveOrRejectBill, updateApprovalStatusOnSuccess, deleteBill, cancelAndDeleteBill, getBillList, getBillDownloadList, BillDetailViewSelector, ActorActivityWithUser, BillActivity, StepWithStatus, getBillDetailView, checkApproveRejectBtnShowForBill, BillDetailView, getBillTransactionDetailKey, fetchBillDetail, fetchEditBillDetailPage, fetchAndUpdateVendorRecommendations, fetchDuplicateBill, clearBillPayReview, EditBillDetail, EditBillDetailViewState, getEditBillDetail, getReviewPageBillDetail, BillDetailLocalData, PaymentDetailsSectionView, fetchBillAndInitializeLocalStore, updateShowAutofill, saveVendorSuccessOrFailure, PreviousBillsSelectorView, BillPaymentStatus, BillPaymentStatusCodeType, BillStatus, BillStatusCodeType, BillApprovalType, updateBillListUIState, BillListUIState, BillPayViewSortKey, BillPayFilters, BillPayFilterCategory, BillListViewFilterCategoryField, BILL_PAY_FILTER_CATEGORIES, updateVendorDetailLocalData, resetVendorDetailLocalData, updateContactsInVendorDetailLocalData, updateBillUploadFetchState, updateBillListSearchResult, sendOtpVendorView, resendOtpVendorView, verifyOtpVendorView, fetchUserDetails, verifyUser, updateVendorContact, PaymentToOption, toPaymentToOption, convertAmountToHomeCurrency,
|
|
376
|
+
export { BillTab, BillsSubTabType, SaveBillStageCode, BillPayReviewSelectorView, DuplicateBillsSelectorView, EditBillDetailSelectorView, LineItemRecommendationsLocalData, EditBillInitialDetails, BillableStatus, PaymentDetailsSection, BillListReport, BillListDownloadReport, WhatForSection, fetchBillList, fetchBillListPerTab, updateTab, updateSubTab, updateSelectedBillId, updateBillDetailSaveBillCode, fetchVendorByNameAndParseInvoice, saveBillUpdatesToLocalStore, discardBillUpdatesInLocalStore, saveBillDetail, approveOrRejectBill, updateApprovalStatusOnSuccess, deleteBill, cancelAndDeleteBill, getBillList, getBillDownloadList, BillDetailViewSelector, ActorActivityWithUser, BillActivity, StepWithStatus, getBillDetailView, checkApproveRejectBtnShowForBill, BillDetailView, getBillTransactionDetailKey, fetchBillDetail, fetchEditBillDetailPage, fetchAndUpdateVendorRecommendations, fetchDuplicateBill, clearBillPayReview, EditBillDetail, EditBillDetailViewState, getEditBillDetail, getReviewPageBillDetail, BillDetailLocalData, PaymentDetailsSectionView, fetchBillAndInitializeLocalStore, updateShowAutofill, saveVendorSuccessOrFailure, PreviousBillsSelectorView, BillPaymentStatus, BillPaymentStatusCodeType, BillStatus, BillStatusCodeType, BillApprovalType, updateBillListUIState, BillListUIState, BillPayViewSortKey, BillPayFilters, BillPayFilterCategory, BillListViewFilterCategoryField, BILL_PAY_FILTER_CATEGORIES, updateVendorDetailLocalData, resetVendorDetailLocalData, updateContactsInVendorDetailLocalData, updateBillUploadFetchState, updateBillListSearchResult, sendOtpVendorView, resendOtpVendorView, verifyOtpVendorView, fetchUserDetails, verifyUser, updateVendorContact, PaymentToOption, toPaymentToOption, convertAmountToHomeCurrency, };
|
|
377
377
|
import { SpendManagementFiltersType, SpendManagementFilterEntityType, FilterCategoryType, BillPayFilterCategoryDropdownOption, ReimbursementFilterCategoryDropdownOption, SpendManagementFilterCategoryDropdownOption, MatchingOperatorDropdownOption, CategoryCombinationOperator, hideCreatedByFilter } from './view/spendManagement/spendManagementFilterHelpers';
|
|
378
378
|
export { SpendManagementFiltersType, SpendManagementFilterEntityType, FilterCategoryType, BillPayFilterCategoryDropdownOption, ReimbursementFilterCategoryDropdownOption, SpendManagementFilterCategoryDropdownOption, MatchingOperatorDropdownOption, CategoryCombinationOperator, hideCreatedByFilter, };
|
|
379
379
|
import { BillPaySetupViewState, BillPaySetupViewLocalData } from './view/spendManagement/billPay/billPaySetupView/billPaySetupViewState';
|
|
@@ -441,9 +441,9 @@ import { OnboardingCustomerListUIState } from './view/onboardingView/cockpitView
|
|
|
441
441
|
import { reduceFetchState, reduceAnyFetchState, reduceAllFetchState } from './commonStateTypes/reduceFetchState';
|
|
442
442
|
import { SortOrder } from './commonStateTypes/selectorTypes/sortOrderTypes';
|
|
443
443
|
import { ALL_FILE_TYPES, FileType, toFileTypeStrict } from './commonStateTypes/fileType';
|
|
444
|
-
import { getNextNthWorkingDay, getPreviousNthWorkingDay, isHolidayToday, filterDays, getYearsList
|
|
444
|
+
import { getNextNthWorkingDay, getPreviousNthWorkingDay, isHolidayToday, filterDays, getYearsList } from './commonStateTypes/workingDayHelper';
|
|
445
445
|
export { reduceFetchState, reduceAnyFetchState, reduceAllFetchState, SortOrder, ALL_FILE_TYPES, FileType, toFileTypeStrict, };
|
|
446
|
-
export { getNextNthWorkingDay, getPreviousNthWorkingDay, isHolidayToday, filterDays, getYearsList,
|
|
446
|
+
export { getNextNthWorkingDay, getPreviousNthWorkingDay, isHolidayToday, filterDays, getYearsList, };
|
|
447
447
|
export { CustomerRatingCodeType, TeamRatingCodeType };
|
|
448
448
|
export { CustomerSatisfactionInfo };
|
|
449
449
|
export { fetchCompanyOnboardingView, fetchOnboardingCompletedCompanies, saveOnboardingCustomerCompletedStatus, getOnboardingCockpitView, getNewOnboardingCustomerView, getOnboardingEmailGroup, initializeOnboardingCustomerViewUpdateData, clearOnboardingCustomerViewUpdateData, saveOnboardingCustomerViewUpdateData, updateOnboardingCustomerListUIState, updateCustomerCreationStatus, updateStatusAfterOnboardingCompleted, saveOnboardingCustomerViewUpdates, saveOnboardingCustomerNotes, saveOnboardingCustomerDataInLocalStore, updateOnboardingCustomerDataInLocalStore, NewOnboardingCustomer, OnboardingCustomer, OnboardingCockpitView, NewOnboardingCustomerView, OnboardingCustomerCompletedStatus, OnboardingCustomerListUIState, CustomerCreationStatus, OnboardingCompanyDetails, resetNewOnboardedCustomerId, sendOnboardingCustomerViewInvite, retryBankAccountConnectionForOnboarding, };
|
|
@@ -591,5 +591,3 @@ import { ArAgingReport, getArAgingReport, AgingBalancesByCustomer } from './view
|
|
|
591
591
|
import { fetchArAgingDetail, updateArAgingDetailUIState } from './view/arAgingView/arAgingDetail/arAgingDetailReducer';
|
|
592
592
|
import { ArAgingDetail, getArAgingDetailForCustomer } from './view/arAgingView/arAgingDetail/arAgingDetailSelector';
|
|
593
593
|
export { fetchArAging, updateArAgingUIState, fetchArAgingDetail, updateArAgingDetailUIState, ArAgingReport, ArAgingDetail, AgingBalancesByCustomer, getArAgingReport, getArAgingDetailForCustomer, };
|
|
594
|
-
import { toRecurringBillFrequency, toRecurringBillFrequencyStrict, RecurringBillFrequency, RecurringBillDetail, RecurringBillConfig } from './entity/billPay/recurringBills/recurringBillsState';
|
|
595
|
-
export { toRecurringBillFrequency, toRecurringBillFrequencyStrict, RecurringBillFrequency, RecurringBillDetail, RecurringBillConfig, };
|
package/lib/index.js
CHANGED
|
@@ -39,10 +39,10 @@ exports.updateRemiListSearchResult = exports.updateRemiListUIState = exports.upd
|
|
|
39
39
|
exports.toPaymentToOption = exports.updateVendorContact = exports.verifyUser = exports.fetchUserDetails = exports.verifyOtpVendorView = exports.resendOtpVendorView = exports.sendOtpVendorView = exports.updateBillListSearchResult = exports.updateBillUploadFetchState = exports.updateContactsInVendorDetailLocalData = exports.resetVendorDetailLocalData = exports.updateVendorDetailLocalData = exports.BILL_PAY_FILTER_CATEGORIES = exports.updateBillListUIState = exports.saveVendorSuccessOrFailure = exports.updateShowAutofill = exports.fetchBillAndInitializeLocalStore = exports.getReviewPageBillDetail = exports.getEditBillDetail = exports.clearBillPayReview = exports.fetchDuplicateBill = exports.fetchAndUpdateVendorRecommendations = exports.fetchEditBillDetailPage = exports.fetchBillDetail = exports.getBillTransactionDetailKey = exports.checkApproveRejectBtnShowForBill = exports.getBillDetailView = exports.getBillDownloadList = exports.getBillList = exports.cancelAndDeleteBill = exports.deleteBill = exports.updateApprovalStatusOnSuccess = exports.approveOrRejectBill = exports.saveBillDetail = exports.discardBillUpdatesInLocalStore = exports.saveBillUpdatesToLocalStore = exports.fetchVendorByNameAndParseInvoice = exports.updateBillDetailSaveBillCode = exports.updateSelectedBillId = exports.updateSubTab = exports.updateTab = exports.fetchBillListPerTab = exports.fetchBillList = exports.getClassList = exports.updateBillListDownloadUIState = exports.updateRemiListDownloadUIState = exports.REIMBURSEMENT_FILTER_CATEGORIES_RESTRICTED = exports.REIMBURSEMENT_FILTER_CATEGORIES = exports.updateRemiListFilterResult = exports.updateBillListFilterResult = void 0;
|
|
40
40
|
exports.fetchBillPayApproversDetails = exports.fetchBillPaySetupApproverView = exports.getBillPaySetupApproverUpdateDataView = exports.getBillPaySetupApproverView = exports.toRoleTypeStrict = exports.toAttributeOrRoleTypeStrict = exports.toAttributeTypeStrict = exports.isSuccessResponse = exports.getRemiBusinessVerificationDetails = exports.getRemiSetupViewDetails = exports.clearRemiSetupView = exports.acceptEmployeeRemiTerms = exports.acceptRemiTerms = exports.saveRemiSetupViewDataInLocalStore = exports.updateMileageDetails = exports.fetchRemiSetupView = exports.getUserFinancialAccount = exports.getCommonSetupViewDetails = exports.getZeniAccountBusinessVerificationDetails = exports.getBillPayBusinessVerificationDetails = exports.getBusinessVerificationDetails = exports.getZeniAccountSetupViewDetails = exports.getBillPaySetupViewDetails = exports.verifyOtp = exports.resendOtp = exports.sendOtp = exports.clearZeniAccountSetupView = exports.clearBillPaySetupView = exports.clearSetupViewDataInLocalStore = exports.saveIndustryAndIncDateInLocalStore = exports.saveCompnayOfficerAdditionalDocumentsInLocalStore = exports.saveCompnayOfficerPhoneInLocalStore = exports.saveSetupViewDataInLocalStore = exports.acceptBillPayUpdatedTerms = exports.acceptZeniAccountTerms = exports.acceptBillPayTerms = exports.establishPlaidConnection = exports.updatePaymentAccountStatus = exports.updatePaymentAccountLoginStatus = exports.updatePaymentAccount = exports.updateBusinessVerificationDetails = exports.updateSetupViewLocalStoreData = exports.updateSelectedCompanyOfficer = exports.getPlaidLinkToken = exports.getPaymentAccounts = exports.enableSetup = exports.fetchZeniAccountSetupView = exports.fetchBillPaySetupView = exports.hideCreatedByFilter = exports.convertAmountToHomeCurrency = void 0;
|
|
41
41
|
exports.toFileTypeStrict = exports.ALL_FILE_TYPES = exports.reduceAllFetchState = exports.reduceAnyFetchState = exports.reduceFetchState = exports.clearAddRemiAutoFields = exports.clearTentativeMerchantName = exports.updateTentativeMerchantNames = exports.updateUploadFetchState = exports.updateAddRemiAutoFields = exports.clearEditRemiViewDetail = exports.parseReceiptsToRemi = exports.saveRemiSuccessOrFailure = exports.saveRemiDetail = exports.removeFileFromRemiUpdatesInLocalStore = exports.discardRemiUpdatesInLocalStore = exports.fetchCurrencyConversionValue = exports.saveRemiUpdatesToLocalStore = exports.initializeRemiToLocalStore = exports.fetchRemiAndInitializeLocalStore = exports.fetchRecommendationsAndUpdateMerchantRecommendations = exports.fetchEditRemiDetailPage = exports.getEditRemiDetail = exports.clearRemiDetailView = exports.approveOrRejectRemi = exports.cancelAndDeleteRemi = exports.fetchRemiDetail = exports.deleteRemi = exports.updateIsEditModeRealTimeApprovals = exports.saveRealTimeApproval = exports.checkApproveRejectBtnShowForRemi = exports.getRemiDetailView = exports.clearRemiSetupApproverView = exports.clearRemiSetupApproverViewUpdateData = exports.initializeRemiSetupApproverViewUpdateData = exports.saveRemiSetupApproverViewUpdates = exports.saveRemiSetupApproverViewUpdateData = exports.deleteRemiApprovalRule = exports.fetchRemiApproversDetails = exports.fetchRemiApproversList = exports.fetchRemiSetupApproverView = exports.getRemiSetupApproverUpdateDataView = exports.getRemiSetupApproverView = exports.clearBillPaySetupApproverView = exports.clearBillPaySetupApproverViewUpdateData = exports.initializeBillPaySetupApproverViewUpdateData = exports.saveBillPaySetupApproverViewUpdates = exports.saveBillPaySetupApproverViewUpdateData = exports.deleteBillPayApprovalRule = exports.fetchBillPayApproversList = void 0;
|
|
42
|
-
exports.fetchRecommendationByEntityId = exports.fetchRecommendationByEntityQboId = exports.isVendorsTabVisible = exports.isColumnYTDSpend = exports.updateYTDSelectionUIState = exports.updatePageToken = exports.updateSortUiState = exports.getVendorList = exports.LOCAL_CURRENCY_INTERNATIONAL_METHOD_SUBTEXT = exports.SWIFT_OUR_INTERNATIONAL_METHOD_SUBTEXT = exports.NEW_INTERNATIONAL_METHOD_SUBTEXT = exports.BILL_NEW_PAYMENT_METHODS = exports.getInternationalSubConfigCodeKey = exports.shouldEnableCalendarPickerForLastReportSent = exports.canSendMonthEndEmailReport = exports.getSelectedCompanyOfficer = exports.getSpendManagementEffectiveListPeriod = exports.getSnackbar = exports.closeSnackbar = exports.openSnackbar = exports.getChangedLineItemCountFromLocalData = exports.getTransactionListUIStateByCategoryType = exports.getTransactionsListByCategoryType = exports.retryBankAccountConnectionForOnboarding = exports.sendOnboardingCustomerViewInvite = exports.resetNewOnboardedCustomerId = exports.updateOnboardingCustomerDataInLocalStore = exports.saveOnboardingCustomerDataInLocalStore = exports.saveOnboardingCustomerNotes = exports.saveOnboardingCustomerViewUpdates = exports.updateStatusAfterOnboardingCompleted = exports.updateCustomerCreationStatus = exports.updateOnboardingCustomerListUIState = exports.saveOnboardingCustomerViewUpdateData = exports.clearOnboardingCustomerViewUpdateData = exports.initializeOnboardingCustomerViewUpdateData = exports.getOnboardingEmailGroup = exports.getNewOnboardingCustomerView = exports.getOnboardingCockpitView = exports.saveOnboardingCustomerCompletedStatus = exports.fetchOnboardingCompletedCompanies = exports.fetchCompanyOnboardingView = exports.
|
|
43
|
-
exports.updateOnboardingPaymentAccountLoginStatus = exports.updateOnboardingCustomerViewCompleteStatus = exports.updateOnboardingCustomerViewAccountDetails = exports.establishOnboardingPlaidConnection = exports.getOnboardingPlaidLinkToken = exports.fetchOnboardingCustomerSetupView = exports.fetchOnboardingCustomerView = exports.isZeniClearingAccount = exports.ZENI_CLEARING_ACCOUNT = exports.isZeniClearingAccountReport = exports.getCompanyConfig = exports.fetchCompanyConfig = exports.clearTransactionVendorSaveStatus = exports.resetTransactionVendorLocalData = exports.updateTransactionVendorLocalData = exports.saveTransactionVendorSuccessOrFailure = exports.saveTransactionVendor = exports.getTransactionVendorView = exports.getZeniAccStatements = exports.fetchZeniAccStatementPage = exports.getDepositAccountTransactionList = exports.fetchDepositAccountTransactionList = exports.fetchDepositAccountHistoryFailure = exports.fetchDepositAccountHistorySuccess = exports.updateDepositAccount = exports.getCheckDepositDetail = exports.clearCheckDeposit = exports.updateCheckDepositLocalData = exports.depositCheck = exports.ZENI_ACCOUNTS_TAB = exports.fetchDepositAccountDetail = exports.clearTransferDetail = exports.getTransferDetail = exports.transferMoney = exports.updateDepositToLocalData = exports.updateTransferToLocalData = exports.updateTransferMoneyLocalData = exports.fetchZeniAccountsConfig = exports.fetchDepositAccount = exports.getDepositAccountDetailForPDF = exports.getDepositAccountDetail = exports.unlinkPaymentAccount = exports.fetchPaymentAccountList = exports.createCheckingAccount = exports.updateZeniAccountListTab = exports.fetchZeniAccountList = exports.getZeniAccountList =
|
|
44
|
-
exports.toCreditLimitFrequencyCodeType = exports.toChargeCardSortKeyType = exports.fetchChargeCardTransactionList = exports.getChargeCardDetailView = exports.fetchChargeCardDetailPage = exports.getChargeCardListView = exports.fetchChargeCardListPage = exports.getChargeCardBusinessVerificationDetails = exports.getUserRoleConfig = exports.fetchUserRoleConfig = exports.clearInternationalWire = exports.deletePaymentInstrument = exports.createPaymentInstrumentUpdateStatus = exports.createPaymentInstrument = exports.fetchInternationalWireDynamicForm = exports.initializeDynamicForm = exports.updateInternationalWireLocalStoreData = exports.initializeInternationalWireLocalData = exports.getInternationalWireView = exports.fetchWiseRedirectStatus = exports.getWiseRedirect = exports.saveMagicLinkAddressInLocalStore = exports.fetchMagicLinkBankNameBySwift = exports.fetchMagicLinkBankNameByRouting = exports.updateMagicLinkInternationalBankAccountLocalStoreData = exports.updateMagicLinkBankAccountLocalStoreData = exports.saveBankAccount = exports.fetchBillAttachment = exports.fetchMagicLinkTenant = exports.getMagicLinkCurrentAddressState = exports.getMagicLinkBankAccountView = exports.getMagicLinkView = exports.initializeAccountMappingView = exports.getAccountMappingView = exports.clearAccountMappingLocalData = exports.saveAccountMappingLocalData = exports.saveAccountMapping = exports.getOnboardingCustomerView = exports.clearOnboardingCustomerViewDataInLocalStore = exports.clearOnboardingCustomerView = exports.resendOnboardingOfficerOtp = exports.verifyOnboardingOfficerOtp = exports.sendOnboardingOfficerOtp = exports.saveOnboardingCustomerViewDataInLocalStore = exports.saveOnboardingCompnayOfficerPhoneInLocalStore = exports.updateOnboardingCustomerViewUIState = exports.updateCurrentStep =
|
|
45
|
-
exports.
|
|
42
|
+
exports.getZeniAccountsConfigDetail = exports.fetchOwnerList = exports.fetchRecommendationByEntityName = exports.fetchRecommendationByEntityId = exports.fetchRecommendationByEntityQboId = exports.isVendorsTabVisible = exports.isColumnYTDSpend = exports.updateYTDSelectionUIState = exports.updatePageToken = exports.updateSortUiState = exports.getVendorList = exports.LOCAL_CURRENCY_INTERNATIONAL_METHOD_SUBTEXT = exports.SWIFT_OUR_INTERNATIONAL_METHOD_SUBTEXT = exports.NEW_INTERNATIONAL_METHOD_SUBTEXT = exports.BILL_NEW_PAYMENT_METHODS = exports.getInternationalSubConfigCodeKey = exports.shouldEnableCalendarPickerForLastReportSent = exports.canSendMonthEndEmailReport = exports.getSelectedCompanyOfficer = exports.getSpendManagementEffectiveListPeriod = exports.getSnackbar = exports.closeSnackbar = exports.openSnackbar = exports.getChangedLineItemCountFromLocalData = exports.getTransactionListUIStateByCategoryType = exports.getTransactionsListByCategoryType = exports.retryBankAccountConnectionForOnboarding = exports.sendOnboardingCustomerViewInvite = exports.resetNewOnboardedCustomerId = exports.updateOnboardingCustomerDataInLocalStore = exports.saveOnboardingCustomerDataInLocalStore = exports.saveOnboardingCustomerNotes = exports.saveOnboardingCustomerViewUpdates = exports.updateStatusAfterOnboardingCompleted = exports.updateCustomerCreationStatus = exports.updateOnboardingCustomerListUIState = exports.saveOnboardingCustomerViewUpdateData = exports.clearOnboardingCustomerViewUpdateData = exports.initializeOnboardingCustomerViewUpdateData = exports.getOnboardingEmailGroup = exports.getNewOnboardingCustomerView = exports.getOnboardingCockpitView = exports.saveOnboardingCustomerCompletedStatus = exports.fetchOnboardingCompletedCompanies = exports.fetchCompanyOnboardingView = exports.getYearsList = exports.filterDays = exports.isHolidayToday = exports.getPreviousNthWorkingDay = exports.getNextNthWorkingDay = void 0;
|
|
43
|
+
exports.updateOnboardingCustomerViewLocalStoreData = exports.updateOnboardingCustomerView = exports.updateOnboardingPaymentAccountStatus = exports.updateOnboardingPaymentAccountLoginStatus = exports.updateOnboardingCustomerViewCompleteStatus = exports.updateOnboardingCustomerViewAccountDetails = exports.establishOnboardingPlaidConnection = exports.getOnboardingPlaidLinkToken = exports.fetchOnboardingCustomerSetupView = exports.fetchOnboardingCustomerView = exports.isZeniClearingAccount = exports.ZENI_CLEARING_ACCOUNT = exports.isZeniClearingAccountReport = exports.getCompanyConfig = exports.fetchCompanyConfig = exports.clearTransactionVendorSaveStatus = exports.resetTransactionVendorLocalData = exports.updateTransactionVendorLocalData = exports.saveTransactionVendorSuccessOrFailure = exports.saveTransactionVendor = exports.getTransactionVendorView = exports.getZeniAccStatements = exports.fetchZeniAccStatementPage = exports.getDepositAccountTransactionList = exports.fetchDepositAccountTransactionList = exports.fetchDepositAccountHistoryFailure = exports.fetchDepositAccountHistorySuccess = exports.updateDepositAccount = exports.getCheckDepositDetail = exports.clearCheckDeposit = exports.updateCheckDepositLocalData = exports.depositCheck = exports.ZENI_ACCOUNTS_TAB = exports.fetchDepositAccountDetail = exports.clearTransferDetail = exports.getTransferDetail = exports.transferMoney = exports.updateDepositToLocalData = exports.updateTransferToLocalData = exports.updateTransferMoneyLocalData = exports.fetchZeniAccountsConfig = exports.fetchDepositAccount = exports.getDepositAccountDetailForPDF = exports.getDepositAccountDetail = exports.unlinkPaymentAccount = exports.fetchPaymentAccountList = exports.createCheckingAccount = exports.updateZeniAccountListTab = exports.fetchZeniAccountList = exports.getZeniAccountList = void 0;
|
|
44
|
+
exports.acceptChargeCardTerms = exports.fetchChargeCardSetupView = exports.getChargeCardSetupViewDetails = exports.toCreditLimitFrequencyCodeType = exports.toChargeCardSortKeyType = exports.fetchChargeCardTransactionList = exports.getChargeCardDetailView = exports.fetchChargeCardDetailPage = exports.getChargeCardListView = exports.fetchChargeCardListPage = exports.getChargeCardBusinessVerificationDetails = exports.getUserRoleConfig = exports.fetchUserRoleConfig = exports.clearInternationalWire = exports.deletePaymentInstrument = exports.createPaymentInstrumentUpdateStatus = exports.createPaymentInstrument = exports.fetchInternationalWireDynamicForm = exports.initializeDynamicForm = exports.updateInternationalWireLocalStoreData = exports.initializeInternationalWireLocalData = exports.getInternationalWireView = exports.fetchWiseRedirectStatus = exports.getWiseRedirect = exports.saveMagicLinkAddressInLocalStore = exports.fetchMagicLinkBankNameBySwift = exports.fetchMagicLinkBankNameByRouting = exports.updateMagicLinkInternationalBankAccountLocalStoreData = exports.updateMagicLinkBankAccountLocalStoreData = exports.saveBankAccount = exports.fetchBillAttachment = exports.fetchMagicLinkTenant = exports.getMagicLinkCurrentAddressState = exports.getMagicLinkBankAccountView = exports.getMagicLinkView = exports.initializeAccountMappingView = exports.getAccountMappingView = exports.clearAccountMappingLocalData = exports.saveAccountMappingLocalData = exports.saveAccountMapping = exports.getOnboardingCustomerView = exports.clearOnboardingCustomerViewDataInLocalStore = exports.clearOnboardingCustomerView = exports.resendOnboardingOfficerOtp = exports.verifyOnboardingOfficerOtp = exports.sendOnboardingOfficerOtp = exports.saveOnboardingCustomerViewDataInLocalStore = exports.saveOnboardingCompnayOfficerPhoneInLocalStore = exports.updateOnboardingCustomerViewUIState = exports.updateCurrentStep = void 0;
|
|
45
|
+
exports.getArAgingDetailForCustomer = exports.getArAgingReport = exports.updateArAgingDetailUIState = exports.fetchArAgingDetail = exports.updateArAgingUIState = exports.fetchArAging = exports.toVendorGlobalReviewColumnSortKeyType = exports.getTenantMerchantByMerchantId = exports.getVendorGlobalReviewView = exports.updateVendorGlobalReviewViewUIState = exports.updateSelectedGlobalMerchant = exports.fetchVendorGlobalReviewView = exports.approveVendorGlobalReview = exports.getGlobalMerchantView = exports.clearGlobalMerchantView = exports.updateCreateGlobalMerchantLocalData = exports.createGlobalMerchant = exports.fetchGlobalMerchantRecommendation = exports.clearGlobalMerchantAutoCompleteResults = exports.fetchGlobalMerchantAutoCompleteView = exports.updateVendorFirstReviewSortUiState = exports.updateVendorFirstReviewViewLocalData = exports.saveVendorFirstReviewView = exports.clearRecentlySavedErroredVendorData = exports.updateVendorFirstReviewViewPageToken = exports.resetVendorFirstReviewLocalData = exports.updateVendorFirstReviewViewScrollYOffset = exports.fetchVendorFirstReviewView = exports.getVendorFirstReviewView = exports.getGlobalMerchantAutoCompleteResults = exports.toVendorFirstReviewViewColumnKeyType = exports.updateApAgingDetailUIState = exports.getApAgingDetailForVendor = exports.fetchApAgingDetail = exports.updateApAgingUIState = exports.getApAgingReport = exports.fetchApAging = exports.updateChargeCardListUIState = exports.updateChargeCardListSearchText = exports.resetIssueChargeCardForm = exports.updateChargeCardLocalStore = exports.issueChargeCard = void 0;
|
|
46
46
|
const zeniDayJS_1 = require("./zeniDayJS");
|
|
47
47
|
Object.defineProperty(exports, "Dayjs", { enumerable: true, get: function () { return zeniDayJS_1.Dayjs; } });
|
|
48
48
|
Object.defineProperty(exports, "updateZeniDateLocaleID", { enumerable: true, get: function () { return zeniDayJS_1.updateZeniDateLocaleID; } });
|
|
@@ -912,9 +912,6 @@ Object.defineProperty(exports, "getPreviousNthWorkingDay", { enumerable: true, g
|
|
|
912
912
|
Object.defineProperty(exports, "isHolidayToday", { enumerable: true, get: function () { return workingDayHelper_1.isHolidayToday; } });
|
|
913
913
|
Object.defineProperty(exports, "filterDays", { enumerable: true, get: function () { return workingDayHelper_1.filterDays; } });
|
|
914
914
|
Object.defineProperty(exports, "getYearsList", { enumerable: true, get: function () { return workingDayHelper_1.getYearsList; } });
|
|
915
|
-
Object.defineProperty(exports, "holidaysFormatted", { enumerable: true, get: function () { return workingDayHelper_1.holidaysFormatted; } });
|
|
916
|
-
Object.defineProperty(exports, "isHoliday", { enumerable: true, get: function () { return workingDayHelper_1.isHoliday; } });
|
|
917
|
-
Object.defineProperty(exports, "PAYMENT_BUSINESS_DAYS", { enumerable: true, get: function () { return workingDayHelper_1.PAYMENT_BUSINESS_DAYS; } });
|
|
918
915
|
const transactionListByCategoryTypeSelector_1 = require("./view/transactionList/transactionListByCategoryTypeSelector");
|
|
919
916
|
Object.defineProperty(exports, "getTransactionsListByCategoryType", { enumerable: true, get: function () { return transactionListByCategoryTypeSelector_1.getTransactionsListByCategoryType; } });
|
|
920
917
|
Object.defineProperty(exports, "getTransactionListUIStateByCategoryType", { enumerable: true, get: function () { return transactionListByCategoryTypeSelector_1.getTransactionListUIStateByCategoryType; } });
|
|
@@ -1157,6 +1154,3 @@ Object.defineProperty(exports, "fetchArAgingDetail", { enumerable: true, get: fu
|
|
|
1157
1154
|
Object.defineProperty(exports, "updateArAgingDetailUIState", { enumerable: true, get: function () { return arAgingDetailReducer_1.updateArAgingDetailUIState; } });
|
|
1158
1155
|
const arAgingDetailSelector_1 = require("./view/arAgingView/arAgingDetail/arAgingDetailSelector");
|
|
1159
1156
|
Object.defineProperty(exports, "getArAgingDetailForCustomer", { enumerable: true, get: function () { return arAgingDetailSelector_1.getArAgingDetailForCustomer; } });
|
|
1160
|
-
const recurringBillsState_1 = require("./entity/billPay/recurringBills/recurringBillsState");
|
|
1161
|
-
Object.defineProperty(exports, "toRecurringBillFrequency", { enumerable: true, get: function () { return recurringBillsState_1.toRecurringBillFrequency; } });
|
|
1162
|
-
Object.defineProperty(exports, "toRecurringBillFrequencyStrict", { enumerable: true, get: function () { return recurringBillsState_1.toRecurringBillFrequencyStrict; } });
|
package/lib/reducer.d.ts
CHANGED
|
@@ -64,7 +64,6 @@ import { DepositAccountTransactionState } from './entity/depositAccountTransacti
|
|
|
64
64
|
import { BillPayConfigState } from './view/spendManagement/billPay/billPayConfig/billPayConfigState';
|
|
65
65
|
import { ReimbursementConfigState } from './view/spendManagement/reimbursement/reimbursementConfig/reimbursementConfigState';
|
|
66
66
|
import { ContactState } from './entity/billPay/contact/contact';
|
|
67
|
-
import { RecurringBillState } from './entity/billPay/recurringBills/recurringBillsState';
|
|
68
67
|
import { VendorState } from './entity/vendor/vendorState';
|
|
69
68
|
import { MerchantState } from './entity/merchant/merchant';
|
|
70
69
|
import { VendorViewState } from './view/commonVendorView/vendorView/vendorViewState';
|
|
@@ -170,7 +169,6 @@ declare type EntitiesState = {
|
|
|
170
169
|
paymentAccountState: PaymentAccountState;
|
|
171
170
|
paymentInstrumentState: PaymentInstrumentState;
|
|
172
171
|
reimbursementConfigState: ReimbursementConfigState;
|
|
173
|
-
recurringBillState: RecurringBillState;
|
|
174
172
|
reimbursementState: ReimbursementState;
|
|
175
173
|
sectionAccountsViewState: SectionAccountsViewState;
|
|
176
174
|
sectionClassesViewStateV2: SectionClassesViewStateV2;
|
|
@@ -414,7 +412,6 @@ declare const reducers: import("redux").Reducer<import("redux").CombinedState<{
|
|
|
414
412
|
merchantState: MerchantState;
|
|
415
413
|
onboardingCustomerState: OnboardingCustomerState;
|
|
416
414
|
paymentInstrumentState: PaymentInstrumentState;
|
|
417
|
-
recurringBillState: RecurringBillState;
|
|
418
415
|
reimbursementState: ReimbursementState;
|
|
419
416
|
sectionAccountsViewState: SectionAccountsViewState;
|
|
420
417
|
sectionClassesViewStateV2: SectionClassesViewStateV2;
|
package/lib/reducer.js
CHANGED
|
@@ -95,7 +95,6 @@ const depositAccountTransactionReducer_1 = __importStar(require("./entity/deposi
|
|
|
95
95
|
const billPayConfigReducer_1 = __importStar(require("./view/spendManagement/billPay/billPayConfig/billPayConfigReducer"));
|
|
96
96
|
const reimbursementConfigReducer_1 = __importStar(require("./view/spendManagement/reimbursement/reimbursementConfig/reimbursementConfigReducer"));
|
|
97
97
|
const contactReducer_1 = __importStar(require("./entity/billPay/contact/contactReducer"));
|
|
98
|
-
const recurringBillsReducer_1 = __importStar(require("./entity/billPay/recurringBills/recurringBillsReducer"));
|
|
99
98
|
const vendorReducer_1 = __importStar(require("./entity/vendor/vendorReducer"));
|
|
100
99
|
const merchantReducer_1 = __importStar(require("./entity/merchant/merchantReducer"));
|
|
101
100
|
const vendorViewReducer_1 = __importStar(require("./view/commonVendorView/vendorView/vendorViewReducer"));
|
|
@@ -202,7 +201,6 @@ const initialEntitiesState = {
|
|
|
202
201
|
paymentAccountState: paymentAccountReducer_1.initialState,
|
|
203
202
|
paymentInstrumentState: paymentInstrumentReducer_1.initialState,
|
|
204
203
|
reimbursementConfigState: reimbursementConfigReducer_1.initialState,
|
|
205
|
-
recurringBillState: recurringBillsReducer_1.initialState,
|
|
206
204
|
reimbursementState: reimbursementReducer_1.initialState,
|
|
207
205
|
sectionAccountsViewState: sectionAccountsViewReducer_1.initialState,
|
|
208
206
|
sectionClassesViewStateV2: sectionClassesViewReducer_1.initialState,
|
|
@@ -353,7 +351,6 @@ const entityReducers = {
|
|
|
353
351
|
paymentAccountState: paymentAccountReducer_1.default,
|
|
354
352
|
paymentInstrumentState: paymentInstrumentReducer_1.default,
|
|
355
353
|
reimbursementConfigState: reimbursementConfigReducer_1.default,
|
|
356
|
-
recurringBillState: recurringBillsReducer_1.default,
|
|
357
354
|
reimbursementState: reimbursementReducer_1.default,
|
|
358
355
|
sectionAccountsViewState: sectionAccountsViewReducer_1.default,
|
|
359
356
|
sectionClassesViewStateV2: sectionClassesViewReducer_1.default,
|
|
@@ -27,7 +27,6 @@ exports.initialState = {
|
|
|
27
27
|
byReportId: {
|
|
28
28
|
accountList: exports.initialAccountList,
|
|
29
29
|
reimbursementAccountList: exports.initialAccountList,
|
|
30
|
-
billPayAccountList: exports.initialAccountList,
|
|
31
30
|
},
|
|
32
31
|
};
|
|
33
32
|
const accountList = (0, toolkit_1.createSlice)({
|
|
@@ -41,7 +40,7 @@ const accountList = (0, toolkit_1.createSlice)({
|
|
|
41
40
|
const existingData = draft.byReportId[action.payload.accountListKey];
|
|
42
41
|
draft.byReportId[action.payload.accountListKey] = Object.assign(Object.assign({}, existingData), { fetchState: 'In-Progress', error: undefined });
|
|
43
42
|
},
|
|
44
|
-
prepare(accountListKey, fetchFullResponse = false, excludeAccountPayableAccounts =
|
|
43
|
+
prepare(accountListKey, fetchFullResponse = false, excludeAccountPayableAccounts = true, excludeAccountReceivableAccounts = true, isLimitedCategoryEnabled = false) {
|
|
45
44
|
return {
|
|
46
45
|
payload: {
|
|
47
46
|
accountListKey,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { NestedAccountHeirarchyForReport } from '../../commonStateTypes/accountView/nestedAccountID';
|
|
2
2
|
import { FetchedState, ID } from '../../commonStateTypes/common';
|
|
3
3
|
import { AccountLabel } from '../../entity/account/accountState';
|
|
4
|
-
export declare type AccountListKeyType = 'accountList' | 'reimbursementAccountList'
|
|
4
|
+
export declare type AccountListKeyType = 'accountList' | 'reimbursementAccountList';
|
|
5
5
|
export interface AccountList extends FetchedState {
|
|
6
6
|
accountIds: ID[];
|
|
7
7
|
accountIdsByLabel: Record<AccountLabel, ID[]>;
|
|
@@ -108,7 +108,6 @@ const saveVendorEpic = (actions$, state$, zeniAPI) => actions$.pipe((0, operator
|
|
|
108
108
|
paymentDetailsSection: Object.assign(Object.assign({}, billInLocalStore.billDetailLocalData
|
|
109
109
|
.paymentDetailsSection), { paymentTo: undefined, internationalTransferFeeBearerPaymentMethod: updatedVendor === null || updatedVendor === void 0 ? void 0 : updatedVendor.preferredInternationalTransferFeeBearerPaymentMethod }),
|
|
110
110
|
isCollectToAccountInfoFromVendorContact: false,
|
|
111
|
-
isRecurring: false,
|
|
112
111
|
},
|
|
113
112
|
billId: action.payload.billId,
|
|
114
113
|
}), (0, editBillViewReducer_1.updateRecommendedVendorId)());
|
|
@@ -22,7 +22,7 @@ const recommendationSelector_1 = require("../../recommendation/recommendationSel
|
|
|
22
22
|
const getVendorView = (state, vendorIdFromUrl) => {
|
|
23
23
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3;
|
|
24
24
|
const { accountListState, accountState, addressViewState, bankAccountState, classListState, billPayConfigState, classState, vendorTypeListState, vendorState, vendorViewState, addressState, userState, paymentInstrumentState, } = state;
|
|
25
|
-
const accountList = (0, accountListSelector_1.getAccountList)(accountState, accountListState, '
|
|
25
|
+
const accountList = (0, accountListSelector_1.getAccountList)(accountState, accountListState, 'accountList');
|
|
26
26
|
const classList = (0, classListSelector_1.getClassList)(classState, classListState);
|
|
27
27
|
const vendorTypeList = vendorTypeListState.vendorTypes;
|
|
28
28
|
const ownerList = (0, userSelector_1.getUsersByUserIds)(state.userState, state.ownerListState.ownerIds);
|
|
@@ -8,7 +8,6 @@ import { UserPayload } from '../../../../entity/user/userPayload';
|
|
|
8
8
|
import { ZeniAPIResponse } from '../../../../responsePayload';
|
|
9
9
|
import { VendorPayload } from '../../../../entity/vendor/vendorPayload';
|
|
10
10
|
import { PaymentInstrumentPayload } from '../../../../entity/paymentInstrument/paymentInstrumentPayload';
|
|
11
|
-
import { RecurringBillConfigResponsePayload, RecurringBillDataPayload } from '../../../../entity/billPay/recurringBills/recurringBillsPayload';
|
|
12
11
|
export interface ApproveOrRejectBillPayload {
|
|
13
12
|
approval_rules: ApprovalRulePayload[];
|
|
14
13
|
users: UserPayload[];
|
|
@@ -21,8 +20,6 @@ export interface BillDetailViewPayload extends ApproveOrRejectBillPayload {
|
|
|
21
20
|
payment_accounts: PaymentAccountPayload[];
|
|
22
21
|
accounts: AccountPayload[];
|
|
23
22
|
vendors: VendorPayload[];
|
|
24
|
-
recurring_bill_configs: RecurringBillConfigResponsePayload[];
|
|
25
|
-
recurring_bills: RecurringBillDataPayload[];
|
|
26
23
|
query: BillDetailQuery;
|
|
27
24
|
query_definitions: Record<string, unknown>;
|
|
28
25
|
}
|
|
@@ -18,7 +18,6 @@ import { ActivityRealTimeApprovalSelectorView } from '../../realTimeApprovalView
|
|
|
18
18
|
import { UserAndRole } from '../../../companyView/types/userAndRole';
|
|
19
19
|
import { Class } from '../../../../entity/class/classState';
|
|
20
20
|
import { PaymentInstrument } from '../../../../entity/paymentInstrument/paymentInstrument';
|
|
21
|
-
import { RecurringBillConfig, RecurringBillData } from '../../../../entity/billPay/recurringBills/recurringBillsState';
|
|
22
21
|
export interface BillDetailViewSelector extends SelectorView {
|
|
23
22
|
transactionDetails: BillTransaction | undefined;
|
|
24
23
|
createdBy: User | undefined;
|
|
@@ -44,9 +43,6 @@ export interface BillDetailViewSelector extends SelectorView {
|
|
|
44
43
|
approvalType?: BillApprovalType;
|
|
45
44
|
paymentMethodType?: BillPayConfig;
|
|
46
45
|
latestApprovedDate?: ZeniDate;
|
|
47
|
-
isRecurring: boolean;
|
|
48
|
-
recurringBillInstances?: RecurringBillData[];
|
|
49
|
-
recurringBillConfigDetail?: RecurringBillConfig;
|
|
50
46
|
}
|
|
51
47
|
export interface StepWithStatus extends StepWithUser {
|
|
52
48
|
actorsActivity: ActorActivityWithUser[];
|
|
@@ -60,7 +56,6 @@ export interface ActorActivityWithUser {
|
|
|
60
56
|
userId: ID;
|
|
61
57
|
type: string;
|
|
62
58
|
subType?: string;
|
|
63
|
-
isRecurringAutoApprove: boolean;
|
|
64
59
|
}
|
|
65
60
|
export interface BillActivity {
|
|
66
61
|
approvalRuleId?: ID;
|
|
@@ -83,8 +83,8 @@ const getBillActivities = (state, billId, billStageCode) => {
|
|
|
83
83
|
};
|
|
84
84
|
exports.getBillActivities = getBillActivities;
|
|
85
85
|
const getBillDetailView = (state, billId) => {
|
|
86
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o
|
|
87
|
-
const { accountState, bankAccountState, paymentInstrumentState, billDetailViewState, billTransactionState, paymentAccountState, userState, billPayConfigState, userRoleState, classListState, classState, commonHistoryState, realTimeApprovalState, entityApprovalStatusState, billPaySetupApproverViewState, vendorState,
|
|
86
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
87
|
+
const { accountState, bankAccountState, paymentInstrumentState, billDetailViewState, billTransactionState, paymentAccountState, userState, billPayConfigState, userRoleState, classListState, classState, commonHistoryState, realTimeApprovalState, entityApprovalStatusState, billPaySetupApproverViewState, vendorState, } = state;
|
|
88
88
|
const { approverListState } = billPaySetupApproverViewState;
|
|
89
89
|
const detailKey = (0, billDetailViewState_1.getBillTransactionDetailKey)(billId !== null && billId !== void 0 ? billId : '');
|
|
90
90
|
const billTransactionDetails = (0, get_1.default)(billDetailViewState.billDetailById, detailKey, undefined);
|
|
@@ -184,14 +184,6 @@ const getBillDetailView = (state, billId) => {
|
|
|
184
184
|
reportId: 'class_list',
|
|
185
185
|
});
|
|
186
186
|
const currentVendorDetails = (0, get_1.default)(vendorState.vendorByID, (_o = billTransactionDetails === null || billTransactionDetails === void 0 ? void 0 : billTransactionDetails.vendorId) !== null && _o !== void 0 ? _o : '', undefined);
|
|
187
|
-
const isRecurring = (_p = transaction === null || transaction === void 0 ? void 0 : transaction.isRecurring) !== null && _p !== void 0 ? _p : false;
|
|
188
|
-
let recurringBillConfigDetail = undefined;
|
|
189
|
-
let recurringBillInstances = undefined;
|
|
190
|
-
if (isRecurring && (transaction === null || transaction === void 0 ? void 0 : transaction.recurringBillConfigId) != null) {
|
|
191
|
-
const recurringBillDetail = (0, get_1.default)(recurringBillState.recurringBillDetailByConfigId, transaction === null || transaction === void 0 ? void 0 : transaction.recurringBillConfigId, undefined);
|
|
192
|
-
recurringBillConfigDetail = recurringBillDetail === null || recurringBillDetail === void 0 ? void 0 : recurringBillDetail.recurringBillConfig;
|
|
193
|
-
recurringBillInstances = recurringBillDetail === null || recurringBillDetail === void 0 ? void 0 : recurringBillDetail.recurringBillInstances;
|
|
194
|
-
}
|
|
195
187
|
return {
|
|
196
188
|
fetchState: fetchState.fetchState,
|
|
197
189
|
error: fetchState.error,
|
|
@@ -220,9 +212,6 @@ const getBillDetailView = (state, billId) => {
|
|
|
220
212
|
approvalType,
|
|
221
213
|
paymentMethodType: paymentMethodWithBillFees,
|
|
222
214
|
latestApprovedDate: (0, helpers_1.getLatestApprovalDate)(billActivities),
|
|
223
|
-
isRecurring,
|
|
224
|
-
recurringBillInstances,
|
|
225
|
-
recurringBillConfigDetail,
|
|
226
215
|
};
|
|
227
216
|
};
|
|
228
217
|
exports.getBillDetailView = getBillDetailView;
|
|
@@ -5,8 +5,7 @@ import { cancelAndDeleteBill, cancelAndDeleteBillSuccessOrFailure } from '../bil
|
|
|
5
5
|
import { removeTransactionIdFromBillTabList } from '../../billList/billListReducer';
|
|
6
6
|
import { removeBillTransaction } from '../../../../../entity/billPay/billTransaction/billTransactionReducer';
|
|
7
7
|
import { openSnackbar } from '../../../../../entity/snackbar/snackbarReducer';
|
|
8
|
-
|
|
9
|
-
export declare type ActionType = ReturnType<typeof cancelAndDeleteBill> | ReturnType<typeof removeBillTransaction> | ReturnType<typeof openSnackbar> | ReturnType<typeof cancelAndDeleteBillSuccessOrFailure> | ReturnType<typeof removeTransactionIdFromBillTabList> | ReturnType<typeof removeRecurringBill>;
|
|
8
|
+
export declare type ActionType = ReturnType<typeof cancelAndDeleteBill> | ReturnType<typeof removeBillTransaction> | ReturnType<typeof openSnackbar> | ReturnType<typeof cancelAndDeleteBillSuccessOrFailure> | ReturnType<typeof removeTransactionIdFromBillTabList>;
|
|
10
9
|
export declare const cancelAndDeleteBillEpic: (actions$: ActionsObservable<ActionType>, state$: StateObservable<RootState>, zeniAPI: ZeniAPI) => import("rxjs").Observable<{
|
|
11
10
|
payload: import("../../../../../entity/billPay/billTransaction/billTransactionPayload").BillTransactionPayload;
|
|
12
11
|
type: string;
|