@salesforce/lds-adapters-platform-lightning-types 1.371.0 → 1.372.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.
|
@@ -150,7 +150,7 @@ function createLink(ref) {
|
|
|
150
150
|
}
|
|
151
151
|
|
|
152
152
|
const TTL$4 = 100;
|
|
153
|
-
const VERSION$4 = "
|
|
153
|
+
const VERSION$4 = "0041e3158f20c73cba96d196c285c20f";
|
|
154
154
|
function validate$e(obj, path = 'LightningTypeSummaryRepresentation') {
|
|
155
155
|
const v_error = (() => {
|
|
156
156
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -324,15 +324,6 @@ function validate$e(obj, path = 'LightningTypeSummaryRepresentation') {
|
|
|
324
324
|
return v_error === undefined ? null : v_error;
|
|
325
325
|
}
|
|
326
326
|
const RepresentationType$4 = 'LightningTypeSummaryRepresentation';
|
|
327
|
-
function keyBuilder$8(luvio, config) {
|
|
328
|
-
return keyPrefix + '::' + RepresentationType$4 + ':' + (config.id === null ? '' : config.id);
|
|
329
|
-
}
|
|
330
|
-
function keyBuilderFromType(luvio, object) {
|
|
331
|
-
const keyParams = {
|
|
332
|
-
id: object.developerName
|
|
333
|
-
};
|
|
334
|
-
return keyBuilder$8(luvio, keyParams);
|
|
335
|
-
}
|
|
336
327
|
function normalize$4(input, existing, path, luvio, store, timestamp) {
|
|
337
328
|
return input;
|
|
338
329
|
}
|
|
@@ -357,14 +348,14 @@ const ingest$4 = function LightningTypeSummaryRepresentationIngest(input, path,
|
|
|
357
348
|
throw validateError;
|
|
358
349
|
}
|
|
359
350
|
}
|
|
360
|
-
const key =
|
|
351
|
+
const key = path.fullPath;
|
|
361
352
|
const ttlToUse = TTL$4;
|
|
362
353
|
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$4, "lightning-types", VERSION$4, RepresentationType$4, equals$4);
|
|
363
354
|
return createLink(key);
|
|
364
355
|
};
|
|
365
356
|
function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
|
|
366
357
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
367
|
-
const rootKey =
|
|
358
|
+
const rootKey = fullPathFactory();
|
|
368
359
|
rootKeySet.set(rootKey, {
|
|
369
360
|
namespace: keyPrefix,
|
|
370
361
|
representationName: RepresentationType$4,
|
|
@@ -605,7 +596,7 @@ function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
605
596
|
});
|
|
606
597
|
const input_lightningTypes_length = input.lightningTypes.length;
|
|
607
598
|
for (let i = 0; i < input_lightningTypes_length; i++) {
|
|
608
|
-
getTypeCacheKeys$4(rootKeySet, luvio, input.lightningTypes[i]);
|
|
599
|
+
getTypeCacheKeys$4(rootKeySet, luvio, input.lightningTypes[i], () => '');
|
|
609
600
|
}
|
|
610
601
|
}
|
|
611
602
|
|
|
@@ -1,17 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, BaseFragment as $64$luvio_engine_BaseFragment, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
|
|
2
2
|
export declare const TTL = 100;
|
|
3
|
-
export declare const VERSION = "
|
|
3
|
+
export declare const VERSION = "0041e3158f20c73cba96d196c285c20f";
|
|
4
4
|
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
5
5
|
export declare const RepresentationType: string;
|
|
6
|
-
export interface KeyParams extends $64$luvio_engine_KeyMetadata {
|
|
7
|
-
id: string | null;
|
|
8
|
-
}
|
|
9
|
-
export type LightningTypeSummaryRepresentationNormalizedKeyMetadata = KeyParams & $64$luvio_engine_NormalizedKeyMetadata;
|
|
10
|
-
export type PartialLightningTypeSummaryRepresentationNormalizedKeyMetadata = Partial<KeyParams> & $64$luvio_engine_NormalizedKeyMetadata;
|
|
11
|
-
export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: KeyParams): string;
|
|
12
|
-
export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, config: KeyParams): LightningTypeSummaryRepresentationNormalizedKeyMetadata;
|
|
13
|
-
export declare function keyBuilderFromType(luvio: $64$luvio_engine_Luvio, object: LightningTypeSummaryRepresentation): string;
|
|
14
|
-
export declare function keyBuilderFromType_StructuredKey(luvio: $64$luvio_engine_Luvio, object: LightningTypeSummaryRepresentation): $64$luvio_engine_NormalizedKeyMetadata;
|
|
15
6
|
export declare function normalize(input: LightningTypeSummaryRepresentation, existing: LightningTypeSummaryRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): LightningTypeSummaryRepresentationNormalized;
|
|
16
7
|
export declare const select: () => $64$luvio_engine_BaseFragment;
|
|
17
8
|
export declare function equals(existing: LightningTypeSummaryRepresentationNormalized, incoming: LightningTypeSummaryRepresentationNormalized): boolean;
|
|
@@ -21,7 +12,7 @@ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableSto
|
|
|
21
12
|
* Summary Representation of a Lightning type.A collection of this is returned in the list endpoints.
|
|
22
13
|
*
|
|
23
14
|
* Keys:
|
|
24
|
-
*
|
|
15
|
+
* (none)
|
|
25
16
|
*/
|
|
26
17
|
export interface LightningTypeSummaryRepresentationNormalized {
|
|
27
18
|
/** The description of the Type that was given in its schema.json. */
|
|
@@ -41,7 +32,7 @@ export interface LightningTypeSummaryRepresentationNormalized {
|
|
|
41
32
|
* Summary Representation of a Lightning type.A collection of this is returned in the list endpoints.
|
|
42
33
|
*
|
|
43
34
|
* Keys:
|
|
44
|
-
*
|
|
35
|
+
* (none)
|
|
45
36
|
*/
|
|
46
37
|
export interface LightningTypeSummaryRepresentation {
|
|
47
38
|
description?: string | null;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-adapters-platform-lightning-types",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.372.1",
|
|
4
4
|
"description": "wire adapter for lightning types",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"main": "dist/es/es2018/platform-lightning-types.js",
|
|
@@ -40,10 +40,10 @@
|
|
|
40
40
|
"test:unit": "jest"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@salesforce/lds-bindings": "^1.
|
|
43
|
+
"@salesforce/lds-bindings": "^1.372.1"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@salesforce/lds-compiler-plugins": "^1.
|
|
46
|
+
"@salesforce/lds-compiler-plugins": "^1.372.1"
|
|
47
47
|
},
|
|
48
48
|
"nx": {
|
|
49
49
|
"targets": {
|
package/sfdc/index.js
CHANGED
|
@@ -334,15 +334,15 @@ function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
334
334
|
function select$7(luvio, params) {
|
|
335
335
|
return select$8();
|
|
336
336
|
}
|
|
337
|
-
function keyBuilder$
|
|
337
|
+
function keyBuilder$7(luvio, params) {
|
|
338
338
|
return keyPrefix + '::LightningTypeDetailRepresentation:(' + 'editorConfigTarget:' + params.queryParams.editorConfigTarget + ',' + 'expandConfigs:' + params.queryParams.expandConfigs + ',' + 'includeSubSchemaDefinitions:' + params.queryParams.includeSubSchemaDefinitions + ',' + 'language:' + params.queryParams.language + ',' + 'rendererConfigTarget:' + params.queryParams.rendererConfigTarget + ',' + 'fullyQualifiedName:' + params.urlParams.fullyQualifiedName + ')';
|
|
339
339
|
}
|
|
340
340
|
function getResponseCacheKeys$3(storeKeyMap, luvio, resourceParams, response) {
|
|
341
|
-
getTypeCacheKeys$4(storeKeyMap, luvio, response, () => keyBuilder$
|
|
341
|
+
getTypeCacheKeys$4(storeKeyMap, luvio, response, () => keyBuilder$7(luvio, resourceParams));
|
|
342
342
|
}
|
|
343
343
|
function ingestSuccess$3(luvio, resourceParams, response, snapshotRefresh) {
|
|
344
344
|
const { body } = response;
|
|
345
|
-
const key = keyBuilder$
|
|
345
|
+
const key = keyBuilder$7(luvio, resourceParams);
|
|
346
346
|
luvio.storeIngest(key, ingest$4, body);
|
|
347
347
|
const snapshot = luvio.storeLookup({
|
|
348
348
|
recordId: key,
|
|
@@ -358,7 +358,7 @@ function ingestSuccess$3(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
358
358
|
return snapshot;
|
|
359
359
|
}
|
|
360
360
|
function ingestError$3(luvio, params, error, snapshotRefresh) {
|
|
361
|
-
const key = keyBuilder$
|
|
361
|
+
const key = keyBuilder$7(luvio, params);
|
|
362
362
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
363
363
|
const storeMetadataParams = {
|
|
364
364
|
ttl: TTL$4,
|
|
@@ -394,9 +394,9 @@ const getLightningType_ConfigPropertyMetadata = [
|
|
|
394
394
|
];
|
|
395
395
|
const getLightningType_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, getLightningType_ConfigPropertyMetadata);
|
|
396
396
|
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$4(getLightningType_ConfigPropertyMetadata);
|
|
397
|
-
function keyBuilder$
|
|
397
|
+
function keyBuilder$6(luvio, config) {
|
|
398
398
|
const resourceParams = createResourceParams$3(config);
|
|
399
|
-
return keyBuilder$
|
|
399
|
+
return keyBuilder$7(luvio, resourceParams);
|
|
400
400
|
}
|
|
401
401
|
function typeCheckConfig$3(untrustedConfig) {
|
|
402
402
|
const config = {};
|
|
@@ -454,7 +454,7 @@ function buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext
|
|
|
454
454
|
function buildCachedSnapshotCachePolicy$3(context, storeLookup) {
|
|
455
455
|
const { luvio, config } = context;
|
|
456
456
|
const selector = {
|
|
457
|
-
recordId: keyBuilder$
|
|
457
|
+
recordId: keyBuilder$6(luvio, config),
|
|
458
458
|
node: adapterFragment$3(luvio, config),
|
|
459
459
|
variables: {},
|
|
460
460
|
};
|
|
@@ -475,7 +475,7 @@ const getLightningTypeAdapterFactory = (luvio) => function lightningTypes__getLi
|
|
|
475
475
|
};
|
|
476
476
|
|
|
477
477
|
const TTL$3 = 100;
|
|
478
|
-
const VERSION$3 = "
|
|
478
|
+
const VERSION$3 = "0041e3158f20c73cba96d196c285c20f";
|
|
479
479
|
function validate$d(obj, path = 'LightningTypeSummaryRepresentation') {
|
|
480
480
|
const v_error = (() => {
|
|
481
481
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -649,15 +649,6 @@ function validate$d(obj, path = 'LightningTypeSummaryRepresentation') {
|
|
|
649
649
|
return v_error === undefined ? null : v_error;
|
|
650
650
|
}
|
|
651
651
|
const RepresentationType$3 = 'LightningTypeSummaryRepresentation';
|
|
652
|
-
function keyBuilder$6(luvio, config) {
|
|
653
|
-
return keyPrefix + '::' + RepresentationType$3 + ':' + (config.id === null ? '' : config.id);
|
|
654
|
-
}
|
|
655
|
-
function keyBuilderFromType(luvio, object) {
|
|
656
|
-
const keyParams = {
|
|
657
|
-
id: object.developerName
|
|
658
|
-
};
|
|
659
|
-
return keyBuilder$6(luvio, keyParams);
|
|
660
|
-
}
|
|
661
652
|
function normalize$3(input, existing, path, luvio, store, timestamp) {
|
|
662
653
|
return input;
|
|
663
654
|
}
|
|
@@ -682,14 +673,14 @@ const ingest$3 = function LightningTypeSummaryRepresentationIngest(input, path,
|
|
|
682
673
|
throw validateError;
|
|
683
674
|
}
|
|
684
675
|
}
|
|
685
|
-
const key =
|
|
676
|
+
const key = path.fullPath;
|
|
686
677
|
const ttlToUse = TTL$3;
|
|
687
678
|
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$3, "lightning-types", VERSION$3, RepresentationType$3, equals$3);
|
|
688
679
|
return createLink(key);
|
|
689
680
|
};
|
|
690
681
|
function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
|
|
691
682
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
692
|
-
const rootKey =
|
|
683
|
+
const rootKey = fullPathFactory();
|
|
693
684
|
rootKeySet.set(rootKey, {
|
|
694
685
|
namespace: keyPrefix,
|
|
695
686
|
representationName: RepresentationType$3,
|
|
@@ -930,7 +921,7 @@ function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
930
921
|
});
|
|
931
922
|
const input_lightningTypes_length = input.lightningTypes.length;
|
|
932
923
|
for (let i = 0; i < input_lightningTypes_length; i++) {
|
|
933
|
-
getTypeCacheKeys$3(rootKeySet, luvio, input.lightningTypes[i]);
|
|
924
|
+
getTypeCacheKeys$3(rootKeySet, luvio, input.lightningTypes[i], () => '');
|
|
934
925
|
}
|
|
935
926
|
}
|
|
936
927
|
|
|
@@ -1966,4 +1957,4 @@ withDefaultLuvio((luvio) => {
|
|
|
1966
1957
|
});
|
|
1967
1958
|
|
|
1968
1959
|
export { getLightningType, getLightningType_imperative, getLightningTypes, getLightningTypes_imperative, getTypes, getTypes_imperative, validateLightningModel, validateLightningModel_imperative };
|
|
1969
|
-
// version: 1.
|
|
1960
|
+
// version: 1.372.1-8824ae9dd4
|