@salesforce/lds-adapters-commerce-catalog 1.170.0 → 1.170.1

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.
@@ -4,7 +4,7 @@
4
4
  * For full license text, see the LICENSE.txt file
5
5
  */
6
6
 
7
- import { serializeStructuredKey, StoreKeyMap, deepFreeze } from '@luvio/engine';
7
+ import { serializeStructuredKey, deepFreeze, StoreKeyMap } from '@luvio/engine';
8
8
 
9
9
  const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
10
10
  const { keys: ObjectKeys$1, create: ObjectCreate$1 } = Object;
@@ -197,8 +197,7 @@ const ingest$1 = function ProductCategoryPathRepresentationIngest(input, path, l
197
197
  }
198
198
  return createLink(key);
199
199
  };
200
- function getTypeCacheKeys$1(luvio, input, fullPathFactory) {
201
- const rootKeySet = new StoreKeyMap();
200
+ function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
202
201
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
203
202
  const rootKey = fullPathFactory();
204
203
  rootKeySet.set(rootKey, {
@@ -206,7 +205,6 @@ function getTypeCacheKeys$1(luvio, input, fullPathFactory) {
206
205
  representationName: RepresentationType$1,
207
206
  mergeable: false
208
207
  });
209
- return rootKeySet;
210
208
  }
211
209
 
212
210
  function select$2(luvio, params) {
@@ -215,8 +213,8 @@ function select$2(luvio, params) {
215
213
  function keyBuilder$3(luvio, params) {
216
214
  return keyPrefix + '::ProductCategoryPathRepresentation:(' + 'productCategoryId:' + params.urlParams.productCategoryId + ',' + 'webstoreId:' + params.urlParams.webstoreId + ')';
217
215
  }
218
- function getResponseCacheKeys$1(luvio, resourceParams, response) {
219
- return getTypeCacheKeys$1(luvio, response, () => keyBuilder$3(luvio, resourceParams));
216
+ function getResponseCacheKeys$1(storeKeyMap, luvio, resourceParams, response) {
217
+ getTypeCacheKeys$1(storeKeyMap, luvio, response, () => keyBuilder$3(luvio, resourceParams));
220
218
  }
221
219
  function ingestSuccess$1(luvio, resourceParams, response, snapshotRefresh) {
222
220
  const { body } = response;
@@ -322,7 +320,11 @@ function buildNetworkSnapshot$1(luvio, config, options) {
322
320
  const request = createResourceRequest$1(resourceParams);
323
321
  return luvio.dispatchResourceRequest(request, options)
324
322
  .then((response) => {
325
- return luvio.handleSuccessResponse(() => onFetchResponseSuccess$1(luvio, config, resourceParams, response), () => getResponseCacheKeys$1(luvio, resourceParams, response.body));
323
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess$1(luvio, config, resourceParams, response), () => {
324
+ const cache = new StoreKeyMap();
325
+ getResponseCacheKeys$1(cache, luvio, resourceParams, response.body);
326
+ return cache;
327
+ });
326
328
  }, (response) => {
327
329
  return luvio.handleErrorResponse(() => onFetchResponseError$1(luvio, config, resourceParams, response));
328
330
  });
@@ -689,8 +691,7 @@ const ingest = function ProductDetailRepresentationIngest(input, path, luvio, st
689
691
  }
690
692
  return createLink(key);
691
693
  };
692
- function getTypeCacheKeys(luvio, input, fullPathFactory) {
693
- const rootKeySet = new StoreKeyMap();
694
+ function getTypeCacheKeys(rootKeySet, luvio, input, fullPathFactory) {
694
695
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
695
696
  const rootKey = fullPathFactory();
696
697
  rootKeySet.set(rootKey, {
@@ -698,7 +699,6 @@ function getTypeCacheKeys(luvio, input, fullPathFactory) {
698
699
  representationName: RepresentationType,
699
700
  mergeable: false
700
701
  });
701
- return rootKeySet;
702
702
  }
703
703
 
704
704
  function select(luvio, params) {
@@ -707,8 +707,8 @@ function select(luvio, params) {
707
707
  function keyBuilder$1(luvio, params) {
708
708
  return keyPrefix + '::ProductDetailRepresentation:(' + 'effectiveAccountId:' + params.queryParams.effectiveAccountId + ',' + 'excludeEntitlement:' + params.queryParams.excludeEntitlement + ',' + 'excludeFields:' + params.queryParams.excludeFields + ',' + 'excludeMedia:' + params.queryParams.excludeMedia + ',' + 'excludePrimaryProductCategory:' + params.queryParams.excludePrimaryProductCategory + ',' + 'fields:' + params.queryParams.fields + ',' + 'mediaGroups:' + params.queryParams.mediaGroups + ',' + 'productId:' + params.urlParams.productId + ',' + 'webstoreId:' + params.urlParams.webstoreId + ')';
709
709
  }
710
- function getResponseCacheKeys(luvio, resourceParams, response) {
711
- return getTypeCacheKeys(luvio, response, () => keyBuilder$1(luvio, resourceParams));
710
+ function getResponseCacheKeys(storeKeyMap, luvio, resourceParams, response) {
711
+ getTypeCacheKeys(storeKeyMap, luvio, response, () => keyBuilder$1(luvio, resourceParams));
712
712
  }
713
713
  function ingestSuccess(luvio, resourceParams, response, snapshotRefresh) {
714
714
  const { body } = response;
@@ -859,7 +859,11 @@ function buildNetworkSnapshot(luvio, config, options) {
859
859
  const request = createResourceRequest(resourceParams);
860
860
  return luvio.dispatchResourceRequest(request, options)
861
861
  .then((response) => {
862
- return luvio.handleSuccessResponse(() => onFetchResponseSuccess(luvio, config, resourceParams, response), () => getResponseCacheKeys(luvio, resourceParams, response.body));
862
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess(luvio, config, resourceParams, response), () => {
863
+ const cache = new StoreKeyMap();
864
+ getResponseCacheKeys(cache, luvio, resourceParams, response.body);
865
+ return cache;
866
+ });
863
867
  }, (response) => {
864
868
  return luvio.handleErrorResponse(() => onFetchResponseError(luvio, config, resourceParams, response));
865
869
  });
@@ -1,4 +1,4 @@
1
- import { Luvio as $64$luvio_engine_Luvio, Fragment as $64$luvio_engine_Fragment, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, FetchResponse as $64$luvio_engine_FetchResponse, SnapshotRefresh as $64$luvio_engine_SnapshotRefresh, FulfilledSnapshot as $64$luvio_engine_FulfilledSnapshot, StaleSnapshot as $64$luvio_engine_StaleSnapshot, PendingSnapshot as $64$luvio_engine_PendingSnapshot, ErrorResponse as $64$luvio_engine_ErrorResponse, ErrorSnapshot as $64$luvio_engine_ErrorSnapshot, ResourceRequest as $64$luvio_engine_ResourceRequest } from '@luvio/engine';
1
+ import { Luvio as $64$luvio_engine_Luvio, Fragment as $64$luvio_engine_Fragment, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, FetchResponse as $64$luvio_engine_FetchResponse, SnapshotRefresh as $64$luvio_engine_SnapshotRefresh, FulfilledSnapshot as $64$luvio_engine_FulfilledSnapshot, StaleSnapshot as $64$luvio_engine_StaleSnapshot, PendingSnapshot as $64$luvio_engine_PendingSnapshot, ErrorResponse as $64$luvio_engine_ErrorResponse, ErrorSnapshot as $64$luvio_engine_ErrorSnapshot, ResourceRequest as $64$luvio_engine_ResourceRequest } from '@luvio/engine';
2
2
  import { ProductCategoryDetailRepresentation as types_ProductCategoryDetailRepresentation_ProductCategoryDetailRepresentation } from '../types/ProductCategoryDetailRepresentation';
3
3
  export interface ResourceRequestConfig {
4
4
  urlParams: {
@@ -16,7 +16,7 @@ export interface ResourceRequestConfig {
16
16
  export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
17
17
  export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): string;
18
18
  export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_NormalizedKeyMetadata;
19
- export declare function getResponseCacheKeys(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_ProductCategoryDetailRepresentation_ProductCategoryDetailRepresentation): $64$luvio_engine_DurableStoreKeyMetadataMap;
19
+ export declare function getResponseCacheKeys(storeKeyMap: any, luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_ProductCategoryDetailRepresentation_ProductCategoryDetailRepresentation): void;
20
20
  export declare function ingestSuccess(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_ProductCategoryDetailRepresentation_ProductCategoryDetailRepresentation>, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_ProductCategoryDetailRepresentation_ProductCategoryDetailRepresentation>): $64$luvio_engine_FulfilledSnapshot<types_ProductCategoryDetailRepresentation_ProductCategoryDetailRepresentation, {}> | $64$luvio_engine_StaleSnapshot<types_ProductCategoryDetailRepresentation_ProductCategoryDetailRepresentation, {}> | $64$luvio_engine_PendingSnapshot<types_ProductCategoryDetailRepresentation_ProductCategoryDetailRepresentation, any>;
21
21
  export declare function ingestError(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig, error: $64$luvio_engine_ErrorResponse, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_ProductCategoryDetailRepresentation_ProductCategoryDetailRepresentation>): $64$luvio_engine_ErrorSnapshot;
22
22
  export declare function createResourceRequest(config: ResourceRequestConfig): $64$luvio_engine_ResourceRequest;
@@ -1,4 +1,4 @@
1
- import { Luvio as $64$luvio_engine_Luvio, Fragment as $64$luvio_engine_Fragment, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, FetchResponse as $64$luvio_engine_FetchResponse, SnapshotRefresh as $64$luvio_engine_SnapshotRefresh, FulfilledSnapshot as $64$luvio_engine_FulfilledSnapshot, StaleSnapshot as $64$luvio_engine_StaleSnapshot, PendingSnapshot as $64$luvio_engine_PendingSnapshot, ErrorResponse as $64$luvio_engine_ErrorResponse, ErrorSnapshot as $64$luvio_engine_ErrorSnapshot, ResourceRequest as $64$luvio_engine_ResourceRequest } from '@luvio/engine';
1
+ import { Luvio as $64$luvio_engine_Luvio, Fragment as $64$luvio_engine_Fragment, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, FetchResponse as $64$luvio_engine_FetchResponse, SnapshotRefresh as $64$luvio_engine_SnapshotRefresh, FulfilledSnapshot as $64$luvio_engine_FulfilledSnapshot, StaleSnapshot as $64$luvio_engine_StaleSnapshot, PendingSnapshot as $64$luvio_engine_PendingSnapshot, ErrorResponse as $64$luvio_engine_ErrorResponse, ErrorSnapshot as $64$luvio_engine_ErrorSnapshot, ResourceRequest as $64$luvio_engine_ResourceRequest } from '@luvio/engine';
2
2
  import { ProductCategoryPathRepresentation as types_ProductCategoryPathRepresentation_ProductCategoryPathRepresentation } from '../types/ProductCategoryPathRepresentation';
3
3
  export interface ResourceRequestConfig {
4
4
  urlParams: {
@@ -9,7 +9,7 @@ export interface ResourceRequestConfig {
9
9
  export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
10
10
  export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): string;
11
11
  export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_NormalizedKeyMetadata;
12
- export declare function getResponseCacheKeys(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_ProductCategoryPathRepresentation_ProductCategoryPathRepresentation): $64$luvio_engine_DurableStoreKeyMetadataMap;
12
+ export declare function getResponseCacheKeys(storeKeyMap: any, luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_ProductCategoryPathRepresentation_ProductCategoryPathRepresentation): void;
13
13
  export declare function ingestSuccess(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_ProductCategoryPathRepresentation_ProductCategoryPathRepresentation>, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_ProductCategoryPathRepresentation_ProductCategoryPathRepresentation>): $64$luvio_engine_FulfilledSnapshot<types_ProductCategoryPathRepresentation_ProductCategoryPathRepresentation, {}> | $64$luvio_engine_StaleSnapshot<types_ProductCategoryPathRepresentation_ProductCategoryPathRepresentation, {}> | $64$luvio_engine_PendingSnapshot<types_ProductCategoryPathRepresentation_ProductCategoryPathRepresentation, any>;
14
14
  export declare function ingestError(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig, error: $64$luvio_engine_ErrorResponse, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_ProductCategoryPathRepresentation_ProductCategoryPathRepresentation>): $64$luvio_engine_ErrorSnapshot;
15
15
  export declare function createResourceRequest(config: ResourceRequestConfig): $64$luvio_engine_ResourceRequest;
@@ -1,4 +1,4 @@
1
- import { Luvio as $64$luvio_engine_Luvio, Fragment as $64$luvio_engine_Fragment, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, FetchResponse as $64$luvio_engine_FetchResponse, SnapshotRefresh as $64$luvio_engine_SnapshotRefresh, FulfilledSnapshot as $64$luvio_engine_FulfilledSnapshot, StaleSnapshot as $64$luvio_engine_StaleSnapshot, PendingSnapshot as $64$luvio_engine_PendingSnapshot, ErrorResponse as $64$luvio_engine_ErrorResponse, ErrorSnapshot as $64$luvio_engine_ErrorSnapshot, ResourceRequest as $64$luvio_engine_ResourceRequest } from '@luvio/engine';
1
+ import { Luvio as $64$luvio_engine_Luvio, Fragment as $64$luvio_engine_Fragment, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, FetchResponse as $64$luvio_engine_FetchResponse, SnapshotRefresh as $64$luvio_engine_SnapshotRefresh, FulfilledSnapshot as $64$luvio_engine_FulfilledSnapshot, StaleSnapshot as $64$luvio_engine_StaleSnapshot, PendingSnapshot as $64$luvio_engine_PendingSnapshot, ErrorResponse as $64$luvio_engine_ErrorResponse, ErrorSnapshot as $64$luvio_engine_ErrorSnapshot, ResourceRequest as $64$luvio_engine_ResourceRequest } from '@luvio/engine';
2
2
  import { ProductDetailRepresentation as types_ProductDetailRepresentation_ProductDetailRepresentation } from '../types/ProductDetailRepresentation';
3
3
  export interface ResourceRequestConfig {
4
4
  urlParams: {
@@ -18,7 +18,7 @@ export interface ResourceRequestConfig {
18
18
  export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
19
19
  export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): string;
20
20
  export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_NormalizedKeyMetadata;
21
- export declare function getResponseCacheKeys(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_ProductDetailRepresentation_ProductDetailRepresentation): $64$luvio_engine_DurableStoreKeyMetadataMap;
21
+ export declare function getResponseCacheKeys(storeKeyMap: any, luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_ProductDetailRepresentation_ProductDetailRepresentation): void;
22
22
  export declare function ingestSuccess(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_ProductDetailRepresentation_ProductDetailRepresentation>, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_ProductDetailRepresentation_ProductDetailRepresentation>): $64$luvio_engine_FulfilledSnapshot<types_ProductDetailRepresentation_ProductDetailRepresentation, {}> | $64$luvio_engine_StaleSnapshot<types_ProductDetailRepresentation_ProductDetailRepresentation, {}> | $64$luvio_engine_PendingSnapshot<types_ProductDetailRepresentation_ProductDetailRepresentation, any>;
23
23
  export declare function ingestError(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig, error: $64$luvio_engine_ErrorResponse, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_ProductDetailRepresentation_ProductDetailRepresentation>): $64$luvio_engine_ErrorSnapshot;
24
24
  export declare function createResourceRequest(config: ResourceRequestConfig): $64$luvio_engine_ResourceRequest;
@@ -1,6 +1,6 @@
1
1
  import { ProductCategoryMediaRepresentation as ProductCategoryMediaRepresentation_ProductCategoryMediaRepresentation } from './ProductCategoryMediaRepresentation';
2
2
  import { ProductCategoryMediaGroupRepresentation as ProductCategoryMediaGroupRepresentation_ProductCategoryMediaGroupRepresentation } from './ProductCategoryMediaGroupRepresentation';
3
- import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap } from '@luvio/engine';
3
+ import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
4
4
  export declare const VERSION = "a82a0234f1f7c597b9a9834273e1d949";
5
5
  export declare function validate(obj: any, path?: string): TypeError | null;
6
6
  export declare const RepresentationType: string;
@@ -8,7 +8,7 @@ export declare function normalize(input: ProductCategoryDetailRepresentation, ex
8
8
  export declare const select: () => $64$luvio_engine_FragmentSelection;
9
9
  export declare function equals(existing: ProductCategoryDetailRepresentationNormalized, incoming: ProductCategoryDetailRepresentationNormalized): boolean;
10
10
  export declare const ingest: $64$luvio_engine_ResourceIngest;
11
- export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: ProductCategoryDetailRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): $64$luvio_engine_DurableStoreKeyMetadataMap;
11
+ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: ProductCategoryDetailRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
12
12
  /**
13
13
  * Wrapper containing the detail for a category.
14
14
  *
@@ -1,5 +1,5 @@
1
1
  import { ProductCategoryMediaRepresentation as ProductCategoryMediaRepresentation_ProductCategoryMediaRepresentation } from './ProductCategoryMediaRepresentation';
2
- import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap } from '@luvio/engine';
2
+ import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
3
3
  export declare const VERSION = "0be6b6b4fbdb1a888416e648e1be770f";
4
4
  export declare function validate(obj: any, path?: string): TypeError | null;
5
5
  export declare const RepresentationType: string;
@@ -7,7 +7,7 @@ export declare function normalize(input: ProductCategoryMediaGroupRepresentation
7
7
  export declare const select: () => $64$luvio_engine_FragmentSelection;
8
8
  export declare function equals(existing: ProductCategoryMediaGroupRepresentationNormalized, incoming: ProductCategoryMediaGroupRepresentationNormalized): boolean;
9
9
  export declare const ingest: $64$luvio_engine_ResourceIngest;
10
- export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: ProductCategoryMediaGroupRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): $64$luvio_engine_DurableStoreKeyMetadataMap;
10
+ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: ProductCategoryMediaGroupRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
11
11
  /**
12
12
  * Representation of a media group associated with a product category
13
13
  *
@@ -1,4 +1,4 @@
1
- import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap } from '@luvio/engine';
1
+ import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
2
2
  export declare const VERSION = "8eeed761238c3bcd733c536a5bbec529";
3
3
  export declare function validate(obj: any, path?: string): TypeError | null;
4
4
  export declare const RepresentationType: string;
@@ -6,7 +6,7 @@ export declare function normalize(input: ProductCategoryMediaRepresentation, exi
6
6
  export declare const select: () => $64$luvio_engine_FragmentSelection;
7
7
  export declare function equals(existing: ProductCategoryMediaRepresentationNormalized, incoming: ProductCategoryMediaRepresentationNormalized): boolean;
8
8
  export declare const ingest: $64$luvio_engine_ResourceIngest;
9
- export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: ProductCategoryMediaRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): $64$luvio_engine_DurableStoreKeyMetadataMap;
9
+ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: ProductCategoryMediaRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
10
10
  /**
11
11
  * Representation of a media associated with a product category
12
12
  *
@@ -1,5 +1,5 @@
1
1
  import { ProductCategoryRepresentation as ProductCategoryRepresentation_ProductCategoryRepresentation } from './ProductCategoryRepresentation';
2
- import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, BaseFragment as $64$luvio_engine_BaseFragment, ResourceIngest as $64$luvio_engine_ResourceIngest, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap } from '@luvio/engine';
2
+ import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, BaseFragment as $64$luvio_engine_BaseFragment, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
3
3
  export declare const VERSION = "931ade08fb09ff2c63a3cbfcd5f9a73a";
4
4
  export declare function validate(obj: any, path?: string): TypeError | null;
5
5
  export declare const RepresentationType: string;
@@ -7,7 +7,7 @@ export declare function normalize(input: ProductCategoryPathRepresentation, exis
7
7
  export declare const select: () => $64$luvio_engine_BaseFragment;
8
8
  export declare function equals(existing: ProductCategoryPathRepresentationNormalized, incoming: ProductCategoryPathRepresentationNormalized): boolean;
9
9
  export declare const ingest: $64$luvio_engine_ResourceIngest;
10
- export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: ProductCategoryPathRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): $64$luvio_engine_DurableStoreKeyMetadataMap;
10
+ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: ProductCategoryPathRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
11
11
  /**
12
12
  * Wrapper containing the path for a category.
13
13
  *
@@ -1,4 +1,4 @@
1
- import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap } from '@luvio/engine';
1
+ import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
2
2
  export declare const VERSION = "ad90431d8198e060349f28eb7c9095e6";
3
3
  export declare function validate(obj: any, path?: string): TypeError | null;
4
4
  export declare const RepresentationType: string;
@@ -6,7 +6,7 @@ export declare function normalize(input: ProductCategoryRepresentation, existing
6
6
  export declare const select: () => $64$luvio_engine_FragmentSelection;
7
7
  export declare function equals(existing: ProductCategoryRepresentationNormalized, incoming: ProductCategoryRepresentationNormalized): boolean;
8
8
  export declare const ingest: $64$luvio_engine_ResourceIngest;
9
- export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: ProductCategoryRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): $64$luvio_engine_DurableStoreKeyMetadataMap;
9
+ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: ProductCategoryRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
10
10
  /**
11
11
  * Representation for basic category data.
12
12
  *
@@ -2,7 +2,7 @@ import { ProductMediaRepresentation as ProductMediaRepresentation_ProductMediaRe
2
2
  import { ProductEntitlementRepresentation as ProductEntitlementRepresentation_ProductEntitlementRepresentation } from './ProductEntitlementRepresentation';
3
3
  import { ProductMediaGroupRepresentation as ProductMediaGroupRepresentation_ProductMediaGroupRepresentation } from './ProductMediaGroupRepresentation';
4
4
  import { ProductCategoryPathRepresentation as ProductCategoryPathRepresentation_ProductCategoryPathRepresentation } from './ProductCategoryPathRepresentation';
5
- import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, BaseFragment as $64$luvio_engine_BaseFragment, ResourceIngest as $64$luvio_engine_ResourceIngest, StoreLink as $64$luvio_engine_StoreLink, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap } from '@luvio/engine';
5
+ import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, BaseFragment as $64$luvio_engine_BaseFragment, ResourceIngest as $64$luvio_engine_ResourceIngest, StoreLink as $64$luvio_engine_StoreLink, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
6
6
  export declare const VERSION = "aeb68d0cbb5b505d40ca2f6997bb9194";
7
7
  export declare function validate(obj: any, path?: string): TypeError | null;
8
8
  export declare const RepresentationType: string;
@@ -10,7 +10,7 @@ export declare function normalize(input: ProductDetailRepresentation, existing:
10
10
  export declare const select: () => $64$luvio_engine_BaseFragment;
11
11
  export declare function equals(existing: ProductDetailRepresentationNormalized, incoming: ProductDetailRepresentationNormalized): boolean;
12
12
  export declare const ingest: $64$luvio_engine_ResourceIngest;
13
- export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: ProductDetailRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): $64$luvio_engine_DurableStoreKeyMetadataMap;
13
+ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: ProductDetailRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
14
14
  /**
15
15
  * Representation for the details of a single product
16
16
  *
@@ -1,4 +1,4 @@
1
- import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap } from '@luvio/engine';
1
+ import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
2
2
  export declare const VERSION = "9c5ecbd8b7f938cfa6566967e4158259";
3
3
  export declare function validate(obj: any, path?: string): TypeError | null;
4
4
  export declare const RepresentationType: string;
@@ -6,7 +6,7 @@ export declare function normalize(input: ProductEntitlementRepresentation, exist
6
6
  export declare const select: () => $64$luvio_engine_FragmentSelection;
7
7
  export declare function equals(existing: ProductEntitlementRepresentationNormalized, incoming: ProductEntitlementRepresentationNormalized): boolean;
8
8
  export declare const ingest: $64$luvio_engine_ResourceIngest;
9
- export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: ProductEntitlementRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): $64$luvio_engine_DurableStoreKeyMetadataMap;
9
+ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: ProductEntitlementRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
10
10
  /**
11
11
  * Representation of a media group associated with a product
12
12
  *
@@ -1,4 +1,4 @@
1
- import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap } from '@luvio/engine';
1
+ import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
2
2
  export declare const VERSION = "447d2f88a419288798da709bdd5b836d";
3
3
  export declare function validate(obj: any, path?: string): TypeError | null;
4
4
  export declare const RepresentationType: string;
@@ -6,7 +6,7 @@ export declare function normalize(input: ProductMediaContentDocumentRepresentati
6
6
  export declare const select: () => $64$luvio_engine_FragmentSelection;
7
7
  export declare function equals(existing: ProductMediaContentDocumentRepresentationNormalized, incoming: ProductMediaContentDocumentRepresentationNormalized): boolean;
8
8
  export declare const ingest: $64$luvio_engine_ResourceIngest;
9
- export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: ProductMediaContentDocumentRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): $64$luvio_engine_DurableStoreKeyMetadataMap;
9
+ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: ProductMediaContentDocumentRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
10
10
  /**
11
11
  * Representation of a product media as content document
12
12
  *
@@ -1,5 +1,5 @@
1
1
  import { ProductMediaRepresentation as ProductMediaRepresentation_ProductMediaRepresentation } from './ProductMediaRepresentation';
2
- import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap } from '@luvio/engine';
2
+ import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
3
3
  export declare const VERSION = "01edc0b1d017008afa0b88a9b0f7ed70";
4
4
  export declare function validate(obj: any, path?: string): TypeError | null;
5
5
  export declare const RepresentationType: string;
@@ -7,7 +7,7 @@ export declare function normalize(input: ProductMediaGroupRepresentation, existi
7
7
  export declare const select: () => $64$luvio_engine_FragmentSelection;
8
8
  export declare function equals(existing: ProductMediaGroupRepresentationNormalized, incoming: ProductMediaGroupRepresentationNormalized): boolean;
9
9
  export declare const ingest: $64$luvio_engine_ResourceIngest;
10
- export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: ProductMediaGroupRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): $64$luvio_engine_DurableStoreKeyMetadataMap;
10
+ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: ProductMediaGroupRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
11
11
  /**
12
12
  * Representation of a media group associated with a product
13
13
  *
@@ -1,4 +1,4 @@
1
- import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap } from '@luvio/engine';
1
+ import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
2
2
  export declare const VERSION = "14060292f16cef4c253be5b6c93de386";
3
3
  export declare function validate(obj: any, path?: string): TypeError | null;
4
4
  export declare const RepresentationType: string;
@@ -6,7 +6,7 @@ export declare function normalize(input: ProductMediaRepresentation, existing: P
6
6
  export declare const select: () => $64$luvio_engine_FragmentSelection;
7
7
  export declare function equals(existing: ProductMediaRepresentationNormalized, incoming: ProductMediaRepresentationNormalized): boolean;
8
8
  export declare const ingest: $64$luvio_engine_ResourceIngest;
9
- export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: ProductMediaRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): $64$luvio_engine_DurableStoreKeyMetadataMap;
9
+ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: ProductMediaRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
10
10
  /**
11
11
  * Representation of a media associated with a product
12
12
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-adapters-commerce-catalog",
3
- "version": "1.170.0",
3
+ "version": "1.170.1",
4
4
  "license": "SEE LICENSE IN LICENSE.txt",
5
5
  "description": "Wire adapters Commerce Catalog",
6
6
  "main": "dist/es/es2018/commerce-catalog.js",
package/sfdc/index.js CHANGED
@@ -14,7 +14,7 @@
14
14
  /* proxy-compat-disable */
15
15
  import { createInstrumentedAdapter, createLDSAdapter, createWireAdapterConstructor, createImperativeAdapter } from 'force/ldsBindings';
16
16
  import { withDefaultLuvio } from 'force/ldsEngine';
17
- import { serializeStructuredKey, StoreKeyMap, deepFreeze } from 'force/luvioEngine';
17
+ import { serializeStructuredKey, deepFreeze, StoreKeyMap } from 'force/luvioEngine';
18
18
 
19
19
  const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
20
20
  const { keys: ObjectKeys$1, create: ObjectCreate$1 } = Object;
@@ -393,8 +393,7 @@ const ingest$1 = function ProductCategoryPathRepresentationIngest(input, path, l
393
393
  }
394
394
  return createLink(key);
395
395
  };
396
- function getTypeCacheKeys$1(luvio, input, fullPathFactory) {
397
- const rootKeySet = new StoreKeyMap();
396
+ function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
398
397
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
399
398
  const rootKey = fullPathFactory();
400
399
  rootKeySet.set(rootKey, {
@@ -402,7 +401,6 @@ function getTypeCacheKeys$1(luvio, input, fullPathFactory) {
402
401
  representationName: RepresentationType$1,
403
402
  mergeable: false
404
403
  });
405
- return rootKeySet;
406
404
  }
407
405
 
408
406
  const VERSION = "aeb68d0cbb5b505d40ca2f6997bb9194";
@@ -541,8 +539,7 @@ const ingest = function ProductDetailRepresentationIngest(input, path, luvio, st
541
539
  }
542
540
  return createLink(key);
543
541
  };
544
- function getTypeCacheKeys(luvio, input, fullPathFactory) {
545
- const rootKeySet = new StoreKeyMap();
542
+ function getTypeCacheKeys(rootKeySet, luvio, input, fullPathFactory) {
546
543
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
547
544
  const rootKey = fullPathFactory();
548
545
  rootKeySet.set(rootKey, {
@@ -550,7 +547,6 @@ function getTypeCacheKeys(luvio, input, fullPathFactory) {
550
547
  representationName: RepresentationType,
551
548
  mergeable: false
552
549
  });
553
- return rootKeySet;
554
550
  }
555
551
 
556
552
  function select$1(luvio, params) {
@@ -559,8 +555,8 @@ function select$1(luvio, params) {
559
555
  function keyBuilder$3(luvio, params) {
560
556
  return keyPrefix + '::ProductDetailRepresentation:(' + 'effectiveAccountId:' + params.queryParams.effectiveAccountId + ',' + 'excludeEntitlement:' + params.queryParams.excludeEntitlement + ',' + 'excludeFields:' + params.queryParams.excludeFields + ',' + 'excludeMedia:' + params.queryParams.excludeMedia + ',' + 'excludePrimaryProductCategory:' + params.queryParams.excludePrimaryProductCategory + ',' + 'fields:' + params.queryParams.fields + ',' + 'mediaGroups:' + params.queryParams.mediaGroups + ',' + 'productId:' + params.urlParams.productId + ',' + 'webstoreId:' + params.urlParams.webstoreId + ')';
561
557
  }
562
- function getResponseCacheKeys$1(luvio, resourceParams, response) {
563
- return getTypeCacheKeys(luvio, response, () => keyBuilder$3(luvio, resourceParams));
558
+ function getResponseCacheKeys$1(storeKeyMap, luvio, resourceParams, response) {
559
+ getTypeCacheKeys(storeKeyMap, luvio, response, () => keyBuilder$3(luvio, resourceParams));
564
560
  }
565
561
  function ingestSuccess$1(luvio, resourceParams, response, snapshotRefresh) {
566
562
  const { body } = response;
@@ -711,7 +707,11 @@ function buildNetworkSnapshot$1(luvio, config, options) {
711
707
  const request = createResourceRequest$1(resourceParams);
712
708
  return luvio.dispatchResourceRequest(request, options)
713
709
  .then((response) => {
714
- return luvio.handleSuccessResponse(() => onFetchResponseSuccess$1(luvio, config, resourceParams, response), () => getResponseCacheKeys$1(luvio, resourceParams, response.body));
710
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess$1(luvio, config, resourceParams, response), () => {
711
+ const cache = new StoreKeyMap();
712
+ getResponseCacheKeys$1(cache, luvio, resourceParams, response.body);
713
+ return cache;
714
+ });
715
715
  }, (response) => {
716
716
  return luvio.handleErrorResponse(() => onFetchResponseError$1(luvio, config, resourceParams, response));
717
717
  });
@@ -762,8 +762,8 @@ function select(luvio, params) {
762
762
  function keyBuilder$1(luvio, params) {
763
763
  return keyPrefix + '::ProductCategoryPathRepresentation:(' + 'productCategoryId:' + params.urlParams.productCategoryId + ',' + 'webstoreId:' + params.urlParams.webstoreId + ')';
764
764
  }
765
- function getResponseCacheKeys(luvio, resourceParams, response) {
766
- return getTypeCacheKeys$1(luvio, response, () => keyBuilder$1(luvio, resourceParams));
765
+ function getResponseCacheKeys(storeKeyMap, luvio, resourceParams, response) {
766
+ getTypeCacheKeys$1(storeKeyMap, luvio, response, () => keyBuilder$1(luvio, resourceParams));
767
767
  }
768
768
  function ingestSuccess(luvio, resourceParams, response, snapshotRefresh) {
769
769
  const { body } = response;
@@ -869,7 +869,11 @@ function buildNetworkSnapshot(luvio, config, options) {
869
869
  const request = createResourceRequest(resourceParams);
870
870
  return luvio.dispatchResourceRequest(request, options)
871
871
  .then((response) => {
872
- return luvio.handleSuccessResponse(() => onFetchResponseSuccess(luvio, config, resourceParams, response), () => getResponseCacheKeys(luvio, resourceParams, response.body));
872
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess(luvio, config, resourceParams, response), () => {
873
+ const cache = new StoreKeyMap();
874
+ getResponseCacheKeys(cache, luvio, resourceParams, response.body);
875
+ return cache;
876
+ });
873
877
  }, (response) => {
874
878
  return luvio.handleErrorResponse(() => onFetchResponseError(luvio, config, resourceParams, response));
875
879
  });
@@ -944,4 +948,4 @@ withDefaultLuvio((luvio) => {
944
948
  });
945
949
 
946
950
  export { getProduct, getProductCategoryPath, getProductCategoryPath_imperative, getProduct_imperative };
947
- // version: 1.170.0-1813b78e7
951
+ // version: 1.170.1-5fb216cf1