@salesforce/lds-adapters-experience-marketing-integration 1.169.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.
Files changed (18) hide show
  1. package/dist/es/es2018/experience-marketing-integration.js +24 -16
  2. package/dist/es/es2018/types/src/generated/resources/getSitesMarketingIntegrationFormsByFormIdAndSiteId.d.ts +2 -2
  3. package/dist/es/es2018/types/src/generated/resources/postSitesMarketingIntegrationFormsBySiteId.d.ts +2 -2
  4. package/dist/es/es2018/types/src/generated/resources/postSitesMarketingIntegrationFormsDataByFormIdAndSiteId.d.ts +2 -2
  5. package/dist/es/es2018/types/src/generated/types/FormFieldInputList.d.ts +2 -2
  6. package/dist/es/es2018/types/src/generated/types/FormFieldInputRepresentation.d.ts +2 -2
  7. package/dist/es/es2018/types/src/generated/types/FormFieldList.d.ts +2 -2
  8. package/dist/es/es2018/types/src/generated/types/FormFieldRepresentation.d.ts +2 -2
  9. package/dist/es/es2018/types/src/generated/types/FormInputRepresentation.d.ts +2 -2
  10. package/dist/es/es2018/types/src/generated/types/FormInputWrapperRepresentation.d.ts +2 -2
  11. package/dist/es/es2018/types/src/generated/types/FormRepresentation.d.ts +1 -1
  12. package/dist/es/es2018/types/src/generated/types/FormSubmissionFieldInputList.d.ts +2 -2
  13. package/dist/es/es2018/types/src/generated/types/FormSubmissionFieldInputRepresentation.d.ts +2 -2
  14. package/dist/es/es2018/types/src/generated/types/FormSubmissionInputRepresentation.d.ts +2 -2
  15. package/dist/es/es2018/types/src/generated/types/FormSubmissionInputWrapperRepresentation.d.ts +2 -2
  16. package/dist/es/es2018/types/src/generated/types/FormSubmissionRepresentation.d.ts +1 -1
  17. package/package.json +1 -1
  18. package/sfdc/index.js +30 -18
@@ -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;
@@ -370,8 +370,7 @@ const ingest$1 = function FormRepresentationIngest(input, path, luvio, store, ti
370
370
  }
371
371
  return createLink(key);
372
372
  };
373
- function getTypeCacheKeys$1(luvio, input, fullPathFactory) {
374
- const rootKeySet = new StoreKeyMap();
373
+ function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
375
374
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
376
375
  const rootKey = keyBuilderFromType$1(luvio, input);
377
376
  rootKeySet.set(rootKey, {
@@ -379,14 +378,13 @@ function getTypeCacheKeys$1(luvio, input, fullPathFactory) {
379
378
  representationName: RepresentationType$1,
380
379
  mergeable: false
381
380
  });
382
- return rootKeySet;
383
381
  }
384
382
 
385
383
  function select$3(luvio, params) {
386
384
  return select$4();
387
385
  }
388
- function getResponseCacheKeys$2(luvio, resourceParams, response) {
389
- return getTypeCacheKeys$1(luvio, response);
386
+ function getResponseCacheKeys$2(storeKeyMap, luvio, resourceParams, response) {
387
+ getTypeCacheKeys$1(storeKeyMap, luvio, response);
390
388
  }
391
389
  function ingestSuccess$2(luvio, resourceParams, response) {
392
390
  const { body } = response;
@@ -471,7 +469,11 @@ function buildNetworkSnapshot$2(luvio, config, options) {
471
469
  return luvio.handleSuccessResponse(() => {
472
470
  const snapshot = ingestSuccess$2(luvio, resourceParams, response);
473
471
  return luvio.storeBroadcast().then(() => snapshot);
474
- }, () => getResponseCacheKeys$2(luvio, resourceParams, response.body));
472
+ }, () => {
473
+ const cache = new StoreKeyMap();
474
+ getResponseCacheKeys$2(cache, luvio, resourceParams, response.body);
475
+ return cache;
476
+ });
475
477
  }, (response) => {
476
478
  deepFreeze(response);
477
479
  throw response;
@@ -496,8 +498,8 @@ function keyBuilder$2(luvio, params) {
496
498
  form_id: params.urlParams.formId
497
499
  });
498
500
  }
499
- function getResponseCacheKeys$1(luvio, resourceParams, response) {
500
- return getTypeCacheKeys$1(luvio, response);
501
+ function getResponseCacheKeys$1(storeKeyMap, luvio, resourceParams, response) {
502
+ getTypeCacheKeys$1(storeKeyMap, luvio, response);
501
503
  }
502
504
  function ingestSuccess$1(luvio, resourceParams, response, snapshotRefresh) {
503
505
  const { body } = response;
@@ -609,7 +611,11 @@ function buildNetworkSnapshot$1(luvio, config, options) {
609
611
  const request = createResourceRequest$1(resourceParams);
610
612
  return luvio.dispatchResourceRequest(request, options)
611
613
  .then((response) => {
612
- return luvio.handleSuccessResponse(() => onFetchResponseSuccess(luvio, config, resourceParams, response), () => getResponseCacheKeys$1(luvio, resourceParams, response.body));
614
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess(luvio, config, resourceParams, response), () => {
615
+ const cache = new StoreKeyMap();
616
+ getResponseCacheKeys$1(cache, luvio, resourceParams, response.body);
617
+ return cache;
618
+ });
613
619
  }, (response) => {
614
620
  return luvio.handleErrorResponse(() => onFetchResponseError(luvio, config, resourceParams, response));
615
621
  });
@@ -793,8 +799,7 @@ const ingest = function FormSubmissionRepresentationIngest(input, path, luvio, s
793
799
  }
794
800
  return createLink(key);
795
801
  };
796
- function getTypeCacheKeys(luvio, input, fullPathFactory) {
797
- const rootKeySet = new StoreKeyMap();
802
+ function getTypeCacheKeys(rootKeySet, luvio, input, fullPathFactory) {
798
803
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
799
804
  const rootKey = keyBuilderFromType(luvio, input);
800
805
  rootKeySet.set(rootKey, {
@@ -802,14 +807,13 @@ function getTypeCacheKeys(luvio, input, fullPathFactory) {
802
807
  representationName: RepresentationType,
803
808
  mergeable: false
804
809
  });
805
- return rootKeySet;
806
810
  }
807
811
 
808
812
  function select(luvio, params) {
809
813
  return select$1();
810
814
  }
811
- function getResponseCacheKeys(luvio, resourceParams, response) {
812
- return getTypeCacheKeys(luvio, response);
815
+ function getResponseCacheKeys(storeKeyMap, luvio, resourceParams, response) {
816
+ getTypeCacheKeys(storeKeyMap, luvio, response);
813
817
  }
814
818
  function ingestSuccess(luvio, resourceParams, response) {
815
819
  const { body } = response;
@@ -898,7 +902,11 @@ function buildNetworkSnapshot(luvio, config, options) {
898
902
  return luvio.handleSuccessResponse(() => {
899
903
  const snapshot = ingestSuccess(luvio, resourceParams, response);
900
904
  return luvio.storeBroadcast().then(() => snapshot);
901
- }, () => getResponseCacheKeys(luvio, resourceParams, response.body));
905
+ }, () => {
906
+ const cache = new StoreKeyMap();
907
+ getResponseCacheKeys(cache, luvio, resourceParams, response.body);
908
+ return cache;
909
+ });
902
910
  }, (response) => {
903
911
  deepFreeze(response);
904
912
  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 { FormRepresentation as types_FormRepresentation_FormRepresentation } from '../types/FormRepresentation';
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_FormRepresentation_FormRepresentation): $64$luvio_engine_DurableStoreKeyMetadataMap;
12
+ export declare function getResponseCacheKeys(storeKeyMap: any, luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_FormRepresentation_FormRepresentation): void;
13
13
  export declare function ingestSuccess(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_FormRepresentation_FormRepresentation>, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_FormRepresentation_FormRepresentation>): $64$luvio_engine_FulfilledSnapshot<types_FormRepresentation_FormRepresentation, {}> | $64$luvio_engine_StaleSnapshot<types_FormRepresentation_FormRepresentation, {}> | $64$luvio_engine_PendingSnapshot<types_FormRepresentation_FormRepresentation, 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_FormRepresentation_FormRepresentation>): $64$luvio_engine_ErrorSnapshot;
15
15
  export declare function createResourceRequest(config: ResourceRequestConfig): $64$luvio_engine_ResourceRequest;
@@ -1,5 +1,5 @@
1
1
  import { FormInputRepresentation as types_FormInputRepresentation_FormInputRepresentation } from '../types/FormInputRepresentation';
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 { FormRepresentation as types_FormRepresentation_FormRepresentation } from '../types/FormRepresentation';
4
4
  export interface ResourceRequestConfig {
5
5
  urlParams: {
@@ -10,7 +10,7 @@ export interface ResourceRequestConfig {
10
10
  };
11
11
  }
12
12
  export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
13
- export declare function getResponseCacheKeys(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_FormRepresentation_FormRepresentation): $64$luvio_engine_DurableStoreKeyMetadataMap;
13
+ export declare function getResponseCacheKeys(storeKeyMap: any, luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_FormRepresentation_FormRepresentation): void;
14
14
  export declare function ingestSuccess(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_FormRepresentation_FormRepresentation>): $64$luvio_engine_FulfilledSnapshot<types_FormRepresentation_FormRepresentation, {}> | $64$luvio_engine_StaleSnapshot<types_FormRepresentation_FormRepresentation, {}> | $64$luvio_engine_PendingSnapshot<types_FormRepresentation_FormRepresentation, any>;
15
15
  export declare function createResourceRequest(config: ResourceRequestConfig): $64$luvio_engine_ResourceRequest;
16
16
  export default createResourceRequest;
@@ -1,5 +1,5 @@
1
1
  import { FormSubmissionInputRepresentation as types_FormSubmissionInputRepresentation_FormSubmissionInputRepresentation } from '../types/FormSubmissionInputRepresentation';
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 { FormSubmissionRepresentation as types_FormSubmissionRepresentation_FormSubmissionRepresentation } from '../types/FormSubmissionRepresentation';
4
4
  export interface ResourceRequestConfig {
5
5
  urlParams: {
@@ -11,7 +11,7 @@ export interface ResourceRequestConfig {
11
11
  };
12
12
  }
13
13
  export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
14
- export declare function getResponseCacheKeys(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_FormSubmissionRepresentation_FormSubmissionRepresentation): $64$luvio_engine_DurableStoreKeyMetadataMap;
14
+ export declare function getResponseCacheKeys(storeKeyMap: any, luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_FormSubmissionRepresentation_FormSubmissionRepresentation): void;
15
15
  export declare function ingestSuccess(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_FormSubmissionRepresentation_FormSubmissionRepresentation>): $64$luvio_engine_FulfilledSnapshot<types_FormSubmissionRepresentation_FormSubmissionRepresentation, {}> | $64$luvio_engine_StaleSnapshot<types_FormSubmissionRepresentation_FormSubmissionRepresentation, {}> | $64$luvio_engine_PendingSnapshot<types_FormSubmissionRepresentation_FormSubmissionRepresentation, any>;
16
16
  export declare function createResourceRequest(config: ResourceRequestConfig): $64$luvio_engine_ResourceRequest;
17
17
  export default createResourceRequest;
@@ -1,5 +1,5 @@
1
1
  import { FormFieldInputRepresentation as FormFieldInputRepresentation_FormFieldInputRepresentation } from './FormFieldInputRepresentation';
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 = "58064b8d0fe8e6e167c193cb7b90c68c";
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: FormFieldInputList, existing: FormField
7
7
  export declare const select: () => $64$luvio_engine_FragmentSelection;
8
8
  export declare function equals(existing: FormFieldInputListNormalized, incoming: FormFieldInputListNormalized): boolean;
9
9
  export declare const ingest: $64$luvio_engine_ResourceIngest;
10
- export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: FormFieldInputList, 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: FormFieldInputList, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
11
11
  /**
12
12
  * Wraps a list of form fields in a marketing integration form.
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 = "9e6a15cc965349c99dc28fe627d4ea8a";
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: FormFieldInputRepresentation, existing:
6
6
  export declare const select: () => $64$luvio_engine_FragmentSelection;
7
7
  export declare function equals(existing: FormFieldInputRepresentationNormalized, incoming: FormFieldInputRepresentationNormalized): boolean;
8
8
  export declare const ingest: $64$luvio_engine_ResourceIngest;
9
- export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: FormFieldInputRepresentation, 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: FormFieldInputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
10
10
  /**
11
11
  * Input representation for Marketing Integration form field.
12
12
  *
@@ -1,5 +1,5 @@
1
1
  import { FormFieldRepresentation as FormFieldRepresentation_FormFieldRepresentation } from './FormFieldRepresentation';
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 = "8bc86c34b586e7b5050caa1c4c45a801";
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: FormFieldList, existing: FormFieldListN
7
7
  export declare const select: () => $64$luvio_engine_FragmentSelection;
8
8
  export declare function equals(existing: FormFieldListNormalized, incoming: FormFieldListNormalized): boolean;
9
9
  export declare const ingest: $64$luvio_engine_ResourceIngest;
10
- export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: FormFieldList, 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: FormFieldList, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
11
11
  /**
12
12
  * List of form fields.
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 = "dbb6d8636675e188a8a1a56ad6dead24";
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: FormFieldRepresentation, existing: Form
6
6
  export declare const select: () => $64$luvio_engine_FragmentSelection;
7
7
  export declare function equals(existing: FormFieldRepresentationNormalized, incoming: FormFieldRepresentationNormalized): boolean;
8
8
  export declare const ingest: $64$luvio_engine_ResourceIngest;
9
- export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: FormFieldRepresentation, 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: FormFieldRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
10
10
  /**
11
11
  * A representation for a Marketing Integration form field.
12
12
  *
@@ -1,5 +1,5 @@
1
1
  import { FormFieldInputList as FormFieldInputList_FormFieldInputList } from './FormFieldInputList';
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 = "1225b96b25ed6e79f4d334230db7a127";
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: FormInputRepresentation, existing: Form
7
7
  export declare const select: () => $64$luvio_engine_FragmentSelection;
8
8
  export declare function equals(existing: FormInputRepresentationNormalized, incoming: FormInputRepresentationNormalized): boolean;
9
9
  export declare const ingest: $64$luvio_engine_ResourceIngest;
10
- export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: FormInputRepresentation, 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: FormInputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
11
11
  /**
12
12
  * Input representation for Marketing Integration forms.
13
13
  *
@@ -1,5 +1,5 @@
1
1
  import { FormInputRepresentation as FormInputRepresentation_FormInputRepresentation } from './FormInputRepresentation';
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 = "aad2fb1451a39f17b03dc11b1cad31ec";
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: FormInputWrapperRepresentation, existin
7
7
  export declare const select: () => $64$luvio_engine_FragmentSelection;
8
8
  export declare function equals(existing: FormInputWrapperRepresentationNormalized, incoming: FormInputWrapperRepresentationNormalized): boolean;
9
9
  export declare const ingest: $64$luvio_engine_ResourceIngest;
10
- export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: FormInputWrapperRepresentation, 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: FormInputWrapperRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
11
11
  /**
12
12
  * The data in the http body of Marketing Integration form creation.
13
13
  *
@@ -17,7 +17,7 @@ export declare function normalize(input: FormRepresentation, existing: FormRepre
17
17
  export declare const select: () => $64$luvio_engine_FragmentSelection;
18
18
  export declare function equals(existing: FormRepresentationNormalized, incoming: FormRepresentationNormalized): boolean;
19
19
  export declare const ingest: $64$luvio_engine_ResourceIngest;
20
- export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: FormRepresentation, 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: FormRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
21
21
  /**
22
22
  * A representation for a Marketing Integration form.
23
23
  *
@@ -1,5 +1,5 @@
1
1
  import { FormSubmissionFieldInputRepresentation as FormSubmissionFieldInputRepresentation_FormSubmissionFieldInputRepresentation } from './FormSubmissionFieldInputRepresentation';
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 = "b56d77002de6f010b618ca1f05e1126a";
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: FormSubmissionFieldInputList, existing:
7
7
  export declare const select: () => $64$luvio_engine_FragmentSelection;
8
8
  export declare function equals(existing: FormSubmissionFieldInputListNormalized, incoming: FormSubmissionFieldInputListNormalized): boolean;
9
9
  export declare const ingest: $64$luvio_engine_ResourceIngest;
10
- export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: FormSubmissionFieldInputList, 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: FormSubmissionFieldInputList, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
11
11
  /**
12
12
  * Wraps a list of form submission fields in a marketing integration form.
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 = "86282b0d5f7d7045f1204eb166bf5723";
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: FormSubmissionFieldInputRepresentation,
6
6
  export declare const select: () => $64$luvio_engine_FragmentSelection;
7
7
  export declare function equals(existing: FormSubmissionFieldInputRepresentationNormalized, incoming: FormSubmissionFieldInputRepresentationNormalized): boolean;
8
8
  export declare const ingest: $64$luvio_engine_ResourceIngest;
9
- export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: FormSubmissionFieldInputRepresentation, 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: FormSubmissionFieldInputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
10
10
  /**
11
11
  * Input representation for Marketing Integration form field submission.
12
12
  *
@@ -1,5 +1,5 @@
1
1
  import { FormSubmissionFieldInputList as FormSubmissionFieldInputList_FormSubmissionFieldInputList } from './FormSubmissionFieldInputList';
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 = "a8ef4218e7383d5ac84dd8f5006fc928";
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: FormSubmissionInputRepresentation, exis
7
7
  export declare const select: () => $64$luvio_engine_FragmentSelection;
8
8
  export declare function equals(existing: FormSubmissionInputRepresentationNormalized, incoming: FormSubmissionInputRepresentationNormalized): boolean;
9
9
  export declare const ingest: $64$luvio_engine_ResourceIngest;
10
- export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: FormSubmissionInputRepresentation, 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: FormSubmissionInputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
11
11
  /**
12
12
  * Input representation for Marketing Integration forms submission.
13
13
  *
@@ -1,5 +1,5 @@
1
1
  import { FormSubmissionInputRepresentation as FormSubmissionInputRepresentation_FormSubmissionInputRepresentation } from './FormSubmissionInputRepresentation';
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 = "85c0c715408edf9f395207eec88a1df0";
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: FormSubmissionInputWrapperRepresentatio
7
7
  export declare const select: () => $64$luvio_engine_FragmentSelection;
8
8
  export declare function equals(existing: FormSubmissionInputWrapperRepresentationNormalized, incoming: FormSubmissionInputWrapperRepresentationNormalized): boolean;
9
9
  export declare const ingest: $64$luvio_engine_ResourceIngest;
10
- export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: FormSubmissionInputWrapperRepresentation, 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: FormSubmissionInputWrapperRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
11
11
  /**
12
12
  * The data in the http body of forms submission.
13
13
  *
@@ -16,7 +16,7 @@ export declare function normalize(input: FormSubmissionRepresentation, existing:
16
16
  export declare const select: () => $64$luvio_engine_FragmentSelection;
17
17
  export declare function equals(existing: FormSubmissionRepresentationNormalized, incoming: FormSubmissionRepresentationNormalized): boolean;
18
18
  export declare const ingest: $64$luvio_engine_ResourceIngest;
19
- export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: FormSubmissionRepresentation, 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: FormSubmissionRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
20
20
  /**
21
21
  * A representation for a Marketing Integration form submission.
22
22
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-adapters-experience-marketing-integration",
3
- "version": "1.169.0",
3
+ "version": "1.170.1",
4
4
  "license": "SEE LICENSE IN LICENSE.txt",
5
5
  "description": "With this API, you can CRUD data in Marketing Cloud's storage, Data Extensions.",
6
6
  "main": "dist/es/es2018/experience-marketing-integration.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;
@@ -310,8 +310,7 @@ const ingest$1 = function FormRepresentationIngest(input, path, luvio, store, ti
310
310
  }
311
311
  return createLink(key);
312
312
  };
313
- function getTypeCacheKeys$1(luvio, input, fullPathFactory) {
314
- const rootKeySet = new StoreKeyMap();
313
+ function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
315
314
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
316
315
  const rootKey = keyBuilderFromType$1(luvio, input);
317
316
  rootKeySet.set(rootKey, {
@@ -319,7 +318,6 @@ function getTypeCacheKeys$1(luvio, input, fullPathFactory) {
319
318
  representationName: RepresentationType$1,
320
319
  mergeable: false
321
320
  });
322
- return rootKeySet;
323
321
  }
324
322
 
325
323
  function select$3(luvio, params) {
@@ -330,8 +328,8 @@ function keyBuilder$2(luvio, params) {
330
328
  form_id: params.urlParams.formId
331
329
  });
332
330
  }
333
- function getResponseCacheKeys$2(luvio, resourceParams, response) {
334
- return getTypeCacheKeys$1(luvio, response);
331
+ function getResponseCacheKeys$2(storeKeyMap, luvio, resourceParams, response) {
332
+ getTypeCacheKeys$1(storeKeyMap, luvio, response);
335
333
  }
336
334
  function ingestSuccess$2(luvio, resourceParams, response, snapshotRefresh) {
337
335
  const { body } = response;
@@ -450,7 +448,11 @@ function buildNetworkSnapshot$2(luvio, config, options) {
450
448
  const request = createResourceRequest$2(resourceParams);
451
449
  return luvio.dispatchResourceRequest(request, options)
452
450
  .then((response) => {
453
- return luvio.handleSuccessResponse(() => onFetchResponseSuccess(luvio, config, resourceParams, response), () => getResponseCacheKeys$2(luvio, resourceParams, response.body));
451
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess(luvio, config, resourceParams, response), () => {
452
+ const cache = new StoreKeyMap();
453
+ getResponseCacheKeys$2(cache, luvio, resourceParams, response.body);
454
+ return cache;
455
+ });
454
456
  }, (response) => {
455
457
  return luvio.handleErrorResponse(() => onFetchResponseError(luvio, config, resourceParams, response));
456
458
  });
@@ -507,7 +509,11 @@ const notifyChangeFactory = (luvio, options) => {
507
509
  const { body } = response;
508
510
  luvio.storeIngest(key, ingest$1, body);
509
511
  return luvio.storeBroadcast();
510
- }, () => getTypeCacheKeys$1(luvio, response.body));
512
+ }, () => {
513
+ const cache = new StoreKeyMap();
514
+ getTypeCacheKeys$1(cache, luvio, response.body);
515
+ return cache;
516
+ });
511
517
  }, (error) => {
512
518
  return luvio.handleErrorResponse(() => {
513
519
  const errorSnapshot = luvio.errorSnapshot(error);
@@ -598,8 +604,8 @@ function validate$4(obj, path = 'FormInputRepresentation') {
598
604
  function select$2(luvio, params) {
599
605
  return select$4();
600
606
  }
601
- function getResponseCacheKeys$1(luvio, resourceParams, response) {
602
- return getTypeCacheKeys$1(luvio, response);
607
+ function getResponseCacheKeys$1(storeKeyMap, luvio, resourceParams, response) {
608
+ getTypeCacheKeys$1(storeKeyMap, luvio, response);
603
609
  }
604
610
  function ingestSuccess$1(luvio, resourceParams, response) {
605
611
  const { body } = response;
@@ -684,7 +690,11 @@ function buildNetworkSnapshot$1(luvio, config, options) {
684
690
  return luvio.handleSuccessResponse(() => {
685
691
  const snapshot = ingestSuccess$1(luvio, resourceParams, response);
686
692
  return luvio.storeBroadcast().then(() => snapshot);
687
- }, () => getResponseCacheKeys$1(luvio, resourceParams, response.body));
693
+ }, () => {
694
+ const cache = new StoreKeyMap();
695
+ getResponseCacheKeys$1(cache, luvio, resourceParams, response.body);
696
+ return cache;
697
+ });
688
698
  }, (response) => {
689
699
  deepFreeze(response);
690
700
  throw response;
@@ -840,8 +850,7 @@ const ingest = function FormSubmissionRepresentationIngest(input, path, luvio, s
840
850
  }
841
851
  return createLink(key);
842
852
  };
843
- function getTypeCacheKeys(luvio, input, fullPathFactory) {
844
- const rootKeySet = new StoreKeyMap();
853
+ function getTypeCacheKeys(rootKeySet, luvio, input, fullPathFactory) {
845
854
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
846
855
  const rootKey = keyBuilderFromType(luvio, input);
847
856
  rootKeySet.set(rootKey, {
@@ -849,14 +858,13 @@ function getTypeCacheKeys(luvio, input, fullPathFactory) {
849
858
  representationName: RepresentationType,
850
859
  mergeable: false
851
860
  });
852
- return rootKeySet;
853
861
  }
854
862
 
855
863
  function select(luvio, params) {
856
864
  return select$1();
857
865
  }
858
- function getResponseCacheKeys(luvio, resourceParams, response) {
859
- return getTypeCacheKeys(luvio, response);
866
+ function getResponseCacheKeys(storeKeyMap, luvio, resourceParams, response) {
867
+ getTypeCacheKeys(storeKeyMap, luvio, response);
860
868
  }
861
869
  function ingestSuccess(luvio, resourceParams, response) {
862
870
  const { body } = response;
@@ -945,7 +953,11 @@ function buildNetworkSnapshot(luvio, config, options) {
945
953
  return luvio.handleSuccessResponse(() => {
946
954
  const snapshot = ingestSuccess(luvio, resourceParams, response);
947
955
  return luvio.storeBroadcast().then(() => snapshot);
948
- }, () => getResponseCacheKeys(luvio, resourceParams, response.body));
956
+ }, () => {
957
+ const cache = new StoreKeyMap();
958
+ getResponseCacheKeys(cache, luvio, resourceParams, response.body);
959
+ return cache;
960
+ });
949
961
  }, (response) => {
950
962
  deepFreeze(response);
951
963
  throw response;
@@ -997,4 +1009,4 @@ withDefaultLuvio((luvio) => {
997
1009
  });
998
1010
 
999
1011
  export { getForm, getFormNotifyChange, getForm_imperative, saveForm, submitForm };
1000
- // version: 1.169.0-0c8c3dc31
1012
+ // version: 1.170.1-5fb216cf1