@zeniai/client-epic-state 4.13.18 → 4.13.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/entity/snackbar/snackbarTypes.d.ts +1 -1
- package/lib/entity/snackbar/snackbarTypes.js +1 -0
- package/lib/entity/toastNotification/epic/pushToastNotificationEpic.d.ts +1 -1
- package/lib/entity/transaction/payloadTypes/transactionLinePayload.d.ts +3 -1
- package/lib/entity/transaction/payloadTypes/transactionLinePayload.js +6 -0
- package/lib/entity/transaction/payloadTypes/transactionPayload.d.ts +2 -0
- package/lib/entity/transaction/payloadTypes/transactionPayload.js +3 -2
- package/lib/entity/transaction/stateTypes/transactionLine.d.ts +5 -0
- package/lib/entity/transaction/stateTypes/transactionLine.js +9 -1
- package/lib/entity/transaction/stateTypes/transactionType.d.ts +1 -1
- package/lib/entity/transaction/stateTypes/transactionType.js +2 -1
- package/lib/entity/transaction/transactionReducer.d.ts +3 -1
- package/lib/entity/transaction/transactionReducer.js +8 -2
- package/lib/epic.d.ts +7 -1
- package/lib/epic.js +7 -1
- package/lib/index.d.ts +7 -2
- package/lib/index.js +47 -25
- package/lib/view/accountList/fetchAccountListEpic.js +1 -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/expenseAutomationView/epics/common/fetchAllExpenseAutomationTabsEpic.d.ts +2 -1
- package/lib/view/expenseAutomationView/epics/common/fetchAllExpenseAutomationTabsEpic.js +8 -2
- package/lib/view/expenseAutomationView/epics/common/refreshExpenseAutomationCurrentTabEpic.d.ts +2 -1
- package/lib/view/expenseAutomationView/epics/common/refreshExpenseAutomationCurrentTabEpic.js +5 -3
- package/lib/view/expenseAutomationView/epics/transactionCategorization/fetchTransactionCategorizationEpic.d.ts +8 -0
- package/lib/view/expenseAutomationView/epics/transactionCategorization/fetchTransactionCategorizationEpic.js +67 -0
- package/lib/view/expenseAutomationView/epics/transactionCategorization/fetchTransactionCategorizationViewEpic.d.ts +8 -0
- package/lib/view/expenseAutomationView/epics/transactionCategorization/fetchTransactionCategorizationViewEpic.js +38 -0
- package/lib/view/expenseAutomationView/epics/transactionCategorization/initializeTransactionCategorizationLocalDataEpic.d.ts +5 -0
- package/lib/view/expenseAutomationView/epics/transactionCategorization/initializeTransactionCategorizationLocalDataEpic.js +31 -0
- package/lib/view/expenseAutomationView/epics/transactionCategorization/markTransactionAsNotMiscatgorizedEpic.d.ts +8 -0
- package/lib/view/expenseAutomationView/epics/transactionCategorization/markTransactionAsNotMiscatgorizedEpic.js +56 -0
- package/lib/view/expenseAutomationView/epics/transactionCategorization/saveTransactionCategorizationEpic.d.ts +5 -0
- package/lib/view/expenseAutomationView/epics/transactionCategorization/saveTransactionCategorizationEpic.js +32 -0
- package/lib/view/expenseAutomationView/epics/transactionCategorization/updateTransactionCategorizationEpic.d.ts +6 -0
- package/lib/view/expenseAutomationView/epics/transactionCategorization/updateTransactionCategorizationEpic.js +164 -0
- package/lib/view/expenseAutomationView/expenseAutomationViewReducer.d.ts +3 -1
- package/lib/view/expenseAutomationView/expenseAutomationViewReducer.js +12 -2
- package/lib/view/expenseAutomationView/expenseAutomationViewSelector.js +14 -7
- package/lib/view/expenseAutomationView/expenseAutomationViewState.d.ts +2 -0
- package/lib/view/expenseAutomationView/helpers/saveTransactionHelper.d.ts +8 -0
- package/lib/view/expenseAutomationView/helpers/saveTransactionHelper.js +165 -0
- package/lib/view/expenseAutomationView/helpers/transactionCategorizationLocalDataHelper.d.ts +8 -0
- package/lib/view/expenseAutomationView/helpers/transactionCategorizationLocalDataHelper.js +175 -0
- package/lib/view/expenseAutomationView/payload/transactionCategorizationPayload.d.ts +48 -0
- package/lib/view/expenseAutomationView/payload/transactionCategorizationPayload.js +2 -0
- package/lib/view/expenseAutomationView/reducers/transactionsViewReducer.d.ts +100 -2
- package/lib/view/expenseAutomationView/reducers/transactionsViewReducer.js +368 -10
- package/lib/view/expenseAutomationView/selectorTypes/expenseAutomationViewSelectorTypes.d.ts +4 -0
- package/lib/view/expenseAutomationView/selectorTypes/transactionsViewSelectorTypes.d.ts +29 -0
- package/lib/view/expenseAutomationView/selectorTypes/transactionsViewSelectorTypes.js +2 -0
- package/lib/view/expenseAutomationView/selectors/transactionCategorizationSelector.d.ts +4 -0
- package/lib/view/expenseAutomationView/selectors/transactionCategorizationSelector.js +85 -0
- package/lib/view/expenseAutomationView/types/transactionsViewState.d.ts +97 -6
- package/lib/view/expenseAutomationView/types/transactionsViewState.js +15 -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/reviewCompanyView/reviewCompanyViewState.d.ts +1 -1
- package/lib/view/scheduleView/scheduleListView/scheduleListTypes.d.ts +1 -1
- package/lib/view/settingsView/epic/saveNotificationSettingsEpic.d.ts +1 -1
- package/lib/view/spendManagement/billPay/billList/billListReducer.d.ts +2 -1
- package/lib/view/spendManagement/billPay/billList/billListReducer.js +2 -1
- package/lib/view/spendManagement/billPay/billList/fetchBillListEpic.js +3 -3
- package/lib/view/spendManagement/billPay/billPayConfig/billPayConfigReducer.d.ts +6 -1
- package/lib/view/spendManagement/billPay/billPayConfig/billPayConfigReducer.js +16 -6
- package/lib/view/spendManagement/billPay/billPayConfig/fetchBillPayConfigEpic.js +5 -2
- package/lib/view/spendManagement/billPay/editBillView/editBillViewReducer.d.ts +2 -1
- package/lib/view/spendManagement/billPay/editBillView/editBillViewReducer.js +2 -1
- package/lib/view/spendManagement/billPay/editBillView/epics/fetchEditBillDetailPageEpic.d.ts +2 -2
- package/lib/view/spendManagement/billPay/editBillView/epics/fetchEditBillDetailPageEpic.js +3 -3
- package/lib/view/tagView/epics/createTagEpic.d.ts +1 -1
- package/lib/view/tagView/epics/deleteTagEpic.d.ts +1 -1
- package/lib/view/transactionDetail/epics/saveTransactionHelper.d.ts +8 -0
- package/lib/view/transactionDetail/epics/saveTransactionHelper.js +11 -6
- package/lib/view/transactionDetail/transactionDetailLocalDataHelper.d.ts +10 -0
- package/lib/view/transactionDetail/transactionDetailLocalDataHelper.js +8 -7
- package/package.json +1 -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" | "je_posted" | "audit_score_updated" | "people_invite_people" | "people_invite_multiple_people" | "people_delete_person" | "people_update_person" | "reimbursement_updated" | "reimbursement_deleted" | "reimbursement_cancelled_deleted" | "reimbursement_cancelled" | "reimbursement_approved" | "reimbursement_rejected" | "reimbursement_sent_for_approval" | "account_added" | "business_verification_save" | "business_verification_submit" | "business_verification_from_bills_submit" | "plaid_connection" | "unlink_deposit_account" | "reimbursement_approval_create" | "reimbursement_duplicate_approval_create" | "reimbursement_approval_update" | "reimbursement_duplicate_approval_update" | "reimbursement_approval_delete" | "reimbursement_create_mileage" | "reimbursement_update_mileage" | "reimbursement_accept_term" | "reimbursement_accept_employee_term" | "reimbursement_bulk_submit" | "reimbursement_bulk_processed" | "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" | "charge_card_resend_invite" | "charge_card_revoke_invite" | "create_schedule" | "save_schedule" | "delete_schedule" | "ignore_schedule" | "save_task_detail" | "fetch_task_detail" | "delete_task" | "archive_task" | "create_tag" | "delete_tag" | "update_charge_card" | "issue_charge_card" | "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" | "missing_receipts_attachment" | "flux_analysis_unreviewed" | "flux_analysis_reviewed";
|
|
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" | "je_posted" | "audit_score_updated" | "people_invite_people" | "people_invite_multiple_people" | "people_delete_person" | "people_update_person" | "reimbursement_updated" | "reimbursement_deleted" | "reimbursement_cancelled_deleted" | "reimbursement_cancelled" | "reimbursement_approved" | "reimbursement_rejected" | "reimbursement_sent_for_approval" | "account_added" | "business_verification_save" | "business_verification_submit" | "business_verification_from_bills_submit" | "plaid_connection" | "unlink_deposit_account" | "reimbursement_approval_create" | "reimbursement_duplicate_approval_create" | "reimbursement_approval_update" | "reimbursement_duplicate_approval_update" | "reimbursement_approval_delete" | "reimbursement_create_mileage" | "reimbursement_update_mileage" | "reimbursement_accept_term" | "reimbursement_accept_employee_term" | "reimbursement_bulk_submit" | "reimbursement_bulk_processed" | "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" | "charge_card_resend_invite" | "charge_card_revoke_invite" | "create_schedule" | "save_schedule" | "delete_schedule" | "ignore_schedule" | "save_task_detail" | "fetch_task_detail" | "delete_task" | "archive_task" | "create_tag" | "delete_tag" | "update_charge_card" | "issue_charge_card" | "notification_settings_saved" | "referral_invite_sent" | "notification_mark_as_read" | "mark_as_complete_schedule" | "cancel_journal_entry" | "settings_accounting_accounts_updated" | "create_card_setup" | "confirm_card_setup" | "add_card_payment_source" | "fetch_payment_sources" | "task_assigned_toast_notification" | "task_due_tomorrow_toast_notification" | "task_deleted_toast_notification" | "task_archived_toast_notification" | "task_overdue_toast_notification" | "task_overdue_toast_notification_creator" | "task_notification_count" | "task_activities_toast_notification" | "task_created_toast_notification" | "task_group_creation_success" | "task_group_deletion_success" | "task_group_update_success" | "primary_funding_account_updated" | "task_time_spent_validation" | "transactions_reviewed" | "missing_receipts_attachment" | "flux_analysis_unreviewed" | "flux_analysis_reviewed";
|
|
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" | "je_posted" | "audit_score_updated" | "people_invite_people" | "people_invite_multiple_people" | "people_delete_person" | "people_update_person" | "reimbursement_updated" | "reimbursement_deleted" | "reimbursement_cancelled_deleted" | "reimbursement_cancelled" | "reimbursement_approved" | "reimbursement_rejected" | "reimbursement_sent_for_approval" | "account_added" | "business_verification_save" | "business_verification_submit" | "business_verification_from_bills_submit" | "plaid_connection" | "unlink_deposit_account" | "reimbursement_approval_create" | "reimbursement_duplicate_approval_create" | "reimbursement_approval_update" | "reimbursement_duplicate_approval_update" | "reimbursement_approval_delete" | "reimbursement_create_mileage" | "reimbursement_update_mileage" | "reimbursement_accept_term" | "reimbursement_accept_employee_term" | "reimbursement_bulk_submit" | "reimbursement_bulk_processed" | "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" | "charge_card_resend_invite" | "charge_card_revoke_invite" | "create_schedule" | "save_schedule" | "delete_schedule" | "ignore_schedule" | "save_task_detail" | "fetch_task_detail" | "delete_task" | "archive_task" | "create_tag" | "delete_tag" | "update_charge_card" | "issue_charge_card" | "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" | "missing_receipts_attachment" | "flux_analysis_unreviewed" | "flux_analysis_reviewed";
|
|
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" | "je_posted" | "audit_score_updated" | "people_invite_people" | "people_invite_multiple_people" | "people_delete_person" | "people_update_person" | "reimbursement_updated" | "reimbursement_deleted" | "reimbursement_cancelled_deleted" | "reimbursement_cancelled" | "reimbursement_approved" | "reimbursement_rejected" | "reimbursement_sent_for_approval" | "account_added" | "business_verification_save" | "business_verification_submit" | "business_verification_from_bills_submit" | "plaid_connection" | "unlink_deposit_account" | "reimbursement_approval_create" | "reimbursement_duplicate_approval_create" | "reimbursement_approval_update" | "reimbursement_duplicate_approval_update" | "reimbursement_approval_delete" | "reimbursement_create_mileage" | "reimbursement_update_mileage" | "reimbursement_accept_term" | "reimbursement_accept_employee_term" | "reimbursement_bulk_submit" | "reimbursement_bulk_processed" | "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" | "charge_card_resend_invite" | "charge_card_revoke_invite" | "create_schedule" | "save_schedule" | "delete_schedule" | "ignore_schedule" | "save_task_detail" | "fetch_task_detail" | "delete_task" | "archive_task" | "create_tag" | "delete_tag" | "update_charge_card" | "issue_charge_card" | "notification_settings_saved" | "referral_invite_sent" | "notification_mark_as_read" | "mark_as_complete_schedule" | "cancel_journal_entry" | "settings_accounting_accounts_updated" | "create_card_setup" | "confirm_card_setup" | "add_card_payment_source" | "fetch_payment_sources" | "task_assigned_toast_notification" | "task_due_tomorrow_toast_notification" | "task_deleted_toast_notification" | "task_archived_toast_notification" | "task_overdue_toast_notification" | "task_overdue_toast_notification_creator" | "task_notification_count" | "task_activities_toast_notification" | "task_created_toast_notification" | "task_group_creation_success" | "task_group_deletion_success" | "task_group_update_success" | "primary_funding_account_updated" | "task_time_spent_validation" | "transactions_reviewed" | "missing_receipts_attachment" | "flux_analysis_unreviewed" | "flux_analysis_reviewed";
|
|
13
13
|
messageText: "failed" | "success" | "notification";
|
|
14
14
|
type: import("../../..").SnackbarMessageType;
|
|
15
15
|
showStatusIcon?: boolean | undefined;
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import { RecommendationBase } from '../../../commonStateTypes/recommendationBase';
|
|
2
|
+
import { AccountBase, RecommendedAccountBase } from '../../../entity/account/accountState';
|
|
3
|
+
import { ClassBase, RecommendedClassBase } from '../../../entity/class/classState';
|
|
1
4
|
import { SupportedTransaction } from '../../../entity/transaction/transactionState';
|
|
2
5
|
import { UncategorizedAccounts } from '../../accountList/accountListSelector';
|
|
3
6
|
import { TransactionSaveUpdates } from '../transactionDetailState';
|
|
@@ -19,3 +22,8 @@ import { TransactionDetailLocalData } from '../transactionDetailTypes';
|
|
|
19
22
|
* additionally fire “Mark as not miscat” for every point above.
|
|
20
23
|
*/
|
|
21
24
|
export declare const toTransactionUpdatesFromTransactionDetailLocalData: (transactionDetailLocalData: TransactionDetailLocalData, transaction: SupportedTransaction, uncategorizedIncomeExpense: UncategorizedAccounts) => TransactionSaveUpdates;
|
|
25
|
+
export declare const toRecommendedAccountBase: (amountValue: number, accountBase?: AccountBase | undefined, recommendationBase?: RecommendationBase | undefined) => RecommendedAccountBase | undefined;
|
|
26
|
+
export declare const toRecommendedClassBase: (amountValue: number, classBase?: ClassBase | undefined, recommendationBase?: RecommendationBase | undefined) => RecommendedClassBase | undefined;
|
|
27
|
+
export declare const isTransactionMiscategorized: (transaction: SupportedTransaction) => boolean;
|
|
28
|
+
export declare const isTransactionUncategorized: (transaction: SupportedTransaction, uncategorizedIncomeExpense: UncategorizedAccounts) => boolean;
|
|
29
|
+
export declare const isAccountUncategorized: (uncategorizedIncomeExpense: UncategorizedAccounts, lineQboId?: string | undefined) => boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.toTransactionUpdatesFromTransactionDetailLocalData = void 0;
|
|
3
|
+
exports.isAccountUncategorized = exports.isTransactionUncategorized = exports.isTransactionMiscategorized = exports.toRecommendedClassBase = exports.toRecommendedAccountBase = exports.toTransactionUpdatesFromTransactionDetailLocalData = void 0;
|
|
4
4
|
const recommendationBase_1 = require("../../../commonStateTypes/recommendationBase");
|
|
5
5
|
const entity_1 = require("../../../entity/genericEntity/entity");
|
|
6
6
|
const customerTransaction_1 = require("../../../entity/transaction/stateTypes/customerTransaction");
|
|
@@ -31,8 +31,8 @@ const toTransactionUpdatesFromTransactionDetailLocalData = (transactionDetailLoc
|
|
|
31
31
|
};
|
|
32
32
|
const updatesByLineId = {};
|
|
33
33
|
const entityUpdates = {};
|
|
34
|
-
const isTransactionMisCategorized = isTransactionMiscategorized(transaction);
|
|
35
|
-
const isTransactionUnCategorized = isTransactionUncategorized(transaction, uncategorizedIncomeExpense);
|
|
34
|
+
const isTransactionMisCategorized = (0, exports.isTransactionMiscategorized)(transaction);
|
|
35
|
+
const isTransactionUnCategorized = (0, exports.isTransactionUncategorized)(transaction, uncategorizedIncomeExpense);
|
|
36
36
|
updates.memo = transactionDetailLocalData.memo;
|
|
37
37
|
const updatedEntityId = transactionDetailLocalData.updatePreviousTransactionsWithUpdatedVendor ===
|
|
38
38
|
true
|
|
@@ -72,8 +72,8 @@ const toTransactionUpdatesFromTransactionDetailLocalData = (transactionDetailLoc
|
|
|
72
72
|
hasClassChanged =
|
|
73
73
|
Boolean((_c = lineItem.class) === null || _c === void 0 ? void 0 : _c.qboId) &&
|
|
74
74
|
((_d = lineItem.class) === null || _d === void 0 ? void 0 : _d.qboId) !== accountLine.class.qboId;
|
|
75
|
-
const recommendedAccountBase = toRecommendedAccountBase(lineItem.amount.amount, lineItem.account);
|
|
76
|
-
const recommendedClassBase = toRecommendedClassBase(lineItem.amount.amount, lineItem.class);
|
|
75
|
+
const recommendedAccountBase = (0, exports.toRecommendedAccountBase)(lineItem.amount.amount, lineItem.account);
|
|
76
|
+
const recommendedClassBase = (0, exports.toRecommendedClassBase)(lineItem.amount.amount, lineItem.class);
|
|
77
77
|
const latestRecommendedCategory = transactionDetailLocalData.lineItemById[line.id].recommendedAccount;
|
|
78
78
|
const latestrecommendedClass = transactionDetailLocalData.lineItemById[line.id].recommendedClass;
|
|
79
79
|
// If at any time the recommended category selected is different from the most recent
|
|
@@ -173,6 +173,7 @@ const toRecommendedAccountBase = (amountValue, accountBase, recommendationBase)
|
|
|
173
173
|
return undefined;
|
|
174
174
|
}
|
|
175
175
|
};
|
|
176
|
+
exports.toRecommendedAccountBase = toRecommendedAccountBase;
|
|
176
177
|
const toRecommendedClassBase = (amountValue, classBase, recommendationBase) => {
|
|
177
178
|
if (classBase != null && recommendationBase != null) {
|
|
178
179
|
return Object.assign(Object.assign({}, classBase), { min: recommendationBase.min, max: recommendationBase.max, reason: recommendationBase.reason, type: recommendationBase.type });
|
|
@@ -186,6 +187,7 @@ const toRecommendedClassBase = (amountValue, classBase, recommendationBase) => {
|
|
|
186
187
|
return undefined;
|
|
187
188
|
}
|
|
188
189
|
};
|
|
190
|
+
exports.toRecommendedClassBase = toRecommendedClassBase;
|
|
189
191
|
const getVendorOrCustomerDetails = (lineItem) => {
|
|
190
192
|
var _a;
|
|
191
193
|
if (lineItem.lineEntity != null) {
|
|
@@ -272,6 +274,7 @@ const isTransactionMiscategorized = (transaction) => {
|
|
|
272
274
|
});
|
|
273
275
|
return isTransactionMisCategorized;
|
|
274
276
|
};
|
|
277
|
+
exports.isTransactionMiscategorized = isTransactionMiscategorized;
|
|
275
278
|
const isTransactionUncategorized = (transaction, uncategorizedIncomeExpense) => {
|
|
276
279
|
const lines = transaction.lines;
|
|
277
280
|
let isTransactionUnCategorized = false;
|
|
@@ -280,13 +283,14 @@ const isTransactionUncategorized = (transaction, uncategorizedIncomeExpense) =>
|
|
|
280
283
|
line.type === 'transaction_with_product_or_service_line' ||
|
|
281
284
|
line.type === 'journal_entry_transaction_line') {
|
|
282
285
|
const lineItem = line;
|
|
283
|
-
if (isAccountUncategorized(uncategorizedIncomeExpense, lineItem.account.qboId)) {
|
|
286
|
+
if ((0, exports.isAccountUncategorized)(uncategorizedIncomeExpense, lineItem.account.qboId)) {
|
|
284
287
|
isTransactionUnCategorized = true;
|
|
285
288
|
}
|
|
286
289
|
}
|
|
287
290
|
});
|
|
288
291
|
return isTransactionUnCategorized;
|
|
289
292
|
};
|
|
293
|
+
exports.isTransactionUncategorized = isTransactionUncategorized;
|
|
290
294
|
const isAccountUncategorized = (uncategorizedIncomeExpense, lineQboId) => {
|
|
291
295
|
var _a, _b;
|
|
292
296
|
if (lineQboId != null &&
|
|
@@ -296,3 +300,4 @@ const isAccountUncategorized = (uncategorizedIncomeExpense, lineQboId) => {
|
|
|
296
300
|
}
|
|
297
301
|
return false;
|
|
298
302
|
};
|
|
303
|
+
exports.isAccountUncategorized = isAccountUncategorized;
|
|
@@ -1,12 +1,22 @@
|
|
|
1
|
+
/// <reference types="url-parse" />
|
|
1
2
|
import { ID } from '../../commonStateTypes/common';
|
|
2
3
|
import { AccountBase } from '../../entity/account/accountState';
|
|
3
4
|
import { ClassBase } from '../../entity/class/classState';
|
|
4
5
|
import { Entity } from '../../entity/genericEntity/entity';
|
|
5
6
|
import { RecommendationByLineId } from '../../entity/transaction/stateTypes/transaction';
|
|
7
|
+
import { JournalEntryTransactionLine, TransactionWithAccountAndClassLine } from '../../entity/transaction/stateTypes/transactionLine';
|
|
6
8
|
import { SupportedTransaction } from '../../entity/transaction/transactionState';
|
|
7
9
|
import { UncategorizedAccounts } from '../accountList/accountListSelector';
|
|
8
10
|
import { TransactionDetailLocalData } from './transactionDetailTypes';
|
|
9
11
|
export declare const toTransactionDetailLocalData: (transaction: SupportedTransaction, vendorId: ID | undefined, uncategorizedIncomeExpense?: UncategorizedAccounts | undefined) => TransactionDetailLocalData;
|
|
12
|
+
export declare const toLineEntity: (lineRecord: JournalEntryTransactionLine | TransactionWithAccountAndClassLine) => {
|
|
13
|
+
type: "vendor" | "customer" | "merchant";
|
|
14
|
+
zeniId: string;
|
|
15
|
+
qboId: string;
|
|
16
|
+
id: string;
|
|
17
|
+
name: string;
|
|
18
|
+
logo?: import("url-parse")<string> | import("url-parse")<Record<string, string | undefined>> | undefined;
|
|
19
|
+
} | undefined;
|
|
10
20
|
export declare const toUpdateLineItemsOriginalCategoryClass: (transaction: SupportedTransaction, transactionDetailLocalData: TransactionDetailLocalData, lineIdsForReplace: ID[], lineIdsForUpdateAll: ID[], replace: 'account' | 'class' | 'both', updateAll?: boolean | undefined) => TransactionDetailLocalData;
|
|
11
21
|
export declare const toSetAllLineItemsToCategoryClass: (transaction: SupportedTransaction, transactionDetailLocalData: TransactionDetailLocalData, isUpdateAll: boolean, lineEntity?: Entity | undefined, chosenAccount?: {
|
|
12
22
|
account: AccountBase;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.toUpdateLineItemsToOriginalVendor = exports.toSetAllLineItemsToVendor = exports.getChangedLineItemCountFromLocalData = exports.removeEntityRecommendationForLineIdInLocalData = exports.setEntityRecommendationForLineIdInLocalData = exports.toSetAllLineItemsLocalDataIsUpdateAllChecked = exports.toSetAllLineItemsToCategoryClass = exports.toUpdateLineItemsOriginalCategoryClass = exports.toTransactionDetailLocalData = void 0;
|
|
3
|
+
exports.toUpdateLineItemsToOriginalVendor = exports.toSetAllLineItemsToVendor = exports.getChangedLineItemCountFromLocalData = exports.removeEntityRecommendationForLineIdInLocalData = exports.setEntityRecommendationForLineIdInLocalData = exports.toSetAllLineItemsLocalDataIsUpdateAllChecked = exports.toSetAllLineItemsToCategoryClass = exports.toUpdateLineItemsOriginalCategoryClass = exports.toLineEntity = exports.toTransactionDetailLocalData = void 0;
|
|
4
4
|
const entity_1 = require("../../entity/genericEntity/entity");
|
|
5
5
|
const customerTransaction_1 = require("../../entity/transaction/stateTypes/customerTransaction");
|
|
6
6
|
const vendorTransaction_1 = require("../../entity/transaction/stateTypes/vendorTransaction");
|
|
@@ -90,7 +90,7 @@ const buildLineItemById = (transaction, uncategorizedIncomeExpense, recommendati
|
|
|
90
90
|
}
|
|
91
91
|
}
|
|
92
92
|
if (line.platformLineDetailType === 'deposit_line_detail') {
|
|
93
|
-
record.lineEntity = toLineEntity(line);
|
|
93
|
+
record.lineEntity = (0, exports.toLineEntity)(line);
|
|
94
94
|
}
|
|
95
95
|
if (line.type === 'transaction_with_product_or_service_line') {
|
|
96
96
|
const lineRecord = line;
|
|
@@ -102,7 +102,7 @@ const buildLineItemById = (transaction, uncategorizedIncomeExpense, recommendati
|
|
|
102
102
|
record.lineTransactionType = lineRecord.lineTransactionType;
|
|
103
103
|
record.postingType = lineRecord.postingType;
|
|
104
104
|
record.postingTypeName = lineRecord.postingTypeName;
|
|
105
|
-
record.lineEntity = toLineEntity(lineRecord);
|
|
105
|
+
record.lineEntity = (0, exports.toLineEntity)(lineRecord);
|
|
106
106
|
}
|
|
107
107
|
lineItemData[line.id] = record;
|
|
108
108
|
}
|
|
@@ -132,6 +132,7 @@ const toLineEntity = (lineRecord) => {
|
|
|
132
132
|
}
|
|
133
133
|
return;
|
|
134
134
|
};
|
|
135
|
+
exports.toLineEntity = toLineEntity;
|
|
135
136
|
const toVendorBaseFromLineEntity = (entity) => {
|
|
136
137
|
return {
|
|
137
138
|
id: entity.id,
|
|
@@ -304,7 +305,7 @@ const toUpdateLineItemsOriginalCategoryClass = (transaction, transactionDetailLo
|
|
|
304
305
|
record.lineTransactionType = lineRecord.lineTransactionType;
|
|
305
306
|
record.postingType = lineRecord.postingType;
|
|
306
307
|
record.postingTypeName = lineRecord.postingTypeName;
|
|
307
|
-
record.lineEntity = toLineEntity(lineRecord);
|
|
308
|
+
record.lineEntity = (0, exports.toLineEntity)(lineRecord);
|
|
308
309
|
}
|
|
309
310
|
if (updateAll != null) {
|
|
310
311
|
record.isUpdateAllChecked = updateAll;
|
|
@@ -397,7 +398,7 @@ const toSetAllLineItemsToCategoryClass = (transaction, transactionDetailLocalDat
|
|
|
397
398
|
record.lineTransactionType = lineRecord.lineTransactionType;
|
|
398
399
|
record.postingType = lineRecord.postingType;
|
|
399
400
|
record.postingTypeName = lineRecord.postingTypeName;
|
|
400
|
-
record.lineEntity = toLineEntity(lineRecord);
|
|
401
|
+
record.lineEntity = (0, exports.toLineEntity)(lineRecord);
|
|
401
402
|
}
|
|
402
403
|
newLineItems[lineId] = record;
|
|
403
404
|
}
|
|
@@ -668,7 +669,7 @@ const toSetAllLineItemsToVendor = (transaction, transactionDetailLocalData, enti
|
|
|
668
669
|
record.lineTransactionType = lineRecord.lineTransactionType;
|
|
669
670
|
record.postingType = lineRecord.postingType;
|
|
670
671
|
record.postingTypeName = lineRecord.postingTypeName;
|
|
671
|
-
record.lineEntity = toLineEntity(lineRecord);
|
|
672
|
+
record.lineEntity = (0, exports.toLineEntity)(lineRecord);
|
|
672
673
|
}
|
|
673
674
|
newLineItems[lineId] = record;
|
|
674
675
|
}
|
|
@@ -774,7 +775,7 @@ const toUpdateLineItemsToOriginalVendor = (transaction, transactionDetailLocalDa
|
|
|
774
775
|
record.lineTransactionType = lineRecord.lineTransactionType;
|
|
775
776
|
record.postingType = lineRecord.postingType;
|
|
776
777
|
record.postingTypeName = lineRecord.postingTypeName;
|
|
777
|
-
record.lineEntity = toLineEntity(lineRecord);
|
|
778
|
+
record.lineEntity = (0, exports.toLineEntity)(lineRecord);
|
|
778
779
|
}
|
|
779
780
|
}
|
|
780
781
|
newLineItems[lineId] = record;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zeniai/client-epic-state",
|
|
3
|
-
"version": "4.13.
|
|
3
|
+
"version": "4.13.20",
|
|
4
4
|
"description": "Shared module between Web & Mobile containing required abstractions for state management, async network communication. ",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|