@salesforce/lds-adapters-platform-interaction-orchestrator 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;
@@ -909,8 +909,7 @@ const ingest = function FlowOrchestrationInstanceCollectionRepresentationIngest(
909
909
  }
910
910
  return createLink(key);
911
911
  };
912
- function getTypeCacheKeys(luvio, input, fullPathFactory) {
913
- const rootKeySet = new StoreKeyMap();
912
+ function getTypeCacheKeys(rootKeySet, luvio, input, fullPathFactory) {
914
913
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
915
914
  const rootKey = fullPathFactory();
916
915
  rootKeySet.set(rootKey, {
@@ -918,7 +917,6 @@ function getTypeCacheKeys(luvio, input, fullPathFactory) {
918
917
  representationName: RepresentationType,
919
918
  mergeable: false
920
919
  });
921
- return rootKeySet;
922
920
  }
923
921
 
924
922
  function select(luvio, params) {
@@ -927,8 +925,8 @@ function select(luvio, params) {
927
925
  function keyBuilder$1(luvio, params) {
928
926
  return keyPrefix + '::FlowOrchestrationInstanceCollectionRepresentation:(' + 'contextRecordId:' + params.queryParams.contextRecordId + ',' + 'relatedRecordId:' + params.queryParams.relatedRecordId + ')';
929
927
  }
930
- function getResponseCacheKeys(luvio, resourceParams, response) {
931
- return getTypeCacheKeys(luvio, response, () => keyBuilder$1(luvio, resourceParams));
928
+ function getResponseCacheKeys(storeKeyMap, luvio, resourceParams, response) {
929
+ getTypeCacheKeys(storeKeyMap, luvio, response, () => keyBuilder$1(luvio, resourceParams));
932
930
  }
933
931
  function ingestSuccess(luvio, resourceParams, response, snapshotRefresh) {
934
932
  const { body } = response;
@@ -1046,7 +1044,11 @@ function buildNetworkSnapshot(luvio, config, options) {
1046
1044
  const request = createResourceRequest(resourceParams);
1047
1045
  return luvio.dispatchResourceRequest(request, options)
1048
1046
  .then((response) => {
1049
- return luvio.handleSuccessResponse(() => onFetchResponseSuccess(luvio, config, resourceParams, response), () => getResponseCacheKeys(luvio, resourceParams, response.body));
1047
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess(luvio, config, resourceParams, response), () => {
1048
+ const cache = new StoreKeyMap();
1049
+ getResponseCacheKeys(cache, luvio, resourceParams, response.body);
1050
+ return cache;
1051
+ });
1050
1052
  }, (response) => {
1051
1053
  return luvio.handleErrorResponse(() => onFetchResponseError(luvio, config, resourceParams, response));
1052
1054
  });
@@ -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 { FlowOrchestrationInstanceCollectionRepresentation as types_FlowOrchestrationInstanceCollectionRepresentation_FlowOrchestrationInstanceCollectionRepresentation } from '../types/FlowOrchestrationInstanceCollectionRepresentation';
3
3
  export interface ResourceRequestConfig {
4
4
  queryParams: {
@@ -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_FlowOrchestrationInstanceCollectionRepresentation_FlowOrchestrationInstanceCollectionRepresentation): $64$luvio_engine_DurableStoreKeyMetadataMap;
12
+ export declare function getResponseCacheKeys(storeKeyMap: any, luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_FlowOrchestrationInstanceCollectionRepresentation_FlowOrchestrationInstanceCollectionRepresentation): void;
13
13
  export declare function ingestSuccess(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_FlowOrchestrationInstanceCollectionRepresentation_FlowOrchestrationInstanceCollectionRepresentation>, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_FlowOrchestrationInstanceCollectionRepresentation_FlowOrchestrationInstanceCollectionRepresentation>): $64$luvio_engine_FulfilledSnapshot<types_FlowOrchestrationInstanceCollectionRepresentation_FlowOrchestrationInstanceCollectionRepresentation, {}> | $64$luvio_engine_StaleSnapshot<types_FlowOrchestrationInstanceCollectionRepresentation_FlowOrchestrationInstanceCollectionRepresentation, {}> | $64$luvio_engine_PendingSnapshot<types_FlowOrchestrationInstanceCollectionRepresentation_FlowOrchestrationInstanceCollectionRepresentation, 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_FlowOrchestrationInstanceCollectionRepresentation_FlowOrchestrationInstanceCollectionRepresentation>): $64$luvio_engine_ErrorSnapshot;
15
15
  export declare function createResourceRequest(config: ResourceRequestConfig): $64$luvio_engine_ResourceRequest;
@@ -1,5 +1,5 @@
1
1
  import { FlowOrchestrationInstanceRepresentation as FlowOrchestrationInstanceRepresentation_FlowOrchestrationInstanceRepresentation } from './FlowOrchestrationInstanceRepresentation';
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 TTL = 100;
4
4
  export declare const VERSION = "ff1028f6e4a6a9aeed322135fdf518b5";
5
5
  export declare function validate(obj: any, path?: string): TypeError | null;
@@ -8,7 +8,7 @@ export declare function normalize(input: FlowOrchestrationInstanceCollectionRepr
8
8
  export declare const select: () => $64$luvio_engine_FragmentSelection;
9
9
  export declare function equals(existing: FlowOrchestrationInstanceCollectionRepresentationNormalized, incoming: FlowOrchestrationInstanceCollectionRepresentationNormalized): boolean;
10
10
  export declare const ingest: $64$luvio_engine_ResourceIngest;
11
- export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: FlowOrchestrationInstanceCollectionRepresentation, 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: FlowOrchestrationInstanceCollectionRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
12
12
  /**
13
13
  * Information about a collection of Orchestration instances.
14
14
  *
@@ -1,5 +1,5 @@
1
1
  import { FlowOrchestrationStageInstanceRepresentation as FlowOrchestrationStageInstanceRepresentation_FlowOrchestrationStageInstanceRepresentation } from './FlowOrchestrationStageInstanceRepresentation';
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 = "5cd09fe6e4e088f4787a6cf1b9ab7a2a";
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: FlowOrchestrationInstanceRepresentation
7
7
  export declare const select: () => $64$luvio_engine_FragmentSelection;
8
8
  export declare function equals(existing: FlowOrchestrationInstanceRepresentationNormalized, incoming: FlowOrchestrationInstanceRepresentationNormalized): boolean;
9
9
  export declare const ingest: $64$luvio_engine_ResourceIngest;
10
- export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: FlowOrchestrationInstanceRepresentation, 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: FlowOrchestrationInstanceRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
11
11
  /**
12
12
  * Information about an Orchestration instance.
13
13
  *
@@ -1,5 +1,5 @@
1
1
  import { FlowOrchestrationStepInstanceRepresentation as FlowOrchestrationStepInstanceRepresentation_FlowOrchestrationStepInstanceRepresentation } from './FlowOrchestrationStepInstanceRepresentation';
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 = "4d586ae3293b53e776853c9b4e1ad36b";
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: FlowOrchestrationStageInstanceRepresent
7
7
  export declare const select: () => $64$luvio_engine_FragmentSelection;
8
8
  export declare function equals(existing: FlowOrchestrationStageInstanceRepresentationNormalized, incoming: FlowOrchestrationStageInstanceRepresentationNormalized): boolean;
9
9
  export declare const ingest: $64$luvio_engine_ResourceIngest;
10
- export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: FlowOrchestrationStageInstanceRepresentation, 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: FlowOrchestrationStageInstanceRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
11
11
  /**
12
12
  * Information about an Orchestration stage instance.
13
13
  *
@@ -1,5 +1,5 @@
1
1
  import { FlowOrchestrationWorkItemRepresentation as FlowOrchestrationWorkItemRepresentation_FlowOrchestrationWorkItemRepresentation } from './FlowOrchestrationWorkItemRepresentation';
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 = "9817b563e81370d761a0d7f4b18410e4";
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: FlowOrchestrationStepInstanceRepresenta
7
7
  export declare const select: () => $64$luvio_engine_FragmentSelection;
8
8
  export declare function equals(existing: FlowOrchestrationStepInstanceRepresentationNormalized, incoming: FlowOrchestrationStepInstanceRepresentationNormalized): boolean;
9
9
  export declare const ingest: $64$luvio_engine_ResourceIngest;
10
- export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: FlowOrchestrationStepInstanceRepresentation, 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: FlowOrchestrationStepInstanceRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
11
11
  /**
12
12
  * Information about an Orchestration step instance.
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 = "985f4771e87efceea3364e5e2d064bcb";
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: FlowOrchestrationWorkAssignmentRepresen
6
6
  export declare const select: () => $64$luvio_engine_FragmentSelection;
7
7
  export declare function equals(existing: FlowOrchestrationWorkAssignmentRepresentationNormalized, incoming: FlowOrchestrationWorkAssignmentRepresentationNormalized): boolean;
8
8
  export declare const ingest: $64$luvio_engine_ResourceIngest;
9
- export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: FlowOrchestrationWorkAssignmentRepresentation, 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: FlowOrchestrationWorkAssignmentRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
10
10
  /**
11
11
  * Information about an Orchestration work assignment.
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 = "ab05f41c9070286098c01e14dc5587f6";
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: FlowOrchestrationWorkItemRepresentation
6
6
  export declare const select: () => $64$luvio_engine_FragmentSelection;
7
7
  export declare function equals(existing: FlowOrchestrationWorkItemRepresentationNormalized, incoming: FlowOrchestrationWorkItemRepresentationNormalized): boolean;
8
8
  export declare const ingest: $64$luvio_engine_ResourceIngest;
9
- export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: FlowOrchestrationWorkItemRepresentation, 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: FlowOrchestrationWorkItemRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
10
10
  /**
11
11
  * Information about an Orchestration work item.
12
12
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-adapters-platform-interaction-orchestrator",
3
- "version": "1.170.0",
3
+ "version": "1.170.1",
4
4
  "license": "SEE LICENSE IN LICENSE.txt",
5
5
  "description": "Interaction Orchestrator APIs",
6
6
  "main": "dist/es/es2018/platform-interaction-orchestrator.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;
@@ -919,8 +919,7 @@ const ingest = function FlowOrchestrationInstanceCollectionRepresentationIngest(
919
919
  }
920
920
  return createLink(key);
921
921
  };
922
- function getTypeCacheKeys(luvio, input, fullPathFactory) {
923
- const rootKeySet = new StoreKeyMap();
922
+ function getTypeCacheKeys(rootKeySet, luvio, input, fullPathFactory) {
924
923
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
925
924
  const rootKey = fullPathFactory();
926
925
  rootKeySet.set(rootKey, {
@@ -928,7 +927,6 @@ function getTypeCacheKeys(luvio, input, fullPathFactory) {
928
927
  representationName: RepresentationType,
929
928
  mergeable: false
930
929
  });
931
- return rootKeySet;
932
930
  }
933
931
 
934
932
  function select(luvio, params) {
@@ -937,8 +935,8 @@ function select(luvio, params) {
937
935
  function keyBuilder$1(luvio, params) {
938
936
  return keyPrefix + '::FlowOrchestrationInstanceCollectionRepresentation:(' + 'contextRecordId:' + params.queryParams.contextRecordId + ',' + 'relatedRecordId:' + params.queryParams.relatedRecordId + ')';
939
937
  }
940
- function getResponseCacheKeys(luvio, resourceParams, response) {
941
- return getTypeCacheKeys(luvio, response, () => keyBuilder$1(luvio, resourceParams));
938
+ function getResponseCacheKeys(storeKeyMap, luvio, resourceParams, response) {
939
+ getTypeCacheKeys(storeKeyMap, luvio, response, () => keyBuilder$1(luvio, resourceParams));
942
940
  }
943
941
  function ingestSuccess(luvio, resourceParams, response, snapshotRefresh) {
944
942
  const { body } = response;
@@ -1056,7 +1054,11 @@ function buildNetworkSnapshot(luvio, config, options) {
1056
1054
  const request = createResourceRequest(resourceParams);
1057
1055
  return luvio.dispatchResourceRequest(request, options)
1058
1056
  .then((response) => {
1059
- return luvio.handleSuccessResponse(() => onFetchResponseSuccess(luvio, config, resourceParams, response), () => getResponseCacheKeys(luvio, resourceParams, response.body));
1057
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess(luvio, config, resourceParams, response), () => {
1058
+ const cache = new StoreKeyMap();
1059
+ getResponseCacheKeys(cache, luvio, resourceParams, response.body);
1060
+ return cache;
1061
+ });
1060
1062
  }, (response) => {
1061
1063
  return luvio.handleErrorResponse(() => onFetchResponseError(luvio, config, resourceParams, response));
1062
1064
  });
@@ -1123,4 +1125,4 @@ withDefaultLuvio((luvio) => {
1123
1125
  });
1124
1126
 
1125
1127
  export { getOrchestrationInstanceCollection, getOrchestrationInstanceCollection_imperative };
1126
- // version: 1.170.0-1813b78e7
1128
+ // version: 1.170.1-5fb216cf1