@zeniai/client-epic-state 4.12.39 → 4.12.41
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/__testHelpers__/apiFailure.json +6 -0
- package/lib/entity/account/accountPayload.d.ts +1 -0
- package/lib/entity/account/accountPayload.js +7 -2
- package/lib/entity/account/accountSelector.d.ts +6 -6
- package/lib/entity/account/accountState.d.ts +2 -2
- package/lib/entity/account/accountState.js +4 -0
- package/lib/entity/account/pickAndMergeForecastAccountReport.d.ts +2 -2
- package/lib/entity/accountGroup/accountGroupSelector.d.ts +44 -44
- package/lib/entity/billPay/billTransaction/billTransactionPayload.d.ts +1 -12
- package/lib/entity/billPay/billTransaction/billTransactionPayload.js +1 -23
- package/lib/entity/billPay/billTransaction/billTransactionState.d.ts +0 -12
- package/lib/entity/billPay/billTransaction/billTransactionState.js +0 -8
- package/lib/entity/jeSchedules/jeSchedulesReducer.d.ts +2 -2
- package/lib/entity/snackbar/snackbarTypes.d.ts +1 -1
- package/lib/entity/snackbar/snackbarTypes.js +0 -2
- package/lib/entity/tenant/clearAllEpic.d.ts +2 -1
- package/lib/entity/tenant/clearAllEpic.js +2 -0
- package/lib/entity/toastNotification/epic/pushToastNotificationEpic.d.ts +1 -1
- package/lib/entity/transaction/stateTypes/transactionType.d.ts +2 -2
- package/lib/entity/vendor/__mocks__/vendorStateMocks.d.ts +6 -0
- package/lib/entity/vendor/__mocks__/vendorStateMocks.js +308 -0
- package/lib/entity/vendor/vendorPayload.d.ts +8 -0
- package/lib/entity/vendor/vendorPayload.js +10 -2
- package/lib/entity/vendor/vendorState.d.ts +6 -0
- package/lib/entity/vendor/vendorType.d.ts +8 -0
- package/lib/entity/vendor/vendorType.js +10 -0
- package/lib/epic.d.ts +2 -3
- package/lib/epic.js +2 -3
- package/lib/index.d.ts +9 -6
- package/lib/index.js +19 -15
- package/lib/reducer.d.ts +3 -0
- package/lib/reducer.js +3 -0
- package/lib/view/accountList/accountListReducer.d.ts +2 -2
- package/lib/view/accountList/accountListReducer.js +2 -0
- package/lib/view/accountMappingView/accountMappingPayload.d.ts +5 -0
- package/lib/view/accountMappingView/accountMappingPayload.js +19 -1
- package/lib/view/accountMappingView/accountMappingReducer.js +31 -9
- package/lib/view/accountMappingView/accountMappingState.d.ts +8 -0
- package/lib/view/accountMappingView/accountMappingViewSelector.d.ts +4 -0
- package/lib/view/accountMappingView/accountMappingViewSelector.js +18 -0
- package/lib/view/accountMappingView/saveAccountMappingViewEpic.js +2 -1
- package/lib/view/cardBalance/cardBalanceSelector.d.ts +2 -2
- 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/cashBalance/cashBalanceSelector.d.ts +2 -2
- 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/settingsView/settingsViewHelpers.js +3 -1
- package/lib/view/spendManagement/billPay/billDetailView/billDetailViewPayload.d.ts +0 -5
- package/lib/view/spendManagement/billPay/billDetailView/billDetailViewReducer.d.ts +1 -22
- package/lib/view/spendManagement/billPay/billDetailView/billDetailViewReducer.js +2 -133
- package/lib/view/spendManagement/billPay/billDetailView/billDetailViewSelector.d.ts +1 -2
- package/lib/view/spendManagement/billPay/billDetailView/billDetailViewSelector.js +0 -2
- package/lib/view/spendManagement/billPay/billDetailView/billDetailViewState.d.ts +0 -9
- package/lib/view/spendManagement/billPay/billDetailView/billDetailViewState.js +0 -14
- package/lib/view/spendManagement/billPay/billDetailView/epics/fetchBillDetailEpic.d.ts +2 -2
- package/lib/view/spendManagement/billPay/billDetailView/epics/fetchBillDetailEpic.js +1 -10
- package/lib/view/spendManagement/billPay/billPayReview/billPayReviewSelector.d.ts +0 -1
- package/lib/view/spendManagement/billPay/billPayReview/billPayReviewSelector.js +0 -3
- package/lib/view/spendManagement/billPay/editBillView/editBillViewReducer.d.ts +1 -3
- package/lib/view/spendManagement/billPay/editBillView/editBillViewReducer.js +2 -6
- package/lib/view/spendManagement/billPay/editBillView/editBillViewSelector.d.ts +0 -1
- package/lib/view/spendManagement/billPay/editBillView/editBillViewSelector.js +0 -3
- package/lib/view/spendManagement/billPay/editBillView/editBillViewState.d.ts +0 -1
- package/lib/view/spendManagement/billPay/editBillView/epics/saveBillDetailEpic.d.ts +0 -68
- package/lib/view/spendManagement/billPay/editBillView/epics/saveBillDetailEpic.js +1 -2
- package/lib/view/tagView/epics/createTagEpic.d.ts +1 -1
- package/lib/view/tagView/epics/deleteTagEpic.d.ts +1 -1
- package/lib/view/topEx/topExSelector.d.ts +1 -1
- package/lib/view/transactionDetail/transactionDetailState.d.ts +2 -2
- package/lib/view/transactionList/transactionListReducer.d.ts +12 -12
- package/lib/view/vendorFiling1099List/__mock__/json/vendorFiling1099ListSuccess.json +90 -0
- package/lib/view/vendorFiling1099List/__mock__/vendorFiling1099ListMock.d.ts +11 -0
- package/lib/view/vendorFiling1099List/__mock__/vendorFiling1099ListMock.js +101 -0
- package/lib/view/vendorFiling1099List/__mock__/vendorFiling1099ListSelectorMock.d.ts +2 -0
- package/lib/view/vendorFiling1099List/__mock__/vendorFiling1099ListSelectorMock.js +21 -0
- package/lib/view/vendorFiling1099List/fetchVendorsFiling1099ListEpic.d.ts +9 -0
- package/lib/view/vendorFiling1099List/fetchVendorsFiling1099ListEpic.js +40 -0
- package/lib/view/vendorFiling1099List/vendorFiling1099ListPayload.d.ts +13 -0
- package/lib/view/vendorFiling1099List/vendorFiling1099ListPayload.js +2 -0
- package/lib/view/vendorFiling1099List/vendorFiling1099ListReducer.d.ts +19 -0
- package/lib/view/vendorFiling1099List/vendorFiling1099ListReducer.js +71 -0
- package/lib/view/vendorFiling1099List/vendorFiling1099ListSelector.d.ts +15 -0
- package/lib/view/vendorFiling1099List/vendorFiling1099ListSelector.js +49 -0
- package/lib/view/vendorFiling1099List/vendorFiling1099ListState.d.ts +23 -0
- package/lib/view/vendorFiling1099List/vendorFiling1099ListState.js +11 -0
- package/lib/view/vendorList/vendorListSelector.d.ts +2 -2
- package/lib/view/vendorList/vendorListSelector.js +4 -0
- package/lib/view/vendorTabView/fetchVendorTabViewEpic.d.ts +2 -1
- package/lib/view/vendorTabView/fetchVendorTabViewEpic.js +9 -1
- package/lib/view/vendorTabView/vendorTabViewReducer.d.ts +2 -0
- package/lib/view/vendorTabView/vendorTabViewReducer.js +2 -1
- package/package.json +1 -1
- package/lib/view/spendManagement/billPay/billDetailView/epics/fetchEligibleActionsForBillEpic.d.ts +0 -7
- package/lib/view/spendManagement/billPay/billDetailView/epics/fetchEligibleActionsForBillEpic.js +0 -42
- package/lib/view/spendManagement/billPay/billDetailView/epics/retryOrRefundBillEpic.d.ts +0 -9
- package/lib/view/spendManagement/billPay/billDetailView/epics/retryOrRefundBillEpic.js +0 -76
|
@@ -3,75 +3,7 @@ import { ZeniAPI } from '../../../../../zeniAPI';
|
|
|
3
3
|
import { RootState } from '../../../../../reducer';
|
|
4
4
|
import { saveBillDetail, saveBillSuccessOrFailure } from '../editBillViewReducer';
|
|
5
5
|
import { updateBillTransaction } from '../../../../../entity/billPay/billTransaction/billTransactionReducer';
|
|
6
|
-
import { EditBillDetail } from '../editBillViewState';
|
|
7
|
-
import { BillStageCodeType, BillTransactionState } from '../../../../../entity/billPay/billTransaction/billTransactionState';
|
|
8
|
-
import { TransactionWithAccountAndClassLinePayload } from '../../../../../entity/transaction/payloadTypes/transactionLinePayload';
|
|
9
|
-
import { AccountState } from '../../../../../entity/account/accountState';
|
|
10
|
-
import { PaymentAccountState } from '../../../../../entity/paymentAccount/paymentAccountState';
|
|
11
6
|
import { updateRecurringBillConfigs, updateRecurringBills } from '../../../../../entity/billPay/recurringBills/recurringBillsReducer';
|
|
12
|
-
import { RecurringBillState } from '../../../../../entity/billPay/recurringBills/recurringBillsState';
|
|
13
|
-
import { PaymentAchSubConfigCodeType, BillPaymentConfigCodeType, BillPaymentWireSubConfigCodeType } from '../../billPayConfig/billPayConfigState';
|
|
14
7
|
import { openSnackbar } from '../../../../../entity/snackbar/snackbarReducer';
|
|
15
|
-
import { RecurringBillConfigBodyPayload } from '../../../../../entity/billPay/recurringBills/recurringBillsPayload';
|
|
16
8
|
export declare type ActionType = ReturnType<typeof saveBillDetail> | ReturnType<typeof updateBillTransaction> | ReturnType<typeof openSnackbar> | ReturnType<typeof saveBillSuccessOrFailure> | ReturnType<typeof updateRecurringBillConfigs> | ReturnType<typeof updateRecurringBills>;
|
|
17
9
|
export declare const saveBillDetailEpic: (actions$: ActionsObservable<ActionType>, state$: StateObservable<RootState>, zeniAPI: ZeniAPI) => import("rxjs").Observable<ActionType>;
|
|
18
|
-
export declare function prepareSaveBillPayload(accountState: AccountState, billTransactionState: BillTransactionState, paymentAccountState: PaymentAccountState, recurringBillState: RecurringBillState, billDetail: EditBillDetail, billStageCode: BillStageCodeType): Partial<SaveBillPayload>;
|
|
19
|
-
interface SaveBillPayload {
|
|
20
|
-
vendor_id: string;
|
|
21
|
-
vendor_name?: string | null;
|
|
22
|
-
candidate_vendor_name: string;
|
|
23
|
-
transaction_type: string;
|
|
24
|
-
bill_pay_provider: string;
|
|
25
|
-
account_id: string;
|
|
26
|
-
file_id: string;
|
|
27
|
-
transaction_date: string | null;
|
|
28
|
-
due_date: string | null;
|
|
29
|
-
total_amount: number;
|
|
30
|
-
recipient_total_amount: number;
|
|
31
|
-
bill_pay_info: {
|
|
32
|
-
stage: {
|
|
33
|
-
code: string;
|
|
34
|
-
};
|
|
35
|
-
payment_date: string | null;
|
|
36
|
-
from_account: {
|
|
37
|
-
account_id: string;
|
|
38
|
-
account_type: string;
|
|
39
|
-
};
|
|
40
|
-
to_account: {
|
|
41
|
-
account_id?: string | null;
|
|
42
|
-
payment_instrument_id?: string | null;
|
|
43
|
-
};
|
|
44
|
-
is_cancelled: boolean;
|
|
45
|
-
bill_payment_method_type: {
|
|
46
|
-
code: BillPaymentConfigCodeType | null;
|
|
47
|
-
name: string;
|
|
48
|
-
sub_code: PaymentAchSubConfigCodeType | BillPaymentWireSubConfigCodeType | null;
|
|
49
|
-
};
|
|
50
|
-
to_account_vendor_email?: string | null;
|
|
51
|
-
is_collect_to_account_info_from_vendor_contact?: boolean;
|
|
52
|
-
international_transfer_fee_bearer_payment_method?: string | null;
|
|
53
|
-
};
|
|
54
|
-
document_id: string;
|
|
55
|
-
transaction_memo: string;
|
|
56
|
-
currency_code: string | null;
|
|
57
|
-
recipient_currency_code: string | null;
|
|
58
|
-
lines: TransactionWithAccountAndClassLinePayload[];
|
|
59
|
-
sync_token: string | null;
|
|
60
|
-
update_time: string | null;
|
|
61
|
-
are_approvals_serialized?: boolean;
|
|
62
|
-
exchange_rate: number | null;
|
|
63
|
-
is_recurring?: boolean | null;
|
|
64
|
-
recurring_bill_config?: RecurringBillConfigBodyPayload | null;
|
|
65
|
-
recurring_bill_instances?: RecurringBillInstancePayload[] | null;
|
|
66
|
-
future_recurring_bill_instances?: RecurringBillInstancePayload[] | null;
|
|
67
|
-
is_update_future_recurring_bills?: boolean | null;
|
|
68
|
-
is_update_recurring_bill_config?: boolean | null;
|
|
69
|
-
ocr_parsed_vendor_term: string | null;
|
|
70
|
-
}
|
|
71
|
-
interface RecurringBillInstancePayload {
|
|
72
|
-
instance: number;
|
|
73
|
-
payment_date: string;
|
|
74
|
-
vendor_receive_date: string;
|
|
75
|
-
vendor_receive_date_notes: string;
|
|
76
|
-
}
|
|
77
|
-
export {};
|
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.
|
|
6
|
+
exports.saveBillDetailEpic = void 0;
|
|
7
7
|
const rxjs_1 = require("rxjs");
|
|
8
8
|
const operators_1 = require("rxjs/operators");
|
|
9
9
|
const get_1 = __importDefault(require("lodash/get"));
|
|
@@ -218,7 +218,6 @@ function prepareSaveBillPayload(accountState, billTransactionState, paymentAccou
|
|
|
218
218
|
}
|
|
219
219
|
return payload;
|
|
220
220
|
}
|
|
221
|
-
exports.prepareSaveBillPayload = prepareSaveBillPayload;
|
|
222
221
|
const getBillPaymentMethodTypePayload = (paymentType) => {
|
|
223
222
|
var _a;
|
|
224
223
|
const code = paymentType === null || paymentType === void 0 ? void 0 : paymentType.method.split('_')[1];
|
|
@@ -8,7 +8,7 @@ import { updateCreatedTagToLocalStore } from '../../taskManager/taskDetailView/t
|
|
|
8
8
|
export declare type ActionType = ReturnType<typeof createTag> | ReturnType<typeof updateTagCreateStatus> | ReturnType<typeof openSnackbar> | ReturnType<typeof updateCreatedTagToLocalStore> | ReturnType<typeof updateTags>;
|
|
9
9
|
export declare const createTagEpic: (actions$: ActionsObservable<ActionType>, _state$: StateObservable<RootState>, zeniAPI: ZeniAPI) => import("rxjs").Observable<{
|
|
10
10
|
payload: {
|
|
11
|
-
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" | "
|
|
11
|
+
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";
|
|
12
12
|
messageText: "failed" | "success" | "notification";
|
|
13
13
|
type: import("../../..").SnackbarMessageType;
|
|
14
14
|
showStatusIcon?: boolean | undefined;
|
|
@@ -9,7 +9,7 @@ export declare const deleteTagEpic: (actions$: ActionsObservable<ActionType>, _s
|
|
|
9
9
|
type: string;
|
|
10
10
|
} | {
|
|
11
11
|
payload: {
|
|
12
|
-
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" | "
|
|
12
|
+
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";
|
|
13
13
|
messageText: "failed" | "success" | "notification";
|
|
14
14
|
type: import("../../..").SnackbarMessageType;
|
|
15
15
|
showStatusIcon?: boolean | undefined;
|
|
@@ -22,7 +22,7 @@ export declare const getTopExpenses: (accountState: AccountState, topExState: To
|
|
|
22
22
|
accountsOrdered: {
|
|
23
23
|
accountId: string;
|
|
24
24
|
accountName: string;
|
|
25
|
-
accountType: "cash_position" | "fixed_assets" | "bank" | "credit_card" | "expenses" | "cogs" | "income" | "cash_in" | "cash_out" | "other_income" | "other_expense" | "accounts_receivable" | "other_current_assets" | "other_assets" | "accounts_payable" | "other_current_liabilities" | "long_term_liabilities" | "equity" | "current_liabilities" | "current_assets" | undefined;
|
|
25
|
+
accountType: "cash_position" | "fixed_assets" | "bank" | "credit_card" | "expenses" | "cogs" | "income" | "cash_in" | "cash_out" | "other_income" | "other_expense" | "accounts_receivable" | "other_current_assets" | "other_assets" | "accounts_payable" | "other_current_liabilities" | "long_term_liabilities" | "equity" | "current_liabilities" | "current_assets" | "accounts_1099" | "gl_accounts" | undefined;
|
|
26
26
|
accountSubType: string | undefined;
|
|
27
27
|
accountDescription: string;
|
|
28
28
|
logo: import("url-parse")<string> | import("url-parse")<Record<string, string | undefined>> | undefined;
|
|
@@ -8,9 +8,9 @@ import { Transaction, TransactionID } from '../../entity/transaction/stateTypes/
|
|
|
8
8
|
import { VendorBase } from '../../entity/vendor/vendorState';
|
|
9
9
|
import { EntityRecommendationKey } from '../recommendation/recommendationState';
|
|
10
10
|
import { TransactionDetailLocalData } from './transactionDetailTypes';
|
|
11
|
-
export declare const getTransactionDetailKey: (transactionId: TransactionID) => `${string}_expense` | `${string}
|
|
11
|
+
export declare const getTransactionDetailKey: (transactionId: TransactionID) => `${string}_expense` | `${string}_invoice` | `${string}_payment` | `${string}_credit_memo` | `${string}_sales_receipt` | `${string}_delayed_credit` | `${string}_delayed_charge` | `${string}_refund` | `${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`;
|
|
12
12
|
export declare type TransactionDetailKey = ReturnType<typeof getTransactionDetailKey>;
|
|
13
|
-
export declare const getZeniTransactionDetailKey: (transactionId: TransactionID) => `${string}_expense` | `${string}
|
|
13
|
+
export declare const getZeniTransactionDetailKey: (transactionId: TransactionID) => `${string}_expense` | `${string}_invoice` | `${string}_payment` | `${string}_credit_memo` | `${string}_sales_receipt` | `${string}_delayed_credit` | `${string}_delayed_charge` | `${string}_refund` | `${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`;
|
|
14
14
|
export declare type ZeniTransactionDetailKey = ReturnType<typeof getTransactionDetailKey>;
|
|
15
15
|
export declare const getThirdPartyIdFromTransactionId: (transactionId: TransactionID) => string;
|
|
16
16
|
/**
|
|
@@ -9,23 +9,23 @@ import { ZeniAPIStatus } from '../../responsePayload';
|
|
|
9
9
|
import { TransactionListByAccountPayload, TransactionListByClassPayload, TransactionListByEntityPayload } from './transactionListPayload';
|
|
10
10
|
import { TransactionListState, TransactionListUIState, TransactionCategoryType } from './transactionListState';
|
|
11
11
|
export declare const initialState: TransactionListState;
|
|
12
|
-
export declare const parallelFetchAccountTransactionList: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[accountId: string, accountType: "cash_position" | "fixed_assets" | "bank" | "credit_card" | "expenses" | "cogs" | "income" | "cash_in" | "cash_out" | "other_income" | "other_expense" | "accounts_receivable" | "other_current_assets" | "other_assets" | "accounts_payable" | "other_current_liabilities" | "long_term_liabilities" | "equity" | "current_liabilities" | "current_assets", period: TimePeriod, accountName?: string | undefined, cacheOverride?: any, includeSubAccountTransactions?: any], {
|
|
12
|
+
export declare const parallelFetchAccountTransactionList: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[accountId: string, accountType: "cash_position" | "fixed_assets" | "bank" | "credit_card" | "expenses" | "cogs" | "income" | "cash_in" | "cash_out" | "other_income" | "other_expense" | "accounts_receivable" | "other_current_assets" | "other_assets" | "accounts_payable" | "other_current_liabilities" | "long_term_liabilities" | "equity" | "current_liabilities" | "current_assets" | "accounts_1099" | "gl_accounts", period: TimePeriod, accountName?: string | undefined, cacheOverride?: any, includeSubAccountTransactions?: any], {
|
|
13
13
|
accountId: string;
|
|
14
|
-
accountType: "cash_position" | "fixed_assets" | "bank" | "credit_card" | "expenses" | "cogs" | "income" | "cash_in" | "cash_out" | "other_income" | "other_expense" | "accounts_receivable" | "other_current_assets" | "other_assets" | "accounts_payable" | "other_current_liabilities" | "long_term_liabilities" | "equity" | "current_liabilities" | "current_assets";
|
|
14
|
+
accountType: "cash_position" | "fixed_assets" | "bank" | "credit_card" | "expenses" | "cogs" | "income" | "cash_in" | "cash_out" | "other_income" | "other_expense" | "accounts_receivable" | "other_current_assets" | "other_assets" | "accounts_payable" | "other_current_liabilities" | "long_term_liabilities" | "equity" | "current_liabilities" | "current_assets" | "accounts_1099" | "gl_accounts";
|
|
15
15
|
period: TimePeriod;
|
|
16
16
|
accountName: string | undefined;
|
|
17
17
|
cacheOverride: any;
|
|
18
18
|
includeSubAccountTransactions: any;
|
|
19
|
-
}, string, never, never>, fetchAccountTransactionList: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[accountId: string, accountType: "cash_position" | "fixed_assets" | "bank" | "credit_card" | "expenses" | "cogs" | "income" | "cash_in" | "cash_out" | "other_income" | "other_expense" | "accounts_receivable" | "other_current_assets" | "other_assets" | "accounts_payable" | "other_current_liabilities" | "long_term_liabilities" | "equity" | "current_liabilities" | "current_assets", period: TimePeriod, includeSubAccountTransactions: boolean, accountName?: string | undefined, cacheOverride?: any], {
|
|
19
|
+
}, string, never, never>, fetchAccountTransactionList: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[accountId: string, accountType: "cash_position" | "fixed_assets" | "bank" | "credit_card" | "expenses" | "cogs" | "income" | "cash_in" | "cash_out" | "other_income" | "other_expense" | "accounts_receivable" | "other_current_assets" | "other_assets" | "accounts_payable" | "other_current_liabilities" | "long_term_liabilities" | "equity" | "current_liabilities" | "current_assets" | "accounts_1099" | "gl_accounts", period: TimePeriod, includeSubAccountTransactions: boolean, accountName?: string | undefined, cacheOverride?: any], {
|
|
20
20
|
accountId: string;
|
|
21
|
-
accountType: "cash_position" | "fixed_assets" | "bank" | "credit_card" | "expenses" | "cogs" | "income" | "cash_in" | "cash_out" | "other_income" | "other_expense" | "accounts_receivable" | "other_current_assets" | "other_assets" | "accounts_payable" | "other_current_liabilities" | "long_term_liabilities" | "equity" | "current_liabilities" | "current_assets";
|
|
21
|
+
accountType: "cash_position" | "fixed_assets" | "bank" | "credit_card" | "expenses" | "cogs" | "income" | "cash_in" | "cash_out" | "other_income" | "other_expense" | "accounts_receivable" | "other_current_assets" | "other_assets" | "accounts_payable" | "other_current_liabilities" | "long_term_liabilities" | "equity" | "current_liabilities" | "current_assets" | "accounts_1099" | "gl_accounts";
|
|
22
22
|
period: TimePeriod;
|
|
23
23
|
accountName: string | undefined;
|
|
24
24
|
includeSubAccountTransactions: boolean;
|
|
25
25
|
cacheOverride: any;
|
|
26
|
-
}, string, never, never>, updateTransactionListByAccount: import("@reduxjs/toolkit").ActionCreatorWithPayload<TransactionListByAccountPayload, string>, updateTransactionListByAccountFailure: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[accountId: string, accountType: "cash_position" | "fixed_assets" | "bank" | "credit_card" | "expenses" | "cogs" | "income" | "cash_in" | "cash_out" | "other_income" | "other_expense" | "accounts_receivable" | "other_current_assets" | "other_assets" | "accounts_payable" | "other_current_liabilities" | "long_term_liabilities" | "equity" | "current_liabilities" | "current_assets", period: TimePeriod, error: ZeniAPIStatus<Record<string, unknown>>], {
|
|
26
|
+
}, string, never, never>, updateTransactionListByAccount: import("@reduxjs/toolkit").ActionCreatorWithPayload<TransactionListByAccountPayload, string>, updateTransactionListByAccountFailure: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[accountId: string, accountType: "cash_position" | "fixed_assets" | "bank" | "credit_card" | "expenses" | "cogs" | "income" | "cash_in" | "cash_out" | "other_income" | "other_expense" | "accounts_receivable" | "other_current_assets" | "other_assets" | "accounts_payable" | "other_current_liabilities" | "long_term_liabilities" | "equity" | "current_liabilities" | "current_assets" | "accounts_1099" | "gl_accounts", period: TimePeriod, error: ZeniAPIStatus<Record<string, unknown>>], {
|
|
27
27
|
accountId: string;
|
|
28
|
-
accountType: "cash_position" | "fixed_assets" | "bank" | "credit_card" | "expenses" | "cogs" | "income" | "cash_in" | "cash_out" | "other_income" | "other_expense" | "accounts_receivable" | "other_current_assets" | "other_assets" | "accounts_payable" | "other_current_liabilities" | "long_term_liabilities" | "equity" | "current_liabilities" | "current_assets";
|
|
28
|
+
accountType: "cash_position" | "fixed_assets" | "bank" | "credit_card" | "expenses" | "cogs" | "income" | "cash_in" | "cash_out" | "other_income" | "other_expense" | "accounts_receivable" | "other_current_assets" | "other_assets" | "accounts_payable" | "other_current_liabilities" | "long_term_liabilities" | "equity" | "current_liabilities" | "current_assets" | "accounts_1099" | "gl_accounts";
|
|
29
29
|
period: TimePeriod;
|
|
30
30
|
error: ZeniAPIStatus<Record<string, unknown>>;
|
|
31
31
|
}, string, never, never>, parallelFetchEntityTransactionList: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[entity: Entity, period: TimePeriod, cacheOverride?: any], {
|
|
@@ -45,15 +45,15 @@ export declare const parallelFetchAccountTransactionList: import("@reduxjs/toolk
|
|
|
45
45
|
accountId: ID;
|
|
46
46
|
accountType: AccountType;
|
|
47
47
|
uiState: TransactionListUIState;
|
|
48
|
-
}, string>, parallelFetchClassTransactionList: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[accountId: string, accountType: "cash_position" | "fixed_assets" | "bank" | "credit_card" | "expenses" | "cogs" | "income" | "cash_in" | "cash_out" | "other_income" | "other_expense" | "accounts_receivable" | "other_current_assets" | "other_assets" | "accounts_payable" | "other_current_liabilities" | "long_term_liabilities" | "equity" | "current_liabilities" | "current_assets", classId: string, period: TimePeriod, cacheOverride?: any], {
|
|
48
|
+
}, string>, parallelFetchClassTransactionList: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[accountId: string, accountType: "cash_position" | "fixed_assets" | "bank" | "credit_card" | "expenses" | "cogs" | "income" | "cash_in" | "cash_out" | "other_income" | "other_expense" | "accounts_receivable" | "other_current_assets" | "other_assets" | "accounts_payable" | "other_current_liabilities" | "long_term_liabilities" | "equity" | "current_liabilities" | "current_assets" | "accounts_1099" | "gl_accounts", classId: string, period: TimePeriod, cacheOverride?: any], {
|
|
49
49
|
accountId: string;
|
|
50
|
-
accountType: "cash_position" | "fixed_assets" | "bank" | "credit_card" | "expenses" | "cogs" | "income" | "cash_in" | "cash_out" | "other_income" | "other_expense" | "accounts_receivable" | "other_current_assets" | "other_assets" | "accounts_payable" | "other_current_liabilities" | "long_term_liabilities" | "equity" | "current_liabilities" | "current_assets";
|
|
50
|
+
accountType: "cash_position" | "fixed_assets" | "bank" | "credit_card" | "expenses" | "cogs" | "income" | "cash_in" | "cash_out" | "other_income" | "other_expense" | "accounts_receivable" | "other_current_assets" | "other_assets" | "accounts_payable" | "other_current_liabilities" | "long_term_liabilities" | "equity" | "current_liabilities" | "current_assets" | "accounts_1099" | "gl_accounts";
|
|
51
51
|
classId: string;
|
|
52
52
|
period: TimePeriod;
|
|
53
53
|
cacheOverride: any;
|
|
54
|
-
}, string, never, never>, fetchClassTransactionList: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[accountId: string, accountType: "cash_position" | "fixed_assets" | "bank" | "credit_card" | "expenses" | "cogs" | "income" | "cash_in" | "cash_out" | "other_income" | "other_expense" | "accounts_receivable" | "other_current_assets" | "other_assets" | "accounts_payable" | "other_current_liabilities" | "long_term_liabilities" | "equity" | "current_liabilities" | "current_assets", classId: string, period: TimePeriod, cacheOverride?: any], {
|
|
54
|
+
}, string, never, never>, fetchClassTransactionList: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[accountId: string, accountType: "cash_position" | "fixed_assets" | "bank" | "credit_card" | "expenses" | "cogs" | "income" | "cash_in" | "cash_out" | "other_income" | "other_expense" | "accounts_receivable" | "other_current_assets" | "other_assets" | "accounts_payable" | "other_current_liabilities" | "long_term_liabilities" | "equity" | "current_liabilities" | "current_assets" | "accounts_1099" | "gl_accounts", classId: string, period: TimePeriod, cacheOverride?: any], {
|
|
55
55
|
accountId: string;
|
|
56
|
-
accountType: "cash_position" | "fixed_assets" | "bank" | "credit_card" | "expenses" | "cogs" | "income" | "cash_in" | "cash_out" | "other_income" | "other_expense" | "accounts_receivable" | "other_current_assets" | "other_assets" | "accounts_payable" | "other_current_liabilities" | "long_term_liabilities" | "equity" | "current_liabilities" | "current_assets";
|
|
56
|
+
accountType: "cash_position" | "fixed_assets" | "bank" | "credit_card" | "expenses" | "cogs" | "income" | "cash_in" | "cash_out" | "other_income" | "other_expense" | "accounts_receivable" | "other_current_assets" | "other_assets" | "accounts_payable" | "other_current_liabilities" | "long_term_liabilities" | "equity" | "current_liabilities" | "current_assets" | "accounts_1099" | "gl_accounts";
|
|
57
57
|
classId: string;
|
|
58
58
|
period: TimePeriod;
|
|
59
59
|
cacheOverride: any;
|
|
@@ -62,9 +62,9 @@ export declare const parallelFetchAccountTransactionList: import("@reduxjs/toolk
|
|
|
62
62
|
accountType: AccountType;
|
|
63
63
|
classId: ID;
|
|
64
64
|
uiState: TransactionListUIState;
|
|
65
|
-
}, string>, updateTransactionListByClassFailure: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[accountId: string, accountType: "cash_position" | "fixed_assets" | "bank" | "credit_card" | "expenses" | "cogs" | "income" | "cash_in" | "cash_out" | "other_income" | "other_expense" | "accounts_receivable" | "other_current_assets" | "other_assets" | "accounts_payable" | "other_current_liabilities" | "long_term_liabilities" | "equity" | "current_liabilities" | "current_assets", classId: string, period: TimePeriod, error: ZeniAPIStatus<Record<string, unknown>>], {
|
|
65
|
+
}, string>, updateTransactionListByClassFailure: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[accountId: string, accountType: "cash_position" | "fixed_assets" | "bank" | "credit_card" | "expenses" | "cogs" | "income" | "cash_in" | "cash_out" | "other_income" | "other_expense" | "accounts_receivable" | "other_current_assets" | "other_assets" | "accounts_payable" | "other_current_liabilities" | "long_term_liabilities" | "equity" | "current_liabilities" | "current_assets" | "accounts_1099" | "gl_accounts", classId: string, period: TimePeriod, error: ZeniAPIStatus<Record<string, unknown>>], {
|
|
66
66
|
accountId: string;
|
|
67
|
-
accountType: "cash_position" | "fixed_assets" | "bank" | "credit_card" | "expenses" | "cogs" | "income" | "cash_in" | "cash_out" | "other_income" | "other_expense" | "accounts_receivable" | "other_current_assets" | "other_assets" | "accounts_payable" | "other_current_liabilities" | "long_term_liabilities" | "equity" | "current_liabilities" | "current_assets";
|
|
67
|
+
accountType: "cash_position" | "fixed_assets" | "bank" | "credit_card" | "expenses" | "cogs" | "income" | "cash_in" | "cash_out" | "other_income" | "other_expense" | "accounts_receivable" | "other_current_assets" | "other_assets" | "accounts_payable" | "other_current_liabilities" | "long_term_liabilities" | "equity" | "current_liabilities" | "current_assets" | "accounts_1099" | "gl_accounts";
|
|
68
68
|
classId: string;
|
|
69
69
|
period: TimePeriod;
|
|
70
70
|
error: ZeniAPIStatus<Record<string, unknown>>;
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
{
|
|
2
|
+
"data": {
|
|
3
|
+
"filter": null,
|
|
4
|
+
"query": {
|
|
5
|
+
"end_date": "2024-12-31",
|
|
6
|
+
"group_by": "vendor",
|
|
7
|
+
"sort_order": "desc",
|
|
8
|
+
"source_account_type": "bank",
|
|
9
|
+
"start_date": "2024-01-01"
|
|
10
|
+
},
|
|
11
|
+
"query_definitions": {},
|
|
12
|
+
"report": {
|
|
13
|
+
"currency": {
|
|
14
|
+
"currency_code": null,
|
|
15
|
+
"currency_symbol": null
|
|
16
|
+
},
|
|
17
|
+
"is_vendor_1099_populated": true,
|
|
18
|
+
"report_id": "vendor_1099",
|
|
19
|
+
"report_title": "Vendor 1099",
|
|
20
|
+
"status": {
|
|
21
|
+
"code": 200,
|
|
22
|
+
"description": "All accounts refreshed successfully",
|
|
23
|
+
"is_filtered_report": false,
|
|
24
|
+
"last_refresh_attempt_time": "2024-09-26T13:14:02.150830",
|
|
25
|
+
"last_refresh_success_time": "2024-09-26T13:14:02.150818",
|
|
26
|
+
"message": "success"
|
|
27
|
+
},
|
|
28
|
+
"vendors": [
|
|
29
|
+
{
|
|
30
|
+
"vendor_id": "vendor_j12jh1g2g12jg3jh12:12",
|
|
31
|
+
"qbo_id": "12",
|
|
32
|
+
"vendor_name": "Sample Vendor 1",
|
|
33
|
+
"title": "",
|
|
34
|
+
"suffix": "",
|
|
35
|
+
"first_name": "Sample",
|
|
36
|
+
"middle_name": "",
|
|
37
|
+
"last_name": "Vendor",
|
|
38
|
+
"vendor_type": "Individual",
|
|
39
|
+
"logo": {
|
|
40
|
+
"url": "",
|
|
41
|
+
"base64": ""
|
|
42
|
+
},
|
|
43
|
+
"owner": null,
|
|
44
|
+
"balance": 0,
|
|
45
|
+
"is_deleted": false,
|
|
46
|
+
"qbo_create_time": "2022-01-24T05:59:37.057383",
|
|
47
|
+
"qbo_update_time": "2022-01-24T05:59:37.057383",
|
|
48
|
+
"create_time": "2022-01-24T05:59:37.057383",
|
|
49
|
+
"update_time": "2022-01-24T05:59:37.057383",
|
|
50
|
+
"email": "",
|
|
51
|
+
"phone": "",
|
|
52
|
+
"website_url": "",
|
|
53
|
+
"currency_code": "",
|
|
54
|
+
"currency_symbol": "",
|
|
55
|
+
"country_code": "US",
|
|
56
|
+
"billing_address_id": "a_e3e99a8b-d400-42ac-ae09-e655bff1af97",
|
|
57
|
+
"billing_address": {
|
|
58
|
+
"address_id": "a_e3e99a8b-d400-42ac-ae09-e655bff1af97",
|
|
59
|
+
"city": "Bangalore",
|
|
60
|
+
"country": "India",
|
|
61
|
+
"country_code": null,
|
|
62
|
+
"create_time": "2022-02-01T15:47:44.681429",
|
|
63
|
+
"hash_value": "2be1de50bedd7a2dfb8094846698b2b8bc86869bf903c27b69b74ae3e2651983",
|
|
64
|
+
"latitude": null,
|
|
65
|
+
"longitude": null,
|
|
66
|
+
"postal_code": "560001",
|
|
67
|
+
"state": "Karnataka",
|
|
68
|
+
"street": ["2nd lane", "Opp Peter England showroom", "Mg Road"],
|
|
69
|
+
"update_time": "2022-02-01T15:47:44.681439"
|
|
70
|
+
},
|
|
71
|
+
"documents": [],
|
|
72
|
+
"vendor_currency_code": "USD",
|
|
73
|
+
"vendor_currency_symbol": "$",
|
|
74
|
+
"tin": {
|
|
75
|
+
"type": "ein",
|
|
76
|
+
"value": "550258131"
|
|
77
|
+
},
|
|
78
|
+
"vendor_1099_status": "incomplete",
|
|
79
|
+
"vendor_1099_ytd_total": -2287.0,
|
|
80
|
+
"w9_document": []
|
|
81
|
+
}
|
|
82
|
+
],
|
|
83
|
+
"version": "2.0"
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
"status": {
|
|
87
|
+
"code": 200,
|
|
88
|
+
"message": "Successful"
|
|
89
|
+
}
|
|
90
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { VendorFiling1099ListResponse } from '../vendorFiling1099ListPayload';
|
|
2
|
+
import { VendorFiling1099ListState } from '../vendorFiling1099ListState';
|
|
3
|
+
import { RootState } from '../../../reducer';
|
|
4
|
+
export { vendorFiling1099ListSelectorMock } from './vendorFiling1099ListSelectorMock';
|
|
5
|
+
export declare const vendorFiling1099ListSuccessResponse: VendorFiling1099ListResponse;
|
|
6
|
+
export declare const vendorFiling1099ListFailureResponse: VendorFiling1099ListResponse;
|
|
7
|
+
export declare const vendorFiling1099ListInProgressState: VendorFiling1099ListState;
|
|
8
|
+
export declare const vendorFiling1099ListInProgressInitialState: VendorFiling1099ListState;
|
|
9
|
+
export declare const vendorFiling1099ListSuccessState: VendorFiling1099ListState;
|
|
10
|
+
export declare const vendorFiling1099ListFailureState: VendorFiling1099ListState;
|
|
11
|
+
export declare const rootStateWithVendorList: RootState;
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.rootStateWithVendorList = exports.vendorFiling1099ListFailureState = exports.vendorFiling1099ListSuccessState = exports.vendorFiling1099ListInProgressInitialState = exports.vendorFiling1099ListInProgressState = exports.vendorFiling1099ListFailureResponse = exports.vendorFiling1099ListSuccessResponse = exports.vendorFiling1099ListSelectorMock = void 0;
|
|
7
|
+
const vendorFiling1099ListSuccess_json_1 = __importDefault(require("./json/vendorFiling1099ListSuccess.json"));
|
|
8
|
+
const apiFailure_json_1 = __importDefault(require("../../../__testHelpers__/apiFailure.json"));
|
|
9
|
+
const vendorFiling1099ListReducer_1 = require("../vendorFiling1099ListReducer");
|
|
10
|
+
const vendorStateMocks_1 = require("../../../entity/vendor/__mocks__/vendorStateMocks");
|
|
11
|
+
const reducer_1 = require("../../../reducer");
|
|
12
|
+
const zeniDayJS_1 = require("../../../zeniDayJS");
|
|
13
|
+
var vendorFiling1099ListSelectorMock_1 = require("./vendorFiling1099ListSelectorMock");
|
|
14
|
+
Object.defineProperty(exports, "vendorFiling1099ListSelectorMock", { enumerable: true, get: function () { return vendorFiling1099ListSelectorMock_1.vendorFiling1099ListSelectorMock; } });
|
|
15
|
+
exports.vendorFiling1099ListSuccessResponse = vendorFiling1099ListSuccess_json_1.default;
|
|
16
|
+
exports.vendorFiling1099ListFailureResponse = apiFailure_json_1.default;
|
|
17
|
+
exports.vendorFiling1099ListInProgressState = {
|
|
18
|
+
vendorIds: [],
|
|
19
|
+
uiState: {
|
|
20
|
+
sortKey: 'total',
|
|
21
|
+
sortOrder: 'descending',
|
|
22
|
+
scrollYOffset: 0,
|
|
23
|
+
downloadState: 'Not-Started',
|
|
24
|
+
searchString: '',
|
|
25
|
+
},
|
|
26
|
+
fetchState: 'In-Progress',
|
|
27
|
+
error: undefined,
|
|
28
|
+
hasValidState: vendorFiling1099ListReducer_1.initialState.hasValidState,
|
|
29
|
+
lastRefreshSuccessTime: undefined,
|
|
30
|
+
isVendor1099Populated: true,
|
|
31
|
+
};
|
|
32
|
+
exports.vendorFiling1099ListInProgressInitialState = {
|
|
33
|
+
vendorIds: [],
|
|
34
|
+
uiState: {
|
|
35
|
+
sortKey: 'total',
|
|
36
|
+
sortOrder: 'descending',
|
|
37
|
+
scrollYOffset: 0,
|
|
38
|
+
downloadState: 'Not-Started',
|
|
39
|
+
searchString: '',
|
|
40
|
+
},
|
|
41
|
+
fetchState: 'In-Progress',
|
|
42
|
+
error: undefined,
|
|
43
|
+
hasValidState: vendorFiling1099ListReducer_1.initialState.hasValidState,
|
|
44
|
+
lastRefreshSuccessTime: undefined,
|
|
45
|
+
isVendor1099Populated: false,
|
|
46
|
+
};
|
|
47
|
+
exports.vendorFiling1099ListSuccessState = {
|
|
48
|
+
vendorIds: ['vendor_j12jh1g2g12jg3jh12:12'],
|
|
49
|
+
uiState: {
|
|
50
|
+
sortKey: 'total',
|
|
51
|
+
sortOrder: 'descending',
|
|
52
|
+
scrollYOffset: 0,
|
|
53
|
+
downloadState: 'Not-Started',
|
|
54
|
+
searchString: '',
|
|
55
|
+
},
|
|
56
|
+
fetchState: 'Completed',
|
|
57
|
+
error: undefined,
|
|
58
|
+
hasValidState: vendorFiling1099ListReducer_1.initialState.hasValidState,
|
|
59
|
+
lastRefreshSuccessTime: (0, zeniDayJS_1.date)('2024-09-26T07:44:02.150Z'),
|
|
60
|
+
isVendor1099Populated: true,
|
|
61
|
+
};
|
|
62
|
+
exports.vendorFiling1099ListFailureState = {
|
|
63
|
+
vendorIds: [],
|
|
64
|
+
uiState: {
|
|
65
|
+
sortKey: 'total',
|
|
66
|
+
sortOrder: 'descending',
|
|
67
|
+
scrollYOffset: 0,
|
|
68
|
+
downloadState: 'Not-Started',
|
|
69
|
+
searchString: '',
|
|
70
|
+
},
|
|
71
|
+
lastRefreshSuccessTime: undefined,
|
|
72
|
+
fetchState: 'Error',
|
|
73
|
+
error: {
|
|
74
|
+
code: 500,
|
|
75
|
+
message: 'Internal server error',
|
|
76
|
+
},
|
|
77
|
+
hasValidState: vendorFiling1099ListReducer_1.initialState.hasValidState,
|
|
78
|
+
isVendor1099Populated: false,
|
|
79
|
+
};
|
|
80
|
+
exports.rootStateWithVendorList = Object.assign({}, reducer_1.initialRootState, {
|
|
81
|
+
vendorState: {
|
|
82
|
+
vendorByID: {
|
|
83
|
+
'vendor_j12jh1g2g12jg3jh12:12': vendorStateMocks_1.vendorStateMock1,
|
|
84
|
+
},
|
|
85
|
+
},
|
|
86
|
+
vendorFiling1099ListState: {
|
|
87
|
+
vendorIds: ['vendor_j12jh1g2g12jg3jh12:12'],
|
|
88
|
+
fetchState: 'Completed',
|
|
89
|
+
error: undefined,
|
|
90
|
+
uiState: {
|
|
91
|
+
sortKey: 'total',
|
|
92
|
+
sortOrder: 'descending',
|
|
93
|
+
scrollYOffset: 0,
|
|
94
|
+
downloadState: 'Not-Started',
|
|
95
|
+
searchString: '',
|
|
96
|
+
},
|
|
97
|
+
lastRefreshSuccessTime: undefined,
|
|
98
|
+
hasValidState: vendorFiling1099ListReducer_1.initialState.hasValidState,
|
|
99
|
+
isVendor1099Populated: true,
|
|
100
|
+
},
|
|
101
|
+
});
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.vendorFiling1099ListSelectorMock = void 0;
|
|
4
|
+
const vendorStateMocks_1 = require("../../../entity/vendor/__mocks__/vendorStateMocks");
|
|
5
|
+
exports.vendorFiling1099ListSelectorMock = {
|
|
6
|
+
fetchState: 'Completed',
|
|
7
|
+
error: undefined,
|
|
8
|
+
version: 0,
|
|
9
|
+
vendors: [
|
|
10
|
+
Object.assign({}, vendorStateMocks_1.vendorStateMock1),
|
|
11
|
+
],
|
|
12
|
+
lastRefreshSuccessTime: undefined,
|
|
13
|
+
uiState: {
|
|
14
|
+
sortKey: 'total',
|
|
15
|
+
sortOrder: 'descending',
|
|
16
|
+
scrollYOffset: 0,
|
|
17
|
+
downloadState: 'Not-Started',
|
|
18
|
+
searchString: '',
|
|
19
|
+
},
|
|
20
|
+
isVendor1099Populated: true,
|
|
21
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ActionsObservable, StateObservable } from 'redux-observable';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { ZeniAPI } from '../../zeniAPI';
|
|
4
|
+
import { RootState } from '../../reducer';
|
|
5
|
+
import { updateVendorsFiling1099List, updateVendorFiling1099ListFailure, fetchVendorsFiling1099List } from './vendorFiling1099ListReducer';
|
|
6
|
+
import { updateVendors } from '../../entity/vendor/vendorReducer';
|
|
7
|
+
import { updateAddresses } from '../../entity/address/addressReducer';
|
|
8
|
+
export declare type ActionType = ReturnType<typeof fetchVendorsFiling1099List> | ReturnType<typeof updateVendorFiling1099ListFailure> | ReturnType<typeof updateVendors> | ReturnType<typeof updateVendorsFiling1099List> | ReturnType<typeof updateAddresses>;
|
|
9
|
+
export declare const fetchVendorsFiling1099ListEpic: (actions$: ActionsObservable<ActionType>, _state$: StateObservable<RootState>, zeniAPI: ZeniAPI) => Observable<ActionType>;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.fetchVendorsFiling1099ListEpic = void 0;
|
|
4
|
+
const rxjs_1 = require("rxjs");
|
|
5
|
+
const operators_1 = require("rxjs/operators");
|
|
6
|
+
const responsePayload_1 = require("../../responsePayload");
|
|
7
|
+
const vendorFiling1099ListReducer_1 = require("./vendorFiling1099ListReducer");
|
|
8
|
+
const vendorReducer_1 = require("../../entity/vendor/vendorReducer");
|
|
9
|
+
const addressReducer_1 = require("../../entity/address/addressReducer");
|
|
10
|
+
const commonVendorViewHelper_1 = require("../commonVendorView/commonVendorViewHelper");
|
|
11
|
+
const fetchVendorsFiling1099ListEpic = (actions$, _state$, zeniAPI) => actions$.pipe((0, operators_1.filter)(vendorFiling1099ListReducer_1.fetchVendorsFiling1099List.match), (0, operators_1.switchMap)(() => {
|
|
12
|
+
const apiUrl = `${zeniAPI.apiEndPoints.accountMicroServiceBaseUrl}/2.0/reports/vendor_1099`;
|
|
13
|
+
return zeniAPI.getJSON(apiUrl).pipe((0, operators_1.switchMap)((response) => {
|
|
14
|
+
var _a;
|
|
15
|
+
if ((0, responsePayload_1.isSuccessResponse)(response) && response.data != null) {
|
|
16
|
+
const actions = [];
|
|
17
|
+
actions.push(...updateAllVendorRelatedEntities((_a = response.data) === null || _a === void 0 ? void 0 : _a.report.vendors), (0, vendorFiling1099ListReducer_1.updateVendorsFiling1099List)({
|
|
18
|
+
response,
|
|
19
|
+
}));
|
|
20
|
+
return actions;
|
|
21
|
+
}
|
|
22
|
+
else {
|
|
23
|
+
return (0, rxjs_1.of)((0, vendorFiling1099ListReducer_1.updateVendorFiling1099ListFailure)({
|
|
24
|
+
status: response.status,
|
|
25
|
+
}));
|
|
26
|
+
}
|
|
27
|
+
}), (0, operators_1.catchError)((error) => {
|
|
28
|
+
return (0, rxjs_1.of)((0, vendorFiling1099ListReducer_1.updateVendorFiling1099ListFailure)({
|
|
29
|
+
status: (0, responsePayload_1.createZeniAPIStatus)('Unexpected Error', 'Fetch vendors 1099 list REST API call errored out' +
|
|
30
|
+
JSON.stringify(error)),
|
|
31
|
+
}));
|
|
32
|
+
}));
|
|
33
|
+
}));
|
|
34
|
+
exports.fetchVendorsFiling1099ListEpic = fetchVendorsFiling1099ListEpic;
|
|
35
|
+
function updateAllVendorRelatedEntities(vendorPayload) {
|
|
36
|
+
const vendorRelatedEntitiesActions = [];
|
|
37
|
+
const flattenedAddresses = (0, commonVendorViewHelper_1.getFlattenedAddress)(vendorPayload);
|
|
38
|
+
vendorRelatedEntitiesActions.push((0, vendorReducer_1.updateVendors)(vendorPayload, 'merge'), (0, addressReducer_1.updateAddresses)(flattenedAddresses));
|
|
39
|
+
return vendorRelatedEntitiesActions;
|
|
40
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ReportPayload } from '../../commonPayloadTypes/viewAndReportPayload';
|
|
2
|
+
import { VendorPayload } from '../../entity/vendor/vendorPayload';
|
|
3
|
+
import { ZeniAPIResponse } from '../../responsePayload';
|
|
4
|
+
export interface FetchVendorFiling1099Payload {
|
|
5
|
+
report: ReportVendorFiling1099Payload;
|
|
6
|
+
query: Record<string, unknown>;
|
|
7
|
+
query_definitions: Record<string, unknown>;
|
|
8
|
+
}
|
|
9
|
+
export interface ReportVendorFiling1099Payload extends ReportPayload {
|
|
10
|
+
vendors: VendorPayload[];
|
|
11
|
+
is_vendor_1099_populated: boolean;
|
|
12
|
+
}
|
|
13
|
+
export declare type VendorFiling1099ListResponse = ZeniAPIResponse<FetchVendorFiling1099Payload>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { SortOrder } from '../../commonStateTypes/selectorTypes/sortOrderTypes';
|
|
2
|
+
import { ZeniAPIStatus } from '../../responsePayload';
|
|
3
|
+
import { VendorFiling1099ListResponse } from './vendorFiling1099ListPayload';
|
|
4
|
+
import { VendorFiling1099ListState, VendorFiling1099ListViewSortKey } from './vendorFiling1099ListState';
|
|
5
|
+
export declare const initialState: VendorFiling1099ListState;
|
|
6
|
+
export declare const fetchVendorsFiling1099List: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[], {
|
|
7
|
+
view: undefined;
|
|
8
|
+
}, string, never, never>, updateVendorsFiling1099List: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
9
|
+
response: VendorFiling1099ListResponse;
|
|
10
|
+
}, string>, updateVendorFiling1099ListFailure: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
11
|
+
status: ZeniAPIStatus;
|
|
12
|
+
}, string>, clearVendorsFiling1099List: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, updateFiling1099ScrollYOffset: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
13
|
+
scrollYOffset: number;
|
|
14
|
+
}, string>, updateFiling1099SortUiState: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
15
|
+
sortOrder: SortOrder;
|
|
16
|
+
sortKey: VendorFiling1099ListViewSortKey;
|
|
17
|
+
}, string>;
|
|
18
|
+
declare const _default: import("@reduxjs/toolkit").Reducer<VendorFiling1099ListState, import("@reduxjs/toolkit").AnyAction>;
|
|
19
|
+
export default _default;
|