@salesforce/lds-adapters-commerce-extensions 1.212.1 → 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/commerce-extensions.js +81 -251
- package/dist/es/es2018/types/src/generated/adapters/adapter-utils.d.ts +3 -1
- package/dist/es/es2018/types/src/generated/adapters/createMapping.d.ts +3 -2
- package/dist/es/es2018/types/src/generated/adapters/deleteMapping.d.ts +3 -2
- package/dist/es/es2018/types/src/generated/adapters/getExtensions.d.ts +3 -2
- package/dist/es/es2018/types/src/generated/adapters/getMapping.d.ts +3 -2
- package/dist/es/es2018/types/src/generated/adapters/getMappings.d.ts +3 -2
- package/dist/es/es2018/types/src/generated/adapters/getProvider.d.ts +3 -2
- package/dist/es/es2018/types/src/generated/adapters/getProviders.d.ts +3 -2
- package/dist/es/es2018/types/src/generated/adapters/updateMapping.d.ts +3 -2
- package/package.json +1 -1
- package/sfdc/index.js +83 -253
|
@@ -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, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$5, StoreKeyMap, 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 = 'extensions';
|
|
52
70
|
|
|
53
71
|
const { keys: ObjectKeys, create: ObjectCreate, assign: ObjectAssign } = Object;
|
|
@@ -185,26 +203,8 @@ const ingest$5 = function ExtensionOutputRepresentationIngest(input, path, luvio
|
|
|
185
203
|
}
|
|
186
204
|
}
|
|
187
205
|
const key = keyBuilderFromType$2(luvio, input);
|
|
188
|
-
const existingRecord = store.readEntry(key);
|
|
189
206
|
const ttlToUse = TTL$5;
|
|
190
|
-
|
|
191
|
-
fullPath: key,
|
|
192
|
-
parent: path.parent,
|
|
193
|
-
propertyName: path.propertyName,
|
|
194
|
-
ttl: ttlToUse
|
|
195
|
-
});
|
|
196
|
-
if (existingRecord === undefined || equals$7(existingRecord, incomingRecord) === false) {
|
|
197
|
-
luvio.storePublish(key, incomingRecord);
|
|
198
|
-
}
|
|
199
|
-
{
|
|
200
|
-
const storeMetadataParams = {
|
|
201
|
-
ttl: ttlToUse,
|
|
202
|
-
namespace: "extensions",
|
|
203
|
-
version: VERSION$7,
|
|
204
|
-
representationName: RepresentationType$5,
|
|
205
|
-
};
|
|
206
|
-
luvio.publishStoreMetadata(key, storeMetadataParams);
|
|
207
|
-
}
|
|
207
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$5, "extensions", VERSION$7, RepresentationType$5, equals$7);
|
|
208
208
|
return createLink(key);
|
|
209
209
|
};
|
|
210
210
|
function getTypeCacheKeys$5(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -260,7 +260,7 @@ function normalize$4(input, existing, path, luvio, store, timestamp) {
|
|
|
260
260
|
existing: existing,
|
|
261
261
|
},
|
|
262
262
|
ttl: path.ttl
|
|
263
|
-
}, luvio, store);
|
|
263
|
+
}, luvio, store, timestamp);
|
|
264
264
|
}
|
|
265
265
|
return input;
|
|
266
266
|
}
|
|
@@ -309,26 +309,8 @@ const ingest$4 = function ExtensionOutputCollectionRepresentationIngest(input, p
|
|
|
309
309
|
}
|
|
310
310
|
}
|
|
311
311
|
const key = path.fullPath;
|
|
312
|
-
const existingRecord = store.readEntry(key);
|
|
313
312
|
const ttlToUse = TTL$4;
|
|
314
|
-
|
|
315
|
-
fullPath: key,
|
|
316
|
-
parent: path.parent,
|
|
317
|
-
propertyName: path.propertyName,
|
|
318
|
-
ttl: ttlToUse
|
|
319
|
-
}, luvio, store);
|
|
320
|
-
if (existingRecord === undefined || equals$6(existingRecord, incomingRecord) === false) {
|
|
321
|
-
luvio.storePublish(key, incomingRecord);
|
|
322
|
-
}
|
|
323
|
-
{
|
|
324
|
-
const storeMetadataParams = {
|
|
325
|
-
ttl: ttlToUse,
|
|
326
|
-
namespace: "extensions",
|
|
327
|
-
version: VERSION$6,
|
|
328
|
-
representationName: RepresentationType$4,
|
|
329
|
-
};
|
|
330
|
-
luvio.publishStoreMetadata(key, storeMetadataParams);
|
|
331
|
-
}
|
|
313
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$4, "extensions", VERSION$6, RepresentationType$4, equals$6);
|
|
332
314
|
return createLink(key);
|
|
333
315
|
};
|
|
334
316
|
function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -397,13 +379,9 @@ function createResourceRequest$7(config) {
|
|
|
397
379
|
};
|
|
398
380
|
}
|
|
399
381
|
|
|
400
|
-
const
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
required: [],
|
|
404
|
-
optional: []
|
|
405
|
-
}
|
|
406
|
-
};
|
|
382
|
+
const adapterName$7 = 'getExtensions';
|
|
383
|
+
const getExtensions_ConfigPropertyMetadata = [];
|
|
384
|
+
const getExtensions_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$7, getExtensions_ConfigPropertyMetadata);
|
|
407
385
|
function createResourceParams$7(config) {
|
|
408
386
|
const resourceParams = {};
|
|
409
387
|
return resourceParams;
|
|
@@ -460,21 +438,7 @@ function buildNetworkSnapshot$7(luvio, config, options) {
|
|
|
460
438
|
});
|
|
461
439
|
}
|
|
462
440
|
function buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext) {
|
|
463
|
-
|
|
464
|
-
const { networkPriority, requestCorrelator, eventObservers } = coercedAdapterRequestContext;
|
|
465
|
-
const dispatchOptions = {
|
|
466
|
-
resourceRequestContext: {
|
|
467
|
-
requestCorrelator,
|
|
468
|
-
luvioRequestMethod: undefined,
|
|
469
|
-
},
|
|
470
|
-
eventObservers
|
|
471
|
-
};
|
|
472
|
-
if (networkPriority !== 'normal') {
|
|
473
|
-
dispatchOptions.overrides = {
|
|
474
|
-
priority: networkPriority
|
|
475
|
-
};
|
|
476
|
-
}
|
|
477
|
-
return buildNetworkSnapshot$7(luvio, config, dispatchOptions);
|
|
441
|
+
return buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext, buildNetworkSnapshot$7, undefined, false);
|
|
478
442
|
}
|
|
479
443
|
function buildCachedSnapshotCachePolicy$4(context, storeLookup) {
|
|
480
444
|
const { luvio, config } = context;
|
|
@@ -598,26 +562,8 @@ const ingest$3 = function MappingOutputRepresentationIngest(input, path, luvio,
|
|
|
598
562
|
}
|
|
599
563
|
}
|
|
600
564
|
const key = keyBuilderFromType$1(luvio, input);
|
|
601
|
-
const existingRecord = store.readEntry(key);
|
|
602
565
|
const ttlToUse = TTL$3;
|
|
603
|
-
|
|
604
|
-
fullPath: key,
|
|
605
|
-
parent: path.parent,
|
|
606
|
-
propertyName: path.propertyName,
|
|
607
|
-
ttl: ttlToUse
|
|
608
|
-
});
|
|
609
|
-
if (existingRecord === undefined || equals$5(existingRecord, incomingRecord) === false) {
|
|
610
|
-
luvio.storePublish(key, incomingRecord);
|
|
611
|
-
}
|
|
612
|
-
{
|
|
613
|
-
const storeMetadataParams = {
|
|
614
|
-
ttl: ttlToUse,
|
|
615
|
-
namespace: "extensions",
|
|
616
|
-
version: VERSION$5,
|
|
617
|
-
representationName: RepresentationType$3,
|
|
618
|
-
};
|
|
619
|
-
luvio.publishStoreMetadata(key, storeMetadataParams);
|
|
620
|
-
}
|
|
566
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$3, "extensions", VERSION$5, RepresentationType$3, equals$5);
|
|
621
567
|
return createLink(key);
|
|
622
568
|
};
|
|
623
569
|
function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -687,7 +633,7 @@ function normalize$2(input, existing, path, luvio, store, timestamp) {
|
|
|
687
633
|
existing: existing,
|
|
688
634
|
},
|
|
689
635
|
ttl: path.ttl
|
|
690
|
-
}, luvio, store);
|
|
636
|
+
}, luvio, store, timestamp);
|
|
691
637
|
}
|
|
692
638
|
return input;
|
|
693
639
|
}
|
|
@@ -736,26 +682,8 @@ const ingest$2 = function MappingOutputCollectionRepresentationIngest(input, pat
|
|
|
736
682
|
}
|
|
737
683
|
}
|
|
738
684
|
const key = path.fullPath;
|
|
739
|
-
const existingRecord = store.readEntry(key);
|
|
740
685
|
const ttlToUse = TTL$2;
|
|
741
|
-
|
|
742
|
-
fullPath: key,
|
|
743
|
-
parent: path.parent,
|
|
744
|
-
propertyName: path.propertyName,
|
|
745
|
-
ttl: ttlToUse
|
|
746
|
-
}, luvio, store);
|
|
747
|
-
if (existingRecord === undefined || equals$4(existingRecord, incomingRecord) === false) {
|
|
748
|
-
luvio.storePublish(key, incomingRecord);
|
|
749
|
-
}
|
|
750
|
-
{
|
|
751
|
-
const storeMetadataParams = {
|
|
752
|
-
ttl: ttlToUse,
|
|
753
|
-
namespace: "extensions",
|
|
754
|
-
version: VERSION$4,
|
|
755
|
-
representationName: RepresentationType$2,
|
|
756
|
-
};
|
|
757
|
-
luvio.publishStoreMetadata(key, storeMetadataParams);
|
|
758
|
-
}
|
|
686
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$2, "extensions", VERSION$4, RepresentationType$2, equals$4);
|
|
759
687
|
return createLink(key);
|
|
760
688
|
};
|
|
761
689
|
function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -824,13 +752,12 @@ function createResourceRequest$6(config) {
|
|
|
824
752
|
};
|
|
825
753
|
}
|
|
826
754
|
|
|
827
|
-
const
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
};
|
|
755
|
+
const adapterName$6 = 'getMappings';
|
|
756
|
+
const getMappings_ConfigPropertyMetadata = [
|
|
757
|
+
generateParamConfigMetadata('epn', false),
|
|
758
|
+
generateParamConfigMetadata('webstoreId', false),
|
|
759
|
+
];
|
|
760
|
+
const getMappings_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, getMappings_ConfigPropertyMetadata);
|
|
834
761
|
function createResourceParams$6(config) {
|
|
835
762
|
const resourceParams = {
|
|
836
763
|
queryParams: {
|
|
@@ -897,21 +824,7 @@ function buildNetworkSnapshot$6(luvio, config, options) {
|
|
|
897
824
|
});
|
|
898
825
|
}
|
|
899
826
|
function buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext) {
|
|
900
|
-
|
|
901
|
-
const { networkPriority, requestCorrelator, eventObservers } = coercedAdapterRequestContext;
|
|
902
|
-
const dispatchOptions = {
|
|
903
|
-
resourceRequestContext: {
|
|
904
|
-
requestCorrelator,
|
|
905
|
-
luvioRequestMethod: undefined,
|
|
906
|
-
},
|
|
907
|
-
eventObservers
|
|
908
|
-
};
|
|
909
|
-
if (networkPriority !== 'normal') {
|
|
910
|
-
dispatchOptions.overrides = {
|
|
911
|
-
priority: networkPriority
|
|
912
|
-
};
|
|
913
|
-
}
|
|
914
|
-
return buildNetworkSnapshot$6(luvio, config, dispatchOptions);
|
|
827
|
+
return buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext, buildNetworkSnapshot$6, undefined, false);
|
|
915
828
|
}
|
|
916
829
|
function buildCachedSnapshotCachePolicy$3(context, storeLookup) {
|
|
917
830
|
const { luvio, config } = context;
|
|
@@ -973,13 +886,14 @@ function createResourceRequest$5(config) {
|
|
|
973
886
|
};
|
|
974
887
|
}
|
|
975
888
|
|
|
976
|
-
const
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
889
|
+
const adapterName$5 = 'createMapping';
|
|
890
|
+
const createMapping_ConfigPropertyMetadata = [
|
|
891
|
+
generateParamConfigMetadata('epn', true),
|
|
892
|
+
generateParamConfigMetadata('id', true),
|
|
893
|
+
generateParamConfigMetadata('providerName', true),
|
|
894
|
+
generateParamConfigMetadata('webstoreId', true),
|
|
895
|
+
];
|
|
896
|
+
const createMapping_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, createMapping_ConfigPropertyMetadata);
|
|
983
897
|
function createResourceParams$5(config) {
|
|
984
898
|
const resourceParams = {
|
|
985
899
|
body: {
|
|
@@ -1071,14 +985,11 @@ function createResourceRequest$4(config) {
|
|
|
1071
985
|
};
|
|
1072
986
|
}
|
|
1073
987
|
|
|
1074
|
-
const adapterName = 'deleteMapping';
|
|
1075
|
-
const
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
optional: []
|
|
1080
|
-
}
|
|
1081
|
-
};
|
|
988
|
+
const adapterName$4 = 'deleteMapping';
|
|
989
|
+
const deleteMapping_ConfigPropertyMetadata = [
|
|
990
|
+
generateParamConfigMetadata('mappingId', true),
|
|
991
|
+
];
|
|
992
|
+
const deleteMapping_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, deleteMapping_ConfigPropertyMetadata);
|
|
1082
993
|
function createResourceParams$4(config) {
|
|
1083
994
|
const resourceParams = {
|
|
1084
995
|
urlParams: {
|
|
@@ -1130,7 +1041,7 @@ const deleteMappingAdapterFactory = (luvio) => {
|
|
|
1130
1041
|
const config = validateAdapterConfig$4(untrustedConfig, deleteMapping_ConfigPropertyNames);
|
|
1131
1042
|
// Invalid or incomplete config
|
|
1132
1043
|
if (config === null) {
|
|
1133
|
-
throw new Error(`Invalid config for "${adapterName}"`);
|
|
1044
|
+
throw new Error(`Invalid config for "${adapterName$4}"`);
|
|
1134
1045
|
}
|
|
1135
1046
|
return buildNetworkSnapshot$4(luvio, config);
|
|
1136
1047
|
};
|
|
@@ -1190,13 +1101,11 @@ function createResourceRequest$3(config) {
|
|
|
1190
1101
|
};
|
|
1191
1102
|
}
|
|
1192
1103
|
|
|
1193
|
-
const
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
}
|
|
1199
|
-
};
|
|
1104
|
+
const adapterName$3 = 'getMapping';
|
|
1105
|
+
const getMapping_ConfigPropertyMetadata = [
|
|
1106
|
+
generateParamConfigMetadata('mappingId', true),
|
|
1107
|
+
];
|
|
1108
|
+
const getMapping_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, getMapping_ConfigPropertyMetadata);
|
|
1200
1109
|
function createResourceParams$3(config) {
|
|
1201
1110
|
const resourceParams = {
|
|
1202
1111
|
urlParams: {
|
|
@@ -1262,21 +1171,7 @@ function buildNetworkSnapshot$3(luvio, config, options) {
|
|
|
1262
1171
|
});
|
|
1263
1172
|
}
|
|
1264
1173
|
function buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext) {
|
|
1265
|
-
|
|
1266
|
-
const { networkPriority, requestCorrelator, eventObservers } = coercedAdapterRequestContext;
|
|
1267
|
-
const dispatchOptions = {
|
|
1268
|
-
resourceRequestContext: {
|
|
1269
|
-
requestCorrelator,
|
|
1270
|
-
luvioRequestMethod: undefined,
|
|
1271
|
-
},
|
|
1272
|
-
eventObservers
|
|
1273
|
-
};
|
|
1274
|
-
if (networkPriority !== 'normal') {
|
|
1275
|
-
dispatchOptions.overrides = {
|
|
1276
|
-
priority: networkPriority
|
|
1277
|
-
};
|
|
1278
|
-
}
|
|
1279
|
-
return buildNetworkSnapshot$3(luvio, config, dispatchOptions);
|
|
1174
|
+
return buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext, buildNetworkSnapshot$3, undefined, false);
|
|
1280
1175
|
}
|
|
1281
1176
|
function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
|
|
1282
1177
|
const { luvio, config } = context;
|
|
@@ -1338,13 +1233,15 @@ function createResourceRequest$2(config) {
|
|
|
1338
1233
|
};
|
|
1339
1234
|
}
|
|
1340
1235
|
|
|
1341
|
-
const
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1236
|
+
const adapterName$2 = 'updateMapping';
|
|
1237
|
+
const updateMapping_ConfigPropertyMetadata = [
|
|
1238
|
+
generateParamConfigMetadata('mappingId', true),
|
|
1239
|
+
generateParamConfigMetadata('epn', true),
|
|
1240
|
+
generateParamConfigMetadata('id', true),
|
|
1241
|
+
generateParamConfigMetadata('providerName', true),
|
|
1242
|
+
generateParamConfigMetadata('webstoreId', true),
|
|
1243
|
+
];
|
|
1244
|
+
const updateMapping_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, updateMapping_ConfigPropertyMetadata);
|
|
1348
1245
|
function createResourceParams$2(config) {
|
|
1349
1246
|
const resourceParams = {
|
|
1350
1247
|
urlParams: {
|
|
@@ -1729,26 +1626,8 @@ const ingest$1 = function ProviderOutputRepresentationIngest(input, path, luvio,
|
|
|
1729
1626
|
}
|
|
1730
1627
|
}
|
|
1731
1628
|
const key = keyBuilderFromType(luvio, input);
|
|
1732
|
-
const existingRecord = store.readEntry(key);
|
|
1733
1629
|
const ttlToUse = TTL$1;
|
|
1734
|
-
|
|
1735
|
-
fullPath: key,
|
|
1736
|
-
parent: path.parent,
|
|
1737
|
-
propertyName: path.propertyName,
|
|
1738
|
-
ttl: ttlToUse
|
|
1739
|
-
});
|
|
1740
|
-
if (existingRecord === undefined || equals$1(existingRecord, incomingRecord) === false) {
|
|
1741
|
-
luvio.storePublish(key, incomingRecord);
|
|
1742
|
-
}
|
|
1743
|
-
{
|
|
1744
|
-
const storeMetadataParams = {
|
|
1745
|
-
ttl: ttlToUse,
|
|
1746
|
-
namespace: "extensions",
|
|
1747
|
-
version: VERSION$1,
|
|
1748
|
-
representationName: RepresentationType$1,
|
|
1749
|
-
};
|
|
1750
|
-
luvio.publishStoreMetadata(key, storeMetadataParams);
|
|
1751
|
-
}
|
|
1630
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$1, "extensions", VERSION$1, RepresentationType$1, equals$1);
|
|
1752
1631
|
return createLink(key);
|
|
1753
1632
|
};
|
|
1754
1633
|
function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -1804,7 +1683,7 @@ function normalize(input, existing, path, luvio, store, timestamp) {
|
|
|
1804
1683
|
existing: existing,
|
|
1805
1684
|
},
|
|
1806
1685
|
ttl: path.ttl
|
|
1807
|
-
}, luvio, store);
|
|
1686
|
+
}, luvio, store, timestamp);
|
|
1808
1687
|
}
|
|
1809
1688
|
return input;
|
|
1810
1689
|
}
|
|
@@ -1853,26 +1732,8 @@ const ingest = function ProviderOutputCollectionRepresentationIngest(input, path
|
|
|
1853
1732
|
}
|
|
1854
1733
|
}
|
|
1855
1734
|
const key = path.fullPath;
|
|
1856
|
-
const existingRecord = store.readEntry(key);
|
|
1857
1735
|
const ttlToUse = TTL;
|
|
1858
|
-
|
|
1859
|
-
fullPath: key,
|
|
1860
|
-
parent: path.parent,
|
|
1861
|
-
propertyName: path.propertyName,
|
|
1862
|
-
ttl: ttlToUse
|
|
1863
|
-
}, luvio, store);
|
|
1864
|
-
if (existingRecord === undefined || equals(existingRecord, incomingRecord) === false) {
|
|
1865
|
-
luvio.storePublish(key, incomingRecord);
|
|
1866
|
-
}
|
|
1867
|
-
{
|
|
1868
|
-
const storeMetadataParams = {
|
|
1869
|
-
ttl: ttlToUse,
|
|
1870
|
-
namespace: "extensions",
|
|
1871
|
-
version: VERSION,
|
|
1872
|
-
representationName: RepresentationType,
|
|
1873
|
-
};
|
|
1874
|
-
luvio.publishStoreMetadata(key, storeMetadataParams);
|
|
1875
|
-
}
|
|
1736
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize, "extensions", VERSION, RepresentationType, equals);
|
|
1876
1737
|
return createLink(key);
|
|
1877
1738
|
};
|
|
1878
1739
|
function getTypeCacheKeys(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -1941,13 +1802,12 @@ function createResourceRequest$1(config) {
|
|
|
1941
1802
|
};
|
|
1942
1803
|
}
|
|
1943
1804
|
|
|
1944
|
-
const
|
|
1945
|
-
|
|
1946
|
-
|
|
1947
|
-
|
|
1948
|
-
|
|
1949
|
-
|
|
1950
|
-
};
|
|
1805
|
+
const adapterName$1 = 'getProviders';
|
|
1806
|
+
const getProviders_ConfigPropertyMetadata = [
|
|
1807
|
+
generateParamConfigMetadata('effectiveMappingsWebstoreId', false),
|
|
1808
|
+
generateParamConfigMetadata('epn', false),
|
|
1809
|
+
];
|
|
1810
|
+
const getProviders_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, getProviders_ConfigPropertyMetadata);
|
|
1951
1811
|
function createResourceParams$1(config) {
|
|
1952
1812
|
const resourceParams = {
|
|
1953
1813
|
queryParams: {
|
|
@@ -2014,21 +1874,7 @@ function buildNetworkSnapshot$1(luvio, config, options) {
|
|
|
2014
1874
|
});
|
|
2015
1875
|
}
|
|
2016
1876
|
function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
|
|
2017
|
-
|
|
2018
|
-
const { networkPriority, requestCorrelator, eventObservers } = coercedAdapterRequestContext;
|
|
2019
|
-
const dispatchOptions = {
|
|
2020
|
-
resourceRequestContext: {
|
|
2021
|
-
requestCorrelator,
|
|
2022
|
-
luvioRequestMethod: undefined,
|
|
2023
|
-
},
|
|
2024
|
-
eventObservers
|
|
2025
|
-
};
|
|
2026
|
-
if (networkPriority !== 'normal') {
|
|
2027
|
-
dispatchOptions.overrides = {
|
|
2028
|
-
priority: networkPriority
|
|
2029
|
-
};
|
|
2030
|
-
}
|
|
2031
|
-
return buildNetworkSnapshot$1(luvio, config, dispatchOptions);
|
|
1877
|
+
return buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext, buildNetworkSnapshot$1, undefined, false);
|
|
2032
1878
|
}
|
|
2033
1879
|
function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
|
|
2034
1880
|
const { luvio, config } = context;
|
|
@@ -2107,13 +1953,11 @@ function createResourceRequest(config) {
|
|
|
2107
1953
|
};
|
|
2108
1954
|
}
|
|
2109
1955
|
|
|
2110
|
-
const
|
|
2111
|
-
|
|
2112
|
-
|
|
2113
|
-
|
|
2114
|
-
|
|
2115
|
-
}
|
|
2116
|
-
};
|
|
1956
|
+
const adapterName = 'getProvider';
|
|
1957
|
+
const getProvider_ConfigPropertyMetadata = [
|
|
1958
|
+
generateParamConfigMetadata('providerId', true),
|
|
1959
|
+
];
|
|
1960
|
+
const getProvider_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, getProvider_ConfigPropertyMetadata);
|
|
2117
1961
|
function createResourceParams(config) {
|
|
2118
1962
|
const resourceParams = {
|
|
2119
1963
|
urlParams: {
|
|
@@ -2179,21 +2023,7 @@ function buildNetworkSnapshot(luvio, config, options) {
|
|
|
2179
2023
|
});
|
|
2180
2024
|
}
|
|
2181
2025
|
function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
|
|
2182
|
-
|
|
2183
|
-
const { networkPriority, requestCorrelator, eventObservers } = coercedAdapterRequestContext;
|
|
2184
|
-
const dispatchOptions = {
|
|
2185
|
-
resourceRequestContext: {
|
|
2186
|
-
requestCorrelator,
|
|
2187
|
-
luvioRequestMethod: undefined,
|
|
2188
|
-
},
|
|
2189
|
-
eventObservers
|
|
2190
|
-
};
|
|
2191
|
-
if (networkPriority !== 'normal') {
|
|
2192
|
-
dispatchOptions.overrides = {
|
|
2193
|
-
priority: networkPriority
|
|
2194
|
-
};
|
|
2195
|
-
}
|
|
2196
|
-
return buildNetworkSnapshot(luvio, config, dispatchOptions);
|
|
2026
|
+
return buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext, buildNetworkSnapshot, undefined, false);
|
|
2197
2027
|
}
|
|
2198
2028
|
function buildCachedSnapshotCachePolicy(context, storeLookup) {
|
|
2199
2029
|
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 = "extensions";
|
|
@@ -1,8 +1,9 @@
|
|
|
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 { ResourceRequestConfig as resources_postCommerceExtensionMappings_ResourceRequestConfig } from '../resources/postCommerceExtensionMappings';
|
|
3
|
-
import { Luvio as $64$luvio_engine_Luvio, DispatchResourceRequestContext as $64$luvio_engine_DispatchResourceRequestContext, AdapterFactory as $64$luvio_engine_AdapterFactory } from '@luvio/engine';
|
|
4
4
|
import { MappingOutputRepresentation as types_MappingOutputRepresentation_MappingOutputRepresentation } from '../types/MappingOutputRepresentation';
|
|
5
5
|
export declare const adapterName = "createMapping";
|
|
6
|
+
export declare const createMapping_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
|
|
6
7
|
export declare const createMapping_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
|
|
7
8
|
export interface CreateMappingConfig {
|
|
8
9
|
epn: string;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AdapterConfigMetadata as $64$luvio_engine_AdapterConfigMetadata, Luvio as $64$luvio_engine_Luvio, DispatchResourceRequestContext as $64$luvio_engine_DispatchResourceRequestContext, DeleteAdapterFactory as $64$luvio_engine_DeleteAdapterFactory } 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_deleteCommerceExtensionMappingsByMappingId_ResourceRequestConfig } from '../resources/deleteCommerceExtensionMappingsByMappingId';
|
|
3
|
-
import { Luvio as $64$luvio_engine_Luvio, DispatchResourceRequestContext as $64$luvio_engine_DispatchResourceRequestContext, DeleteAdapterFactory as $64$luvio_engine_DeleteAdapterFactory } from '@luvio/engine';
|
|
4
4
|
export declare const adapterName = "deleteMapping";
|
|
5
|
+
export declare const deleteMapping_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
|
|
5
6
|
export declare const deleteMapping_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
|
|
6
7
|
export interface DeleteMappingConfig {
|
|
7
8
|
mappingId: 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_getCommerceExtensionExtensions_ResourceRequestConfig } from '../resources/getCommerceExtensionExtensions';
|
|
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 { ExtensionOutputCollectionRepresentation as types_ExtensionOutputCollectionRepresentation_ExtensionOutputCollectionRepresentation } from '../types/ExtensionOutputCollectionRepresentation';
|
|
5
5
|
export declare const adapterName = "getExtensions";
|
|
6
|
+
export declare const getExtensions_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
|
|
6
7
|
export declare const getExtensions_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
|
|
7
8
|
export interface GetExtensionsConfig {
|
|
8
9
|
}
|
|
@@ -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, UncoercedConfiguration as adapter$45$utils_UncoercedConfiguration } from './adapter-utils';
|
|
2
3
|
import { ResourceRequestConfig as resources_getCommerceExtensionMappingsByMappingId_ResourceRequestConfig } from '../resources/getCommerceExtensionMappingsByMappingId';
|
|
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 { MappingOutputRepresentation as types_MappingOutputRepresentation_MappingOutputRepresentation, KeyParams as types_MappingOutputRepresentation_KeyParams } from '../types/MappingOutputRepresentation';
|
|
5
5
|
export declare const adapterName = "getMapping";
|
|
6
|
+
export declare const getMapping_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
|
|
6
7
|
export declare const getMapping_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
|
|
7
8
|
export interface GetMappingConfig {
|
|
8
9
|
mappingId: 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_getCommerceExtensionMappings_ResourceRequestConfig } from '../resources/getCommerceExtensionMappings';
|
|
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 { MappingOutputCollectionRepresentation as types_MappingOutputCollectionRepresentation_MappingOutputCollectionRepresentation } from '../types/MappingOutputCollectionRepresentation';
|
|
5
5
|
export declare const adapterName = "getMappings";
|
|
6
|
+
export declare const getMappings_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
|
|
6
7
|
export declare const getMappings_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
|
|
7
8
|
export interface GetMappingsConfig {
|
|
8
9
|
epn?: 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, UncoercedConfiguration as adapter$45$utils_UncoercedConfiguration } from './adapter-utils';
|
|
2
3
|
import { ResourceRequestConfig as resources_getCommerceExtensionProvidersByProviderId_ResourceRequestConfig } from '../resources/getCommerceExtensionProvidersByProviderId';
|
|
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 { ProviderOutputRepresentation as types_ProviderOutputRepresentation_ProviderOutputRepresentation, KeyParams as types_ProviderOutputRepresentation_KeyParams } from '../types/ProviderOutputRepresentation';
|
|
5
5
|
export declare const adapterName = "getProvider";
|
|
6
|
+
export declare const getProvider_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
|
|
6
7
|
export declare const getProvider_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
|
|
7
8
|
export interface GetProviderConfig {
|
|
8
9
|
providerId: 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_getCommerceExtensionProviders_ResourceRequestConfig } from '../resources/getCommerceExtensionProviders';
|
|
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 { ProviderOutputCollectionRepresentation as types_ProviderOutputCollectionRepresentation_ProviderOutputCollectionRepresentation } from '../types/ProviderOutputCollectionRepresentation';
|
|
5
5
|
export declare const adapterName = "getProviders";
|
|
6
|
+
export declare const getProviders_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
|
|
6
7
|
export declare const getProviders_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
|
|
7
8
|
export interface GetProvidersConfig {
|
|
8
9
|
effectiveMappingsWebstoreId?: string;
|
|
@@ -1,8 +1,9 @@
|
|
|
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 { ResourceRequestConfig as resources_putCommerceExtensionMappingsByMappingId_ResourceRequestConfig } from '../resources/putCommerceExtensionMappingsByMappingId';
|
|
3
|
-
import { Luvio as $64$luvio_engine_Luvio, DispatchResourceRequestContext as $64$luvio_engine_DispatchResourceRequestContext, AdapterFactory as $64$luvio_engine_AdapterFactory } from '@luvio/engine';
|
|
4
4
|
import { MappingOutputRepresentation as types_MappingOutputRepresentation_MappingOutputRepresentation } from '../types/MappingOutputRepresentation';
|
|
5
5
|
export declare const adapterName = "updateMapping";
|
|
6
|
+
export declare const updateMapping_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
|
|
6
7
|
export declare const updateMapping_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
|
|
7
8
|
export interface UpdateMappingConfig {
|
|
8
9
|
mappingId: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-adapters-commerce-extensions",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.213.1",
|
|
4
4
|
"description": "APIs to manage providers for commerce extensions and which will be used for each store.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"main": "dist/umd/es2018/commerce-extensions.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, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$5, StoreKeyMap, 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 = 'extensions';
|
|
62
80
|
|
|
63
81
|
const { keys: ObjectKeys, create: ObjectCreate, assign: ObjectAssign } = Object;
|
|
@@ -195,26 +213,8 @@ const ingest$5 = function ExtensionOutputRepresentationIngest(input, path, luvio
|
|
|
195
213
|
}
|
|
196
214
|
}
|
|
197
215
|
const key = keyBuilderFromType$2(luvio, input);
|
|
198
|
-
const existingRecord = store.readEntry(key);
|
|
199
216
|
const ttlToUse = TTL$5;
|
|
200
|
-
|
|
201
|
-
fullPath: key,
|
|
202
|
-
parent: path.parent,
|
|
203
|
-
propertyName: path.propertyName,
|
|
204
|
-
ttl: ttlToUse
|
|
205
|
-
});
|
|
206
|
-
if (existingRecord === undefined || equals$7(existingRecord, incomingRecord) === false) {
|
|
207
|
-
luvio.storePublish(key, incomingRecord);
|
|
208
|
-
}
|
|
209
|
-
{
|
|
210
|
-
const storeMetadataParams = {
|
|
211
|
-
ttl: ttlToUse,
|
|
212
|
-
namespace: "extensions",
|
|
213
|
-
version: VERSION$7,
|
|
214
|
-
representationName: RepresentationType$5,
|
|
215
|
-
};
|
|
216
|
-
luvio.publishStoreMetadata(key, storeMetadataParams);
|
|
217
|
-
}
|
|
217
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$5, "extensions", VERSION$7, RepresentationType$5, equals$7);
|
|
218
218
|
return createLink(key);
|
|
219
219
|
};
|
|
220
220
|
function getTypeCacheKeys$5(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -270,7 +270,7 @@ function normalize$4(input, existing, path, luvio, store, timestamp) {
|
|
|
270
270
|
existing: existing,
|
|
271
271
|
},
|
|
272
272
|
ttl: path.ttl
|
|
273
|
-
}, luvio, store);
|
|
273
|
+
}, luvio, store, timestamp);
|
|
274
274
|
}
|
|
275
275
|
return input;
|
|
276
276
|
}
|
|
@@ -319,26 +319,8 @@ const ingest$4 = function ExtensionOutputCollectionRepresentationIngest(input, p
|
|
|
319
319
|
}
|
|
320
320
|
}
|
|
321
321
|
const key = path.fullPath;
|
|
322
|
-
const existingRecord = store.readEntry(key);
|
|
323
322
|
const ttlToUse = TTL$4;
|
|
324
|
-
|
|
325
|
-
fullPath: key,
|
|
326
|
-
parent: path.parent,
|
|
327
|
-
propertyName: path.propertyName,
|
|
328
|
-
ttl: ttlToUse
|
|
329
|
-
}, luvio, store);
|
|
330
|
-
if (existingRecord === undefined || equals$6(existingRecord, incomingRecord) === false) {
|
|
331
|
-
luvio.storePublish(key, incomingRecord);
|
|
332
|
-
}
|
|
333
|
-
{
|
|
334
|
-
const storeMetadataParams = {
|
|
335
|
-
ttl: ttlToUse,
|
|
336
|
-
namespace: "extensions",
|
|
337
|
-
version: VERSION$6,
|
|
338
|
-
representationName: RepresentationType$4,
|
|
339
|
-
};
|
|
340
|
-
luvio.publishStoreMetadata(key, storeMetadataParams);
|
|
341
|
-
}
|
|
323
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$4, "extensions", VERSION$6, RepresentationType$4, equals$6);
|
|
342
324
|
return createLink(key);
|
|
343
325
|
};
|
|
344
326
|
function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -407,13 +389,9 @@ function createResourceRequest$7(config) {
|
|
|
407
389
|
};
|
|
408
390
|
}
|
|
409
391
|
|
|
410
|
-
const
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
required: [],
|
|
414
|
-
optional: []
|
|
415
|
-
}
|
|
416
|
-
};
|
|
392
|
+
const adapterName$7 = 'getExtensions';
|
|
393
|
+
const getExtensions_ConfigPropertyMetadata = [];
|
|
394
|
+
const getExtensions_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$7, getExtensions_ConfigPropertyMetadata);
|
|
417
395
|
function createResourceParams$7(config) {
|
|
418
396
|
const resourceParams = {};
|
|
419
397
|
return resourceParams;
|
|
@@ -470,21 +448,7 @@ function buildNetworkSnapshot$7(luvio, config, options) {
|
|
|
470
448
|
});
|
|
471
449
|
}
|
|
472
450
|
function buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext) {
|
|
473
|
-
|
|
474
|
-
const { networkPriority, requestCorrelator, eventObservers } = coercedAdapterRequestContext;
|
|
475
|
-
const dispatchOptions = {
|
|
476
|
-
resourceRequestContext: {
|
|
477
|
-
requestCorrelator,
|
|
478
|
-
luvioRequestMethod: undefined,
|
|
479
|
-
},
|
|
480
|
-
eventObservers
|
|
481
|
-
};
|
|
482
|
-
if (networkPriority !== 'normal') {
|
|
483
|
-
dispatchOptions.overrides = {
|
|
484
|
-
priority: networkPriority
|
|
485
|
-
};
|
|
486
|
-
}
|
|
487
|
-
return buildNetworkSnapshot$7(luvio, config, dispatchOptions);
|
|
451
|
+
return buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext, buildNetworkSnapshot$7, undefined, false);
|
|
488
452
|
}
|
|
489
453
|
function buildCachedSnapshotCachePolicy$4(context, storeLookup) {
|
|
490
454
|
const { luvio, config } = context;
|
|
@@ -608,26 +572,8 @@ const ingest$3 = function MappingOutputRepresentationIngest(input, path, luvio,
|
|
|
608
572
|
}
|
|
609
573
|
}
|
|
610
574
|
const key = keyBuilderFromType$1(luvio, input);
|
|
611
|
-
const existingRecord = store.readEntry(key);
|
|
612
575
|
const ttlToUse = TTL$3;
|
|
613
|
-
|
|
614
|
-
fullPath: key,
|
|
615
|
-
parent: path.parent,
|
|
616
|
-
propertyName: path.propertyName,
|
|
617
|
-
ttl: ttlToUse
|
|
618
|
-
});
|
|
619
|
-
if (existingRecord === undefined || equals$5(existingRecord, incomingRecord) === false) {
|
|
620
|
-
luvio.storePublish(key, incomingRecord);
|
|
621
|
-
}
|
|
622
|
-
{
|
|
623
|
-
const storeMetadataParams = {
|
|
624
|
-
ttl: ttlToUse,
|
|
625
|
-
namespace: "extensions",
|
|
626
|
-
version: VERSION$5,
|
|
627
|
-
representationName: RepresentationType$3,
|
|
628
|
-
};
|
|
629
|
-
luvio.publishStoreMetadata(key, storeMetadataParams);
|
|
630
|
-
}
|
|
576
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$3, "extensions", VERSION$5, RepresentationType$3, equals$5);
|
|
631
577
|
return createLink(key);
|
|
632
578
|
};
|
|
633
579
|
function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -697,7 +643,7 @@ function normalize$2(input, existing, path, luvio, store, timestamp) {
|
|
|
697
643
|
existing: existing,
|
|
698
644
|
},
|
|
699
645
|
ttl: path.ttl
|
|
700
|
-
}, luvio, store);
|
|
646
|
+
}, luvio, store, timestamp);
|
|
701
647
|
}
|
|
702
648
|
return input;
|
|
703
649
|
}
|
|
@@ -746,26 +692,8 @@ const ingest$2 = function MappingOutputCollectionRepresentationIngest(input, pat
|
|
|
746
692
|
}
|
|
747
693
|
}
|
|
748
694
|
const key = path.fullPath;
|
|
749
|
-
const existingRecord = store.readEntry(key);
|
|
750
695
|
const ttlToUse = TTL$2;
|
|
751
|
-
|
|
752
|
-
fullPath: key,
|
|
753
|
-
parent: path.parent,
|
|
754
|
-
propertyName: path.propertyName,
|
|
755
|
-
ttl: ttlToUse
|
|
756
|
-
}, luvio, store);
|
|
757
|
-
if (existingRecord === undefined || equals$4(existingRecord, incomingRecord) === false) {
|
|
758
|
-
luvio.storePublish(key, incomingRecord);
|
|
759
|
-
}
|
|
760
|
-
{
|
|
761
|
-
const storeMetadataParams = {
|
|
762
|
-
ttl: ttlToUse,
|
|
763
|
-
namespace: "extensions",
|
|
764
|
-
version: VERSION$4,
|
|
765
|
-
representationName: RepresentationType$2,
|
|
766
|
-
};
|
|
767
|
-
luvio.publishStoreMetadata(key, storeMetadataParams);
|
|
768
|
-
}
|
|
696
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$2, "extensions", VERSION$4, RepresentationType$2, equals$4);
|
|
769
697
|
return createLink(key);
|
|
770
698
|
};
|
|
771
699
|
function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -834,13 +762,12 @@ function createResourceRequest$6(config) {
|
|
|
834
762
|
};
|
|
835
763
|
}
|
|
836
764
|
|
|
837
|
-
const
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
};
|
|
765
|
+
const adapterName$6 = 'getMappings';
|
|
766
|
+
const getMappings_ConfigPropertyMetadata = [
|
|
767
|
+
generateParamConfigMetadata('epn', false),
|
|
768
|
+
generateParamConfigMetadata('webstoreId', false),
|
|
769
|
+
];
|
|
770
|
+
const getMappings_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, getMappings_ConfigPropertyMetadata);
|
|
844
771
|
function createResourceParams$6(config) {
|
|
845
772
|
const resourceParams = {
|
|
846
773
|
queryParams: {
|
|
@@ -907,21 +834,7 @@ function buildNetworkSnapshot$6(luvio, config, options) {
|
|
|
907
834
|
});
|
|
908
835
|
}
|
|
909
836
|
function buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext) {
|
|
910
|
-
|
|
911
|
-
const { networkPriority, requestCorrelator, eventObservers } = coercedAdapterRequestContext;
|
|
912
|
-
const dispatchOptions = {
|
|
913
|
-
resourceRequestContext: {
|
|
914
|
-
requestCorrelator,
|
|
915
|
-
luvioRequestMethod: undefined,
|
|
916
|
-
},
|
|
917
|
-
eventObservers
|
|
918
|
-
};
|
|
919
|
-
if (networkPriority !== 'normal') {
|
|
920
|
-
dispatchOptions.overrides = {
|
|
921
|
-
priority: networkPriority
|
|
922
|
-
};
|
|
923
|
-
}
|
|
924
|
-
return buildNetworkSnapshot$6(luvio, config, dispatchOptions);
|
|
837
|
+
return buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext, buildNetworkSnapshot$6, undefined, false);
|
|
925
838
|
}
|
|
926
839
|
function buildCachedSnapshotCachePolicy$3(context, storeLookup) {
|
|
927
840
|
const { luvio, config } = context;
|
|
@@ -983,13 +896,14 @@ function createResourceRequest$5(config) {
|
|
|
983
896
|
};
|
|
984
897
|
}
|
|
985
898
|
|
|
986
|
-
const
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
899
|
+
const adapterName$5 = 'createMapping';
|
|
900
|
+
const createMapping_ConfigPropertyMetadata = [
|
|
901
|
+
generateParamConfigMetadata('epn', true),
|
|
902
|
+
generateParamConfigMetadata('id', true),
|
|
903
|
+
generateParamConfigMetadata('providerName', true),
|
|
904
|
+
generateParamConfigMetadata('webstoreId', true),
|
|
905
|
+
];
|
|
906
|
+
const createMapping_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, createMapping_ConfigPropertyMetadata);
|
|
993
907
|
function createResourceParams$5(config) {
|
|
994
908
|
const resourceParams = {
|
|
995
909
|
body: {
|
|
@@ -1081,14 +995,11 @@ function createResourceRequest$4(config) {
|
|
|
1081
995
|
};
|
|
1082
996
|
}
|
|
1083
997
|
|
|
1084
|
-
const adapterName = 'deleteMapping';
|
|
1085
|
-
const
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
optional: []
|
|
1090
|
-
}
|
|
1091
|
-
};
|
|
998
|
+
const adapterName$4 = 'deleteMapping';
|
|
999
|
+
const deleteMapping_ConfigPropertyMetadata = [
|
|
1000
|
+
generateParamConfigMetadata('mappingId', true),
|
|
1001
|
+
];
|
|
1002
|
+
const deleteMapping_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, deleteMapping_ConfigPropertyMetadata);
|
|
1092
1003
|
function createResourceParams$4(config) {
|
|
1093
1004
|
const resourceParams = {
|
|
1094
1005
|
urlParams: {
|
|
@@ -1140,7 +1051,7 @@ const deleteMappingAdapterFactory = (luvio) => {
|
|
|
1140
1051
|
const config = validateAdapterConfig$4(untrustedConfig, deleteMapping_ConfigPropertyNames);
|
|
1141
1052
|
// Invalid or incomplete config
|
|
1142
1053
|
if (config === null) {
|
|
1143
|
-
throw new Error(`Invalid config for "${adapterName}"`);
|
|
1054
|
+
throw new Error(`Invalid config for "${adapterName$4}"`);
|
|
1144
1055
|
}
|
|
1145
1056
|
return buildNetworkSnapshot$4(luvio, config);
|
|
1146
1057
|
};
|
|
@@ -1207,13 +1118,11 @@ function createResourceRequestFromRepresentation$1(representation) {
|
|
|
1207
1118
|
return createResourceRequest$3(config);
|
|
1208
1119
|
}
|
|
1209
1120
|
|
|
1210
|
-
const
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
}
|
|
1216
|
-
};
|
|
1121
|
+
const adapterName$3 = 'getMapping';
|
|
1122
|
+
const getMapping_ConfigPropertyMetadata = [
|
|
1123
|
+
generateParamConfigMetadata('mappingId', true),
|
|
1124
|
+
];
|
|
1125
|
+
const getMapping_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, getMapping_ConfigPropertyMetadata);
|
|
1217
1126
|
function createResourceParams$3(config) {
|
|
1218
1127
|
const resourceParams = {
|
|
1219
1128
|
urlParams: {
|
|
@@ -1279,21 +1188,7 @@ function buildNetworkSnapshot$3(luvio, config, options) {
|
|
|
1279
1188
|
});
|
|
1280
1189
|
}
|
|
1281
1190
|
function buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext) {
|
|
1282
|
-
|
|
1283
|
-
const { networkPriority, requestCorrelator, eventObservers } = coercedAdapterRequestContext;
|
|
1284
|
-
const dispatchOptions = {
|
|
1285
|
-
resourceRequestContext: {
|
|
1286
|
-
requestCorrelator,
|
|
1287
|
-
luvioRequestMethod: undefined,
|
|
1288
|
-
},
|
|
1289
|
-
eventObservers
|
|
1290
|
-
};
|
|
1291
|
-
if (networkPriority !== 'normal') {
|
|
1292
|
-
dispatchOptions.overrides = {
|
|
1293
|
-
priority: networkPriority
|
|
1294
|
-
};
|
|
1295
|
-
}
|
|
1296
|
-
return buildNetworkSnapshot$3(luvio, config, dispatchOptions);
|
|
1191
|
+
return buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext, buildNetworkSnapshot$3, undefined, false);
|
|
1297
1192
|
}
|
|
1298
1193
|
function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
|
|
1299
1194
|
const { luvio, config } = context;
|
|
@@ -1389,13 +1284,15 @@ function createResourceRequest$2(config) {
|
|
|
1389
1284
|
};
|
|
1390
1285
|
}
|
|
1391
1286
|
|
|
1392
|
-
const
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1287
|
+
const adapterName$2 = 'updateMapping';
|
|
1288
|
+
const updateMapping_ConfigPropertyMetadata = [
|
|
1289
|
+
generateParamConfigMetadata('mappingId', true),
|
|
1290
|
+
generateParamConfigMetadata('epn', true),
|
|
1291
|
+
generateParamConfigMetadata('id', true),
|
|
1292
|
+
generateParamConfigMetadata('providerName', true),
|
|
1293
|
+
generateParamConfigMetadata('webstoreId', true),
|
|
1294
|
+
];
|
|
1295
|
+
const updateMapping_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, updateMapping_ConfigPropertyMetadata);
|
|
1399
1296
|
function createResourceParams$2(config) {
|
|
1400
1297
|
const resourceParams = {
|
|
1401
1298
|
urlParams: {
|
|
@@ -1780,26 +1677,8 @@ const ingest$1 = function ProviderOutputRepresentationIngest(input, path, luvio,
|
|
|
1780
1677
|
}
|
|
1781
1678
|
}
|
|
1782
1679
|
const key = keyBuilderFromType(luvio, input);
|
|
1783
|
-
const existingRecord = store.readEntry(key);
|
|
1784
1680
|
const ttlToUse = TTL$1;
|
|
1785
|
-
|
|
1786
|
-
fullPath: key,
|
|
1787
|
-
parent: path.parent,
|
|
1788
|
-
propertyName: path.propertyName,
|
|
1789
|
-
ttl: ttlToUse
|
|
1790
|
-
});
|
|
1791
|
-
if (existingRecord === undefined || equals$1(existingRecord, incomingRecord) === false) {
|
|
1792
|
-
luvio.storePublish(key, incomingRecord);
|
|
1793
|
-
}
|
|
1794
|
-
{
|
|
1795
|
-
const storeMetadataParams = {
|
|
1796
|
-
ttl: ttlToUse,
|
|
1797
|
-
namespace: "extensions",
|
|
1798
|
-
version: VERSION$1,
|
|
1799
|
-
representationName: RepresentationType$1,
|
|
1800
|
-
};
|
|
1801
|
-
luvio.publishStoreMetadata(key, storeMetadataParams);
|
|
1802
|
-
}
|
|
1681
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$1, "extensions", VERSION$1, RepresentationType$1, equals$1);
|
|
1803
1682
|
return createLink(key);
|
|
1804
1683
|
};
|
|
1805
1684
|
function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -1855,7 +1734,7 @@ function normalize(input, existing, path, luvio, store, timestamp) {
|
|
|
1855
1734
|
existing: existing,
|
|
1856
1735
|
},
|
|
1857
1736
|
ttl: path.ttl
|
|
1858
|
-
}, luvio, store);
|
|
1737
|
+
}, luvio, store, timestamp);
|
|
1859
1738
|
}
|
|
1860
1739
|
return input;
|
|
1861
1740
|
}
|
|
@@ -1904,26 +1783,8 @@ const ingest = function ProviderOutputCollectionRepresentationIngest(input, path
|
|
|
1904
1783
|
}
|
|
1905
1784
|
}
|
|
1906
1785
|
const key = path.fullPath;
|
|
1907
|
-
const existingRecord = store.readEntry(key);
|
|
1908
1786
|
const ttlToUse = TTL;
|
|
1909
|
-
|
|
1910
|
-
fullPath: key,
|
|
1911
|
-
parent: path.parent,
|
|
1912
|
-
propertyName: path.propertyName,
|
|
1913
|
-
ttl: ttlToUse
|
|
1914
|
-
}, luvio, store);
|
|
1915
|
-
if (existingRecord === undefined || equals(existingRecord, incomingRecord) === false) {
|
|
1916
|
-
luvio.storePublish(key, incomingRecord);
|
|
1917
|
-
}
|
|
1918
|
-
{
|
|
1919
|
-
const storeMetadataParams = {
|
|
1920
|
-
ttl: ttlToUse,
|
|
1921
|
-
namespace: "extensions",
|
|
1922
|
-
version: VERSION,
|
|
1923
|
-
representationName: RepresentationType,
|
|
1924
|
-
};
|
|
1925
|
-
luvio.publishStoreMetadata(key, storeMetadataParams);
|
|
1926
|
-
}
|
|
1787
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize, "extensions", VERSION, RepresentationType, equals);
|
|
1927
1788
|
return createLink(key);
|
|
1928
1789
|
};
|
|
1929
1790
|
function getTypeCacheKeys(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -1992,13 +1853,12 @@ function createResourceRequest$1(config) {
|
|
|
1992
1853
|
};
|
|
1993
1854
|
}
|
|
1994
1855
|
|
|
1995
|
-
const
|
|
1996
|
-
|
|
1997
|
-
|
|
1998
|
-
|
|
1999
|
-
|
|
2000
|
-
|
|
2001
|
-
};
|
|
1856
|
+
const adapterName$1 = 'getProviders';
|
|
1857
|
+
const getProviders_ConfigPropertyMetadata = [
|
|
1858
|
+
generateParamConfigMetadata('effectiveMappingsWebstoreId', false),
|
|
1859
|
+
generateParamConfigMetadata('epn', false),
|
|
1860
|
+
];
|
|
1861
|
+
const getProviders_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, getProviders_ConfigPropertyMetadata);
|
|
2002
1862
|
function createResourceParams$1(config) {
|
|
2003
1863
|
const resourceParams = {
|
|
2004
1864
|
queryParams: {
|
|
@@ -2065,21 +1925,7 @@ function buildNetworkSnapshot$1(luvio, config, options) {
|
|
|
2065
1925
|
});
|
|
2066
1926
|
}
|
|
2067
1927
|
function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
|
|
2068
|
-
|
|
2069
|
-
const { networkPriority, requestCorrelator, eventObservers } = coercedAdapterRequestContext;
|
|
2070
|
-
const dispatchOptions = {
|
|
2071
|
-
resourceRequestContext: {
|
|
2072
|
-
requestCorrelator,
|
|
2073
|
-
luvioRequestMethod: undefined,
|
|
2074
|
-
},
|
|
2075
|
-
eventObservers
|
|
2076
|
-
};
|
|
2077
|
-
if (networkPriority !== 'normal') {
|
|
2078
|
-
dispatchOptions.overrides = {
|
|
2079
|
-
priority: networkPriority
|
|
2080
|
-
};
|
|
2081
|
-
}
|
|
2082
|
-
return buildNetworkSnapshot$1(luvio, config, dispatchOptions);
|
|
1928
|
+
return buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext, buildNetworkSnapshot$1, undefined, false);
|
|
2083
1929
|
}
|
|
2084
1930
|
function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
|
|
2085
1931
|
const { luvio, config } = context;
|
|
@@ -2165,13 +2011,11 @@ function createResourceRequestFromRepresentation(representation) {
|
|
|
2165
2011
|
return createResourceRequest(config);
|
|
2166
2012
|
}
|
|
2167
2013
|
|
|
2168
|
-
const
|
|
2169
|
-
|
|
2170
|
-
|
|
2171
|
-
|
|
2172
|
-
|
|
2173
|
-
}
|
|
2174
|
-
};
|
|
2014
|
+
const adapterName = 'getProvider';
|
|
2015
|
+
const getProvider_ConfigPropertyMetadata = [
|
|
2016
|
+
generateParamConfigMetadata('providerId', true),
|
|
2017
|
+
];
|
|
2018
|
+
const getProvider_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, getProvider_ConfigPropertyMetadata);
|
|
2175
2019
|
function createResourceParams(config) {
|
|
2176
2020
|
const resourceParams = {
|
|
2177
2021
|
urlParams: {
|
|
@@ -2237,21 +2081,7 @@ function buildNetworkSnapshot(luvio, config, options) {
|
|
|
2237
2081
|
});
|
|
2238
2082
|
}
|
|
2239
2083
|
function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
|
|
2240
|
-
|
|
2241
|
-
const { networkPriority, requestCorrelator, eventObservers } = coercedAdapterRequestContext;
|
|
2242
|
-
const dispatchOptions = {
|
|
2243
|
-
resourceRequestContext: {
|
|
2244
|
-
requestCorrelator,
|
|
2245
|
-
luvioRequestMethod: undefined,
|
|
2246
|
-
},
|
|
2247
|
-
eventObservers
|
|
2248
|
-
};
|
|
2249
|
-
if (networkPriority !== 'normal') {
|
|
2250
|
-
dispatchOptions.overrides = {
|
|
2251
|
-
priority: networkPriority
|
|
2252
|
-
};
|
|
2253
|
-
}
|
|
2254
|
-
return buildNetworkSnapshot(luvio, config, dispatchOptions);
|
|
2084
|
+
return buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext, buildNetworkSnapshot, undefined, false);
|
|
2255
2085
|
}
|
|
2256
2086
|
function buildCachedSnapshotCachePolicy(context, storeLookup) {
|
|
2257
2087
|
const { luvio, config } = context;
|
|
@@ -2344,7 +2174,7 @@ function bindExportsTo(luvio) {
|
|
|
2344
2174
|
}
|
|
2345
2175
|
return {
|
|
2346
2176
|
createMapping: unwrapSnapshotData(createMappingAdapterFactory),
|
|
2347
|
-
deleteMapping: createLDSAdapter(luvio, adapterName, deleteMappingAdapterFactory),
|
|
2177
|
+
deleteMapping: createLDSAdapter(luvio, adapterName$4, deleteMappingAdapterFactory),
|
|
2348
2178
|
getExtensions: createWireAdapterConstructor(luvio, getExtensions_ldsAdapter, getExtensionsMetadata),
|
|
2349
2179
|
getMapping: createWireAdapterConstructor(luvio, getMapping_ldsAdapter, getMappingMetadata),
|
|
2350
2180
|
getMappingNotifyChange: createLDSAdapter(luvio, 'getMappingNotifyChange', notifyChangeFactory$1),
|
|
@@ -2387,4 +2217,4 @@ withDefaultLuvio((luvio) => {
|
|
|
2387
2217
|
});
|
|
2388
2218
|
|
|
2389
2219
|
export { createMapping, deleteMapping, getExtensions, getExtensions_imperative, getMapping, getMappingNotifyChange, getMapping_imperative, getMappings, getMappings_imperative, getProvider, getProviderNotifyChange, getProvider_imperative, getProviders, getProviders_imperative, notifyMappingUpdateAvailable, updateMapping };
|
|
2390
|
-
// version: 1.
|
|
2220
|
+
// version: 1.213.1-79de10fe1
|