@salesforce/lds-adapters-marketing-assetcreation 1.170.0 → 1.171.0
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.
- package/dist/es/es2018/marketing-assetcreation.js +25 -19
- package/dist/es/es2018/types/src/generated/resources/getAssetCreationStarterTemplates.d.ts +2 -2
- package/dist/es/es2018/types/src/generated/resources/getAssetCreationStarterTemplatesByStarterTemplateId.d.ts +2 -2
- package/dist/es/es2018/types/src/generated/resources/postAssetCreationObjects.d.ts +2 -2
- package/dist/es/es2018/types/src/generated/types/AssetInputRepresentation.d.ts +2 -2
- package/dist/es/es2018/types/src/generated/types/AssetInputWrapperRepresentation.d.ts +2 -2
- package/dist/es/es2018/types/src/generated/types/AssetOutputRepresentation.d.ts +1 -1
- package/dist/es/es2018/types/src/generated/types/StarterTemplateDetailRepresentation.d.ts +2 -2
- package/dist/es/es2018/types/src/generated/types/StarterTemplateListRepresentation.d.ts +2 -2
- package/dist/es/es2018/types/src/generated/types/StarterTemplateRepresentation.d.ts +2 -2
- package/package.json +1 -1
- package/sfdc/index.js +26 -20
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* For full license text, see the LICENSE.txt file
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
import { serializeStructuredKey,
|
|
7
|
+
import { serializeStructuredKey, deepFreeze, StoreKeyMap } from '@luvio/engine';
|
|
8
8
|
|
|
9
9
|
const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
|
|
10
10
|
const { keys: ObjectKeys$1, create: ObjectCreate$1 } = Object;
|
|
@@ -197,8 +197,7 @@ const ingest$2 = function AssetOutputRepresentationIngest(input, path, luvio, st
|
|
|
197
197
|
}
|
|
198
198
|
return createLink(key);
|
|
199
199
|
};
|
|
200
|
-
function getTypeCacheKeys$2(luvio, input, fullPathFactory) {
|
|
201
|
-
const rootKeySet = new StoreKeyMap();
|
|
200
|
+
function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
|
|
202
201
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
203
202
|
const rootKey = keyBuilderFromType(luvio, input);
|
|
204
203
|
rootKeySet.set(rootKey, {
|
|
@@ -206,14 +205,13 @@ function getTypeCacheKeys$2(luvio, input, fullPathFactory) {
|
|
|
206
205
|
representationName: RepresentationType$2,
|
|
207
206
|
mergeable: false
|
|
208
207
|
});
|
|
209
|
-
return rootKeySet;
|
|
210
208
|
}
|
|
211
209
|
|
|
212
210
|
function select$5(luvio, params) {
|
|
213
211
|
return select$6();
|
|
214
212
|
}
|
|
215
|
-
function getResponseCacheKeys$2(luvio, resourceParams, response) {
|
|
216
|
-
|
|
213
|
+
function getResponseCacheKeys$2(storeKeyMap, luvio, resourceParams, response) {
|
|
214
|
+
getTypeCacheKeys$2(storeKeyMap, luvio, response);
|
|
217
215
|
}
|
|
218
216
|
function ingestSuccess$2(luvio, resourceParams, response) {
|
|
219
217
|
const { body } = response;
|
|
@@ -291,7 +289,11 @@ function buildNetworkSnapshot$2(luvio, config, options) {
|
|
|
291
289
|
return luvio.handleSuccessResponse(() => {
|
|
292
290
|
const snapshot = ingestSuccess$2(luvio, resourceParams, response);
|
|
293
291
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
294
|
-
}, () =>
|
|
292
|
+
}, () => {
|
|
293
|
+
const cache = new StoreKeyMap();
|
|
294
|
+
getResponseCacheKeys$2(cache, luvio, resourceParams, response.body);
|
|
295
|
+
return cache;
|
|
296
|
+
});
|
|
295
297
|
}, (response) => {
|
|
296
298
|
deepFreeze(response);
|
|
297
299
|
throw response;
|
|
@@ -474,8 +476,7 @@ const ingest$1 = function StarterTemplateListRepresentationIngest(input, path, l
|
|
|
474
476
|
}
|
|
475
477
|
return createLink(key);
|
|
476
478
|
};
|
|
477
|
-
function getTypeCacheKeys$1(luvio, input, fullPathFactory) {
|
|
478
|
-
const rootKeySet = new StoreKeyMap();
|
|
479
|
+
function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
479
480
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
480
481
|
const rootKey = fullPathFactory();
|
|
481
482
|
rootKeySet.set(rootKey, {
|
|
@@ -483,7 +484,6 @@ function getTypeCacheKeys$1(luvio, input, fullPathFactory) {
|
|
|
483
484
|
representationName: RepresentationType$1,
|
|
484
485
|
mergeable: false
|
|
485
486
|
});
|
|
486
|
-
return rootKeySet;
|
|
487
487
|
}
|
|
488
488
|
|
|
489
489
|
function select$2(luvio, params) {
|
|
@@ -492,8 +492,8 @@ function select$2(luvio, params) {
|
|
|
492
492
|
function keyBuilder$3(luvio, params) {
|
|
493
493
|
return keyPrefix + '::StarterTemplateListRepresentation:(' + 'filter:' + params.queryParams.filter + ',' + 'type:' + params.queryParams.type + ')';
|
|
494
494
|
}
|
|
495
|
-
function getResponseCacheKeys$1(luvio, resourceParams, response) {
|
|
496
|
-
|
|
495
|
+
function getResponseCacheKeys$1(storeKeyMap, luvio, resourceParams, response) {
|
|
496
|
+
getTypeCacheKeys$1(storeKeyMap, luvio, response, () => keyBuilder$3(luvio, resourceParams));
|
|
497
497
|
}
|
|
498
498
|
function ingestSuccess$1(luvio, resourceParams, response, snapshotRefresh) {
|
|
499
499
|
const { body } = response;
|
|
@@ -605,7 +605,11 @@ function buildNetworkSnapshot$1(luvio, config, options) {
|
|
|
605
605
|
const request = createResourceRequest$1(resourceParams);
|
|
606
606
|
return luvio.dispatchResourceRequest(request, options)
|
|
607
607
|
.then((response) => {
|
|
608
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$1(luvio, config, resourceParams, response), () =>
|
|
608
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$1(luvio, config, resourceParams, response), () => {
|
|
609
|
+
const cache = new StoreKeyMap();
|
|
610
|
+
getResponseCacheKeys$1(cache, luvio, resourceParams, response.body);
|
|
611
|
+
return cache;
|
|
612
|
+
});
|
|
609
613
|
}, (response) => {
|
|
610
614
|
return luvio.handleErrorResponse(() => onFetchResponseError$1(luvio, config, resourceParams, response));
|
|
611
615
|
});
|
|
@@ -804,8 +808,7 @@ const ingest = function StarterTemplateDetailRepresentationIngest(input, path, l
|
|
|
804
808
|
}
|
|
805
809
|
return createLink(key);
|
|
806
810
|
};
|
|
807
|
-
function getTypeCacheKeys(luvio, input, fullPathFactory) {
|
|
808
|
-
const rootKeySet = new StoreKeyMap();
|
|
811
|
+
function getTypeCacheKeys(rootKeySet, luvio, input, fullPathFactory) {
|
|
809
812
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
810
813
|
const rootKey = fullPathFactory();
|
|
811
814
|
rootKeySet.set(rootKey, {
|
|
@@ -813,7 +816,6 @@ function getTypeCacheKeys(luvio, input, fullPathFactory) {
|
|
|
813
816
|
representationName: RepresentationType,
|
|
814
817
|
mergeable: false
|
|
815
818
|
});
|
|
816
|
-
return rootKeySet;
|
|
817
819
|
}
|
|
818
820
|
|
|
819
821
|
function select(luvio, params) {
|
|
@@ -822,8 +824,8 @@ function select(luvio, params) {
|
|
|
822
824
|
function keyBuilder$1(luvio, params) {
|
|
823
825
|
return keyPrefix + '::StarterTemplateDetailRepresentation:(' + 'type:' + params.queryParams.type + ',' + 'starterTemplateId:' + params.urlParams.starterTemplateId + ')';
|
|
824
826
|
}
|
|
825
|
-
function getResponseCacheKeys(luvio, resourceParams, response) {
|
|
826
|
-
|
|
827
|
+
function getResponseCacheKeys(storeKeyMap, luvio, resourceParams, response) {
|
|
828
|
+
getTypeCacheKeys(storeKeyMap, luvio, response, () => keyBuilder$1(luvio, resourceParams));
|
|
827
829
|
}
|
|
828
830
|
function ingestSuccess(luvio, resourceParams, response, snapshotRefresh) {
|
|
829
831
|
const { body } = response;
|
|
@@ -938,7 +940,11 @@ function buildNetworkSnapshot(luvio, config, options) {
|
|
|
938
940
|
const request = createResourceRequest(resourceParams);
|
|
939
941
|
return luvio.dispatchResourceRequest(request, options)
|
|
940
942
|
.then((response) => {
|
|
941
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess(luvio, config, resourceParams, response), () =>
|
|
943
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess(luvio, config, resourceParams, response), () => {
|
|
944
|
+
const cache = new StoreKeyMap();
|
|
945
|
+
getResponseCacheKeys(cache, luvio, resourceParams, response.body);
|
|
946
|
+
return cache;
|
|
947
|
+
});
|
|
942
948
|
}, (response) => {
|
|
943
949
|
return luvio.handleErrorResponse(() => onFetchResponseError(luvio, config, resourceParams, response));
|
|
944
950
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Luvio as $64$luvio_engine_Luvio, Fragment as $64$luvio_engine_Fragment, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata,
|
|
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 { StarterTemplateListRepresentation as types_StarterTemplateListRepresentation_StarterTemplateListRepresentation } from '../types/StarterTemplateListRepresentation';
|
|
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_StarterTemplateListRepresentation_StarterTemplateListRepresentation):
|
|
12
|
+
export declare function getResponseCacheKeys(storeKeyMap: any, luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_StarterTemplateListRepresentation_StarterTemplateListRepresentation): void;
|
|
13
13
|
export declare function ingestSuccess(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_StarterTemplateListRepresentation_StarterTemplateListRepresentation>, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_StarterTemplateListRepresentation_StarterTemplateListRepresentation>): $64$luvio_engine_FulfilledSnapshot<types_StarterTemplateListRepresentation_StarterTemplateListRepresentation, {}> | $64$luvio_engine_StaleSnapshot<types_StarterTemplateListRepresentation_StarterTemplateListRepresentation, {}> | $64$luvio_engine_PendingSnapshot<types_StarterTemplateListRepresentation_StarterTemplateListRepresentation, 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_StarterTemplateListRepresentation_StarterTemplateListRepresentation>): $64$luvio_engine_ErrorSnapshot;
|
|
15
15
|
export declare function createResourceRequest(config: ResourceRequestConfig): $64$luvio_engine_ResourceRequest;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Luvio as $64$luvio_engine_Luvio, Fragment as $64$luvio_engine_Fragment, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata,
|
|
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 { StarterTemplateDetailRepresentation as types_StarterTemplateDetailRepresentation_StarterTemplateDetailRepresentation } from '../types/StarterTemplateDetailRepresentation';
|
|
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_StarterTemplateDetailRepresentation_StarterTemplateDetailRepresentation):
|
|
14
|
+
export declare function getResponseCacheKeys(storeKeyMap: any, luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_StarterTemplateDetailRepresentation_StarterTemplateDetailRepresentation): void;
|
|
15
15
|
export declare function ingestSuccess(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_StarterTemplateDetailRepresentation_StarterTemplateDetailRepresentation>, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_StarterTemplateDetailRepresentation_StarterTemplateDetailRepresentation>): $64$luvio_engine_FulfilledSnapshot<types_StarterTemplateDetailRepresentation_StarterTemplateDetailRepresentation, {}> | $64$luvio_engine_StaleSnapshot<types_StarterTemplateDetailRepresentation_StarterTemplateDetailRepresentation, {}> | $64$luvio_engine_PendingSnapshot<types_StarterTemplateDetailRepresentation_StarterTemplateDetailRepresentation, 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_StarterTemplateDetailRepresentation_StarterTemplateDetailRepresentation>): $64$luvio_engine_ErrorSnapshot;
|
|
17
17
|
export declare function createResourceRequest(config: ResourceRequestConfig): $64$luvio_engine_ResourceRequest;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AssetInputRepresentation as types_AssetInputRepresentation_AssetInputRepresentation } from '../types/AssetInputRepresentation';
|
|
2
|
-
import { Luvio as $64$luvio_engine_Luvio, Fragment as $64$luvio_engine_Fragment,
|
|
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 { AssetOutputRepresentation as types_AssetOutputRepresentation_AssetOutputRepresentation } from '../types/AssetOutputRepresentation';
|
|
4
4
|
export interface ResourceRequestConfig {
|
|
5
5
|
body: {
|
|
@@ -7,7 +7,7 @@ export interface ResourceRequestConfig {
|
|
|
7
7
|
};
|
|
8
8
|
}
|
|
9
9
|
export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
|
|
10
|
-
export declare function getResponseCacheKeys(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_AssetOutputRepresentation_AssetOutputRepresentation):
|
|
10
|
+
export declare function getResponseCacheKeys(storeKeyMap: any, luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_AssetOutputRepresentation_AssetOutputRepresentation): void;
|
|
11
11
|
export declare function ingestSuccess(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_AssetOutputRepresentation_AssetOutputRepresentation>): $64$luvio_engine_FulfilledSnapshot<types_AssetOutputRepresentation_AssetOutputRepresentation, {}> | $64$luvio_engine_StaleSnapshot<types_AssetOutputRepresentation_AssetOutputRepresentation, {}> | $64$luvio_engine_PendingSnapshot<types_AssetOutputRepresentation_AssetOutputRepresentation, any>;
|
|
12
12
|
export declare function createResourceRequest(config: ResourceRequestConfig): $64$luvio_engine_ResourceRequest;
|
|
13
13
|
export default createResourceRequest;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest,
|
|
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 = "7eeacf485cab2afddc6d2247f37c0d4b";
|
|
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: AssetInputRepresentation, existing: Ass
|
|
|
6
6
|
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
7
7
|
export declare function equals(existing: AssetInputRepresentationNormalized, incoming: AssetInputRepresentationNormalized): boolean;
|
|
8
8
|
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
9
|
-
export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: AssetInputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata):
|
|
9
|
+
export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: AssetInputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
10
10
|
/**
|
|
11
11
|
* Object to create an easy asset
|
|
12
12
|
*
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AssetInputRepresentation as AssetInputRepresentation_AssetInputRepresentation } from './AssetInputRepresentation';
|
|
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,
|
|
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 = "19aec64b4bec7f6d8a58a22e1fee1dda";
|
|
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: AssetInputWrapperRepresentation, existi
|
|
|
7
7
|
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
8
8
|
export declare function equals(existing: AssetInputWrapperRepresentationNormalized, incoming: AssetInputWrapperRepresentationNormalized): boolean;
|
|
9
9
|
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
10
|
-
export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: AssetInputWrapperRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata):
|
|
10
|
+
export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: AssetInputWrapperRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
11
11
|
/**
|
|
12
12
|
* Wrapper Input Representation for AssetInputRepresentation
|
|
13
13
|
*
|
|
@@ -16,7 +16,7 @@ export declare function normalize(input: AssetOutputRepresentation, existing: As
|
|
|
16
16
|
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
17
17
|
export declare function equals(existing: AssetOutputRepresentationNormalized, incoming: AssetOutputRepresentationNormalized): boolean;
|
|
18
18
|
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
19
|
-
export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: AssetOutputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata):
|
|
19
|
+
export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: AssetOutputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
20
20
|
/**
|
|
21
21
|
* Representation of a created template object.
|
|
22
22
|
*
|
|
@@ -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,
|
|
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 TTL = 1000;
|
|
3
3
|
export declare const VERSION = "260c6823e9865ac87e1cb3929e85646c";
|
|
4
4
|
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
@@ -7,7 +7,7 @@ export declare function normalize(input: StarterTemplateDetailRepresentation, ex
|
|
|
7
7
|
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
8
8
|
export declare function equals(existing: StarterTemplateDetailRepresentationNormalized, incoming: StarterTemplateDetailRepresentationNormalized): boolean;
|
|
9
9
|
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
10
|
-
export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: StarterTemplateDetailRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata):
|
|
10
|
+
export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: StarterTemplateDetailRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
11
11
|
/**
|
|
12
12
|
* Representation of the details of a starter template to be displayed.
|
|
13
13
|
*
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { StarterTemplateRepresentation as StarterTemplateRepresentation_StarterTemplateRepresentation } from './StarterTemplateRepresentation';
|
|
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,
|
|
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 = 3000;
|
|
4
4
|
export declare const VERSION = "8b256fe58f3a26927a96dc6c87f2845e";
|
|
5
5
|
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
@@ -8,7 +8,7 @@ export declare function normalize(input: StarterTemplateListRepresentation, exis
|
|
|
8
8
|
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
9
9
|
export declare function equals(existing: StarterTemplateListRepresentationNormalized, incoming: StarterTemplateListRepresentationNormalized): boolean;
|
|
10
10
|
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
11
|
-
export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: StarterTemplateListRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata):
|
|
11
|
+
export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: StarterTemplateListRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
12
12
|
/**
|
|
13
13
|
* Representation of a list of starter templates.
|
|
14
14
|
*
|
|
@@ -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,
|
|
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 = "6940195c96726bc70b9ad00de7d9c58a";
|
|
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: StarterTemplateRepresentation, existing
|
|
|
6
6
|
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
7
7
|
export declare function equals(existing: StarterTemplateRepresentationNormalized, incoming: StarterTemplateRepresentationNormalized): boolean;
|
|
8
8
|
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
9
|
-
export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: StarterTemplateRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata):
|
|
9
|
+
export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: StarterTemplateRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
10
10
|
/**
|
|
11
11
|
* Representation of a starter template object.
|
|
12
12
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-adapters-marketing-assetcreation",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.171.0",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
5
5
|
"description": "APIs to create assets based on templates",
|
|
6
6
|
"main": "dist/es/es2018/marketing-assetcreation.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,
|
|
17
|
+
import { serializeStructuredKey, deepFreeze, StoreKeyMap } from 'force/luvioEngine';
|
|
18
18
|
|
|
19
19
|
const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
|
|
20
20
|
const { keys: ObjectKeys$1, create: ObjectCreate$1 } = Object;
|
|
@@ -207,8 +207,7 @@ const ingest$2 = function AssetOutputRepresentationIngest(input, path, luvio, st
|
|
|
207
207
|
}
|
|
208
208
|
return createLink(key);
|
|
209
209
|
};
|
|
210
|
-
function getTypeCacheKeys$2(luvio, input, fullPathFactory) {
|
|
211
|
-
const rootKeySet = new StoreKeyMap();
|
|
210
|
+
function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
|
|
212
211
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
213
212
|
const rootKey = keyBuilderFromType(luvio, input);
|
|
214
213
|
rootKeySet.set(rootKey, {
|
|
@@ -216,14 +215,13 @@ function getTypeCacheKeys$2(luvio, input, fullPathFactory) {
|
|
|
216
215
|
representationName: RepresentationType$2,
|
|
217
216
|
mergeable: false
|
|
218
217
|
});
|
|
219
|
-
return rootKeySet;
|
|
220
218
|
}
|
|
221
219
|
|
|
222
220
|
function select$5(luvio, params) {
|
|
223
221
|
return select$6();
|
|
224
222
|
}
|
|
225
|
-
function getResponseCacheKeys$2(luvio, resourceParams, response) {
|
|
226
|
-
|
|
223
|
+
function getResponseCacheKeys$2(storeKeyMap, luvio, resourceParams, response) {
|
|
224
|
+
getTypeCacheKeys$2(storeKeyMap, luvio, response);
|
|
227
225
|
}
|
|
228
226
|
function ingestSuccess$2(luvio, resourceParams, response) {
|
|
229
227
|
const { body } = response;
|
|
@@ -301,7 +299,11 @@ function buildNetworkSnapshot$2(luvio, config, options) {
|
|
|
301
299
|
return luvio.handleSuccessResponse(() => {
|
|
302
300
|
const snapshot = ingestSuccess$2(luvio, resourceParams, response);
|
|
303
301
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
304
|
-
}, () =>
|
|
302
|
+
}, () => {
|
|
303
|
+
const cache = new StoreKeyMap();
|
|
304
|
+
getResponseCacheKeys$2(cache, luvio, resourceParams, response.body);
|
|
305
|
+
return cache;
|
|
306
|
+
});
|
|
305
307
|
}, (response) => {
|
|
306
308
|
deepFreeze(response);
|
|
307
309
|
throw response;
|
|
@@ -472,8 +474,7 @@ const ingest$1 = function StarterTemplateDetailRepresentationIngest(input, path,
|
|
|
472
474
|
}
|
|
473
475
|
return createLink(key);
|
|
474
476
|
};
|
|
475
|
-
function getTypeCacheKeys$1(luvio, input, fullPathFactory) {
|
|
476
|
-
const rootKeySet = new StoreKeyMap();
|
|
477
|
+
function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
477
478
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
478
479
|
const rootKey = fullPathFactory();
|
|
479
480
|
rootKeySet.set(rootKey, {
|
|
@@ -481,7 +482,6 @@ function getTypeCacheKeys$1(luvio, input, fullPathFactory) {
|
|
|
481
482
|
representationName: RepresentationType$1,
|
|
482
483
|
mergeable: false
|
|
483
484
|
});
|
|
484
|
-
return rootKeySet;
|
|
485
485
|
}
|
|
486
486
|
|
|
487
487
|
function select$3(luvio, params) {
|
|
@@ -490,8 +490,8 @@ function select$3(luvio, params) {
|
|
|
490
490
|
function keyBuilder$3(luvio, params) {
|
|
491
491
|
return keyPrefix + '::StarterTemplateDetailRepresentation:(' + 'type:' + params.queryParams.type + ',' + 'starterTemplateId:' + params.urlParams.starterTemplateId + ')';
|
|
492
492
|
}
|
|
493
|
-
function getResponseCacheKeys$1(luvio, resourceParams, response) {
|
|
494
|
-
|
|
493
|
+
function getResponseCacheKeys$1(storeKeyMap, luvio, resourceParams, response) {
|
|
494
|
+
getTypeCacheKeys$1(storeKeyMap, luvio, response, () => keyBuilder$3(luvio, resourceParams));
|
|
495
495
|
}
|
|
496
496
|
function ingestSuccess$1(luvio, resourceParams, response, snapshotRefresh) {
|
|
497
497
|
const { body } = response;
|
|
@@ -606,7 +606,11 @@ function buildNetworkSnapshot$1(luvio, config, options) {
|
|
|
606
606
|
const request = createResourceRequest$1(resourceParams);
|
|
607
607
|
return luvio.dispatchResourceRequest(request, options)
|
|
608
608
|
.then((response) => {
|
|
609
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$1(luvio, config, resourceParams, response), () =>
|
|
609
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$1(luvio, config, resourceParams, response), () => {
|
|
610
|
+
const cache = new StoreKeyMap();
|
|
611
|
+
getResponseCacheKeys$1(cache, luvio, resourceParams, response.body);
|
|
612
|
+
return cache;
|
|
613
|
+
});
|
|
610
614
|
}, (response) => {
|
|
611
615
|
return luvio.handleErrorResponse(() => onFetchResponseError$1(luvio, config, resourceParams, response));
|
|
612
616
|
});
|
|
@@ -817,8 +821,7 @@ const ingest = function StarterTemplateListRepresentationIngest(input, path, luv
|
|
|
817
821
|
}
|
|
818
822
|
return createLink(key);
|
|
819
823
|
};
|
|
820
|
-
function getTypeCacheKeys(luvio, input, fullPathFactory) {
|
|
821
|
-
const rootKeySet = new StoreKeyMap();
|
|
824
|
+
function getTypeCacheKeys(rootKeySet, luvio, input, fullPathFactory) {
|
|
822
825
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
823
826
|
const rootKey = fullPathFactory();
|
|
824
827
|
rootKeySet.set(rootKey, {
|
|
@@ -826,7 +829,6 @@ function getTypeCacheKeys(luvio, input, fullPathFactory) {
|
|
|
826
829
|
representationName: RepresentationType,
|
|
827
830
|
mergeable: false
|
|
828
831
|
});
|
|
829
|
-
return rootKeySet;
|
|
830
832
|
}
|
|
831
833
|
|
|
832
834
|
function select(luvio, params) {
|
|
@@ -835,8 +837,8 @@ function select(luvio, params) {
|
|
|
835
837
|
function keyBuilder$1(luvio, params) {
|
|
836
838
|
return keyPrefix + '::StarterTemplateListRepresentation:(' + 'filter:' + params.queryParams.filter + ',' + 'type:' + params.queryParams.type + ')';
|
|
837
839
|
}
|
|
838
|
-
function getResponseCacheKeys(luvio, resourceParams, response) {
|
|
839
|
-
|
|
840
|
+
function getResponseCacheKeys(storeKeyMap, luvio, resourceParams, response) {
|
|
841
|
+
getTypeCacheKeys(storeKeyMap, luvio, response, () => keyBuilder$1(luvio, resourceParams));
|
|
840
842
|
}
|
|
841
843
|
function ingestSuccess(luvio, resourceParams, response, snapshotRefresh) {
|
|
842
844
|
const { body } = response;
|
|
@@ -948,7 +950,11 @@ function buildNetworkSnapshot(luvio, config, options) {
|
|
|
948
950
|
const request = createResourceRequest(resourceParams);
|
|
949
951
|
return luvio.dispatchResourceRequest(request, options)
|
|
950
952
|
.then((response) => {
|
|
951
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess(luvio, config, resourceParams, response), () =>
|
|
953
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess(luvio, config, resourceParams, response), () => {
|
|
954
|
+
const cache = new StoreKeyMap();
|
|
955
|
+
getResponseCacheKeys(cache, luvio, resourceParams, response.body);
|
|
956
|
+
return cache;
|
|
957
|
+
});
|
|
952
958
|
}, (response) => {
|
|
953
959
|
return luvio.handleErrorResponse(() => onFetchResponseError(luvio, config, resourceParams, response));
|
|
954
960
|
});
|
|
@@ -1029,4 +1035,4 @@ withDefaultLuvio((luvio) => {
|
|
|
1029
1035
|
});
|
|
1030
1036
|
|
|
1031
1037
|
export { createAsset, getStarterTemplateById, getStarterTemplateById_imperative, getStarterTemplates, getStarterTemplates_imperative };
|
|
1032
|
-
// version: 1.
|
|
1038
|
+
// version: 1.171.0-c5e524eba
|