@salesforce/lds-adapters-marketing-assetcreation 1.213.0 → 1.213.2
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 +41 -109
- package/dist/es/es2018/types/src/generated/adapters/adapter-utils.d.ts +3 -1
- package/dist/es/es2018/types/src/generated/adapters/createAsset.d.ts +3 -2
- package/dist/es/es2018/types/src/generated/adapters/getStarterTemplateById.d.ts +3 -2
- package/dist/es/es2018/types/src/generated/adapters/getStarterTemplates.d.ts +3 -2
- package/package.json +1 -1
- package/sfdc/index.js +42 -110
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* For full license text, see the LICENSE.txt file
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
import { serializeStructuredKey, deepFreeze, StoreKeyMap, typeCheckScalars } from '@luvio/engine';
|
|
7
|
+
import { serializeStructuredKey, ingestShape, deepFreeze, StoreKeyMap, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$2, typeCheckScalars } from '@luvio/engine';
|
|
8
8
|
|
|
9
9
|
const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
|
|
10
10
|
const { keys: ObjectKeys$1, create: ObjectCreate$1 } = Object;
|
|
@@ -48,6 +48,24 @@ const snapshotRefreshOptions = {
|
|
|
48
48
|
},
|
|
49
49
|
}
|
|
50
50
|
};
|
|
51
|
+
function generateParamConfigMetadata(name, required, coerceFn) {
|
|
52
|
+
return {
|
|
53
|
+
name,
|
|
54
|
+
required,
|
|
55
|
+
coerceFn,
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
function buildAdapterValidationConfig(displayName, paramsMeta) {
|
|
59
|
+
const required = paramsMeta.filter(p => p.required).map(p => p.name);
|
|
60
|
+
const optional = paramsMeta.filter(p => !p.required).map(p => p.name);
|
|
61
|
+
return {
|
|
62
|
+
displayName,
|
|
63
|
+
parameters: {
|
|
64
|
+
required,
|
|
65
|
+
optional,
|
|
66
|
+
}
|
|
67
|
+
};
|
|
68
|
+
}
|
|
51
69
|
const keyPrefix = 'assetcreation';
|
|
52
70
|
|
|
53
71
|
const { keys: ObjectKeys, create: ObjectCreate, assign: ObjectAssign } = Object;
|
|
@@ -175,26 +193,8 @@ const ingest$2 = function AssetOutputRepresentationIngest(input, path, luvio, st
|
|
|
175
193
|
}
|
|
176
194
|
}
|
|
177
195
|
const key = keyBuilderFromType(luvio, input);
|
|
178
|
-
const existingRecord = store.readEntry(key);
|
|
179
196
|
const ttlToUse = TTL$2;
|
|
180
|
-
|
|
181
|
-
fullPath: key,
|
|
182
|
-
parent: path.parent,
|
|
183
|
-
propertyName: path.propertyName,
|
|
184
|
-
ttl: ttlToUse
|
|
185
|
-
});
|
|
186
|
-
if (existingRecord === undefined || equals$3(existingRecord, incomingRecord) === false) {
|
|
187
|
-
luvio.storePublish(key, incomingRecord);
|
|
188
|
-
}
|
|
189
|
-
{
|
|
190
|
-
const storeMetadataParams = {
|
|
191
|
-
ttl: ttlToUse,
|
|
192
|
-
namespace: "assetcreation",
|
|
193
|
-
version: VERSION$3,
|
|
194
|
-
representationName: RepresentationType$2,
|
|
195
|
-
};
|
|
196
|
-
luvio.publishStoreMetadata(key, storeMetadataParams);
|
|
197
|
-
}
|
|
197
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$2, "assetcreation", VERSION$3, RepresentationType$2, equals$3);
|
|
198
198
|
return createLink(key);
|
|
199
199
|
};
|
|
200
200
|
function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -244,13 +244,11 @@ function createResourceRequest$2(config) {
|
|
|
244
244
|
};
|
|
245
245
|
}
|
|
246
246
|
|
|
247
|
-
const
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
}
|
|
253
|
-
};
|
|
247
|
+
const adapterName$2 = 'createAsset';
|
|
248
|
+
const createAsset_ConfigPropertyMetadata = [
|
|
249
|
+
generateParamConfigMetadata('AssetInput', true),
|
|
250
|
+
];
|
|
251
|
+
const createAsset_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, createAsset_ConfigPropertyMetadata);
|
|
254
252
|
function createResourceParams$2(config) {
|
|
255
253
|
const resourceParams = {
|
|
256
254
|
body: {
|
|
@@ -454,26 +452,8 @@ const ingest$1 = function StarterTemplateListRepresentationIngest(input, path, l
|
|
|
454
452
|
}
|
|
455
453
|
}
|
|
456
454
|
const key = path.fullPath;
|
|
457
|
-
const existingRecord = store.readEntry(key);
|
|
458
455
|
const ttlToUse = TTL$1;
|
|
459
|
-
|
|
460
|
-
fullPath: key,
|
|
461
|
-
parent: path.parent,
|
|
462
|
-
propertyName: path.propertyName,
|
|
463
|
-
ttl: ttlToUse
|
|
464
|
-
});
|
|
465
|
-
if (existingRecord === undefined || equals$1(existingRecord, incomingRecord) === false) {
|
|
466
|
-
luvio.storePublish(key, incomingRecord);
|
|
467
|
-
}
|
|
468
|
-
{
|
|
469
|
-
const storeMetadataParams = {
|
|
470
|
-
ttl: ttlToUse,
|
|
471
|
-
namespace: "assetcreation",
|
|
472
|
-
version: VERSION$1,
|
|
473
|
-
representationName: RepresentationType$1,
|
|
474
|
-
};
|
|
475
|
-
luvio.publishStoreMetadata(key, storeMetadataParams);
|
|
476
|
-
}
|
|
456
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$1, "assetcreation", VERSION$1, RepresentationType$1, equals$1);
|
|
477
457
|
return createLink(key);
|
|
478
458
|
};
|
|
479
459
|
function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -538,13 +518,12 @@ function createResourceRequest$1(config) {
|
|
|
538
518
|
};
|
|
539
519
|
}
|
|
540
520
|
|
|
541
|
-
const
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
};
|
|
521
|
+
const adapterName$1 = 'getStarterTemplates';
|
|
522
|
+
const getStarterTemplates_ConfigPropertyMetadata = [
|
|
523
|
+
generateParamConfigMetadata('filter', false),
|
|
524
|
+
generateParamConfigMetadata('type', false),
|
|
525
|
+
];
|
|
526
|
+
const getStarterTemplates_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, getStarterTemplates_ConfigPropertyMetadata);
|
|
548
527
|
function createResourceParams$1(config) {
|
|
549
528
|
const resourceParams = {
|
|
550
529
|
queryParams: {
|
|
@@ -611,21 +590,7 @@ function buildNetworkSnapshot$1(luvio, config, options) {
|
|
|
611
590
|
});
|
|
612
591
|
}
|
|
613
592
|
function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
|
|
614
|
-
|
|
615
|
-
const { networkPriority, requestCorrelator, eventObservers } = coercedAdapterRequestContext;
|
|
616
|
-
const dispatchOptions = {
|
|
617
|
-
resourceRequestContext: {
|
|
618
|
-
requestCorrelator,
|
|
619
|
-
luvioRequestMethod: undefined,
|
|
620
|
-
},
|
|
621
|
-
eventObservers
|
|
622
|
-
};
|
|
623
|
-
if (networkPriority !== 'normal') {
|
|
624
|
-
dispatchOptions.overrides = {
|
|
625
|
-
priority: networkPriority
|
|
626
|
-
};
|
|
627
|
-
}
|
|
628
|
-
return buildNetworkSnapshot$1(luvio, config, dispatchOptions);
|
|
593
|
+
return buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext, buildNetworkSnapshot$1, undefined, false);
|
|
629
594
|
}
|
|
630
595
|
function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
|
|
631
596
|
const { luvio, config } = context;
|
|
@@ -782,26 +747,8 @@ const ingest = function StarterTemplateDetailRepresentationIngest(input, path, l
|
|
|
782
747
|
}
|
|
783
748
|
}
|
|
784
749
|
const key = path.fullPath;
|
|
785
|
-
const existingRecord = store.readEntry(key);
|
|
786
750
|
const ttlToUse = TTL;
|
|
787
|
-
|
|
788
|
-
fullPath: key,
|
|
789
|
-
parent: path.parent,
|
|
790
|
-
propertyName: path.propertyName,
|
|
791
|
-
ttl: ttlToUse
|
|
792
|
-
});
|
|
793
|
-
if (existingRecord === undefined || equals(existingRecord, incomingRecord) === false) {
|
|
794
|
-
luvio.storePublish(key, incomingRecord);
|
|
795
|
-
}
|
|
796
|
-
{
|
|
797
|
-
const storeMetadataParams = {
|
|
798
|
-
ttl: ttlToUse,
|
|
799
|
-
namespace: "assetcreation",
|
|
800
|
-
version: VERSION,
|
|
801
|
-
representationName: RepresentationType,
|
|
802
|
-
};
|
|
803
|
-
luvio.publishStoreMetadata(key, storeMetadataParams);
|
|
804
|
-
}
|
|
751
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize, "assetcreation", VERSION, RepresentationType, equals);
|
|
805
752
|
return createLink(key);
|
|
806
753
|
};
|
|
807
754
|
function getTypeCacheKeys(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -866,13 +813,12 @@ function createResourceRequest(config) {
|
|
|
866
813
|
};
|
|
867
814
|
}
|
|
868
815
|
|
|
869
|
-
const
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
};
|
|
816
|
+
const adapterName = 'getStarterTemplateById';
|
|
817
|
+
const getStarterTemplateById_ConfigPropertyMetadata = [
|
|
818
|
+
generateParamConfigMetadata('starterTemplateId', true),
|
|
819
|
+
generateParamConfigMetadata('type', false),
|
|
820
|
+
];
|
|
821
|
+
const getStarterTemplateById_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, getStarterTemplateById_ConfigPropertyMetadata);
|
|
876
822
|
function createResourceParams(config) {
|
|
877
823
|
const resourceParams = {
|
|
878
824
|
urlParams: {
|
|
@@ -942,21 +888,7 @@ function buildNetworkSnapshot(luvio, config, options) {
|
|
|
942
888
|
});
|
|
943
889
|
}
|
|
944
890
|
function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
|
|
945
|
-
|
|
946
|
-
const { networkPriority, requestCorrelator, eventObservers } = coercedAdapterRequestContext;
|
|
947
|
-
const dispatchOptions = {
|
|
948
|
-
resourceRequestContext: {
|
|
949
|
-
requestCorrelator,
|
|
950
|
-
luvioRequestMethod: undefined,
|
|
951
|
-
},
|
|
952
|
-
eventObservers
|
|
953
|
-
};
|
|
954
|
-
if (networkPriority !== 'normal') {
|
|
955
|
-
dispatchOptions.overrides = {
|
|
956
|
-
priority: networkPriority
|
|
957
|
-
};
|
|
958
|
-
}
|
|
959
|
-
return buildNetworkSnapshot(luvio, config, dispatchOptions);
|
|
891
|
+
return buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext, buildNetworkSnapshot, undefined, false);
|
|
960
892
|
}
|
|
961
893
|
function buildCachedSnapshotCachePolicy(context, storeLookup) {
|
|
962
894
|
const { luvio, config } = context;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Adapter as $64$luvio_engine_Adapter, Snapshot as $64$luvio_engine_Snapshot, UnfulfilledSnapshot as $64$luvio_engine_UnfulfilledSnapshot } from '@luvio/engine';
|
|
1
|
+
import { Adapter as $64$luvio_engine_Adapter, Snapshot as $64$luvio_engine_Snapshot, UnfulfilledSnapshot as $64$luvio_engine_UnfulfilledSnapshot, AdapterConfigMetadata as $64$luvio_engine_AdapterConfigMetadata } from '@luvio/engine';
|
|
2
2
|
export declare const ObjectPrototypeHasOwnProperty: (v: PropertyKey) => boolean;
|
|
3
3
|
declare const ObjectKeys: {
|
|
4
4
|
(o: object): string[];
|
|
@@ -57,4 +57,6 @@ export declare const snapshotRefreshOptions: {
|
|
|
57
57
|
export declare function stableJSONStringify(node: any): string | undefined;
|
|
58
58
|
export declare function getFetchResponseStatusText(status: number): string;
|
|
59
59
|
export declare function isUnfulfilledSnapshot<T, U>(snapshot: $64$luvio_engine_Snapshot<T, U>): snapshot is $64$luvio_engine_UnfulfilledSnapshot<T, U>;
|
|
60
|
+
export declare function generateParamConfigMetadata(name: string, required: boolean, coerceFn?: (v: unknown) => unknown): $64$luvio_engine_AdapterConfigMetadata;
|
|
61
|
+
export declare function buildAdapterValidationConfig(displayName: string, paramsMeta: $64$luvio_engine_AdapterConfigMetadata[]): AdapterValidationConfig;
|
|
60
62
|
export declare const keyPrefix = "assetcreation";
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AdapterConfigMetadata as $64$luvio_engine_AdapterConfigMetadata, Luvio as $64$luvio_engine_Luvio, DispatchResourceRequestContext as $64$luvio_engine_DispatchResourceRequestContext, AdapterFactory as $64$luvio_engine_AdapterFactory } from '@luvio/engine';
|
|
2
|
+
import { Untrusted as adapter$45$utils_Untrusted, AdapterValidationConfig as adapter$45$utils_AdapterValidationConfig } from './adapter-utils';
|
|
2
3
|
import { AssetInputRepresentation as types_AssetInputRepresentation_AssetInputRepresentation } from '../types/AssetInputRepresentation';
|
|
3
4
|
import { ResourceRequestConfig as resources_postAssetCreationObjects_ResourceRequestConfig } from '../resources/postAssetCreationObjects';
|
|
4
|
-
import { Luvio as $64$luvio_engine_Luvio, DispatchResourceRequestContext as $64$luvio_engine_DispatchResourceRequestContext, AdapterFactory as $64$luvio_engine_AdapterFactory } from '@luvio/engine';
|
|
5
5
|
import { AssetOutputRepresentation as types_AssetOutputRepresentation_AssetOutputRepresentation } from '../types/AssetOutputRepresentation';
|
|
6
6
|
export declare const adapterName = "createAsset";
|
|
7
|
+
export declare const createAsset_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
|
|
7
8
|
export declare const createAsset_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
|
|
8
9
|
export interface CreateAssetConfig {
|
|
9
10
|
AssetInput: types_AssetInputRepresentation_AssetInputRepresentation;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AdapterConfigMetadata as $64$luvio_engine_AdapterConfigMetadata, Luvio as $64$luvio_engine_Luvio, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, Fragment as $64$luvio_engine_Fragment, Snapshot as $64$luvio_engine_Snapshot, FetchResponse as $64$luvio_engine_FetchResponse, ErrorResponse as $64$luvio_engine_ErrorResponse, DispatchResourceRequestContext as $64$luvio_engine_DispatchResourceRequestContext, CoercedAdapterRequestContext as $64$luvio_engine_CoercedAdapterRequestContext, StoreLookup as $64$luvio_engine_StoreLookup, AdapterFactory as $64$luvio_engine_AdapterFactory } from '@luvio/engine';
|
|
2
|
+
import { Untrusted as adapter$45$utils_Untrusted, AdapterValidationConfig as adapter$45$utils_AdapterValidationConfig } from './adapter-utils';
|
|
2
3
|
import { ResourceRequestConfig as resources_getAssetCreationStarterTemplatesByStarterTemplateId_ResourceRequestConfig } from '../resources/getAssetCreationStarterTemplatesByStarterTemplateId';
|
|
3
|
-
import { Luvio as $64$luvio_engine_Luvio, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, Fragment as $64$luvio_engine_Fragment, Snapshot as $64$luvio_engine_Snapshot, FetchResponse as $64$luvio_engine_FetchResponse, ErrorResponse as $64$luvio_engine_ErrorResponse, DispatchResourceRequestContext as $64$luvio_engine_DispatchResourceRequestContext, CoercedAdapterRequestContext as $64$luvio_engine_CoercedAdapterRequestContext, StoreLookup as $64$luvio_engine_StoreLookup, AdapterFactory as $64$luvio_engine_AdapterFactory } from '@luvio/engine';
|
|
4
4
|
import { StarterTemplateDetailRepresentation as types_StarterTemplateDetailRepresentation_StarterTemplateDetailRepresentation } from '../types/StarterTemplateDetailRepresentation';
|
|
5
5
|
export declare const adapterName = "getStarterTemplateById";
|
|
6
|
+
export declare const getStarterTemplateById_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
|
|
6
7
|
export declare const getStarterTemplateById_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
|
|
7
8
|
export interface GetStarterTemplateByIdConfig {
|
|
8
9
|
starterTemplateId: string;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AdapterConfigMetadata as $64$luvio_engine_AdapterConfigMetadata, Luvio as $64$luvio_engine_Luvio, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, Fragment as $64$luvio_engine_Fragment, Snapshot as $64$luvio_engine_Snapshot, FetchResponse as $64$luvio_engine_FetchResponse, ErrorResponse as $64$luvio_engine_ErrorResponse, DispatchResourceRequestContext as $64$luvio_engine_DispatchResourceRequestContext, CoercedAdapterRequestContext as $64$luvio_engine_CoercedAdapterRequestContext, StoreLookup as $64$luvio_engine_StoreLookup, AdapterFactory as $64$luvio_engine_AdapterFactory } from '@luvio/engine';
|
|
2
|
+
import { Untrusted as adapter$45$utils_Untrusted, AdapterValidationConfig as adapter$45$utils_AdapterValidationConfig } from './adapter-utils';
|
|
2
3
|
import { ResourceRequestConfig as resources_getAssetCreationStarterTemplates_ResourceRequestConfig } from '../resources/getAssetCreationStarterTemplates';
|
|
3
|
-
import { Luvio as $64$luvio_engine_Luvio, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, Fragment as $64$luvio_engine_Fragment, Snapshot as $64$luvio_engine_Snapshot, FetchResponse as $64$luvio_engine_FetchResponse, ErrorResponse as $64$luvio_engine_ErrorResponse, DispatchResourceRequestContext as $64$luvio_engine_DispatchResourceRequestContext, CoercedAdapterRequestContext as $64$luvio_engine_CoercedAdapterRequestContext, StoreLookup as $64$luvio_engine_StoreLookup, AdapterFactory as $64$luvio_engine_AdapterFactory } from '@luvio/engine';
|
|
4
4
|
import { StarterTemplateListRepresentation as types_StarterTemplateListRepresentation_StarterTemplateListRepresentation } from '../types/StarterTemplateListRepresentation';
|
|
5
5
|
export declare const adapterName = "getStarterTemplates";
|
|
6
|
+
export declare const getStarterTemplates_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
|
|
6
7
|
export declare const getStarterTemplates_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
|
|
7
8
|
export interface GetStarterTemplatesConfig {
|
|
8
9
|
filter?: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-adapters-marketing-assetcreation",
|
|
3
|
-
"version": "1.213.
|
|
3
|
+
"version": "1.213.2",
|
|
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, deepFreeze, StoreKeyMap, typeCheckScalars } from 'force/luvioEngine';
|
|
17
|
+
import { serializeStructuredKey, ingestShape, deepFreeze, StoreKeyMap, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$2, typeCheckScalars } from 'force/luvioEngine';
|
|
18
18
|
|
|
19
19
|
const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
|
|
20
20
|
const { keys: ObjectKeys$1, create: ObjectCreate$1 } = Object;
|
|
@@ -58,6 +58,24 @@ const snapshotRefreshOptions = {
|
|
|
58
58
|
},
|
|
59
59
|
}
|
|
60
60
|
};
|
|
61
|
+
function generateParamConfigMetadata(name, required, coerceFn) {
|
|
62
|
+
return {
|
|
63
|
+
name,
|
|
64
|
+
required,
|
|
65
|
+
coerceFn,
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
function buildAdapterValidationConfig(displayName, paramsMeta) {
|
|
69
|
+
const required = paramsMeta.filter(p => p.required).map(p => p.name);
|
|
70
|
+
const optional = paramsMeta.filter(p => !p.required).map(p => p.name);
|
|
71
|
+
return {
|
|
72
|
+
displayName,
|
|
73
|
+
parameters: {
|
|
74
|
+
required,
|
|
75
|
+
optional,
|
|
76
|
+
}
|
|
77
|
+
};
|
|
78
|
+
}
|
|
61
79
|
const keyPrefix = 'assetcreation';
|
|
62
80
|
|
|
63
81
|
const { keys: ObjectKeys, create: ObjectCreate, assign: ObjectAssign } = Object;
|
|
@@ -185,26 +203,8 @@ const ingest$2 = function AssetOutputRepresentationIngest(input, path, luvio, st
|
|
|
185
203
|
}
|
|
186
204
|
}
|
|
187
205
|
const key = keyBuilderFromType(luvio, input);
|
|
188
|
-
const existingRecord = store.readEntry(key);
|
|
189
206
|
const ttlToUse = TTL$2;
|
|
190
|
-
|
|
191
|
-
fullPath: key,
|
|
192
|
-
parent: path.parent,
|
|
193
|
-
propertyName: path.propertyName,
|
|
194
|
-
ttl: ttlToUse
|
|
195
|
-
});
|
|
196
|
-
if (existingRecord === undefined || equals$3(existingRecord, incomingRecord) === false) {
|
|
197
|
-
luvio.storePublish(key, incomingRecord);
|
|
198
|
-
}
|
|
199
|
-
{
|
|
200
|
-
const storeMetadataParams = {
|
|
201
|
-
ttl: ttlToUse,
|
|
202
|
-
namespace: "assetcreation",
|
|
203
|
-
version: VERSION$3,
|
|
204
|
-
representationName: RepresentationType$2,
|
|
205
|
-
};
|
|
206
|
-
luvio.publishStoreMetadata(key, storeMetadataParams);
|
|
207
|
-
}
|
|
207
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$2, "assetcreation", VERSION$3, RepresentationType$2, equals$3);
|
|
208
208
|
return createLink(key);
|
|
209
209
|
};
|
|
210
210
|
function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -254,13 +254,11 @@ function createResourceRequest$2(config) {
|
|
|
254
254
|
};
|
|
255
255
|
}
|
|
256
256
|
|
|
257
|
-
const
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
}
|
|
263
|
-
};
|
|
257
|
+
const adapterName$2 = 'createAsset';
|
|
258
|
+
const createAsset_ConfigPropertyMetadata = [
|
|
259
|
+
generateParamConfigMetadata('AssetInput', true),
|
|
260
|
+
];
|
|
261
|
+
const createAsset_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, createAsset_ConfigPropertyMetadata);
|
|
264
262
|
function createResourceParams$2(config) {
|
|
265
263
|
const resourceParams = {
|
|
266
264
|
body: {
|
|
@@ -452,26 +450,8 @@ const ingest$1 = function StarterTemplateDetailRepresentationIngest(input, path,
|
|
|
452
450
|
}
|
|
453
451
|
}
|
|
454
452
|
const key = path.fullPath;
|
|
455
|
-
const existingRecord = store.readEntry(key);
|
|
456
453
|
const ttlToUse = TTL$1;
|
|
457
|
-
|
|
458
|
-
fullPath: key,
|
|
459
|
-
parent: path.parent,
|
|
460
|
-
propertyName: path.propertyName,
|
|
461
|
-
ttl: ttlToUse
|
|
462
|
-
});
|
|
463
|
-
if (existingRecord === undefined || equals$2(existingRecord, incomingRecord) === false) {
|
|
464
|
-
luvio.storePublish(key, incomingRecord);
|
|
465
|
-
}
|
|
466
|
-
{
|
|
467
|
-
const storeMetadataParams = {
|
|
468
|
-
ttl: ttlToUse,
|
|
469
|
-
namespace: "assetcreation",
|
|
470
|
-
version: VERSION$2,
|
|
471
|
-
representationName: RepresentationType$1,
|
|
472
|
-
};
|
|
473
|
-
luvio.publishStoreMetadata(key, storeMetadataParams);
|
|
474
|
-
}
|
|
454
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$1, "assetcreation", VERSION$2, RepresentationType$1, equals$2);
|
|
475
455
|
return createLink(key);
|
|
476
456
|
};
|
|
477
457
|
function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -536,13 +516,12 @@ function createResourceRequest$1(config) {
|
|
|
536
516
|
};
|
|
537
517
|
}
|
|
538
518
|
|
|
539
|
-
const
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
};
|
|
519
|
+
const adapterName$1 = 'getStarterTemplateById';
|
|
520
|
+
const getStarterTemplateById_ConfigPropertyMetadata = [
|
|
521
|
+
generateParamConfigMetadata('starterTemplateId', true),
|
|
522
|
+
generateParamConfigMetadata('type', false),
|
|
523
|
+
];
|
|
524
|
+
const getStarterTemplateById_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, getStarterTemplateById_ConfigPropertyMetadata);
|
|
546
525
|
function createResourceParams$1(config) {
|
|
547
526
|
const resourceParams = {
|
|
548
527
|
urlParams: {
|
|
@@ -612,21 +591,7 @@ function buildNetworkSnapshot$1(luvio, config, options) {
|
|
|
612
591
|
});
|
|
613
592
|
}
|
|
614
593
|
function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
|
|
615
|
-
|
|
616
|
-
const { networkPriority, requestCorrelator, eventObservers } = coercedAdapterRequestContext;
|
|
617
|
-
const dispatchOptions = {
|
|
618
|
-
resourceRequestContext: {
|
|
619
|
-
requestCorrelator,
|
|
620
|
-
luvioRequestMethod: undefined,
|
|
621
|
-
},
|
|
622
|
-
eventObservers
|
|
623
|
-
};
|
|
624
|
-
if (networkPriority !== 'normal') {
|
|
625
|
-
dispatchOptions.overrides = {
|
|
626
|
-
priority: networkPriority
|
|
627
|
-
};
|
|
628
|
-
}
|
|
629
|
-
return buildNetworkSnapshot$1(luvio, config, dispatchOptions);
|
|
594
|
+
return buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext, buildNetworkSnapshot$1, undefined, false);
|
|
630
595
|
}
|
|
631
596
|
function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
|
|
632
597
|
const { luvio, config } = context;
|
|
@@ -795,26 +760,8 @@ const ingest = function StarterTemplateListRepresentationIngest(input, path, luv
|
|
|
795
760
|
}
|
|
796
761
|
}
|
|
797
762
|
const key = path.fullPath;
|
|
798
|
-
const existingRecord = store.readEntry(key);
|
|
799
763
|
const ttlToUse = TTL;
|
|
800
|
-
|
|
801
|
-
fullPath: key,
|
|
802
|
-
parent: path.parent,
|
|
803
|
-
propertyName: path.propertyName,
|
|
804
|
-
ttl: ttlToUse
|
|
805
|
-
});
|
|
806
|
-
if (existingRecord === undefined || equals(existingRecord, incomingRecord) === false) {
|
|
807
|
-
luvio.storePublish(key, incomingRecord);
|
|
808
|
-
}
|
|
809
|
-
{
|
|
810
|
-
const storeMetadataParams = {
|
|
811
|
-
ttl: ttlToUse,
|
|
812
|
-
namespace: "assetcreation",
|
|
813
|
-
version: VERSION,
|
|
814
|
-
representationName: RepresentationType,
|
|
815
|
-
};
|
|
816
|
-
luvio.publishStoreMetadata(key, storeMetadataParams);
|
|
817
|
-
}
|
|
764
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize, "assetcreation", VERSION, RepresentationType, equals);
|
|
818
765
|
return createLink(key);
|
|
819
766
|
};
|
|
820
767
|
function getTypeCacheKeys(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -879,13 +826,12 @@ function createResourceRequest(config) {
|
|
|
879
826
|
};
|
|
880
827
|
}
|
|
881
828
|
|
|
882
|
-
const
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
};
|
|
829
|
+
const adapterName = 'getStarterTemplates';
|
|
830
|
+
const getStarterTemplates_ConfigPropertyMetadata = [
|
|
831
|
+
generateParamConfigMetadata('filter', false),
|
|
832
|
+
generateParamConfigMetadata('type', false),
|
|
833
|
+
];
|
|
834
|
+
const getStarterTemplates_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, getStarterTemplates_ConfigPropertyMetadata);
|
|
889
835
|
function createResourceParams(config) {
|
|
890
836
|
const resourceParams = {
|
|
891
837
|
queryParams: {
|
|
@@ -952,21 +898,7 @@ function buildNetworkSnapshot(luvio, config, options) {
|
|
|
952
898
|
});
|
|
953
899
|
}
|
|
954
900
|
function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
|
|
955
|
-
|
|
956
|
-
const { networkPriority, requestCorrelator, eventObservers } = coercedAdapterRequestContext;
|
|
957
|
-
const dispatchOptions = {
|
|
958
|
-
resourceRequestContext: {
|
|
959
|
-
requestCorrelator,
|
|
960
|
-
luvioRequestMethod: undefined,
|
|
961
|
-
},
|
|
962
|
-
eventObservers
|
|
963
|
-
};
|
|
964
|
-
if (networkPriority !== 'normal') {
|
|
965
|
-
dispatchOptions.overrides = {
|
|
966
|
-
priority: networkPriority
|
|
967
|
-
};
|
|
968
|
-
}
|
|
969
|
-
return buildNetworkSnapshot(luvio, config, dispatchOptions);
|
|
901
|
+
return buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext, buildNetworkSnapshot, undefined, false);
|
|
970
902
|
}
|
|
971
903
|
function buildCachedSnapshotCachePolicy(context, storeLookup) {
|
|
972
904
|
const { luvio, config } = context;
|
|
@@ -1027,4 +959,4 @@ withDefaultLuvio((luvio) => {
|
|
|
1027
959
|
});
|
|
1028
960
|
|
|
1029
961
|
export { createAsset, getStarterTemplateById, getStarterTemplateById_imperative, getStarterTemplates, getStarterTemplates_imperative };
|
|
1030
|
-
// version: 1.213.
|
|
962
|
+
// version: 1.213.2-1eb996209
|