@salesforce/lds-adapters-platform-enablement 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;
@@ -949,8 +949,7 @@ const ingest$1 = function EnablementProgramSummaryRepresentationIngest(input, pa
949
949
  }
950
950
  return createLink(key);
951
951
  };
952
- function getTypeCacheKeys$1(luvio, input, fullPathFactory) {
953
- const rootKeySet = new StoreKeyMap();
952
+ function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
954
953
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
955
954
  const rootKey = keyBuilderFromType(luvio, input);
956
955
  rootKeySet.set(rootKey, {
@@ -958,7 +957,6 @@ function getTypeCacheKeys$1(luvio, input, fullPathFactory) {
958
957
  representationName: RepresentationType$1,
959
958
  mergeable: false
960
959
  });
961
- return rootKeySet;
962
960
  }
963
961
 
964
962
  const VERSION = "7ef7adad59a82a6a2a4ab4ba77434b67";
@@ -1074,8 +1072,7 @@ const ingest = function EnablementProgramSummaryListRepresentationIngest(input,
1074
1072
  }
1075
1073
  return createLink(key);
1076
1074
  };
1077
- function getTypeCacheKeys(luvio, input, fullPathFactory) {
1078
- const rootKeySet = new StoreKeyMap();
1075
+ function getTypeCacheKeys(rootKeySet, luvio, input, fullPathFactory) {
1079
1076
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
1080
1077
  const rootKey = fullPathFactory();
1081
1078
  rootKeySet.set(rootKey, {
@@ -1085,9 +1082,8 @@ function getTypeCacheKeys(luvio, input, fullPathFactory) {
1085
1082
  });
1086
1083
  const input_programSummaryList_length = input.programSummaryList.length;
1087
1084
  for (let i = 0; i < input_programSummaryList_length; i++) {
1088
- rootKeySet.merge(getTypeCacheKeys$1(luvio, input.programSummaryList[i]));
1085
+ getTypeCacheKeys$1(rootKeySet, luvio, input.programSummaryList[i]);
1089
1086
  }
1090
- return rootKeySet;
1091
1087
  }
1092
1088
 
1093
1089
  function select$1(luvio, params) {
@@ -1096,8 +1092,8 @@ function select$1(luvio, params) {
1096
1092
  function keyBuilder$3(luvio, params) {
1097
1093
  return keyPrefix + '::EnablementProgramSummaryListRepresentation:(' + 'filter:' + params.queryParams.filter + ',' + 'limit:' + params.queryParams.limit + ',' + 'offset:' + params.queryParams.offset + ')';
1098
1094
  }
1099
- function getResponseCacheKeys$1(luvio, resourceParams, response) {
1100
- return getTypeCacheKeys(luvio, response, () => keyBuilder$3(luvio, resourceParams));
1095
+ function getResponseCacheKeys$1(storeKeyMap, luvio, resourceParams, response) {
1096
+ getTypeCacheKeys(storeKeyMap, luvio, response, () => keyBuilder$3(luvio, resourceParams));
1101
1097
  }
1102
1098
  function ingestSuccess$1(luvio, resourceParams, response, snapshotRefresh) {
1103
1099
  const { body } = response;
@@ -1207,7 +1203,11 @@ function buildNetworkSnapshot$1(luvio, config, options) {
1207
1203
  const request = createResourceRequest$1(resourceParams);
1208
1204
  return luvio.dispatchResourceRequest(request, options)
1209
1205
  .then((response) => {
1210
- return luvio.handleSuccessResponse(() => onFetchResponseSuccess$1(luvio, config, resourceParams, response), () => getResponseCacheKeys$1(luvio, resourceParams, response.body));
1206
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess$1(luvio, config, resourceParams, response), () => {
1207
+ const cache = new StoreKeyMap();
1208
+ getResponseCacheKeys$1(cache, luvio, resourceParams, response.body);
1209
+ return cache;
1210
+ });
1211
1211
  }, (response) => {
1212
1212
  return luvio.handleErrorResponse(() => onFetchResponseError$1(luvio, config, resourceParams, response));
1213
1213
  });
@@ -1260,8 +1260,8 @@ function keyBuilder$1(luvio, params) {
1260
1260
  enablement_program_id: params.urlParams.enablementProgramId
1261
1261
  });
1262
1262
  }
1263
- function getResponseCacheKeys(luvio, resourceParams, response) {
1264
- return getTypeCacheKeys$1(luvio, response);
1263
+ function getResponseCacheKeys(storeKeyMap, luvio, resourceParams, response) {
1264
+ getTypeCacheKeys$1(storeKeyMap, luvio, response);
1265
1265
  }
1266
1266
  function ingestSuccess(luvio, resourceParams, response, snapshotRefresh) {
1267
1267
  const { body } = response;
@@ -1376,7 +1376,11 @@ function buildNetworkSnapshot(luvio, config, options) {
1376
1376
  const request = createResourceRequest(resourceParams);
1377
1377
  return luvio.dispatchResourceRequest(request, options)
1378
1378
  .then((response) => {
1379
- return luvio.handleSuccessResponse(() => onFetchResponseSuccess(luvio, config, resourceParams, response), () => getResponseCacheKeys(luvio, resourceParams, response.body));
1379
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess(luvio, config, resourceParams, response), () => {
1380
+ const cache = new StoreKeyMap();
1381
+ getResponseCacheKeys(cache, luvio, resourceParams, response.body);
1382
+ return cache;
1383
+ });
1380
1384
  }, (response) => {
1381
1385
  return luvio.handleErrorResponse(() => onFetchResponseError(luvio, config, resourceParams, response));
1382
1386
  });
@@ -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 { EnablementProgramSummaryListRepresentation as types_EnablementProgramSummaryListRepresentation_EnablementProgramSummaryListRepresentation } from '../types/EnablementProgramSummaryListRepresentation';
3
3
  export interface ResourceRequestConfig {
4
4
  queryParams: {
@@ -10,7 +10,7 @@ export interface ResourceRequestConfig {
10
10
  export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
11
11
  export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): string;
12
12
  export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_NormalizedKeyMetadata;
13
- export declare function getResponseCacheKeys(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_EnablementProgramSummaryListRepresentation_EnablementProgramSummaryListRepresentation): $64$luvio_engine_DurableStoreKeyMetadataMap;
13
+ export declare function getResponseCacheKeys(storeKeyMap: any, luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_EnablementProgramSummaryListRepresentation_EnablementProgramSummaryListRepresentation): void;
14
14
  export declare function ingestSuccess(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_EnablementProgramSummaryListRepresentation_EnablementProgramSummaryListRepresentation>, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_EnablementProgramSummaryListRepresentation_EnablementProgramSummaryListRepresentation>): $64$luvio_engine_FulfilledSnapshot<types_EnablementProgramSummaryListRepresentation_EnablementProgramSummaryListRepresentation, {}> | $64$luvio_engine_StaleSnapshot<types_EnablementProgramSummaryListRepresentation_EnablementProgramSummaryListRepresentation, {}> | $64$luvio_engine_PendingSnapshot<types_EnablementProgramSummaryListRepresentation_EnablementProgramSummaryListRepresentation, any>;
15
15
  export declare function ingestError(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig, error: $64$luvio_engine_ErrorResponse, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_EnablementProgramSummaryListRepresentation_EnablementProgramSummaryListRepresentation>): $64$luvio_engine_ErrorSnapshot;
16
16
  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 { EnablementProgramSummaryRepresentation as types_EnablementProgramSummaryRepresentation_EnablementProgramSummaryRepresentation } from '../types/EnablementProgramSummaryRepresentation';
3
3
  export interface ResourceRequestConfig {
4
4
  urlParams: {
@@ -11,7 +11,7 @@ export interface ResourceRequestConfig {
11
11
  export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
12
12
  export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): string;
13
13
  export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_NormalizedKeyMetadata;
14
- export declare function getResponseCacheKeys(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_EnablementProgramSummaryRepresentation_EnablementProgramSummaryRepresentation): $64$luvio_engine_DurableStoreKeyMetadataMap;
14
+ export declare function getResponseCacheKeys(storeKeyMap: any, luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_EnablementProgramSummaryRepresentation_EnablementProgramSummaryRepresentation): void;
15
15
  export declare function ingestSuccess(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_EnablementProgramSummaryRepresentation_EnablementProgramSummaryRepresentation>, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_EnablementProgramSummaryRepresentation_EnablementProgramSummaryRepresentation>): $64$luvio_engine_FulfilledSnapshot<types_EnablementProgramSummaryRepresentation_EnablementProgramSummaryRepresentation, {}> | $64$luvio_engine_StaleSnapshot<types_EnablementProgramSummaryRepresentation_EnablementProgramSummaryRepresentation, {}> | $64$luvio_engine_PendingSnapshot<types_EnablementProgramSummaryRepresentation_EnablementProgramSummaryRepresentation, any>;
16
16
  export declare function ingestError(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig, error: $64$luvio_engine_ErrorResponse, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_EnablementProgramSummaryRepresentation_EnablementProgramSummaryRepresentation>): $64$luvio_engine_ErrorSnapshot;
17
17
  export declare function createResourceRequest(config: ResourceRequestConfig): $64$luvio_engine_ResourceRequest;
@@ -1,4 +1,4 @@
1
- import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentUnionSelection as $64$luvio_engine_FragmentUnionSelection, 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, FragmentUnionSelection as $64$luvio_engine_FragmentUnionSelection, 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 enum DiscriminatorValues {
3
3
  Task = "Task",
4
4
  Section = "Section",
@@ -13,7 +13,7 @@ export declare const select: () => $64$luvio_engine_FragmentSelection;
13
13
  export declare function equals(existing: EnablementProgramSummaryItemRepresentationNormalized, incoming: EnablementProgramSummaryItemRepresentationNormalized): boolean;
14
14
  export declare const ingest: $64$luvio_engine_ResourceIngest;
15
15
  export declare const discriminatorIngest: $64$luvio_engine_ResourceIngest;
16
- export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: EnablementProgramSummaryItemRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): $64$luvio_engine_DurableStoreKeyMetadataMap;
16
+ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: EnablementProgramSummaryItemRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
17
17
  /**
18
18
  * Common Enablement Program Summary item representation
19
19
  *
@@ -1,4 +1,4 @@
1
- import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, ResourceIngest as $64$luvio_engine_ResourceIngest, FragmentSelection as $64$luvio_engine_FragmentSelection, LinkSelection as $64$luvio_engine_LinkSelection, StoreLink as $64$luvio_engine_StoreLink, 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, ResourceIngest as $64$luvio_engine_ResourceIngest, FragmentSelection as $64$luvio_engine_FragmentSelection, LinkSelection as $64$luvio_engine_LinkSelection, StoreLink as $64$luvio_engine_StoreLink, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
2
2
  import { EnablementProgramSummaryRepresentation as EnablementProgramSummaryRepresentation_EnablementProgramSummaryRepresentation } from './EnablementProgramSummaryRepresentation';
3
3
  export declare const VERSION = "7ef7adad59a82a6a2a4ab4ba77434b67";
4
4
  export declare function validate(obj: any, path?: string): TypeError | null;
@@ -15,7 +15,7 @@ export interface DynamicSelectParams {
15
15
  export declare const dynamicSelect: (params: DynamicSelectParams) => $64$luvio_engine_FragmentSelection;
16
16
  export declare function equals(existing: EnablementProgramSummaryListRepresentationNormalized, incoming: EnablementProgramSummaryListRepresentationNormalized): boolean;
17
17
  export declare const ingest: $64$luvio_engine_ResourceIngest;
18
- export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: EnablementProgramSummaryListRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): $64$luvio_engine_DurableStoreKeyMetadataMap;
18
+ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: EnablementProgramSummaryListRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
19
19
  export declare function dynamicIngest(ingestParams: DynamicIngestParams): $64$luvio_engine_ResourceIngest;
20
20
  /**
21
21
  * List of Enablement Program Summary Representations
@@ -1,5 +1,5 @@
1
1
  import { EnablementProgramSummaryItemRepresentation as EnablementProgramSummaryItemRepresentation_EnablementProgramSummaryItemRepresentation } from './EnablementProgramSummaryItemRepresentation';
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 = "a781c697d19a499446ef63e6b9314ac8";
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: EnablementProgramSummaryMilestoneRepres
7
7
  export declare const select: () => $64$luvio_engine_FragmentSelection;
8
8
  export declare function equals(existing: EnablementProgramSummaryMilestoneRepresentationNormalized, incoming: EnablementProgramSummaryMilestoneRepresentationNormalized): boolean;
9
9
  export declare const ingest: $64$luvio_engine_ResourceIngest;
10
- export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: EnablementProgramSummaryMilestoneRepresentation, 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: EnablementProgramSummaryMilestoneRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
11
11
  /**
12
12
  * Runtime representation of enablement program milestone.
13
13
  *
@@ -17,7 +17,7 @@ export declare function normalize(input: EnablementProgramSummaryRepresentation,
17
17
  export declare const select: () => $64$luvio_engine_FragmentSelection;
18
18
  export declare function equals(existing: EnablementProgramSummaryRepresentationNormalized, incoming: EnablementProgramSummaryRepresentationNormalized): boolean;
19
19
  export declare const ingest: $64$luvio_engine_ResourceIngest;
20
- export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: EnablementProgramSummaryRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): $64$luvio_engine_DurableStoreKeyMetadataMap;
20
+ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: EnablementProgramSummaryRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
21
21
  /**
22
22
  * Enablement Program Summary Representation
23
23
  *
@@ -1,6 +1,6 @@
1
1
  import { EnablementProgramSummaryItemRepresentation as EnablementProgramSummaryItemRepresentation_EnablementProgramSummaryItemRepresentation } from './EnablementProgramSummaryItemRepresentation';
2
2
  import { EnablementProgramSummaryTaskRepresentation as EnablementProgramSummaryTaskRepresentation_EnablementProgramSummaryTaskRepresentation } from './EnablementProgramSummaryTaskRepresentation';
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 = "5ae4706d9f71126202e6170ace63ad7e";
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: EnablementProgramSummarySectionRepresen
8
8
  export declare const select: () => $64$luvio_engine_FragmentSelection;
9
9
  export declare function equals(existing: EnablementProgramSummarySectionRepresentationNormalized, incoming: EnablementProgramSummarySectionRepresentationNormalized): boolean;
10
10
  export declare const ingest: $64$luvio_engine_ResourceIngest;
11
- export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: EnablementProgramSummarySectionRepresentation, 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: EnablementProgramSummarySectionRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
12
12
  /**
13
13
  * Runtime representation of enablement program section.
14
14
  *
@@ -1,5 +1,5 @@
1
1
  import { EnablementProgramSummaryItemRepresentation as EnablementProgramSummaryItemRepresentation_EnablementProgramSummaryItemRepresentation } from './EnablementProgramSummaryItemRepresentation';
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 = "cdd7f06fc967d6cdf1c9865a039b18b1";
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: EnablementProgramSummaryTaskRepresentat
7
7
  export declare const select: () => $64$luvio_engine_FragmentSelection;
8
8
  export declare function equals(existing: EnablementProgramSummaryTaskRepresentationNormalized, incoming: EnablementProgramSummaryTaskRepresentationNormalized): boolean;
9
9
  export declare const ingest: $64$luvio_engine_ResourceIngest;
10
- export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: EnablementProgramSummaryTaskRepresentation, 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: EnablementProgramSummaryTaskRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
11
11
  /**
12
12
  * Runtime representation of enablement program task.
13
13
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-adapters-platform-enablement",
3
- "version": "1.170.0",
3
+ "version": "1.170.1",
4
4
  "license": "SEE LICENSE IN LICENSE.txt",
5
5
  "description": "Wire adapters for enablement APIs",
6
6
  "main": "dist/es/es2018/platform-enablement.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;
@@ -959,8 +959,7 @@ const ingest$1 = function EnablementProgramSummaryRepresentationIngest(input, pa
959
959
  }
960
960
  return createLink(key);
961
961
  };
962
- function getTypeCacheKeys$1(luvio, input, fullPathFactory) {
963
- const rootKeySet = new StoreKeyMap();
962
+ function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
964
963
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
965
964
  const rootKey = keyBuilderFromType(luvio, input);
966
965
  rootKeySet.set(rootKey, {
@@ -968,7 +967,6 @@ function getTypeCacheKeys$1(luvio, input, fullPathFactory) {
968
967
  representationName: RepresentationType$1,
969
968
  mergeable: false
970
969
  });
971
- return rootKeySet;
972
970
  }
973
971
 
974
972
  const VERSION = "7ef7adad59a82a6a2a4ab4ba77434b67";
@@ -1084,8 +1082,7 @@ const ingest = function EnablementProgramSummaryListRepresentationIngest(input,
1084
1082
  }
1085
1083
  return createLink(key);
1086
1084
  };
1087
- function getTypeCacheKeys(luvio, input, fullPathFactory) {
1088
- const rootKeySet = new StoreKeyMap();
1085
+ function getTypeCacheKeys(rootKeySet, luvio, input, fullPathFactory) {
1089
1086
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
1090
1087
  const rootKey = fullPathFactory();
1091
1088
  rootKeySet.set(rootKey, {
@@ -1095,9 +1092,8 @@ function getTypeCacheKeys(luvio, input, fullPathFactory) {
1095
1092
  });
1096
1093
  const input_programSummaryList_length = input.programSummaryList.length;
1097
1094
  for (let i = 0; i < input_programSummaryList_length; i++) {
1098
- rootKeySet.merge(getTypeCacheKeys$1(luvio, input.programSummaryList[i]));
1095
+ getTypeCacheKeys$1(rootKeySet, luvio, input.programSummaryList[i]);
1099
1096
  }
1100
- return rootKeySet;
1101
1097
  }
1102
1098
 
1103
1099
  function select$1(luvio, params) {
@@ -1106,8 +1102,8 @@ function select$1(luvio, params) {
1106
1102
  function keyBuilder$3(luvio, params) {
1107
1103
  return keyPrefix + '::EnablementProgramSummaryListRepresentation:(' + 'filter:' + params.queryParams.filter + ',' + 'limit:' + params.queryParams.limit + ',' + 'offset:' + params.queryParams.offset + ')';
1108
1104
  }
1109
- function getResponseCacheKeys$1(luvio, resourceParams, response) {
1110
- return getTypeCacheKeys(luvio, response, () => keyBuilder$3(luvio, resourceParams));
1105
+ function getResponseCacheKeys$1(storeKeyMap, luvio, resourceParams, response) {
1106
+ getTypeCacheKeys(storeKeyMap, luvio, response, () => keyBuilder$3(luvio, resourceParams));
1111
1107
  }
1112
1108
  function ingestSuccess$1(luvio, resourceParams, response, snapshotRefresh) {
1113
1109
  const { body } = response;
@@ -1217,7 +1213,11 @@ function buildNetworkSnapshot$1(luvio, config, options) {
1217
1213
  const request = createResourceRequest$1(resourceParams);
1218
1214
  return luvio.dispatchResourceRequest(request, options)
1219
1215
  .then((response) => {
1220
- return luvio.handleSuccessResponse(() => onFetchResponseSuccess$1(luvio, config, resourceParams, response), () => getResponseCacheKeys$1(luvio, resourceParams, response.body));
1216
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess$1(luvio, config, resourceParams, response), () => {
1217
+ const cache = new StoreKeyMap();
1218
+ getResponseCacheKeys$1(cache, luvio, resourceParams, response.body);
1219
+ return cache;
1220
+ });
1221
1221
  }, (response) => {
1222
1222
  return luvio.handleErrorResponse(() => onFetchResponseError$1(luvio, config, resourceParams, response));
1223
1223
  });
@@ -1270,8 +1270,8 @@ function keyBuilder$1(luvio, params) {
1270
1270
  enablement_program_id: params.urlParams.enablementProgramId
1271
1271
  });
1272
1272
  }
1273
- function getResponseCacheKeys(luvio, resourceParams, response) {
1274
- return getTypeCacheKeys$1(luvio, response);
1273
+ function getResponseCacheKeys(storeKeyMap, luvio, resourceParams, response) {
1274
+ getTypeCacheKeys$1(storeKeyMap, luvio, response);
1275
1275
  }
1276
1276
  function ingestSuccess(luvio, resourceParams, response, snapshotRefresh) {
1277
1277
  const { body } = response;
@@ -1386,7 +1386,11 @@ function buildNetworkSnapshot(luvio, config, options) {
1386
1386
  const request = createResourceRequest(resourceParams);
1387
1387
  return luvio.dispatchResourceRequest(request, options)
1388
1388
  .then((response) => {
1389
- return luvio.handleSuccessResponse(() => onFetchResponseSuccess(luvio, config, resourceParams, response), () => getResponseCacheKeys(luvio, resourceParams, response.body));
1389
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess(luvio, config, resourceParams, response), () => {
1390
+ const cache = new StoreKeyMap();
1391
+ getResponseCacheKeys(cache, luvio, resourceParams, response.body);
1392
+ return cache;
1393
+ });
1390
1394
  }, (response) => {
1391
1395
  return luvio.handleErrorResponse(() => onFetchResponseError(luvio, config, resourceParams, response));
1392
1396
  });
@@ -1461,4 +1465,4 @@ withDefaultLuvio((luvio) => {
1461
1465
  });
1462
1466
 
1463
1467
  export { getAssignedEnablementProgramSummary, getAssignedEnablementProgramSummary_imperative, getEnablementProgramSummary, getEnablementProgramSummary_imperative };
1464
- // version: 1.170.0-1813b78e7
1468
+ // version: 1.170.1-5fb216cf1