@salesforce/lds-adapters-platform-lightning-types 1.324.0 → 1.325.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/es/es2018/platform-lightning-types.js +365 -50
- package/dist/es/es2018/types/src/generated/adapters/getLightningType.d.ts +31 -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/getConnectLightningTypesByFullyQualifiedName.d.ts +21 -0
- package/dist/es/es2018/types/src/generated/types/LightningTypeDetailRepresentation.d.ts +54 -0
- package/package.json +3 -3
- package/sfdc/index.js +339 -9
- package/src/raml/api.raml +78 -205
- package/src/raml/luvio.raml +9 -0
- package/dist/es/es2018/types/src/generated/types/ExperienceModelDesignConfigInputRepresentation.d.ts +0 -34
- package/dist/es/es2018/types/src/generated/types/ExperienceModelFilterConfigInputRepresentation.d.ts +0 -28
- package/dist/es/es2018/types/src/generated/types/ExperienceModelFilterPropertyNamesListWrapper.d.ts +0 -28
- package/dist/es/es2018/types/src/generated/types/ExperienceModelRenditionConfigInputRepresentation.d.ts +0 -34
- package/dist/es/es2018/types/src/generated/types/ExperienceModelSchemaConfigInputRepresentation.d.ts +0 -35
- package/dist/es/es2018/types/src/generated/types/ExperienceModelSourceDescriptorInputRepresentation.d.ts +0 -31
- package/dist/es/es2018/types/src/generated/types/ExperienceModelTypesCollectionRepresentation.d.ts +0 -29
- package/dist/es/es2018/types/src/generated/types/ExperienceModelTypesConfigInputListWrapper.d.ts +0 -32
- package/dist/es/es2018/types/src/generated/types/ExperienceModelTypesConfigInputRepresentation.d.ts +0 -56
- package/dist/es/es2018/types/src/generated/types/ExperienceModelTypesErrorRepresentation.d.ts +0 -31
- package/dist/es/es2018/types/src/generated/types/ExperienceModelTypesInputRepresentation.d.ts +0 -35
- package/dist/es/es2018/types/src/generated/types/ExperienceModelTypesRepresentation.d.ts +0 -78
|
@@ -4,10 +4,10 @@
|
|
|
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$2, typeCheckConfig as typeCheckConfig$2, StoreKeyMap, createResourceParams as createResourceParams$2 } from '@luvio/engine';
|
|
8
8
|
|
|
9
9
|
const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
|
|
10
|
-
const { keys: ObjectKeys, create: ObjectCreate } = Object;
|
|
10
|
+
const { keys: ObjectKeys$1, create: ObjectCreate$1 } = Object;
|
|
11
11
|
const { isArray: ArrayIsArray$1 } = Array;
|
|
12
12
|
/**
|
|
13
13
|
* Validates an adapter config is well-formed.
|
|
@@ -31,7 +31,7 @@ function validateConfig(config, adapter, oneOf) {
|
|
|
31
31
|
throw new TypeError(`adapter ${displayName} does not yet support ${unsupported.sort().join(', ')}`);
|
|
32
32
|
}
|
|
33
33
|
const supported = required.concat(optional);
|
|
34
|
-
if (ObjectKeys(config).some(key => !supported.includes(key))) {
|
|
34
|
+
if (ObjectKeys$1(config).some(key => !supported.includes(key))) {
|
|
35
35
|
throw new TypeError(`adapter ${displayName} configuration supports only ${supported.sort().join(', ')}`);
|
|
36
36
|
}
|
|
37
37
|
}
|
|
@@ -71,6 +71,7 @@ function buildAdapterValidationConfig(displayName, paramsMeta) {
|
|
|
71
71
|
}
|
|
72
72
|
const keyPrefix = 'lightning-types';
|
|
73
73
|
|
|
74
|
+
const { keys: ObjectKeys, create: ObjectCreate, assign: ObjectAssign } = Object;
|
|
74
75
|
const { isArray: ArrayIsArray } = Array;
|
|
75
76
|
const { stringify: JSONStringify } = JSON;
|
|
76
77
|
function equalsArray(a, b, equalsItem) {
|
|
@@ -92,9 +93,9 @@ function createLink(ref) {
|
|
|
92
93
|
};
|
|
93
94
|
}
|
|
94
95
|
|
|
95
|
-
const TTL$
|
|
96
|
-
const VERSION$
|
|
97
|
-
function validate$
|
|
96
|
+
const TTL$2 = 100;
|
|
97
|
+
const VERSION$2 = "4895529fcf8796413981df590ff3c2e9";
|
|
98
|
+
function validate$2(obj, path = 'LightningTypeSummaryRepresentation') {
|
|
98
99
|
const v_error = (() => {
|
|
99
100
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
100
101
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -266,58 +267,58 @@ function validate$1(obj, path = 'LightningTypeSummaryRepresentation') {
|
|
|
266
267
|
})();
|
|
267
268
|
return v_error === undefined ? null : v_error;
|
|
268
269
|
}
|
|
269
|
-
const RepresentationType$
|
|
270
|
-
function keyBuilder$
|
|
271
|
-
return keyPrefix + '::' + RepresentationType$
|
|
270
|
+
const RepresentationType$2 = 'LightningTypeSummaryRepresentation';
|
|
271
|
+
function keyBuilder$4(luvio, config) {
|
|
272
|
+
return keyPrefix + '::' + RepresentationType$2 + ':' + (config.id === null ? '' : config.id);
|
|
272
273
|
}
|
|
273
274
|
function keyBuilderFromType(luvio, object) {
|
|
274
275
|
const keyParams = {
|
|
275
276
|
id: object.developerName
|
|
276
277
|
};
|
|
277
|
-
return keyBuilder$
|
|
278
|
+
return keyBuilder$4(luvio, keyParams);
|
|
278
279
|
}
|
|
279
|
-
function normalize$
|
|
280
|
+
function normalize$2(input, existing, path, luvio, store, timestamp) {
|
|
280
281
|
return input;
|
|
281
282
|
}
|
|
282
|
-
const select$
|
|
283
|
+
const select$4 = function LightningTypeSummaryRepresentationSelect() {
|
|
283
284
|
return {
|
|
284
285
|
kind: 'Fragment',
|
|
285
|
-
version: VERSION$
|
|
286
|
+
version: VERSION$2,
|
|
286
287
|
private: [],
|
|
287
288
|
opaque: true
|
|
288
289
|
};
|
|
289
290
|
};
|
|
290
|
-
function equals$
|
|
291
|
+
function equals$2(existing, incoming) {
|
|
291
292
|
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
292
293
|
return false;
|
|
293
294
|
}
|
|
294
295
|
return true;
|
|
295
296
|
}
|
|
296
|
-
const ingest$
|
|
297
|
+
const ingest$2 = function LightningTypeSummaryRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
297
298
|
if (process.env.NODE_ENV !== 'production') {
|
|
298
|
-
const validateError = validate$
|
|
299
|
+
const validateError = validate$2(input);
|
|
299
300
|
if (validateError !== null) {
|
|
300
301
|
throw validateError;
|
|
301
302
|
}
|
|
302
303
|
}
|
|
303
304
|
const key = keyBuilderFromType(luvio, input);
|
|
304
|
-
const ttlToUse = TTL$
|
|
305
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
305
|
+
const ttlToUse = TTL$2;
|
|
306
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$2, "lightning-types", VERSION$2, RepresentationType$2, equals$2);
|
|
306
307
|
return createLink(key);
|
|
307
308
|
};
|
|
308
|
-
function getTypeCacheKeys$
|
|
309
|
+
function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
|
|
309
310
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
310
311
|
const rootKey = keyBuilderFromType(luvio, input);
|
|
311
312
|
rootKeySet.set(rootKey, {
|
|
312
313
|
namespace: keyPrefix,
|
|
313
|
-
representationName: RepresentationType$
|
|
314
|
+
representationName: RepresentationType$2,
|
|
314
315
|
mergeable: false
|
|
315
316
|
});
|
|
316
317
|
}
|
|
317
318
|
|
|
318
|
-
const TTL = 100;
|
|
319
|
-
const VERSION = "c66a5dd98fb4b617c447b5ec059204fd";
|
|
320
|
-
function validate(obj, path = 'LightningTypeCollectionRepresentation') {
|
|
319
|
+
const TTL$1 = 100;
|
|
320
|
+
const VERSION$1 = "c66a5dd98fb4b617c447b5ec059204fd";
|
|
321
|
+
function validate$1(obj, path = 'LightningTypeCollectionRepresentation') {
|
|
321
322
|
const v_error = (() => {
|
|
322
323
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
323
324
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -424,14 +425,14 @@ function validate(obj, path = 'LightningTypeCollectionRepresentation') {
|
|
|
424
425
|
})();
|
|
425
426
|
return v_error === undefined ? null : v_error;
|
|
426
427
|
}
|
|
427
|
-
const RepresentationType = 'LightningTypeCollectionRepresentation';
|
|
428
|
-
function normalize(input, existing, path, luvio, store, timestamp) {
|
|
428
|
+
const RepresentationType$1 = 'LightningTypeCollectionRepresentation';
|
|
429
|
+
function normalize$1(input, existing, path, luvio, store, timestamp) {
|
|
429
430
|
const input_lightningTypes = input.lightningTypes;
|
|
430
431
|
const input_lightningTypes_id = path.fullPath + '__lightningTypes';
|
|
431
432
|
for (let i = 0; i < input_lightningTypes.length; i++) {
|
|
432
433
|
const input_lightningTypes_item = input_lightningTypes[i];
|
|
433
434
|
let input_lightningTypes_item_id = input_lightningTypes_id + '__' + i;
|
|
434
|
-
input_lightningTypes[i] = ingest$
|
|
435
|
+
input_lightningTypes[i] = ingest$2(input_lightningTypes_item, {
|
|
435
436
|
fullPath: input_lightningTypes_item_id,
|
|
436
437
|
propertyName: i,
|
|
437
438
|
parent: {
|
|
@@ -444,10 +445,10 @@ function normalize(input, existing, path, luvio, store, timestamp) {
|
|
|
444
445
|
}
|
|
445
446
|
return input;
|
|
446
447
|
}
|
|
447
|
-
const select$
|
|
448
|
+
const select$3 = function LightningTypeCollectionRepresentationSelect() {
|
|
448
449
|
return {
|
|
449
450
|
kind: 'Fragment',
|
|
450
|
-
version: VERSION,
|
|
451
|
+
version: VERSION$1,
|
|
451
452
|
private: [],
|
|
452
453
|
selections: [
|
|
453
454
|
{
|
|
@@ -462,7 +463,7 @@ const select$1 = function LightningTypeCollectionRepresentationSelect() {
|
|
|
462
463
|
name: 'lightningTypes',
|
|
463
464
|
kind: 'Link',
|
|
464
465
|
plural: true,
|
|
465
|
-
fragment: select$
|
|
466
|
+
fragment: select$4()
|
|
466
467
|
},
|
|
467
468
|
{
|
|
468
469
|
name: 'nextPageUrl',
|
|
@@ -477,7 +478,7 @@ const select$1 = function LightningTypeCollectionRepresentationSelect() {
|
|
|
477
478
|
]
|
|
478
479
|
};
|
|
479
480
|
};
|
|
480
|
-
function equals(existing, incoming) {
|
|
481
|
+
function equals$1(existing, incoming) {
|
|
481
482
|
const existing_count = existing.count;
|
|
482
483
|
const incoming_count = incoming.count;
|
|
483
484
|
if (!(existing_count === incoming_count)) {
|
|
@@ -526,7 +527,326 @@ function equals(existing, incoming) {
|
|
|
526
527
|
}
|
|
527
528
|
return true;
|
|
528
529
|
}
|
|
529
|
-
const ingest = function LightningTypeCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
530
|
+
const ingest$1 = function LightningTypeCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
531
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
532
|
+
const validateError = validate$1(input);
|
|
533
|
+
if (validateError !== null) {
|
|
534
|
+
throw validateError;
|
|
535
|
+
}
|
|
536
|
+
}
|
|
537
|
+
const key = path.fullPath;
|
|
538
|
+
const ttlToUse = TTL$1;
|
|
539
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$1, "lightning-types", VERSION$1, RepresentationType$1, equals$1);
|
|
540
|
+
return createLink(key);
|
|
541
|
+
};
|
|
542
|
+
function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
543
|
+
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
544
|
+
const rootKey = fullPathFactory();
|
|
545
|
+
rootKeySet.set(rootKey, {
|
|
546
|
+
namespace: keyPrefix,
|
|
547
|
+
representationName: RepresentationType$1,
|
|
548
|
+
mergeable: false
|
|
549
|
+
});
|
|
550
|
+
const input_lightningTypes_length = input.lightningTypes.length;
|
|
551
|
+
for (let i = 0; i < input_lightningTypes_length; i++) {
|
|
552
|
+
getTypeCacheKeys$2(rootKeySet, luvio, input.lightningTypes[i]);
|
|
553
|
+
}
|
|
554
|
+
}
|
|
555
|
+
|
|
556
|
+
function select$2(luvio, params) {
|
|
557
|
+
return select$3();
|
|
558
|
+
}
|
|
559
|
+
function keyBuilder$3(luvio, params) {
|
|
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
|
+
}
|
|
562
|
+
function getResponseCacheKeys$1(storeKeyMap, luvio, resourceParams, response) {
|
|
563
|
+
getTypeCacheKeys$1(storeKeyMap, luvio, response, () => keyBuilder$3(luvio, resourceParams));
|
|
564
|
+
}
|
|
565
|
+
function ingestSuccess$1(luvio, resourceParams, response, snapshotRefresh) {
|
|
566
|
+
const { body } = response;
|
|
567
|
+
const key = keyBuilder$3(luvio, resourceParams);
|
|
568
|
+
luvio.storeIngest(key, ingest$1, body);
|
|
569
|
+
const snapshot = luvio.storeLookup({
|
|
570
|
+
recordId: key,
|
|
571
|
+
node: select$2(),
|
|
572
|
+
variables: {},
|
|
573
|
+
}, snapshotRefresh);
|
|
574
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
575
|
+
if (snapshot.state !== 'Fulfilled') {
|
|
576
|
+
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
577
|
+
}
|
|
578
|
+
}
|
|
579
|
+
deepFreeze(snapshot.data);
|
|
580
|
+
return snapshot;
|
|
581
|
+
}
|
|
582
|
+
function ingestError$1(luvio, params, error, snapshotRefresh) {
|
|
583
|
+
const key = keyBuilder$3(luvio, params);
|
|
584
|
+
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
585
|
+
const storeMetadataParams = {
|
|
586
|
+
ttl: TTL$1,
|
|
587
|
+
namespace: keyPrefix,
|
|
588
|
+
version: VERSION$1,
|
|
589
|
+
representationName: RepresentationType$1
|
|
590
|
+
};
|
|
591
|
+
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
592
|
+
return errorSnapshot;
|
|
593
|
+
}
|
|
594
|
+
function createResourceRequest$1(config) {
|
|
595
|
+
const headers = {};
|
|
596
|
+
return {
|
|
597
|
+
baseUri: '/services/data/v63.0',
|
|
598
|
+
basePath: '/connect/lightning-types',
|
|
599
|
+
method: 'get',
|
|
600
|
+
body: null,
|
|
601
|
+
urlParams: {},
|
|
602
|
+
queryParams: config.queryParams,
|
|
603
|
+
headers,
|
|
604
|
+
priority: 'normal',
|
|
605
|
+
};
|
|
606
|
+
}
|
|
607
|
+
|
|
608
|
+
const adapterName$1 = 'getLightningTypes';
|
|
609
|
+
const getLightningTypes_ConfigPropertyMetadata = [
|
|
610
|
+
generateParamConfigMetadata('editorConfigTarget', false, 1 /* QueryParameter */, 0 /* String */),
|
|
611
|
+
generateParamConfigMetadata('fullyQualifiedNames', false, 1 /* QueryParameter */, 0 /* String */, true),
|
|
612
|
+
generateParamConfigMetadata('language', false, 1 /* QueryParameter */, 0 /* String */),
|
|
613
|
+
generateParamConfigMetadata('page', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
614
|
+
generateParamConfigMetadata('pageSize', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
615
|
+
generateParamConfigMetadata('rendererConfigTarget', false, 1 /* QueryParameter */, 0 /* String */),
|
|
616
|
+
];
|
|
617
|
+
const getLightningTypes_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, getLightningTypes_ConfigPropertyMetadata);
|
|
618
|
+
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$2(getLightningTypes_ConfigPropertyMetadata);
|
|
619
|
+
function keyBuilder$2(luvio, config) {
|
|
620
|
+
const resourceParams = createResourceParams$1(config);
|
|
621
|
+
return keyBuilder$3(luvio, resourceParams);
|
|
622
|
+
}
|
|
623
|
+
function typeCheckConfig$1(untrustedConfig) {
|
|
624
|
+
const config = {};
|
|
625
|
+
typeCheckConfig$2(untrustedConfig, config, getLightningTypes_ConfigPropertyMetadata);
|
|
626
|
+
return config;
|
|
627
|
+
}
|
|
628
|
+
function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
|
|
629
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
630
|
+
return null;
|
|
631
|
+
}
|
|
632
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
633
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
634
|
+
}
|
|
635
|
+
const config = typeCheckConfig$1(untrustedConfig);
|
|
636
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
637
|
+
return null;
|
|
638
|
+
}
|
|
639
|
+
return config;
|
|
640
|
+
}
|
|
641
|
+
function adapterFragment$1(luvio, config) {
|
|
642
|
+
createResourceParams$1(config);
|
|
643
|
+
return select$2();
|
|
644
|
+
}
|
|
645
|
+
function onFetchResponseSuccess$1(luvio, config, resourceParams, response) {
|
|
646
|
+
const snapshot = ingestSuccess$1(luvio, resourceParams, response, {
|
|
647
|
+
config,
|
|
648
|
+
resolve: () => buildNetworkSnapshot$1(luvio, config, snapshotRefreshOptions)
|
|
649
|
+
});
|
|
650
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
651
|
+
}
|
|
652
|
+
function onFetchResponseError$1(luvio, config, resourceParams, response) {
|
|
653
|
+
const snapshot = ingestError$1(luvio, resourceParams, response, {
|
|
654
|
+
config,
|
|
655
|
+
resolve: () => buildNetworkSnapshot$1(luvio, config, snapshotRefreshOptions)
|
|
656
|
+
});
|
|
657
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
658
|
+
}
|
|
659
|
+
function buildNetworkSnapshot$1(luvio, config, options) {
|
|
660
|
+
const resourceParams = createResourceParams$1(config);
|
|
661
|
+
const request = createResourceRequest$1(resourceParams);
|
|
662
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
663
|
+
.then((response) => {
|
|
664
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$1(luvio, config, resourceParams, response), () => {
|
|
665
|
+
const cache = new StoreKeyMap();
|
|
666
|
+
getResponseCacheKeys$1(cache, luvio, resourceParams, response.body);
|
|
667
|
+
return cache;
|
|
668
|
+
});
|
|
669
|
+
}, (response) => {
|
|
670
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$1(luvio, config, resourceParams, response));
|
|
671
|
+
});
|
|
672
|
+
}
|
|
673
|
+
function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
|
|
674
|
+
return buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext, buildNetworkSnapshot$1, undefined, false);
|
|
675
|
+
}
|
|
676
|
+
function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
|
|
677
|
+
const { luvio, config } = context;
|
|
678
|
+
const selector = {
|
|
679
|
+
recordId: keyBuilder$2(luvio, config),
|
|
680
|
+
node: adapterFragment$1(luvio, config),
|
|
681
|
+
variables: {},
|
|
682
|
+
};
|
|
683
|
+
const cacheSnapshot = storeLookup(selector, {
|
|
684
|
+
config,
|
|
685
|
+
resolve: () => buildNetworkSnapshot$1(luvio, config, snapshotRefreshOptions)
|
|
686
|
+
});
|
|
687
|
+
return cacheSnapshot;
|
|
688
|
+
}
|
|
689
|
+
const getLightningTypesAdapterFactory = (luvio) => function lightningTypes__getLightningTypes(untrustedConfig, requestContext) {
|
|
690
|
+
const config = validateAdapterConfig$1(untrustedConfig, getLightningTypes_ConfigPropertyNames);
|
|
691
|
+
// Invalid or incomplete config
|
|
692
|
+
if (config === null) {
|
|
693
|
+
return null;
|
|
694
|
+
}
|
|
695
|
+
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
696
|
+
buildCachedSnapshotCachePolicy$1, buildNetworkSnapshotCachePolicy$1);
|
|
697
|
+
};
|
|
698
|
+
|
|
699
|
+
const TTL = 100;
|
|
700
|
+
const VERSION = "ec107620eea2293ec74a88bdcac66085";
|
|
701
|
+
function validate(obj, path = 'LightningTypeDetailRepresentation') {
|
|
702
|
+
const v_error = (() => {
|
|
703
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
704
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
705
|
+
}
|
|
706
|
+
if (obj.description !== undefined) {
|
|
707
|
+
const obj_description = obj.description;
|
|
708
|
+
const path_description = path + '.description';
|
|
709
|
+
let obj_description_union0 = null;
|
|
710
|
+
const obj_description_union0_error = (() => {
|
|
711
|
+
if (typeof obj_description !== 'string') {
|
|
712
|
+
return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
|
|
713
|
+
}
|
|
714
|
+
})();
|
|
715
|
+
if (obj_description_union0_error != null) {
|
|
716
|
+
obj_description_union0 = obj_description_union0_error.message;
|
|
717
|
+
}
|
|
718
|
+
let obj_description_union1 = null;
|
|
719
|
+
const obj_description_union1_error = (() => {
|
|
720
|
+
if (obj_description !== null) {
|
|
721
|
+
return new TypeError('Expected "null" but received "' + typeof obj_description + '" (at "' + path_description + '")');
|
|
722
|
+
}
|
|
723
|
+
})();
|
|
724
|
+
if (obj_description_union1_error != null) {
|
|
725
|
+
obj_description_union1 = obj_description_union1_error.message;
|
|
726
|
+
}
|
|
727
|
+
if (obj_description_union0 && obj_description_union1) {
|
|
728
|
+
let message = 'Object doesn\'t match union (at "' + path_description + '")';
|
|
729
|
+
message += '\n' + obj_description_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
730
|
+
message += '\n' + obj_description_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
731
|
+
return new TypeError(message);
|
|
732
|
+
}
|
|
733
|
+
}
|
|
734
|
+
const obj_developerName = obj.developerName;
|
|
735
|
+
const path_developerName = path + '.developerName';
|
|
736
|
+
if (typeof obj_developerName !== 'string') {
|
|
737
|
+
return new TypeError('Expected "string" but received "' + typeof obj_developerName + '" (at "' + path_developerName + '")');
|
|
738
|
+
}
|
|
739
|
+
if (obj.editorConfig !== undefined) {
|
|
740
|
+
const obj_editorConfig = obj.editorConfig;
|
|
741
|
+
const path_editorConfig = path + '.editorConfig';
|
|
742
|
+
if (obj_editorConfig === undefined) {
|
|
743
|
+
return new TypeError('Expected "defined" but received "' + typeof obj_editorConfig + '" (at "' + path_editorConfig + '")');
|
|
744
|
+
}
|
|
745
|
+
}
|
|
746
|
+
if (obj.id !== undefined) {
|
|
747
|
+
const obj_id = obj.id;
|
|
748
|
+
const path_id = path + '.id';
|
|
749
|
+
let obj_id_union0 = null;
|
|
750
|
+
const obj_id_union0_error = (() => {
|
|
751
|
+
if (typeof obj_id !== 'string') {
|
|
752
|
+
return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
|
|
753
|
+
}
|
|
754
|
+
})();
|
|
755
|
+
if (obj_id_union0_error != null) {
|
|
756
|
+
obj_id_union0 = obj_id_union0_error.message;
|
|
757
|
+
}
|
|
758
|
+
let obj_id_union1 = null;
|
|
759
|
+
const obj_id_union1_error = (() => {
|
|
760
|
+
if (obj_id !== null) {
|
|
761
|
+
return new TypeError('Expected "null" but received "' + typeof obj_id + '" (at "' + path_id + '")');
|
|
762
|
+
}
|
|
763
|
+
})();
|
|
764
|
+
if (obj_id_union1_error != null) {
|
|
765
|
+
obj_id_union1 = obj_id_union1_error.message;
|
|
766
|
+
}
|
|
767
|
+
if (obj_id_union0 && obj_id_union1) {
|
|
768
|
+
let message = 'Object doesn\'t match union (at "' + path_id + '")';
|
|
769
|
+
message += '\n' + obj_id_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
770
|
+
message += '\n' + obj_id_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
771
|
+
return new TypeError(message);
|
|
772
|
+
}
|
|
773
|
+
}
|
|
774
|
+
const obj_namespacePrefix = obj.namespacePrefix;
|
|
775
|
+
const path_namespacePrefix = path + '.namespacePrefix';
|
|
776
|
+
if (typeof obj_namespacePrefix !== 'string') {
|
|
777
|
+
return new TypeError('Expected "string" but received "' + typeof obj_namespacePrefix + '" (at "' + path_namespacePrefix + '")');
|
|
778
|
+
}
|
|
779
|
+
if (obj.rendererConfig !== undefined) {
|
|
780
|
+
const obj_rendererConfig = obj.rendererConfig;
|
|
781
|
+
const path_rendererConfig = path + '.rendererConfig';
|
|
782
|
+
if (obj_rendererConfig === undefined) {
|
|
783
|
+
return new TypeError('Expected "defined" but received "' + typeof obj_rendererConfig + '" (at "' + path_rendererConfig + '")');
|
|
784
|
+
}
|
|
785
|
+
}
|
|
786
|
+
const obj_schema = obj.schema;
|
|
787
|
+
const path_schema = path + '.schema';
|
|
788
|
+
if (typeof obj_schema !== 'object' || ArrayIsArray(obj_schema) || obj_schema === null) {
|
|
789
|
+
return new TypeError('Expected "object" but received "' + typeof obj_schema + '" (at "' + path_schema + '")');
|
|
790
|
+
}
|
|
791
|
+
const obj_schema_keys = ObjectKeys(obj_schema);
|
|
792
|
+
for (let i = 0; i < obj_schema_keys.length; i++) {
|
|
793
|
+
const key = obj_schema_keys[i];
|
|
794
|
+
const obj_schema_prop = obj_schema[key];
|
|
795
|
+
const path_schema_prop = path_schema + '["' + key + '"]';
|
|
796
|
+
if (obj_schema_prop === undefined) {
|
|
797
|
+
return new TypeError('Expected "defined" but received "' + typeof obj_schema_prop + '" (at "' + path_schema_prop + '")');
|
|
798
|
+
}
|
|
799
|
+
}
|
|
800
|
+
if (obj.title !== undefined) {
|
|
801
|
+
const obj_title = obj.title;
|
|
802
|
+
const path_title = path + '.title';
|
|
803
|
+
let obj_title_union0 = null;
|
|
804
|
+
const obj_title_union0_error = (() => {
|
|
805
|
+
if (typeof obj_title !== 'string') {
|
|
806
|
+
return new TypeError('Expected "string" but received "' + typeof obj_title + '" (at "' + path_title + '")');
|
|
807
|
+
}
|
|
808
|
+
})();
|
|
809
|
+
if (obj_title_union0_error != null) {
|
|
810
|
+
obj_title_union0 = obj_title_union0_error.message;
|
|
811
|
+
}
|
|
812
|
+
let obj_title_union1 = null;
|
|
813
|
+
const obj_title_union1_error = (() => {
|
|
814
|
+
if (obj_title !== null) {
|
|
815
|
+
return new TypeError('Expected "null" but received "' + typeof obj_title + '" (at "' + path_title + '")');
|
|
816
|
+
}
|
|
817
|
+
})();
|
|
818
|
+
if (obj_title_union1_error != null) {
|
|
819
|
+
obj_title_union1 = obj_title_union1_error.message;
|
|
820
|
+
}
|
|
821
|
+
if (obj_title_union0 && obj_title_union1) {
|
|
822
|
+
let message = 'Object doesn\'t match union (at "' + path_title + '")';
|
|
823
|
+
message += '\n' + obj_title_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
824
|
+
message += '\n' + obj_title_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
825
|
+
return new TypeError(message);
|
|
826
|
+
}
|
|
827
|
+
}
|
|
828
|
+
})();
|
|
829
|
+
return v_error === undefined ? null : v_error;
|
|
830
|
+
}
|
|
831
|
+
const RepresentationType = 'LightningTypeDetailRepresentation';
|
|
832
|
+
function normalize(input, existing, path, luvio, store, timestamp) {
|
|
833
|
+
return input;
|
|
834
|
+
}
|
|
835
|
+
const select$1 = function LightningTypeDetailRepresentationSelect() {
|
|
836
|
+
return {
|
|
837
|
+
kind: 'Fragment',
|
|
838
|
+
version: VERSION,
|
|
839
|
+
private: [],
|
|
840
|
+
opaque: true
|
|
841
|
+
};
|
|
842
|
+
};
|
|
843
|
+
function equals(existing, incoming) {
|
|
844
|
+
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
845
|
+
return false;
|
|
846
|
+
}
|
|
847
|
+
return true;
|
|
848
|
+
}
|
|
849
|
+
const ingest = function LightningTypeDetailRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
530
850
|
if (process.env.NODE_ENV !== 'production') {
|
|
531
851
|
const validateError = validate(input);
|
|
532
852
|
if (validateError !== null) {
|
|
@@ -546,17 +866,13 @@ function getTypeCacheKeys(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
546
866
|
representationName: RepresentationType,
|
|
547
867
|
mergeable: false
|
|
548
868
|
});
|
|
549
|
-
const input_lightningTypes_length = input.lightningTypes.length;
|
|
550
|
-
for (let i = 0; i < input_lightningTypes_length; i++) {
|
|
551
|
-
getTypeCacheKeys$1(rootKeySet, luvio, input.lightningTypes[i]);
|
|
552
|
-
}
|
|
553
869
|
}
|
|
554
870
|
|
|
555
871
|
function select(luvio, params) {
|
|
556
872
|
return select$1();
|
|
557
873
|
}
|
|
558
874
|
function keyBuilder$1(luvio, params) {
|
|
559
|
-
return keyPrefix + '::
|
|
875
|
+
return keyPrefix + '::LightningTypeDetailRepresentation:(' + 'editorConfigTarget:' + params.queryParams.editorConfigTarget + ',' + 'includeSubSchemaDefinitions:' + params.queryParams.includeSubSchemaDefinitions + ',' + 'language:' + params.queryParams.language + ',' + 'rendererConfigTarget:' + params.queryParams.rendererConfigTarget + ',' + 'fullyQualifiedName:' + params.urlParams.fullyQualifiedName + ')';
|
|
560
876
|
}
|
|
561
877
|
function getResponseCacheKeys(storeKeyMap, luvio, resourceParams, response) {
|
|
562
878
|
getTypeCacheKeys(storeKeyMap, luvio, response, () => keyBuilder$1(luvio, resourceParams));
|
|
@@ -594,34 +910,33 @@ function createResourceRequest(config) {
|
|
|
594
910
|
const headers = {};
|
|
595
911
|
return {
|
|
596
912
|
baseUri: '/services/data/v63.0',
|
|
597
|
-
basePath: '/connect/lightning-types',
|
|
913
|
+
basePath: '/connect/lightning-types/' + config.urlParams.fullyQualifiedName + '',
|
|
598
914
|
method: 'get',
|
|
599
915
|
body: null,
|
|
600
|
-
urlParams:
|
|
916
|
+
urlParams: config.urlParams,
|
|
601
917
|
queryParams: config.queryParams,
|
|
602
918
|
headers,
|
|
603
919
|
priority: 'normal',
|
|
604
920
|
};
|
|
605
921
|
}
|
|
606
922
|
|
|
607
|
-
const adapterName = '
|
|
608
|
-
const
|
|
923
|
+
const adapterName = 'getLightningType';
|
|
924
|
+
const getLightningType_ConfigPropertyMetadata = [
|
|
925
|
+
generateParamConfigMetadata('fullyQualifiedName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
609
926
|
generateParamConfigMetadata('editorConfigTarget', false, 1 /* QueryParameter */, 0 /* String */),
|
|
610
|
-
generateParamConfigMetadata('
|
|
927
|
+
generateParamConfigMetadata('includeSubSchemaDefinitions', false, 1 /* QueryParameter */, 1 /* Boolean */),
|
|
611
928
|
generateParamConfigMetadata('language', false, 1 /* QueryParameter */, 0 /* String */),
|
|
612
|
-
generateParamConfigMetadata('page', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
613
|
-
generateParamConfigMetadata('pageSize', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
614
929
|
generateParamConfigMetadata('rendererConfigTarget', false, 1 /* QueryParameter */, 0 /* String */),
|
|
615
930
|
];
|
|
616
|
-
const
|
|
617
|
-
const createResourceParams = /*#__PURE__*/ createResourceParams$
|
|
931
|
+
const getLightningType_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, getLightningType_ConfigPropertyMetadata);
|
|
932
|
+
const createResourceParams = /*#__PURE__*/ createResourceParams$2(getLightningType_ConfigPropertyMetadata);
|
|
618
933
|
function keyBuilder(luvio, config) {
|
|
619
934
|
const resourceParams = createResourceParams(config);
|
|
620
935
|
return keyBuilder$1(luvio, resourceParams);
|
|
621
936
|
}
|
|
622
937
|
function typeCheckConfig(untrustedConfig) {
|
|
623
938
|
const config = {};
|
|
624
|
-
typeCheckConfig$
|
|
939
|
+
typeCheckConfig$2(untrustedConfig, config, getLightningType_ConfigPropertyMetadata);
|
|
625
940
|
return config;
|
|
626
941
|
}
|
|
627
942
|
function validateAdapterConfig(untrustedConfig, configPropertyNames) {
|
|
@@ -670,7 +985,7 @@ function buildNetworkSnapshot(luvio, config, options) {
|
|
|
670
985
|
});
|
|
671
986
|
}
|
|
672
987
|
function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
|
|
673
|
-
return buildNetworkSnapshotCachePolicy$
|
|
988
|
+
return buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext, buildNetworkSnapshot, undefined, false);
|
|
674
989
|
}
|
|
675
990
|
function buildCachedSnapshotCachePolicy(context, storeLookup) {
|
|
676
991
|
const { luvio, config } = context;
|
|
@@ -685,8 +1000,8 @@ function buildCachedSnapshotCachePolicy(context, storeLookup) {
|
|
|
685
1000
|
});
|
|
686
1001
|
return cacheSnapshot;
|
|
687
1002
|
}
|
|
688
|
-
const
|
|
689
|
-
const config = validateAdapterConfig(untrustedConfig,
|
|
1003
|
+
const getLightningTypeAdapterFactory = (luvio) => function lightningTypes__getLightningType(untrustedConfig, requestContext) {
|
|
1004
|
+
const config = validateAdapterConfig(untrustedConfig, getLightningType_ConfigPropertyNames);
|
|
690
1005
|
// Invalid or incomplete config
|
|
691
1006
|
if (config === null) {
|
|
692
1007
|
return null;
|
|
@@ -695,4 +1010,4 @@ const getLightningTypesAdapterFactory = (luvio) => function lightningTypes__getL
|
|
|
695
1010
|
buildCachedSnapshotCachePolicy, buildNetworkSnapshotCachePolicy);
|
|
696
1011
|
};
|
|
697
1012
|
|
|
698
|
-
export { getLightningTypesAdapterFactory };
|
|
1013
|
+
export { getLightningTypeAdapterFactory, getLightningTypesAdapterFactory };
|
|
@@ -0,0 +1,31 @@
|
|
|
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';
|
|
3
|
+
import { ResourceRequestConfig as resources_getConnectLightningTypesByFullyQualifiedName_ResourceRequestConfig } from '../resources/getConnectLightningTypesByFullyQualifiedName';
|
|
4
|
+
import { LightningTypeDetailRepresentation as types_LightningTypeDetailRepresentation_LightningTypeDetailRepresentation } from '../types/LightningTypeDetailRepresentation';
|
|
5
|
+
export declare const adapterName = "getLightningType";
|
|
6
|
+
export declare const getLightningType_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
|
|
7
|
+
export declare const getLightningType_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
|
|
8
|
+
export interface GetLightningTypeConfig {
|
|
9
|
+
fullyQualifiedName: string;
|
|
10
|
+
editorConfigTarget?: string;
|
|
11
|
+
includeSubSchemaDefinitions?: boolean;
|
|
12
|
+
language?: string;
|
|
13
|
+
rendererConfigTarget?: string;
|
|
14
|
+
}
|
|
15
|
+
export declare const createResourceParams: (config: GetLightningTypeConfig) => resources_getConnectLightningTypesByFullyQualifiedName_ResourceRequestConfig;
|
|
16
|
+
export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: GetLightningTypeConfig): string;
|
|
17
|
+
export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, config: GetLightningTypeConfig): $64$luvio_engine_NormalizedKeyMetadata;
|
|
18
|
+
export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<GetLightningTypeConfig>): adapter$45$utils_Untrusted<GetLightningTypeConfig>;
|
|
19
|
+
export declare function validateAdapterConfig(untrustedConfig: unknown, configPropertyNames: adapter$45$utils_AdapterValidationConfig): GetLightningTypeConfig | null;
|
|
20
|
+
export declare function adapterFragment(luvio: $64$luvio_engine_Luvio, config: GetLightningTypeConfig): $64$luvio_engine_Fragment;
|
|
21
|
+
export declare function buildCachedSnapshot(luvio: $64$luvio_engine_Luvio, config: GetLightningTypeConfig): $64$luvio_engine_Snapshot<types_LightningTypeDetailRepresentation_LightningTypeDetailRepresentation, any>;
|
|
22
|
+
export declare function onFetchResponseSuccess(luvio: $64$luvio_engine_Luvio, config: GetLightningTypeConfig, resourceParams: resources_getConnectLightningTypesByFullyQualifiedName_ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_LightningTypeDetailRepresentation_LightningTypeDetailRepresentation>): Promise<import("@luvio/engine").FulfilledSnapshot<types_LightningTypeDetailRepresentation_LightningTypeDetailRepresentation, {}> | import("@luvio/engine").StaleSnapshot<types_LightningTypeDetailRepresentation_LightningTypeDetailRepresentation, {}> | import("@luvio/engine").PendingSnapshot<types_LightningTypeDetailRepresentation_LightningTypeDetailRepresentation, any>>;
|
|
23
|
+
export declare function onFetchResponseError(luvio: $64$luvio_engine_Luvio, config: GetLightningTypeConfig, resourceParams: resources_getConnectLightningTypesByFullyQualifiedName_ResourceRequestConfig, response: $64$luvio_engine_ErrorResponse): Promise<import("@luvio/engine").ErrorSnapshot>;
|
|
24
|
+
export declare function buildNetworkSnapshot(luvio: $64$luvio_engine_Luvio, config: GetLightningTypeConfig, options?: $64$luvio_engine_DispatchResourceRequestContext): Promise<$64$luvio_engine_Snapshot<types_LightningTypeDetailRepresentation_LightningTypeDetailRepresentation, any>>;
|
|
25
|
+
export type BuildSnapshotContext = {
|
|
26
|
+
luvio: $64$luvio_engine_Luvio;
|
|
27
|
+
config: GetLightningTypeConfig;
|
|
28
|
+
};
|
|
29
|
+
export declare function buildNetworkSnapshotCachePolicy(context: BuildSnapshotContext, coercedAdapterRequestContext: $64$luvio_engine_CoercedAdapterRequestContext): Promise<$64$luvio_engine_Snapshot<types_LightningTypeDetailRepresentation_LightningTypeDetailRepresentation, any>>;
|
|
30
|
+
export declare function buildCachedSnapshotCachePolicy(context: BuildSnapshotContext, storeLookup: $64$luvio_engine_StoreLookup<types_LightningTypeDetailRepresentation_LightningTypeDetailRepresentation>): $64$luvio_engine_Snapshot<types_LightningTypeDetailRepresentation_LightningTypeDetailRepresentation, any>;
|
|
31
|
+
export declare const getLightningTypeAdapterFactory: $64$luvio_engine_AdapterFactory<GetLightningTypeConfig, types_LightningTypeDetailRepresentation_LightningTypeDetailRepresentation>;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
declare let getLightningType: any;
|
|
1
2
|
declare let getLightningTypes: any;
|
|
3
|
+
declare let getLightningType_imperative: any;
|
|
2
4
|
declare let getLightningTypes_imperative: any;
|
|
3
|
-
export { getLightningTypes, getLightningTypes_imperative };
|
|
5
|
+
export { getLightningType, getLightningTypes, getLightningType_imperative, getLightningTypes_imperative, };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Luvio as $64$luvio_engine_Luvio, Fragment as $64$luvio_engine_Fragment, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, FetchResponse as $64$luvio_engine_FetchResponse, SnapshotRefresh as $64$luvio_engine_SnapshotRefresh, FulfilledSnapshot as $64$luvio_engine_FulfilledSnapshot, StaleSnapshot as $64$luvio_engine_StaleSnapshot, PendingSnapshot as $64$luvio_engine_PendingSnapshot, ErrorResponse as $64$luvio_engine_ErrorResponse, ErrorSnapshot as $64$luvio_engine_ErrorSnapshot, ResourceRequest as $64$luvio_engine_ResourceRequest } from '@luvio/engine';
|
|
2
|
+
import { LightningTypeDetailRepresentation as types_LightningTypeDetailRepresentation_LightningTypeDetailRepresentation } from '../types/LightningTypeDetailRepresentation';
|
|
3
|
+
export interface ResourceRequestConfig {
|
|
4
|
+
urlParams: {
|
|
5
|
+
fullyQualifiedName: string;
|
|
6
|
+
};
|
|
7
|
+
queryParams: {
|
|
8
|
+
editorConfigTarget?: string;
|
|
9
|
+
includeSubSchemaDefinitions?: boolean;
|
|
10
|
+
language?: string;
|
|
11
|
+
rendererConfigTarget?: string;
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
|
|
15
|
+
export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): string;
|
|
16
|
+
export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_NormalizedKeyMetadata;
|
|
17
|
+
export declare function getResponseCacheKeys(storeKeyMap: any, luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_LightningTypeDetailRepresentation_LightningTypeDetailRepresentation): void;
|
|
18
|
+
export declare function ingestSuccess(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_LightningTypeDetailRepresentation_LightningTypeDetailRepresentation>, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_LightningTypeDetailRepresentation_LightningTypeDetailRepresentation>): $64$luvio_engine_FulfilledSnapshot<types_LightningTypeDetailRepresentation_LightningTypeDetailRepresentation, {}> | $64$luvio_engine_StaleSnapshot<types_LightningTypeDetailRepresentation_LightningTypeDetailRepresentation, {}> | $64$luvio_engine_PendingSnapshot<types_LightningTypeDetailRepresentation_LightningTypeDetailRepresentation, any>;
|
|
19
|
+
export declare function ingestError(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig, error: $64$luvio_engine_ErrorResponse, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_LightningTypeDetailRepresentation_LightningTypeDetailRepresentation>): $64$luvio_engine_ErrorSnapshot;
|
|
20
|
+
export declare function createResourceRequest(config: ResourceRequestConfig): $64$luvio_engine_ResourceRequest;
|
|
21
|
+
export default createResourceRequest;
|