@salesforce/lds-adapters-platform-lightning-types 1.328.0 → 1.329.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/platform-lightning-types.js +630 -109
- package/dist/es/es2018/types/src/generated/adapters/getTypes.d.ts +29 -0
- package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +1 -0
- package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +3 -1
- package/dist/es/es2018/types/src/generated/resources/postConnectLightningModelTypes.d.ts +17 -0
- package/dist/es/es2018/types/src/generated/types/LightningModelEditorConfigInputRepresentation.d.ts +37 -0
- package/dist/es/es2018/types/src/generated/types/LightningModelFilterConfigInputRepresentation.d.ts +28 -0
- package/dist/es/es2018/types/src/generated/types/LightningModelRendererConfigInputRepresentation.d.ts +37 -0
- package/dist/es/es2018/types/src/generated/types/LightningModelSchemaConfigInputRepresentation.d.ts +31 -0
- package/dist/es/es2018/types/src/generated/types/LightningModelSourceDescriptorInputRepresentation.d.ts +31 -0
- package/dist/es/es2018/types/src/generated/types/LightningModelTypesCollectionRepresentation.d.ts +30 -0
- package/dist/es/es2018/types/src/generated/types/LightningModelTypesConfigInputRepresentation.d.ts +44 -0
- package/dist/es/es2018/types/src/generated/types/LightningModelTypesErrorRepresentation.d.ts +31 -0
- package/dist/es/es2018/types/src/generated/types/LightningModelTypesInputRepresentation.d.ts +32 -0
- package/dist/es/es2018/types/src/generated/types/LightningModelTypesRepresentation.d.ts +62 -0
- package/package.json +3 -3
- package/sfdc/index.js +645 -116
- package/src/raml/api.raml +220 -0
- package/src/raml/luvio.raml +27 -0
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* For full license text, see the LICENSE.txt file
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
import { serializeStructuredKey, ingestShape, deepFreeze, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$
|
|
7
|
+
import { serializeStructuredKey, ingestShape, deepFreeze, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$3, typeCheckConfig as typeCheckConfig$3, StoreKeyMap, createResourceParams as createResourceParams$3 } from '@luvio/engine';
|
|
8
8
|
|
|
9
9
|
const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
|
|
10
10
|
const { keys: ObjectKeys$1, create: ObjectCreate$1 } = Object;
|
|
@@ -93,9 +93,9 @@ function createLink(ref) {
|
|
|
93
93
|
};
|
|
94
94
|
}
|
|
95
95
|
|
|
96
|
-
const TTL$
|
|
97
|
-
const VERSION$
|
|
98
|
-
function validate$
|
|
96
|
+
const TTL$3 = 100;
|
|
97
|
+
const VERSION$3 = "4895529fcf8796413981df590ff3c2e9";
|
|
98
|
+
function validate$b(obj, path = 'LightningTypeSummaryRepresentation') {
|
|
99
99
|
const v_error = (() => {
|
|
100
100
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
101
101
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -267,58 +267,58 @@ function validate$2(obj, path = 'LightningTypeSummaryRepresentation') {
|
|
|
267
267
|
})();
|
|
268
268
|
return v_error === undefined ? null : v_error;
|
|
269
269
|
}
|
|
270
|
-
const RepresentationType$
|
|
271
|
-
function keyBuilder$
|
|
272
|
-
return keyPrefix + '::' + RepresentationType$
|
|
270
|
+
const RepresentationType$3 = 'LightningTypeSummaryRepresentation';
|
|
271
|
+
function keyBuilder$6(luvio, config) {
|
|
272
|
+
return keyPrefix + '::' + RepresentationType$3 + ':' + (config.id === null ? '' : config.id);
|
|
273
273
|
}
|
|
274
274
|
function keyBuilderFromType(luvio, object) {
|
|
275
275
|
const keyParams = {
|
|
276
276
|
id: object.developerName
|
|
277
277
|
};
|
|
278
|
-
return keyBuilder$
|
|
278
|
+
return keyBuilder$6(luvio, keyParams);
|
|
279
279
|
}
|
|
280
|
-
function normalize$
|
|
280
|
+
function normalize$3(input, existing, path, luvio, store, timestamp) {
|
|
281
281
|
return input;
|
|
282
282
|
}
|
|
283
|
-
const select$
|
|
283
|
+
const select$6 = function LightningTypeSummaryRepresentationSelect() {
|
|
284
284
|
return {
|
|
285
285
|
kind: 'Fragment',
|
|
286
|
-
version: VERSION$
|
|
286
|
+
version: VERSION$3,
|
|
287
287
|
private: [],
|
|
288
288
|
opaque: true
|
|
289
289
|
};
|
|
290
290
|
};
|
|
291
|
-
function equals$
|
|
291
|
+
function equals$3(existing, incoming) {
|
|
292
292
|
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
293
293
|
return false;
|
|
294
294
|
}
|
|
295
295
|
return true;
|
|
296
296
|
}
|
|
297
|
-
const ingest$
|
|
297
|
+
const ingest$3 = function LightningTypeSummaryRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
298
298
|
if (process.env.NODE_ENV !== 'production') {
|
|
299
|
-
const validateError = validate$
|
|
299
|
+
const validateError = validate$b(input);
|
|
300
300
|
if (validateError !== null) {
|
|
301
301
|
throw validateError;
|
|
302
302
|
}
|
|
303
303
|
}
|
|
304
304
|
const key = keyBuilderFromType(luvio, input);
|
|
305
|
-
const ttlToUse = TTL$
|
|
306
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
305
|
+
const ttlToUse = TTL$3;
|
|
306
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$3, "lightning-types", VERSION$3, RepresentationType$3, equals$3);
|
|
307
307
|
return createLink(key);
|
|
308
308
|
};
|
|
309
|
-
function getTypeCacheKeys$
|
|
309
|
+
function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
|
|
310
310
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
311
311
|
const rootKey = keyBuilderFromType(luvio, input);
|
|
312
312
|
rootKeySet.set(rootKey, {
|
|
313
313
|
namespace: keyPrefix,
|
|
314
|
-
representationName: RepresentationType$
|
|
314
|
+
representationName: RepresentationType$3,
|
|
315
315
|
mergeable: false
|
|
316
316
|
});
|
|
317
317
|
}
|
|
318
318
|
|
|
319
|
-
const TTL$
|
|
320
|
-
const VERSION$
|
|
321
|
-
function validate$
|
|
319
|
+
const TTL$2 = 100;
|
|
320
|
+
const VERSION$2 = "c66a5dd98fb4b617c447b5ec059204fd";
|
|
321
|
+
function validate$a(obj, path = 'LightningTypeCollectionRepresentation') {
|
|
322
322
|
const v_error = (() => {
|
|
323
323
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
324
324
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -425,14 +425,14 @@ function validate$1(obj, path = 'LightningTypeCollectionRepresentation') {
|
|
|
425
425
|
})();
|
|
426
426
|
return v_error === undefined ? null : v_error;
|
|
427
427
|
}
|
|
428
|
-
const RepresentationType$
|
|
429
|
-
function normalize$
|
|
428
|
+
const RepresentationType$2 = 'LightningTypeCollectionRepresentation';
|
|
429
|
+
function normalize$2(input, existing, path, luvio, store, timestamp) {
|
|
430
430
|
const input_lightningTypes = input.lightningTypes;
|
|
431
431
|
const input_lightningTypes_id = path.fullPath + '__lightningTypes';
|
|
432
432
|
for (let i = 0; i < input_lightningTypes.length; i++) {
|
|
433
433
|
const input_lightningTypes_item = input_lightningTypes[i];
|
|
434
434
|
let input_lightningTypes_item_id = input_lightningTypes_id + '__' + i;
|
|
435
|
-
input_lightningTypes[i] = ingest$
|
|
435
|
+
input_lightningTypes[i] = ingest$3(input_lightningTypes_item, {
|
|
436
436
|
fullPath: input_lightningTypes_item_id,
|
|
437
437
|
propertyName: i,
|
|
438
438
|
parent: {
|
|
@@ -445,10 +445,10 @@ function normalize$1(input, existing, path, luvio, store, timestamp) {
|
|
|
445
445
|
}
|
|
446
446
|
return input;
|
|
447
447
|
}
|
|
448
|
-
const select$
|
|
448
|
+
const select$5 = function LightningTypeCollectionRepresentationSelect() {
|
|
449
449
|
return {
|
|
450
450
|
kind: 'Fragment',
|
|
451
|
-
version: VERSION$
|
|
451
|
+
version: VERSION$2,
|
|
452
452
|
private: [],
|
|
453
453
|
selections: [
|
|
454
454
|
{
|
|
@@ -463,7 +463,7 @@ const select$3 = function LightningTypeCollectionRepresentationSelect() {
|
|
|
463
463
|
name: 'lightningTypes',
|
|
464
464
|
kind: 'Link',
|
|
465
465
|
plural: true,
|
|
466
|
-
fragment: select$
|
|
466
|
+
fragment: select$6()
|
|
467
467
|
},
|
|
468
468
|
{
|
|
469
469
|
name: 'nextPageUrl',
|
|
@@ -478,7 +478,7 @@ const select$3 = function LightningTypeCollectionRepresentationSelect() {
|
|
|
478
478
|
]
|
|
479
479
|
};
|
|
480
480
|
};
|
|
481
|
-
function equals$
|
|
481
|
+
function equals$2(existing, incoming) {
|
|
482
482
|
const existing_count = existing.count;
|
|
483
483
|
const incoming_count = incoming.count;
|
|
484
484
|
if (!(existing_count === incoming_count)) {
|
|
@@ -527,48 +527,48 @@ function equals$1(existing, incoming) {
|
|
|
527
527
|
}
|
|
528
528
|
return true;
|
|
529
529
|
}
|
|
530
|
-
const ingest$
|
|
530
|
+
const ingest$2 = function LightningTypeCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
531
531
|
if (process.env.NODE_ENV !== 'production') {
|
|
532
|
-
const validateError = validate$
|
|
532
|
+
const validateError = validate$a(input);
|
|
533
533
|
if (validateError !== null) {
|
|
534
534
|
throw validateError;
|
|
535
535
|
}
|
|
536
536
|
}
|
|
537
537
|
const key = path.fullPath;
|
|
538
|
-
const ttlToUse = TTL$
|
|
539
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
538
|
+
const ttlToUse = TTL$2;
|
|
539
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$2, "lightning-types", VERSION$2, RepresentationType$2, equals$2);
|
|
540
540
|
return createLink(key);
|
|
541
541
|
};
|
|
542
|
-
function getTypeCacheKeys$
|
|
542
|
+
function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
|
|
543
543
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
544
544
|
const rootKey = fullPathFactory();
|
|
545
545
|
rootKeySet.set(rootKey, {
|
|
546
546
|
namespace: keyPrefix,
|
|
547
|
-
representationName: RepresentationType$
|
|
547
|
+
representationName: RepresentationType$2,
|
|
548
548
|
mergeable: false
|
|
549
549
|
});
|
|
550
550
|
const input_lightningTypes_length = input.lightningTypes.length;
|
|
551
551
|
for (let i = 0; i < input_lightningTypes_length; i++) {
|
|
552
|
-
getTypeCacheKeys$
|
|
552
|
+
getTypeCacheKeys$3(rootKeySet, luvio, input.lightningTypes[i]);
|
|
553
553
|
}
|
|
554
554
|
}
|
|
555
555
|
|
|
556
|
-
function select$
|
|
557
|
-
return select$
|
|
556
|
+
function select$4(luvio, params) {
|
|
557
|
+
return select$5();
|
|
558
558
|
}
|
|
559
|
-
function keyBuilder$
|
|
559
|
+
function keyBuilder$5(luvio, params) {
|
|
560
560
|
return keyPrefix + '::LightningTypeCollectionRepresentation:(' + 'editorConfigTarget:' + params.queryParams.editorConfigTarget + ',' + 'fullyQualifiedNames:' + params.queryParams.fullyQualifiedNames + ',' + 'language:' + params.queryParams.language + ',' + 'page:' + params.queryParams.page + ',' + 'pageSize:' + params.queryParams.pageSize + ',' + 'rendererConfigTarget:' + params.queryParams.rendererConfigTarget + ')';
|
|
561
561
|
}
|
|
562
|
-
function getResponseCacheKeys$
|
|
563
|
-
getTypeCacheKeys$
|
|
562
|
+
function getResponseCacheKeys$2(storeKeyMap, luvio, resourceParams, response) {
|
|
563
|
+
getTypeCacheKeys$2(storeKeyMap, luvio, response, () => keyBuilder$5(luvio, resourceParams));
|
|
564
564
|
}
|
|
565
|
-
function ingestSuccess$
|
|
565
|
+
function ingestSuccess$2(luvio, resourceParams, response, snapshotRefresh) {
|
|
566
566
|
const { body } = response;
|
|
567
|
-
const key = keyBuilder$
|
|
568
|
-
luvio.storeIngest(key, ingest$
|
|
567
|
+
const key = keyBuilder$5(luvio, resourceParams);
|
|
568
|
+
luvio.storeIngest(key, ingest$2, body);
|
|
569
569
|
const snapshot = luvio.storeLookup({
|
|
570
570
|
recordId: key,
|
|
571
|
-
node: select$
|
|
571
|
+
node: select$4(),
|
|
572
572
|
variables: {},
|
|
573
573
|
}, snapshotRefresh);
|
|
574
574
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -579,19 +579,19 @@ function ingestSuccess$1(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
579
579
|
deepFreeze(snapshot.data);
|
|
580
580
|
return snapshot;
|
|
581
581
|
}
|
|
582
|
-
function ingestError$
|
|
583
|
-
const key = keyBuilder$
|
|
582
|
+
function ingestError$2(luvio, params, error, snapshotRefresh) {
|
|
583
|
+
const key = keyBuilder$5(luvio, params);
|
|
584
584
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
585
585
|
const storeMetadataParams = {
|
|
586
|
-
ttl: TTL$
|
|
586
|
+
ttl: TTL$2,
|
|
587
587
|
namespace: keyPrefix,
|
|
588
|
-
version: VERSION$
|
|
589
|
-
representationName: RepresentationType$
|
|
588
|
+
version: VERSION$2,
|
|
589
|
+
representationName: RepresentationType$2
|
|
590
590
|
};
|
|
591
591
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
592
592
|
return errorSnapshot;
|
|
593
593
|
}
|
|
594
|
-
function createResourceRequest$
|
|
594
|
+
function createResourceRequest$2(config) {
|
|
595
595
|
const headers = {};
|
|
596
596
|
return {
|
|
597
597
|
baseUri: '/services/data/v63.0',
|
|
@@ -605,7 +605,7 @@ function createResourceRequest$1(config) {
|
|
|
605
605
|
};
|
|
606
606
|
}
|
|
607
607
|
|
|
608
|
-
const adapterName$
|
|
608
|
+
const adapterName$2 = 'getLightningTypes';
|
|
609
609
|
const getLightningTypes_ConfigPropertyMetadata = [
|
|
610
610
|
generateParamConfigMetadata('editorConfigTarget', false, 1 /* QueryParameter */, 0 /* String */),
|
|
611
611
|
generateParamConfigMetadata('fullyQualifiedNames', false, 1 /* QueryParameter */, 0 /* String */, true),
|
|
@@ -614,91 +614,91 @@ const getLightningTypes_ConfigPropertyMetadata = [
|
|
|
614
614
|
generateParamConfigMetadata('pageSize', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
615
615
|
generateParamConfigMetadata('rendererConfigTarget', false, 1 /* QueryParameter */, 0 /* String */),
|
|
616
616
|
];
|
|
617
|
-
const getLightningTypes_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
618
|
-
const createResourceParams$
|
|
619
|
-
function keyBuilder$
|
|
620
|
-
const resourceParams = createResourceParams$
|
|
621
|
-
return keyBuilder$
|
|
617
|
+
const getLightningTypes_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, getLightningTypes_ConfigPropertyMetadata);
|
|
618
|
+
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$3(getLightningTypes_ConfigPropertyMetadata);
|
|
619
|
+
function keyBuilder$4(luvio, config) {
|
|
620
|
+
const resourceParams = createResourceParams$2(config);
|
|
621
|
+
return keyBuilder$5(luvio, resourceParams);
|
|
622
622
|
}
|
|
623
|
-
function typeCheckConfig$
|
|
623
|
+
function typeCheckConfig$2(untrustedConfig) {
|
|
624
624
|
const config = {};
|
|
625
|
-
typeCheckConfig$
|
|
625
|
+
typeCheckConfig$3(untrustedConfig, config, getLightningTypes_ConfigPropertyMetadata);
|
|
626
626
|
return config;
|
|
627
627
|
}
|
|
628
|
-
function validateAdapterConfig$
|
|
628
|
+
function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
|
|
629
629
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
630
630
|
return null;
|
|
631
631
|
}
|
|
632
632
|
if (process.env.NODE_ENV !== 'production') {
|
|
633
633
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
634
634
|
}
|
|
635
|
-
const config = typeCheckConfig$
|
|
635
|
+
const config = typeCheckConfig$2(untrustedConfig);
|
|
636
636
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
637
637
|
return null;
|
|
638
638
|
}
|
|
639
639
|
return config;
|
|
640
640
|
}
|
|
641
|
-
function adapterFragment$
|
|
642
|
-
createResourceParams$
|
|
643
|
-
return select$
|
|
641
|
+
function adapterFragment$2(luvio, config) {
|
|
642
|
+
createResourceParams$2(config);
|
|
643
|
+
return select$4();
|
|
644
644
|
}
|
|
645
|
-
function onFetchResponseSuccess$
|
|
646
|
-
const snapshot = ingestSuccess$
|
|
645
|
+
function onFetchResponseSuccess$2(luvio, config, resourceParams, response) {
|
|
646
|
+
const snapshot = ingestSuccess$2(luvio, resourceParams, response, {
|
|
647
647
|
config,
|
|
648
|
-
resolve: () => buildNetworkSnapshot$
|
|
648
|
+
resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
|
|
649
649
|
});
|
|
650
650
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
651
651
|
}
|
|
652
|
-
function onFetchResponseError$
|
|
653
|
-
const snapshot = ingestError$
|
|
652
|
+
function onFetchResponseError$2(luvio, config, resourceParams, response) {
|
|
653
|
+
const snapshot = ingestError$2(luvio, resourceParams, response, {
|
|
654
654
|
config,
|
|
655
|
-
resolve: () => buildNetworkSnapshot$
|
|
655
|
+
resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
|
|
656
656
|
});
|
|
657
657
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
658
658
|
}
|
|
659
|
-
function buildNetworkSnapshot$
|
|
660
|
-
const resourceParams = createResourceParams$
|
|
661
|
-
const request = createResourceRequest$
|
|
659
|
+
function buildNetworkSnapshot$2(luvio, config, options) {
|
|
660
|
+
const resourceParams = createResourceParams$2(config);
|
|
661
|
+
const request = createResourceRequest$2(resourceParams);
|
|
662
662
|
return luvio.dispatchResourceRequest(request, options)
|
|
663
663
|
.then((response) => {
|
|
664
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
664
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$2(luvio, config, resourceParams, response), () => {
|
|
665
665
|
const cache = new StoreKeyMap();
|
|
666
|
-
getResponseCacheKeys$
|
|
666
|
+
getResponseCacheKeys$2(cache, luvio, resourceParams, response.body);
|
|
667
667
|
return cache;
|
|
668
668
|
});
|
|
669
669
|
}, (response) => {
|
|
670
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
670
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$2(luvio, config, resourceParams, response));
|
|
671
671
|
});
|
|
672
672
|
}
|
|
673
|
-
function buildNetworkSnapshotCachePolicy$
|
|
674
|
-
return buildNetworkSnapshotCachePolicy$
|
|
673
|
+
function buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext) {
|
|
674
|
+
return buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext, buildNetworkSnapshot$2, undefined, false);
|
|
675
675
|
}
|
|
676
|
-
function buildCachedSnapshotCachePolicy$
|
|
676
|
+
function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
|
|
677
677
|
const { luvio, config } = context;
|
|
678
678
|
const selector = {
|
|
679
|
-
recordId: keyBuilder$
|
|
680
|
-
node: adapterFragment$
|
|
679
|
+
recordId: keyBuilder$4(luvio, config),
|
|
680
|
+
node: adapterFragment$2(luvio, config),
|
|
681
681
|
variables: {},
|
|
682
682
|
};
|
|
683
683
|
const cacheSnapshot = storeLookup(selector, {
|
|
684
684
|
config,
|
|
685
|
-
resolve: () => buildNetworkSnapshot$
|
|
685
|
+
resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
|
|
686
686
|
});
|
|
687
687
|
return cacheSnapshot;
|
|
688
688
|
}
|
|
689
689
|
const getLightningTypesAdapterFactory = (luvio) => function lightningTypes__getLightningTypes(untrustedConfig, requestContext) {
|
|
690
|
-
const config = validateAdapterConfig$
|
|
690
|
+
const config = validateAdapterConfig$2(untrustedConfig, getLightningTypes_ConfigPropertyNames);
|
|
691
691
|
// Invalid or incomplete config
|
|
692
692
|
if (config === null) {
|
|
693
693
|
return null;
|
|
694
694
|
}
|
|
695
695
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
696
|
-
buildCachedSnapshotCachePolicy$
|
|
696
|
+
buildCachedSnapshotCachePolicy$2, buildNetworkSnapshotCachePolicy$2);
|
|
697
697
|
};
|
|
698
698
|
|
|
699
|
-
const TTL = 100;
|
|
700
|
-
const VERSION = "ec107620eea2293ec74a88bdcac66085";
|
|
701
|
-
function validate(obj, path = 'LightningTypeDetailRepresentation') {
|
|
699
|
+
const TTL$1 = 100;
|
|
700
|
+
const VERSION$1 = "ec107620eea2293ec74a88bdcac66085";
|
|
701
|
+
function validate$9(obj, path = 'LightningTypeDetailRepresentation') {
|
|
702
702
|
const v_error = (() => {
|
|
703
703
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
704
704
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -828,11 +828,523 @@ function validate(obj, path = 'LightningTypeDetailRepresentation') {
|
|
|
828
828
|
})();
|
|
829
829
|
return v_error === undefined ? null : v_error;
|
|
830
830
|
}
|
|
831
|
-
const RepresentationType = 'LightningTypeDetailRepresentation';
|
|
831
|
+
const RepresentationType$1 = 'LightningTypeDetailRepresentation';
|
|
832
|
+
function normalize$1(input, existing, path, luvio, store, timestamp) {
|
|
833
|
+
return input;
|
|
834
|
+
}
|
|
835
|
+
const select$3 = function LightningTypeDetailRepresentationSelect() {
|
|
836
|
+
return {
|
|
837
|
+
kind: 'Fragment',
|
|
838
|
+
version: VERSION$1,
|
|
839
|
+
private: [],
|
|
840
|
+
opaque: true
|
|
841
|
+
};
|
|
842
|
+
};
|
|
843
|
+
function equals$1(existing, incoming) {
|
|
844
|
+
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
845
|
+
return false;
|
|
846
|
+
}
|
|
847
|
+
return true;
|
|
848
|
+
}
|
|
849
|
+
const ingest$1 = function LightningTypeDetailRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
850
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
851
|
+
const validateError = validate$9(input);
|
|
852
|
+
if (validateError !== null) {
|
|
853
|
+
throw validateError;
|
|
854
|
+
}
|
|
855
|
+
}
|
|
856
|
+
const key = path.fullPath;
|
|
857
|
+
const ttlToUse = TTL$1;
|
|
858
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$1, "lightning-types", VERSION$1, RepresentationType$1, equals$1);
|
|
859
|
+
return createLink(key);
|
|
860
|
+
};
|
|
861
|
+
function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
862
|
+
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
863
|
+
const rootKey = fullPathFactory();
|
|
864
|
+
rootKeySet.set(rootKey, {
|
|
865
|
+
namespace: keyPrefix,
|
|
866
|
+
representationName: RepresentationType$1,
|
|
867
|
+
mergeable: false
|
|
868
|
+
});
|
|
869
|
+
}
|
|
870
|
+
|
|
871
|
+
function select$2(luvio, params) {
|
|
872
|
+
return select$3();
|
|
873
|
+
}
|
|
874
|
+
function keyBuilder$3(luvio, params) {
|
|
875
|
+
return keyPrefix + '::LightningTypeDetailRepresentation:(' + 'editorConfigTarget:' + params.queryParams.editorConfigTarget + ',' + 'includeSubSchemaDefinitions:' + params.queryParams.includeSubSchemaDefinitions + ',' + 'language:' + params.queryParams.language + ',' + 'rendererConfigTarget:' + params.queryParams.rendererConfigTarget + ',' + 'fullyQualifiedName:' + params.urlParams.fullyQualifiedName + ')';
|
|
876
|
+
}
|
|
877
|
+
function getResponseCacheKeys$1(storeKeyMap, luvio, resourceParams, response) {
|
|
878
|
+
getTypeCacheKeys$1(storeKeyMap, luvio, response, () => keyBuilder$3(luvio, resourceParams));
|
|
879
|
+
}
|
|
880
|
+
function ingestSuccess$1(luvio, resourceParams, response, snapshotRefresh) {
|
|
881
|
+
const { body } = response;
|
|
882
|
+
const key = keyBuilder$3(luvio, resourceParams);
|
|
883
|
+
luvio.storeIngest(key, ingest$1, body);
|
|
884
|
+
const snapshot = luvio.storeLookup({
|
|
885
|
+
recordId: key,
|
|
886
|
+
node: select$2(),
|
|
887
|
+
variables: {},
|
|
888
|
+
}, snapshotRefresh);
|
|
889
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
890
|
+
if (snapshot.state !== 'Fulfilled') {
|
|
891
|
+
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
892
|
+
}
|
|
893
|
+
}
|
|
894
|
+
deepFreeze(snapshot.data);
|
|
895
|
+
return snapshot;
|
|
896
|
+
}
|
|
897
|
+
function ingestError$1(luvio, params, error, snapshotRefresh) {
|
|
898
|
+
const key = keyBuilder$3(luvio, params);
|
|
899
|
+
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
900
|
+
const storeMetadataParams = {
|
|
901
|
+
ttl: TTL$1,
|
|
902
|
+
namespace: keyPrefix,
|
|
903
|
+
version: VERSION$1,
|
|
904
|
+
representationName: RepresentationType$1
|
|
905
|
+
};
|
|
906
|
+
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
907
|
+
return errorSnapshot;
|
|
908
|
+
}
|
|
909
|
+
function createResourceRequest$1(config) {
|
|
910
|
+
const headers = {};
|
|
911
|
+
return {
|
|
912
|
+
baseUri: '/services/data/v63.0',
|
|
913
|
+
basePath: '/connect/lightning-types/' + config.urlParams.fullyQualifiedName + '',
|
|
914
|
+
method: 'get',
|
|
915
|
+
body: null,
|
|
916
|
+
urlParams: config.urlParams,
|
|
917
|
+
queryParams: config.queryParams,
|
|
918
|
+
headers,
|
|
919
|
+
priority: 'normal',
|
|
920
|
+
};
|
|
921
|
+
}
|
|
922
|
+
|
|
923
|
+
const adapterName$1 = 'getLightningType';
|
|
924
|
+
const getLightningType_ConfigPropertyMetadata = [
|
|
925
|
+
generateParamConfigMetadata('fullyQualifiedName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
926
|
+
generateParamConfigMetadata('editorConfigTarget', false, 1 /* QueryParameter */, 0 /* String */),
|
|
927
|
+
generateParamConfigMetadata('includeSubSchemaDefinitions', false, 1 /* QueryParameter */, 1 /* Boolean */),
|
|
928
|
+
generateParamConfigMetadata('language', false, 1 /* QueryParameter */, 0 /* String */),
|
|
929
|
+
generateParamConfigMetadata('rendererConfigTarget', false, 1 /* QueryParameter */, 0 /* String */),
|
|
930
|
+
];
|
|
931
|
+
const getLightningType_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, getLightningType_ConfigPropertyMetadata);
|
|
932
|
+
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$3(getLightningType_ConfigPropertyMetadata);
|
|
933
|
+
function keyBuilder$2(luvio, config) {
|
|
934
|
+
const resourceParams = createResourceParams$1(config);
|
|
935
|
+
return keyBuilder$3(luvio, resourceParams);
|
|
936
|
+
}
|
|
937
|
+
function typeCheckConfig$1(untrustedConfig) {
|
|
938
|
+
const config = {};
|
|
939
|
+
typeCheckConfig$3(untrustedConfig, config, getLightningType_ConfigPropertyMetadata);
|
|
940
|
+
return config;
|
|
941
|
+
}
|
|
942
|
+
function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
|
|
943
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
944
|
+
return null;
|
|
945
|
+
}
|
|
946
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
947
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
948
|
+
}
|
|
949
|
+
const config = typeCheckConfig$1(untrustedConfig);
|
|
950
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
951
|
+
return null;
|
|
952
|
+
}
|
|
953
|
+
return config;
|
|
954
|
+
}
|
|
955
|
+
function adapterFragment$1(luvio, config) {
|
|
956
|
+
createResourceParams$1(config);
|
|
957
|
+
return select$2();
|
|
958
|
+
}
|
|
959
|
+
function onFetchResponseSuccess$1(luvio, config, resourceParams, response) {
|
|
960
|
+
const snapshot = ingestSuccess$1(luvio, resourceParams, response, {
|
|
961
|
+
config,
|
|
962
|
+
resolve: () => buildNetworkSnapshot$1(luvio, config, snapshotRefreshOptions)
|
|
963
|
+
});
|
|
964
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
965
|
+
}
|
|
966
|
+
function onFetchResponseError$1(luvio, config, resourceParams, response) {
|
|
967
|
+
const snapshot = ingestError$1(luvio, resourceParams, response, {
|
|
968
|
+
config,
|
|
969
|
+
resolve: () => buildNetworkSnapshot$1(luvio, config, snapshotRefreshOptions)
|
|
970
|
+
});
|
|
971
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
972
|
+
}
|
|
973
|
+
function buildNetworkSnapshot$1(luvio, config, options) {
|
|
974
|
+
const resourceParams = createResourceParams$1(config);
|
|
975
|
+
const request = createResourceRequest$1(resourceParams);
|
|
976
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
977
|
+
.then((response) => {
|
|
978
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$1(luvio, config, resourceParams, response), () => {
|
|
979
|
+
const cache = new StoreKeyMap();
|
|
980
|
+
getResponseCacheKeys$1(cache, luvio, resourceParams, response.body);
|
|
981
|
+
return cache;
|
|
982
|
+
});
|
|
983
|
+
}, (response) => {
|
|
984
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$1(luvio, config, resourceParams, response));
|
|
985
|
+
});
|
|
986
|
+
}
|
|
987
|
+
function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
|
|
988
|
+
return buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext, buildNetworkSnapshot$1, undefined, false);
|
|
989
|
+
}
|
|
990
|
+
function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
|
|
991
|
+
const { luvio, config } = context;
|
|
992
|
+
const selector = {
|
|
993
|
+
recordId: keyBuilder$2(luvio, config),
|
|
994
|
+
node: adapterFragment$1(luvio, config),
|
|
995
|
+
variables: {},
|
|
996
|
+
};
|
|
997
|
+
const cacheSnapshot = storeLookup(selector, {
|
|
998
|
+
config,
|
|
999
|
+
resolve: () => buildNetworkSnapshot$1(luvio, config, snapshotRefreshOptions)
|
|
1000
|
+
});
|
|
1001
|
+
return cacheSnapshot;
|
|
1002
|
+
}
|
|
1003
|
+
const getLightningTypeAdapterFactory = (luvio) => function lightningTypes__getLightningType(untrustedConfig, requestContext) {
|
|
1004
|
+
const config = validateAdapterConfig$1(untrustedConfig, getLightningType_ConfigPropertyNames);
|
|
1005
|
+
// Invalid or incomplete config
|
|
1006
|
+
if (config === null) {
|
|
1007
|
+
return null;
|
|
1008
|
+
}
|
|
1009
|
+
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
1010
|
+
buildCachedSnapshotCachePolicy$1, buildNetworkSnapshotCachePolicy$1);
|
|
1011
|
+
};
|
|
1012
|
+
|
|
1013
|
+
function validate$8(obj, path = 'LightningModelEditorConfigInputRepresentation') {
|
|
1014
|
+
const v_error = (() => {
|
|
1015
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1016
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1017
|
+
}
|
|
1018
|
+
if (obj.actionConfig !== undefined) {
|
|
1019
|
+
const obj_actionConfig = obj.actionConfig;
|
|
1020
|
+
const path_actionConfig = path + '.actionConfig';
|
|
1021
|
+
if (typeof obj_actionConfig !== 'boolean') {
|
|
1022
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_actionConfig + '" (at "' + path_actionConfig + '")');
|
|
1023
|
+
}
|
|
1024
|
+
}
|
|
1025
|
+
if (obj.maxViewDepth !== undefined) {
|
|
1026
|
+
const obj_maxViewDepth = obj.maxViewDepth;
|
|
1027
|
+
const path_maxViewDepth = path + '.maxViewDepth';
|
|
1028
|
+
if (typeof obj_maxViewDepth !== 'number' || (typeof obj_maxViewDepth === 'number' && Math.floor(obj_maxViewDepth) !== obj_maxViewDepth)) {
|
|
1029
|
+
return new TypeError('Expected "integer" but received "' + typeof obj_maxViewDepth + '" (at "' + path_maxViewDepth + '")');
|
|
1030
|
+
}
|
|
1031
|
+
}
|
|
1032
|
+
if (obj.subViewDefinitions !== undefined) {
|
|
1033
|
+
const obj_subViewDefinitions = obj.subViewDefinitions;
|
|
1034
|
+
const path_subViewDefinitions = path + '.subViewDefinitions';
|
|
1035
|
+
if (typeof obj_subViewDefinitions !== 'boolean') {
|
|
1036
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_subViewDefinitions + '" (at "' + path_subViewDefinitions + '")');
|
|
1037
|
+
}
|
|
1038
|
+
}
|
|
1039
|
+
if (obj.target !== undefined) {
|
|
1040
|
+
const obj_target = obj.target;
|
|
1041
|
+
const path_target = path + '.target';
|
|
1042
|
+
if (typeof obj_target !== 'string') {
|
|
1043
|
+
return new TypeError('Expected "string" but received "' + typeof obj_target + '" (at "' + path_target + '")');
|
|
1044
|
+
}
|
|
1045
|
+
}
|
|
1046
|
+
})();
|
|
1047
|
+
return v_error === undefined ? null : v_error;
|
|
1048
|
+
}
|
|
1049
|
+
|
|
1050
|
+
function validate$7(obj, path = 'LightningModelRendererConfigInputRepresentation') {
|
|
1051
|
+
const v_error = (() => {
|
|
1052
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1053
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1054
|
+
}
|
|
1055
|
+
if (obj.actionConfig !== undefined) {
|
|
1056
|
+
const obj_actionConfig = obj.actionConfig;
|
|
1057
|
+
const path_actionConfig = path + '.actionConfig';
|
|
1058
|
+
if (typeof obj_actionConfig !== 'boolean') {
|
|
1059
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_actionConfig + '" (at "' + path_actionConfig + '")');
|
|
1060
|
+
}
|
|
1061
|
+
}
|
|
1062
|
+
if (obj.maxViewDepth !== undefined) {
|
|
1063
|
+
const obj_maxViewDepth = obj.maxViewDepth;
|
|
1064
|
+
const path_maxViewDepth = path + '.maxViewDepth';
|
|
1065
|
+
if (typeof obj_maxViewDepth !== 'number' || (typeof obj_maxViewDepth === 'number' && Math.floor(obj_maxViewDepth) !== obj_maxViewDepth)) {
|
|
1066
|
+
return new TypeError('Expected "integer" but received "' + typeof obj_maxViewDepth + '" (at "' + path_maxViewDepth + '")');
|
|
1067
|
+
}
|
|
1068
|
+
}
|
|
1069
|
+
if (obj.subViewDefinitions !== undefined) {
|
|
1070
|
+
const obj_subViewDefinitions = obj.subViewDefinitions;
|
|
1071
|
+
const path_subViewDefinitions = path + '.subViewDefinitions';
|
|
1072
|
+
if (typeof obj_subViewDefinitions !== 'boolean') {
|
|
1073
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_subViewDefinitions + '" (at "' + path_subViewDefinitions + '")');
|
|
1074
|
+
}
|
|
1075
|
+
}
|
|
1076
|
+
if (obj.target !== undefined) {
|
|
1077
|
+
const obj_target = obj.target;
|
|
1078
|
+
const path_target = path + '.target';
|
|
1079
|
+
if (typeof obj_target !== 'string') {
|
|
1080
|
+
return new TypeError('Expected "string" but received "' + typeof obj_target + '" (at "' + path_target + '")');
|
|
1081
|
+
}
|
|
1082
|
+
}
|
|
1083
|
+
})();
|
|
1084
|
+
return v_error === undefined ? null : v_error;
|
|
1085
|
+
}
|
|
1086
|
+
|
|
1087
|
+
function validate$6(obj, path = 'LightningModelFilterConfigInputRepresentation') {
|
|
1088
|
+
const v_error = (() => {
|
|
1089
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1090
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1091
|
+
}
|
|
1092
|
+
const obj_propertyNames = obj.propertyNames;
|
|
1093
|
+
const path_propertyNames = path + '.propertyNames';
|
|
1094
|
+
if (!ArrayIsArray(obj_propertyNames)) {
|
|
1095
|
+
return new TypeError('Expected "array" but received "' + typeof obj_propertyNames + '" (at "' + path_propertyNames + '")');
|
|
1096
|
+
}
|
|
1097
|
+
for (let i = 0; i < obj_propertyNames.length; i++) {
|
|
1098
|
+
const obj_propertyNames_item = obj_propertyNames[i];
|
|
1099
|
+
const path_propertyNames_item = path_propertyNames + '[' + i + ']';
|
|
1100
|
+
if (typeof obj_propertyNames_item !== 'string') {
|
|
1101
|
+
return new TypeError('Expected "string" but received "' + typeof obj_propertyNames_item + '" (at "' + path_propertyNames_item + '")');
|
|
1102
|
+
}
|
|
1103
|
+
}
|
|
1104
|
+
})();
|
|
1105
|
+
return v_error === undefined ? null : v_error;
|
|
1106
|
+
}
|
|
1107
|
+
|
|
1108
|
+
function validate$5(obj, path = 'LightningModelSchemaConfigInputRepresentation') {
|
|
1109
|
+
const v_error = (() => {
|
|
1110
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1111
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1112
|
+
}
|
|
1113
|
+
if (obj.filterConfig !== undefined) {
|
|
1114
|
+
const obj_filterConfig = obj.filterConfig;
|
|
1115
|
+
const path_filterConfig = path + '.filterConfig';
|
|
1116
|
+
const referencepath_filterConfigValidationError = validate$6(obj_filterConfig, path_filterConfig);
|
|
1117
|
+
if (referencepath_filterConfigValidationError !== null) {
|
|
1118
|
+
let message = 'Object doesn\'t match LightningModelFilterConfigInputRepresentation (at "' + path_filterConfig + '")\n';
|
|
1119
|
+
message += referencepath_filterConfigValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
1120
|
+
return new TypeError(message);
|
|
1121
|
+
}
|
|
1122
|
+
}
|
|
1123
|
+
if (obj.subSchemaDefinitions !== undefined) {
|
|
1124
|
+
const obj_subSchemaDefinitions = obj.subSchemaDefinitions;
|
|
1125
|
+
const path_subSchemaDefinitions = path + '.subSchemaDefinitions';
|
|
1126
|
+
if (typeof obj_subSchemaDefinitions !== 'boolean') {
|
|
1127
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_subSchemaDefinitions + '" (at "' + path_subSchemaDefinitions + '")');
|
|
1128
|
+
}
|
|
1129
|
+
}
|
|
1130
|
+
})();
|
|
1131
|
+
return v_error === undefined ? null : v_error;
|
|
1132
|
+
}
|
|
1133
|
+
|
|
1134
|
+
function validate$4(obj, path = 'LightningModelSourceDescriptorInputRepresentation') {
|
|
1135
|
+
const v_error = (() => {
|
|
1136
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1137
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1138
|
+
}
|
|
1139
|
+
if (obj.descriptor !== undefined) {
|
|
1140
|
+
const obj_descriptor = obj.descriptor;
|
|
1141
|
+
const path_descriptor = path + '.descriptor';
|
|
1142
|
+
if (typeof obj_descriptor !== 'string') {
|
|
1143
|
+
return new TypeError('Expected "string" but received "' + typeof obj_descriptor + '" (at "' + path_descriptor + '")');
|
|
1144
|
+
}
|
|
1145
|
+
}
|
|
1146
|
+
if (obj.propertyName !== undefined) {
|
|
1147
|
+
const obj_propertyName = obj.propertyName;
|
|
1148
|
+
const path_propertyName = path + '.propertyName';
|
|
1149
|
+
if (typeof obj_propertyName !== 'string') {
|
|
1150
|
+
return new TypeError('Expected "string" but received "' + typeof obj_propertyName + '" (at "' + path_propertyName + '")');
|
|
1151
|
+
}
|
|
1152
|
+
}
|
|
1153
|
+
})();
|
|
1154
|
+
return v_error === undefined ? null : v_error;
|
|
1155
|
+
}
|
|
1156
|
+
|
|
1157
|
+
function validate$3(obj, path = 'LightningModelTypesConfigInputRepresentation') {
|
|
1158
|
+
const v_error = (() => {
|
|
1159
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1160
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1161
|
+
}
|
|
1162
|
+
const obj_descriptor = obj.descriptor;
|
|
1163
|
+
const path_descriptor = path + '.descriptor';
|
|
1164
|
+
if (typeof obj_descriptor !== 'string') {
|
|
1165
|
+
return new TypeError('Expected "string" but received "' + typeof obj_descriptor + '" (at "' + path_descriptor + '")');
|
|
1166
|
+
}
|
|
1167
|
+
if (obj.editorConfig !== undefined) {
|
|
1168
|
+
const obj_editorConfig = obj.editorConfig;
|
|
1169
|
+
const path_editorConfig = path + '.editorConfig';
|
|
1170
|
+
const referencepath_editorConfigValidationError = validate$8(obj_editorConfig, path_editorConfig);
|
|
1171
|
+
if (referencepath_editorConfigValidationError !== null) {
|
|
1172
|
+
let message = 'Object doesn\'t match LightningModelEditorConfigInputRepresentation (at "' + path_editorConfig + '")\n';
|
|
1173
|
+
message += referencepath_editorConfigValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
1174
|
+
return new TypeError(message);
|
|
1175
|
+
}
|
|
1176
|
+
}
|
|
1177
|
+
if (obj.rendererConfig !== undefined) {
|
|
1178
|
+
const obj_rendererConfig = obj.rendererConfig;
|
|
1179
|
+
const path_rendererConfig = path + '.rendererConfig';
|
|
1180
|
+
const referencepath_rendererConfigValidationError = validate$7(obj_rendererConfig, path_rendererConfig);
|
|
1181
|
+
if (referencepath_rendererConfigValidationError !== null) {
|
|
1182
|
+
let message = 'Object doesn\'t match LightningModelRendererConfigInputRepresentation (at "' + path_rendererConfig + '")\n';
|
|
1183
|
+
message += referencepath_rendererConfigValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
1184
|
+
return new TypeError(message);
|
|
1185
|
+
}
|
|
1186
|
+
}
|
|
1187
|
+
if (obj.schemaConfig !== undefined) {
|
|
1188
|
+
const obj_schemaConfig = obj.schemaConfig;
|
|
1189
|
+
const path_schemaConfig = path + '.schemaConfig';
|
|
1190
|
+
const referencepath_schemaConfigValidationError = validate$5(obj_schemaConfig, path_schemaConfig);
|
|
1191
|
+
if (referencepath_schemaConfigValidationError !== null) {
|
|
1192
|
+
let message = 'Object doesn\'t match LightningModelSchemaConfigInputRepresentation (at "' + path_schemaConfig + '")\n';
|
|
1193
|
+
message += referencepath_schemaConfigValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
1194
|
+
return new TypeError(message);
|
|
1195
|
+
}
|
|
1196
|
+
}
|
|
1197
|
+
if (obj.sourceDescriptor !== undefined) {
|
|
1198
|
+
const obj_sourceDescriptor = obj.sourceDescriptor;
|
|
1199
|
+
const path_sourceDescriptor = path + '.sourceDescriptor';
|
|
1200
|
+
const referencepath_sourceDescriptorValidationError = validate$4(obj_sourceDescriptor, path_sourceDescriptor);
|
|
1201
|
+
if (referencepath_sourceDescriptorValidationError !== null) {
|
|
1202
|
+
let message = 'Object doesn\'t match LightningModelSourceDescriptorInputRepresentation (at "' + path_sourceDescriptor + '")\n';
|
|
1203
|
+
message += referencepath_sourceDescriptorValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
1204
|
+
return new TypeError(message);
|
|
1205
|
+
}
|
|
1206
|
+
}
|
|
1207
|
+
})();
|
|
1208
|
+
return v_error === undefined ? null : v_error;
|
|
1209
|
+
}
|
|
1210
|
+
|
|
1211
|
+
function validate$2(obj, path = 'LightningModelTypesErrorRepresentation') {
|
|
1212
|
+
const v_error = (() => {
|
|
1213
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1214
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1215
|
+
}
|
|
1216
|
+
const obj_errorDescription = obj.errorDescription;
|
|
1217
|
+
const path_errorDescription = path + '.errorDescription';
|
|
1218
|
+
if (typeof obj_errorDescription !== 'string') {
|
|
1219
|
+
return new TypeError('Expected "string" but received "' + typeof obj_errorDescription + '" (at "' + path_errorDescription + '")');
|
|
1220
|
+
}
|
|
1221
|
+
const obj_errorTitle = obj.errorTitle;
|
|
1222
|
+
const path_errorTitle = path + '.errorTitle';
|
|
1223
|
+
if (typeof obj_errorTitle !== 'string') {
|
|
1224
|
+
return new TypeError('Expected "string" but received "' + typeof obj_errorTitle + '" (at "' + path_errorTitle + '")');
|
|
1225
|
+
}
|
|
1226
|
+
})();
|
|
1227
|
+
return v_error === undefined ? null : v_error;
|
|
1228
|
+
}
|
|
1229
|
+
|
|
1230
|
+
function validate$1(obj, path = 'LightningModelTypesRepresentation') {
|
|
1231
|
+
const v_error = (() => {
|
|
1232
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1233
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1234
|
+
}
|
|
1235
|
+
const obj_bundleType = obj.bundleType;
|
|
1236
|
+
const path_bundleType = path + '.bundleType';
|
|
1237
|
+
if (typeof obj_bundleType !== 'string') {
|
|
1238
|
+
return new TypeError('Expected "string" but received "' + typeof obj_bundleType + '" (at "' + path_bundleType + '")');
|
|
1239
|
+
}
|
|
1240
|
+
if (obj.description !== undefined) {
|
|
1241
|
+
const obj_description = obj.description;
|
|
1242
|
+
const path_description = path + '.description';
|
|
1243
|
+
if (typeof obj_description !== 'string') {
|
|
1244
|
+
return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
|
|
1245
|
+
}
|
|
1246
|
+
}
|
|
1247
|
+
const obj_descriptor = obj.descriptor;
|
|
1248
|
+
const path_descriptor = path + '.descriptor';
|
|
1249
|
+
if (typeof obj_descriptor !== 'string') {
|
|
1250
|
+
return new TypeError('Expected "string" but received "' + typeof obj_descriptor + '" (at "' + path_descriptor + '")');
|
|
1251
|
+
}
|
|
1252
|
+
const obj_developerName = obj.developerName;
|
|
1253
|
+
const path_developerName = path + '.developerName';
|
|
1254
|
+
if (typeof obj_developerName !== 'string') {
|
|
1255
|
+
return new TypeError('Expected "string" but received "' + typeof obj_developerName + '" (at "' + path_developerName + '")');
|
|
1256
|
+
}
|
|
1257
|
+
if (obj.editorConfig !== undefined) {
|
|
1258
|
+
const obj_editorConfig = obj.editorConfig;
|
|
1259
|
+
const path_editorConfig = path + '.editorConfig';
|
|
1260
|
+
if (obj_editorConfig === undefined) {
|
|
1261
|
+
return new TypeError('Expected "defined" but received "' + typeof obj_editorConfig + '" (at "' + path_editorConfig + '")');
|
|
1262
|
+
}
|
|
1263
|
+
}
|
|
1264
|
+
if (obj.errorDetails !== undefined) {
|
|
1265
|
+
const obj_errorDetails = obj.errorDetails;
|
|
1266
|
+
const path_errorDetails = path + '.errorDetails';
|
|
1267
|
+
const referencepath_errorDetailsValidationError = validate$2(obj_errorDetails, path_errorDetails);
|
|
1268
|
+
if (referencepath_errorDetailsValidationError !== null) {
|
|
1269
|
+
let message = 'Object doesn\'t match LightningModelTypesErrorRepresentation (at "' + path_errorDetails + '")\n';
|
|
1270
|
+
message += referencepath_errorDetailsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
1271
|
+
return new TypeError(message);
|
|
1272
|
+
}
|
|
1273
|
+
}
|
|
1274
|
+
if (obj.id !== undefined) {
|
|
1275
|
+
const obj_id = obj.id;
|
|
1276
|
+
const path_id = path + '.id';
|
|
1277
|
+
if (typeof obj_id !== 'string') {
|
|
1278
|
+
return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
|
|
1279
|
+
}
|
|
1280
|
+
}
|
|
1281
|
+
const obj_namespacePrefix = obj.namespacePrefix;
|
|
1282
|
+
const path_namespacePrefix = path + '.namespacePrefix';
|
|
1283
|
+
if (typeof obj_namespacePrefix !== 'string') {
|
|
1284
|
+
return new TypeError('Expected "string" but received "' + typeof obj_namespacePrefix + '" (at "' + path_namespacePrefix + '")');
|
|
1285
|
+
}
|
|
1286
|
+
if (obj.rendererConfig !== undefined) {
|
|
1287
|
+
const obj_rendererConfig = obj.rendererConfig;
|
|
1288
|
+
const path_rendererConfig = path + '.rendererConfig';
|
|
1289
|
+
if (obj_rendererConfig === undefined) {
|
|
1290
|
+
return new TypeError('Expected "defined" but received "' + typeof obj_rendererConfig + '" (at "' + path_rendererConfig + '")');
|
|
1291
|
+
}
|
|
1292
|
+
}
|
|
1293
|
+
if (obj.schema !== undefined) {
|
|
1294
|
+
const obj_schema = obj.schema;
|
|
1295
|
+
const path_schema = path + '.schema';
|
|
1296
|
+
if (obj_schema === undefined) {
|
|
1297
|
+
return new TypeError('Expected "defined" but received "' + typeof obj_schema + '" (at "' + path_schema + '")');
|
|
1298
|
+
}
|
|
1299
|
+
}
|
|
1300
|
+
if (obj.sourceDescriptor !== undefined) {
|
|
1301
|
+
const obj_sourceDescriptor = obj.sourceDescriptor;
|
|
1302
|
+
const path_sourceDescriptor = path + '.sourceDescriptor';
|
|
1303
|
+
if (obj_sourceDescriptor === undefined) {
|
|
1304
|
+
return new TypeError('Expected "defined" but received "' + typeof obj_sourceDescriptor + '" (at "' + path_sourceDescriptor + '")');
|
|
1305
|
+
}
|
|
1306
|
+
}
|
|
1307
|
+
if (obj.title !== undefined) {
|
|
1308
|
+
const obj_title = obj.title;
|
|
1309
|
+
const path_title = path + '.title';
|
|
1310
|
+
if (typeof obj_title !== 'string') {
|
|
1311
|
+
return new TypeError('Expected "string" but received "' + typeof obj_title + '" (at "' + path_title + '")');
|
|
1312
|
+
}
|
|
1313
|
+
}
|
|
1314
|
+
})();
|
|
1315
|
+
return v_error === undefined ? null : v_error;
|
|
1316
|
+
}
|
|
1317
|
+
|
|
1318
|
+
const TTL = 3600000;
|
|
1319
|
+
const VERSION = "51267fbdb7e8e374a286ee0bc35c6aee";
|
|
1320
|
+
function validate(obj, path = 'LightningModelTypesCollectionRepresentation') {
|
|
1321
|
+
const v_error = (() => {
|
|
1322
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1323
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1324
|
+
}
|
|
1325
|
+
const obj_types = obj.types;
|
|
1326
|
+
const path_types = path + '.types';
|
|
1327
|
+
if (!ArrayIsArray(obj_types)) {
|
|
1328
|
+
return new TypeError('Expected "array" but received "' + typeof obj_types + '" (at "' + path_types + '")');
|
|
1329
|
+
}
|
|
1330
|
+
for (let i = 0; i < obj_types.length; i++) {
|
|
1331
|
+
const obj_types_item = obj_types[i];
|
|
1332
|
+
const path_types_item = path_types + '[' + i + ']';
|
|
1333
|
+
const referencepath_types_itemValidationError = validate$1(obj_types_item, path_types_item);
|
|
1334
|
+
if (referencepath_types_itemValidationError !== null) {
|
|
1335
|
+
let message = 'Object doesn\'t match LightningModelTypesRepresentation (at "' + path_types_item + '")\n';
|
|
1336
|
+
message += referencepath_types_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
1337
|
+
return new TypeError(message);
|
|
1338
|
+
}
|
|
1339
|
+
}
|
|
1340
|
+
})();
|
|
1341
|
+
return v_error === undefined ? null : v_error;
|
|
1342
|
+
}
|
|
1343
|
+
const RepresentationType = 'LightningModelTypesCollectionRepresentation';
|
|
832
1344
|
function normalize(input, existing, path, luvio, store, timestamp) {
|
|
833
1345
|
return input;
|
|
834
1346
|
}
|
|
835
|
-
const select$1 = function
|
|
1347
|
+
const select$1 = function LightningModelTypesCollectionRepresentationSelect() {
|
|
836
1348
|
return {
|
|
837
1349
|
kind: 'Fragment',
|
|
838
1350
|
version: VERSION,
|
|
@@ -846,7 +1358,7 @@ function equals(existing, incoming) {
|
|
|
846
1358
|
}
|
|
847
1359
|
return true;
|
|
848
1360
|
}
|
|
849
|
-
const ingest = function
|
|
1361
|
+
const ingest = function LightningModelTypesCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
850
1362
|
if (process.env.NODE_ENV !== 'production') {
|
|
851
1363
|
const validateError = validate(input);
|
|
852
1364
|
if (validateError !== null) {
|
|
@@ -872,7 +1384,7 @@ function select(luvio, params) {
|
|
|
872
1384
|
return select$1();
|
|
873
1385
|
}
|
|
874
1386
|
function keyBuilder$1(luvio, params) {
|
|
875
|
-
return keyPrefix + '::
|
|
1387
|
+
return keyPrefix + '::LightningModelTypesCollectionRepresentation:(' + 'language:' + params.body.language + '::' + '[' + params.body.typeConfigs.map(element => { var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1; return 'typeConfigs.descriptor:' + element.descriptor + '::' + (((_a = element.editorConfig) === null || _a === void 0 ? void 0 : _a.target) === undefined ? 'typeConfigs.editorConfig.target' : 'typeConfigs.editorConfig.target:' + ((_b = element.editorConfig) === null || _b === void 0 ? void 0 : _b.target)) + '::' + (((_c = element.editorConfig) === null || _c === void 0 ? void 0 : _c.subViewDefinitions) === undefined ? 'typeConfigs.editorConfig.subViewDefinitions' : 'typeConfigs.editorConfig.subViewDefinitions:' + ((_d = element.editorConfig) === null || _d === void 0 ? void 0 : _d.subViewDefinitions)) + '::' + (((_e = element.editorConfig) === null || _e === void 0 ? void 0 : _e.maxViewDepth) === undefined ? 'typeConfigs.editorConfig.maxViewDepth' : 'typeConfigs.editorConfig.maxViewDepth:' + ((_f = element.editorConfig) === null || _f === void 0 ? void 0 : _f.maxViewDepth)) + '::' + (((_g = element.editorConfig) === null || _g === void 0 ? void 0 : _g.actionConfig) === undefined ? 'typeConfigs.editorConfig.actionConfig' : 'typeConfigs.editorConfig.actionConfig:' + ((_h = element.editorConfig) === null || _h === void 0 ? void 0 : _h.actionConfig)) + '::' + (((_j = element.rendererConfig) === null || _j === void 0 ? void 0 : _j.target) === undefined ? 'typeConfigs.rendererConfig.target' : 'typeConfigs.rendererConfig.target:' + ((_k = element.rendererConfig) === null || _k === void 0 ? void 0 : _k.target)) + '::' + (((_l = element.rendererConfig) === null || _l === void 0 ? void 0 : _l.subViewDefinitions) === undefined ? 'typeConfigs.rendererConfig.subViewDefinitions' : 'typeConfigs.rendererConfig.subViewDefinitions:' + ((_m = element.rendererConfig) === null || _m === void 0 ? void 0 : _m.subViewDefinitions)) + '::' + (((_o = element.rendererConfig) === null || _o === void 0 ? void 0 : _o.maxViewDepth) === undefined ? 'typeConfigs.rendererConfig.maxViewDepth' : 'typeConfigs.rendererConfig.maxViewDepth:' + ((_p = element.rendererConfig) === null || _p === void 0 ? void 0 : _p.maxViewDepth)) + '::' + (((_q = element.rendererConfig) === null || _q === void 0 ? void 0 : _q.actionConfig) === undefined ? 'typeConfigs.rendererConfig.actionConfig' : 'typeConfigs.rendererConfig.actionConfig:' + ((_r = element.rendererConfig) === null || _r === void 0 ? void 0 : _r.actionConfig)) + '::' + (((_t = (_s = element.schemaConfig) === null || _s === void 0 ? void 0 : _s.filterConfig) === null || _t === void 0 ? void 0 : _t.propertyNames) === undefined ? 'typeConfigs.schemaConfig.filterConfig.propertyNames' : 'typeConfigs.schemaConfig.filterConfig.propertyNames:' + ((_v = (_u = element.schemaConfig) === null || _u === void 0 ? void 0 : _u.filterConfig) === null || _v === void 0 ? void 0 : _v.propertyNames)) + '::' + (((_w = element.schemaConfig) === null || _w === void 0 ? void 0 : _w.subSchemaDefinitions) === undefined ? 'typeConfigs.schemaConfig.subSchemaDefinitions' : 'typeConfigs.schemaConfig.subSchemaDefinitions:' + ((_x = element.schemaConfig) === null || _x === void 0 ? void 0 : _x.subSchemaDefinitions)) + '::' + (((_y = element.sourceDescriptor) === null || _y === void 0 ? void 0 : _y.descriptor) === undefined ? 'typeConfigs.sourceDescriptor.descriptor' : 'typeConfigs.sourceDescriptor.descriptor:' + ((_z = element.sourceDescriptor) === null || _z === void 0 ? void 0 : _z.descriptor)) + '::' + (((_0 = element.sourceDescriptor) === null || _0 === void 0 ? void 0 : _0.propertyName) === undefined ? 'typeConfigs.sourceDescriptor.propertyName' : 'typeConfigs.sourceDescriptor.propertyName:' + ((_1 = element.sourceDescriptor) === null || _1 === void 0 ? void 0 : _1.propertyName)); }).join(',') + ']' + ')';
|
|
876
1388
|
}
|
|
877
1389
|
function getResponseCacheKeys(storeKeyMap, luvio, resourceParams, response) {
|
|
878
1390
|
getTypeCacheKeys(storeKeyMap, luvio, response, () => keyBuilder$1(luvio, resourceParams));
|
|
@@ -910,33 +1422,42 @@ function createResourceRequest(config) {
|
|
|
910
1422
|
const headers = {};
|
|
911
1423
|
return {
|
|
912
1424
|
baseUri: '/services/data/v63.0',
|
|
913
|
-
basePath: '/connect/lightning-types
|
|
914
|
-
method: '
|
|
915
|
-
body:
|
|
916
|
-
urlParams:
|
|
917
|
-
queryParams:
|
|
1425
|
+
basePath: '/connect/lightning-model/types',
|
|
1426
|
+
method: 'post',
|
|
1427
|
+
body: config.body,
|
|
1428
|
+
urlParams: {},
|
|
1429
|
+
queryParams: {},
|
|
918
1430
|
headers,
|
|
919
1431
|
priority: 'normal',
|
|
920
1432
|
};
|
|
921
1433
|
}
|
|
922
1434
|
|
|
923
|
-
const adapterName = '
|
|
924
|
-
const
|
|
925
|
-
generateParamConfigMetadata('
|
|
926
|
-
generateParamConfigMetadata('
|
|
927
|
-
generateParamConfigMetadata('includeSubSchemaDefinitions', false, 1 /* QueryParameter */, 1 /* Boolean */),
|
|
928
|
-
generateParamConfigMetadata('language', false, 1 /* QueryParameter */, 0 /* String */),
|
|
929
|
-
generateParamConfigMetadata('rendererConfigTarget', false, 1 /* QueryParameter */, 0 /* String */),
|
|
1435
|
+
const adapterName = 'getTypes';
|
|
1436
|
+
const getTypes_ConfigPropertyMetadata = [
|
|
1437
|
+
generateParamConfigMetadata('language', true, 2 /* Body */, 0 /* String */),
|
|
1438
|
+
generateParamConfigMetadata('typeConfigs', true, 2 /* Body */, 4 /* Unsupported */, true),
|
|
930
1439
|
];
|
|
931
|
-
const
|
|
932
|
-
const createResourceParams = /*#__PURE__*/ createResourceParams$
|
|
1440
|
+
const getTypes_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, getTypes_ConfigPropertyMetadata);
|
|
1441
|
+
const createResourceParams = /*#__PURE__*/ createResourceParams$3(getTypes_ConfigPropertyMetadata);
|
|
933
1442
|
function keyBuilder(luvio, config) {
|
|
934
1443
|
const resourceParams = createResourceParams(config);
|
|
935
1444
|
return keyBuilder$1(luvio, resourceParams);
|
|
936
1445
|
}
|
|
937
1446
|
function typeCheckConfig(untrustedConfig) {
|
|
938
1447
|
const config = {};
|
|
939
|
-
typeCheckConfig$
|
|
1448
|
+
typeCheckConfig$3(untrustedConfig, config, getTypes_ConfigPropertyMetadata);
|
|
1449
|
+
const untrustedConfig_typeConfigs = untrustedConfig.typeConfigs;
|
|
1450
|
+
if (ArrayIsArray$1(untrustedConfig_typeConfigs)) {
|
|
1451
|
+
const untrustedConfig_typeConfigs_array = [];
|
|
1452
|
+
for (let i = 0, arrayLength = untrustedConfig_typeConfigs.length; i < arrayLength; i++) {
|
|
1453
|
+
const untrustedConfig_typeConfigs_item = untrustedConfig_typeConfigs[i];
|
|
1454
|
+
const referenceLightningModelTypesConfigInputRepresentationValidationError = validate$3(untrustedConfig_typeConfigs_item);
|
|
1455
|
+
if (referenceLightningModelTypesConfigInputRepresentationValidationError === null) {
|
|
1456
|
+
untrustedConfig_typeConfigs_array.push(untrustedConfig_typeConfigs_item);
|
|
1457
|
+
}
|
|
1458
|
+
}
|
|
1459
|
+
config.typeConfigs = untrustedConfig_typeConfigs_array;
|
|
1460
|
+
}
|
|
940
1461
|
return config;
|
|
941
1462
|
}
|
|
942
1463
|
function validateAdapterConfig(untrustedConfig, configPropertyNames) {
|
|
@@ -985,7 +1506,7 @@ function buildNetworkSnapshot(luvio, config, options) {
|
|
|
985
1506
|
});
|
|
986
1507
|
}
|
|
987
1508
|
function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
|
|
988
|
-
return buildNetworkSnapshotCachePolicy$
|
|
1509
|
+
return buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext, buildNetworkSnapshot, 'get', false);
|
|
989
1510
|
}
|
|
990
1511
|
function buildCachedSnapshotCachePolicy(context, storeLookup) {
|
|
991
1512
|
const { luvio, config } = context;
|
|
@@ -1000,8 +1521,8 @@ function buildCachedSnapshotCachePolicy(context, storeLookup) {
|
|
|
1000
1521
|
});
|
|
1001
1522
|
return cacheSnapshot;
|
|
1002
1523
|
}
|
|
1003
|
-
const
|
|
1004
|
-
const config = validateAdapterConfig(untrustedConfig,
|
|
1524
|
+
const getTypesAdapterFactory = (luvio) => function lightningTypes__getTypes(untrustedConfig, requestContext) {
|
|
1525
|
+
const config = validateAdapterConfig(untrustedConfig, getTypes_ConfigPropertyNames);
|
|
1005
1526
|
// Invalid or incomplete config
|
|
1006
1527
|
if (config === null) {
|
|
1007
1528
|
return null;
|
|
@@ -1010,4 +1531,4 @@ const getLightningTypeAdapterFactory = (luvio) => function lightningTypes__getLi
|
|
|
1010
1531
|
buildCachedSnapshotCachePolicy, buildNetworkSnapshotCachePolicy);
|
|
1011
1532
|
};
|
|
1012
1533
|
|
|
1013
|
-
export { getLightningTypeAdapterFactory, getLightningTypesAdapterFactory };
|
|
1534
|
+
export { getLightningTypeAdapterFactory, getLightningTypesAdapterFactory, getTypesAdapterFactory };
|