@zeniai/client-epic-state 4.13.5 → 4.13.9
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/entity/account/accountPayload.d.ts +1 -1
- package/lib/entity/chargeCard/chargeCard.d.ts +16 -2
- package/lib/entity/chargeCard/chargeCard.js +18 -1
- package/lib/entity/chargeCard/chargeCardPayload.d.ts +14 -5
- package/lib/entity/chargeCard/chargeCardPayload.js +24 -7
- package/lib/entity/tenant/clearAllEpic.d.ts +4 -1
- package/lib/entity/tenant/clearAllEpic.js +6 -0
- package/lib/entity/vendor/__mocks__/vendorMock.js +0 -2
- package/lib/entity/vendor/__mocks__/vendorStateMocks.d.ts +1 -0
- package/lib/entity/vendor/__mocks__/vendorStateMocks.js +73 -4
- package/lib/entity/vendor/vendorPayload.d.ts +6 -1
- package/lib/entity/vendor/vendorPayload.js +3 -3
- package/lib/entity/vendor/vendorState.d.ts +8 -1
- package/lib/entity/vendor/vendorType.d.ts +2 -0
- package/lib/entity/vendor/vendorType.js +4 -1
- package/lib/epic.d.ts +5 -2
- package/lib/epic.js +5 -2
- package/lib/index.d.ts +15 -10
- package/lib/index.js +36 -20
- package/lib/reducer.d.ts +6 -0
- package/lib/reducer.js +6 -0
- package/lib/view/accountMappingView/__mocks__/accountMappingSelectorMock.d.ts +11 -0
- package/lib/view/accountMappingView/__mocks__/accountMappingSelectorMock.js +4607 -0
- package/lib/view/accountMappingView/accountMappingPayload.js +75 -32
- package/lib/view/accountMappingView/accountMappingReducer.js +36 -10
- package/lib/view/accountMappingView/accountMappingState.d.ts +1 -1
- package/lib/view/accountMappingView/accountMappingViewSelector.d.ts +5 -0
- package/lib/view/accountMappingView/accountMappingViewSelector.js +11 -1
- package/lib/view/accountMappingView/initializeAccountMappingViewEpic.d.ts +2 -1
- package/lib/view/accountMappingView/initializeAccountMappingViewEpic.js +2 -0
- package/lib/view/accountMappingView/saveAccountMappingViewEpic.js +6 -1
- package/lib/view/addressView/addressViewState.d.ts +1 -1
- package/lib/view/addressView/toAddressViewLocalData.d.ts +2 -0
- package/lib/view/addressView/toAddressViewLocalData.js +5 -4
- package/lib/view/expenseAutomationView/expenseAutomationViewSelector.js +1 -1
- package/lib/view/expenseAutomationView/selectorTypes/expenseAutomationViewSelectorTypes.d.ts +1 -2
- package/lib/view/expenseAutomationView/selectorTypes/expenseAutomationViewSelectorTypes.js +2 -5
- package/lib/view/settingsView/epic/updateMyProfileEpic.js +6 -4
- package/lib/view/spendManagement/chargeCards/cardUserOnboarding/cardUserOnboardingReducer.d.ts +3 -1
- package/lib/view/spendManagement/chargeCards/cardUserOnboarding/cardUserOnboardingReducer.js +6 -2
- package/lib/view/spendManagement/chargeCards/cardUserOnboarding/cardUserOnboardingSelector.d.ts +2 -3
- package/lib/view/spendManagement/chargeCards/cardUserOnboarding/cardUserOnboardingSelector.js +3 -3
- package/lib/view/spendManagement/chargeCards/cardUserOnboarding/cardUserOnboardingState.d.ts +1 -3
- package/lib/view/spendManagement/chargeCards/cardUserOnboarding/epics/initializeCardUserOnboardingLocalDataEpic.d.ts +1 -2
- package/lib/view/spendManagement/chargeCards/cardUserOnboarding/epics/initializeCardUserOnboardingLocalDataEpic.js +1 -21
- package/lib/view/spendManagement/chargeCards/cardUserOnboarding/epics/saveCardOnboardingUserDetailsEpic.js +1 -3
- package/lib/view/spendManagement/chargeCards/chargeCardDetail/chargeCardDetail.d.ts +1 -0
- package/lib/view/spendManagement/chargeCards/chargeCardDetail/chargeCardDetail.js +4 -0
- package/lib/view/spendManagement/chargeCards/chargeCardDetail/chargeCardDetailReducer.d.ts +8 -1
- package/lib/view/spendManagement/chargeCards/chargeCardDetail/chargeCardDetailReducer.js +25 -2
- package/lib/view/spendManagement/chargeCards/chargeCardDetail/chargeCardDetailSelector.d.ts +1 -0
- package/lib/view/spendManagement/chargeCards/chargeCardDetail/chargeCardDetailSelector.js +8 -4
- package/lib/view/spendManagement/chargeCards/chargeCardDetail/fetchChargeCardDetailEpic.js +2 -1
- package/lib/view/spendManagement/chargeCards/chargeCardDetail/updatePhysicalChargeCardAttemptEpic.d.ts +11 -0
- package/lib/view/spendManagement/chargeCards/chargeCardDetail/updatePhysicalChargeCardAttemptEpic.js +42 -0
- package/lib/view/spendManagement/chargeCards/chargeCardList/chargeCardList.d.ts +1 -14
- package/lib/view/spendManagement/chargeCards/chargeCardList/chargeCardList.js +2 -13
- package/lib/view/spendManagement/chargeCards/chargeCardList/chargeCardListReducer.d.ts +3 -6
- package/lib/view/spendManagement/chargeCards/chargeCardList/chargeCardListReducer.js +2 -17
- package/lib/view/spendManagement/chargeCards/chargeCardList/chargeCardListSelector.d.ts +8 -2
- package/lib/view/spendManagement/chargeCards/chargeCardList/chargeCardListSelector.js +55 -15
- package/lib/view/spendManagement/chargeCards/issueChargeCard/fetchIssueCardPageEpic.d.ts +9 -0
- package/lib/view/spendManagement/chargeCards/issueChargeCard/fetchIssueCardPageEpic.js +44 -0
- package/lib/view/spendManagement/chargeCards/{chargeCardList → issueChargeCard}/issueChargeCardEpic.d.ts +3 -2
- package/lib/view/spendManagement/chargeCards/{chargeCardList → issueChargeCard}/issueChargeCardEpic.js +35 -18
- package/lib/view/spendManagement/chargeCards/issueChargeCard/issueChargeCardReducer.d.ts +15 -0
- package/lib/view/spendManagement/chargeCards/issueChargeCard/issueChargeCardReducer.js +65 -0
- package/lib/view/spendManagement/chargeCards/issueChargeCard/issueChargeCardSelector.d.ts +22 -0
- package/lib/view/spendManagement/chargeCards/issueChargeCard/issueChargeCardSelector.js +76 -0
- package/lib/view/spendManagement/chargeCards/issueChargeCard/issueChargeCardState.d.ts +28 -0
- package/lib/view/spendManagement/chargeCards/issueChargeCard/issueChargeCardState.js +23 -0
- package/lib/view/userListView/fetchUserListByTypeEpic.js +4 -1
- package/lib/view/vendor1099TypeList/vendor1099TypeListEpic.d.ts +7 -0
- package/lib/view/vendor1099TypeList/vendor1099TypeListEpic.js +23 -0
- package/lib/view/vendor1099TypeList/vendor1099TypeListPayload.d.ts +15 -0
- package/lib/view/vendor1099TypeList/vendor1099TypeListPayload.js +2 -0
- package/lib/view/vendor1099TypeList/vendor1099TypeListReducer.d.ts +7 -0
- package/lib/view/vendor1099TypeList/vendor1099TypeListReducer.js +52 -0
- package/lib/view/vendor1099TypeList/vendor1099TypeListState.d.ts +9 -0
- package/lib/view/vendor1099TypeList/vendor1099TypeListState.js +2 -0
- package/lib/view/vendorFiling1099/__mock__/json/vendorFiling1099ListSuccess.json +4 -1
- package/lib/view/vendorFiling1099/__mock__/vendorFiling1099ListMock.js +12 -3
- package/lib/view/vendorFiling1099/__mock__/vendorFiling1099ListSelectorMock.js +2 -4
- package/lib/view/vendorFiling1099/__mock__/vendorFiling1099UploadDetailsMock.d.ts +4 -1
- package/lib/view/vendorFiling1099/vendorFiling1099List/fetchVendorsFiling1099AllEpic.d.ts +2 -2
- package/lib/view/vendorFiling1099/vendorFiling1099List/fetchVendorsFiling1099AllEpic.js +7 -7
- package/lib/view/vendorFiling1099/vendorFiling1099List/vendorFiling1099ListSelector.js +21 -10
- package/lib/view/vendorFiling1099/vendorFiling1099List/vendorFiling1099ListState.d.ts +1 -1
- package/lib/view/vendorFiling1099/vendorFiling1099List/vendorFiling1099ListState.js +1 -0
- package/package.json +1 -1
|
@@ -8,7 +8,7 @@ export interface AccountBasePayload {
|
|
|
8
8
|
account_id: string;
|
|
9
9
|
account_name: string;
|
|
10
10
|
labels: string[];
|
|
11
|
-
tax_1099_config?: Tax1099ConfigPayload;
|
|
11
|
+
tax_1099_config?: Tax1099ConfigPayload | null;
|
|
12
12
|
account_type?: string | null;
|
|
13
13
|
account_sub_type?: string | null;
|
|
14
14
|
account_description?: string | null;
|
|
@@ -20,12 +20,22 @@ export interface ChargeCard {
|
|
|
20
20
|
cardCreaterUserId: ID;
|
|
21
21
|
status: CardStatus;
|
|
22
22
|
billingAddressId: ID;
|
|
23
|
+
cardActivationAttemptHistory: CardActivationAttemptHistory[];
|
|
23
24
|
mailingAddressId?: ID;
|
|
24
25
|
cardColorCode?: string;
|
|
25
26
|
createTime?: ZeniDate;
|
|
26
27
|
updateTime?: ZeniDate;
|
|
27
28
|
inviteUpdateTime?: ZeniDate;
|
|
29
|
+
shippingAddressId?: ID;
|
|
30
|
+
shippingAddressType?: ShippingAddressType;
|
|
28
31
|
}
|
|
32
|
+
export interface CardActivationAttemptHistory {
|
|
33
|
+
user_id: ID;
|
|
34
|
+
timestamp: ZeniDate;
|
|
35
|
+
status_code: CardActivationEventCodeType;
|
|
36
|
+
}
|
|
37
|
+
export declare const toCardActivationEventCodeType: (v: string) => "failed" | "success";
|
|
38
|
+
export declare type CardActivationEventCodeType = ReturnType<typeof toCardActivationEventCodeType>;
|
|
29
39
|
export interface ChargeCardState {
|
|
30
40
|
chargeCardByID: Record<ID, ChargeCard>;
|
|
31
41
|
}
|
|
@@ -40,16 +50,20 @@ interface CardStatus {
|
|
|
40
50
|
name: string;
|
|
41
51
|
}
|
|
42
52
|
export declare const toCardStatusCodeType: (v: string) => "frozen" | "active" | "inactive" | "pending" | "stolen" | "lost" | "closed_by_customer" | "suspected_fraud" | "request_on_hold";
|
|
43
|
-
declare type CardStatusCodeType = ReturnType<typeof toCardStatusCodeType>;
|
|
53
|
+
export declare type CardStatusCodeType = ReturnType<typeof toCardStatusCodeType>;
|
|
44
54
|
export interface ValidThru {
|
|
45
55
|
month: number;
|
|
46
56
|
year: number;
|
|
47
57
|
}
|
|
48
58
|
declare const toCardCodeType: (v: string) => "business_physical_credit_card" | "business_virtual_credit_card";
|
|
49
|
-
declare type CardCodeType = ReturnType<typeof toCardCodeType>;
|
|
59
|
+
export declare type CardCodeType = ReturnType<typeof toCardCodeType>;
|
|
60
|
+
export declare const toShippingAddressType: (v: string) => "company_address" | "card_holder_personal_address" | "custom_address";
|
|
61
|
+
export declare type ShippingAddressType = ReturnType<typeof toShippingAddressType>;
|
|
50
62
|
interface CardType {
|
|
51
63
|
code: CardCodeType;
|
|
52
64
|
name: string;
|
|
53
65
|
}
|
|
54
66
|
export declare const toCardType: (payload: CardTypePayload) => CardType;
|
|
67
|
+
export declare const toCardAddressType: (v: string) => "company_address" | "custom_address" | "personal_address";
|
|
68
|
+
export declare type CardAddressType = ReturnType<typeof toCardAddressType>;
|
|
55
69
|
export {};
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.toCardType = exports.toCardStatusCodeType = exports.toCreditLimitFrequencyCodeType = void 0;
|
|
3
|
+
exports.toCardAddressType = exports.toCardType = exports.toShippingAddressType = exports.toCardStatusCodeType = exports.toCreditLimitFrequencyCodeType = exports.toCardActivationEventCodeType = void 0;
|
|
4
4
|
const stringToUnion_1 = require("../../commonStateTypes/stringToUnion");
|
|
5
|
+
const ALL_CARD_ACTIVATION_EVENT_CODE = ['failed', 'success'];
|
|
6
|
+
const toCardActivationEventCodeType = (v) => (0, stringToUnion_1.stringToUnion)(v, ALL_CARD_ACTIVATION_EVENT_CODE);
|
|
7
|
+
exports.toCardActivationEventCodeType = toCardActivationEventCodeType;
|
|
5
8
|
const ALL_CREDIT_LIMIT_FREQUENCY_TYPE_CODE = [
|
|
6
9
|
'monthly',
|
|
7
10
|
'daily',
|
|
@@ -29,8 +32,22 @@ const CARD_TYPE_CODE = [
|
|
|
29
32
|
'business_virtual_credit_card',
|
|
30
33
|
];
|
|
31
34
|
const toCardCodeType = (v) => (0, stringToUnion_1.stringToUnion)(v, CARD_TYPE_CODE);
|
|
35
|
+
const SHIPPING_ADDRESS_TYPE = [
|
|
36
|
+
'card_holder_personal_address',
|
|
37
|
+
'company_address',
|
|
38
|
+
'custom_address',
|
|
39
|
+
];
|
|
40
|
+
const toShippingAddressType = (v) => (0, stringToUnion_1.stringToUnion)(v, SHIPPING_ADDRESS_TYPE);
|
|
41
|
+
exports.toShippingAddressType = toShippingAddressType;
|
|
32
42
|
const toCardType = (payload) => ({
|
|
33
43
|
code: toCardCodeType(payload.code),
|
|
34
44
|
name: payload.name,
|
|
35
45
|
});
|
|
36
46
|
exports.toCardType = toCardType;
|
|
47
|
+
const ADDRESS_TYPE = [
|
|
48
|
+
'personal_address',
|
|
49
|
+
'company_address',
|
|
50
|
+
'custom_address',
|
|
51
|
+
];
|
|
52
|
+
const toCardAddressType = (v) => (0, stringToUnion_1.stringToUnion)(v, ADDRESS_TYPE);
|
|
53
|
+
exports.toCardAddressType = toCardAddressType;
|
|
@@ -16,18 +16,27 @@ export interface ChargeCardPayload {
|
|
|
16
16
|
currency_code: string;
|
|
17
17
|
currency_symbol: string;
|
|
18
18
|
credit_limit_frequency: AllowedValueWithCode;
|
|
19
|
-
card_provider: string;
|
|
20
|
-
provider_card_id: string;
|
|
21
|
-
provider_card_type: string;
|
|
22
|
-
last_4_digits: string;
|
|
23
|
-
expiration_date: string;
|
|
24
19
|
holder_user_id: string;
|
|
25
20
|
status: AllowedValueWithCode;
|
|
26
21
|
created_by_user_id: string;
|
|
22
|
+
card_provider: string | null;
|
|
23
|
+
provider_card_id: string | null;
|
|
24
|
+
provider_card_type: string | null;
|
|
25
|
+
last_4_digits: string | null;
|
|
26
|
+
expiration_date: string | null;
|
|
27
27
|
mailing_address_id: string | null;
|
|
28
|
+
shipping_address_id?: string | null;
|
|
29
|
+
shipping_address_type?: string | null;
|
|
28
30
|
card_color_code?: string | null;
|
|
29
31
|
create_time: string | null;
|
|
30
32
|
update_time: string | null;
|
|
31
33
|
invite_update_time?: string | null;
|
|
34
|
+
card_activation_attempt_history?: CardActivationAttemptHistoryPayload[];
|
|
35
|
+
}
|
|
36
|
+
interface CardActivationAttemptHistoryPayload {
|
|
37
|
+
user_id: string;
|
|
38
|
+
timestamp: string;
|
|
39
|
+
status_code: string;
|
|
32
40
|
}
|
|
33
41
|
export declare const mapChargeCardPayloadToChargeCard: (payload: ChargeCardPayload) => ChargeCard;
|
|
42
|
+
export {};
|
|
@@ -6,7 +6,7 @@ const timePeriod_1 = require("../../commonStateTypes/timePeriod");
|
|
|
6
6
|
const zeniDayJS_1 = require("../../zeniDayJS");
|
|
7
7
|
const chargeCard_1 = require("./chargeCard");
|
|
8
8
|
const mapChargeCardPayloadToChargeCard = (payload) => {
|
|
9
|
-
var _a, _b;
|
|
9
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
10
10
|
return ({
|
|
11
11
|
id: payload.card_id,
|
|
12
12
|
type: (0, chargeCard_1.toCardType)(payload.card_type),
|
|
@@ -19,20 +19,24 @@ const mapChargeCardPayloadToChargeCard = (payload) => {
|
|
|
19
19
|
code: (0, chargeCard_1.toCreditLimitFrequencyCodeType)(payload.credit_limit_frequency.code),
|
|
20
20
|
name: payload.credit_limit_frequency.name,
|
|
21
21
|
},
|
|
22
|
-
cardProvider: payload.card_provider,
|
|
23
|
-
cardProviderID: payload.provider_card_id,
|
|
24
|
-
accountLast4: payload.last_4_digits,
|
|
22
|
+
cardProvider: (_a = payload.card_provider) !== null && _a !== void 0 ? _a : '',
|
|
23
|
+
cardProviderID: (_b = payload.provider_card_id) !== null && _b !== void 0 ? _b : '',
|
|
24
|
+
accountLast4: (_c = payload.last_4_digits) !== null && _c !== void 0 ? _c : '',
|
|
25
25
|
validThru: toValidThru(payload.expiration_date),
|
|
26
26
|
cardHolderUserId: payload.holder_user_id,
|
|
27
27
|
cardCreaterUserId: payload.created_by_user_id,
|
|
28
|
-
cardProviderType: payload.provider_card_type,
|
|
28
|
+
cardProviderType: (_d = payload.provider_card_type) !== null && _d !== void 0 ? _d : '',
|
|
29
29
|
status: {
|
|
30
30
|
code: (0, chargeCard_1.toCardStatusCodeType)(payload.status.code),
|
|
31
31
|
name: payload.status.name,
|
|
32
32
|
},
|
|
33
33
|
billingAddressId: payload.billing_address_id,
|
|
34
|
-
mailingAddressId: (
|
|
35
|
-
|
|
34
|
+
mailingAddressId: (_e = payload.mailing_address_id) !== null && _e !== void 0 ? _e : undefined,
|
|
35
|
+
shippingAddressId: (_f = payload.shipping_address_id) !== null && _f !== void 0 ? _f : undefined,
|
|
36
|
+
shippingAddressType: payload.shipping_address_id != null
|
|
37
|
+
? (0, chargeCard_1.toShippingAddressType)(payload.shipping_address_id)
|
|
38
|
+
: undefined,
|
|
39
|
+
cardColorCode: (_g = payload.card_color_code) !== null && _g !== void 0 ? _g : undefined,
|
|
36
40
|
createTime: payload.create_time != null ? (0, zeniDayJS_1.date)(payload.create_time) : undefined,
|
|
37
41
|
updateTime: payload.update_time != null ? (0, zeniDayJS_1.date)(payload.update_time) : undefined,
|
|
38
42
|
inviteUpdateTime: payload.invite_update_time != null
|
|
@@ -40,9 +44,22 @@ const mapChargeCardPayloadToChargeCard = (payload) => {
|
|
|
40
44
|
: payload.create_time != null
|
|
41
45
|
? (0, zeniDayJS_1.date)(payload.create_time)
|
|
42
46
|
: undefined,
|
|
47
|
+
cardActivationAttemptHistory: toCardActivationAttemptHistory(payload.card_activation_attempt_history),
|
|
43
48
|
});
|
|
44
49
|
};
|
|
45
50
|
exports.mapChargeCardPayloadToChargeCard = mapChargeCardPayloadToChargeCard;
|
|
51
|
+
const toCardActivationAttemptHistory = (cardActivationAttemptHistoryPayload) => {
|
|
52
|
+
if (cardActivationAttemptHistoryPayload != null) {
|
|
53
|
+
return cardActivationAttemptHistoryPayload.map((cardActivationAttemptPayload) => ({
|
|
54
|
+
user_id: cardActivationAttemptPayload.user_id,
|
|
55
|
+
timestamp: (0, zeniDayJS_1.date)(cardActivationAttemptPayload.timestamp),
|
|
56
|
+
status_code: (0, chargeCard_1.toCardActivationEventCodeType)(cardActivationAttemptPayload.status_code),
|
|
57
|
+
}));
|
|
58
|
+
}
|
|
59
|
+
else {
|
|
60
|
+
return [];
|
|
61
|
+
}
|
|
62
|
+
};
|
|
46
63
|
const toValidThru = (expirationDate) => {
|
|
47
64
|
if (expirationDate == null) {
|
|
48
65
|
// Handle the case where expirationDate is null or undefined
|
|
@@ -168,6 +168,7 @@ import { clearCardUserOnboarding } from '../../view/spendManagement/chargeCards/
|
|
|
168
168
|
import { clearRemiBulkActionView } from '../../view/spendManagement/reimbursement/remisBulkActionView/remisBulkActionViewReducer';
|
|
169
169
|
import { clearCountryList } from '../../view/countryList/countryListReducer';
|
|
170
170
|
import { clearInternationalVerificationView } from '../../view/spendManagement/billPay/internationalWireVerification/internationalWireVerificationReducer';
|
|
171
|
+
import { clearIssueChargeCard } from '../../view/spendManagement/chargeCards/issueChargeCard/issueChargeCardReducer';
|
|
171
172
|
import { clearAllMonthEndCloseChecks } from '../../entity/monthEndCloseChecks/monthEndCloseChecksReducer';
|
|
172
173
|
import { clearAllMonthEndCloseChecksView } from '../../view/monthEndCloseChecksView/monthEndCloseChecksViewReducer';
|
|
173
174
|
import { clearExpenseAutomationView } from '../../view/expenseAutomationView/expenseAutomationViewReducer';
|
|
@@ -175,7 +176,9 @@ import { clearExpenseAutomationMissingReceiptsView } from '../../view/expenseAut
|
|
|
175
176
|
import { clearExpenseAutomationJESchedulesView } from '../../view/expenseAutomationView/reducers/jeSchedulesViewReducer';
|
|
176
177
|
import { clearExpenseAutomationTransactionsView } from '../../view/expenseAutomationView/reducers/transactionsViewReducer';
|
|
177
178
|
import { clearExpenseAutomationFluxAnalysisView } from '../../view/expenseAutomationView/reducers/fluxAnalysisViewReducer';
|
|
178
|
-
|
|
179
|
+
import { clearVendorTypeList } from '../../view/vendorTypeList/vendorTypeListReducer';
|
|
180
|
+
import { clearVendor1099TypeList } from '../../view/vendor1099TypeList/vendor1099TypeListReducer';
|
|
181
|
+
declare type clearActionTypeForViews = ReturnType<typeof clearAccountList> | ReturnType<typeof clearAccountMappingView> | ReturnType<typeof clearActivityHistory> | ReturnType<typeof clearActivityRealTimeApproval> | ReturnType<typeof clearAddressView> | 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 clearCountryList> | ReturnType<typeof clearDashboard> | ReturnType<typeof clearDepositAccountDetail> | ReturnType<typeof clearDepositAccountList> | ReturnType<typeof clearDepositAccountTransactionList> | ReturnType<typeof clearEditBillViewDetail> | ReturnType<typeof clearEditRemiViewDetail> | ReturnType<typeof clearEntityAutoCompleteResults> | ReturnType<typeof clearExpenseAutomationFluxAnalysisView> | ReturnType<typeof clearExpenseAutomationJESchedulesView> | ReturnType<typeof clearExpenseAutomationMissingReceiptsView> | ReturnType<typeof clearExpenseAutomationTransactionsView> | ReturnType<typeof clearExpenseAutomationView> | ReturnType<typeof clearFileViewList> | ReturnType<typeof clearFinanceStatement> | ReturnType<typeof clearForecastList> | 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 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 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 clearVendor1099TypeList> | ReturnType<typeof clearVendorTypeList> | 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>;
|
|
179
182
|
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 clearAllCardPayments> | ReturnType<typeof clearAllChargeCardTransactions> | ReturnType<typeof clearAllChargeCards> | 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 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 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 clearDepositAccountTransaction> | ReturnType<typeof clearSnackbar>;
|
|
180
183
|
export declare type ActionType = clearActionTypeForViews | clearActionTypeForEntities | ReturnType<typeof clearAll>;
|
|
181
184
|
export declare const clearAllEpic: (actions$: ActionsObservable<ActionType>) => import("rxjs").Observable<ActionType>;
|
|
@@ -174,6 +174,7 @@ const cardUserOnboardingReducer_1 = require("../../view/spendManagement/chargeCa
|
|
|
174
174
|
const remisBulkActionViewReducer_1 = require("../../view/spendManagement/reimbursement/remisBulkActionView/remisBulkActionViewReducer");
|
|
175
175
|
const countryListReducer_1 = require("../../view/countryList/countryListReducer");
|
|
176
176
|
const internationalWireVerificationReducer_1 = require("../../view/spendManagement/billPay/internationalWireVerification/internationalWireVerificationReducer");
|
|
177
|
+
const issueChargeCardReducer_1 = require("../../view/spendManagement/chargeCards/issueChargeCard/issueChargeCardReducer");
|
|
177
178
|
const monthEndCloseChecksReducer_1 = require("../../entity/monthEndCloseChecks/monthEndCloseChecksReducer");
|
|
178
179
|
const monthEndCloseChecksViewReducer_1 = require("../../view/monthEndCloseChecksView/monthEndCloseChecksViewReducer");
|
|
179
180
|
const expenseAutomationViewReducer_1 = require("../../view/expenseAutomationView/expenseAutomationViewReducer");
|
|
@@ -181,6 +182,8 @@ const missingReceiptsViewReducer_1 = require("../../view/expenseAutomationView/r
|
|
|
181
182
|
const jeSchedulesViewReducer_1 = require("../../view/expenseAutomationView/reducers/jeSchedulesViewReducer");
|
|
182
183
|
const transactionsViewReducer_1 = require("../../view/expenseAutomationView/reducers/transactionsViewReducer");
|
|
183
184
|
const fluxAnalysisViewReducer_1 = require("../../view/expenseAutomationView/reducers/fluxAnalysisViewReducer");
|
|
185
|
+
const vendorTypeListReducer_1 = require("../../view/vendorTypeList/vendorTypeListReducer");
|
|
186
|
+
const vendor1099TypeListReducer_1 = require("../../view/vendor1099TypeList/vendor1099TypeListReducer");
|
|
184
187
|
const clearAllEpic = (actions$) => actions$.pipe((0, operators_1.filter)(tenantReducer_1.clearAll.match), (0, operators_1.mergeMap)((action) => {
|
|
185
188
|
const { keepTenantCompanyState } = action.payload;
|
|
186
189
|
// Note: Please maintain strict alphabetical order
|
|
@@ -248,6 +251,7 @@ const clearAllEpic = (actions$) => actions$.pipe((0, operators_1.filter)(tenantR
|
|
|
248
251
|
(0, insightsCardReducer_1.clearInsightsCard)(),
|
|
249
252
|
(0, internationalWireReducer_1.clearInternationalWire)(),
|
|
250
253
|
(0, internationalWireVerificationReducer_1.clearInternationalVerificationView)(),
|
|
254
|
+
(0, issueChargeCardReducer_1.clearIssueChargeCard)(),
|
|
251
255
|
(0, merchantListReducer_1.clearMerchantList)(),
|
|
252
256
|
(0, netBurnOrIncomeReducer_1.clearNetBurnOrIncome)(),
|
|
253
257
|
(0, netBurnOrIncomeClassesViewReducer_1.clearNetBurnOrIncomeClassesView)(),
|
|
@@ -301,6 +305,8 @@ const clearAllEpic = (actions$) => actions$.pipe((0, operators_1.filter)(tenantR
|
|
|
301
305
|
(0, userRoleConfigReducer_1.clearUserRoleConfigView)(),
|
|
302
306
|
(0, vendorGlobalReviewViewReducer_1.clearVendorGlobalReviewView)(),
|
|
303
307
|
(0, vendorFirstReviewViewReducer_1.clearVendorReviewView)(),
|
|
308
|
+
(0, vendorTypeListReducer_1.clearVendorTypeList)(),
|
|
309
|
+
(0, vendor1099TypeListReducer_1.clearVendor1099TypeList)(),
|
|
304
310
|
(0, vendorViewReducer_1.clearVendorView)(),
|
|
305
311
|
(0, vendorFiling1099ListReducer_1.clearVendorsFiling1099List)(),
|
|
306
312
|
(0, vendorListReducer_1.clearVendorsList)(),
|
|
@@ -173,7 +173,6 @@ exports.vendorPaylod = [
|
|
|
173
173
|
vendor_currency_symbol: '$',
|
|
174
174
|
vendor_1099_status: 'incomplete',
|
|
175
175
|
tin: { type: 'ein', value: '550258131' },
|
|
176
|
-
vendor_1099_ytd_total: 2287,
|
|
177
176
|
},
|
|
178
177
|
{
|
|
179
178
|
vendor_id: 'vendor_j12jh1g2g12jg3jh12:2',
|
|
@@ -324,7 +323,6 @@ exports.vendorPaylod = [
|
|
|
324
323
|
vendor_currency_symbol: '$',
|
|
325
324
|
vendor_1099_status: 'incomplete',
|
|
326
325
|
tin: { type: 'ein', value: '550258131' },
|
|
327
|
-
vendor_1099_ytd_total: 2287,
|
|
328
326
|
},
|
|
329
327
|
];
|
|
330
328
|
exports.vendorStateWithVendors = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.vendorStateMock7 = exports.vendorStateMock6 = exports.vendorStateMock5 = exports.vendorStateMock4 = exports.vendorStateMock2 = exports.vendorStateMock1 = void 0;
|
|
3
|
+
exports.vendorStateMock8 = exports.vendorStateMock7 = exports.vendorStateMock6 = exports.vendorStateMock5 = exports.vendorStateMock4 = exports.vendorStateMock2 = exports.vendorStateMock1 = void 0;
|
|
4
4
|
const zeniDayJS_1 = require("../../../zeniDayJS");
|
|
5
5
|
const zeniUrl_1 = require("../../../zeniUrl");
|
|
6
6
|
exports.vendorStateMock1 = {
|
|
@@ -59,8 +59,9 @@ exports.vendorStateMock1 = {
|
|
|
59
59
|
type: 'ein',
|
|
60
60
|
value: '550258131',
|
|
61
61
|
},
|
|
62
|
-
filing1099Total: 2287,
|
|
63
62
|
filing1099W9Files: undefined,
|
|
63
|
+
filing1099Total: undefined,
|
|
64
|
+
filing1099Type: undefined,
|
|
64
65
|
w9DocumentIds: [],
|
|
65
66
|
};
|
|
66
67
|
exports.vendorStateMock2 = {
|
|
@@ -118,7 +119,6 @@ exports.vendorStateMock2 = {
|
|
|
118
119
|
type: 'ein',
|
|
119
120
|
value: '550258131',
|
|
120
121
|
},
|
|
121
|
-
filing1099Total: 2287,
|
|
122
122
|
w9DocumentIds: [],
|
|
123
123
|
};
|
|
124
124
|
exports.vendorStateMock4 = {
|
|
@@ -177,7 +177,12 @@ exports.vendorStateMock4 = {
|
|
|
177
177
|
preferredInternationalTransferFeeBearerPaymentMethod: undefined,
|
|
178
178
|
filing1099Status: undefined,
|
|
179
179
|
filing1099Tin: undefined,
|
|
180
|
-
|
|
180
|
+
isINTType: false,
|
|
181
|
+
isMISCType: false,
|
|
182
|
+
isNECType: false,
|
|
183
|
+
filing1099INTTotal: undefined,
|
|
184
|
+
filing1099MISCTotal: undefined,
|
|
185
|
+
filing1099NECTotal: undefined,
|
|
181
186
|
filing1099W9Files: [],
|
|
182
187
|
filing1099TaxClassification: 'Individual',
|
|
183
188
|
w9DocumentIds: [],
|
|
@@ -252,6 +257,7 @@ exports.vendorStateMock5 = {
|
|
|
252
257
|
type: 'ein',
|
|
253
258
|
value: '550258131',
|
|
254
259
|
},
|
|
260
|
+
filing1099Type: 'int',
|
|
255
261
|
filing1099Total: 2287,
|
|
256
262
|
w9DocumentIds: [],
|
|
257
263
|
};
|
|
@@ -313,6 +319,7 @@ exports.vendorStateMock6 = {
|
|
|
313
319
|
type: 'ein',
|
|
314
320
|
value: '550258131',
|
|
315
321
|
},
|
|
322
|
+
filing1099Type: 'int',
|
|
316
323
|
filing1099Total: 2287,
|
|
317
324
|
w9DocumentIds: [],
|
|
318
325
|
};
|
|
@@ -350,3 +357,65 @@ exports.vendorStateMock7 = {
|
|
|
350
357
|
recommendations: [],
|
|
351
358
|
transactionAttachments: [],
|
|
352
359
|
};
|
|
360
|
+
exports.vendorStateMock8 = {
|
|
361
|
+
recommendations: [],
|
|
362
|
+
transactionAttachments: [],
|
|
363
|
+
id: 'vendor_j12jh1g2g12jg3jh12:12',
|
|
364
|
+
name: 'Sample Vendor 1',
|
|
365
|
+
legalName: 'Sample Vendor 1',
|
|
366
|
+
qboId: '12',
|
|
367
|
+
title: '',
|
|
368
|
+
suffix: '',
|
|
369
|
+
firstName: 'Sample',
|
|
370
|
+
middleName: '',
|
|
371
|
+
lastName: 'Vendor',
|
|
372
|
+
vendorType: 'individual',
|
|
373
|
+
isDeleted: false,
|
|
374
|
+
yearToDateSpend: undefined,
|
|
375
|
+
last30DaysSpend: undefined,
|
|
376
|
+
last90DaysSpend: undefined,
|
|
377
|
+
lastMonthSpend: 0,
|
|
378
|
+
last6MonthsSpend: 0,
|
|
379
|
+
last3MonthsSpend: 0,
|
|
380
|
+
last12MonthsSpend: 0,
|
|
381
|
+
previousYearSpend: 0,
|
|
382
|
+
createTime: (0, zeniDayJS_1.date)('2022-01-24T00:29:37.057Z'),
|
|
383
|
+
updateTime: (0, zeniDayJS_1.date)('2022-01-24T00:29:37.057Z'),
|
|
384
|
+
syncToken: '1',
|
|
385
|
+
email: '',
|
|
386
|
+
phone: '',
|
|
387
|
+
websiteUrl: '',
|
|
388
|
+
currencyCode: 'USD',
|
|
389
|
+
currencySymbol: '$',
|
|
390
|
+
countryCode: 'US',
|
|
391
|
+
balance: 0,
|
|
392
|
+
accountId: 'Travel Meals',
|
|
393
|
+
classId: 'class_e0f33254-2651-4d5c-9d57-2611788265ca',
|
|
394
|
+
billingAddressId: 'a_e3e99a8b-d400-42ac-ae09-e655bff1af97',
|
|
395
|
+
addressId: 'a_e3e99a8b-d400-42ac-ae09-e655bff1af97',
|
|
396
|
+
bankAccountIds: [
|
|
397
|
+
'bank_adg67-asnds-a6sad-sdfgf8',
|
|
398
|
+
'bank_asghj-hags23-hgfjh-g3asfas',
|
|
399
|
+
],
|
|
400
|
+
contactIds: [
|
|
401
|
+
'contacts_f3881db1-35c0-4699-891c-6cca724e75d6',
|
|
402
|
+
'contacts_6856c987-17ff-44a4-aad3-eef4b7696554',
|
|
403
|
+
],
|
|
404
|
+
matchScore: 0,
|
|
405
|
+
isVendor1099: false,
|
|
406
|
+
documentIds: [],
|
|
407
|
+
vendorCurrencySymbol: '$',
|
|
408
|
+
vendorCurrencyCode: 'USD',
|
|
409
|
+
paymentInstrumentIds: ['pay_inst_f3fc9b06-694a-4609-a710-b0e1d4de72d3'],
|
|
410
|
+
preferredInternationalTransferFeeBearerPaymentMethod: undefined,
|
|
411
|
+
filing1099Status: 'incomplete',
|
|
412
|
+
filing1099Tin: {
|
|
413
|
+
type: 'ein',
|
|
414
|
+
value: '550258131',
|
|
415
|
+
},
|
|
416
|
+
isINTType: true,
|
|
417
|
+
filing1099W9Files: undefined,
|
|
418
|
+
filing1099Total: undefined,
|
|
419
|
+
filing1099Type: 'int',
|
|
420
|
+
w9DocumentIds: [],
|
|
421
|
+
};
|
|
@@ -76,7 +76,12 @@ export interface VendorPayload extends VendorBasePayload, SpendPayload {
|
|
|
76
76
|
w9_document_ids?: ID[];
|
|
77
77
|
vendor_1099_status?: string;
|
|
78
78
|
tin?: Filing1099TinTypePayload;
|
|
79
|
-
|
|
79
|
+
is_type_int?: boolean;
|
|
80
|
+
is_type_misc?: boolean;
|
|
81
|
+
is_type_nec?: boolean;
|
|
82
|
+
vendor_1099_ytd_total_int?: number;
|
|
83
|
+
vendor_1099_ytd_total_misc?: number;
|
|
84
|
+
vendor_1099_ytd_total_nec?: number;
|
|
80
85
|
legal_name?: string;
|
|
81
86
|
}
|
|
82
87
|
interface Filing1099TinTypePayload {
|
|
@@ -30,7 +30,7 @@ const toVendorBasePayload = (tranVendor, vendorUpdates) => {
|
|
|
30
30
|
};
|
|
31
31
|
exports.toVendorBasePayload = toVendorBasePayload;
|
|
32
32
|
const mapVendorPayloadToVendor = (payload) => {
|
|
33
|
-
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, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14;
|
|
33
|
+
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, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17;
|
|
34
34
|
return Object.assign(Object.assign({}, (0, exports.mapVendorBasePayloadToVendorBase)(payload)), { legalName: payload.legal_name, qboId: payload.qbo_id, title: (_a = payload.title) !== null && _a !== void 0 ? _a : '', suffix: (_b = payload.suffix) !== null && _b !== void 0 ? _b : '', firstName: (_d = (_c = payload.first_name) === null || _c === void 0 ? void 0 : _c.trim()) !== null && _d !== void 0 ? _d : '', middleName: (_f = (_e = payload.middle_name) === null || _e === void 0 ? void 0 : _e.trim()) !== null && _f !== void 0 ? _f : '', lastName: (_h = (_g = payload.last_name) === null || _g === void 0 ? void 0 : _g.trim()) !== null && _h !== void 0 ? _h : '', vendorType: (_j = payload.vendor_type) !== null && _j !== void 0 ? _j : '', isDeleted: (_k = payload.is_deleted) !== null && _k !== void 0 ? _k : false, createTime: payload.create_time != null ? (0, zeniDayJS_1.date)(payload.create_time) : (0, zeniDayJS_1.dateNow)(), updateTime: payload.update_time != null ? (0, zeniDayJS_1.date)(payload.update_time) : (0, zeniDayJS_1.dateNow)(), syncToken: (_l = payload.sync_token) !== null && _l !== void 0 ? _l : '', email: (_o = (_m = payload.email) === null || _m === void 0 ? void 0 : _m.trim()) !== null && _o !== void 0 ? _o : '', phone: (_p = payload.phone) !== null && _p !== void 0 ? _p : '', websiteUrl: (_q = payload.website_url) !== null && _q !== void 0 ? _q : '', currencyCode: payload.currency_code, currencySymbol: payload.currency_symbol, vendorCurrencyCode: (_r = payload.vendor_currency_code) !== null && _r !== void 0 ? _r : payload.currency_code, vendorCurrencySymbol: (_s = payload.vendor_currency_symbol) !== null && _s !== void 0 ? _s : payload.currency_symbol, countryCode: (_t = payload.country_code) !== null && _t !== void 0 ? _t : undefined, accountId: (_v = (_u = payload.account) === null || _u === void 0 ? void 0 : _u.account_id) !== null && _v !== void 0 ? _v : undefined, classId: (_x = (_w = payload.accounting_class) === null || _w === void 0 ? void 0 : _w.accounting_class_id) !== null && _x !== void 0 ? _x : undefined, contactIds: (_z = (_y = payload.contacts) === null || _y === void 0 ? void 0 : _y.map((contact) => contact.contact_id)) !== null && _z !== void 0 ? _z : [], billingAddressId: payload.billing_address != null
|
|
35
35
|
? payload.billing_address.address_id
|
|
36
36
|
: undefined, addressId: payload.address != null ? payload.address.address_id : undefined, shippingAddressId: payload.shipping_address != null
|
|
@@ -49,8 +49,8 @@ const mapVendorPayloadToVendor = (payload) => {
|
|
|
49
49
|
type: payload.tin.type != null ? (0, vendorType_1.toTinType)(payload.tin.type) : null,
|
|
50
50
|
value: (_13 = (_12 = payload.tin) === null || _12 === void 0 ? void 0 : _12.value) !== null && _13 !== void 0 ? _13 : null,
|
|
51
51
|
}
|
|
52
|
-
: undefined,
|
|
52
|
+
: undefined, isINTType: (_14 = payload.is_type_int) !== null && _14 !== void 0 ? _14 : false, isMISCType: (_15 = payload.is_type_misc) !== null && _15 !== void 0 ? _15 : false, isNECType: (_16 = payload.is_type_nec) !== null && _16 !== void 0 ? _16 : false, filing1099INTTotal: payload.vendor_1099_ytd_total_int, filing1099MISCTotal: payload.vendor_1099_ytd_total_misc, filing1099NECTotal: payload.vendor_1099_ytd_total_nec, filing1099W9Files: payload.w9_documents != null
|
|
53
53
|
? payload.w9_documents.map((filePayload) => (0, attachmentPayload_1.mapFileToAttachment)(filePayload))
|
|
54
|
-
: [], filing1099TaxClassification: (
|
|
54
|
+
: [], filing1099TaxClassification: (_17 = payload.vendor_type) !== null && _17 !== void 0 ? _17 : '' });
|
|
55
55
|
};
|
|
56
56
|
exports.mapVendorPayloadToVendor = mapVendorPayloadToVendor;
|
|
@@ -5,7 +5,7 @@ import { ZeniDate } from '../../zeniDayJS';
|
|
|
5
5
|
import { ZeniUrl as Url } from '../../zeniUrl';
|
|
6
6
|
import { InternationalTransferFeeBearerPaymentMethod } from '../billPay/billTransaction/billTransactionState';
|
|
7
7
|
import { Attachment } from '../transaction/stateTypes/attachment';
|
|
8
|
-
import { Filing1099TinType } from './vendorType';
|
|
8
|
+
import { Filing1099TinType, Filing1099Type } from './vendorType';
|
|
9
9
|
export interface VendorBase {
|
|
10
10
|
id: ID;
|
|
11
11
|
name: string;
|
|
@@ -63,7 +63,14 @@ export interface Vendor extends VendorBase {
|
|
|
63
63
|
filing1099Status?: CompletionStatusType;
|
|
64
64
|
filing1099Tin?: Filing1099TinType;
|
|
65
65
|
filing1099W9Files?: Attachment[];
|
|
66
|
+
filing1099Type?: Filing1099Type;
|
|
66
67
|
filing1099Total?: number;
|
|
68
|
+
isINTType?: boolean;
|
|
69
|
+
isMISCType?: boolean;
|
|
70
|
+
isNECType?: boolean;
|
|
71
|
+
filing1099INTTotal?: number;
|
|
72
|
+
filing1099MISCTotal?: number;
|
|
73
|
+
filing1099NECTotal?: number;
|
|
67
74
|
filing1099TaxClassification?: string;
|
|
68
75
|
w9DocumentIds?: ID[];
|
|
69
76
|
legalName?: string;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
export declare const toTinType: (v: string) => "ein" | "ssn";
|
|
2
2
|
declare type TinType = ReturnType<typeof toTinType>;
|
|
3
|
+
export declare const toFiling1099Type: (v: string) => "int" | "misc" | "nec";
|
|
4
|
+
export declare type Filing1099Type = ReturnType<typeof toFiling1099Type>;
|
|
3
5
|
export interface Filing1099TinType {
|
|
4
6
|
type: TinType | null;
|
|
5
7
|
value: string | null;
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.toTinType = void 0;
|
|
3
|
+
exports.toFiling1099Type = exports.toTinType = void 0;
|
|
4
4
|
const stringToUnion_1 = require("../../commonStateTypes/stringToUnion");
|
|
5
5
|
const TIN_TYPES = ['ein', 'ssn'];
|
|
6
6
|
const toTinType = (v) => (0, stringToUnion_1.stringToUnion)(v, TIN_TYPES);
|
|
7
7
|
exports.toTinType = toTinType;
|
|
8
|
+
const FILING_1099_TYPES = ['int', 'misc', 'nec'];
|
|
9
|
+
const toFiling1099Type = (v) => (0, stringToUnion_1.stringToUnion)(v, FILING_1099_TYPES);
|
|
10
|
+
exports.toFiling1099Type = toFiling1099Type;
|
package/lib/epic.d.ts
CHANGED
|
@@ -284,6 +284,7 @@ import { ActionType as FetchZeniAccStatePageActionType } from './view/zeniAccSta
|
|
|
284
284
|
import { ActionType as SaveTranactionVendorActionType } from './view/commonVendorView/transactionVendorView/epics/saveTransactionVendorEpic';
|
|
285
285
|
import { ActionType as ResetTransactionVendorLocalDataActionType } from './view/commonVendorView/transactionVendorView/epics/resetTransactionVendorLocalDataEpic';
|
|
286
286
|
import { ActionType as FetchVendorTypeListActionType } from './view/vendorTypeList/vendorTypeListEpic';
|
|
287
|
+
import { ActionType as FetchVendor1099TypeListActionType } from './view/vendor1099TypeList/vendor1099TypeListEpic';
|
|
287
288
|
import { ActionType as FetchMagicLinkTenantActionType } from './view/spendManagement/billPay/magicLinkView/epics/fetchMagicLinkTenantEpic';
|
|
288
289
|
import { ActionType as FetchMagicLinkBillActionType } from './view/spendManagement/billPay/magicLinkView/epics/fetchMagicLinkBillEpic';
|
|
289
290
|
import { ActionType as SaveMagicLinkBankAccountActionType } from './view/spendManagement/billPay/magicLinkView/epics/saveMagicLinkBankAccountEpic';
|
|
@@ -320,12 +321,14 @@ import { ActionType as RevokeCardInviteActionType } from './view/spendManagement
|
|
|
320
321
|
import { ActionType as FetchCashbackDetailActionType } from './view/spendManagement/chargeCards/cashbackDetail/fetchCashbackDetailEpic';
|
|
321
322
|
import { ActionType as FetchCreditAccountActionType } from './view/spendManagement/chargeCards/chargeCardList/fetchCreditAccountEpic';
|
|
322
323
|
import { ActionType as FetchChargeCardListPageActionType } from './view/spendManagement/chargeCards/chargeCardList/fetchChargeCardListPageEpic';
|
|
323
|
-
import { ActionType as IssueChargeCardActionType } from './view/spendManagement/chargeCards/
|
|
324
|
+
import { ActionType as IssueChargeCardActionType } from './view/spendManagement/chargeCards/issueChargeCard/issueChargeCardEpic';
|
|
325
|
+
import { ActionType as FetchIssueCardPageActionType } from './view/spendManagement/chargeCards/issueChargeCard/fetchIssueCardPageEpic';
|
|
324
326
|
import { ActionType as FetchChargeCardConfigActionType } from './view/spendManagement/chargeCards/chargeCardConfig/fetchChargeCardConfigEpic';
|
|
325
327
|
import { ActionType as AcceptChargeCardTermsActionType } from './view/spendManagement/chargeCards/chargeCardSetUp/epic/acceptChargeCardTermsEpic';
|
|
326
328
|
import { ActionType as FetchChargeCardSetupViewActionType } from './view/spendManagement/chargeCards/chargeCardSetUp/epic/fetchChargeCardSetupViewEpic';
|
|
327
329
|
import { ActionType as FetchChargeCardDetailActionType } from './view/spendManagement/chargeCards/chargeCardDetail/fetchChargeCardDetailEpic';
|
|
328
330
|
import { ActionType as UpdateChargeCardDetailActionType } from './view/spendManagement/chargeCards/chargeCardDetail/updateChargeCardDetailEpic';
|
|
331
|
+
import { ActionType as UpdatePhysicalChargeCardAttemptActionType } from './view/spendManagement/chargeCards/chargeCardDetail/updatePhysicalChargeCardAttemptEpic';
|
|
329
332
|
import { ActionType as FetchChargeCardTransactionAttachmentsActionType } from './view/spendManagement/chargeCards/chargeCardDetail/fetchChargeCardTransactionAttachmentsEpic';
|
|
330
333
|
import { ActionType as FetchChargeCardDetailPageActionType } from './view/spendManagement/chargeCards/chargeCardDetail/fetchChargeCardDetailPageEpic';
|
|
331
334
|
import { ActionType as FetchChargeCardTransactionListActionType } from './view/spendManagement/chargeCards/chargeCardDetail/fetchChargeCardTransactionListEpic';
|
|
@@ -430,6 +433,6 @@ import { ActionType as FetchIntlVerificationFormActionType } from './view/spendM
|
|
|
430
433
|
import { ActionType as SubmitIntlVerificationActionType } from './view/spendManagement/billPay/internationalWireVerification/epics/submitIntlVerificationEpic';
|
|
431
434
|
import { ActionType as InitializeIntlVerificationFormEpicActionType } from './view/spendManagement/billPay/internationalWireVerification/epics/initializeIntlVerificationFormEpic';
|
|
432
435
|
/** Root action type is union of all the epic action type */
|
|
433
|
-
export declare type RootActionType = AcceptBillPayTermsActionType | AcceptBillPayUpdatedTermsActionType | AcceptChargeCardTermsActionType | AcceptEmployeeRemiTermsActionType | AcceptRemiTermsActionType | AcceptZeniAccountTermsActionType | AddCardPaymentSourceActionType | ApproveOrRejectBillActionType | ApproveOrRejectBillsBulkActionActionType | ApproveOrRejectRemiActionType | ApproveOrRejectRemisBulkActionActionType | ApproveVendorGlobalReviewActionType | ArchiveTaskActionType | BalanceSheetActionType | BalanceSheetForTimeframeActionType | BulkUpdateTasksListActionType | CancelAndDeleteBillActionType | CancelAndDeleteRemiActionType | CancelOrDeleteBillsBulkActionActionType | CancelOrDeleteRemisBulkActionActionType | CancelScheduleAccruedJournalEntryActionType | CardBalanceActionType | CashBalanceActionType | CashFlowActionType | CashFlowForTimeframeActionType | CashInCashOutActionType | CashPositionActionType | ChangeZeniPersonRolesActionType | CheckDepositActionType | ClearAllActionType | CombinedStatementActionType | CompanyManagementSavePendingUpdatesActionType | CompanyManagementSaveUpdatesActionType | ConfirmCardSetupIntentActionType | CreateAddressActionType | CreateBankAccountActionType | CreateCardSetupIntentActionType | CreateCheckingAccountActionType | CreateCompanyAddressActionType | CreateCompanyOfficersActionType | CreateCompanyUserAddressActionType | CreateGlobalMerchantActionType | CreateInternationalBankAccountActionType | CreateNewSchedulesAccruedActionType | CreateNewSchedulesActionType | CreateNewTaskGroupActionType | CreatePaymentInstrumentActionType | CreateTagActionType | CreateUserBankAccountActionType | CurrencyConversionActionType | DeleteBankAccountActionType | DeleteBillActionType | DeleteBillPayApprovalRuleActionType | DeleteFileActionType | DeleteFileListActionType | DeleteInternationalBankAccountActionType | DeletePaymentInstrumentActionType | DeletePersonActionType | DeleteRemiActionType | DeleteRemiApprovalRuleActionType | DeleteScheduleAccruedDetailActionType | DeleteScheduleDetailActionType | DeleteTagActionType | DeleteTaskActionType | DeleteTaskGroupActionType | DeleteUserBankAccountActionType | DepositAccountTransactionListActionType | DragNDropTasksActionType | EnableSetupActionType | EstablishOnboardingPlaidConnectionActionType | EstablishPlaidConnectionActionType | FetchAccountHistoryActionType | FetchAccountListActionType | FetchAccountListForAccountTypesActionType | FetchAccruedScheduleListActionType | FetchActiveTenantActionType | FetchAddressActionType | FetchAllCockpitViewsActionType | FetchAllExpenseAutomationTabsActionType | FetchAllPeopleRequiredActionType | FetchAllTagsActionType | FetchAllTaskGroupsActionType | FetchAllTenantsActionType | FetchApAgingActionType | FetchApAgingDetailActionType | FetchArAgingActionType | FetchArAgingDetailActionType | FetchAuditReportGroupViewActionType | FetchAuditRuleGroupViewActionType | FetchBankAccountsListActionType | FetchBankConnectionsViewActionType | FetchBankCountryNameByIbanActionType | FetchBankNameByRoutingActionType | FetchBankNameBySwiftActionType | FetchBillAndInitializeLocalStoreActionType | FetchBillDetailActionType | FetchBillingAccountsListActionType | FetchBillListActionType | FetchBillListPerTabActionType | FetchBillPayApproversDetailsActionType | FetchBillPayApproversListActionType | FetchBillPayCardActionType | FetchBillPayConfigActionType | FetchBillPaySetupApproverViewActionType | FetchBillPaySetupViewActionType | FetchCashbackDetailActionType | FetchChargeCardConfigActionType | FetchChargeCardDetailActionType | FetchChargeCardDetailPageActionType | FetchChargeCardListActionType | FetchChargeCardListPageActionType | FetchChargeCardSetupViewActionType | FetchChargeCardStatementListActionType | FetchChargeCardTransactionAttachmentsActionType | FetchChargeCardTransactionListActionType | FetchClassListActionType | FetchCollaborationAuthTokenActionType | FetchCompanyConfigActionType | FetchCompanyHealthMetricViewEpicActionType | FetchCompanyManagementActionType | FetchCompanyMetaDataActionType | FetchCompanyMonthEndReportHistoricDataActionType | FetchCompanyMonthEndReportHistoricDatesActionType | FetchCompanyMonthEndReportTemplatesActionType | FetchCompanyMonthEndReportViewActionType | FetchCompanyOnboardingViewActionType | FetchCompanyPassportViewActionType | FetchCompanyPortfolioActionType | FetchCompanyTaskManagerViewActionType | FetchCountryListActionType | FetchCreditAccountActionType | FetchCurrencyConversionValueActionType | FetchDashboardActionType | FetchDepositAccountActionType | FetchDepositAccountDetailActionType | FetchDepositAccountListActionType | FetchDepositAccStatementListActionType | FetchDownloadSchedulesActionType | FetchDuplicateBillActionType | FetchDuplicateReimbursementEpicActionType | FetchEditBillDetailPageActionType | FetchEditRemiDetailPageActionType | FetchEligibleActionsForBillActionType | FetchEntityAutoCompleteActionType | FetchEntityHistoryActionType | FetchEntityRecommendationsByTransactionIdActionType | FetchExcludedResourcesActionType | FetchExpenseAutomationMissingReceiptsActionType | FetchExpenseTrendActionType | FetchExternalConnectionsActionType | FetchFileActionType | FetchFileListActionType | FetchForecastListActionType | FetchGlobalMerchantAutoCompleteActionType | FetchGlobalMerchantRecommendationActionType | FetchIncomeTrendActionType | FetchInternationalWireDynamicFormActionType | FetchIntlVerificationFormActionType | FetchJEScheduleActionType | FetchJESchedulePageActionType | FetchMagicLinkBankNameByRoutingActionType | FetchMagicLinkBankNameBySwiftActionType | FetchMagicLinkBillActionType | FetchMagicLinkTenantActionType | FetchManagementActionType | FetchMerchantListActionType | FetchMonthEndCloseChecksActionType | FetchMyProfileActionType | FetchMyProfileViewActionType | FetchNationalityCountryListActionType | FetchNetBurnOrIncomeStoryCardActionType | FetchNetBurnOrIncomeWithForecastActionType | FetchNotificationSettingsActionType | FetchNotificationSettingsViewActionType | FetchNotificationUnreadCountActionType | FetchNotificationViewActionType | FetchOnboardingActionType | FetchOnboardingCompletedCompaniesActionType | FetchOnboardingCustomerSetupViewActionType | FetchOnboardingCustomerViewActionType | FetchOpExWithForecastActionType | FetchOwnerListActionType | FetchParentSubsidiaryManagementActionType | FetchPaymentAccountBalanceActionType | FetchPaymentAccountListActionType | FetchPaymentSourcesActionType | FetchPortfolioActionType | FetchPreviousBillsActionType | FetchRecommendationByEntityIdActionType | FetchRecommendationByEntityNameActionType | FetchRecommendationsAndUpdateMerchantRecommendationsActionType | FetchRecommendationsAndUpdateVendorRecommendationsActionType | FetchRecommendedBillExpenseActionType | FetchReferralsActionType | FetchReimbursementCardActionType | FetchReimbursementConfigActionType | FetchRemiAndInitializeLocalStoreActionType | FetchRemiApproversDetailsActionType | FetchRemiApproversListActionType | FetchRemiDetailActionType | FetchRemiListActionType | FetchRemiListPerTabActionType | FetchRemiSetupApproverViewActionType | FetchRemiSetupViewActionType | FetchRevenueWithForecastActionType | FetchReviewCompanyActionType | FetchReviewTransferDetailActionType | FetchRewardsPlanActionType | FetchScheduleAccruedDetailsActionType | FetchScheduleAccruedDetailsPageActionType | FetchScheduleDetailsActionType | FetchScheduleDetailsPageActionType | FetchScheduleListActionType | FetchSchedulesListActionType | FetchSubscriptionActionType | FetchSubscriptionAddOnsActionType | FetchSubscriptionCouponsActionType | FetchSubscriptionCreateEstimateActionType | FetchSubscriptionDetailsActionType | FetchSubscriptionListActionType | FetchSubscriptionPlansActionType | FetchSubscriptionSummaryForTenantActionType | FetchSubscriptionUpdateEstimateActionType | FetchTaskDetailActionType | FetchTaskDetailPageActionType | FetchTaskHistoryActionType | FetchTaskListActionType | FetchTaskListPageActionType | FetchTasksCardActionType | FetchTransactionDetailActionType | FetchTransactionListByAccountActionType | FetchTransactionListByClassActionType | FetchTransactionListByEntityActionType | FetchTransactionsForEntityActionType | FetchTransactionsListByCategoryTypeActionType | FetchTrendForEntityActionType | FetchUserDetailActionType | FetchUserFinancialAccountActionType | FetchUserListByTypeActionType | FetchUserRoleConfigActionType | FetchVendorActionType | FetchVendorAndUpdateBillLocalDataActionType | FetchVendorByNameAndParseInvoiceActionType | FetchVendorDetailsActionType | FetchVendorFirstReviewAttachmentsActionType | FetchVendorFirstReviewViewActionType | FetchVendorGlobalReviewViewActionType | FetchVendorsActionType | FetchVendorsFiling1099ActionType | FetchVendorsFiling1099AllActionType | FetchVendorsFiling1099DownloadActionType | FetchVendorTabViewActionType | FetchVendorTypeListActionType | FetchZeniAccountListPageActionType | FetchZeniAccountsConfigActionType | FetchZeniAccountSetupViewActionType | FetchZeniAccountsPromoCardActionType | FetchZeniAccStatePageActionType | FetchZeniUsersActionType | GetOnboardingEmailGroupActionType | GetOnboardingPlaidLinkTokenActionType | GetPaymentAccountsActionType | GetPlaidLinkTokenActionType | IgnoreRecommendedJeScheduleActionType | ImproveUsingZeniGPTActionType | InitializeAccountMappingViewActionType | InitializeBillPaySetupApproverViewUpdateDataActionType | InitializeBillToLocalStoreActionType | InitializeCardUserOnboardingLocalDataActionType | InitializeCompanyHealthMetricViewLocalDataEpicActionType | InitializeEditPersonActionType | InitializeInternationalWireLocalDataActionType | InitializeIntlVerificationFormEpicActionType | InitializeJeScheduleLocalDataActionType | InitializeMyProfileLocalDataActionType | InitializeOnboardingCustomerViewUpdateDataActionType | InitializeRemiSetupApproverViewUpdateDataActionType | InitializeRemiToLocalStoreActionType | InitializeScheduleAccruedDetailLocalDataActionType | InitializeScheduleDetailLocalDataActionType | InitializeSubscriptionLocalDataActionType | InitializeTaskToLocalStoreActionType | InitializeTransactionDetailLocalDataActionType | InitializeVendorAddressActionType | InsightsCardActionType | InvitePeopleActionType | InviteZeniPeopleActionType | IssueChargeCardActionType | MarkAsCompleteScheduleDetailActionType | MarkTransactionAsNotMiscategorizedActionType | NetBurnOrIncomeActionType | NetBurnOrIncomeClassesViewActionType | NetBurnOrIncomeForTimeframeActionType | NetBurnOrIncomeForTimeframeClassesViewActionType | OpExActionType | OpExByVendorReportActionType | OpExByVendorReportForTimeframeActionType | OpExByVendorReportSummaryActionType | OpExClassesViewActionType | OpExForTimeframeClassesViewActionType | OpExForTimeframeViewActionType | ParallelFetchAccountTransactionListActionType | ParallelFetchClassTransactionListActionType | ParallelFetchEntityTransactionListActionType | ParallelFetchTransactionListByCategoryTypeActionType | ParseInvoiceToBillActionType | ParseReceiptsToRemiActionType | PeopleActionType | PeoplePageActionType | PeopleSaveUpdatesActionType | ProfitAndLossActionType | ProfitAndLossClassesViewActionType | ProfitAndLossForTimeframeActionType | ProfitAndLossForTimeframeClassesViewActionType | PushToastNotificationActionType | RecommendationForAccountTypeActionType | RefreshExpenseAutomationCurrentTabActionType | RefreshIntegrationsDataActionType | RejectVendorGlobalReviewActionType | ResendCardInviteActionType | ResendInviteActionType | ResendOtpActionType | ResendReferralInviteActionType | ResetTransactionVendorLocalDataActionType | ResetVendorDetailLocalDataActionType | RetryBankAccountConnectionActionType | RetryBankAccountConnectionForOnboardingActionType | RetryJeScheduleActionType | RetryOrRefundBillActionType | RevenueActionType | RevenueClassesViewActionType | RevenueForTimeframeClassesViewActionType | RevenueForTimeframeViewActionType | ReviewDraftBillsBulkActionActionTye | ReviewDraftRemisBulkActionActionTye | RevokeCardInviteActionType | SaveAccountMappingViewActionType | SaveAddressActionType | SaveBillDetailActionType | SaveBillPaySetupApproverViewUpdatesActionType | saveCardOnboardingUserDetailsActionType | SaveCompanyHealthMetricByIdEpicActionType | SaveCompanyMonthEndReportActionType | SaveCompanyPassportDetailsActionType | SaveExternalConnectionActionType | SaveMagicLinkBankAccountActionType | SaveNotificationSettingsEpicActionType | SaveOnboardingCustomerCompletedStatusActionType | SaveOnboardingCustomerNotesActionType | SaveOnboardingCustomerViewUpdatesActionType | SaveRealTimeApprovalActionType | SaveReasonForAuditRuleActionType | SaveRemiDetailActionType | SaveRemiSetupApproverViewUpdatesActionType | SaveScheduleAccruedDetailsActionType | SaveScheduleDetailsActionType | SaveSubscriptionNotesUpdatesActionType | SaveSubscriptionUpdatesActionType | SaveTaskDetailActionType | SaveTranactionVendorActionType | SaveTransactionDetailActionType | SaveVendorActionType | SaveVendorDetailsViewActionType | SaveVendorFirstReviewViewActionType | SendCompanyMonthEndReportActionType | SendOnboardingCustomerViewInviteActionType | SendOtpActionType | SendReferralInviteActionType | SignInActionType | SignOutActionType | StatementCloseDayActionType | SubmitDraftBillsBulkActionActionType | SubmitDraftRemisBulkActionActionType | SubmitIntlVerificationActionType | ToggleReportUIOptionForecastModeActionType | TopExActionType | TransferMoneyActionType | UnlinkPaymentAccountActionType | UpdateAccruedJESchedulesActionType | UpdateAddressActionType | UpdateAmountsInScheduleAccruedDetailActionType | UpdateAmountsInScheduleDetailActionType | UpdateBusinessVerificationDetailsActionType | UpdateChargeCardDetailActionType | UpdateCompanyDetailsActionType | UpdateCompanyOfficerActionType | UpdateCompanyPassportLocalStoreDataActionType | UpdateDepositAccountActionType | UpdateDynamicFormActionType | UpdateFileNameActionType | UpdateFilesMetadataActionType | UpdateJESchedulesActionType | UpdateMappedCashAccountActionType | UpdateMileageDetailsActionType | UpdateMyProfileActionType | UpdateNetBurnOrIncomeStoryCardSettingsActionType | UpdateNotificationViewAllNotificationsStatusActionType | UpdateNotificationViewNotificationStatusActionType | UpdateOnboardingCustomerViewActionType | UpdateOnboardingCustomerViewCompleteStatusActionType | UpdateOnboardingCustomerViewLocalStoreDataActionType | UpdateOnboardingPaymentAccountLoginStatusActionType | UpdateOnboardingPaymentAccountStatusActionType | UpdatePaymentAccountActionType | UpdatePaymentAccountLoginStatusActionType | UpdatePaymentAccountStatusActionType | UpdatePrimaryContactActionType | UpdatePrimaryFundingAccountActionType | UpdateReferViewedActionType | UpdateRemiSetupViewLocalStoreDataActionType | UpdateReportUIOptionCOABalancesRangeActionType | UpdateReportUIOptionIsCompareModeActionType | UpdateReportUIOptionIsCompareModeOnActionType | UpdateReportUIOptionThisPeriodActionType | UpdateReportUIOptionTimeFrameActionType | UpdateSectionAccountsViewActionType | UpdateSectionClassesViewV2ActionType | UpdateSelectedVendorForCreateFlowActionType | UpdateSetupViewLocalStoreDataActionType | UpdateTaskFromListViewActionType | UpdateTaskGroupNameActionType | UpdateTransactionDetailActionType | UpdateTransactionOnUploadSuccessActionType | UpdateVendorContactActionType | VendorFiling1099UploadDetailsSaveActionType | VendorsTabFetchVendorActionType | VendorsTabFetchVendorDetailPageViewActionType | VendorsTabFetchVendorDetailsActionType | VendorsTabResetVendorDetailLocalDataActionType | VendorsTabSaveVendorActionType | VerifyOtpActionType | VerifyUserActionType | WiseRedirectActionType;
|
|
436
|
+
export declare type RootActionType = AcceptBillPayTermsActionType | AcceptBillPayUpdatedTermsActionType | AcceptChargeCardTermsActionType | AcceptEmployeeRemiTermsActionType | AcceptRemiTermsActionType | AcceptZeniAccountTermsActionType | AddCardPaymentSourceActionType | ApproveOrRejectBillActionType | ApproveOrRejectBillsBulkActionActionType | ApproveOrRejectRemiActionType | ApproveOrRejectRemisBulkActionActionType | ApproveVendorGlobalReviewActionType | ArchiveTaskActionType | BalanceSheetActionType | BalanceSheetForTimeframeActionType | BulkUpdateTasksListActionType | CancelAndDeleteBillActionType | CancelAndDeleteRemiActionType | CancelOrDeleteBillsBulkActionActionType | CancelOrDeleteRemisBulkActionActionType | CancelScheduleAccruedJournalEntryActionType | CardBalanceActionType | CashBalanceActionType | CashFlowActionType | CashFlowForTimeframeActionType | CashInCashOutActionType | CashPositionActionType | ChangeZeniPersonRolesActionType | CheckDepositActionType | ClearAllActionType | CombinedStatementActionType | CompanyManagementSavePendingUpdatesActionType | CompanyManagementSaveUpdatesActionType | ConfirmCardSetupIntentActionType | CreateAddressActionType | CreateBankAccountActionType | CreateCardSetupIntentActionType | CreateCheckingAccountActionType | CreateCompanyAddressActionType | CreateCompanyOfficersActionType | CreateCompanyUserAddressActionType | CreateGlobalMerchantActionType | CreateInternationalBankAccountActionType | CreateNewSchedulesAccruedActionType | CreateNewSchedulesActionType | CreateNewTaskGroupActionType | CreatePaymentInstrumentActionType | CreateTagActionType | CreateUserBankAccountActionType | CurrencyConversionActionType | DeleteBankAccountActionType | DeleteBillActionType | DeleteBillPayApprovalRuleActionType | DeleteFileActionType | DeleteFileListActionType | DeleteInternationalBankAccountActionType | DeletePaymentInstrumentActionType | DeletePersonActionType | DeleteRemiActionType | DeleteRemiApprovalRuleActionType | DeleteScheduleAccruedDetailActionType | DeleteScheduleDetailActionType | DeleteTagActionType | DeleteTaskActionType | DeleteTaskGroupActionType | DeleteUserBankAccountActionType | DepositAccountTransactionListActionType | DragNDropTasksActionType | EnableSetupActionType | EstablishOnboardingPlaidConnectionActionType | EstablishPlaidConnectionActionType | FetchAccountHistoryActionType | FetchAccountListActionType | FetchAccountListForAccountTypesActionType | FetchAccruedScheduleListActionType | FetchActiveTenantActionType | FetchAddressActionType | FetchAllCockpitViewsActionType | FetchAllExpenseAutomationTabsActionType | FetchAllPeopleRequiredActionType | FetchAllTagsActionType | FetchAllTaskGroupsActionType | FetchAllTenantsActionType | FetchApAgingActionType | FetchApAgingDetailActionType | FetchArAgingActionType | FetchArAgingDetailActionType | FetchAuditReportGroupViewActionType | FetchAuditRuleGroupViewActionType | FetchBankAccountsListActionType | FetchBankConnectionsViewActionType | FetchBankCountryNameByIbanActionType | FetchBankNameByRoutingActionType | FetchBankNameBySwiftActionType | FetchBillAndInitializeLocalStoreActionType | FetchBillDetailActionType | FetchBillingAccountsListActionType | FetchBillListActionType | FetchBillListPerTabActionType | FetchBillPayApproversDetailsActionType | FetchBillPayApproversListActionType | FetchBillPayCardActionType | FetchBillPayConfigActionType | FetchBillPaySetupApproverViewActionType | FetchBillPaySetupViewActionType | FetchCashbackDetailActionType | FetchChargeCardConfigActionType | FetchChargeCardDetailActionType | FetchChargeCardDetailPageActionType | FetchChargeCardListActionType | FetchChargeCardListPageActionType | FetchChargeCardSetupViewActionType | FetchChargeCardStatementListActionType | FetchChargeCardTransactionAttachmentsActionType | FetchChargeCardTransactionListActionType | FetchClassListActionType | FetchCollaborationAuthTokenActionType | FetchCompanyConfigActionType | FetchCompanyHealthMetricViewEpicActionType | FetchCompanyManagementActionType | FetchCompanyMetaDataActionType | FetchCompanyMonthEndReportHistoricDataActionType | FetchCompanyMonthEndReportHistoricDatesActionType | FetchCompanyMonthEndReportTemplatesActionType | FetchCompanyMonthEndReportViewActionType | FetchCompanyOnboardingViewActionType | FetchCompanyPassportViewActionType | FetchCompanyPortfolioActionType | FetchCompanyTaskManagerViewActionType | FetchCountryListActionType | FetchCreditAccountActionType | FetchCurrencyConversionValueActionType | FetchDashboardActionType | FetchDepositAccountActionType | FetchDepositAccountDetailActionType | FetchDepositAccountListActionType | FetchDepositAccStatementListActionType | FetchDownloadSchedulesActionType | FetchDuplicateBillActionType | FetchDuplicateReimbursementEpicActionType | FetchEditBillDetailPageActionType | FetchEditRemiDetailPageActionType | FetchEligibleActionsForBillActionType | FetchEntityAutoCompleteActionType | FetchEntityHistoryActionType | FetchEntityRecommendationsByTransactionIdActionType | FetchExcludedResourcesActionType | FetchExpenseAutomationMissingReceiptsActionType | FetchExpenseTrendActionType | FetchExternalConnectionsActionType | FetchFileActionType | FetchFileListActionType | FetchForecastListActionType | FetchGlobalMerchantAutoCompleteActionType | FetchGlobalMerchantRecommendationActionType | FetchIncomeTrendActionType | FetchInternationalWireDynamicFormActionType | FetchIntlVerificationFormActionType | FetchIssueCardPageActionType | FetchJEScheduleActionType | FetchJESchedulePageActionType | FetchMagicLinkBankNameByRoutingActionType | FetchMagicLinkBankNameBySwiftActionType | FetchMagicLinkBillActionType | FetchMagicLinkTenantActionType | FetchManagementActionType | FetchMerchantListActionType | FetchMonthEndCloseChecksActionType | FetchMyProfileActionType | FetchMyProfileViewActionType | FetchNationalityCountryListActionType | FetchNetBurnOrIncomeStoryCardActionType | FetchNetBurnOrIncomeWithForecastActionType | FetchNotificationSettingsActionType | FetchNotificationSettingsViewActionType | FetchNotificationUnreadCountActionType | FetchNotificationViewActionType | FetchOnboardingActionType | FetchOnboardingCompletedCompaniesActionType | FetchOnboardingCustomerSetupViewActionType | FetchOnboardingCustomerViewActionType | FetchOpExWithForecastActionType | FetchOwnerListActionType | FetchParentSubsidiaryManagementActionType | FetchPaymentAccountBalanceActionType | FetchPaymentAccountListActionType | FetchPaymentSourcesActionType | FetchPortfolioActionType | FetchPreviousBillsActionType | FetchRecommendationByEntityIdActionType | FetchRecommendationByEntityNameActionType | FetchRecommendationsAndUpdateMerchantRecommendationsActionType | FetchRecommendationsAndUpdateVendorRecommendationsActionType | FetchRecommendedBillExpenseActionType | FetchReferralsActionType | FetchReimbursementCardActionType | FetchReimbursementConfigActionType | FetchRemiAndInitializeLocalStoreActionType | FetchRemiApproversDetailsActionType | FetchRemiApproversListActionType | FetchRemiDetailActionType | FetchRemiListActionType | FetchRemiListPerTabActionType | FetchRemiSetupApproverViewActionType | FetchRemiSetupViewActionType | FetchRevenueWithForecastActionType | FetchReviewCompanyActionType | FetchReviewTransferDetailActionType | FetchRewardsPlanActionType | FetchScheduleAccruedDetailsActionType | FetchScheduleAccruedDetailsPageActionType | FetchScheduleDetailsActionType | FetchScheduleDetailsPageActionType | FetchScheduleListActionType | FetchSchedulesListActionType | FetchSubscriptionActionType | FetchSubscriptionAddOnsActionType | FetchSubscriptionCouponsActionType | FetchSubscriptionCreateEstimateActionType | FetchSubscriptionDetailsActionType | FetchSubscriptionListActionType | FetchSubscriptionPlansActionType | FetchSubscriptionSummaryForTenantActionType | FetchSubscriptionUpdateEstimateActionType | FetchTaskDetailActionType | FetchTaskDetailPageActionType | FetchTaskHistoryActionType | FetchTaskListActionType | FetchTaskListPageActionType | FetchTasksCardActionType | FetchTransactionDetailActionType | FetchTransactionListByAccountActionType | FetchTransactionListByClassActionType | FetchTransactionListByEntityActionType | FetchTransactionsForEntityActionType | FetchTransactionsListByCategoryTypeActionType | FetchTrendForEntityActionType | FetchUserDetailActionType | FetchUserFinancialAccountActionType | FetchUserListByTypeActionType | FetchUserRoleConfigActionType | FetchVendorActionType | FetchVendorAndUpdateBillLocalDataActionType | FetchVendorByNameAndParseInvoiceActionType | FetchVendorDetailsActionType | FetchVendorFirstReviewAttachmentsActionType | FetchVendorFirstReviewViewActionType | FetchVendorGlobalReviewViewActionType | FetchVendorsActionType | FetchVendorsFiling1099ActionType | FetchVendorsFiling1099AllActionType | FetchVendorsFiling1099DownloadActionType | FetchVendorTabViewActionType | FetchVendorTypeListActionType | FetchVendor1099TypeListActionType | FetchZeniAccountListPageActionType | FetchZeniAccountsConfigActionType | FetchZeniAccountSetupViewActionType | FetchZeniAccountsPromoCardActionType | FetchZeniAccStatePageActionType | FetchZeniUsersActionType | GetOnboardingEmailGroupActionType | GetOnboardingPlaidLinkTokenActionType | GetPaymentAccountsActionType | GetPlaidLinkTokenActionType | IgnoreRecommendedJeScheduleActionType | ImproveUsingZeniGPTActionType | InitializeAccountMappingViewActionType | InitializeBillPaySetupApproverViewUpdateDataActionType | InitializeBillToLocalStoreActionType | InitializeCardUserOnboardingLocalDataActionType | InitializeCompanyHealthMetricViewLocalDataEpicActionType | InitializeEditPersonActionType | InitializeInternationalWireLocalDataActionType | InitializeIntlVerificationFormEpicActionType | InitializeJeScheduleLocalDataActionType | InitializeMyProfileLocalDataActionType | InitializeOnboardingCustomerViewUpdateDataActionType | InitializeRemiSetupApproverViewUpdateDataActionType | InitializeRemiToLocalStoreActionType | InitializeScheduleAccruedDetailLocalDataActionType | InitializeScheduleDetailLocalDataActionType | InitializeSubscriptionLocalDataActionType | InitializeTaskToLocalStoreActionType | InitializeTransactionDetailLocalDataActionType | InitializeVendorAddressActionType | InsightsCardActionType | InvitePeopleActionType | InviteZeniPeopleActionType | IssueChargeCardActionType | MarkAsCompleteScheduleDetailActionType | MarkTransactionAsNotMiscategorizedActionType | NetBurnOrIncomeActionType | NetBurnOrIncomeClassesViewActionType | NetBurnOrIncomeForTimeframeActionType | NetBurnOrIncomeForTimeframeClassesViewActionType | OpExActionType | OpExByVendorReportActionType | OpExByVendorReportForTimeframeActionType | OpExByVendorReportSummaryActionType | OpExClassesViewActionType | OpExForTimeframeClassesViewActionType | OpExForTimeframeViewActionType | ParallelFetchAccountTransactionListActionType | ParallelFetchClassTransactionListActionType | ParallelFetchEntityTransactionListActionType | ParallelFetchTransactionListByCategoryTypeActionType | ParseInvoiceToBillActionType | ParseReceiptsToRemiActionType | PeopleActionType | PeoplePageActionType | PeopleSaveUpdatesActionType | ProfitAndLossActionType | ProfitAndLossClassesViewActionType | ProfitAndLossForTimeframeActionType | ProfitAndLossForTimeframeClassesViewActionType | PushToastNotificationActionType | RecommendationForAccountTypeActionType | RefreshExpenseAutomationCurrentTabActionType | RefreshIntegrationsDataActionType | RejectVendorGlobalReviewActionType | ResendCardInviteActionType | ResendInviteActionType | ResendOtpActionType | ResendReferralInviteActionType | ResetTransactionVendorLocalDataActionType | ResetVendorDetailLocalDataActionType | RetryBankAccountConnectionActionType | RetryBankAccountConnectionForOnboardingActionType | RetryJeScheduleActionType | RetryOrRefundBillActionType | RevenueActionType | RevenueClassesViewActionType | RevenueForTimeframeClassesViewActionType | RevenueForTimeframeViewActionType | ReviewDraftBillsBulkActionActionTye | ReviewDraftRemisBulkActionActionTye | RevokeCardInviteActionType | SaveAccountMappingViewActionType | SaveAddressActionType | SaveBillDetailActionType | SaveBillPaySetupApproverViewUpdatesActionType | saveCardOnboardingUserDetailsActionType | SaveCompanyHealthMetricByIdEpicActionType | SaveCompanyMonthEndReportActionType | SaveCompanyPassportDetailsActionType | SaveExternalConnectionActionType | SaveMagicLinkBankAccountActionType | SaveNotificationSettingsEpicActionType | SaveOnboardingCustomerCompletedStatusActionType | SaveOnboardingCustomerNotesActionType | SaveOnboardingCustomerViewUpdatesActionType | SaveRealTimeApprovalActionType | SaveReasonForAuditRuleActionType | SaveRemiDetailActionType | SaveRemiSetupApproverViewUpdatesActionType | SaveScheduleAccruedDetailsActionType | SaveScheduleDetailsActionType | SaveSubscriptionNotesUpdatesActionType | SaveSubscriptionUpdatesActionType | SaveTaskDetailActionType | SaveTranactionVendorActionType | SaveTransactionDetailActionType | SaveVendorActionType | SaveVendorDetailsViewActionType | SaveVendorFirstReviewViewActionType | SendCompanyMonthEndReportActionType | SendOnboardingCustomerViewInviteActionType | SendOtpActionType | SendReferralInviteActionType | SignInActionType | SignOutActionType | StatementCloseDayActionType | SubmitDraftBillsBulkActionActionType | SubmitDraftRemisBulkActionActionType | SubmitIntlVerificationActionType | ToggleReportUIOptionForecastModeActionType | TopExActionType | TransferMoneyActionType | UnlinkPaymentAccountActionType | UpdateAccruedJESchedulesActionType | UpdateAddressActionType | UpdateAmountsInScheduleAccruedDetailActionType | UpdateAmountsInScheduleDetailActionType | UpdateBusinessVerificationDetailsActionType | UpdateChargeCardDetailActionType | UpdateCompanyDetailsActionType | UpdateCompanyOfficerActionType | UpdateCompanyPassportLocalStoreDataActionType | UpdateDepositAccountActionType | UpdateDynamicFormActionType | UpdateFileNameActionType | UpdateFilesMetadataActionType | UpdateJESchedulesActionType | UpdateMappedCashAccountActionType | UpdateMileageDetailsActionType | UpdateMyProfileActionType | UpdateNetBurnOrIncomeStoryCardSettingsActionType | UpdateNotificationViewAllNotificationsStatusActionType | UpdateNotificationViewNotificationStatusActionType | UpdateOnboardingCustomerViewActionType | UpdateOnboardingCustomerViewCompleteStatusActionType | UpdateOnboardingCustomerViewLocalStoreDataActionType | UpdateOnboardingPaymentAccountLoginStatusActionType | UpdateOnboardingPaymentAccountStatusActionType | UpdatePaymentAccountActionType | UpdatePaymentAccountLoginStatusActionType | UpdatePaymentAccountStatusActionType | UpdatePhysicalChargeCardAttemptActionType | UpdatePrimaryContactActionType | UpdatePrimaryFundingAccountActionType | UpdateReferViewedActionType | UpdateRemiSetupViewLocalStoreDataActionType | UpdateReportUIOptionCOABalancesRangeActionType | UpdateReportUIOptionIsCompareModeActionType | UpdateReportUIOptionIsCompareModeOnActionType | UpdateReportUIOptionThisPeriodActionType | UpdateReportUIOptionTimeFrameActionType | UpdateSectionAccountsViewActionType | UpdateSectionClassesViewV2ActionType | UpdateSelectedVendorForCreateFlowActionType | UpdateSetupViewLocalStoreDataActionType | UpdateTaskFromListViewActionType | UpdateTaskGroupNameActionType | UpdateTransactionDetailActionType | UpdateTransactionOnUploadSuccessActionType | UpdateVendorContactActionType | VendorFiling1099UploadDetailsSaveActionType | VendorsTabFetchVendorActionType | VendorsTabFetchVendorDetailPageViewActionType | VendorsTabFetchVendorDetailsActionType | VendorsTabResetVendorDetailLocalDataActionType | VendorsTabSaveVendorActionType | VerifyOtpActionType | VerifyUserActionType | WiseRedirectActionType;
|
|
434
437
|
declare const rootEpic: Epic<RootActionType>;
|
|
435
438
|
export default rootEpic;
|