@zeniai/client-epic-state 4.13.18 → 4.13.19

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 (72) hide show
  1. package/lib/entity/snackbar/snackbarTypes.d.ts +1 -1
  2. package/lib/entity/snackbar/snackbarTypes.js +1 -0
  3. package/lib/entity/toastNotification/epic/pushToastNotificationEpic.d.ts +1 -1
  4. package/lib/entity/transaction/payloadTypes/transactionLinePayload.d.ts +3 -1
  5. package/lib/entity/transaction/payloadTypes/transactionLinePayload.js +6 -0
  6. package/lib/entity/transaction/payloadTypes/transactionPayload.d.ts +2 -0
  7. package/lib/entity/transaction/payloadTypes/transactionPayload.js +3 -2
  8. package/lib/entity/transaction/stateTypes/transactionLine.d.ts +5 -0
  9. package/lib/entity/transaction/stateTypes/transactionLine.js +9 -1
  10. package/lib/entity/transaction/stateTypes/transactionType.d.ts +1 -1
  11. package/lib/entity/transaction/stateTypes/transactionType.js +2 -1
  12. package/lib/entity/transaction/transactionReducer.d.ts +3 -1
  13. package/lib/entity/transaction/transactionReducer.js +8 -2
  14. package/lib/epic.d.ts +7 -1
  15. package/lib/epic.js +7 -1
  16. package/lib/index.d.ts +7 -2
  17. package/lib/index.js +47 -25
  18. package/lib/view/accountList/fetchAccountListEpic.js +1 -1
  19. package/lib/view/cardPayment/epic/addCardPaymentSourceEpic.d.ts +1 -1
  20. package/lib/view/cardPayment/epic/confirmCardSetupIntentEpic.d.ts +1 -1
  21. package/lib/view/cardPayment/epic/createCardSetupIntentEpic.d.ts +1 -1
  22. package/lib/view/cardPayment/epic/fetchPaymentSourcesEpic.d.ts +1 -1
  23. package/lib/view/expenseAutomationView/epics/common/fetchAllExpenseAutomationTabsEpic.d.ts +2 -1
  24. package/lib/view/expenseAutomationView/epics/common/fetchAllExpenseAutomationTabsEpic.js +8 -2
  25. package/lib/view/expenseAutomationView/epics/common/refreshExpenseAutomationCurrentTabEpic.d.ts +2 -1
  26. package/lib/view/expenseAutomationView/epics/common/refreshExpenseAutomationCurrentTabEpic.js +5 -3
  27. package/lib/view/expenseAutomationView/epics/transactionCategorization/fetchTransactionCategorizationEpic.d.ts +8 -0
  28. package/lib/view/expenseAutomationView/epics/transactionCategorization/fetchTransactionCategorizationEpic.js +67 -0
  29. package/lib/view/expenseAutomationView/epics/transactionCategorization/fetchTransactionCategorizationViewEpic.d.ts +8 -0
  30. package/lib/view/expenseAutomationView/epics/transactionCategorization/fetchTransactionCategorizationViewEpic.js +38 -0
  31. package/lib/view/expenseAutomationView/epics/transactionCategorization/initializeTransactionCategorizationLocalDataEpic.d.ts +5 -0
  32. package/lib/view/expenseAutomationView/epics/transactionCategorization/initializeTransactionCategorizationLocalDataEpic.js +31 -0
  33. package/lib/view/expenseAutomationView/epics/transactionCategorization/markTransactionAsNotMiscatgorizedEpic.d.ts +8 -0
  34. package/lib/view/expenseAutomationView/epics/transactionCategorization/markTransactionAsNotMiscatgorizedEpic.js +56 -0
  35. package/lib/view/expenseAutomationView/epics/transactionCategorization/saveTransactionCategorizationEpic.d.ts +5 -0
  36. package/lib/view/expenseAutomationView/epics/transactionCategorization/saveTransactionCategorizationEpic.js +32 -0
  37. package/lib/view/expenseAutomationView/epics/transactionCategorization/updateTransactionCategorizationEpic.d.ts +6 -0
  38. package/lib/view/expenseAutomationView/epics/transactionCategorization/updateTransactionCategorizationEpic.js +164 -0
  39. package/lib/view/expenseAutomationView/expenseAutomationViewReducer.d.ts +3 -1
  40. package/lib/view/expenseAutomationView/expenseAutomationViewReducer.js +12 -2
  41. package/lib/view/expenseAutomationView/expenseAutomationViewSelector.js +14 -7
  42. package/lib/view/expenseAutomationView/expenseAutomationViewState.d.ts +2 -0
  43. package/lib/view/expenseAutomationView/helpers/saveTransactionHelper.d.ts +8 -0
  44. package/lib/view/expenseAutomationView/helpers/saveTransactionHelper.js +165 -0
  45. package/lib/view/expenseAutomationView/helpers/transactionCategorizationLocalDataHelper.d.ts +8 -0
  46. package/lib/view/expenseAutomationView/helpers/transactionCategorizationLocalDataHelper.js +175 -0
  47. package/lib/view/expenseAutomationView/payload/transactionCategorizationPayload.d.ts +48 -0
  48. package/lib/view/expenseAutomationView/payload/transactionCategorizationPayload.js +2 -0
  49. package/lib/view/expenseAutomationView/reducers/transactionsViewReducer.d.ts +100 -2
  50. package/lib/view/expenseAutomationView/reducers/transactionsViewReducer.js +368 -10
  51. package/lib/view/expenseAutomationView/selectorTypes/expenseAutomationViewSelectorTypes.d.ts +4 -0
  52. package/lib/view/expenseAutomationView/selectorTypes/transactionsViewSelectorTypes.d.ts +29 -0
  53. package/lib/view/expenseAutomationView/selectorTypes/transactionsViewSelectorTypes.js +2 -0
  54. package/lib/view/expenseAutomationView/selectors/transactionCategorizationSelector.d.ts +4 -0
  55. package/lib/view/expenseAutomationView/selectors/transactionCategorizationSelector.js +85 -0
  56. package/lib/view/expenseAutomationView/types/transactionsViewState.d.ts +97 -6
  57. package/lib/view/expenseAutomationView/types/transactionsViewState.js +15 -2
  58. package/lib/view/people/changeZeniPersonRolesEpic.d.ts +1 -1
  59. package/lib/view/people/deletePersonEpic.d.ts +1 -1
  60. package/lib/view/people/invitePeopleEpic.d.ts +1 -1
  61. package/lib/view/people/inviteZeniPeopleEpic.d.ts +1 -1
  62. package/lib/view/people/resendInviteEpic.d.ts +1 -1
  63. package/lib/view/reviewCompanyView/reviewCompanyViewState.d.ts +1 -1
  64. package/lib/view/scheduleView/scheduleListView/scheduleListTypes.d.ts +1 -1
  65. package/lib/view/settingsView/epic/saveNotificationSettingsEpic.d.ts +1 -1
  66. package/lib/view/tagView/epics/createTagEpic.d.ts +1 -1
  67. package/lib/view/tagView/epics/deleteTagEpic.d.ts +1 -1
  68. package/lib/view/transactionDetail/epics/saveTransactionHelper.d.ts +8 -0
  69. package/lib/view/transactionDetail/epics/saveTransactionHelper.js +11 -6
  70. package/lib/view/transactionDetail/transactionDetailLocalDataHelper.d.ts +10 -0
  71. package/lib/view/transactionDetail/transactionDetailLocalDataHelper.js +8 -7
  72. package/package.json +1 -1
@@ -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.18",
3
+ "version": "4.13.19",
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",