@salesforce/lds-adapters-industries-sustainability-reference-data-v2 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, create: ObjectCreate } = Object;
@@ -262,8 +262,7 @@ const ingest$1 = function FetchEntityVersionOutputRepresentationIngest(input, pa
262
262
  }
263
263
  return createLink(key);
264
264
  };
265
- function getTypeCacheKeys$1(luvio, input, fullPathFactory) {
266
- const rootKeySet = new StoreKeyMap();
265
+ function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
267
266
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
268
267
  const rootKey = fullPathFactory();
269
268
  rootKeySet.set(rootKey, {
@@ -271,7 +270,6 @@ function getTypeCacheKeys$1(luvio, input, fullPathFactory) {
271
270
  representationName: RepresentationType$1,
272
271
  mergeable: false
273
272
  });
274
- return rootKeySet;
275
273
  }
276
274
 
277
275
  function select$2(luvio, params) {
@@ -280,8 +278,8 @@ function select$2(luvio, params) {
280
278
  function keyBuilder$2(luvio, params) {
281
279
  return keyPrefix + '::FetchEntityVersionOutputRepresentation:(' + 'loadType:' + params.queryParams.loadType + ',' + 'order:' + params.queryParams.order + ',' + 'size:' + params.queryParams.size + ',' + 'entitySection:' + params.urlParams.entitySection + ',' + 'referenceDataSource:' + params.urlParams.referenceDataSource + ')';
282
280
  }
283
- function getResponseCacheKeys$1(luvio, resourceParams, response) {
284
- return getTypeCacheKeys$1(luvio, response, () => keyBuilder$2(luvio, resourceParams));
281
+ function getResponseCacheKeys$1(storeKeyMap, luvio, resourceParams, response) {
282
+ getTypeCacheKeys$1(storeKeyMap, luvio, response, () => keyBuilder$2(luvio, resourceParams));
285
283
  }
286
284
  function ingestSuccess$1(luvio, resourceParams, response, snapshotRefresh) {
287
285
  const { body } = response;
@@ -408,7 +406,11 @@ function buildNetworkSnapshot$1(luvio, config, options) {
408
406
  const request = createResourceRequest$1(resourceParams);
409
407
  return luvio.dispatchResourceRequest(request, options)
410
408
  .then((response) => {
411
- return luvio.handleSuccessResponse(() => onFetchResponseSuccess(luvio, config, resourceParams, response), () => getResponseCacheKeys$1(luvio, resourceParams, response.body));
409
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess(luvio, config, resourceParams, response), () => {
410
+ const cache = new StoreKeyMap();
411
+ getResponseCacheKeys$1(cache, luvio, resourceParams, response.body);
412
+ return cache;
413
+ });
412
414
  }, (response) => {
413
415
  return luvio.handleErrorResponse(() => onFetchResponseError(luvio, config, resourceParams, response));
414
416
  });
@@ -583,8 +585,7 @@ const ingest = function UploadEntityVersionOutputRepresentationIngest(input, pat
583
585
  }
584
586
  return createLink(key);
585
587
  };
586
- function getTypeCacheKeys(luvio, input, fullPathFactory) {
587
- const rootKeySet = new StoreKeyMap();
588
+ function getTypeCacheKeys(rootKeySet, luvio, input, fullPathFactory) {
588
589
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
589
590
  const rootKey = keyBuilderFromType(luvio, input);
590
591
  rootKeySet.set(rootKey, {
@@ -592,14 +593,13 @@ function getTypeCacheKeys(luvio, input, fullPathFactory) {
592
593
  representationName: RepresentationType,
593
594
  mergeable: false
594
595
  });
595
- return rootKeySet;
596
596
  }
597
597
 
598
598
  function select(luvio, params) {
599
599
  return select$1();
600
600
  }
601
- function getResponseCacheKeys(luvio, resourceParams, response) {
602
- return getTypeCacheKeys(luvio, response);
601
+ function getResponseCacheKeys(storeKeyMap, luvio, resourceParams, response) {
602
+ getTypeCacheKeys(storeKeyMap, luvio, response);
603
603
  }
604
604
  function ingestSuccess(luvio, resourceParams, response) {
605
605
  const { body } = response;
@@ -677,7 +677,11 @@ function buildNetworkSnapshot(luvio, config, options) {
677
677
  return luvio.handleSuccessResponse(() => {
678
678
  const snapshot = ingestSuccess(luvio, resourceParams, response);
679
679
  return luvio.storeBroadcast().then(() => snapshot);
680
- }, () => getResponseCacheKeys(luvio, resourceParams, response.body));
680
+ }, () => {
681
+ const cache = new StoreKeyMap();
682
+ getResponseCacheKeys(cache, luvio, resourceParams, response.body);
683
+ return cache;
684
+ });
681
685
  }, (response) => {
682
686
  deepFreeze(response);
683
687
  throw response;
@@ -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 { FetchEntityVersionOutputRepresentation as types_FetchEntityVersionOutputRepresentation_FetchEntityVersionOutputRepresentation } from '../types/FetchEntityVersionOutputRepresentation';
3
3
  export interface ResourceRequestConfig {
4
4
  urlParams: {
@@ -14,7 +14,7 @@ export interface ResourceRequestConfig {
14
14
  export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
15
15
  export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): string;
16
16
  export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_NormalizedKeyMetadata;
17
- export declare function getResponseCacheKeys(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_FetchEntityVersionOutputRepresentation_FetchEntityVersionOutputRepresentation): $64$luvio_engine_DurableStoreKeyMetadataMap;
17
+ export declare function getResponseCacheKeys(storeKeyMap: any, luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_FetchEntityVersionOutputRepresentation_FetchEntityVersionOutputRepresentation): void;
18
18
  export declare function ingestSuccess(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_FetchEntityVersionOutputRepresentation_FetchEntityVersionOutputRepresentation>, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_FetchEntityVersionOutputRepresentation_FetchEntityVersionOutputRepresentation>): $64$luvio_engine_FulfilledSnapshot<types_FetchEntityVersionOutputRepresentation_FetchEntityVersionOutputRepresentation, {}> | $64$luvio_engine_StaleSnapshot<types_FetchEntityVersionOutputRepresentation_FetchEntityVersionOutputRepresentation, {}> | $64$luvio_engine_PendingSnapshot<types_FetchEntityVersionOutputRepresentation_FetchEntityVersionOutputRepresentation, any>;
19
19
  export declare function ingestError(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig, error: $64$luvio_engine_ErrorResponse, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_FetchEntityVersionOutputRepresentation_FetchEntityVersionOutputRepresentation>): $64$luvio_engine_ErrorSnapshot;
20
20
  export declare function createResourceRequest(config: ResourceRequestConfig): $64$luvio_engine_ResourceRequest;
@@ -1,5 +1,5 @@
1
1
  import { UploadEntityVersionInputRepresentation as types_UploadEntityVersionInputRepresentation_UploadEntityVersionInputRepresentation } from '../types/UploadEntityVersionInputRepresentation';
2
- import { Luvio as $64$luvio_engine_Luvio, Fragment as $64$luvio_engine_Fragment, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, FetchResponse as $64$luvio_engine_FetchResponse, FulfilledSnapshot as $64$luvio_engine_FulfilledSnapshot, StaleSnapshot as $64$luvio_engine_StaleSnapshot, PendingSnapshot as $64$luvio_engine_PendingSnapshot, ResourceRequest as $64$luvio_engine_ResourceRequest } from '@luvio/engine';
2
+ import { Luvio as $64$luvio_engine_Luvio, Fragment as $64$luvio_engine_Fragment, FetchResponse as $64$luvio_engine_FetchResponse, FulfilledSnapshot as $64$luvio_engine_FulfilledSnapshot, StaleSnapshot as $64$luvio_engine_StaleSnapshot, PendingSnapshot as $64$luvio_engine_PendingSnapshot, ResourceRequest as $64$luvio_engine_ResourceRequest } from '@luvio/engine';
3
3
  import { UploadEntityVersionOutputRepresentation as types_UploadEntityVersionOutputRepresentation_UploadEntityVersionOutputRepresentation } from '../types/UploadEntityVersionOutputRepresentation';
4
4
  export interface ResourceRequestConfig {
5
5
  body: {
@@ -7,7 +7,7 @@ export interface ResourceRequestConfig {
7
7
  };
8
8
  }
9
9
  export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
10
- export declare function getResponseCacheKeys(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_UploadEntityVersionOutputRepresentation_UploadEntityVersionOutputRepresentation): $64$luvio_engine_DurableStoreKeyMetadataMap;
10
+ export declare function getResponseCacheKeys(storeKeyMap: any, luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_UploadEntityVersionOutputRepresentation_UploadEntityVersionOutputRepresentation): void;
11
11
  export declare function ingestSuccess(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_UploadEntityVersionOutputRepresentation_UploadEntityVersionOutputRepresentation>): $64$luvio_engine_FulfilledSnapshot<types_UploadEntityVersionOutputRepresentation_UploadEntityVersionOutputRepresentation, {}> | $64$luvio_engine_StaleSnapshot<types_UploadEntityVersionOutputRepresentation_UploadEntityVersionOutputRepresentation, {}> | $64$luvio_engine_PendingSnapshot<types_UploadEntityVersionOutputRepresentation_UploadEntityVersionOutputRepresentation, any>;
12
12
  export declare function createResourceRequest(config: ResourceRequestConfig): $64$luvio_engine_ResourceRequest;
13
13
  export default createResourceRequest;
@@ -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 = "528a8d4483b8f8eec20b78daccbf0906";
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: EntityDataSourceVersionDetailRepresenta
6
6
  export declare const select: () => $64$luvio_engine_FragmentSelection;
7
7
  export declare function equals(existing: EntityDataSourceVersionDetailRepresentationNormalized, incoming: EntityDataSourceVersionDetailRepresentationNormalized): boolean;
8
8
  export declare const ingest: $64$luvio_engine_ResourceIngest;
9
- export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: EntityDataSourceVersionDetailRepresentation, 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: EntityDataSourceVersionDetailRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
10
10
  /**
11
11
  * Upload Entity Version Input
12
12
  *
@@ -1,5 +1,5 @@
1
1
  import { ReferenceDataEntityRepresentation as ReferenceDataEntityRepresentation_ReferenceDataEntityRepresentation } from './ReferenceDataEntityRepresentation';
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 TTL = 300;
4
4
  export declare const VERSION = "128a41ea06afa49c7b4c5d421747be7a";
5
5
  export declare function validate(obj: any, path?: string): TypeError | null;
@@ -8,7 +8,7 @@ export declare function normalize(input: FetchEntityVersionOutputRepresentation,
8
8
  export declare const select: () => $64$luvio_engine_BaseFragment;
9
9
  export declare function equals(existing: FetchEntityVersionOutputRepresentationNormalized, incoming: FetchEntityVersionOutputRepresentationNormalized): boolean;
10
10
  export declare const ingest: $64$luvio_engine_ResourceIngest;
11
- export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: FetchEntityVersionOutputRepresentation, 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: FetchEntityVersionOutputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
12
12
  /**
13
13
  * Entity Version Output Representation
14
14
  *
@@ -1,5 +1,5 @@
1
1
  import { ReferenceDataSourceRepresentation as ReferenceDataSourceRepresentation_ReferenceDataSourceRepresentation } from './ReferenceDataSourceRepresentation';
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 = "adbbbd77faa573054c273c22251ad1ab";
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: ReferenceDataEntityRepresentation, exis
7
7
  export declare const select: () => $64$luvio_engine_FragmentSelection;
8
8
  export declare function equals(existing: ReferenceDataEntityRepresentationNormalized, incoming: ReferenceDataEntityRepresentationNormalized): boolean;
9
9
  export declare const ingest: $64$luvio_engine_ResourceIngest;
10
- export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: ReferenceDataEntityRepresentation, 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: ReferenceDataEntityRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
11
11
  /**
12
12
  * Reference Data Entity Section Information
13
13
  *
@@ -1,5 +1,5 @@
1
1
  import { ReferenceDataVersionRepresentation as ReferenceDataVersionRepresentation_ReferenceDataVersionRepresentation } from './ReferenceDataVersionRepresentation';
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 = "6a7b66a6fa9ed2a6e3f54472bb85bf73";
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: ReferenceDataSourceRepresentation, exis
7
7
  export declare const select: () => $64$luvio_engine_FragmentSelection;
8
8
  export declare function equals(existing: ReferenceDataSourceRepresentationNormalized, incoming: ReferenceDataSourceRepresentationNormalized): boolean;
9
9
  export declare const ingest: $64$luvio_engine_ResourceIngest;
10
- export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: ReferenceDataSourceRepresentation, 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: ReferenceDataSourceRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
11
11
  /**
12
12
  * Reference Data Source Information
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 = "773b98578ef4ac9b53be5398be06e5f5";
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: ReferenceDataVersionRepresentation, exi
6
6
  export declare const select: () => $64$luvio_engine_FragmentSelection;
7
7
  export declare function equals(existing: ReferenceDataVersionRepresentationNormalized, incoming: ReferenceDataVersionRepresentationNormalized): boolean;
8
8
  export declare const ingest: $64$luvio_engine_ResourceIngest;
9
- export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: ReferenceDataVersionRepresentation, 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: ReferenceDataVersionRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
10
10
  /**
11
11
  * Reference Data Version Information
12
12
  *
@@ -1,5 +1,5 @@
1
1
  import { EntityDataSourceVersionDetailRepresentation as EntityDataSourceVersionDetailRepresentation_EntityDataSourceVersionDetailRepresentation } from './EntityDataSourceVersionDetailRepresentation';
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 = "938647d2f127481c1e5d413d282349e7";
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: UploadEntityVersionInputRepresentation,
7
7
  export declare const select: () => $64$luvio_engine_FragmentSelection;
8
8
  export declare function equals(existing: UploadEntityVersionInputRepresentationNormalized, incoming: UploadEntityVersionInputRepresentationNormalized): boolean;
9
9
  export declare const ingest: $64$luvio_engine_ResourceIngest;
10
- export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: UploadEntityVersionInputRepresentation, 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: UploadEntityVersionInputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
11
11
  /**
12
12
  * Upload Entity Version Input
13
13
  *
@@ -1,5 +1,5 @@
1
1
  import { UploadEntityVersionInputRepresentation as UploadEntityVersionInputRepresentation_UploadEntityVersionInputRepresentation } from './UploadEntityVersionInputRepresentation';
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 = "33e5426729b3cbaef54bd1c5493d4b0e";
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: UploadEntityVersionInputWrapperRepresen
7
7
  export declare const select: () => $64$luvio_engine_FragmentSelection;
8
8
  export declare function equals(existing: UploadEntityVersionInputWrapperRepresentationNormalized, incoming: UploadEntityVersionInputWrapperRepresentationNormalized): boolean;
9
9
  export declare const ingest: $64$luvio_engine_ResourceIngest;
10
- export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: UploadEntityVersionInputWrapperRepresentation, 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: UploadEntityVersionInputWrapperRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
11
11
  /**
12
12
  * A Wrapper around the UploadEntityVersionInputRepresentation
13
13
  *
@@ -16,7 +16,7 @@ export declare function normalize(input: UploadEntityVersionOutputRepresentation
16
16
  export declare const select: () => $64$luvio_engine_BaseFragment;
17
17
  export declare function equals(existing: UploadEntityVersionOutputRepresentationNormalized, incoming: UploadEntityVersionOutputRepresentationNormalized): boolean;
18
18
  export declare const ingest: $64$luvio_engine_ResourceIngest;
19
- export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: UploadEntityVersionOutputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): $64$luvio_engine_DurableStoreKeyMetadataMap;
19
+ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: UploadEntityVersionOutputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
20
20
  /**
21
21
  * Response containing Status code and User Friendly Message
22
22
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-adapters-industries-sustainability-reference-data-v2",
3
- "version": "1.170.0",
3
+ "version": "1.170.1",
4
4
  "license": "SEE LICENSE IN LICENSE.txt",
5
5
  "description": "sustainability-reference-data-v2",
6
6
  "main": "dist/es/es2018/industries-sustainability-reference-data-v2.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, create: ObjectCreate } = Object;
@@ -272,8 +272,7 @@ const ingest$1 = function FetchEntityVersionOutputRepresentationIngest(input, pa
272
272
  }
273
273
  return createLink(key);
274
274
  };
275
- function getTypeCacheKeys$1(luvio, input, fullPathFactory) {
276
- const rootKeySet = new StoreKeyMap();
275
+ function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
277
276
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
278
277
  const rootKey = fullPathFactory();
279
278
  rootKeySet.set(rootKey, {
@@ -281,7 +280,6 @@ function getTypeCacheKeys$1(luvio, input, fullPathFactory) {
281
280
  representationName: RepresentationType$1,
282
281
  mergeable: false
283
282
  });
284
- return rootKeySet;
285
283
  }
286
284
 
287
285
  function select$2(luvio, params) {
@@ -290,8 +288,8 @@ function select$2(luvio, params) {
290
288
  function keyBuilder$2(luvio, params) {
291
289
  return keyPrefix + '::FetchEntityVersionOutputRepresentation:(' + 'loadType:' + params.queryParams.loadType + ',' + 'order:' + params.queryParams.order + ',' + 'size:' + params.queryParams.size + ',' + 'entitySection:' + params.urlParams.entitySection + ',' + 'referenceDataSource:' + params.urlParams.referenceDataSource + ')';
292
290
  }
293
- function getResponseCacheKeys$1(luvio, resourceParams, response) {
294
- return getTypeCacheKeys$1(luvio, response, () => keyBuilder$2(luvio, resourceParams));
291
+ function getResponseCacheKeys$1(storeKeyMap, luvio, resourceParams, response) {
292
+ getTypeCacheKeys$1(storeKeyMap, luvio, response, () => keyBuilder$2(luvio, resourceParams));
295
293
  }
296
294
  function ingestSuccess$1(luvio, resourceParams, response, snapshotRefresh) {
297
295
  const { body } = response;
@@ -418,7 +416,11 @@ function buildNetworkSnapshot$1(luvio, config, options) {
418
416
  const request = createResourceRequest$1(resourceParams);
419
417
  return luvio.dispatchResourceRequest(request, options)
420
418
  .then((response) => {
421
- return luvio.handleSuccessResponse(() => onFetchResponseSuccess(luvio, config, resourceParams, response), () => getResponseCacheKeys$1(luvio, resourceParams, response.body));
419
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess(luvio, config, resourceParams, response), () => {
420
+ const cache = new StoreKeyMap();
421
+ getResponseCacheKeys$1(cache, luvio, resourceParams, response.body);
422
+ return cache;
423
+ });
422
424
  }, (response) => {
423
425
  return luvio.handleErrorResponse(() => onFetchResponseError(luvio, config, resourceParams, response));
424
426
  });
@@ -593,8 +595,7 @@ const ingest = function UploadEntityVersionOutputRepresentationIngest(input, pat
593
595
  }
594
596
  return createLink(key);
595
597
  };
596
- function getTypeCacheKeys(luvio, input, fullPathFactory) {
597
- const rootKeySet = new StoreKeyMap();
598
+ function getTypeCacheKeys(rootKeySet, luvio, input, fullPathFactory) {
598
599
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
599
600
  const rootKey = keyBuilderFromType(luvio, input);
600
601
  rootKeySet.set(rootKey, {
@@ -602,14 +603,13 @@ function getTypeCacheKeys(luvio, input, fullPathFactory) {
602
603
  representationName: RepresentationType,
603
604
  mergeable: false
604
605
  });
605
- return rootKeySet;
606
606
  }
607
607
 
608
608
  function select(luvio, params) {
609
609
  return select$1();
610
610
  }
611
- function getResponseCacheKeys(luvio, resourceParams, response) {
612
- return getTypeCacheKeys(luvio, response);
611
+ function getResponseCacheKeys(storeKeyMap, luvio, resourceParams, response) {
612
+ getTypeCacheKeys(storeKeyMap, luvio, response);
613
613
  }
614
614
  function ingestSuccess(luvio, resourceParams, response) {
615
615
  const { body } = response;
@@ -687,7 +687,11 @@ function buildNetworkSnapshot(luvio, config, options) {
687
687
  return luvio.handleSuccessResponse(() => {
688
688
  const snapshot = ingestSuccess(luvio, resourceParams, response);
689
689
  return luvio.storeBroadcast().then(() => snapshot);
690
- }, () => getResponseCacheKeys(luvio, resourceParams, response.body));
690
+ }, () => {
691
+ const cache = new StoreKeyMap();
692
+ getResponseCacheKeys(cache, luvio, resourceParams, response.body);
693
+ return cache;
694
+ });
691
695
  }, (response) => {
692
696
  deepFreeze(response);
693
697
  throw response;
@@ -733,4 +737,4 @@ withDefaultLuvio((luvio) => {
733
737
  });
734
738
 
735
739
  export { getEntityVersion, getEntityVersion_imperative, uploadEntityVersion };
736
- // version: 1.170.0-1813b78e7
740
+ // version: 1.170.1-5fb216cf1