@salesforce/lds-adapters-experience-model 1.213.0 → 1.213.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.
- package/dist/es/es2018/experience-model.js +94 -247
- package/dist/es/es2018/types/src/generated/adapters/adapter-utils.d.ts +3 -1
- package/dist/es/es2018/types/src/generated/adapters/getBlockType.d.ts +3 -2
- package/dist/es/es2018/types/src/generated/adapters/getBlockTypes.d.ts +3 -2
- package/dist/es/es2018/types/src/generated/adapters/getContentType.d.ts +3 -2
- package/dist/es/es2018/types/src/generated/adapters/getContentTypes.d.ts +3 -2
- package/dist/es/es2018/types/src/generated/adapters/getPropertyType.d.ts +3 -2
- package/dist/es/es2018/types/src/generated/adapters/getPropertyTypes.d.ts +3 -2
- package/package.json +1 -1
- package/sfdc/index.js +95 -248
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* For full license text, see the LICENSE.txt file
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
import { serializeStructuredKey, deepFreeze, typeCheckScalars, typeCheckArrayOfScalars, StoreKeyMap } from '@luvio/engine';
|
|
7
|
+
import { serializeStructuredKey, ingestShape, deepFreeze, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$6, typeCheckScalars, typeCheckArrayOfScalars, StoreKeyMap } 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 = 'ExperienceType';
|
|
52
70
|
|
|
53
71
|
const { keys: ObjectKeys, create: ObjectCreate, assign: ObjectAssign } = Object;
|
|
@@ -191,26 +209,8 @@ const ingest$5 = function ExperienceModelBlockTypeCollectionRepresentationIngest
|
|
|
191
209
|
}
|
|
192
210
|
}
|
|
193
211
|
const key = path.fullPath;
|
|
194
|
-
const existingRecord = store.readEntry(key);
|
|
195
212
|
const ttlToUse = TTL$5;
|
|
196
|
-
|
|
197
|
-
fullPath: key,
|
|
198
|
-
parent: path.parent,
|
|
199
|
-
propertyName: path.propertyName,
|
|
200
|
-
ttl: ttlToUse
|
|
201
|
-
});
|
|
202
|
-
if (existingRecord === undefined || equals$5(existingRecord, incomingRecord) === false) {
|
|
203
|
-
luvio.storePublish(key, incomingRecord);
|
|
204
|
-
}
|
|
205
|
-
{
|
|
206
|
-
const storeMetadataParams = {
|
|
207
|
-
ttl: ttlToUse,
|
|
208
|
-
namespace: "ExperienceType",
|
|
209
|
-
version: VERSION$5,
|
|
210
|
-
representationName: RepresentationType$5,
|
|
211
|
-
};
|
|
212
|
-
luvio.publishStoreMetadata(key, storeMetadataParams);
|
|
213
|
-
}
|
|
213
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$5, "ExperienceType", VERSION$5, RepresentationType$5, equals$5);
|
|
214
214
|
return createLink(key);
|
|
215
215
|
};
|
|
216
216
|
function getTypeCacheKeys$5(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -275,13 +275,19 @@ function createResourceRequest$5(config) {
|
|
|
275
275
|
};
|
|
276
276
|
}
|
|
277
277
|
|
|
278
|
-
const
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
278
|
+
const adapterName$5 = 'getBlockTypes';
|
|
279
|
+
const getBlockTypes_ConfigPropertyMetadata = [
|
|
280
|
+
generateParamConfigMetadata('contentTypeFullyQualifiedName', false),
|
|
281
|
+
generateParamConfigMetadata('designConfigTarget', false),
|
|
282
|
+
generateParamConfigMetadata('fullyQualifiedNames', false),
|
|
283
|
+
generateParamConfigMetadata('language', false),
|
|
284
|
+
generateParamConfigMetadata('mixinTypeFullyQualifiedNames', false),
|
|
285
|
+
generateParamConfigMetadata('page', false),
|
|
286
|
+
generateParamConfigMetadata('pageSize', false),
|
|
287
|
+
generateParamConfigMetadata('renditionConfigTarget', false),
|
|
288
|
+
generateParamConfigMetadata('typeClassFullyQualifiedNames', false),
|
|
289
|
+
];
|
|
290
|
+
const getBlockTypes_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, getBlockTypes_ConfigPropertyMetadata);
|
|
285
291
|
function createResourceParams$5(config) {
|
|
286
292
|
const resourceParams = {
|
|
287
293
|
queryParams: {
|
|
@@ -357,21 +363,7 @@ function buildNetworkSnapshot$5(luvio, config, options) {
|
|
|
357
363
|
});
|
|
358
364
|
}
|
|
359
365
|
function buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext) {
|
|
360
|
-
|
|
361
|
-
const { networkPriority, requestCorrelator, eventObservers } = coercedAdapterRequestContext;
|
|
362
|
-
const dispatchOptions = {
|
|
363
|
-
resourceRequestContext: {
|
|
364
|
-
requestCorrelator,
|
|
365
|
-
luvioRequestMethod: undefined,
|
|
366
|
-
},
|
|
367
|
-
eventObservers
|
|
368
|
-
};
|
|
369
|
-
if (networkPriority !== 'normal') {
|
|
370
|
-
dispatchOptions.overrides = {
|
|
371
|
-
priority: networkPriority
|
|
372
|
-
};
|
|
373
|
-
}
|
|
374
|
-
return buildNetworkSnapshot$5(luvio, config, dispatchOptions);
|
|
366
|
+
return buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext, buildNetworkSnapshot$5, undefined, false);
|
|
375
367
|
}
|
|
376
368
|
function buildCachedSnapshotCachePolicy$5(context, storeLookup) {
|
|
377
369
|
const { luvio, config } = context;
|
|
@@ -509,26 +501,8 @@ const ingest$4 = function ExperienceModelBlockTypeDetailRepresentationIngest(inp
|
|
|
509
501
|
}
|
|
510
502
|
}
|
|
511
503
|
const key = path.fullPath;
|
|
512
|
-
const existingRecord = store.readEntry(key);
|
|
513
504
|
const ttlToUse = TTL$4;
|
|
514
|
-
|
|
515
|
-
fullPath: key,
|
|
516
|
-
parent: path.parent,
|
|
517
|
-
propertyName: path.propertyName,
|
|
518
|
-
ttl: ttlToUse
|
|
519
|
-
});
|
|
520
|
-
if (existingRecord === undefined || equals$4(existingRecord, incomingRecord) === false) {
|
|
521
|
-
luvio.storePublish(key, incomingRecord);
|
|
522
|
-
}
|
|
523
|
-
{
|
|
524
|
-
const storeMetadataParams = {
|
|
525
|
-
ttl: ttlToUse,
|
|
526
|
-
namespace: "ExperienceType",
|
|
527
|
-
version: VERSION$4,
|
|
528
|
-
representationName: RepresentationType$4,
|
|
529
|
-
};
|
|
530
|
-
luvio.publishStoreMetadata(key, storeMetadataParams);
|
|
531
|
-
}
|
|
505
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$4, "ExperienceType", VERSION$4, RepresentationType$4, equals$4);
|
|
532
506
|
return createLink(key);
|
|
533
507
|
};
|
|
534
508
|
function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -593,13 +567,15 @@ function createResourceRequest$4(config) {
|
|
|
593
567
|
};
|
|
594
568
|
}
|
|
595
569
|
|
|
596
|
-
const
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
570
|
+
const adapterName$4 = 'getBlockType';
|
|
571
|
+
const getBlockType_ConfigPropertyMetadata = [
|
|
572
|
+
generateParamConfigMetadata('fullyQualifiedName', true),
|
|
573
|
+
generateParamConfigMetadata('designConfigTarget', false),
|
|
574
|
+
generateParamConfigMetadata('includeSubSchemaDefinitions', false),
|
|
575
|
+
generateParamConfigMetadata('language', false),
|
|
576
|
+
generateParamConfigMetadata('renditionConfigTarget', false),
|
|
577
|
+
];
|
|
578
|
+
const getBlockType_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, getBlockType_ConfigPropertyMetadata);
|
|
603
579
|
function createResourceParams$4(config) {
|
|
604
580
|
const resourceParams = {
|
|
605
581
|
urlParams: {
|
|
@@ -672,21 +648,7 @@ function buildNetworkSnapshot$4(luvio, config, options) {
|
|
|
672
648
|
});
|
|
673
649
|
}
|
|
674
650
|
function buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext) {
|
|
675
|
-
|
|
676
|
-
const { networkPriority, requestCorrelator, eventObservers } = coercedAdapterRequestContext;
|
|
677
|
-
const dispatchOptions = {
|
|
678
|
-
resourceRequestContext: {
|
|
679
|
-
requestCorrelator,
|
|
680
|
-
luvioRequestMethod: undefined,
|
|
681
|
-
},
|
|
682
|
-
eventObservers
|
|
683
|
-
};
|
|
684
|
-
if (networkPriority !== 'normal') {
|
|
685
|
-
dispatchOptions.overrides = {
|
|
686
|
-
priority: networkPriority
|
|
687
|
-
};
|
|
688
|
-
}
|
|
689
|
-
return buildNetworkSnapshot$4(luvio, config, dispatchOptions);
|
|
651
|
+
return buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext, buildNetworkSnapshot$4, undefined, false);
|
|
690
652
|
}
|
|
691
653
|
function buildCachedSnapshotCachePolicy$4(context, storeLookup) {
|
|
692
654
|
const { luvio, config } = context;
|
|
@@ -835,26 +797,8 @@ const ingest$3 = function ExperienceModelContentTypeCollectionRepresentationInge
|
|
|
835
797
|
}
|
|
836
798
|
}
|
|
837
799
|
const key = path.fullPath;
|
|
838
|
-
const existingRecord = store.readEntry(key);
|
|
839
800
|
const ttlToUse = TTL$3;
|
|
840
|
-
|
|
841
|
-
fullPath: key,
|
|
842
|
-
parent: path.parent,
|
|
843
|
-
propertyName: path.propertyName,
|
|
844
|
-
ttl: ttlToUse
|
|
845
|
-
});
|
|
846
|
-
if (existingRecord === undefined || equals$3(existingRecord, incomingRecord) === false) {
|
|
847
|
-
luvio.storePublish(key, incomingRecord);
|
|
848
|
-
}
|
|
849
|
-
{
|
|
850
|
-
const storeMetadataParams = {
|
|
851
|
-
ttl: ttlToUse,
|
|
852
|
-
namespace: "ExperienceType",
|
|
853
|
-
version: VERSION$3,
|
|
854
|
-
representationName: RepresentationType$3,
|
|
855
|
-
};
|
|
856
|
-
luvio.publishStoreMetadata(key, storeMetadataParams);
|
|
857
|
-
}
|
|
801
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$3, "ExperienceType", VERSION$3, RepresentationType$3, equals$3);
|
|
858
802
|
return createLink(key);
|
|
859
803
|
};
|
|
860
804
|
function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -919,13 +863,19 @@ function createResourceRequest$3(config) {
|
|
|
919
863
|
};
|
|
920
864
|
}
|
|
921
865
|
|
|
922
|
-
const
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
866
|
+
const adapterName$3 = 'getContentTypes';
|
|
867
|
+
const getContentTypes_ConfigPropertyMetadata = [
|
|
868
|
+
generateParamConfigMetadata('contextRecordId', false),
|
|
869
|
+
generateParamConfigMetadata('designConfigTarget', false),
|
|
870
|
+
generateParamConfigMetadata('fullyQualifiedNames', false),
|
|
871
|
+
generateParamConfigMetadata('language', false),
|
|
872
|
+
generateParamConfigMetadata('mixinTypeFullyQualifiedNames', false),
|
|
873
|
+
generateParamConfigMetadata('page', false),
|
|
874
|
+
generateParamConfigMetadata('pageSize', false),
|
|
875
|
+
generateParamConfigMetadata('renditionConfigTarget', false),
|
|
876
|
+
generateParamConfigMetadata('typeClassFullyQualifiedNames', false),
|
|
877
|
+
];
|
|
878
|
+
const getContentTypes_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, getContentTypes_ConfigPropertyMetadata);
|
|
929
879
|
function createResourceParams$3(config) {
|
|
930
880
|
const resourceParams = {
|
|
931
881
|
queryParams: {
|
|
@@ -1001,21 +951,7 @@ function buildNetworkSnapshot$3(luvio, config, options) {
|
|
|
1001
951
|
});
|
|
1002
952
|
}
|
|
1003
953
|
function buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext) {
|
|
1004
|
-
|
|
1005
|
-
const { networkPriority, requestCorrelator, eventObservers } = coercedAdapterRequestContext;
|
|
1006
|
-
const dispatchOptions = {
|
|
1007
|
-
resourceRequestContext: {
|
|
1008
|
-
requestCorrelator,
|
|
1009
|
-
luvioRequestMethod: undefined,
|
|
1010
|
-
},
|
|
1011
|
-
eventObservers
|
|
1012
|
-
};
|
|
1013
|
-
if (networkPriority !== 'normal') {
|
|
1014
|
-
dispatchOptions.overrides = {
|
|
1015
|
-
priority: networkPriority
|
|
1016
|
-
};
|
|
1017
|
-
}
|
|
1018
|
-
return buildNetworkSnapshot$3(luvio, config, dispatchOptions);
|
|
954
|
+
return buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext, buildNetworkSnapshot$3, undefined, false);
|
|
1019
955
|
}
|
|
1020
956
|
function buildCachedSnapshotCachePolicy$3(context, storeLookup) {
|
|
1021
957
|
const { luvio, config } = context;
|
|
@@ -1137,26 +1073,8 @@ const ingest$2 = function ExperienceModelContentTypeDetailRepresentationIngest(i
|
|
|
1137
1073
|
}
|
|
1138
1074
|
}
|
|
1139
1075
|
const key = path.fullPath;
|
|
1140
|
-
const existingRecord = store.readEntry(key);
|
|
1141
1076
|
const ttlToUse = TTL$2;
|
|
1142
|
-
|
|
1143
|
-
fullPath: key,
|
|
1144
|
-
parent: path.parent,
|
|
1145
|
-
propertyName: path.propertyName,
|
|
1146
|
-
ttl: ttlToUse
|
|
1147
|
-
});
|
|
1148
|
-
if (existingRecord === undefined || equals$2(existingRecord, incomingRecord) === false) {
|
|
1149
|
-
luvio.storePublish(key, incomingRecord);
|
|
1150
|
-
}
|
|
1151
|
-
{
|
|
1152
|
-
const storeMetadataParams = {
|
|
1153
|
-
ttl: ttlToUse,
|
|
1154
|
-
namespace: "ExperienceType",
|
|
1155
|
-
version: VERSION$2,
|
|
1156
|
-
representationName: RepresentationType$2,
|
|
1157
|
-
};
|
|
1158
|
-
luvio.publishStoreMetadata(key, storeMetadataParams);
|
|
1159
|
-
}
|
|
1077
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$2, "ExperienceType", VERSION$2, RepresentationType$2, equals$2);
|
|
1160
1078
|
return createLink(key);
|
|
1161
1079
|
};
|
|
1162
1080
|
function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -1221,13 +1139,15 @@ function createResourceRequest$2(config) {
|
|
|
1221
1139
|
};
|
|
1222
1140
|
}
|
|
1223
1141
|
|
|
1224
|
-
const
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1142
|
+
const adapterName$2 = 'getContentType';
|
|
1143
|
+
const getContentType_ConfigPropertyMetadata = [
|
|
1144
|
+
generateParamConfigMetadata('fullyQualifiedName', true),
|
|
1145
|
+
generateParamConfigMetadata('designConfigTarget', false),
|
|
1146
|
+
generateParamConfigMetadata('includeSubSchemaDefinitions', false),
|
|
1147
|
+
generateParamConfigMetadata('language', false),
|
|
1148
|
+
generateParamConfigMetadata('renditionConfigTarget', false),
|
|
1149
|
+
];
|
|
1150
|
+
const getContentType_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, getContentType_ConfigPropertyMetadata);
|
|
1231
1151
|
function createResourceParams$2(config) {
|
|
1232
1152
|
const resourceParams = {
|
|
1233
1153
|
urlParams: {
|
|
@@ -1300,21 +1220,7 @@ function buildNetworkSnapshot$2(luvio, config, options) {
|
|
|
1300
1220
|
});
|
|
1301
1221
|
}
|
|
1302
1222
|
function buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext) {
|
|
1303
|
-
|
|
1304
|
-
const { networkPriority, requestCorrelator, eventObservers } = coercedAdapterRequestContext;
|
|
1305
|
-
const dispatchOptions = {
|
|
1306
|
-
resourceRequestContext: {
|
|
1307
|
-
requestCorrelator,
|
|
1308
|
-
luvioRequestMethod: undefined,
|
|
1309
|
-
},
|
|
1310
|
-
eventObservers
|
|
1311
|
-
};
|
|
1312
|
-
if (networkPriority !== 'normal') {
|
|
1313
|
-
dispatchOptions.overrides = {
|
|
1314
|
-
priority: networkPriority
|
|
1315
|
-
};
|
|
1316
|
-
}
|
|
1317
|
-
return buildNetworkSnapshot$2(luvio, config, dispatchOptions);
|
|
1223
|
+
return buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext, buildNetworkSnapshot$2, undefined, false);
|
|
1318
1224
|
}
|
|
1319
1225
|
function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
|
|
1320
1226
|
const { luvio, config } = context;
|
|
@@ -1461,26 +1367,8 @@ const ingest$1 = function ExperienceModelPropertyTypeCollectionRepresentationIng
|
|
|
1461
1367
|
}
|
|
1462
1368
|
}
|
|
1463
1369
|
const key = path.fullPath;
|
|
1464
|
-
const existingRecord = store.readEntry(key);
|
|
1465
1370
|
const ttlToUse = TTL$1;
|
|
1466
|
-
|
|
1467
|
-
fullPath: key,
|
|
1468
|
-
parent: path.parent,
|
|
1469
|
-
propertyName: path.propertyName,
|
|
1470
|
-
ttl: ttlToUse
|
|
1471
|
-
});
|
|
1472
|
-
if (existingRecord === undefined || equals$1(existingRecord, incomingRecord) === false) {
|
|
1473
|
-
luvio.storePublish(key, incomingRecord);
|
|
1474
|
-
}
|
|
1475
|
-
{
|
|
1476
|
-
const storeMetadataParams = {
|
|
1477
|
-
ttl: ttlToUse,
|
|
1478
|
-
namespace: "ExperienceType",
|
|
1479
|
-
version: VERSION$1,
|
|
1480
|
-
representationName: RepresentationType$1,
|
|
1481
|
-
};
|
|
1482
|
-
luvio.publishStoreMetadata(key, storeMetadataParams);
|
|
1483
|
-
}
|
|
1371
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$1, "ExperienceType", VERSION$1, RepresentationType$1, equals$1);
|
|
1484
1372
|
return createLink(key);
|
|
1485
1373
|
};
|
|
1486
1374
|
function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -1545,13 +1433,16 @@ function createResourceRequest$1(config) {
|
|
|
1545
1433
|
};
|
|
1546
1434
|
}
|
|
1547
1435
|
|
|
1548
|
-
const
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
1436
|
+
const adapterName$1 = 'getPropertyTypes';
|
|
1437
|
+
const getPropertyTypes_ConfigPropertyMetadata = [
|
|
1438
|
+
generateParamConfigMetadata('designConfigTarget', false),
|
|
1439
|
+
generateParamConfigMetadata('fullyQualifiedNames', false),
|
|
1440
|
+
generateParamConfigMetadata('language', false),
|
|
1441
|
+
generateParamConfigMetadata('page', false),
|
|
1442
|
+
generateParamConfigMetadata('pageSize', false),
|
|
1443
|
+
generateParamConfigMetadata('renditionConfigTarget', false),
|
|
1444
|
+
];
|
|
1445
|
+
const getPropertyTypes_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, getPropertyTypes_ConfigPropertyMetadata);
|
|
1555
1446
|
function createResourceParams$1(config) {
|
|
1556
1447
|
const resourceParams = {
|
|
1557
1448
|
queryParams: {
|
|
@@ -1624,21 +1515,7 @@ function buildNetworkSnapshot$1(luvio, config, options) {
|
|
|
1624
1515
|
});
|
|
1625
1516
|
}
|
|
1626
1517
|
function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
|
|
1627
|
-
|
|
1628
|
-
const { networkPriority, requestCorrelator, eventObservers } = coercedAdapterRequestContext;
|
|
1629
|
-
const dispatchOptions = {
|
|
1630
|
-
resourceRequestContext: {
|
|
1631
|
-
requestCorrelator,
|
|
1632
|
-
luvioRequestMethod: undefined,
|
|
1633
|
-
},
|
|
1634
|
-
eventObservers
|
|
1635
|
-
};
|
|
1636
|
-
if (networkPriority !== 'normal') {
|
|
1637
|
-
dispatchOptions.overrides = {
|
|
1638
|
-
priority: networkPriority
|
|
1639
|
-
};
|
|
1640
|
-
}
|
|
1641
|
-
return buildNetworkSnapshot$1(luvio, config, dispatchOptions);
|
|
1518
|
+
return buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext, buildNetworkSnapshot$1, undefined, false);
|
|
1642
1519
|
}
|
|
1643
1520
|
function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
|
|
1644
1521
|
const { luvio, config } = context;
|
|
@@ -1758,26 +1635,8 @@ const ingest = function ExperienceModelPropertyTypeDetailRepresentationIngest(in
|
|
|
1758
1635
|
}
|
|
1759
1636
|
}
|
|
1760
1637
|
const key = path.fullPath;
|
|
1761
|
-
const existingRecord = store.readEntry(key);
|
|
1762
1638
|
const ttlToUse = TTL;
|
|
1763
|
-
|
|
1764
|
-
fullPath: key,
|
|
1765
|
-
parent: path.parent,
|
|
1766
|
-
propertyName: path.propertyName,
|
|
1767
|
-
ttl: ttlToUse
|
|
1768
|
-
});
|
|
1769
|
-
if (existingRecord === undefined || equals(existingRecord, incomingRecord) === false) {
|
|
1770
|
-
luvio.storePublish(key, incomingRecord);
|
|
1771
|
-
}
|
|
1772
|
-
{
|
|
1773
|
-
const storeMetadataParams = {
|
|
1774
|
-
ttl: ttlToUse,
|
|
1775
|
-
namespace: "ExperienceType",
|
|
1776
|
-
version: VERSION,
|
|
1777
|
-
representationName: RepresentationType,
|
|
1778
|
-
};
|
|
1779
|
-
luvio.publishStoreMetadata(key, storeMetadataParams);
|
|
1780
|
-
}
|
|
1639
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize, "ExperienceType", VERSION, RepresentationType, equals);
|
|
1781
1640
|
return createLink(key);
|
|
1782
1641
|
};
|
|
1783
1642
|
function getTypeCacheKeys(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -1842,13 +1701,15 @@ function createResourceRequest(config) {
|
|
|
1842
1701
|
};
|
|
1843
1702
|
}
|
|
1844
1703
|
|
|
1845
|
-
const
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
|
|
1704
|
+
const adapterName = 'getPropertyType';
|
|
1705
|
+
const getPropertyType_ConfigPropertyMetadata = [
|
|
1706
|
+
generateParamConfigMetadata('fullyQualifiedName', true),
|
|
1707
|
+
generateParamConfigMetadata('designConfigTarget', false),
|
|
1708
|
+
generateParamConfigMetadata('includeSubSchemaDefinitions', false),
|
|
1709
|
+
generateParamConfigMetadata('language', false),
|
|
1710
|
+
generateParamConfigMetadata('renditionConfigTarget', false),
|
|
1711
|
+
];
|
|
1712
|
+
const getPropertyType_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, getPropertyType_ConfigPropertyMetadata);
|
|
1852
1713
|
function createResourceParams(config) {
|
|
1853
1714
|
const resourceParams = {
|
|
1854
1715
|
urlParams: {
|
|
@@ -1921,21 +1782,7 @@ function buildNetworkSnapshot(luvio, config, options) {
|
|
|
1921
1782
|
});
|
|
1922
1783
|
}
|
|
1923
1784
|
function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
|
|
1924
|
-
|
|
1925
|
-
const { networkPriority, requestCorrelator, eventObservers } = coercedAdapterRequestContext;
|
|
1926
|
-
const dispatchOptions = {
|
|
1927
|
-
resourceRequestContext: {
|
|
1928
|
-
requestCorrelator,
|
|
1929
|
-
luvioRequestMethod: undefined,
|
|
1930
|
-
},
|
|
1931
|
-
eventObservers
|
|
1932
|
-
};
|
|
1933
|
-
if (networkPriority !== 'normal') {
|
|
1934
|
-
dispatchOptions.overrides = {
|
|
1935
|
-
priority: networkPriority
|
|
1936
|
-
};
|
|
1937
|
-
}
|
|
1938
|
-
return buildNetworkSnapshot(luvio, config, dispatchOptions);
|
|
1785
|
+
return buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext, buildNetworkSnapshot, undefined, false);
|
|
1939
1786
|
}
|
|
1940
1787
|
function buildCachedSnapshotCachePolicy(context, storeLookup) {
|
|
1941
1788
|
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 = "ExperienceType";
|
|
@@ -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_getConnectExperienceModelBlockTypesByFullyQualifiedName_ResourceRequestConfig } from '../resources/getConnectExperienceModelBlockTypesByFullyQualifiedName';
|
|
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 { ExperienceModelBlockTypeDetailRepresentation as types_ExperienceModelBlockTypeDetailRepresentation_ExperienceModelBlockTypeDetailRepresentation } from '../types/ExperienceModelBlockTypeDetailRepresentation';
|
|
5
5
|
export declare const adapterName = "getBlockType";
|
|
6
|
+
export declare const getBlockType_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
|
|
6
7
|
export declare const getBlockType_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
|
|
7
8
|
export interface GetBlockTypeConfig {
|
|
8
9
|
fullyQualifiedName: 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_getConnectExperienceModelBlockTypes_ResourceRequestConfig } from '../resources/getConnectExperienceModelBlockTypes';
|
|
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 { ExperienceModelBlockTypeCollectionRepresentation as types_ExperienceModelBlockTypeCollectionRepresentation_ExperienceModelBlockTypeCollectionRepresentation } from '../types/ExperienceModelBlockTypeCollectionRepresentation';
|
|
5
5
|
export declare const adapterName = "getBlockTypes";
|
|
6
|
+
export declare const getBlockTypes_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
|
|
6
7
|
export declare const getBlockTypes_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
|
|
7
8
|
export interface GetBlockTypesConfig {
|
|
8
9
|
contentTypeFullyQualifiedName?: 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_getConnectExperienceModelContentTypesByFullyQualifiedName_ResourceRequestConfig } from '../resources/getConnectExperienceModelContentTypesByFullyQualifiedName';
|
|
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 { ExperienceModelContentTypeDetailRepresentation as types_ExperienceModelContentTypeDetailRepresentation_ExperienceModelContentTypeDetailRepresentation } from '../types/ExperienceModelContentTypeDetailRepresentation';
|
|
5
5
|
export declare const adapterName = "getContentType";
|
|
6
|
+
export declare const getContentType_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
|
|
6
7
|
export declare const getContentType_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
|
|
7
8
|
export interface GetContentTypeConfig {
|
|
8
9
|
fullyQualifiedName: 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_getConnectExperienceModelContentTypes_ResourceRequestConfig } from '../resources/getConnectExperienceModelContentTypes';
|
|
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 { ExperienceModelContentTypeCollectionRepresentation as types_ExperienceModelContentTypeCollectionRepresentation_ExperienceModelContentTypeCollectionRepresentation } from '../types/ExperienceModelContentTypeCollectionRepresentation';
|
|
5
5
|
export declare const adapterName = "getContentTypes";
|
|
6
|
+
export declare const getContentTypes_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
|
|
6
7
|
export declare const getContentTypes_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
|
|
7
8
|
export interface GetContentTypesConfig {
|
|
8
9
|
contextRecordId?: 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_getConnectExperienceModelPropertyTypesByFullyQualifiedName_ResourceRequestConfig } from '../resources/getConnectExperienceModelPropertyTypesByFullyQualifiedName';
|
|
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 { ExperienceModelPropertyTypeDetailRepresentation as types_ExperienceModelPropertyTypeDetailRepresentation_ExperienceModelPropertyTypeDetailRepresentation } from '../types/ExperienceModelPropertyTypeDetailRepresentation';
|
|
5
5
|
export declare const adapterName = "getPropertyType";
|
|
6
|
+
export declare const getPropertyType_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
|
|
6
7
|
export declare const getPropertyType_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
|
|
7
8
|
export interface GetPropertyTypeConfig {
|
|
8
9
|
fullyQualifiedName: 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_getConnectExperienceModelPropertyTypes_ResourceRequestConfig } from '../resources/getConnectExperienceModelPropertyTypes';
|
|
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 { ExperienceModelPropertyTypeCollectionRepresentation as types_ExperienceModelPropertyTypeCollectionRepresentation_ExperienceModelPropertyTypeCollectionRepresentation } from '../types/ExperienceModelPropertyTypeCollectionRepresentation';
|
|
5
5
|
export declare const adapterName = "getPropertyTypes";
|
|
6
|
+
export declare const getPropertyTypes_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
|
|
6
7
|
export declare const getPropertyTypes_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
|
|
7
8
|
export interface GetPropertyTypesConfig {
|
|
8
9
|
designConfigTarget?: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-adapters-experience-model",
|
|
3
|
-
"version": "1.213.
|
|
3
|
+
"version": "1.213.1",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
5
5
|
"description": "APIs to read and query all the 'types' in the Unified Experience Model",
|
|
6
6
|
"main": "dist/es/es2018/experience-model.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, typeCheckScalars, StoreKeyMap, typeCheckArrayOfScalars } from 'force/luvioEngine';
|
|
17
|
+
import { serializeStructuredKey, ingestShape, deepFreeze, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$6, typeCheckScalars, StoreKeyMap, typeCheckArrayOfScalars } 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 = 'ExperienceType';
|
|
62
80
|
|
|
63
81
|
const { keys: ObjectKeys, create: ObjectCreate, assign: ObjectAssign } = Object;
|
|
@@ -182,26 +200,8 @@ const ingest$5 = function ExperienceModelBlockTypeDetailRepresentationIngest(inp
|
|
|
182
200
|
}
|
|
183
201
|
}
|
|
184
202
|
const key = path.fullPath;
|
|
185
|
-
const existingRecord = store.readEntry(key);
|
|
186
203
|
const ttlToUse = TTL$5;
|
|
187
|
-
|
|
188
|
-
fullPath: key,
|
|
189
|
-
parent: path.parent,
|
|
190
|
-
propertyName: path.propertyName,
|
|
191
|
-
ttl: ttlToUse
|
|
192
|
-
});
|
|
193
|
-
if (existingRecord === undefined || equals$5(existingRecord, incomingRecord) === false) {
|
|
194
|
-
luvio.storePublish(key, incomingRecord);
|
|
195
|
-
}
|
|
196
|
-
{
|
|
197
|
-
const storeMetadataParams = {
|
|
198
|
-
ttl: ttlToUse,
|
|
199
|
-
namespace: "ExperienceType",
|
|
200
|
-
version: VERSION$5,
|
|
201
|
-
representationName: RepresentationType$5,
|
|
202
|
-
};
|
|
203
|
-
luvio.publishStoreMetadata(key, storeMetadataParams);
|
|
204
|
-
}
|
|
204
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$5, "ExperienceType", VERSION$5, RepresentationType$5, equals$5);
|
|
205
205
|
return createLink(key);
|
|
206
206
|
};
|
|
207
207
|
function getTypeCacheKeys$5(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -266,13 +266,15 @@ function createResourceRequest$5(config) {
|
|
|
266
266
|
};
|
|
267
267
|
}
|
|
268
268
|
|
|
269
|
-
const
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
269
|
+
const adapterName$5 = 'getBlockType';
|
|
270
|
+
const getBlockType_ConfigPropertyMetadata = [
|
|
271
|
+
generateParamConfigMetadata('fullyQualifiedName', true),
|
|
272
|
+
generateParamConfigMetadata('designConfigTarget', false),
|
|
273
|
+
generateParamConfigMetadata('includeSubSchemaDefinitions', false),
|
|
274
|
+
generateParamConfigMetadata('language', false),
|
|
275
|
+
generateParamConfigMetadata('renditionConfigTarget', false),
|
|
276
|
+
];
|
|
277
|
+
const getBlockType_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, getBlockType_ConfigPropertyMetadata);
|
|
276
278
|
function createResourceParams$5(config) {
|
|
277
279
|
const resourceParams = {
|
|
278
280
|
urlParams: {
|
|
@@ -345,21 +347,7 @@ function buildNetworkSnapshot$5(luvio, config, options) {
|
|
|
345
347
|
});
|
|
346
348
|
}
|
|
347
349
|
function buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext) {
|
|
348
|
-
|
|
349
|
-
const { networkPriority, requestCorrelator, eventObservers } = coercedAdapterRequestContext;
|
|
350
|
-
const dispatchOptions = {
|
|
351
|
-
resourceRequestContext: {
|
|
352
|
-
requestCorrelator,
|
|
353
|
-
luvioRequestMethod: undefined,
|
|
354
|
-
},
|
|
355
|
-
eventObservers
|
|
356
|
-
};
|
|
357
|
-
if (networkPriority !== 'normal') {
|
|
358
|
-
dispatchOptions.overrides = {
|
|
359
|
-
priority: networkPriority
|
|
360
|
-
};
|
|
361
|
-
}
|
|
362
|
-
return buildNetworkSnapshot$5(luvio, config, dispatchOptions);
|
|
350
|
+
return buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext, buildNetworkSnapshot$5, undefined, false);
|
|
363
351
|
}
|
|
364
352
|
function buildCachedSnapshotCachePolicy$5(context, storeLookup) {
|
|
365
353
|
const { luvio, config } = context;
|
|
@@ -516,26 +504,8 @@ const ingest$4 = function ExperienceModelBlockTypeCollectionRepresentationIngest
|
|
|
516
504
|
}
|
|
517
505
|
}
|
|
518
506
|
const key = path.fullPath;
|
|
519
|
-
const existingRecord = store.readEntry(key);
|
|
520
507
|
const ttlToUse = TTL$4;
|
|
521
|
-
|
|
522
|
-
fullPath: key,
|
|
523
|
-
parent: path.parent,
|
|
524
|
-
propertyName: path.propertyName,
|
|
525
|
-
ttl: ttlToUse
|
|
526
|
-
});
|
|
527
|
-
if (existingRecord === undefined || equals$4(existingRecord, incomingRecord) === false) {
|
|
528
|
-
luvio.storePublish(key, incomingRecord);
|
|
529
|
-
}
|
|
530
|
-
{
|
|
531
|
-
const storeMetadataParams = {
|
|
532
|
-
ttl: ttlToUse,
|
|
533
|
-
namespace: "ExperienceType",
|
|
534
|
-
version: VERSION$4,
|
|
535
|
-
representationName: RepresentationType$4,
|
|
536
|
-
};
|
|
537
|
-
luvio.publishStoreMetadata(key, storeMetadataParams);
|
|
538
|
-
}
|
|
508
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$4, "ExperienceType", VERSION$4, RepresentationType$4, equals$4);
|
|
539
509
|
return createLink(key);
|
|
540
510
|
};
|
|
541
511
|
function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -600,13 +570,19 @@ function createResourceRequest$4(config) {
|
|
|
600
570
|
};
|
|
601
571
|
}
|
|
602
572
|
|
|
603
|
-
const
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
573
|
+
const adapterName$4 = 'getBlockTypes';
|
|
574
|
+
const getBlockTypes_ConfigPropertyMetadata = [
|
|
575
|
+
generateParamConfigMetadata('contentTypeFullyQualifiedName', false),
|
|
576
|
+
generateParamConfigMetadata('designConfigTarget', false),
|
|
577
|
+
generateParamConfigMetadata('fullyQualifiedNames', false),
|
|
578
|
+
generateParamConfigMetadata('language', false),
|
|
579
|
+
generateParamConfigMetadata('mixinTypeFullyQualifiedNames', false),
|
|
580
|
+
generateParamConfigMetadata('page', false),
|
|
581
|
+
generateParamConfigMetadata('pageSize', false),
|
|
582
|
+
generateParamConfigMetadata('renditionConfigTarget', false),
|
|
583
|
+
generateParamConfigMetadata('typeClassFullyQualifiedNames', false),
|
|
584
|
+
];
|
|
585
|
+
const getBlockTypes_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, getBlockTypes_ConfigPropertyMetadata);
|
|
610
586
|
function createResourceParams$4(config) {
|
|
611
587
|
const resourceParams = {
|
|
612
588
|
queryParams: {
|
|
@@ -682,21 +658,7 @@ function buildNetworkSnapshot$4(luvio, config, options) {
|
|
|
682
658
|
});
|
|
683
659
|
}
|
|
684
660
|
function buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext) {
|
|
685
|
-
|
|
686
|
-
const { networkPriority, requestCorrelator, eventObservers } = coercedAdapterRequestContext;
|
|
687
|
-
const dispatchOptions = {
|
|
688
|
-
resourceRequestContext: {
|
|
689
|
-
requestCorrelator,
|
|
690
|
-
luvioRequestMethod: undefined,
|
|
691
|
-
},
|
|
692
|
-
eventObservers
|
|
693
|
-
};
|
|
694
|
-
if (networkPriority !== 'normal') {
|
|
695
|
-
dispatchOptions.overrides = {
|
|
696
|
-
priority: networkPriority
|
|
697
|
-
};
|
|
698
|
-
}
|
|
699
|
-
return buildNetworkSnapshot$4(luvio, config, dispatchOptions);
|
|
661
|
+
return buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext, buildNetworkSnapshot$4, undefined, false);
|
|
700
662
|
}
|
|
701
663
|
function buildCachedSnapshotCachePolicy$4(context, storeLookup) {
|
|
702
664
|
const { luvio, config } = context;
|
|
@@ -818,26 +780,8 @@ const ingest$3 = function ExperienceModelContentTypeDetailRepresentationIngest(i
|
|
|
818
780
|
}
|
|
819
781
|
}
|
|
820
782
|
const key = path.fullPath;
|
|
821
|
-
const existingRecord = store.readEntry(key);
|
|
822
783
|
const ttlToUse = TTL$3;
|
|
823
|
-
|
|
824
|
-
fullPath: key,
|
|
825
|
-
parent: path.parent,
|
|
826
|
-
propertyName: path.propertyName,
|
|
827
|
-
ttl: ttlToUse
|
|
828
|
-
});
|
|
829
|
-
if (existingRecord === undefined || equals$3(existingRecord, incomingRecord) === false) {
|
|
830
|
-
luvio.storePublish(key, incomingRecord);
|
|
831
|
-
}
|
|
832
|
-
{
|
|
833
|
-
const storeMetadataParams = {
|
|
834
|
-
ttl: ttlToUse,
|
|
835
|
-
namespace: "ExperienceType",
|
|
836
|
-
version: VERSION$3,
|
|
837
|
-
representationName: RepresentationType$3,
|
|
838
|
-
};
|
|
839
|
-
luvio.publishStoreMetadata(key, storeMetadataParams);
|
|
840
|
-
}
|
|
784
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$3, "ExperienceType", VERSION$3, RepresentationType$3, equals$3);
|
|
841
785
|
return createLink(key);
|
|
842
786
|
};
|
|
843
787
|
function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -902,13 +846,15 @@ function createResourceRequest$3(config) {
|
|
|
902
846
|
};
|
|
903
847
|
}
|
|
904
848
|
|
|
905
|
-
const
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
849
|
+
const adapterName$3 = 'getContentType';
|
|
850
|
+
const getContentType_ConfigPropertyMetadata = [
|
|
851
|
+
generateParamConfigMetadata('fullyQualifiedName', true),
|
|
852
|
+
generateParamConfigMetadata('designConfigTarget', false),
|
|
853
|
+
generateParamConfigMetadata('includeSubSchemaDefinitions', false),
|
|
854
|
+
generateParamConfigMetadata('language', false),
|
|
855
|
+
generateParamConfigMetadata('renditionConfigTarget', false),
|
|
856
|
+
];
|
|
857
|
+
const getContentType_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, getContentType_ConfigPropertyMetadata);
|
|
912
858
|
function createResourceParams$3(config) {
|
|
913
859
|
const resourceParams = {
|
|
914
860
|
urlParams: {
|
|
@@ -981,21 +927,7 @@ function buildNetworkSnapshot$3(luvio, config, options) {
|
|
|
981
927
|
});
|
|
982
928
|
}
|
|
983
929
|
function buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext) {
|
|
984
|
-
|
|
985
|
-
const { networkPriority, requestCorrelator, eventObservers } = coercedAdapterRequestContext;
|
|
986
|
-
const dispatchOptions = {
|
|
987
|
-
resourceRequestContext: {
|
|
988
|
-
requestCorrelator,
|
|
989
|
-
luvioRequestMethod: undefined,
|
|
990
|
-
},
|
|
991
|
-
eventObservers
|
|
992
|
-
};
|
|
993
|
-
if (networkPriority !== 'normal') {
|
|
994
|
-
dispatchOptions.overrides = {
|
|
995
|
-
priority: networkPriority
|
|
996
|
-
};
|
|
997
|
-
}
|
|
998
|
-
return buildNetworkSnapshot$3(luvio, config, dispatchOptions);
|
|
930
|
+
return buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext, buildNetworkSnapshot$3, undefined, false);
|
|
999
931
|
}
|
|
1000
932
|
function buildCachedSnapshotCachePolicy$3(context, storeLookup) {
|
|
1001
933
|
const { luvio, config } = context;
|
|
@@ -1144,26 +1076,8 @@ const ingest$2 = function ExperienceModelContentTypeCollectionRepresentationInge
|
|
|
1144
1076
|
}
|
|
1145
1077
|
}
|
|
1146
1078
|
const key = path.fullPath;
|
|
1147
|
-
const existingRecord = store.readEntry(key);
|
|
1148
1079
|
const ttlToUse = TTL$2;
|
|
1149
|
-
|
|
1150
|
-
fullPath: key,
|
|
1151
|
-
parent: path.parent,
|
|
1152
|
-
propertyName: path.propertyName,
|
|
1153
|
-
ttl: ttlToUse
|
|
1154
|
-
});
|
|
1155
|
-
if (existingRecord === undefined || equals$2(existingRecord, incomingRecord) === false) {
|
|
1156
|
-
luvio.storePublish(key, incomingRecord);
|
|
1157
|
-
}
|
|
1158
|
-
{
|
|
1159
|
-
const storeMetadataParams = {
|
|
1160
|
-
ttl: ttlToUse,
|
|
1161
|
-
namespace: "ExperienceType",
|
|
1162
|
-
version: VERSION$2,
|
|
1163
|
-
representationName: RepresentationType$2,
|
|
1164
|
-
};
|
|
1165
|
-
luvio.publishStoreMetadata(key, storeMetadataParams);
|
|
1166
|
-
}
|
|
1080
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$2, "ExperienceType", VERSION$2, RepresentationType$2, equals$2);
|
|
1167
1081
|
return createLink(key);
|
|
1168
1082
|
};
|
|
1169
1083
|
function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -1228,13 +1142,19 @@ function createResourceRequest$2(config) {
|
|
|
1228
1142
|
};
|
|
1229
1143
|
}
|
|
1230
1144
|
|
|
1231
|
-
const
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1145
|
+
const adapterName$2 = 'getContentTypes';
|
|
1146
|
+
const getContentTypes_ConfigPropertyMetadata = [
|
|
1147
|
+
generateParamConfigMetadata('contextRecordId', false),
|
|
1148
|
+
generateParamConfigMetadata('designConfigTarget', false),
|
|
1149
|
+
generateParamConfigMetadata('fullyQualifiedNames', false),
|
|
1150
|
+
generateParamConfigMetadata('language', false),
|
|
1151
|
+
generateParamConfigMetadata('mixinTypeFullyQualifiedNames', false),
|
|
1152
|
+
generateParamConfigMetadata('page', false),
|
|
1153
|
+
generateParamConfigMetadata('pageSize', false),
|
|
1154
|
+
generateParamConfigMetadata('renditionConfigTarget', false),
|
|
1155
|
+
generateParamConfigMetadata('typeClassFullyQualifiedNames', false),
|
|
1156
|
+
];
|
|
1157
|
+
const getContentTypes_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, getContentTypes_ConfigPropertyMetadata);
|
|
1238
1158
|
function createResourceParams$2(config) {
|
|
1239
1159
|
const resourceParams = {
|
|
1240
1160
|
queryParams: {
|
|
@@ -1310,21 +1230,7 @@ function buildNetworkSnapshot$2(luvio, config, options) {
|
|
|
1310
1230
|
});
|
|
1311
1231
|
}
|
|
1312
1232
|
function buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext) {
|
|
1313
|
-
|
|
1314
|
-
const { networkPriority, requestCorrelator, eventObservers } = coercedAdapterRequestContext;
|
|
1315
|
-
const dispatchOptions = {
|
|
1316
|
-
resourceRequestContext: {
|
|
1317
|
-
requestCorrelator,
|
|
1318
|
-
luvioRequestMethod: undefined,
|
|
1319
|
-
},
|
|
1320
|
-
eventObservers
|
|
1321
|
-
};
|
|
1322
|
-
if (networkPriority !== 'normal') {
|
|
1323
|
-
dispatchOptions.overrides = {
|
|
1324
|
-
priority: networkPriority
|
|
1325
|
-
};
|
|
1326
|
-
}
|
|
1327
|
-
return buildNetworkSnapshot$2(luvio, config, dispatchOptions);
|
|
1233
|
+
return buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext, buildNetworkSnapshot$2, undefined, false);
|
|
1328
1234
|
}
|
|
1329
1235
|
function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
|
|
1330
1236
|
const { luvio, config } = context;
|
|
@@ -1444,26 +1350,8 @@ const ingest$1 = function ExperienceModelPropertyTypeDetailRepresentationIngest(
|
|
|
1444
1350
|
}
|
|
1445
1351
|
}
|
|
1446
1352
|
const key = path.fullPath;
|
|
1447
|
-
const existingRecord = store.readEntry(key);
|
|
1448
1353
|
const ttlToUse = TTL$1;
|
|
1449
|
-
|
|
1450
|
-
fullPath: key,
|
|
1451
|
-
parent: path.parent,
|
|
1452
|
-
propertyName: path.propertyName,
|
|
1453
|
-
ttl: ttlToUse
|
|
1454
|
-
});
|
|
1455
|
-
if (existingRecord === undefined || equals$1(existingRecord, incomingRecord) === false) {
|
|
1456
|
-
luvio.storePublish(key, incomingRecord);
|
|
1457
|
-
}
|
|
1458
|
-
{
|
|
1459
|
-
const storeMetadataParams = {
|
|
1460
|
-
ttl: ttlToUse,
|
|
1461
|
-
namespace: "ExperienceType",
|
|
1462
|
-
version: VERSION$1,
|
|
1463
|
-
representationName: RepresentationType$1,
|
|
1464
|
-
};
|
|
1465
|
-
luvio.publishStoreMetadata(key, storeMetadataParams);
|
|
1466
|
-
}
|
|
1354
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$1, "ExperienceType", VERSION$1, RepresentationType$1, equals$1);
|
|
1467
1355
|
return createLink(key);
|
|
1468
1356
|
};
|
|
1469
1357
|
function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -1528,13 +1416,15 @@ function createResourceRequest$1(config) {
|
|
|
1528
1416
|
};
|
|
1529
1417
|
}
|
|
1530
1418
|
|
|
1531
|
-
const
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1419
|
+
const adapterName$1 = 'getPropertyType';
|
|
1420
|
+
const getPropertyType_ConfigPropertyMetadata = [
|
|
1421
|
+
generateParamConfigMetadata('fullyQualifiedName', true),
|
|
1422
|
+
generateParamConfigMetadata('designConfigTarget', false),
|
|
1423
|
+
generateParamConfigMetadata('includeSubSchemaDefinitions', false),
|
|
1424
|
+
generateParamConfigMetadata('language', false),
|
|
1425
|
+
generateParamConfigMetadata('renditionConfigTarget', false),
|
|
1426
|
+
];
|
|
1427
|
+
const getPropertyType_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, getPropertyType_ConfigPropertyMetadata);
|
|
1538
1428
|
function createResourceParams$1(config) {
|
|
1539
1429
|
const resourceParams = {
|
|
1540
1430
|
urlParams: {
|
|
@@ -1607,21 +1497,7 @@ function buildNetworkSnapshot$1(luvio, config, options) {
|
|
|
1607
1497
|
});
|
|
1608
1498
|
}
|
|
1609
1499
|
function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
|
|
1610
|
-
|
|
1611
|
-
const { networkPriority, requestCorrelator, eventObservers } = coercedAdapterRequestContext;
|
|
1612
|
-
const dispatchOptions = {
|
|
1613
|
-
resourceRequestContext: {
|
|
1614
|
-
requestCorrelator,
|
|
1615
|
-
luvioRequestMethod: undefined,
|
|
1616
|
-
},
|
|
1617
|
-
eventObservers
|
|
1618
|
-
};
|
|
1619
|
-
if (networkPriority !== 'normal') {
|
|
1620
|
-
dispatchOptions.overrides = {
|
|
1621
|
-
priority: networkPriority
|
|
1622
|
-
};
|
|
1623
|
-
}
|
|
1624
|
-
return buildNetworkSnapshot$1(luvio, config, dispatchOptions);
|
|
1500
|
+
return buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext, buildNetworkSnapshot$1, undefined, false);
|
|
1625
1501
|
}
|
|
1626
1502
|
function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
|
|
1627
1503
|
const { luvio, config } = context;
|
|
@@ -1768,26 +1644,8 @@ const ingest = function ExperienceModelPropertyTypeCollectionRepresentationInges
|
|
|
1768
1644
|
}
|
|
1769
1645
|
}
|
|
1770
1646
|
const key = path.fullPath;
|
|
1771
|
-
const existingRecord = store.readEntry(key);
|
|
1772
1647
|
const ttlToUse = TTL;
|
|
1773
|
-
|
|
1774
|
-
fullPath: key,
|
|
1775
|
-
parent: path.parent,
|
|
1776
|
-
propertyName: path.propertyName,
|
|
1777
|
-
ttl: ttlToUse
|
|
1778
|
-
});
|
|
1779
|
-
if (existingRecord === undefined || equals(existingRecord, incomingRecord) === false) {
|
|
1780
|
-
luvio.storePublish(key, incomingRecord);
|
|
1781
|
-
}
|
|
1782
|
-
{
|
|
1783
|
-
const storeMetadataParams = {
|
|
1784
|
-
ttl: ttlToUse,
|
|
1785
|
-
namespace: "ExperienceType",
|
|
1786
|
-
version: VERSION,
|
|
1787
|
-
representationName: RepresentationType,
|
|
1788
|
-
};
|
|
1789
|
-
luvio.publishStoreMetadata(key, storeMetadataParams);
|
|
1790
|
-
}
|
|
1648
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize, "ExperienceType", VERSION, RepresentationType, equals);
|
|
1791
1649
|
return createLink(key);
|
|
1792
1650
|
};
|
|
1793
1651
|
function getTypeCacheKeys(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -1852,13 +1710,16 @@ function createResourceRequest(config) {
|
|
|
1852
1710
|
};
|
|
1853
1711
|
}
|
|
1854
1712
|
|
|
1855
|
-
const
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
|
|
1713
|
+
const adapterName = 'getPropertyTypes';
|
|
1714
|
+
const getPropertyTypes_ConfigPropertyMetadata = [
|
|
1715
|
+
generateParamConfigMetadata('designConfigTarget', false),
|
|
1716
|
+
generateParamConfigMetadata('fullyQualifiedNames', false),
|
|
1717
|
+
generateParamConfigMetadata('language', false),
|
|
1718
|
+
generateParamConfigMetadata('page', false),
|
|
1719
|
+
generateParamConfigMetadata('pageSize', false),
|
|
1720
|
+
generateParamConfigMetadata('renditionConfigTarget', false),
|
|
1721
|
+
];
|
|
1722
|
+
const getPropertyTypes_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, getPropertyTypes_ConfigPropertyMetadata);
|
|
1862
1723
|
function createResourceParams(config) {
|
|
1863
1724
|
const resourceParams = {
|
|
1864
1725
|
queryParams: {
|
|
@@ -1931,21 +1792,7 @@ function buildNetworkSnapshot(luvio, config, options) {
|
|
|
1931
1792
|
});
|
|
1932
1793
|
}
|
|
1933
1794
|
function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
|
|
1934
|
-
|
|
1935
|
-
const { networkPriority, requestCorrelator, eventObservers } = coercedAdapterRequestContext;
|
|
1936
|
-
const dispatchOptions = {
|
|
1937
|
-
resourceRequestContext: {
|
|
1938
|
-
requestCorrelator,
|
|
1939
|
-
luvioRequestMethod: undefined,
|
|
1940
|
-
},
|
|
1941
|
-
eventObservers
|
|
1942
|
-
};
|
|
1943
|
-
if (networkPriority !== 'normal') {
|
|
1944
|
-
dispatchOptions.overrides = {
|
|
1945
|
-
priority: networkPriority
|
|
1946
|
-
};
|
|
1947
|
-
}
|
|
1948
|
-
return buildNetworkSnapshot(luvio, config, dispatchOptions);
|
|
1795
|
+
return buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext, buildNetworkSnapshot, undefined, false);
|
|
1949
1796
|
}
|
|
1950
1797
|
function buildCachedSnapshotCachePolicy(context, storeLookup) {
|
|
1951
1798
|
const { luvio, config } = context;
|
|
@@ -2032,4 +1879,4 @@ withDefaultLuvio((luvio) => {
|
|
|
2032
1879
|
});
|
|
2033
1880
|
|
|
2034
1881
|
export { getBlockType, getBlockType_imperative, getBlockTypes, getBlockTypes_imperative, getContentType, getContentType_imperative, getContentTypes, getContentTypes_imperative, getPropertyType, getPropertyType_imperative, getPropertyTypes, getPropertyTypes_imperative };
|
|
2035
|
-
// version: 1.213.
|
|
1882
|
+
// version: 1.213.1-79de10fe1
|