@zeniai/client-epic-state 4.12.21 → 4.12.22

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 (82) hide show
  1. package/lib/entity/chargeCardTransaction/chargeCardTransaction.d.ts +2 -0
  2. package/lib/entity/chargeCardTransaction/chargeCardTransactionPayload.d.ts +5 -0
  3. package/lib/entity/chargeCardTransaction/chargeCardTransactionPayload.js +4 -2
  4. package/lib/entity/chargeCardTransaction/chargeCardTransactionReducer.d.ts +6 -2
  5. package/lib/entity/chargeCardTransaction/chargeCardTransactionReducer.js +8 -2
  6. package/lib/entity/snackbar/snackbarTypes.d.ts +1 -1
  7. package/lib/entity/snackbar/snackbarTypes.js +1 -0
  8. package/lib/entity/task/taskState.d.ts +0 -3
  9. package/lib/entity/task/taskState.js +0 -13
  10. package/lib/entity/toastNotification/epic/pushToastNotificationEpic.d.ts +1 -1
  11. package/lib/epic.d.ts +4 -1
  12. package/lib/epic.js +4 -1
  13. package/lib/index.d.ts +18 -16
  14. package/lib/index.js +17 -5
  15. package/lib/view/cardPayment/epic/addCardPaymentSourceEpic.d.ts +1 -1
  16. package/lib/view/cardPayment/epic/confirmCardSetupIntentEpic.d.ts +1 -1
  17. package/lib/view/cardPayment/epic/createCardSetupIntentEpic.d.ts +1 -1
  18. package/lib/view/cardPayment/epic/fetchPaymentSourcesEpic.d.ts +1 -1
  19. package/lib/view/globalMerchantView/epics/fetchGlobalMerchantRecommendationEpic.d.ts +3 -3
  20. package/lib/view/globalMerchantView/epics/fetchGlobalMerchantRecommendationEpic.js +20 -4
  21. package/lib/view/globalMerchantView/globalMerchantViewReducer.d.ts +5 -2
  22. package/lib/view/globalMerchantView/globalMerchantViewReducer.js +8 -3
  23. package/lib/view/globalMerchantView/globalMerchantViewSelector.d.ts +1 -1
  24. package/lib/view/globalMerchantView/globalMerchantViewSelector.js +6 -5
  25. package/lib/view/globalMerchantView/globalMerchantViewState.d.ts +1 -0
  26. package/lib/view/people/changeZeniPersonRolesEpic.d.ts +1 -1
  27. package/lib/view/people/deletePersonEpic.d.ts +1 -1
  28. package/lib/view/people/invitePeopleEpic.d.ts +1 -1
  29. package/lib/view/people/inviteZeniPeopleEpic.d.ts +1 -1
  30. package/lib/view/people/resendInviteEpic.d.ts +1 -1
  31. package/lib/view/settingsView/epic/saveNotificationSettingsEpic.d.ts +1 -1
  32. package/lib/view/spendManagement/billPay/billPayConfig/billPayConfigPayload.d.ts +4 -0
  33. package/lib/view/spendManagement/billPay/billPayConfig/billPayConfigReducer.js +9 -0
  34. package/lib/view/spendManagement/billPay/billPayConfig/billPayConfigState.d.ts +4 -0
  35. package/lib/view/spendManagement/billPay/editBillView/editBillViewSelector.d.ts +10 -4
  36. package/lib/view/spendManagement/billPay/editBillView/editBillViewSelector.js +82 -29
  37. package/lib/view/spendManagement/billPay/editBillView/epics/initializeBillToLocalStoreEpic.js +2 -2
  38. package/lib/view/spendManagement/billPay/editBillView/epics/parseInvoiceToBillEpic.js +1 -1
  39. package/lib/view/spendManagement/chargeCards/chargeCardConfig/chargeCardConfigPayload.d.ts +6 -0
  40. package/lib/view/spendManagement/chargeCards/chargeCardConfig/chargeCardConfigReducer.js +9 -0
  41. package/lib/view/spendManagement/chargeCards/chargeCardConfig/chargeCardConfigState.d.ts +3 -0
  42. package/lib/view/spendManagement/chargeCards/chargeCardDetail/chargeCardDetail.d.ts +11 -1
  43. package/lib/view/spendManagement/chargeCards/chargeCardDetail/chargeCardDetail.js +20 -2
  44. package/lib/view/spendManagement/chargeCards/chargeCardDetail/chargeCardDetailPayload.d.ts +5 -0
  45. package/lib/view/spendManagement/chargeCards/chargeCardDetail/chargeCardDetailReducer.d.ts +27 -2
  46. package/lib/view/spendManagement/chargeCards/chargeCardDetail/chargeCardDetailReducer.js +77 -4
  47. package/lib/view/spendManagement/chargeCards/chargeCardDetail/chargeCardDetailSelector.d.ts +8 -0
  48. package/lib/view/spendManagement/chargeCards/chargeCardDetail/chargeCardDetailSelector.js +19 -2
  49. package/lib/view/spendManagement/chargeCards/chargeCardDetail/fetchChargeCardTransactionAttachmentsEpic.d.ts +10 -0
  50. package/lib/view/spendManagement/chargeCards/chargeCardDetail/fetchChargeCardTransactionAttachmentsEpic.js +42 -0
  51. package/lib/view/spendManagement/chargeCards/chargeCardDetail/fetchChargeCardTransactionListEpic.js +3 -1
  52. package/lib/view/spendManagement/reimbursement/editRemiView/editRemiViewReducer.js +4 -2
  53. package/lib/view/tagView/epics/createTagEpic.d.ts +1 -1
  54. package/lib/view/tagView/epics/deleteTagEpic.d.ts +1 -1
  55. package/lib/view/taskManager/taskDetailView/taskDetail.js +1 -1
  56. package/lib/view/taskManager/taskListView/bulkUpdateTaskListEpic.d.ts +23 -0
  57. package/lib/view/taskManager/taskListView/bulkUpdateTaskListEpic.js +3 -2
  58. package/lib/view/taskManager/taskListView/taskListReducer.d.ts +5 -0
  59. package/lib/view/taskManager/taskListView/taskListReducer.js +64 -3
  60. package/lib/view/taskManager/taskListView/updateTaskFromListViewEpic.d.ts +8 -0
  61. package/lib/view/taskManager/taskListView/updateTaskFromListViewEpic.js +38 -0
  62. package/lib/view/vendorReviewView/common/state/commonTypes.d.ts +2 -1
  63. package/lib/view/vendorReviewView/common/state/commonTypes.js +4 -4
  64. package/lib/view/vendorReviewView/vendorFirstReviewView/epics/saveVendorDetailsViewEpic.d.ts +8 -0
  65. package/lib/view/vendorReviewView/vendorFirstReviewView/epics/saveVendorDetailsViewEpic.js +62 -0
  66. package/lib/view/vendorReviewView/vendorFirstReviewView/vendorFirstReviewViewPayload.d.ts +7 -1
  67. package/lib/view/vendorReviewView/vendorFirstReviewView/vendorFirstReviewViewPayload.js +11 -1
  68. package/lib/view/vendorReviewView/vendorFirstReviewView/vendorFirstReviewViewReducer.d.ts +14 -4
  69. package/lib/view/vendorReviewView/vendorFirstReviewView/vendorFirstReviewViewReducer.js +58 -49
  70. package/lib/view/vendorReviewView/vendorFirstReviewView/vendorFirstReviewViewSelector.d.ts +10 -0
  71. package/lib/view/vendorReviewView/vendorFirstReviewView/vendorFirstReviewViewSelector.js +21 -1
  72. package/lib/view/vendorReviewView/vendorFirstReviewView/vendorFirstReviewViewState.d.ts +20 -2
  73. package/lib/view/vendorReviewView/vendorGlobalReviewView/epics/fetchVendorGlobalReviewViewEpic.js +4 -4
  74. package/lib/view/vendorReviewView/vendorGlobalReviewView/vendorGlobalReviewViewPayload.d.ts +1 -1
  75. package/lib/view/vendorReviewView/vendorGlobalReviewView/vendorGlobalReviewViewPayload.js +2 -2
  76. package/lib/view/vendorReviewView/vendorGlobalReviewView/vendorGlobalReviewViewReducer.d.ts +6 -1
  77. package/lib/view/vendorReviewView/vendorGlobalReviewView/vendorGlobalReviewViewReducer.js +18 -6
  78. package/lib/view/vendorReviewView/vendorGlobalReviewView/vendorGlobalReviewViewSelector.d.ts +3 -1
  79. package/lib/view/vendorReviewView/vendorGlobalReviewView/vendorGlobalReviewViewSelector.js +7 -5
  80. package/lib/view/vendorReviewView/vendorGlobalReviewView/vendorGlobalReviewViewState.d.ts +9 -1
  81. package/lib/view/vendorReviewView/vendorGlobalReviewView/vendorGlobalReviewViewState.js +2 -2
  82. package/package.json +1 -1
@@ -1,9 +1,16 @@
1
1
  import { FetchStateAndError, FetchedState, ID } from '../../../commonStateTypes/common';
2
2
  import { SortOrder } from '../../../commonStateTypes/selectorTypes/sortOrderTypes';
3
3
  import { PageToken } from '../../../commonStateTypes/viewAndReport/viewAndReport';
4
+ import { GlobalVendorReviewRowCurrentSelection } from '../common/state/commonTypes';
4
5
  import { RecommendedNonExistingGlobalMerchant } from '../vendorFirstReviewView/vendorFirstReviewViewState';
5
- export declare const toVendorGlobalReviewColumnSortKeyType: (v: string) => "vendors" | "recommended" | "tenants" | "updatedFrom";
6
+ export declare const toVendorGlobalReviewColumnSortKeyType: (v: string) => "recommended" | "originalVendor" | "tenants" | "requestedVendor";
6
7
  export declare type VendorGlobalReviewViewColumnSortKey = ReturnType<typeof toVendorGlobalReviewColumnSortKeyType>;
8
+ export interface GlobalReviewPageCurrentSelectionByColumn {
9
+ requested: boolean;
10
+ recommendedFirst: boolean;
11
+ recommendedSecond: boolean;
12
+ originalVendor: boolean;
13
+ }
7
14
  export interface VendorGlobalReviewViewUIState {
8
15
  searchText: string;
9
16
  sortKey: VendorGlobalReviewViewColumnSortKey;
@@ -19,6 +26,7 @@ export interface VendorGlobalReviewViewLocalData {
19
26
  tenantId: ID;
20
27
  recommendationIds: ID[];
21
28
  recommendedNonExistingGlobalMerchants: RecommendedNonExistingGlobalMerchant[];
29
+ currentSelection: GlobalVendorReviewRowCurrentSelection;
22
30
  }
23
31
  export interface VendorGlobalReviewView {
24
32
  vendorGlobalReviewViewLocalData: VendorGlobalReviewViewLocalData;
@@ -4,9 +4,9 @@ exports.toVendorGlobalReviewColumnSortKeyType = void 0;
4
4
  const stringToUnion_1 = require("../../../commonStateTypes/stringToUnion");
5
5
  const VENDOR_GLOBAL_REVIEW_COLUMN_SORT_KEYS = [
6
6
  'tenants',
7
- 'vendors',
8
- 'updatedFrom',
7
+ 'originalVendor',
9
8
  'recommended',
9
+ 'requestedVendor',
10
10
  ];
11
11
  const toVendorGlobalReviewColumnSortKeyType = (v) => (0, stringToUnion_1.stringToUnion)(v, VENDOR_GLOBAL_REVIEW_COLUMN_SORT_KEYS);
12
12
  exports.toVendorGlobalReviewColumnSortKeyType = toVendorGlobalReviewColumnSortKeyType;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zeniai/client-epic-state",
3
- "version": "4.12.21",
3
+ "version": "4.12.22",
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",