@zeniai/client-epic-state 4.12.50 → 4.12.52
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/commonStateTypes/animations.d.ts +1 -1
- package/lib/commonStateTypes/animations.js +1 -0
- package/lib/commonStateTypes/fiscalYearHelpers/formatMinutesToFromHHMM.d.ts +2 -0
- package/lib/commonStateTypes/fiscalYearHelpers/formatMinutesToFromHHMM.js +26 -0
- package/lib/entity/billPay/billTransaction/billTransactionPayload.d.ts +13 -1
- package/lib/entity/billPay/billTransaction/billTransactionPayload.js +24 -1
- package/lib/entity/billPay/billTransaction/billTransactionState.d.ts +13 -0
- package/lib/entity/billPay/billTransaction/billTransactionState.js +8 -0
- package/lib/entity/jeSchedules/jeSchedulesReducer.d.ts +2 -2
- package/lib/entity/snackbar/snackbarState.d.ts +6 -0
- package/lib/entity/snackbar/snackbarTypes.d.ts +1 -5
- package/lib/entity/snackbar/snackbarTypes.js +3 -0
- package/lib/entity/task/taskPayload.d.ts +1 -0
- package/lib/entity/task/taskPayload.js +5 -1
- package/lib/entity/task/taskState.d.ts +1 -0
- package/lib/entity/tenant/clearAllEpic.d.ts +1 -1
- package/lib/entity/tenant/clearAllEpic.js +1 -1
- package/lib/entity/toastNotification/epic/pushToastNotificationEpic.d.ts +1 -1
- package/lib/entity/toastNotification/epic/pushToastNotificationEpic.js +12 -5
- package/lib/entity/toastNotification/toastNotificationConstants.d.ts +4 -0
- package/lib/entity/toastNotification/toastNotificationConstants.js +7 -0
- package/lib/entity/toastNotification/toastNotificationPayload.js +28 -15
- package/lib/entity/toastNotification/toastNotificationState.d.ts +8 -8
- package/lib/entity/toastNotification/toastNotificationState.js +9 -8
- package/lib/entity/transaction/stateTypes/transactionType.d.ts +2 -2
- package/lib/entity/vendor/vendorPayload.d.ts +1 -0
- package/lib/entity/vendor/vendorPayload.js +4 -4
- package/lib/entity/vendor/vendorState.d.ts +1 -0
- package/lib/epic.d.ts +10 -7
- package/lib/epic.js +10 -7
- package/lib/index.d.ts +16 -10
- package/lib/index.js +28 -14
- package/lib/reducer.d.ts +4 -1
- package/lib/reducer.js +4 -1
- package/lib/view/cardPayment/epic/addCardPaymentSourceEpic.d.ts +1 -1
- package/lib/view/cardPayment/epic/confirmCardSetupIntentEpic.d.ts +1 -1
- package/lib/view/cardPayment/epic/createCardSetupIntentEpic.d.ts +1 -1
- package/lib/view/cardPayment/epic/fetchPaymentSourcesEpic.d.ts +1 -1
- package/lib/view/commonVendorView/vendorView/vendorViewPayload.d.ts +1 -0
- package/lib/view/people/changeZeniPersonRolesEpic.d.ts +1 -1
- package/lib/view/people/deletePersonEpic.d.ts +1 -1
- package/lib/view/people/invitePeopleEpic.d.ts +1 -1
- package/lib/view/people/inviteZeniPeopleEpic.d.ts +1 -1
- package/lib/view/people/resendInviteEpic.d.ts +1 -1
- package/lib/view/scheduleView/scheduleDetailView/scheduleDetailReducer.d.ts +4 -4
- package/lib/view/settingsView/epic/saveNotificationSettingsEpic.d.ts +1 -1
- package/lib/view/spendManagement/billPay/billDetailView/billDetailViewPayload.d.ts +5 -0
- package/lib/view/spendManagement/billPay/billDetailView/billDetailViewReducer.d.ts +22 -1
- package/lib/view/spendManagement/billPay/billDetailView/billDetailViewReducer.js +133 -2
- package/lib/view/spendManagement/billPay/billDetailView/billDetailViewSelector.d.ts +2 -1
- package/lib/view/spendManagement/billPay/billDetailView/billDetailViewSelector.js +2 -0
- package/lib/view/spendManagement/billPay/billDetailView/billDetailViewState.d.ts +9 -0
- package/lib/view/spendManagement/billPay/billDetailView/billDetailViewState.js +14 -0
- package/lib/view/spendManagement/billPay/billDetailView/epics/fetchBillDetailEpic.d.ts +2 -2
- package/lib/view/spendManagement/billPay/billDetailView/epics/fetchBillDetailEpic.js +10 -1
- package/lib/view/spendManagement/billPay/billDetailView/epics/fetchEligibleActionsForBillEpic.d.ts +7 -0
- package/lib/view/spendManagement/billPay/billDetailView/epics/fetchEligibleActionsForBillEpic.js +42 -0
- package/lib/view/spendManagement/billPay/billDetailView/epics/retryOrRefundBillEpic.d.ts +9 -0
- package/lib/view/spendManagement/billPay/billDetailView/epics/retryOrRefundBillEpic.js +76 -0
- package/lib/view/spendManagement/billPay/billPayReview/billPayReviewSelector.d.ts +1 -0
- package/lib/view/spendManagement/billPay/billPayReview/billPayReviewSelector.js +3 -0
- package/lib/view/spendManagement/billPay/editBillView/editBillViewReducer.d.ts +3 -1
- package/lib/view/spendManagement/billPay/editBillView/editBillViewReducer.js +6 -2
- package/lib/view/spendManagement/billPay/editBillView/editBillViewSelector.d.ts +1 -0
- package/lib/view/spendManagement/billPay/editBillView/editBillViewSelector.js +3 -0
- package/lib/view/spendManagement/billPay/editBillView/editBillViewState.d.ts +1 -0
- package/lib/view/spendManagement/billPay/editBillView/epics/saveBillDetailEpic.d.ts +68 -0
- package/lib/view/spendManagement/billPay/editBillView/epics/saveBillDetailEpic.js +2 -1
- package/lib/view/tagView/epics/createTagEpic.d.ts +1 -1
- package/lib/view/tagView/epics/deleteTagEpic.d.ts +1 -1
- package/lib/view/taskManager/taskDetailView/epics/initializeTaskToLocalStoreEpic.js +1 -0
- package/lib/view/taskManager/taskDetailView/epics/saveTaskDetailEpic.js +2 -0
- package/lib/view/taskManager/taskDetailView/taskDetail.d.ts +1 -0
- package/lib/view/taskManager/taskDetailView/taskDetail.js +1 -0
- package/lib/view/taskManager/taskDetailView/taskDetailSelector.js +2 -1
- package/lib/view/taskManager/taskListView/{bulkUpdateTaskListEpic.d.ts → epics/bulkUpdateTaskListEpic.d.ts} +8 -6
- package/lib/view/taskManager/taskListView/{bulkUpdateTaskListEpic.js → epics/bulkUpdateTaskListEpic.js} +13 -5
- package/lib/view/taskManager/taskListView/{dragNDropTasksEpic.d.ts → epics/dragNDropTasksEpic.d.ts} +2 -2
- package/lib/view/taskManager/taskListView/{dragNDropTasksEpic.js → epics/dragNDropTasksEpic.js} +2 -2
- package/lib/view/taskManager/taskListView/{fetchTaskListEpic.d.ts → epics/fetchTaskListEpic.d.ts} +5 -5
- package/lib/view/taskManager/taskListView/{fetchTaskListEpic.js → epics/fetchTaskListEpic.js} +4 -4
- package/lib/view/taskManager/taskListView/{fetchTaskListPageEpic.d.ts → epics/fetchTaskListPageEpic.d.ts} +6 -6
- package/lib/view/taskManager/taskListView/{fetchTaskListPageEpic.js → epics/fetchTaskListPageEpic.js} +5 -5
- package/lib/view/taskManager/taskListView/{updateTaskFromListViewEpic.d.ts → epics/updateTaskFromListViewEpic.d.ts} +4 -4
- package/lib/view/taskManager/taskListView/{updateTaskFromListViewEpic.js → epics/updateTaskFromListViewEpic.js} +5 -7
- package/lib/view/taskManager/taskListView/taskList.d.ts +1 -1
- package/lib/view/taskManager/taskListView/taskList.js +1 -0
- package/lib/view/taskManager/taskListView/taskListSelector.js +2 -0
- package/lib/view/transactionDetail/transactionDetailState.d.ts +2 -2
- package/lib/view/{vendorFiling1099List → vendorFiling1099}/__mock__/vendorFiling1099ListMock.d.ts +2 -2
- package/lib/view/{vendorFiling1099List → vendorFiling1099}/__mock__/vendorFiling1099ListMock.js +1 -1
- package/lib/view/{vendorFiling1099List → vendorFiling1099}/__mock__/vendorFiling1099ListSelectorMock.d.ts +1 -1
- package/lib/view/vendorFiling1099/__mock__/vendorFiling1099UploadDetailsMock.d.ts +98 -0
- package/lib/view/vendorFiling1099/__mock__/vendorFiling1099UploadDetailsMock.js +101 -0
- package/lib/view/{vendorFiling1099List → vendorFiling1099/vendorFiling1099List}/fetchVendorsFiling1099ListEpic.d.ts +5 -5
- package/lib/view/{vendorFiling1099List → vendorFiling1099/vendorFiling1099List}/fetchVendorsFiling1099ListEpic.js +5 -5
- package/lib/view/{vendorFiling1099List → vendorFiling1099/vendorFiling1099List}/vendorFiling1099ListPayload.d.ts +3 -3
- package/lib/view/{vendorFiling1099List → vendorFiling1099/vendorFiling1099List}/vendorFiling1099ListReducer.d.ts +2 -2
- package/lib/view/{vendorFiling1099List → vendorFiling1099/vendorFiling1099List}/vendorFiling1099ListReducer.js +1 -1
- package/lib/view/{vendorFiling1099List → vendorFiling1099/vendorFiling1099List}/vendorFiling1099ListSelector.d.ts +6 -6
- package/lib/view/{vendorFiling1099List → vendorFiling1099/vendorFiling1099List}/vendorFiling1099ListSelector.js +1 -1
- package/lib/view/{vendorFiling1099List → vendorFiling1099/vendorFiling1099List}/vendorFiling1099ListState.d.ts +3 -3
- package/lib/view/{vendorFiling1099List → vendorFiling1099/vendorFiling1099List}/vendorFiling1099ListState.js +1 -1
- package/lib/view/vendorFiling1099/vendorFiling1099UploadDetails/vendorFiling1099UploadDetailsPayload.d.ts +41 -0
- package/lib/view/vendorFiling1099/vendorFiling1099UploadDetails/vendorFiling1099UploadDetailsPayload.js +32 -0
- package/lib/view/vendorFiling1099/vendorFiling1099UploadDetails/vendorFiling1099UploadDetailsReducer.d.ts +21 -0
- package/lib/view/vendorFiling1099/vendorFiling1099UploadDetails/vendorFiling1099UploadDetailsReducer.js +137 -0
- package/lib/view/vendorFiling1099/vendorFiling1099UploadDetails/vendorFiling1099UploadDetailsSaveEpic.d.ts +9 -0
- package/lib/view/vendorFiling1099/vendorFiling1099UploadDetails/vendorFiling1099UploadDetailsSaveEpic.js +51 -0
- package/lib/view/vendorFiling1099/vendorFiling1099UploadDetails/vendorFiling1099UploadDetailsSelector.d.ts +12 -0
- package/lib/view/vendorFiling1099/vendorFiling1099UploadDetails/vendorFiling1099UploadDetailsSelector.js +15 -0
- package/lib/view/vendorFiling1099/vendorFiling1099UploadDetails/vendorFiling1099UploadDetailsState.d.ts +20 -0
- package/lib/view/vendorFiling1099/vendorFiling1099UploadDetails/vendorFiling1099UploadDetailsState.js +2 -0
- package/lib/view/vendorTabView/fetchVendorTabViewEpic.d.ts +1 -1
- package/lib/view/vendorTabView/fetchVendorTabViewEpic.js +2 -2
- package/package.json +3 -2
- /package/lib/view/{vendorFiling1099List → vendorFiling1099}/__mock__/json/vendorFiling1099ListSuccess.json +0 -0
- /package/lib/view/{vendorFiling1099List → vendorFiling1099}/__mock__/vendorFiling1099ListSelectorMock.js +0 -0
- /package/lib/view/{vendorFiling1099List → vendorFiling1099/vendorFiling1099List}/vendorFiling1099ListPayload.js +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const toAnimationsFileName: (v: string) => "AIPoweredInvoiceDark" | "AIPoweredInvoiceLight" | "Angry" | "Confetti" | "ConfettiExplosion" | "FastestWayDark" | "FastestWayLight" | "FinanceTeamDark" | "FinanceTeamLight" | "Happy" | "MoneyTransferSuccess" | "MultiLevelApprovalDark" | "MultiLevelApprovalLight" | "NotHappy" | "ReceiptDark" | "ReceiptLight" | "ReimburseDark" | "ReimburseLight" | "RewardsDark" | "RewardsDarkHover" | "RewardsLight" | "RewardsLightHover" | "Success" | "VeryHappy";
|
|
1
|
+
export declare const toAnimationsFileName: (v: string) => "AIPoweredInvoiceDark" | "AIPoweredInvoiceLight" | "Angry" | "Confetti" | "ConfettiExplosion" | "FastestWayDark" | "FastestWayLight" | "FinanceTeamDark" | "FinanceTeamLight" | "Happy" | "MoneyTransferSuccess" | "MultiLevelApprovalDark" | "MultiLevelApprovalLight" | "NotHappy" | "ReceiptDark" | "ReceiptLight" | "ReimburseDark" | "ReimburseLight" | "RewardsDark" | "RewardsDarkHover" | "RewardsLight" | "RewardsLightHover" | "Success" | "VeryHappy" | "ZeniAssist";
|
|
2
2
|
export declare type AnimationFileName = ReturnType<typeof toAnimationsFileName>;
|
|
@@ -27,6 +27,7 @@ const ALL_ANIMATIONS_FILE_NAMES = [
|
|
|
27
27
|
'RewardsLightHover',
|
|
28
28
|
'Success',
|
|
29
29
|
'VeryHappy',
|
|
30
|
+
'ZeniAssist',
|
|
30
31
|
];
|
|
31
32
|
const toAnimationsFileName = (v) => (0, stringToUnion_1.stringToUnion)(v, ALL_ANIMATIONS_FILE_NAMES);
|
|
32
33
|
exports.toAnimationsFileName = toAnimationsFileName;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.convertHHMMStrToMinutes = exports.convertMinutesToHHMM = void 0;
|
|
4
|
+
const convertMinutesToHHMM = (minutes) => {
|
|
5
|
+
if (minutes !== 0) {
|
|
6
|
+
const hrs = Math.floor(minutes / 60);
|
|
7
|
+
const mins = minutes % 60;
|
|
8
|
+
const hrsStr = hrs >= 10 ? hrs.toString() : '0' + hrs.toString();
|
|
9
|
+
const minsStr = mins >= 10 ? mins.toString() : '0' + mins.toString();
|
|
10
|
+
let formattedTimeSpent = '';
|
|
11
|
+
formattedTimeSpent += hrs === 0 ? '00' : hrsStr;
|
|
12
|
+
formattedTimeSpent += mins === 0 ? '00' : minsStr;
|
|
13
|
+
return formattedTimeSpent;
|
|
14
|
+
}
|
|
15
|
+
return '';
|
|
16
|
+
};
|
|
17
|
+
exports.convertMinutesToHHMM = convertMinutesToHHMM;
|
|
18
|
+
const convertHHMMStrToMinutes = (timeSpentStr) => {
|
|
19
|
+
if (timeSpentStr != undefined) {
|
|
20
|
+
const hrs = Number(timeSpentStr.substring(0, 2)) * 1;
|
|
21
|
+
const mins = Number(timeSpentStr.substring(2, 4)) * 1;
|
|
22
|
+
return hrs * 60 + mins;
|
|
23
|
+
}
|
|
24
|
+
return 0;
|
|
25
|
+
};
|
|
26
|
+
exports.convertHHMMStrToMinutes = convertHHMMStrToMinutes;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ID } from '../../../commonStateTypes/common';
|
|
2
2
|
import { VendorTransactionPayload } from '../../transaction/payloadTypes/vendorTransactionPayload';
|
|
3
|
-
import { BillStage, BillTransaction, BillPaymentMethod, BillPaymentStatus, BillStatus, DeletionInfo } from './billTransactionState';
|
|
3
|
+
import { BillStage, BillTransaction, BillPaymentMethod, BillPaymentStatus, BillPaymentRefundStatus, BillStatus, DeletionInfo } from './billTransactionState';
|
|
4
4
|
export interface BillTransactionPayload extends VendorTransactionPayload {
|
|
5
5
|
bill_pay_info: BillPayInfoPayload;
|
|
6
6
|
entity_approval_id: ID;
|
|
@@ -46,6 +46,7 @@ interface BillPayInfoPayload {
|
|
|
46
46
|
bill_payment_status: BillPaymentStatusPayload;
|
|
47
47
|
bill_payment_status_message?: string | null;
|
|
48
48
|
bill_payment_status_update_time?: string | null;
|
|
49
|
+
bill_payment_refund_status: BillPaymentRefundStatusPayload;
|
|
49
50
|
actual_deposit_date?: string | null;
|
|
50
51
|
expected_deposit_date?: string | null;
|
|
51
52
|
bill_payment_method_type: BillPaymentMethodPayload;
|
|
@@ -56,6 +57,10 @@ interface BillPayInfoPayload {
|
|
|
56
57
|
to_account_vendor_email?: string | null;
|
|
57
58
|
is_collect_to_account_info_from_vendor_contact?: boolean;
|
|
58
59
|
international_transfer_fee_bearer_payment_method?: string | null;
|
|
60
|
+
is_refund_complete: boolean | null;
|
|
61
|
+
is_refund_initiated: boolean | null;
|
|
62
|
+
refund_completion_time?: string;
|
|
63
|
+
refund_initiation_time?: string;
|
|
59
64
|
}
|
|
60
65
|
export interface BillStagePayload {
|
|
61
66
|
code: string;
|
|
@@ -69,6 +74,12 @@ export interface BillPaymentStatusPayload {
|
|
|
69
74
|
summary: string;
|
|
70
75
|
description: string;
|
|
71
76
|
}
|
|
77
|
+
export interface BillPaymentRefundStatusPayload {
|
|
78
|
+
code: string | null;
|
|
79
|
+
name: string | null;
|
|
80
|
+
summary: string;
|
|
81
|
+
description: string;
|
|
82
|
+
}
|
|
72
83
|
export interface BillStatusPayload {
|
|
73
84
|
summary_code: string | null;
|
|
74
85
|
code: string;
|
|
@@ -97,6 +108,7 @@ export declare const toBillTransaction: (payload: BillTransactionPayload) => Bil
|
|
|
97
108
|
export declare const toBillStage: (payload: BillStagePayload) => BillStage;
|
|
98
109
|
export declare const toBillPaymentMethod: (payload: BillPaymentMethodPayload) => BillPaymentMethod;
|
|
99
110
|
export declare const toBillPaymentStatus: (payload: BillPaymentStatusPayload) => BillPaymentStatus;
|
|
111
|
+
export declare const toBillPaymentRefundStatus: (payload: BillPaymentRefundStatusPayload) => BillPaymentRefundStatus;
|
|
100
112
|
export declare const toBillStatus: (payload: BillStatusPayload) => BillStatus;
|
|
101
113
|
export declare const toDeletionInfo: (payload: DeletionInfoPayload) => DeletionInfo;
|
|
102
114
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.toDeletionInfo = exports.toBillStatus = exports.toBillPaymentStatus = exports.toBillPaymentMethod = exports.toBillStage = exports.toBillTransaction = void 0;
|
|
3
|
+
exports.toDeletionInfo = exports.toBillStatus = exports.toBillPaymentRefundStatus = exports.toBillPaymentStatus = exports.toBillPaymentMethod = exports.toBillStage = exports.toBillTransaction = void 0;
|
|
4
4
|
const amount_1 = require("../../../commonStateTypes/amount");
|
|
5
5
|
const zeniDayJS_1 = require("../../../zeniDayJS");
|
|
6
6
|
const vendorTransactionPayload_1 = require("../../transaction/payloadTypes/vendorTransactionPayload");
|
|
@@ -47,6 +47,7 @@ const toBillPayInfo = (payload) => {
|
|
|
47
47
|
? (0, zeniDayJS_1.date)(payload.bill_payment_status_update_time)
|
|
48
48
|
: undefined,
|
|
49
49
|
billPaymentMethodType: (0, exports.toBillPaymentMethod)(payload.bill_payment_method_type),
|
|
50
|
+
billPaymentRefundStatus: (0, exports.toBillPaymentRefundStatus)(payload.bill_payment_refund_status),
|
|
50
51
|
fromAccount: toFromBillAccount(payload.from_account),
|
|
51
52
|
toAccount: toBillAccount(payload.to_account, (0, exports.toBillPaymentMethod)(payload.bill_payment_method_type)),
|
|
52
53
|
isCancelled: payload.is_cancelled,
|
|
@@ -62,6 +63,16 @@ const toBillPayInfo = (payload) => {
|
|
|
62
63
|
internationalTransferFeeBearerPaymentMethod: payload.international_transfer_fee_bearer_payment_method != null
|
|
63
64
|
? (0, billTransactionState_1.toInternationalTransferFeeBearerPaymentMethod)(payload.international_transfer_fee_bearer_payment_method)
|
|
64
65
|
: undefined,
|
|
66
|
+
isRefundComplete: payload.is_refund_complete != null ? payload.is_refund_complete : undefined,
|
|
67
|
+
isRefundInitiated: payload.is_refund_initiated != null
|
|
68
|
+
? payload.is_refund_initiated
|
|
69
|
+
: undefined,
|
|
70
|
+
refundCompletionTime: payload.refund_completion_time != null
|
|
71
|
+
? (0, zeniDayJS_1.date)(payload.refund_completion_time)
|
|
72
|
+
: undefined,
|
|
73
|
+
refundInitiationTime: payload.refund_initiation_time != null
|
|
74
|
+
? (0, zeniDayJS_1.date)(payload.refund_initiation_time)
|
|
75
|
+
: undefined,
|
|
65
76
|
});
|
|
66
77
|
};
|
|
67
78
|
const toBillStage = (payload) => {
|
|
@@ -128,6 +139,18 @@ const toBillPaymentStatus = (payload) => {
|
|
|
128
139
|
});
|
|
129
140
|
};
|
|
130
141
|
exports.toBillPaymentStatus = toBillPaymentStatus;
|
|
142
|
+
const toBillPaymentRefundStatus = (payload) => {
|
|
143
|
+
var _a;
|
|
144
|
+
return ({
|
|
145
|
+
code: payload.code != null
|
|
146
|
+
? payload.code
|
|
147
|
+
: undefined,
|
|
148
|
+
name: (_a = payload.name) !== null && _a !== void 0 ? _a : '',
|
|
149
|
+
summary: payload.summary,
|
|
150
|
+
description: payload.description,
|
|
151
|
+
});
|
|
152
|
+
};
|
|
153
|
+
exports.toBillPaymentRefundStatus = toBillPaymentRefundStatus;
|
|
131
154
|
const toBillStatus = (payload) => ({
|
|
132
155
|
code: payload.code,
|
|
133
156
|
name: payload.name,
|
|
@@ -45,6 +45,7 @@ export interface BillPayInfo {
|
|
|
45
45
|
billPaymentStatusMessage: string;
|
|
46
46
|
billPaymentStatusUpdateTime?: ZeniDate;
|
|
47
47
|
billPaymentMethodType: BillPaymentMethod;
|
|
48
|
+
billPaymentRefundStatus: BillPaymentRefundStatus;
|
|
48
49
|
fromAccount: FromBillAccount;
|
|
49
50
|
toAccount: BillAccount;
|
|
50
51
|
isCancelled: boolean;
|
|
@@ -52,6 +53,10 @@ export interface BillPayInfo {
|
|
|
52
53
|
toAccountVendorEmail?: string;
|
|
53
54
|
isCollectToAccountInfoFromVendorContact: boolean;
|
|
54
55
|
internationalTransferFeeBearerPaymentMethod?: InternationalTransferFeeBearerPaymentMethod;
|
|
56
|
+
isRefundComplete?: boolean;
|
|
57
|
+
isRefundInitiated?: boolean;
|
|
58
|
+
refundCompletionTime?: ZeniDate;
|
|
59
|
+
refundInitiationTime?: ZeniDate;
|
|
55
60
|
}
|
|
56
61
|
export declare const toInternationalTransferFeeBearerPaymentMethod: (v: string) => "swift_our" | "swift_sha";
|
|
57
62
|
export declare type InternationalTransferFeeBearerPaymentMethod = ReturnType<typeof toInternationalTransferFeeBearerPaymentMethod>;
|
|
@@ -67,6 +72,12 @@ export interface BillPaymentStatus {
|
|
|
67
72
|
summary: string;
|
|
68
73
|
description: string;
|
|
69
74
|
}
|
|
75
|
+
export interface BillPaymentRefundStatus {
|
|
76
|
+
name: string;
|
|
77
|
+
description: string;
|
|
78
|
+
summary: string;
|
|
79
|
+
code?: BillPaymentRefundStatusCodeType;
|
|
80
|
+
}
|
|
70
81
|
export interface BillStatus {
|
|
71
82
|
summaryCode?: BillStatusSummaryCodeType;
|
|
72
83
|
code: BillStatusCodeType;
|
|
@@ -99,6 +110,8 @@ declare const toBillStageCodeType: (v: string) => "paid" | "pending_approval" |
|
|
|
99
110
|
export declare type BillStageCodeType = ReturnType<typeof toBillStageCodeType>;
|
|
100
111
|
declare const toBillPaymentStatusCodeType: (v: string) => "failed" | "processing" | "paid" | "returned" | "posted" | "cancelled" | "pending_vendor_action";
|
|
101
112
|
export declare type BillPaymentStatusCodeType = ReturnType<typeof toBillPaymentStatusCodeType>;
|
|
113
|
+
declare const toBillPaymentRefundStatusCodeType: (v: string) => "failed" | "completed" | "processing" | "returned" | "cancelled";
|
|
114
|
+
export declare type BillPaymentRefundStatusCodeType = ReturnType<typeof toBillPaymentRefundStatusCodeType>;
|
|
102
115
|
declare const toBillStatusCodeType: (v: string) => "rejected" | "approved" | "pending_approval" | "initiated";
|
|
103
116
|
export declare type BillStatusCodeType = ReturnType<typeof toBillStatusCodeType>;
|
|
104
117
|
declare const toBillStatusSummaryCodeType: (v: string) => "rejected" | "approval_in_progress";
|
|
@@ -25,6 +25,14 @@ const BILL_PAYMENT_STATUS_CODE = [
|
|
|
25
25
|
'pending_vendor_action',
|
|
26
26
|
];
|
|
27
27
|
const toBillPaymentStatusCodeType = (v) => (0, stringToUnion_1.stringToUnion)(v, BILL_PAYMENT_STATUS_CODE);
|
|
28
|
+
const BILL_PAYMENT_REFUND_STATUS_CODE = [
|
|
29
|
+
'completed',
|
|
30
|
+
'failed',
|
|
31
|
+
'processing',
|
|
32
|
+
'returned',
|
|
33
|
+
'cancelled',
|
|
34
|
+
];
|
|
35
|
+
const toBillPaymentRefundStatusCodeType = (v) => (0, stringToUnion_1.stringToUnion)(v, BILL_PAYMENT_REFUND_STATUS_CODE);
|
|
28
36
|
const BILL_STATUS_CODE = [
|
|
29
37
|
'initiated',
|
|
30
38
|
'pending_approval',
|
|
@@ -18,8 +18,8 @@ export declare const updateJESchedules: import("@reduxjs/toolkit").ActionCreator
|
|
|
18
18
|
jeSchedulesPayload: JEAccruedScheduledTransactionPayload[];
|
|
19
19
|
scheduledJEntriesPayload: ScheduledJournalEntryPayload[] | undefined;
|
|
20
20
|
updateType: UpdateType;
|
|
21
|
-
}, string, never, never>, deleteJESchedulesDetails: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[jeScheduleTransactionKey: `${string}_expense` | `${string}
|
|
22
|
-
jeScheduleTransactionKey: `${string}_expense` | `${string}
|
|
21
|
+
}, string, never, never>, deleteJESchedulesDetails: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[jeScheduleTransactionKey: `${string}_expense` | `${string}_refund` | `${string}_invoice` | `${string}_payment` | `${string}_credit_memo` | `${string}_sales_receipt` | `${string}_delayed_credit` | `${string}_delayed_charge` | `${string}_check` | `${string}_bill` | `${string}_bill_payment` | `${string}_bill_payment_check` | `${string}_bill_payment_credit_card` | `${string}_vendor_credit` | `${string}_credit_card_credit` | `${string}_transfer` | `${string}_credit_card_payment` | `${string}_deposit` | `${string}_journal_entry`], {
|
|
22
|
+
jeScheduleTransactionKey: `${string}_expense` | `${string}_refund` | `${string}_invoice` | `${string}_payment` | `${string}_credit_memo` | `${string}_sales_receipt` | `${string}_delayed_credit` | `${string}_delayed_charge` | `${string}_check` | `${string}_bill` | `${string}_bill_payment` | `${string}_bill_payment_check` | `${string}_bill_payment_credit_card` | `${string}_vendor_credit` | `${string}_credit_card_credit` | `${string}_transfer` | `${string}_credit_card_payment` | `${string}_deposit` | `${string}_journal_entry`;
|
|
23
23
|
}, string, never, never>, deleteAccruedJESchedulesDetails: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[JEScheduleKey: `${string}_${string}`], {
|
|
24
24
|
JEScheduleKey: `${string}_${string}`;
|
|
25
25
|
}, string, never, never>, clearAllAccruedJESchedules: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, clearAllJEScheduleTransactions: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>;
|
|
@@ -12,3 +12,9 @@ export interface SnackbarState {
|
|
|
12
12
|
snackbarType: SnackbarMessageType;
|
|
13
13
|
showStatusIcon: boolean;
|
|
14
14
|
}
|
|
15
|
+
export interface SnackbarMessageConfig {
|
|
16
|
+
messageSection: SnackbarMessageSections;
|
|
17
|
+
messageText: SnackbarMessageSectionTexts;
|
|
18
|
+
type: SnackbarMessageType;
|
|
19
|
+
showStatusIcon?: boolean;
|
|
20
|
+
}
|
|
@@ -1,9 +1,5 @@
|
|
|
1
|
-
export declare const toSnackbarMessageSection: (v: string) => "bill_pay_setup" | "reimbursement_setup" | "charge_card_setup" | "common" | "transactionDetails_updatingPastTransactions" | "transactionDetails_transactionUpdated" | "cockpit_month_end_email_sent" | "cockpit_month_end_email_save" | "cockpit_month_end_email_attachment_upload" | "je_bill_link" | "audit_score_updated" | "people_invite_people" | "people_invite_multiple_people" | "people_delete_person" | "people_update_person" | "reimbursement_updated" | "reimbursement_deleted" | "reimbursement_cancelled_deleted" | "reimbursement_cancelled" | "reimbursement_approved" | "reimbursement_rejected" | "reimbursement_sent_for_approval" | "account_added" | "business_verification_save" | "business_verification_submit" | "business_verification_from_bills_submit" | "plaid_connection" | "unlink_deposit_account" | "reimbursement_approval_create" | "reimbursement_duplicate_approval_create" | "reimbursement_approval_update" | "reimbursement_duplicate_approval_update" | "reimbursement_approval_delete" | "reimbursement_create_mileage" | "reimbursement_update_mileage" | "reimbursement_accept_term" | "reimbursement_accept_employee_term" | "zeni_accounts_setup" | "bill_pay_approval_create" | "bill_pay_duplicate_approval_create" | "bill_pay_approval_update" | "bill_pay_duplicate_approval_update" | "bill_pay_approval_delete" | "bill_pay_updated" | "bill_pay_deleted" | "bill_pay_cancelled_deleted" | "bill_pay_cancelled" | "bill_pay_approved" | "real_time_approver_added" | "bill_pay_rejected" | "bill_pay_sent_for_approval" | "bill_pay_accept_term" | "bill_pay_bulk_submit" | "bill_pay_bulk_processed" | "zeni_account_accept_term" | "update_vendor" | "data_refresh_update" | "delete_bank_account" | "create_bank_account" | "create_bank_account_ach" | "create_bank_account_wire" | "create_bank_account_international" | "transfer_money" | "update_zeni_account_nickname" | "create_checking_account" | "deposit_check" | "create_vendor" | "onboarding_customer_view" | "onboarding_customer_view_complete" | "onboarding_customer_identity_verification_save" | "onboarding_customer_identity_verification_submit" | "onboarding_customer_business_verification_save" | "onboarding_customer_business_verification_submit" | "retry_bank_account_connection" | "dashboard_invite_sent" | "onboarding_info_saved" | "approve_original_merchant" | "approve_global_merchant" | "reject_global_merchant" | "create_global_merchant" | "fetch_global_merchant_no_recommendation" | "save_vendor_renamed" | "save_vendor_sent_for_review" | "save_vendor_marked_as_employee" | "save_vendor_marked_as_local_contractor" | "charge_card_accept_term" | "charge_card_receipt_upload" | "create_schedule" | "save_schedule" | "delete_schedule" | "save_task_detail" | "fetch_task_detail" | "delete_task" | "archive_task" | "create_tag" | "delete_tag" | "update_charge_card" | "issue_charge_card" | "notification_settings_saved" | "referral_invite_sent" | "notification_mark_as_read" | "mark_as_complete_schedule" | "cancel_journal_entry" | "settings_accounting_accounts_updated" | "create_card_setup" | "confirm_card_setup" | "add_card_payment_source" | "fetch_payment_sources" | "task_assigned_toast_notification" | "task_due_tomorrow_toast_notification" | "task_deleted_toast_notification" | "task_archived_toast_notification" | "task_overdue_toast_notification" | "task_overdue_toast_notification_creator" | "task_notification_count" | "task_activities_toast_notification" | "task_created_toast_notification" | "task_group_creation_success" | "task_group_deletion_success" | "task_group_update_success" | "primary_funding_account_updated";
|
|
1
|
+
export declare const toSnackbarMessageSection: (v: string) => "bill_pay_setup" | "reimbursement_setup" | "charge_card_setup" | "common" | "transactionDetails_updatingPastTransactions" | "transactionDetails_transactionUpdated" | "cockpit_month_end_email_sent" | "cockpit_month_end_email_save" | "cockpit_month_end_email_attachment_upload" | "je_bill_link" | "audit_score_updated" | "people_invite_people" | "people_invite_multiple_people" | "people_delete_person" | "people_update_person" | "reimbursement_updated" | "reimbursement_deleted" | "reimbursement_cancelled_deleted" | "reimbursement_cancelled" | "reimbursement_approved" | "reimbursement_rejected" | "reimbursement_sent_for_approval" | "account_added" | "business_verification_save" | "business_verification_submit" | "business_verification_from_bills_submit" | "plaid_connection" | "unlink_deposit_account" | "reimbursement_approval_create" | "reimbursement_duplicate_approval_create" | "reimbursement_approval_update" | "reimbursement_duplicate_approval_update" | "reimbursement_approval_delete" | "reimbursement_create_mileage" | "reimbursement_update_mileage" | "reimbursement_accept_term" | "reimbursement_accept_employee_term" | "zeni_accounts_setup" | "bill_pay_approval_create" | "bill_pay_duplicate_approval_create" | "bill_pay_approval_update" | "bill_pay_duplicate_approval_update" | "bill_pay_approval_delete" | "bill_pay_updated" | "bill_pay_deleted" | "bill_pay_cancelled_deleted" | "bill_pay_cancelled" | "bill_pay_approved" | "real_time_approver_added" | "bill_pay_rejected" | "bill_pay_sent_for_approval" | "bill_pay_accept_term" | "bill_pay_bulk_submit" | "bill_pay_bulk_processed" | "bill_pay_refund" | "bill_pay_retry" | "zeni_account_accept_term" | "update_vendor" | "data_refresh_update" | "delete_bank_account" | "create_bank_account" | "create_bank_account_ach" | "create_bank_account_wire" | "create_bank_account_international" | "transfer_money" | "update_zeni_account_nickname" | "create_checking_account" | "deposit_check" | "create_vendor" | "onboarding_customer_view" | "onboarding_customer_view_complete" | "onboarding_customer_identity_verification_save" | "onboarding_customer_identity_verification_submit" | "onboarding_customer_business_verification_save" | "onboarding_customer_business_verification_submit" | "retry_bank_account_connection" | "dashboard_invite_sent" | "onboarding_info_saved" | "approve_original_merchant" | "approve_global_merchant" | "reject_global_merchant" | "create_global_merchant" | "fetch_global_merchant_no_recommendation" | "save_vendor_renamed" | "save_vendor_sent_for_review" | "save_vendor_marked_as_employee" | "save_vendor_marked_as_local_contractor" | "charge_card_accept_term" | "charge_card_receipt_upload" | "create_schedule" | "save_schedule" | "delete_schedule" | "save_task_detail" | "fetch_task_detail" | "delete_task" | "archive_task" | "create_tag" | "delete_tag" | "update_charge_card" | "issue_charge_card" | "notification_settings_saved" | "referral_invite_sent" | "notification_mark_as_read" | "mark_as_complete_schedule" | "cancel_journal_entry" | "settings_accounting_accounts_updated" | "create_card_setup" | "confirm_card_setup" | "add_card_payment_source" | "fetch_payment_sources" | "task_assigned_toast_notification" | "task_due_tomorrow_toast_notification" | "task_deleted_toast_notification" | "task_archived_toast_notification" | "task_overdue_toast_notification" | "task_overdue_toast_notification_creator" | "task_notification_count" | "task_activities_toast_notification" | "task_created_toast_notification" | "task_group_creation_success" | "task_group_deletion_success" | "task_group_update_success" | "primary_funding_account_updated" | "task_time_spent_validation";
|
|
2
2
|
export declare type SnackbarMessageSections = ReturnType<typeof toSnackbarMessageSection>;
|
|
3
3
|
export declare const toSnackbarMessageSectionTexts: (v: string) => "failed" | "success" | "notification";
|
|
4
4
|
export declare type SnackbarMessageSectionTexts = ReturnType<typeof toSnackbarMessageSectionTexts>;
|
|
5
5
|
export declare type SnackbarMessageType = 'info' | 'warning' | 'error' | 'none' | 'success' | 'notification';
|
|
6
|
-
export interface SnackbarVariablesType {
|
|
7
|
-
variableName: string;
|
|
8
|
-
variableValue: string;
|
|
9
|
-
}
|
|
@@ -56,6 +56,8 @@ const ALL_SNACKBAR_MESSAGE_SECTIONS = [
|
|
|
56
56
|
'bill_pay_accept_term',
|
|
57
57
|
'bill_pay_bulk_submit',
|
|
58
58
|
'bill_pay_bulk_processed',
|
|
59
|
+
'bill_pay_refund',
|
|
60
|
+
'bill_pay_retry',
|
|
59
61
|
'zeni_account_accept_term',
|
|
60
62
|
'update_vendor',
|
|
61
63
|
'data_refresh_update',
|
|
@@ -124,6 +126,7 @@ const ALL_SNACKBAR_MESSAGE_SECTIONS = [
|
|
|
124
126
|
'task_group_deletion_success',
|
|
125
127
|
'task_group_update_success',
|
|
126
128
|
'primary_funding_account_updated',
|
|
129
|
+
'task_time_spent_validation',
|
|
127
130
|
];
|
|
128
131
|
const toSnackbarMessageSection = (v) => (0, stringToUnion_1.stringToUnion)(v, ALL_SNACKBAR_MESSAGE_SECTIONS);
|
|
129
132
|
exports.toSnackbarMessageSection = toSnackbarMessageSection;
|
|
@@ -22,6 +22,7 @@ export interface TaskPayload {
|
|
|
22
22
|
task_group_ids?: string[] | null;
|
|
23
23
|
sync_token?: string | null;
|
|
24
24
|
company_id?: string;
|
|
25
|
+
time_spent: number;
|
|
25
26
|
}
|
|
26
27
|
export declare const mapTaskPayloadToTask: (payload: TaskPayload) => Task;
|
|
27
28
|
export interface TagIdWithNamePayload {
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.mapTaskPayloadToTask = void 0;
|
|
4
|
-
const recurringViewHelper_1 = require("../../view/common/recurringViewHelper");
|
|
5
4
|
const zeniDayJS_1 = require("../../zeniDayJS");
|
|
5
|
+
const formatMinutesToFromHHMM_1 = require("../../commonStateTypes/fiscalYearHelpers/formatMinutesToFromHHMM");
|
|
6
6
|
const taskState_1 = require("./taskState");
|
|
7
|
+
const recurringViewHelper_1 = require("../../view/common/recurringViewHelper");
|
|
7
8
|
const mapTaskPayloadToTask = (payload) => {
|
|
8
9
|
var _a;
|
|
9
10
|
return ({
|
|
@@ -40,6 +41,9 @@ const mapTaskPayloadToTask = (payload) => {
|
|
|
40
41
|
updateTime: payload.update_time != null ? (0, zeniDayJS_1.date)(payload.update_time) : undefined,
|
|
41
42
|
companyId: payload.company_id,
|
|
42
43
|
taskGroupIds: payload.task_group_ids != null ? payload.task_group_ids : [],
|
|
44
|
+
timeSpent: payload.time_spent != null
|
|
45
|
+
? (0, formatMinutesToFromHHMM_1.convertMinutesToHHMM)(payload.time_spent)
|
|
46
|
+
: (0, formatMinutesToFromHHMM_1.convertMinutesToHHMM)(0),
|
|
43
47
|
});
|
|
44
48
|
};
|
|
45
49
|
exports.mapTaskPayloadToTask = mapTaskPayloadToTask;
|
|
@@ -162,7 +162,7 @@ import { clearAllCardPayments } from '../cardPayment/cardPaymentReducer';
|
|
|
162
162
|
import { clearAllTaskGroups } from '../../entity/taskGroup/taskGroupReducer';
|
|
163
163
|
import { clearTaskGroupView } from '../../view/taskManager/taskGroupView/taskGroupViewReducer';
|
|
164
164
|
import { clearBillPayBulkActionView } from '../../view/spendManagement/billPay/billsBulkActionView/billsBulkActionViewReducer';
|
|
165
|
-
import { clearVendorsFiling1099List } from '../../view/vendorFiling1099List/vendorFiling1099ListReducer';
|
|
165
|
+
import { clearVendorsFiling1099List } from '../../view/vendorFiling1099/vendorFiling1099List/vendorFiling1099ListReducer';
|
|
166
166
|
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 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 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 clearCheckDeposit> | ReturnType<typeof clearCompanyConfigView> | ReturnType<typeof clearCompanyHealthMetric> | ReturnType<typeof clearCompanyHealthMetricView> | ReturnType<typeof clearCompanyMonthEndReportView> | ReturnType<typeof clearCompanyTaskManagerView> | 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 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 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 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>;
|
|
167
167
|
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 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>;
|
|
168
168
|
export declare type ActionType = clearActionTypeForViews | clearActionTypeForEntities | ReturnType<typeof clearAll>;
|
|
@@ -168,7 +168,7 @@ const cardPaymentReducer_1 = require("../cardPayment/cardPaymentReducer");
|
|
|
168
168
|
const taskGroupReducer_1 = require("../../entity/taskGroup/taskGroupReducer");
|
|
169
169
|
const taskGroupViewReducer_1 = require("../../view/taskManager/taskGroupView/taskGroupViewReducer");
|
|
170
170
|
const billsBulkActionViewReducer_1 = require("../../view/spendManagement/billPay/billsBulkActionView/billsBulkActionViewReducer");
|
|
171
|
-
const vendorFiling1099ListReducer_1 = require("../../view/vendorFiling1099List/vendorFiling1099ListReducer");
|
|
171
|
+
const vendorFiling1099ListReducer_1 = require("../../view/vendorFiling1099/vendorFiling1099List/vendorFiling1099ListReducer");
|
|
172
172
|
const clearAllEpic = (actions$) => actions$.pipe((0, operators_1.filter)(tenantReducer_1.clearAll.match), (0, operators_1.mergeMap)((action) => {
|
|
173
173
|
const { keepTenantCompanyState } = action.payload;
|
|
174
174
|
// Note: Please maintain strict alphabetical order
|
|
@@ -5,7 +5,7 @@ import { openSnackbar } from '../../../entity/snackbar/snackbarReducer';
|
|
|
5
5
|
export declare type ActionType = ReturnType<typeof pushToastNotification> | ReturnType<typeof openSnackbar>;
|
|
6
6
|
export declare const pushToastNotificationEpic: (actions$: ActionsObservable<ActionType>, state$: StateObservable<RootState>) => import("rxjs").Observable<{
|
|
7
7
|
payload: {
|
|
8
|
-
messageSection: "bill_pay_setup" | "reimbursement_setup" | "charge_card_setup" | "common" | "transactionDetails_updatingPastTransactions" | "transactionDetails_transactionUpdated" | "cockpit_month_end_email_sent" | "cockpit_month_end_email_save" | "cockpit_month_end_email_attachment_upload" | "je_bill_link" | "audit_score_updated" | "people_invite_people" | "people_invite_multiple_people" | "people_delete_person" | "people_update_person" | "reimbursement_updated" | "reimbursement_deleted" | "reimbursement_cancelled_deleted" | "reimbursement_cancelled" | "reimbursement_approved" | "reimbursement_rejected" | "reimbursement_sent_for_approval" | "account_added" | "business_verification_save" | "business_verification_submit" | "business_verification_from_bills_submit" | "plaid_connection" | "unlink_deposit_account" | "reimbursement_approval_create" | "reimbursement_duplicate_approval_create" | "reimbursement_approval_update" | "reimbursement_duplicate_approval_update" | "reimbursement_approval_delete" | "reimbursement_create_mileage" | "reimbursement_update_mileage" | "reimbursement_accept_term" | "reimbursement_accept_employee_term" | "zeni_accounts_setup" | "bill_pay_approval_create" | "bill_pay_duplicate_approval_create" | "bill_pay_approval_update" | "bill_pay_duplicate_approval_update" | "bill_pay_approval_delete" | "bill_pay_updated" | "bill_pay_deleted" | "bill_pay_cancelled_deleted" | "bill_pay_cancelled" | "bill_pay_approved" | "real_time_approver_added" | "bill_pay_rejected" | "bill_pay_sent_for_approval" | "bill_pay_accept_term" | "bill_pay_bulk_submit" | "bill_pay_bulk_processed" | "zeni_account_accept_term" | "update_vendor" | "data_refresh_update" | "delete_bank_account" | "create_bank_account" | "create_bank_account_ach" | "create_bank_account_wire" | "create_bank_account_international" | "transfer_money" | "update_zeni_account_nickname" | "create_checking_account" | "deposit_check" | "create_vendor" | "onboarding_customer_view" | "onboarding_customer_view_complete" | "onboarding_customer_identity_verification_save" | "onboarding_customer_identity_verification_submit" | "onboarding_customer_business_verification_save" | "onboarding_customer_business_verification_submit" | "retry_bank_account_connection" | "dashboard_invite_sent" | "onboarding_info_saved" | "approve_original_merchant" | "approve_global_merchant" | "reject_global_merchant" | "create_global_merchant" | "fetch_global_merchant_no_recommendation" | "save_vendor_renamed" | "save_vendor_sent_for_review" | "save_vendor_marked_as_employee" | "save_vendor_marked_as_local_contractor" | "charge_card_accept_term" | "charge_card_receipt_upload" | "create_schedule" | "save_schedule" | "delete_schedule" | "save_task_detail" | "fetch_task_detail" | "delete_task" | "archive_task" | "create_tag" | "delete_tag" | "update_charge_card" | "issue_charge_card" | "notification_settings_saved" | "referral_invite_sent" | "notification_mark_as_read" | "mark_as_complete_schedule" | "cancel_journal_entry" | "settings_accounting_accounts_updated" | "create_card_setup" | "confirm_card_setup" | "add_card_payment_source" | "fetch_payment_sources" | "task_assigned_toast_notification" | "task_due_tomorrow_toast_notification" | "task_deleted_toast_notification" | "task_archived_toast_notification" | "task_overdue_toast_notification" | "task_overdue_toast_notification_creator" | "task_notification_count" | "task_activities_toast_notification" | "task_created_toast_notification" | "task_group_creation_success" | "task_group_deletion_success" | "task_group_update_success" | "primary_funding_account_updated";
|
|
8
|
+
messageSection: "bill_pay_setup" | "reimbursement_setup" | "charge_card_setup" | "common" | "transactionDetails_updatingPastTransactions" | "transactionDetails_transactionUpdated" | "cockpit_month_end_email_sent" | "cockpit_month_end_email_save" | "cockpit_month_end_email_attachment_upload" | "je_bill_link" | "audit_score_updated" | "people_invite_people" | "people_invite_multiple_people" | "people_delete_person" | "people_update_person" | "reimbursement_updated" | "reimbursement_deleted" | "reimbursement_cancelled_deleted" | "reimbursement_cancelled" | "reimbursement_approved" | "reimbursement_rejected" | "reimbursement_sent_for_approval" | "account_added" | "business_verification_save" | "business_verification_submit" | "business_verification_from_bills_submit" | "plaid_connection" | "unlink_deposit_account" | "reimbursement_approval_create" | "reimbursement_duplicate_approval_create" | "reimbursement_approval_update" | "reimbursement_duplicate_approval_update" | "reimbursement_approval_delete" | "reimbursement_create_mileage" | "reimbursement_update_mileage" | "reimbursement_accept_term" | "reimbursement_accept_employee_term" | "zeni_accounts_setup" | "bill_pay_approval_create" | "bill_pay_duplicate_approval_create" | "bill_pay_approval_update" | "bill_pay_duplicate_approval_update" | "bill_pay_approval_delete" | "bill_pay_updated" | "bill_pay_deleted" | "bill_pay_cancelled_deleted" | "bill_pay_cancelled" | "bill_pay_approved" | "real_time_approver_added" | "bill_pay_rejected" | "bill_pay_sent_for_approval" | "bill_pay_accept_term" | "bill_pay_bulk_submit" | "bill_pay_bulk_processed" | "bill_pay_refund" | "bill_pay_retry" | "zeni_account_accept_term" | "update_vendor" | "data_refresh_update" | "delete_bank_account" | "create_bank_account" | "create_bank_account_ach" | "create_bank_account_wire" | "create_bank_account_international" | "transfer_money" | "update_zeni_account_nickname" | "create_checking_account" | "deposit_check" | "create_vendor" | "onboarding_customer_view" | "onboarding_customer_view_complete" | "onboarding_customer_identity_verification_save" | "onboarding_customer_identity_verification_submit" | "onboarding_customer_business_verification_save" | "onboarding_customer_business_verification_submit" | "retry_bank_account_connection" | "dashboard_invite_sent" | "onboarding_info_saved" | "approve_original_merchant" | "approve_global_merchant" | "reject_global_merchant" | "create_global_merchant" | "fetch_global_merchant_no_recommendation" | "save_vendor_renamed" | "save_vendor_sent_for_review" | "save_vendor_marked_as_employee" | "save_vendor_marked_as_local_contractor" | "charge_card_accept_term" | "charge_card_receipt_upload" | "create_schedule" | "save_schedule" | "delete_schedule" | "save_task_detail" | "fetch_task_detail" | "delete_task" | "archive_task" | "create_tag" | "delete_tag" | "update_charge_card" | "issue_charge_card" | "notification_settings_saved" | "referral_invite_sent" | "notification_mark_as_read" | "mark_as_complete_schedule" | "cancel_journal_entry" | "settings_accounting_accounts_updated" | "create_card_setup" | "confirm_card_setup" | "add_card_payment_source" | "fetch_payment_sources" | "task_assigned_toast_notification" | "task_due_tomorrow_toast_notification" | "task_deleted_toast_notification" | "task_archived_toast_notification" | "task_overdue_toast_notification" | "task_overdue_toast_notification_creator" | "task_notification_count" | "task_activities_toast_notification" | "task_created_toast_notification" | "task_group_creation_success" | "task_group_deletion_success" | "task_group_update_success" | "primary_funding_account_updated" | "task_time_spent_validation";
|
|
9
9
|
messageText: "failed" | "success" | "notification";
|
|
10
10
|
type: import("../../..").SnackbarMessageType;
|
|
11
11
|
showStatusIcon?: boolean | undefined;
|
|
@@ -6,6 +6,7 @@ const operators_1 = require("rxjs/operators");
|
|
|
6
6
|
const toastNotificationReducer_1 = require("../toastNotificationReducer");
|
|
7
7
|
const snackbarReducer_1 = require("../../../entity/snackbar/snackbarReducer");
|
|
8
8
|
const toastNotificationState_1 = require("../toastNotificationState");
|
|
9
|
+
const toastNotificationConstants_1 = require("../toastNotificationConstants");
|
|
9
10
|
const pushToastNotificationEpic = (actions$, state$) => actions$.pipe((0, operators_1.filter)(toastNotificationReducer_1.pushToastNotification.match), (0, operators_1.mergeMap)(function () {
|
|
10
11
|
const state = state$.value.toastNotificationState;
|
|
11
12
|
const notificationCount = state.notifications.length;
|
|
@@ -18,18 +19,24 @@ const pushToastNotificationEpic = (actions$, state$) => actions$.pipe((0, operat
|
|
|
18
19
|
type: 'notification',
|
|
19
20
|
variables: [
|
|
20
21
|
{
|
|
21
|
-
variableName:
|
|
22
|
+
variableName: toastNotificationConstants_1.NOTIFICATION_COUNT_VARIABLE_NAME,
|
|
22
23
|
variableValue: notificationCount.toString(),
|
|
23
24
|
},
|
|
24
25
|
],
|
|
25
26
|
}),
|
|
26
27
|
]);
|
|
27
28
|
}
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
29
|
+
if (lastNotification != null) {
|
|
30
|
+
const notificationConfig = (0, toastNotificationState_1.getToastNotificationFromIdentifier)(lastNotification);
|
|
31
|
+
if (lastNotification === null || lastNotification === void 0 ? void 0 : lastNotification.message) {
|
|
32
|
+
notificationConfig.variables.push({
|
|
33
|
+
variableName: toastNotificationConstants_1.MESSAGE_TEXT_VARIABLE_NAME,
|
|
34
|
+
variableValue: lastNotification.message,
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
return (0, rxjs_1.from)([(0, snackbarReducer_1.openSnackbar)(notificationConfig)]);
|
|
32
38
|
}
|
|
39
|
+
return (0, rxjs_1.from)([]);
|
|
33
40
|
}));
|
|
34
41
|
exports.pushToastNotificationEpic = pushToastNotificationEpic;
|
|
35
42
|
exports.default = exports.pushToastNotificationEpic;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare const TASK_NAME_VARIABLE_NAME = "_task_name_";
|
|
2
|
+
export declare const STATUS_NAME_VARIABLE_NAME = "_status_name_";
|
|
3
|
+
export declare const MESSAGE_TEXT_VARIABLE_NAME = "_message_text_";
|
|
4
|
+
export declare const NOTIFICATION_COUNT_VARIABLE_NAME = "_notification_count_";
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.NOTIFICATION_COUNT_VARIABLE_NAME = exports.MESSAGE_TEXT_VARIABLE_NAME = exports.STATUS_NAME_VARIABLE_NAME = exports.TASK_NAME_VARIABLE_NAME = void 0;
|
|
4
|
+
exports.TASK_NAME_VARIABLE_NAME = '_task_name_';
|
|
5
|
+
exports.STATUS_NAME_VARIABLE_NAME = '_status_name_';
|
|
6
|
+
exports.MESSAGE_TEXT_VARIABLE_NAME = '_message_text_';
|
|
7
|
+
exports.NOTIFICATION_COUNT_VARIABLE_NAME = '_notification_count_';
|
|
@@ -3,23 +3,36 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.mapNotificationPayloadToToastNotification = void 0;
|
|
4
4
|
const zeniDayJS_1 = require("../../zeniDayJS");
|
|
5
5
|
const notificationTypes_1 = require("../notification/types/notificationTypes");
|
|
6
|
+
const toastNotificationConstants_1 = require("./toastNotificationConstants");
|
|
6
7
|
const mapNotificationPayloadToToastNotification = (payload) => {
|
|
7
|
-
|
|
8
|
-
const
|
|
8
|
+
const allowedVariableKeys = new Set(['task_name', 'status', 'message']);
|
|
9
|
+
const variablesKeys = Object.keys(payload.data).filter((variable) => allowedVariableKeys.has(variable));
|
|
9
10
|
const variables = [];
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
11
|
+
variablesKeys.forEach((variable) => {
|
|
12
|
+
var _a, _b, _c;
|
|
13
|
+
let variableName;
|
|
14
|
+
let variableValue;
|
|
15
|
+
switch (variable) {
|
|
16
|
+
case 'task_name':
|
|
17
|
+
variableName = toastNotificationConstants_1.TASK_NAME_VARIABLE_NAME;
|
|
18
|
+
variableValue = (_a = payload.data.task_name) !== null && _a !== void 0 ? _a : '';
|
|
19
|
+
break;
|
|
20
|
+
case 'status':
|
|
21
|
+
variableName = toastNotificationConstants_1.STATUS_NAME_VARIABLE_NAME;
|
|
22
|
+
variableValue = (_b = payload.data.status) !== null && _b !== void 0 ? _b : '';
|
|
23
|
+
break;
|
|
24
|
+
default:
|
|
25
|
+
variableName = toastNotificationConstants_1.MESSAGE_TEXT_VARIABLE_NAME;
|
|
26
|
+
variableValue = (_c = payload.data.message) !== null && _c !== void 0 ? _c : '';
|
|
27
|
+
break;
|
|
28
|
+
}
|
|
29
|
+
if (variableValue != '') {
|
|
30
|
+
variables.push({
|
|
31
|
+
variableName,
|
|
32
|
+
variableValue,
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
});
|
|
23
36
|
return {
|
|
24
37
|
notificationId: payload.notification_id,
|
|
25
38
|
notificationGroup: payload.notification_group,
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
import { ID } from '../../commonStateTypes/common';
|
|
2
2
|
import { ZeniDate } from '../../zeniDayJS';
|
|
3
3
|
import { NotificationGroup, NotificationIdentifierType } from '../notification/types/notificationTypes';
|
|
4
|
-
import {
|
|
4
|
+
import { SnackbarMessageConfig } from '../snackbar/snackbarState';
|
|
5
|
+
export interface ToastNotificationVariablesType {
|
|
6
|
+
variableName: string;
|
|
7
|
+
variableValue: string;
|
|
8
|
+
}
|
|
5
9
|
export interface ToastNotification {
|
|
6
10
|
notificationId: ID;
|
|
7
11
|
notificationGroup: NotificationGroup;
|
|
@@ -9,19 +13,15 @@ export interface ToastNotification {
|
|
|
9
13
|
message: string;
|
|
10
14
|
timestamp: ZeniDate;
|
|
11
15
|
notificationIdentifier: NotificationIdentifierType;
|
|
12
|
-
variables:
|
|
16
|
+
variables: ToastNotificationVariablesType[];
|
|
13
17
|
}
|
|
14
18
|
export interface ToastNotificationState {
|
|
15
19
|
notifications: ToastNotification[];
|
|
16
20
|
lastNotificationTime: number;
|
|
17
21
|
notificationTimeoutId: number | null;
|
|
18
22
|
}
|
|
19
|
-
interface ToastNotificationConfig {
|
|
20
|
-
|
|
21
|
-
messageText: SnackbarMessageSectionTexts;
|
|
22
|
-
type: SnackbarMessageType;
|
|
23
|
-
showStatusIcon?: boolean;
|
|
24
|
-
variables: SnackbarVariablesType[];
|
|
23
|
+
interface ToastNotificationConfig extends SnackbarMessageConfig {
|
|
24
|
+
variables: ToastNotificationVariablesType[];
|
|
25
25
|
}
|
|
26
26
|
export declare const getToastNotificationFromIdentifier: (payload: ToastNotification) => ToastNotificationConfig;
|
|
27
27
|
export {};
|
|
@@ -3,53 +3,54 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.getToastNotificationFromIdentifier = void 0;
|
|
4
4
|
const notificationTypes_1 = require("../notification/types/notificationTypes");
|
|
5
5
|
const snackbarTypes_1 = require("../snackbar/snackbarTypes");
|
|
6
|
+
const toastNotificationConstants_1 = require("./toastNotificationConstants");
|
|
6
7
|
const toastNotificationMapper = {
|
|
7
8
|
task_assigned: {
|
|
8
9
|
messageSection: 'task_assigned_toast_notification',
|
|
9
10
|
messageText: 'notification',
|
|
10
|
-
variables: [
|
|
11
|
+
variables: [toastNotificationConstants_1.TASK_NAME_VARIABLE_NAME],
|
|
11
12
|
type: 'notification',
|
|
12
13
|
},
|
|
13
14
|
task_status_updated: {
|
|
14
15
|
messageSection: 'task_due_tomorrow_toast_notification',
|
|
15
16
|
messageText: 'notification',
|
|
16
|
-
variables: [
|
|
17
|
+
variables: [toastNotificationConstants_1.TASK_NAME_VARIABLE_NAME, toastNotificationConstants_1.STATUS_NAME_VARIABLE_NAME],
|
|
17
18
|
type: 'notification',
|
|
18
19
|
},
|
|
19
20
|
task_deleted: {
|
|
20
21
|
messageSection: 'task_deleted_toast_notification',
|
|
21
22
|
messageText: 'notification',
|
|
22
|
-
variables: [
|
|
23
|
+
variables: [toastNotificationConstants_1.TASK_NAME_VARIABLE_NAME],
|
|
23
24
|
type: 'notification',
|
|
24
25
|
},
|
|
25
26
|
task_archived: {
|
|
26
27
|
messageSection: 'task_archived_toast_notification',
|
|
27
28
|
messageText: 'notification',
|
|
28
|
-
variables: [
|
|
29
|
+
variables: [toastNotificationConstants_1.TASK_NAME_VARIABLE_NAME],
|
|
29
30
|
type: 'notification',
|
|
30
31
|
},
|
|
31
32
|
task_due: {
|
|
32
33
|
messageSection: 'task_due_tomorrow_toast_notification',
|
|
33
34
|
messageText: 'notification',
|
|
34
|
-
variables: [
|
|
35
|
+
variables: [toastNotificationConstants_1.TASK_NAME_VARIABLE_NAME, toastNotificationConstants_1.STATUS_NAME_VARIABLE_NAME],
|
|
35
36
|
type: 'notification',
|
|
36
37
|
},
|
|
37
38
|
task_overdue: {
|
|
38
39
|
messageSection: 'task_overdue_toast_notification',
|
|
39
40
|
messageText: 'notification',
|
|
40
|
-
variables: [
|
|
41
|
+
variables: [toastNotificationConstants_1.TASK_NAME_VARIABLE_NAME],
|
|
41
42
|
type: 'notification',
|
|
42
43
|
},
|
|
43
44
|
task_activities: {
|
|
44
45
|
messageSection: 'task_activities_toast_notification',
|
|
45
46
|
messageText: 'notification',
|
|
46
|
-
variables: [
|
|
47
|
+
variables: [toastNotificationConstants_1.TASK_NAME_VARIABLE_NAME, toastNotificationConstants_1.MESSAGE_TEXT_VARIABLE_NAME],
|
|
47
48
|
type: 'notification',
|
|
48
49
|
},
|
|
49
50
|
task_created: {
|
|
50
51
|
messageSection: 'task_created_toast_notification',
|
|
51
52
|
messageText: 'notification',
|
|
52
|
-
variables: [
|
|
53
|
+
variables: [toastNotificationConstants_1.TASK_NAME_VARIABLE_NAME],
|
|
53
54
|
type: 'notification',
|
|
54
55
|
},
|
|
55
56
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export declare const toTypeOfTransaction: (v: string) => "schedule" | "supported";
|
|
2
2
|
export declare type TypeOfTransactionType = ReturnType<typeof toTypeOfTransaction>;
|
|
3
|
-
declare const toCustomerTransactionType: (v: string) => "invoice" | "payment" | "credit_memo" | "sales_receipt" | "delayed_credit" | "delayed_charge"
|
|
4
|
-
export declare const toCustomerTransactionTypeStrict: (v?: string | undefined) => "invoice" | "payment" | "credit_memo" | "sales_receipt" | "delayed_credit" | "delayed_charge" |
|
|
3
|
+
declare const toCustomerTransactionType: (v: string) => "refund" | "invoice" | "payment" | "credit_memo" | "sales_receipt" | "delayed_credit" | "delayed_charge";
|
|
4
|
+
export declare const toCustomerTransactionTypeStrict: (v?: string | undefined) => "refund" | "invoice" | "payment" | "credit_memo" | "sales_receipt" | "delayed_credit" | "delayed_charge" | undefined;
|
|
5
5
|
export declare type CustomerTransactionType = ReturnType<typeof toCustomerTransactionType>;
|
|
6
6
|
declare const toVendorTransactionType: (v: string) => "expense" | "check" | "bill" | "bill_payment" | "bill_payment_check" | "bill_payment_credit_card" | "vendor_credit" | "credit_card_credit";
|
|
7
7
|
export declare const toVendorTransactionTypeStrict: (v?: string | undefined) => "expense" | "check" | "bill" | "bill_payment" | "bill_payment_check" | "bill_payment_credit_card" | "vendor_credit" | "credit_card_credit" | undefined;
|
|
@@ -73,6 +73,7 @@ export interface VendorPayload extends VendorBasePayload, SpendPayload {
|
|
|
73
73
|
documents?: FilePayload[];
|
|
74
74
|
preferred_international_transfer_fee_bearer_payment_method?: string;
|
|
75
75
|
w9_document?: FilePayload[];
|
|
76
|
+
w9_document_ids?: ID[];
|
|
76
77
|
vendor_1099_status?: string;
|
|
77
78
|
tin?: Filing1099TinTypePayload;
|
|
78
79
|
vendor_1099_ytd_total?: number;
|