@zeniai/client-epic-state 4.11.16 → 4.11.17

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.
Files changed (121) hide show
  1. package/lib/entity/billPay/billTransaction/billTransactionPayload.d.ts +9 -0
  2. package/lib/entity/billPay/billTransaction/billTransactionPayload.js +15 -2
  3. package/lib/entity/billPay/billTransaction/billTransactionReducer.d.ts +2 -1
  4. package/lib/entity/billPay/billTransaction/billTransactionReducer.js +25 -2
  5. package/lib/entity/billPay/billTransaction/billTransactionState.d.ts +11 -1
  6. package/lib/entity/billPay/billTransaction/billTransactionState.js +9 -1
  7. package/lib/entity/snackbar/snackbarTypes.d.ts +1 -1
  8. package/lib/entity/snackbar/snackbarTypes.js +6 -0
  9. package/lib/entity/task/taskPayload.d.ts +2 -2
  10. package/lib/entity/task/taskPayload.js +1 -0
  11. package/lib/entity/task/taskState.d.ts +3 -2
  12. package/lib/entity/taskGroup/taskGroupPayload.d.ts +9 -0
  13. package/lib/entity/taskGroup/taskGroupPayload.js +14 -0
  14. package/lib/entity/taskGroup/taskGroupReducer.d.ts +6 -0
  15. package/lib/entity/taskGroup/taskGroupReducer.js +33 -0
  16. package/lib/entity/taskGroup/taskGroupSelector.d.ts +4 -0
  17. package/lib/entity/taskGroup/taskGroupSelector.js +18 -0
  18. package/lib/entity/taskGroup/taskGroupState.d.ts +12 -0
  19. package/lib/entity/taskGroup/taskGroupState.js +2 -0
  20. package/lib/entity/tenant/clearAllEpic.d.ts +5 -2
  21. package/lib/entity/tenant/clearAllEpic.js +8 -0
  22. package/lib/entity/toastNotification/epic/pushToastNotificationEpic.d.ts +1 -1
  23. package/lib/entity/transaction/stateTypes/attachment.d.ts +6 -0
  24. package/lib/entity/transaction/stateTypes/transactionType.d.ts +3 -0
  25. package/lib/entity/transaction/stateTypes/transactionType.js +7 -3
  26. package/lib/entity/vendor/vendorPayload.d.ts +2 -0
  27. package/lib/entity/vendor/vendorPayload.js +5 -1
  28. package/lib/entity/vendor/vendorState.d.ts +2 -0
  29. package/lib/epic.d.ts +12 -1
  30. package/lib/epic.js +12 -1
  31. package/lib/index.d.ts +18 -12
  32. package/lib/index.js +37 -10
  33. package/lib/reducer.d.ts +9 -0
  34. package/lib/reducer.js +9 -0
  35. package/lib/view/companyView/selector/companyManagementViewSelector.js +13 -7
  36. package/lib/view/companyView/selector/companyPortfolioViewSelector.js +1 -6
  37. package/lib/view/fileView/fileUploadHelpers.d.ts +5 -0
  38. package/lib/view/people/changeZeniPersonRolesEpic.d.ts +1 -1
  39. package/lib/view/people/deletePersonEpic.d.ts +1 -1
  40. package/lib/view/people/invitePeopleEpic.d.ts +1 -1
  41. package/lib/view/people/inviteZeniPeopleEpic.d.ts +1 -1
  42. package/lib/view/people/resendInviteEpic.d.ts +1 -1
  43. package/lib/view/reviewCompanyView/reviewCompanyViewSelector.js +26 -9
  44. package/lib/view/scheduleView/scheduleListView/scheduleListSelector.js +1 -1
  45. package/lib/view/settingsView/epic/saveNotificationSettingsEpic.d.ts +1 -1
  46. package/lib/view/spendManagement/billPay/billList/billListReducer.d.ts +3 -2
  47. package/lib/view/spendManagement/billPay/billList/billListReducer.js +9 -3
  48. package/lib/view/spendManagement/billPay/billList/billListSelector.d.ts +19 -2
  49. package/lib/view/spendManagement/billPay/billList/billListSelector.js +150 -3
  50. package/lib/view/spendManagement/billPay/billList/billListState.d.ts +1 -1
  51. package/lib/view/spendManagement/billPay/billPayConfig/billPayConfigPayload.d.ts +1 -0
  52. package/lib/view/spendManagement/billPay/billPayConfig/billPayConfigReducer.js +2 -0
  53. package/lib/view/spendManagement/billPay/billPayConfig/billPayConfigState.d.ts +1 -0
  54. package/lib/view/spendManagement/billPay/billsBulkActionView/billsBulkActionViewPayload.d.ts +32 -0
  55. package/lib/view/spendManagement/billPay/billsBulkActionView/billsBulkActionViewPayload.js +2 -0
  56. package/lib/view/spendManagement/billPay/billsBulkActionView/billsBulkActionViewReducer.d.ts +17 -0
  57. package/lib/view/spendManagement/billPay/billsBulkActionView/billsBulkActionViewReducer.js +166 -0
  58. package/lib/view/spendManagement/billPay/billsBulkActionView/billsBulkActionViewSelector.d.ts +24 -0
  59. package/lib/view/spendManagement/billPay/billsBulkActionView/billsBulkActionViewSelector.js +45 -0
  60. package/lib/view/spendManagement/billPay/billsBulkActionView/billsBulkActionViewState.d.ts +28 -0
  61. package/lib/view/spendManagement/billPay/billsBulkActionView/billsBulkActionViewState.js +7 -0
  62. package/lib/view/spendManagement/billPay/billsBulkActionView/epics/approveOrRejectBillsBulkActionEpic.d.ts +9 -0
  63. package/lib/view/spendManagement/billPay/billsBulkActionView/epics/approveOrRejectBillsBulkActionEpic.js +73 -0
  64. package/lib/view/spendManagement/billPay/billsBulkActionView/epics/cancelOrDeleteBillsBulkActionEpic.d.ts +8 -0
  65. package/lib/view/spendManagement/billPay/billsBulkActionView/epics/cancelOrDeleteBillsBulkActionEpic.js +74 -0
  66. package/lib/view/spendManagement/billPay/billsBulkActionView/epics/reviewDraftBillsBulkActionEpic.ts.d.ts +7 -0
  67. package/lib/view/spendManagement/billPay/billsBulkActionView/epics/reviewDraftBillsBulkActionEpic.ts.js +29 -0
  68. package/lib/view/spendManagement/billPay/billsBulkActionView/epics/submitDraftBillsBulkActionEpic.d.ts +8 -0
  69. package/lib/view/spendManagement/billPay/billsBulkActionView/epics/submitDraftBillsBulkActionEpic.js +62 -0
  70. package/lib/view/spendManagement/billPay/editBillView/editBillViewSelector.d.ts +9 -8
  71. package/lib/view/spendManagement/billPay/editBillView/editBillViewSelector.js +6 -4
  72. package/lib/view/spendManagement/commonHistoryView/commonHistory.d.ts +1 -1
  73. package/lib/view/spendManagement/helpers.d.ts +3 -0
  74. package/lib/view/spendManagement/helpers.js +17 -1
  75. package/lib/view/spendManagement/reimbursement/remiListView/remiListReducer.d.ts +1 -1
  76. package/lib/view/spendManagement/reimbursement/remiListView/remiListState.d.ts +3 -3
  77. package/lib/view/subscriptionView/subscriptionViewSelector.js +5 -1
  78. package/lib/view/tagView/epics/createTagEpic.d.ts +1 -1
  79. package/lib/view/tagView/epics/deleteTagEpic.d.ts +1 -1
  80. package/lib/view/taskManager/taskDetailView/epics/saveTaskDetailEpic.d.ts +2 -1
  81. package/lib/view/taskManager/taskDetailView/epics/saveTaskDetailEpic.js +11 -4
  82. package/lib/view/taskManager/taskDetailView/taskDetailReducer.d.ts +2 -1
  83. package/lib/view/taskManager/taskDetailView/taskDetailReducer.js +2 -1
  84. package/lib/view/taskManager/taskGroupView/epics/createNewTaskGroupEpic.d.ts +10 -0
  85. package/lib/view/taskManager/taskGroupView/epics/createNewTaskGroupEpic.js +57 -0
  86. package/lib/view/taskManager/taskGroupView/epics/deleteTaskGroupEpic.d.ts +10 -0
  87. package/lib/view/taskManager/taskGroupView/epics/deleteTaskGroupEpic.js +41 -0
  88. package/lib/view/taskManager/taskGroupView/epics/fetchAllTaskGroupsEpic.d.ts +8 -0
  89. package/lib/view/taskManager/taskGroupView/epics/fetchAllTaskGroupsEpic.js +33 -0
  90. package/lib/view/taskManager/taskGroupView/epics/updateTaskGroupNameEpic.d.ts +10 -0
  91. package/lib/view/taskManager/taskGroupView/epics/updateTaskGroupNameEpic.js +51 -0
  92. package/lib/view/taskManager/taskGroupView/taskGroupViewPayload.d.ts +6 -0
  93. package/lib/view/taskManager/taskGroupView/taskGroupViewPayload.js +2 -0
  94. package/lib/view/taskManager/taskGroupView/taskGroupViewReducer.d.ts +34 -0
  95. package/lib/view/taskManager/taskGroupView/taskGroupViewReducer.js +123 -0
  96. package/lib/view/taskManager/taskGroupView/taskGroupViewState.d.ts +7 -0
  97. package/lib/view/taskManager/taskGroupView/taskGroupViewState.js +2 -0
  98. package/lib/view/taskManager/taskListView/bulkUpdateTaskListEpic.d.ts +8 -0
  99. package/lib/view/taskManager/taskListView/bulkUpdateTaskListEpic.js +88 -0
  100. package/lib/view/taskManager/taskListView/dragNDropTasksEpic.d.ts +6 -0
  101. package/lib/view/taskManager/taskListView/dragNDropTasksEpic.js +20 -0
  102. package/lib/view/taskManager/taskListView/fetchTaskListPageEpic.d.ts +3 -1
  103. package/lib/view/taskManager/taskListView/fetchTaskListPageEpic.js +12 -0
  104. package/lib/view/taskManager/taskListView/taskList.d.ts +14 -1
  105. package/lib/view/taskManager/taskListView/taskListReducer.d.ts +31 -2
  106. package/lib/view/taskManager/taskListView/taskListReducer.js +136 -9
  107. package/lib/view/taskManager/taskListView/taskListSelector.d.ts +12 -2
  108. package/lib/view/taskManager/taskListView/taskListSelector.js +59 -23
  109. package/lib/view/transactionDetail/epics/updateTransactionDetailEpic.js +22 -5
  110. package/lib/view/vendorReviewView/vendorFirstReviewView/epics/fetchVendorFirstReviewAttachmentsEpic.d.ts +10 -0
  111. package/lib/view/vendorReviewView/vendorFirstReviewView/epics/fetchVendorFirstReviewAttachmentsEpic.js +37 -0
  112. package/lib/view/vendorReviewView/vendorFirstReviewView/epics/fetchVendorFirstReviewViewEpic.js +1 -0
  113. package/lib/view/vendorReviewView/vendorFirstReviewView/epics/saveVendorFirstReviewViewEpic.js +11 -5
  114. package/lib/view/vendorReviewView/vendorFirstReviewView/vendorFirstReviewViewPayload.d.ts +15 -0
  115. package/lib/view/vendorReviewView/vendorFirstReviewView/vendorFirstReviewViewReducer.d.ts +13 -3
  116. package/lib/view/vendorReviewView/vendorFirstReviewView/vendorFirstReviewViewReducer.js +45 -3
  117. package/lib/view/vendorReviewView/vendorFirstReviewView/vendorFirstReviewViewSelector.d.ts +8 -0
  118. package/lib/view/vendorReviewView/vendorFirstReviewView/vendorFirstReviewViewSelector.js +17 -2
  119. package/lib/view/vendorReviewView/vendorFirstReviewView/vendorFirstReviewViewState.d.ts +6 -2
  120. package/lib/view/vendorReviewView/vendorFirstReviewView/vendorFirstReviewViewState.js +2 -1
  121. package/package.json +1 -1
@@ -27,6 +27,15 @@ export interface BillTransactionPayload extends VendorTransactionPayload {
27
27
  candidate_vendor_name?: string;
28
28
  tax?: number;
29
29
  discount?: number;
30
+ processing_status: string | null;
31
+ bulk_operation_detail: {
32
+ operation_type: string;
33
+ processing_message: string | null;
34
+ error: {
35
+ error_code: string;
36
+ error_message: string;
37
+ } | null;
38
+ } | null;
30
39
  }
31
40
  export interface BillPayInfoPayload {
32
41
  stage: BillStagePayload;
@@ -8,14 +8,27 @@ const billPayConfigState_1 = require("../../../view/spendManagement/billPay/bill
8
8
  const billTransactionState_1 = require("./billTransactionState");
9
9
  const billPayConfigPayload_1 = require("../../../view/spendManagement/billPay/billPayConfig/billPayConfigPayload");
10
10
  const toBillTransaction = (payload) => {
11
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
11
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
12
12
  return Object.assign(Object.assign({}, (0, vendorTransactionPayload_1.toVendorTransaction)(payload)), { billPayInfo: (0, exports.toBillPayInfo)(payload.bill_pay_info), classId: (_a = payload.class_id) !== null && _a !== void 0 ? _a : '', className: (_b = payload.class_name) !== null && _b !== void 0 ? _b : '', qboClassId: (_c = payload.qbo_class_id) !== null && _c !== void 0 ? _c : '', transactionReferenceId: (_d = payload.transaction_reference_id) !== null && _d !== void 0 ? _d : '', entityApprovalId: payload.entity_approval_id, updateTime: (0, zeniDayJS_1.date)(payload.update_time), createdBy: (_e = payload.created_by_user_id) !== null && _e !== void 0 ? _e : '', candidateVendorName: (_f = payload.candidate_vendor_name) !== null && _f !== void 0 ? _f : '', bookCloseDate: payload.book_close_date != null
13
13
  ? (0, zeniDayJS_1.date)(payload.book_close_date)
14
14
  : undefined, lastUpdatedByUserId: (_g = payload.last_updated_by_user_id) !== null && _g !== void 0 ? _g : '', paymentProcessingTotalFee: (0, amount_1.toAmount)((_h = payload.total_fee) !== null && _h !== void 0 ? _h : 0, payload.currency_code, payload.currency_symbol), isDeleted: payload.is_deleted, deletionInfo: (0, exports.toDeletionInfo)(payload.deletion_info), isRecurring: payload.is_recurring, recurringBillConfigId: (_j = payload.recurring_bill_config_id) !== null && _j !== void 0 ? _j : undefined, recurringBillInstance: (_k = payload.recurring_bill_instance) !== null && _k !== void 0 ? _k : undefined, totalAmountInUSD: payload.home_currency_amount != null &&
15
15
  payload.home_currency_code != null &&
16
16
  payload.home_currency_symbol != null
17
17
  ? (0, amount_1.toAmount)(payload.home_currency_amount, payload.home_currency_code, payload.home_currency_symbol)
18
- : undefined, recipientTotalAmount: (0, amount_1.toAmount)(payload.recipient_total_amount, payload.recipient_currency_code, payload.recipient_currency_symbol) });
18
+ : undefined, recipientTotalAmount: (0, amount_1.toAmount)(payload.recipient_total_amount, payload.recipient_currency_code, payload.recipient_currency_symbol), bulkProcessingDetail: payload.processing_status != null
19
+ ? {
20
+ type: (0, billTransactionState_1.toBillProcessingStateType)(payload.processing_status),
21
+ inProgressMessage: ((_l = payload.bulk_operation_detail) === null || _l === void 0 ? void 0 : _l.processing_message) != null
22
+ ? payload.bulk_operation_detail.processing_message
23
+ : undefined,
24
+ error: ((_m = payload.bulk_operation_detail) === null || _m === void 0 ? void 0 : _m.error) != null
25
+ ? {
26
+ code: payload.bulk_operation_detail.error.error_code,
27
+ message: payload.bulk_operation_detail.error.error_message,
28
+ }
29
+ : undefined,
30
+ }
31
+ : undefined });
19
32
  };
20
33
  exports.toBillTransaction = toBillTransaction;
21
34
  const toBillPayInfo = (payload) => {
@@ -1,6 +1,7 @@
1
1
  import { BillTransactionPayload } from './billTransactionPayload';
2
2
  import { BillTransactionState } from './billTransactionState';
3
+ import { BulkActionItemResponsePayload } from '../../../view/spendManagement/billPay/billsBulkActionView/billsBulkActionViewPayload';
3
4
  export declare const initialState: BillTransactionState;
4
- export declare const updateBillTransactions: import("@reduxjs/toolkit").ActionCreatorWithPayload<BillTransactionPayload[], string>, updateBillTransaction: import("@reduxjs/toolkit").ActionCreatorWithPayload<BillTransactionPayload, string>, removeBillTransaction: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, string>, clearAllBillTransactions: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>;
5
+ export declare const updateBillTransactions: import("@reduxjs/toolkit").ActionCreatorWithPayload<BillTransactionPayload[], string>, updateBillTransaction: import("@reduxjs/toolkit").ActionCreatorWithPayload<BillTransactionPayload, string>, updateBillTransactionsWithBulkActionStatus: import("@reduxjs/toolkit").ActionCreatorWithPayload<BulkActionItemResponsePayload[], string>, removeBillTransaction: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, string>, clearAllBillTransactions: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>;
5
6
  declare const _default: import("@reduxjs/toolkit").Reducer<BillTransactionState, import("@reduxjs/toolkit").AnyAction>;
6
7
  export default _default;
@@ -4,10 +4,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  var _a;
6
6
  Object.defineProperty(exports, "__esModule", { value: true });
7
- exports.clearAllBillTransactions = exports.removeBillTransaction = exports.updateBillTransaction = exports.updateBillTransactions = exports.initialState = void 0;
7
+ exports.clearAllBillTransactions = exports.removeBillTransaction = exports.updateBillTransactionsWithBulkActionStatus = exports.updateBillTransaction = exports.updateBillTransactions = exports.initialState = void 0;
8
8
  const toolkit_1 = require("@reduxjs/toolkit");
9
9
  const assignWith_1 = __importDefault(require("lodash/assignWith"));
10
10
  const billTransactionPayload_1 = require("./billTransactionPayload");
11
+ const billTransactionState_1 = require("./billTransactionState");
11
12
  exports.initialState = {
12
13
  transactionById: {},
13
14
  };
@@ -23,6 +24,11 @@ const billTransaction = (0, toolkit_1.createSlice)({
23
24
  updateBillTransaction(draft, action) {
24
25
  doUpdateTransaction(draft.transactionById, action.payload.transaction_id, action.payload);
25
26
  },
27
+ updateBillTransactionsWithBulkActionStatus(draft, action) {
28
+ action.payload.forEach((transactionPayload) => {
29
+ doUpdateBillTransactionWithBulkActionStatus(draft.transactionById, transactionPayload.entity_id, transactionPayload);
30
+ });
31
+ },
26
32
  removeBillTransaction(draft, action) {
27
33
  delete draft.transactionById[action.payload];
28
34
  },
@@ -31,7 +37,7 @@ const billTransaction = (0, toolkit_1.createSlice)({
31
37
  },
32
38
  },
33
39
  });
34
- _a = billTransaction.actions, exports.updateBillTransactions = _a.updateBillTransactions, exports.updateBillTransaction = _a.updateBillTransaction, exports.removeBillTransaction = _a.removeBillTransaction, exports.clearAllBillTransactions = _a.clearAllBillTransactions;
40
+ _a = billTransaction.actions, exports.updateBillTransactions = _a.updateBillTransactions, exports.updateBillTransaction = _a.updateBillTransaction, exports.updateBillTransactionsWithBulkActionStatus = _a.updateBillTransactionsWithBulkActionStatus, exports.removeBillTransaction = _a.removeBillTransaction, exports.clearAllBillTransactions = _a.clearAllBillTransactions;
35
41
  exports.default = billTransaction.reducer;
36
42
  /**
37
43
  * Helper functions
@@ -46,3 +52,20 @@ function doUpdateTransaction(draft, id, payload) {
46
52
  draft[id] = transaction;
47
53
  }
48
54
  }
55
+ function doUpdateBillTransactionWithBulkActionStatus(draft, id, payload) {
56
+ const existingTransaction = draft[id];
57
+ if (existingTransaction) {
58
+ existingTransaction.bulkProcessingDetail = {
59
+ type: (0, billTransactionState_1.toBillProcessingStateType)(payload.status),
60
+ inProgressMessage: payload.processing_message != null
61
+ ? payload.processing_message
62
+ : undefined,
63
+ error: payload.error != null
64
+ ? {
65
+ code: payload.error.error_code,
66
+ message: payload.error.error_message,
67
+ }
68
+ : undefined,
69
+ };
70
+ }
71
+ }
@@ -24,6 +24,14 @@ export interface BillTransaction extends VendorTransaction {
24
24
  recurringBillConfigId?: ID;
25
25
  recurringBillInstance?: number;
26
26
  bookCloseDate?: ZeniDate;
27
+ bulkProcessingDetail?: {
28
+ type: BillProcessingStateType;
29
+ inProgressMessage?: string;
30
+ error?: {
31
+ code: string;
32
+ message: string;
33
+ };
34
+ };
27
35
  }
28
36
  export interface BillPayInfo {
29
37
  stage: BillStage;
@@ -89,7 +97,7 @@ export interface DeletionInfo {
89
97
  }
90
98
  export declare const toBillStageCodeType: (v: string) => "paid" | "pending_approval" | "scheduled" | "draft";
91
99
  export declare type BillStageCodeType = ReturnType<typeof toBillStageCodeType>;
92
- export declare const toBillPaymentStatusCodeType: (v: string) => "failed" | "paid" | "returned" | "processing" | "posted" | "cancelled" | "pending_vendor_action";
100
+ export declare const toBillPaymentStatusCodeType: (v: string) => "failed" | "processing" | "paid" | "returned" | "posted" | "cancelled" | "pending_vendor_action";
93
101
  export declare type BillPaymentStatusCodeType = ReturnType<typeof toBillPaymentStatusCodeType>;
94
102
  export declare const toBillStatusCodeType: (v: string) => "rejected" | "approved" | "pending_approval" | "initiated";
95
103
  export declare type BillStatusCodeType = ReturnType<typeof toBillStatusCodeType>;
@@ -105,3 +113,5 @@ export declare const toBillAccountHolderType: (v: string) => "vendor" | "custome
105
113
  export declare type BillAccountHolderType = ReturnType<typeof toBillAccountHolderType>;
106
114
  export declare const toDeletionSourceType: (v: string) => "zeni_dashboard" | "qbo" | "netsuite";
107
115
  export declare type DeletionSourceType = ReturnType<typeof toDeletionSourceType>;
116
+ export declare const toBillProcessingStateType: (v: string) => "error" | "processing_queued" | "processing" | "processed";
117
+ export declare type BillProcessingStateType = ReturnType<typeof toBillProcessingStateType>;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.toDeletionSourceType = exports.toBillAccountHolderType = exports.toBillAccountType = exports.toBillPaymentStatusDescriptionCodeType = exports.toBillPaymentStatusSummaryCodeType = exports.toBillStatusSummaryCodeType = exports.toBillStatusCodeType = exports.toBillPaymentStatusCodeType = exports.toBillStageCodeType = exports.toInternationalTransferFeeBearerPaymentMethod = void 0;
3
+ exports.toBillProcessingStateType = exports.toDeletionSourceType = exports.toBillAccountHolderType = exports.toBillAccountType = exports.toBillPaymentStatusDescriptionCodeType = exports.toBillPaymentStatusSummaryCodeType = exports.toBillStatusSummaryCodeType = exports.toBillStatusCodeType = exports.toBillPaymentStatusCodeType = exports.toBillStageCodeType = exports.toInternationalTransferFeeBearerPaymentMethod = void 0;
4
4
  const stringToUnion_1 = require("../../../commonStateTypes/stringToUnion");
5
5
  const ALL_INTERNATIONAL_TRANSFER_FEE_BEARER_PAYMENT_METHOD = [
6
6
  'swift_our',
@@ -75,3 +75,11 @@ exports.toBillAccountHolderType = toBillAccountHolderType;
75
75
  const DELETION_SOURCE = ['zeni_dashboard', 'qbo', 'netsuite'];
76
76
  const toDeletionSourceType = (v) => (0, stringToUnion_1.stringToUnion)(v, DELETION_SOURCE);
77
77
  exports.toDeletionSourceType = toDeletionSourceType;
78
+ const BILL_PROCESSING_STATE = [
79
+ 'processing_queued',
80
+ 'processing',
81
+ 'processed',
82
+ 'error',
83
+ ];
84
+ const toBillProcessingStateType = (v) => (0, stringToUnion_1.stringToUnion)(v, BILL_PROCESSING_STATE);
85
+ exports.toBillProcessingStateType = toBillProcessingStateType;
@@ -1,4 +1,4 @@
1
- export declare const toSnackbarMessageSection: (v: string) => "reimbursement_setup" | "common" | "transactionDetails_updatingPastTransactions" | "transactionDetails_transactionUpdated" | "cockpit_month_end_email_sent" | "cockpit_month_end_email_save" | "cockpit_month_end_email_attachment_upload" | "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" | "bill_pay_setup" | "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" | "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" | "charge_card_setup" | "charge_card_accept_term" | "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" | "settings_accounting_accounts_updated" | "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";
1
+ export declare const toSnackbarMessageSection: (v: string) => "reimbursement_setup" | "common" | "transactionDetails_updatingPastTransactions" | "transactionDetails_transactionUpdated" | "cockpit_month_end_email_sent" | "cockpit_month_end_email_save" | "cockpit_month_end_email_attachment_upload" | "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" | "bill_pay_setup" | "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_setup" | "charge_card_accept_term" | "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" | "settings_accounting_accounts_updated" | "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";
2
2
  export declare type SnackbarMessageSections = ReturnType<typeof toSnackbarMessageSection>;
3
3
  export declare const toSnackbarMessageSectionTexts: (v: string) => "failed" | "success" | "notification";
4
4
  export declare type SnackbarMessageSectionTexts = ReturnType<typeof toSnackbarMessageSectionTexts>;
@@ -53,6 +53,8 @@ const ALL_SNACKBAR_MESSAGE_SECTIONS = [
53
53
  'bill_pay_rejected',
54
54
  'bill_pay_sent_for_approval',
55
55
  'bill_pay_accept_term',
56
+ 'bill_pay_bulk_submit',
57
+ 'bill_pay_bulk_processed',
56
58
  'zeni_account_accept_term',
57
59
  'update_vendor',
58
60
  'data_refresh_update',
@@ -83,6 +85,7 @@ const ALL_SNACKBAR_MESSAGE_SECTIONS = [
83
85
  'save_vendor_renamed',
84
86
  'save_vendor_sent_for_review',
85
87
  'save_vendor_marked_as_employee',
88
+ 'save_vendor_marked_as_local_contractor',
86
89
  'charge_card_setup',
87
90
  'charge_card_accept_term',
88
91
  'create_schedule',
@@ -110,6 +113,9 @@ const ALL_SNACKBAR_MESSAGE_SECTIONS = [
110
113
  'task_notification_count',
111
114
  'task_activities_toast_notification',
112
115
  'task_created_toast_notification',
116
+ 'task_group_creation_success',
117
+ 'task_group_deletion_success',
118
+ 'task_group_update_success',
113
119
  ];
114
120
  const toSnackbarMessageSection = (v) => (0, stringToUnion_1.stringToUnion)(v, ALL_SNACKBAR_MESSAGE_SECTIONS);
115
121
  exports.toSnackbarMessageSection = toSnackbarMessageSection;
@@ -19,12 +19,12 @@ export interface TaskPayload {
19
19
  recurring_frequency: AllowedValueWithCodePayload | null;
20
20
  recurring_start_date: string | null;
21
21
  tags: TagIdWithNamePayload[];
22
+ task_group_ids?: string[] | null;
22
23
  sync_token?: string | null;
23
24
  company_id?: string;
24
25
  }
25
26
  export declare const mapTaskPayloadToTask: (payload: TaskPayload) => Task;
26
- interface TagIdWithNamePayload {
27
+ export interface TagIdWithNamePayload {
27
28
  tag_id: string;
28
29
  name: string;
29
30
  }
30
- export {};
@@ -39,6 +39,7 @@ const mapTaskPayloadToTask = (payload) => {
39
39
  dueDate: payload.due_date != null ? (0, zeniDayJS_1.date)(payload.due_date) : undefined,
40
40
  updateTime: payload.update_time != null ? (0, zeniDayJS_1.date)(payload.update_time) : undefined,
41
41
  companyId: payload.company_id,
42
+ taskGroupIds: payload.task_group_ids != null ? payload.task_group_ids : [],
42
43
  });
43
44
  };
44
45
  exports.mapTaskPayloadToTask = mapTaskPayloadToTask;
@@ -22,6 +22,7 @@ export interface Task {
22
22
  dueDate?: ZeniDate;
23
23
  updateTime?: ZeniDate;
24
24
  companyId?: ID;
25
+ taskGroupIds: ID[];
25
26
  }
26
27
  export interface TaskState {
27
28
  taskByID: Record<ID, Task>;
@@ -46,8 +47,8 @@ export declare const ALL_TASK_STATUS_CODE: readonly ["todo", "in_progress", "on_
46
47
  export declare const toTaskStatusCodeType: (v: string) => "done" | "todo" | "in_progress" | "on_hold" | "resolved";
47
48
  export declare const toTaskStatusCodeTypeStrict: (v?: string | undefined) => "done" | "todo" | "in_progress" | "on_hold" | "resolved" | undefined;
48
49
  export declare type TaskStatusCodeType = ReturnType<typeof toTaskStatusCodeType>;
49
- export declare const toTaskCodeType: (v: string) => "one_time" | "recurring";
50
- export declare const toTaskCodeTypeStrict: (v?: string | undefined) => "one_time" | "recurring" | undefined;
50
+ export declare const toTaskCodeType: (v: string) => "recurring" | "one_time";
51
+ export declare const toTaskCodeTypeStrict: (v?: string | undefined) => "recurring" | "one_time" | undefined;
51
52
  export declare type TaskCodeType = NonNullable<ReturnType<typeof toTaskCodeType>>;
52
53
  export interface TaskType {
53
54
  code: TaskCodeType;
@@ -0,0 +1,9 @@
1
+ import { TaskGroup } from './taskGroupState';
2
+ export interface TaskGroupPayload {
3
+ task_group_id: string;
4
+ name: string;
5
+ is_default: boolean;
6
+ is_deleted: boolean;
7
+ created_at: string;
8
+ }
9
+ export declare function mapTaskGroupPayloadToTaskGroup(payload: TaskGroupPayload): TaskGroup;
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.mapTaskGroupPayloadToTaskGroup = void 0;
4
+ const zeniDayJS_1 = require("../../zeniDayJS");
5
+ function mapTaskGroupPayloadToTaskGroup(payload) {
6
+ return {
7
+ id: payload.task_group_id,
8
+ name: payload.name,
9
+ isDefault: payload.is_default,
10
+ isDeleted: payload.is_deleted,
11
+ createdAt: (0, zeniDayJS_1.date)(payload.created_at),
12
+ };
13
+ }
14
+ exports.mapTaskGroupPayloadToTaskGroup = mapTaskGroupPayloadToTaskGroup;
@@ -0,0 +1,6 @@
1
+ import { TaskGroupPayload } from './taskGroupPayload';
2
+ import { TaskGroupState } from './taskGroupState';
3
+ export declare const initialState: TaskGroupState;
4
+ export declare const updateTaskGroups: import("@reduxjs/toolkit").ActionCreatorWithPayload<TaskGroupPayload[], string>, updateTaskGroup: import("@reduxjs/toolkit").ActionCreatorWithPayload<TaskGroupPayload, string>, removeTaskGroup: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, string>, clearAllTaskGroups: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>;
5
+ declare const _default: import("@reduxjs/toolkit").Reducer<TaskGroupState, import("@reduxjs/toolkit").AnyAction>;
6
+ export default _default;
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+ var _a;
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.clearAllTaskGroups = exports.removeTaskGroup = exports.updateTaskGroup = exports.updateTaskGroups = exports.initialState = void 0;
5
+ const toolkit_1 = require("@reduxjs/toolkit");
6
+ const taskGroupPayload_1 = require("./taskGroupPayload");
7
+ exports.initialState = {
8
+ taskGroupById: {},
9
+ };
10
+ const taskGroup = (0, toolkit_1.createSlice)({
11
+ name: 'taskGroup',
12
+ initialState: exports.initialState,
13
+ reducers: {
14
+ updateTaskGroups(draft, action) {
15
+ action.payload.forEach((taskPayload) => {
16
+ const latestTaskGroup = (0, taskGroupPayload_1.mapTaskGroupPayloadToTaskGroup)(taskPayload);
17
+ draft.taskGroupById[latestTaskGroup.id] = latestTaskGroup;
18
+ });
19
+ },
20
+ updateTaskGroup(draft, action) {
21
+ const latestTaskGroup = (0, taskGroupPayload_1.mapTaskGroupPayloadToTaskGroup)(action.payload);
22
+ draft.taskGroupById[latestTaskGroup.id] = latestTaskGroup;
23
+ },
24
+ removeTaskGroup(draft, action) {
25
+ delete draft.taskGroupById[action.payload];
26
+ },
27
+ clearAllTaskGroups(draft) {
28
+ draft.taskGroupById = {};
29
+ },
30
+ },
31
+ });
32
+ _a = taskGroup.actions, exports.updateTaskGroups = _a.updateTaskGroups, exports.updateTaskGroup = _a.updateTaskGroup, exports.removeTaskGroup = _a.removeTaskGroup, exports.clearAllTaskGroups = _a.clearAllTaskGroups;
33
+ exports.default = taskGroup.reducer;
@@ -0,0 +1,4 @@
1
+ import { ID } from '../../commonStateTypes/common';
2
+ import { TaskGroupState, TaskGroup } from './taskGroupState';
3
+ export declare function getTaskGroupByIds(taskGroupState: TaskGroupState, taskGroupIds: ID[]): TaskGroup[];
4
+ export declare function getTaskGroupById(taskGroupState: TaskGroupState, taskGroupId: ID): TaskGroup | undefined;
@@ -0,0 +1,18 @@
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.getTaskGroupById = exports.getTaskGroupByIds = void 0;
7
+ const get_1 = __importDefault(require("lodash/get"));
8
+ function getTaskGroupByIds(taskGroupState, taskGroupIds) {
9
+ const tasksGroups = taskGroupIds
10
+ .map((taskGroupId) => getTaskGroupById(taskGroupState, taskGroupId))
11
+ .filter((value) => value != null);
12
+ return tasksGroups;
13
+ }
14
+ exports.getTaskGroupByIds = getTaskGroupByIds;
15
+ function getTaskGroupById(taskGroupState, taskGroupId) {
16
+ return (0, get_1.default)(taskGroupState.taskGroupById, taskGroupId, undefined);
17
+ }
18
+ exports.getTaskGroupById = getTaskGroupById;
@@ -0,0 +1,12 @@
1
+ import { ID } from '../../commonStateTypes/common';
2
+ import { ZeniDate } from '../../zeniDayJS';
3
+ export interface TaskGroup {
4
+ id: ID;
5
+ name: string;
6
+ isDefault: boolean;
7
+ isDeleted: boolean;
8
+ createdAt: ZeniDate;
9
+ }
10
+ export interface TaskGroupState {
11
+ taskGroupById: Record<ID, TaskGroup>;
12
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -156,8 +156,11 @@ import { clearAllTags } from '../tag/tagReducer';
156
156
  import { clearTagView } from '../../view/tagView/tagViewReducer';
157
157
  import { clearCompanyTaskManagerView } from '../../view/companyTaskManagerView/companyTaskManagerViewReducer';
158
158
  import { clearAllToastNotifications } from '../../entity/toastNotification/toastNotificationReducer';
159
- declare type clearActionTypeForViews = ReturnType<typeof clearAccountList> | ReturnType<typeof clearAccountMappingView> | ReturnType<typeof clearActivityHistory> | ReturnType<typeof clearActivityRealTimeApproval> | ReturnType<typeof clearAddressView> | ReturnType<typeof clearAllClasses> | ReturnType<typeof clearApAging> | ReturnType<typeof clearApAgingDetail> | ReturnType<typeof clearArAging> | ReturnType<typeof clearArAgingDetail> | ReturnType<typeof clearAuthenticationView> | ReturnType<typeof clearBalanceSheet> | ReturnType<typeof clearBankAccountView> | ReturnType<typeof clearBillDetailView> | ReturnType<typeof clearBillList> | ReturnType<typeof clearBillPayCard> | ReturnType<typeof clearBillPayConfig> | ReturnType<typeof clearBillPayReview> | ReturnType<typeof clearBillPaySetupApproverView> | ReturnType<typeof clearBillPaySetupView> | ReturnType<typeof clearCardBalance> | ReturnType<typeof clearCashbackDetail> | ReturnType<typeof clearCashBalance> | ReturnType<typeof clearCashFlow> | ReturnType<typeof clearCashInCashOut> | ReturnType<typeof clearCashPosition> | ReturnType<typeof clearChargeCardConfig> | ReturnType<typeof clearChargeCardDetail> | ReturnType<typeof clearChargeCardList> | ReturnType<typeof clearChargeCardSetupView> | ReturnType<typeof clearCheckDeposit> | ReturnType<typeof clearCompanyConfigView> | ReturnType<typeof clearCompanyHealthMetric> | ReturnType<typeof clearCompanyHealthMetricView> | ReturnType<typeof clearCompanyMonthEndReportView> | ReturnType<typeof clearCompanyTaskManagerView> | ReturnType<typeof clearCompanyView> | ReturnType<typeof clearDashboard> | ReturnType<typeof clearDepositAccountDetail> | ReturnType<typeof clearDepositAccountList> | ReturnType<typeof clearDepositAccountTransactionList> | ReturnType<typeof clearEditBillViewDetail> | ReturnType<typeof clearEditRemiViewDetail> | ReturnType<typeof clearEntityAutoCompleteResults> | ReturnType<typeof clearFileViewList> | ReturnType<typeof clearFinanceStatement> | ReturnType<typeof clearForecastList> | ReturnType<typeof clearGlobalMerchantView> | ReturnType<typeof clearInsightsCard> | ReturnType<typeof clearInternationalWire> | ReturnType<typeof clearMerchantList> | ReturnType<typeof clearNetBurnOrIncome> | ReturnType<typeof clearNetBurnOrIncomeClassesView> | ReturnType<typeof clearNetBurnOrIncomeStoryCard> | ReturnType<typeof clearNotificationView> | ReturnType<typeof clearOnboardingCockpitView> | ReturnType<typeof clearOnboardingCustomerView> | ReturnType<typeof clearOpEx> | ReturnType<typeof clearOpExByVendor> | ReturnType<typeof clearOpExClassesView> | ReturnType<typeof clearOwnerList> | ReturnType<typeof clearPaymentAccountList> | ReturnType<typeof clearPeople> | ReturnType<typeof clearPreviousBills> | ReturnType<typeof clearProfitAndLoss> | ReturnType<typeof clearProfitAndLossClassesView> | ReturnType<typeof clearRecommendation> | ReturnType<typeof clearReferrals> | ReturnType<typeof clearReimbursementCard> | ReturnType<typeof clearReimbursementConfig> | ReturnType<typeof clearRemiDetailView> | ReturnType<typeof clearRemiList> | ReturnType<typeof clearRemiSetupApproverView> | ReturnType<typeof clearRemiSetupView> | ReturnType<typeof clearReportUIOption> | ReturnType<typeof clearRevenue> | ReturnType<typeof clearRevenueClassesView> | ReturnType<typeof clearReviewCompany> | ReturnType<typeof clearScheduleDetailView> | ReturnType<typeof clearScheduleList> | ReturnType<typeof clearSettingsView> | ReturnType<typeof clearSetupView> | ReturnType<typeof clearPlaidAccountView> | ReturnType<typeof clearSubscriptionView> | ReturnType<typeof clearTagView> | ReturnType<typeof clearTaskDetail> | ReturnType<typeof clearTaskList> | ReturnType<typeof clearTasksCard> | ReturnType<typeof clearTopEx> | ReturnType<typeof clearTransactionDetail> | ReturnType<typeof clearTransactionList> | ReturnType<typeof clearTransferDetail> | ReturnType<typeof clearTrendData> | ReturnType<typeof clearTrendWithTransactions> | ReturnType<typeof clearTwoFactorAuthentication> | ReturnType<typeof clearUserFinancialAccount> | ReturnType<typeof clearUserListView> | ReturnType<typeof clearUserRoleConfigView> | ReturnType<typeof clearVendorGlobalReviewView> | ReturnType<typeof clearVendorView> | ReturnType<typeof clearVendorsList> | ReturnType<typeof clearVendorsTabVendorView> | ReturnType<typeof clearWiseRedirectStatus> | ReturnType<typeof clearZeniAccStatementList> | ReturnType<typeof clearZeniAccountList> | ReturnType<typeof clearZeniAccountSetupView> | ReturnType<typeof clearZeniAccountsConfig> | ReturnType<typeof clearZeniAccountsPromoCard>;
160
- declare type clearActionTypeForEntities = ReturnType<typeof clearAllAccountGroups> | ReturnType<typeof clearAllAccountingSummary> | ReturnType<typeof clearAllAccounts> | ReturnType<typeof clearAllAddresses> | ReturnType<typeof clearAllApprovalRules> | ReturnType<typeof clearAllBankAccounts> | ReturnType<typeof clearAllBillTransactions> | ReturnType<typeof clearAllChargeCardTransactions> | ReturnType<typeof clearAllChargeCards> | ReturnType<typeof clearAllCompanies> | ReturnType<typeof clearAllCurrencies> | ReturnType<typeof clearAllCustomerIncomeTrend> | ReturnType<typeof clearAllCustomers> | ReturnType<typeof clearAllDepositAccounts> | ReturnType<typeof clearAllEntities> | ReturnType<typeof clearAllEntityApprovalStatus> | ReturnType<typeof clearAllFiles> | ReturnType<typeof clearAllForecasts> | ReturnType<typeof clearAllGlobalMerchants> | ReturnType<typeof clearAllInsights> | ReturnType<typeof clearAllJEScheduleTransactions> | ReturnType<typeof clearAllMerchants> | ReturnType<typeof clearAllNotifications> | ReturnType<typeof clearAllOnboardingCustomersInfo> | ReturnType<typeof clearAllPaymentAccounts> | ReturnType<typeof clearAllPaymentInstruments> | ReturnType<typeof clearAllRecurringBills> | ReturnType<typeof clearAllReimbursements> | ReturnType<typeof clearAllSectionsAccountsView> | ReturnType<typeof clearAllSectionsClassesViewV2> | ReturnType<typeof clearAllSubscriptionAddOns> | ReturnType<typeof clearAllSubscriptionCoupons> | ReturnType<typeof clearAllSubscriptionPlans> | ReturnType<typeof clearAllSubscriptionSummary> | ReturnType<typeof clearAllSubscriptions> | ReturnType<typeof clearAllTags> | ReturnType<typeof clearAllTaskSummary> | ReturnType<typeof clearAllTasks> | ReturnType<typeof clearAllToastNotifications> | ReturnType<typeof clearAllTransactions> | ReturnType<typeof clearAllUserRoles> | ReturnType<typeof clearAllUsers> | ReturnType<typeof clearAllVendorExpenseTrends> | ReturnType<typeof clearAllVendors> | ReturnType<typeof clearClassList> | ReturnType<typeof clearContacts> | ReturnType<typeof clearDepositAccountTransaction> | ReturnType<typeof clearSnackbar>;
159
+ import { clearAllTaskGroups } from '../../entity/taskGroup/taskGroupReducer';
160
+ import { clearTaskGroupView } from '../../view/taskManager/taskGroupView/taskGroupViewReducer';
161
+ import { clearBillPayBulkActionView } from '../../view/spendManagement/billPay/billsBulkActionView/billsBulkActionViewReducer';
162
+ declare type clearActionTypeForViews = ReturnType<typeof clearAccountList> | ReturnType<typeof clearAccountMappingView> | ReturnType<typeof clearActivityHistory> | ReturnType<typeof clearActivityRealTimeApproval> | ReturnType<typeof clearAddressView> | ReturnType<typeof clearAllClasses> | ReturnType<typeof clearApAging> | ReturnType<typeof clearApAgingDetail> | ReturnType<typeof clearArAging> | ReturnType<typeof clearArAgingDetail> | ReturnType<typeof clearAuthenticationView> | ReturnType<typeof clearBalanceSheet> | ReturnType<typeof clearBankAccountView> | ReturnType<typeof clearBillDetailView> | ReturnType<typeof clearBillList> | ReturnType<typeof clearBillPayBulkActionView> | ReturnType<typeof clearBillPayCard> | ReturnType<typeof clearBillPayConfig> | ReturnType<typeof clearBillPayReview> | ReturnType<typeof clearBillPaySetupApproverView> | ReturnType<typeof clearBillPaySetupView> | ReturnType<typeof clearCardBalance> | ReturnType<typeof clearCashbackDetail> | ReturnType<typeof clearCashBalance> | ReturnType<typeof clearCashFlow> | ReturnType<typeof clearCashInCashOut> | ReturnType<typeof clearCashPosition> | ReturnType<typeof clearChargeCardConfig> | ReturnType<typeof clearChargeCardDetail> | ReturnType<typeof clearChargeCardList> | ReturnType<typeof clearChargeCardSetupView> | ReturnType<typeof clearCheckDeposit> | ReturnType<typeof clearCompanyConfigView> | ReturnType<typeof clearCompanyHealthMetric> | ReturnType<typeof clearCompanyHealthMetricView> | ReturnType<typeof clearCompanyMonthEndReportView> | ReturnType<typeof clearCompanyTaskManagerView> | ReturnType<typeof clearCompanyView> | ReturnType<typeof clearDashboard> | ReturnType<typeof clearDepositAccountDetail> | ReturnType<typeof clearDepositAccountList> | ReturnType<typeof clearDepositAccountTransactionList> | ReturnType<typeof clearEditBillViewDetail> | ReturnType<typeof clearEditRemiViewDetail> | ReturnType<typeof clearEntityAutoCompleteResults> | ReturnType<typeof clearFileViewList> | ReturnType<typeof clearFinanceStatement> | ReturnType<typeof clearForecastList> | ReturnType<typeof clearGlobalMerchantView> | ReturnType<typeof clearInsightsCard> | ReturnType<typeof clearInternationalWire> | ReturnType<typeof clearMerchantList> | ReturnType<typeof clearNetBurnOrIncome> | ReturnType<typeof clearNetBurnOrIncomeClassesView> | ReturnType<typeof clearNetBurnOrIncomeStoryCard> | ReturnType<typeof clearNotificationView> | ReturnType<typeof clearOnboardingCockpitView> | ReturnType<typeof clearOnboardingCustomerView> | ReturnType<typeof clearOpEx> | ReturnType<typeof clearOpExByVendor> | ReturnType<typeof clearOpExClassesView> | ReturnType<typeof clearOwnerList> | ReturnType<typeof clearPaymentAccountList> | ReturnType<typeof clearPeople> | ReturnType<typeof clearPreviousBills> | ReturnType<typeof clearProfitAndLoss> | ReturnType<typeof clearProfitAndLossClassesView> | ReturnType<typeof clearRecommendation> | ReturnType<typeof clearReferrals> | ReturnType<typeof clearReimbursementCard> | ReturnType<typeof clearReimbursementConfig> | ReturnType<typeof clearRemiDetailView> | ReturnType<typeof clearRemiList> | ReturnType<typeof clearRemiSetupApproverView> | ReturnType<typeof clearRemiSetupView> | ReturnType<typeof clearReportUIOption> | ReturnType<typeof clearRevenue> | ReturnType<typeof clearRevenueClassesView> | ReturnType<typeof clearReviewCompany> | ReturnType<typeof clearScheduleDetailView> | ReturnType<typeof clearScheduleList> | ReturnType<typeof clearSettingsView> | ReturnType<typeof clearSetupView> | ReturnType<typeof clearPlaidAccountView> | ReturnType<typeof clearSubscriptionView> | ReturnType<typeof clearTagView> | ReturnType<typeof clearTaskDetail> | ReturnType<typeof clearTaskGroupView> | ReturnType<typeof clearTaskList> | ReturnType<typeof clearTasksCard> | ReturnType<typeof clearTopEx> | ReturnType<typeof clearTransactionDetail> | ReturnType<typeof clearTransactionList> | ReturnType<typeof clearTransferDetail> | ReturnType<typeof clearTrendData> | ReturnType<typeof clearTrendWithTransactions> | ReturnType<typeof clearTwoFactorAuthentication> | ReturnType<typeof clearUserFinancialAccount> | ReturnType<typeof clearUserListView> | ReturnType<typeof clearUserRoleConfigView> | ReturnType<typeof clearVendorGlobalReviewView> | ReturnType<typeof clearVendorView> | ReturnType<typeof clearVendorsList> | ReturnType<typeof clearVendorsTabVendorView> | ReturnType<typeof clearWiseRedirectStatus> | ReturnType<typeof clearZeniAccStatementList> | ReturnType<typeof clearZeniAccountList> | ReturnType<typeof clearZeniAccountSetupView> | ReturnType<typeof clearZeniAccountsConfig> | ReturnType<typeof clearZeniAccountsPromoCard>;
163
+ declare type clearActionTypeForEntities = ReturnType<typeof clearAllAccountGroups> | ReturnType<typeof clearAllAccountingSummary> | ReturnType<typeof clearAllAccounts> | ReturnType<typeof clearAllAddresses> | ReturnType<typeof clearAllApprovalRules> | ReturnType<typeof clearAllBankAccounts> | ReturnType<typeof clearAllBillTransactions> | ReturnType<typeof clearAllChargeCardTransactions> | ReturnType<typeof clearAllChargeCards> | ReturnType<typeof clearAllCompanies> | ReturnType<typeof clearAllCurrencies> | ReturnType<typeof clearAllCustomerIncomeTrend> | ReturnType<typeof clearAllCustomers> | ReturnType<typeof clearAllDepositAccounts> | ReturnType<typeof clearAllEntities> | ReturnType<typeof clearAllEntityApprovalStatus> | ReturnType<typeof clearAllFiles> | ReturnType<typeof clearAllForecasts> | ReturnType<typeof clearAllGlobalMerchants> | ReturnType<typeof clearAllInsights> | ReturnType<typeof clearAllJEScheduleTransactions> | ReturnType<typeof clearAllMerchants> | ReturnType<typeof clearAllNotifications> | ReturnType<typeof clearAllOnboardingCustomersInfo> | ReturnType<typeof clearAllPaymentAccounts> | ReturnType<typeof clearAllPaymentInstruments> | ReturnType<typeof clearAllRecurringBills> | ReturnType<typeof clearAllReimbursements> | ReturnType<typeof clearAllSectionsAccountsView> | ReturnType<typeof clearAllSectionsClassesViewV2> | ReturnType<typeof clearAllSubscriptionAddOns> | ReturnType<typeof clearAllSubscriptionCoupons> | ReturnType<typeof clearAllSubscriptionPlans> | ReturnType<typeof clearAllSubscriptionSummary> | ReturnType<typeof clearAllSubscriptions> | ReturnType<typeof clearAllTags> | ReturnType<typeof clearAllTaskGroups> | ReturnType<typeof clearAllTaskSummary> | ReturnType<typeof clearAllTasks> | ReturnType<typeof clearAllToastNotifications> | ReturnType<typeof clearAllTransactions> | ReturnType<typeof clearAllUserRoles> | ReturnType<typeof clearAllUsers> | ReturnType<typeof clearAllVendorExpenseTrends> | ReturnType<typeof clearAllVendors> | ReturnType<typeof clearClassList> | ReturnType<typeof clearContacts> | ReturnType<typeof clearDepositAccountTransaction> | ReturnType<typeof clearSnackbar>;
161
164
  export declare type ActionType = clearActionTypeForViews | clearActionTypeForEntities | ReturnType<typeof clearAll>;
162
165
  export declare const clearAllEpic: (actions$: ActionsObservable<ActionType>) => import("rxjs").Observable<ActionType>;
163
166
  export {};
@@ -161,6 +161,10 @@ const notificationViewReducer_1 = require("../../view/notificationView/notificat
161
161
  const tagReducer_1 = require("../tag/tagReducer");
162
162
  const tagViewReducer_1 = require("../../view/tagView/tagViewReducer");
163
163
  const companyTaskManagerViewReducer_1 = require("../../view/companyTaskManagerView/companyTaskManagerViewReducer");
164
+ const toastNotificationReducer_1 = require("../../entity/toastNotification/toastNotificationReducer");
165
+ const taskGroupReducer_1 = require("../../entity/taskGroup/taskGroupReducer");
166
+ const taskGroupViewReducer_1 = require("../../view/taskManager/taskGroupView/taskGroupViewReducer");
167
+ const billsBulkActionViewReducer_1 = require("../../view/spendManagement/billPay/billsBulkActionView/billsBulkActionViewReducer");
164
168
  const clearAllEpic = (actions$) => actions$.pipe((0, operators_1.filter)(tenantReducer_1.clearAll.match), (0, operators_1.mergeMap)((action) => {
165
169
  const { keepTenantCompanyState } = action.payload;
166
170
  // Note: Please maintain strict alphabetical order
@@ -180,6 +184,7 @@ const clearAllEpic = (actions$) => actions$.pipe((0, operators_1.filter)(tenantR
180
184
  (0, bankAccountViewReducer_1.clearBankAccountView)(),
181
185
  (0, billDetailViewReducer_1.clearBillDetailView)(),
182
186
  (0, billListReducer_1.clearBillList)(),
187
+ (0, billsBulkActionViewReducer_1.clearBillPayBulkActionView)(),
183
188
  (0, billPayCardReducer_1.clearBillPayCard)(),
184
189
  (0, billPayConfigReducer_1.clearBillPayConfig)(),
185
190
  (0, billPayReviewReducer_1.clearBillPayReview)(),
@@ -252,6 +257,7 @@ const clearAllEpic = (actions$) => actions$.pipe((0, operators_1.filter)(tenantR
252
257
  (0, subscriptionViewReducer_1.clearSubscriptionView)(),
253
258
  (0, tagViewReducer_1.clearTagView)(),
254
259
  (0, taskDetailReducer_1.clearTaskDetail)(),
260
+ (0, taskGroupViewReducer_1.clearTaskGroupView)(),
255
261
  (0, taskListReducer_1.clearTaskList)(),
256
262
  (0, tasksCardReducer_1.clearTasksCard)(),
257
263
  (0, topExReducer_1.clearTopEx)(),
@@ -314,8 +320,10 @@ const clearAllEpic = (actions$) => actions$.pipe((0, operators_1.filter)(tenantR
314
320
  (0, subscriptionSummaryReducer_1.clearAllSubscriptionSummary)(),
315
321
  (0, subscriptionReducer_1.clearAllSubscriptions)(),
316
322
  (0, tagReducer_1.clearAllTags)(),
323
+ (0, taskGroupReducer_1.clearAllTaskGroups)(),
317
324
  (0, taskReducer_1.clearAllTasks)(),
318
325
  (0, taskSummaryReducer_1.clearAllTaskSummary)(),
326
+ (0, toastNotificationReducer_1.clearAllToastNotifications)(),
319
327
  (0, transactionReducer_1.clearAllTransactions)(),
320
328
  (0, userRoleReducer_1.clearAllUserRoles)(),
321
329
  (0, userReducer_1.clearAllUsers)(),
@@ -5,7 +5,7 @@ import { openSnackbar } from '../../../entity/snackbar/snackbarReducer';
5
5
  export declare type ActionType = ReturnType<typeof pushToastNotification> | ReturnType<typeof openSnackbar>;
6
6
  export declare const pushToastNotificationEpic: (actions$: ActionsObservable<ActionType>, state$: StateObservable<RootState>) => import("rxjs").Observable<{
7
7
  payload: {
8
- messageSection: "reimbursement_setup" | "common" | "transactionDetails_updatingPastTransactions" | "transactionDetails_transactionUpdated" | "cockpit_month_end_email_sent" | "cockpit_month_end_email_save" | "cockpit_month_end_email_attachment_upload" | "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" | "bill_pay_setup" | "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" | "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" | "charge_card_setup" | "charge_card_accept_term" | "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" | "settings_accounting_accounts_updated" | "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";
8
+ messageSection: "reimbursement_setup" | "common" | "transactionDetails_updatingPastTransactions" | "transactionDetails_transactionUpdated" | "cockpit_month_end_email_sent" | "cockpit_month_end_email_save" | "cockpit_month_end_email_attachment_upload" | "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" | "bill_pay_setup" | "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_setup" | "charge_card_accept_term" | "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" | "settings_accounting_accounts_updated" | "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";
9
9
  messageText: "failed" | "success" | "notification";
10
10
  type: import("../../..").SnackbarMessageType;
11
11
  showStatusIcon?: boolean | undefined;
@@ -2,6 +2,8 @@ import { ID } from '../../../commonStateTypes/common';
2
2
  import { ZeniDate } from '../../../zeniDayJS';
3
3
  import { ZeniUrl as Url } from '../../../zeniUrl';
4
4
  import { File } from '../../file/fileState';
5
+ import { ZeniAPIResponse } from '../../../responsePayload';
6
+ import { AttachmentPayload } from '../payloadTypes/attachmentPayload';
5
7
  export declare const toContentType: (v: string) => "image/svg+xml" | "text/html" | "text/xml" | "application/pdf" | "image/jpeg" | "image/jpg" | "image/png" | "image/heic" | "text/csv" | "text/plain" | "application/vnd.ms-excel" | "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" | "application/postscript" | "application/msword" | "application/vnd.openxmlformats-officedocument.wordprocessingml.document" | "application/vnd.oasis.opendocument.text" | "application/vnd.oasis.opendocument.spreadsheet" | "application/rtf" | "image/heif" | "image/webp" | "image/gif";
6
8
  export declare type ContentType = ReturnType<typeof toContentType>;
7
9
  export declare const toContentTypeStrict: (v: string) => "image/svg+xml" | "text/html" | "text/xml" | "application/pdf" | "image/jpeg" | "image/jpg" | "image/png" | "image/heic" | "text/csv" | "text/plain" | "application/vnd.ms-excel" | "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" | "application/postscript" | "application/msword" | "application/vnd.openxmlformats-officedocument.wordprocessingml.document" | "application/vnd.oasis.opendocument.text" | "application/vnd.oasis.opendocument.spreadsheet" | "application/rtf" | "image/heif" | "image/webp" | "image/gif" | undefined;
@@ -17,3 +19,7 @@ export interface Attachment {
17
19
  fileId: ID;
18
20
  }
19
21
  export declare const mapFileEntityToAttachment: (file: File) => Attachment;
22
+ export interface AttachmentViewPayload {
23
+ transaction_attachments: AttachmentPayload[];
24
+ }
25
+ export declare type AttachmentViewResponse = ZeniAPIResponse<AttachmentViewPayload>;
@@ -13,6 +13,9 @@ export declare type EmployeeTransactionType = ReturnType<typeof toEmployeeTransa
13
13
  export declare const toTransferTransactionType: (v: string) => "transfer" | "credit_card_payment";
14
14
  export declare const toTransferTransactionTypeStrict: (v?: string | undefined) => "transfer" | "credit_card_payment" | undefined;
15
15
  export declare type TransferTransactionType = ReturnType<typeof toTransferTransactionType>;
16
+ export declare const toJEAndDepositTransactionType: (v: string) => "transfer" | "credit_card_payment" | "deposit" | "journal_entry";
17
+ export declare const toJEAndDepositTransactionTypeStrict: (v?: string | undefined) => "transfer" | "credit_card_payment" | "deposit" | "journal_entry" | undefined;
18
+ export declare type JEAndDepositTransactionType = ReturnType<typeof toJEAndDepositTransactionType>;
16
19
  export declare const toOtherTransactionType: (v: string) => "transfer" | "credit_card_payment" | "deposit" | "journal_entry";
17
20
  export declare const toOtherTransactionTypeStrict: (v?: string | undefined) => "transfer" | "credit_card_payment" | "deposit" | "journal_entry" | undefined;
18
21
  export declare type OtherTransactionType = ReturnType<typeof toOtherTransactionType>;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.toTransactionCategory = exports.ALL_TRANSACTION_CATEGORY = exports.toTransactionTypeStrict = exports.toTransactionType = exports.toOtherTransactionTypeStrict = exports.toOtherTransactionType = exports.toTransferTransactionTypeStrict = exports.toTransferTransactionType = exports.toEmployeeTransactionTypeStrict = exports.toEmployeeTransactionType = exports.toVendorTransactionTypeStrict = exports.toVendorTransactionType = exports.toCustomerTransactionTypeStrict = exports.toCustomerTransactionType = exports.toTypeOfTransactionStrict = exports.toTypeOfTransaction = void 0;
3
+ exports.toTransactionCategory = exports.ALL_TRANSACTION_CATEGORY = exports.toTransactionTypeStrict = exports.toTransactionType = exports.toOtherTransactionTypeStrict = exports.toOtherTransactionType = exports.toJEAndDepositTransactionTypeStrict = exports.toJEAndDepositTransactionType = exports.toTransferTransactionTypeStrict = exports.toTransferTransactionType = exports.toEmployeeTransactionTypeStrict = exports.toEmployeeTransactionType = exports.toVendorTransactionTypeStrict = exports.toVendorTransactionType = exports.toCustomerTransactionTypeStrict = exports.toCustomerTransactionType = exports.toTypeOfTransactionStrict = exports.toTypeOfTransaction = void 0;
4
4
  const stringToUnion_1 = require("../../../commonStateTypes/stringToUnion");
5
5
  const ALL_TYPES_OF_TRANSACTIONS = [
6
6
  'schedule',
@@ -50,10 +50,14 @@ const toTransferTransactionType = (v) => (0, stringToUnion_1.stringToUnion)(v, A
50
50
  exports.toTransferTransactionType = toTransferTransactionType;
51
51
  const toTransferTransactionTypeStrict = (v) => (0, stringToUnion_1.stringToUnionStrict)(v !== null && v !== void 0 ? v : '', ALL_TRANSFER_TRANSACTION_TYPE);
52
52
  exports.toTransferTransactionTypeStrict = toTransferTransactionTypeStrict;
53
+ const JE_AND_DEPOSIT_TRANSACTION_TYPE = ['deposit', 'journal_entry'];
54
+ const toJEAndDepositTransactionType = (v) => (0, stringToUnion_1.stringToUnion)(v, ALL_OTHER_TRANSACTION_TYPE);
55
+ exports.toJEAndDepositTransactionType = toJEAndDepositTransactionType;
56
+ const toJEAndDepositTransactionTypeStrict = (v) => (0, stringToUnion_1.stringToUnionStrict)(v !== null && v !== void 0 ? v : '', ALL_OTHER_TRANSACTION_TYPE);
57
+ exports.toJEAndDepositTransactionTypeStrict = toJEAndDepositTransactionTypeStrict;
53
58
  const ALL_OTHER_TRANSACTION_TYPE = [
54
59
  ...ALL_TRANSFER_TRANSACTION_TYPE,
55
- 'deposit',
56
- 'journal_entry',
60
+ ...JE_AND_DEPOSIT_TRANSACTION_TYPE,
57
61
  ];
58
62
  const toOtherTransactionType = (v) => (0, stringToUnion_1.stringToUnion)(v, ALL_OTHER_TRANSACTION_TYPE);
59
63
  exports.toOtherTransactionType = toOtherTransactionType;
@@ -10,6 +10,7 @@ import { UserPayload } from '../user/userPayload';
10
10
  import { FilePayload } from '../file/filePayload';
11
11
  import { RecommendationPayload } from '../../commonPayloadTypes/recommendationPayload';
12
12
  import { PaymentInstrumentPayload } from '../paymentInstrument/paymentInstrumentPayload';
13
+ import { AttachmentPayload } from '../transaction/payloadTypes/attachmentPayload';
13
14
  export interface VendorBasePayload {
14
15
  vendor_id: string;
15
16
  vendor_name: string;
@@ -34,6 +35,7 @@ export interface VendorPayload extends VendorBasePayload, SpendPayload {
34
35
  qbo_id: string;
35
36
  currency_code: string;
36
37
  currency_symbol: string;
38
+ transaction_attachments?: AttachmentPayload[] | null;
37
39
  title?: string;
38
40
  suffix?: string;
39
41
  first_name?: string;
@@ -5,6 +5,7 @@ const urlPayload_1 = require("../../commonPayloadTypes/urlPayload");
5
5
  const zeniDayJS_1 = require("../../zeniDayJS");
6
6
  const transactionPayload_1 = require("../transaction/payloadTypes/transactionPayload");
7
7
  const billTransactionState_1 = require("../billPay/billTransaction/billTransactionState");
8
+ const attachmentPayload_1 = require("../transaction/payloadTypes/attachmentPayload");
8
9
  const mapVendorBasePayloadToVendorBase = (payload) => ({
9
10
  id: payload.vendor_id,
10
11
  name: payload.vendor_name,
@@ -36,6 +37,9 @@ const mapVendorPayloadToVendor = (payload) => {
36
37
  ? (0, transactionPayload_1.transformRecommendation)(payload.recommendation[0]) // In this case, there will be only one recommendation item since this is entity recommendation payload.
37
38
  : [], preferredInternationalTransferFeeBearerPaymentMethod: payload.preferred_international_transfer_fee_bearer_payment_method != null
38
39
  ? (0, billTransactionState_1.toInternationalTransferFeeBearerPaymentMethod)(payload.preferred_international_transfer_fee_bearer_payment_method)
39
- : undefined });
40
+ : undefined, transactionAttachments: payload.transaction_attachments != null &&
41
+ payload.transaction_attachments.length > 0
42
+ ? payload.transaction_attachments.map((attachmentPayload) => (0, attachmentPayload_1.toAttachment)(attachmentPayload))
43
+ : [] });
40
44
  };
41
45
  exports.mapVendorPayloadToVendor = mapVendorPayloadToVendor;
@@ -4,6 +4,7 @@ import { Recommendation } from '../../commonStateTypes/recommendationBase';
4
4
  import { ZeniDate } from '../../zeniDayJS';
5
5
  import { ZeniUrl as Url } from '../../zeniUrl';
6
6
  import { InternationalTransferFeeBearerPaymentMethod } from '../billPay/billTransaction/billTransactionState';
7
+ import { Attachment } from '../transaction/stateTypes/attachment';
7
8
  export interface VendorBase {
8
9
  id: ID;
9
10
  name: string;
@@ -57,6 +58,7 @@ export interface Vendor extends VendorBase {
57
58
  last6MonthsSpend?: number;
58
59
  last12MonthsSpend?: number;
59
60
  previousYearSpend?: number;
61
+ transactionAttachments: Attachment[];
60
62
  }
61
63
  export interface VendorState {
62
64
  vendorByID: Record<ID, Vendor>;