@zeniai/client-epic-state 4.12.32 → 4.12.34

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/index.d.ts CHANGED
@@ -644,9 +644,9 @@ import { fetchGlobalMerchantAutoCompleteView, clearGlobalMerchantAutoCompleteRes
644
644
  export { GlobalMerchant, GlobalMerchantBase, TenantMerchant };
645
645
  export { ReviewStatus, VendorTransactionAttachment, VendorTransactionAttachmentPayload, VendorFirstReviewViewSelectorView, VendorFirstReviewViewLocalData, VendorFirstReviewSelectorView, VendorFirstReviewSelectorAttachmentView, VendorFirstReviewViewUIState, VendorFirstReviewViewColumnKey, GlobalMerchantAutoCompleteView, VendorReviewRowCurrentSelection, toVendorFirstReviewViewColumnKeyType, RecommendedNonExistingGlobalMerchant, getGlobalMerchantAutoCompleteResults, VendorReviewRecommendationViewState, GlobalMerchantType, getVendorFirstReviewView, getVendorFirstReviewAttachmentView, fetchVendorFirstReviewView, fetchVendorFirstReviewAttachments, updateVendorFirstReviewViewScrollYOffset, resetVendorFirstReviewLocalData, updateVendorFirstReviewViewPageToken, clearRecentlySavedErroredVendorData, saveVendorFirstReviewView, updateVendorFirstReviewViewLocalData, updateVendorFirstReviewSortUiState, fetchGlobalMerchantAutoCompleteView, clearGlobalMerchantAutoCompleteResults, GlobalVendorReviewRowCurrentSelection, FirstReviewPageCurrentSelectionByColumn, updateReviewVendorDetailLocalData, saveVendorDetailsView, getVendorDetailSelectorView, FirstReviewVendorDetailSelectorView, VendorViewLocalData, };
646
646
  import { fetchGlobalMerchantRecommendation, createGlobalMerchant, updateCreateGlobalMerchantLocalData, clearGlobalMerchantView } from './view/globalMerchantView/globalMerchantViewReducer';
647
- import { GlobalMerchantViewState, NewGlobalMerchantData, GlobalRecommendationFetchSource } from './view/globalMerchantView/globalMerchantViewState';
647
+ import { GlobalMerchantViewState, NewGlobalMerchantData, GlobalRecommendationFetchSource, NewGlobalMerchantCurrentSelection } from './view/globalMerchantView/globalMerchantViewState';
648
648
  import { getGlobalMerchantView, GlobalMerchantViewSelectorView } from './view/globalMerchantView/globalMerchantViewSelector';
649
- export { fetchGlobalMerchantRecommendation, createGlobalMerchant, updateCreateGlobalMerchantLocalData, clearGlobalMerchantView, getGlobalMerchantView, GlobalMerchantViewSelectorView, GlobalMerchantViewState, NewGlobalMerchantData, };
649
+ export { fetchGlobalMerchantRecommendation, createGlobalMerchant, updateCreateGlobalMerchantLocalData, clearGlobalMerchantView, getGlobalMerchantView, GlobalMerchantViewSelectorView, GlobalMerchantViewState, NewGlobalMerchantData, NewGlobalMerchantCurrentSelection, };
650
650
  import { approveVendorGlobalReview, rejectVendorGlobalReview, fetchVendorGlobalReviewView, updateSelectedGlobalMerchant, updateVendorGlobalReviewViewUIState, updateVendorGlobalReviewViewLocalData } from './view/vendorReviewView/vendorGlobalReviewView/vendorGlobalReviewViewReducer';
651
651
  import { VendorGlobalReviewViewState, VendorGlobalReviewViewUIState, VendorGlobalReviewViewLocalData, toVendorGlobalReviewColumnSortKeyType, VendorGlobalReviewViewColumnSortKey, GlobalReviewPageCurrentSelectionByColumn } from './view/vendorReviewView/vendorGlobalReviewView/vendorGlobalReviewViewState';
652
652
  import { VendorGlobalReview, getVendorGlobalReviewView, getTenantMerchantByMerchantId, VendorGlobalReviewViewSelectorView } from './view/vendorReviewView/vendorGlobalReviewView/vendorGlobalReviewViewSelector';
@@ -1,5 +1,5 @@
1
1
  /// <reference types="url-parse" />
2
- import { GlobalMerchantViewState, GlobalRecommendationFetchSource } from './globalMerchantViewState';
2
+ import { GlobalMerchantViewState, GlobalRecommendationFetchSource, NewGlobalMerchantCurrentSelection } from './globalMerchantViewState';
3
3
  import { ID } from '../../commonStateTypes/common';
4
4
  import { ZeniAPIStatus } from '../../responsePayload';
5
5
  import { VendorReviewViewAllRecommendationsPayload } from '../vendorReviewView/common/payload/commonTypes';
@@ -16,8 +16,9 @@ export declare const createGlobalMerchant: import("@reduxjs/toolkit").ActionCrea
16
16
  merchantName: string | undefined;
17
17
  }, string, never, never>, fetchGlobalMerchantRecommendationSuccess: import("@reduxjs/toolkit").ActionCreatorWithPayload<VendorReviewViewAllRecommendationsPayload, string>, fetchGlobalMerchantRecommendationFailure: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
18
18
  status: ZeniAPIStatus;
19
- }, string>, updateCreateGlobalMerchantLocalData: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[globalMerchantName: string, globalMerchantWebsiteUrl?: import("url-parse")<string> | import("url-parse")<Record<string, string | undefined>> | undefined], {
19
+ }, string>, updateCreateGlobalMerchantLocalData: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[globalMerchantName: string, currentSelection: NewGlobalMerchantCurrentSelection, globalMerchantWebsiteUrl?: import("url-parse")<string> | import("url-parse")<Record<string, string | undefined>> | undefined], {
20
20
  globalMerchantName: string;
21
+ currentSelection: NewGlobalMerchantCurrentSelection;
21
22
  globalMerchantWebsiteUrl: import("url-parse")<string> | import("url-parse")<Record<string, string | undefined>> | undefined;
22
23
  }, string, never, never>, clearGlobalMerchantView: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>;
23
24
  declare const _default: import("@reduxjs/toolkit").Reducer<GlobalMerchantViewState, import("@reduxjs/toolkit").AnyAction>;
@@ -51,11 +51,12 @@ const globalMerchantView = (0, toolkit_1.createSlice)({
51
51
  },
52
52
  updateCreateGlobalMerchantLocalData: {
53
53
  reducer(draft, action) {
54
- const { globalMerchantWebsiteUrl, globalMerchantName } = action.payload;
54
+ const { globalMerchantWebsiteUrl, globalMerchantName, currentSelection } = action.payload;
55
55
  if (draft.newGlobalMerchantData != null) {
56
56
  draft.newGlobalMerchantData.globalMerchantName = globalMerchantName;
57
57
  draft.newGlobalMerchantData.globalMerchantWebsiteUrl =
58
58
  globalMerchantWebsiteUrl;
59
+ draft.newGlobalMerchantData.currentSelection = currentSelection;
59
60
  }
60
61
  else {
61
62
  draft.newGlobalMerchantData = {
@@ -64,12 +65,17 @@ const globalMerchantView = (0, toolkit_1.createSlice)({
64
65
  globalMerchantType: 'vendor',
65
66
  status: { fetchState: 'Not-Started', error: undefined },
66
67
  newGlobalMerchantId: undefined,
68
+ currentSelection,
67
69
  };
68
70
  }
69
71
  },
70
- prepare(globalMerchantName, globalMerchantWebsiteUrl) {
72
+ prepare(globalMerchantName, currentSelection, globalMerchantWebsiteUrl) {
71
73
  return {
72
- payload: { globalMerchantName, globalMerchantWebsiteUrl },
74
+ payload: {
75
+ globalMerchantName,
76
+ currentSelection,
77
+ globalMerchantWebsiteUrl,
78
+ },
73
79
  };
74
80
  },
75
81
  },
@@ -6,6 +6,7 @@ export interface NewGlobalMerchantData {
6
6
  globalMerchantName: string;
7
7
  globalMerchantWebsiteUrl?: ZeniUrl;
8
8
  globalMerchantType: GlobalMerchantType;
9
+ currentSelection: NewGlobalMerchantCurrentSelection;
9
10
  status: FetchStateAndError;
10
11
  newGlobalMerchantId?: ID;
11
12
  }
@@ -15,3 +16,4 @@ export interface GlobalMerchantViewState extends FetchedState {
15
16
  recommendedNonExistingGlobalMerchants: RecommendedNonExistingGlobalMerchant[];
16
17
  }
17
18
  export declare type GlobalRecommendationFetchSource = 'tenant' | 'global';
19
+ export declare type NewGlobalMerchantCurrentSelection = 'recommendedFirst' | 'recommendedSecond' | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zeniai/client-epic-state",
3
- "version": "4.12.32",
3
+ "version": "4.12.34",
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",