@salesforce/lds-adapters-experience-model 1.278.0 → 1.280.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/experience-model.js +15 -1
- package/dist/es/es2018/types/src/generated/types/ExperienceModelDesignConfigInputRepresentation.d.ts +4 -1
- package/dist/es/es2018/types/src/generated/types/ExperienceModelRenditionConfigInputRepresentation.d.ts +4 -1
- package/package.json +4 -4
- package/sfdc/index.js +17 -3
- package/src/raml/api.raml +8 -0
|
@@ -1713,6 +1713,13 @@ function validate$8(obj, path = 'ExperienceModelDesignConfigInputRepresentation'
|
|
|
1713
1713
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1714
1714
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1715
1715
|
}
|
|
1716
|
+
if (obj.subViewDefinitions !== undefined) {
|
|
1717
|
+
const obj_subViewDefinitions = obj.subViewDefinitions;
|
|
1718
|
+
const path_subViewDefinitions = path + '.subViewDefinitions';
|
|
1719
|
+
if (typeof obj_subViewDefinitions !== 'boolean') {
|
|
1720
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_subViewDefinitions + '" (at "' + path_subViewDefinitions + '")');
|
|
1721
|
+
}
|
|
1722
|
+
}
|
|
1716
1723
|
if (obj.target !== undefined) {
|
|
1717
1724
|
const obj_target = obj.target;
|
|
1718
1725
|
const path_target = path + '.target';
|
|
@@ -1729,6 +1736,13 @@ function validate$7(obj, path = 'ExperienceModelRenditionConfigInputRepresentati
|
|
|
1729
1736
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1730
1737
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1731
1738
|
}
|
|
1739
|
+
if (obj.subViewDefinitions !== undefined) {
|
|
1740
|
+
const obj_subViewDefinitions = obj.subViewDefinitions;
|
|
1741
|
+
const path_subViewDefinitions = path + '.subViewDefinitions';
|
|
1742
|
+
if (typeof obj_subViewDefinitions !== 'boolean') {
|
|
1743
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_subViewDefinitions + '" (at "' + path_subViewDefinitions + '")');
|
|
1744
|
+
}
|
|
1745
|
+
}
|
|
1732
1746
|
if (obj.target !== undefined) {
|
|
1733
1747
|
const obj_target = obj.target;
|
|
1734
1748
|
const path_target = path + '.target';
|
|
@@ -2040,7 +2054,7 @@ function select(luvio, params) {
|
|
|
2040
2054
|
return select$1();
|
|
2041
2055
|
}
|
|
2042
2056
|
function keyBuilder$1(luvio, params) {
|
|
2043
|
-
return keyPrefix + '::ExperienceModelTypesCollectionRepresentation:(' + 'language:' + params.body.language + '::' + '[' + params.body.typeConfigs.map(element => { var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p; return 'typeConfigs.descriptor:' + element.descriptor + '::' + (((_a = element.designConfig) === null || _a === void 0 ? void 0 : _a.target) === undefined ? 'typeConfigs.designConfig.target' : 'typeConfigs.designConfig.target:' + ((_b = element.designConfig) === null || _b === void 0 ? void 0 : _b.target)) + '::' + (((_c = element.
|
|
2057
|
+
return keyPrefix + '::ExperienceModelTypesCollectionRepresentation:(' + '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; return 'typeConfigs.descriptor:' + element.descriptor + '::' + (((_a = element.designConfig) === null || _a === void 0 ? void 0 : _a.target) === undefined ? 'typeConfigs.designConfig.target' : 'typeConfigs.designConfig.target:' + ((_b = element.designConfig) === null || _b === void 0 ? void 0 : _b.target)) + '::' + (((_c = element.designConfig) === null || _c === void 0 ? void 0 : _c.subViewDefinitions) === undefined ? 'typeConfigs.designConfig.subViewDefinitions' : 'typeConfigs.designConfig.subViewDefinitions:' + ((_d = element.designConfig) === null || _d === void 0 ? void 0 : _d.subViewDefinitions)) + '::' + (((_e = element.renditionConfig) === null || _e === void 0 ? void 0 : _e.target) === undefined ? 'typeConfigs.renditionConfig.target' : 'typeConfigs.renditionConfig.target:' + ((_f = element.renditionConfig) === null || _f === void 0 ? void 0 : _f.target)) + '::' + (((_g = element.renditionConfig) === null || _g === void 0 ? void 0 : _g.subViewDefinitions) === undefined ? 'typeConfigs.renditionConfig.subViewDefinitions' : 'typeConfigs.renditionConfig.subViewDefinitions:' + ((_h = element.renditionConfig) === null || _h === void 0 ? void 0 : _h.subViewDefinitions)) + '::' + (((_k = (_j = element.schemaConfig) === null || _j === void 0 ? void 0 : _j.filterConfig) === null || _k === void 0 ? void 0 : _k.propertyNames) === undefined ? 'typeConfigs.schemaConfig.filterConfig.propertyNames' : 'typeConfigs.schemaConfig.filterConfig.propertyNames:' + ((_m = (_l = element.schemaConfig) === null || _l === void 0 ? void 0 : _l.filterConfig) === null || _m === void 0 ? void 0 : _m.propertyNames)) + '::' + (((_o = element.schemaConfig) === null || _o === void 0 ? void 0 : _o.subSchemaDefinitions) === undefined ? 'typeConfigs.schemaConfig.subSchemaDefinitions' : 'typeConfigs.schemaConfig.subSchemaDefinitions:' + ((_p = element.schemaConfig) === null || _p === void 0 ? void 0 : _p.subSchemaDefinitions)) + '::' + (((_q = element.sourceDescriptor) === null || _q === void 0 ? void 0 : _q.descriptor) === undefined ? 'typeConfigs.sourceDescriptor.descriptor' : 'typeConfigs.sourceDescriptor.descriptor:' + ((_r = element.sourceDescriptor) === null || _r === void 0 ? void 0 : _r.descriptor)) + '::' + (((_s = element.sourceDescriptor) === null || _s === void 0 ? void 0 : _s.propertyName) === undefined ? 'typeConfigs.sourceDescriptor.propertyName' : 'typeConfigs.sourceDescriptor.propertyName:' + ((_t = element.sourceDescriptor) === null || _t === void 0 ? void 0 : _t.propertyName)); }).join(',') + ']' + ')';
|
|
2044
2058
|
}
|
|
2045
2059
|
function getResponseCacheKeys(storeKeyMap, luvio, resourceParams, response) {
|
|
2046
2060
|
getTypeCacheKeys(storeKeyMap, luvio, response, () => keyBuilder$1(luvio, resourceParams));
|
package/dist/es/es2018/types/src/generated/types/ExperienceModelDesignConfigInputRepresentation.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
|
|
2
|
-
export declare const VERSION = "
|
|
2
|
+
export declare const VERSION = "7388ed8ed3ade99c15a3c6f15ccda1f6";
|
|
3
3
|
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
4
4
|
export declare const RepresentationType: string;
|
|
5
5
|
export declare function normalize(input: ExperienceModelDesignConfigInputRepresentation, existing: ExperienceModelDesignConfigInputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ExperienceModelDesignConfigInputRepresentationNormalized;
|
|
@@ -14,6 +14,8 @@ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableSto
|
|
|
14
14
|
* (none)
|
|
15
15
|
*/
|
|
16
16
|
export interface ExperienceModelDesignConfigInputRepresentationNormalized {
|
|
17
|
+
/** Boolean property if sub-view should be included */
|
|
18
|
+
subViewDefinitions?: boolean;
|
|
17
19
|
/** A design configuration target. To fetch all the types that have the design configuration for a particular target. */
|
|
18
20
|
target?: string;
|
|
19
21
|
}
|
|
@@ -24,5 +26,6 @@ export interface ExperienceModelDesignConfigInputRepresentationNormalized {
|
|
|
24
26
|
* (none)
|
|
25
27
|
*/
|
|
26
28
|
export interface ExperienceModelDesignConfigInputRepresentation {
|
|
29
|
+
subViewDefinitions?: boolean;
|
|
27
30
|
target?: string;
|
|
28
31
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
|
|
2
|
-
export declare const VERSION = "
|
|
2
|
+
export declare const VERSION = "b6d33fd2b8365c2a1d0c8cc67be88b0d";
|
|
3
3
|
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
4
4
|
export declare const RepresentationType: string;
|
|
5
5
|
export declare function normalize(input: ExperienceModelRenditionConfigInputRepresentation, existing: ExperienceModelRenditionConfigInputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ExperienceModelRenditionConfigInputRepresentationNormalized;
|
|
@@ -14,6 +14,8 @@ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableSto
|
|
|
14
14
|
* (none)
|
|
15
15
|
*/
|
|
16
16
|
export interface ExperienceModelRenditionConfigInputRepresentationNormalized {
|
|
17
|
+
/** Boolean property if sub-view should be included */
|
|
18
|
+
subViewDefinitions?: boolean;
|
|
17
19
|
/** A rendition configuration target. To fetch all the types that have the rendition configuration for a particular target. */
|
|
18
20
|
target?: string;
|
|
19
21
|
}
|
|
@@ -24,5 +26,6 @@ export interface ExperienceModelRenditionConfigInputRepresentationNormalized {
|
|
|
24
26
|
* (none)
|
|
25
27
|
*/
|
|
26
28
|
export interface ExperienceModelRenditionConfigInputRepresentation {
|
|
29
|
+
subViewDefinitions?: boolean;
|
|
27
30
|
target?: string;
|
|
28
31
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-adapters-experience-model",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.280.0",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
5
5
|
"description": "APIs to read and query all the 'types' in the Unified Experience Model",
|
|
6
6
|
"main": "dist/es/es2018/experience-model.js",
|
|
@@ -44,11 +44,11 @@
|
|
|
44
44
|
"test:unit": "jest"
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@salesforce/lds-bindings": "^1.
|
|
47
|
+
"@salesforce/lds-bindings": "^1.280.0"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
|
-
"@salesforce/lds-compiler-plugins": "^1.
|
|
51
|
-
"@salesforce/lds-karma": "^1.
|
|
50
|
+
"@salesforce/lds-compiler-plugins": "^1.280.0",
|
|
51
|
+
"@salesforce/lds-karma": "^1.280.0"
|
|
52
52
|
},
|
|
53
53
|
"nx": {
|
|
54
54
|
"targets": {
|
package/sfdc/index.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* For full license text, see the LICENSE.txt file
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
/*
|
|
7
|
+
/*
|
|
8
8
|
* ATTENTION!
|
|
9
9
|
* THIS IS A GENERATED FILE FROM https://github.com/salesforce-experience-platform-emu/lds-lightning-platform
|
|
10
10
|
* If you would like to contribute to LDS, please follow the steps outlined in the git repo.
|
|
@@ -1723,6 +1723,13 @@ function validate$8(obj, path = 'ExperienceModelDesignConfigInputRepresentation'
|
|
|
1723
1723
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1724
1724
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1725
1725
|
}
|
|
1726
|
+
if (obj.subViewDefinitions !== undefined) {
|
|
1727
|
+
const obj_subViewDefinitions = obj.subViewDefinitions;
|
|
1728
|
+
const path_subViewDefinitions = path + '.subViewDefinitions';
|
|
1729
|
+
if (typeof obj_subViewDefinitions !== 'boolean') {
|
|
1730
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_subViewDefinitions + '" (at "' + path_subViewDefinitions + '")');
|
|
1731
|
+
}
|
|
1732
|
+
}
|
|
1726
1733
|
if (obj.target !== undefined) {
|
|
1727
1734
|
const obj_target = obj.target;
|
|
1728
1735
|
const path_target = path + '.target';
|
|
@@ -1739,6 +1746,13 @@ function validate$7(obj, path = 'ExperienceModelRenditionConfigInputRepresentati
|
|
|
1739
1746
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1740
1747
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1741
1748
|
}
|
|
1749
|
+
if (obj.subViewDefinitions !== undefined) {
|
|
1750
|
+
const obj_subViewDefinitions = obj.subViewDefinitions;
|
|
1751
|
+
const path_subViewDefinitions = path + '.subViewDefinitions';
|
|
1752
|
+
if (typeof obj_subViewDefinitions !== 'boolean') {
|
|
1753
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_subViewDefinitions + '" (at "' + path_subViewDefinitions + '")');
|
|
1754
|
+
}
|
|
1755
|
+
}
|
|
1742
1756
|
if (obj.target !== undefined) {
|
|
1743
1757
|
const obj_target = obj.target;
|
|
1744
1758
|
const path_target = path + '.target';
|
|
@@ -2050,7 +2064,7 @@ function select(luvio, params) {
|
|
|
2050
2064
|
return select$1();
|
|
2051
2065
|
}
|
|
2052
2066
|
function keyBuilder$1(luvio, params) {
|
|
2053
|
-
return keyPrefix + '::ExperienceModelTypesCollectionRepresentation:(' + 'language:' + params.body.language + '::' + '[' + params.body.typeConfigs.map(element => { var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p; return 'typeConfigs.descriptor:' + element.descriptor + '::' + (((_a = element.designConfig) === null || _a === void 0 ? void 0 : _a.target) === undefined ? 'typeConfigs.designConfig.target' : 'typeConfigs.designConfig.target:' + ((_b = element.designConfig) === null || _b === void 0 ? void 0 : _b.target)) + '::' + (((_c = element.
|
|
2067
|
+
return keyPrefix + '::ExperienceModelTypesCollectionRepresentation:(' + '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; return 'typeConfigs.descriptor:' + element.descriptor + '::' + (((_a = element.designConfig) === null || _a === void 0 ? void 0 : _a.target) === undefined ? 'typeConfigs.designConfig.target' : 'typeConfigs.designConfig.target:' + ((_b = element.designConfig) === null || _b === void 0 ? void 0 : _b.target)) + '::' + (((_c = element.designConfig) === null || _c === void 0 ? void 0 : _c.subViewDefinitions) === undefined ? 'typeConfigs.designConfig.subViewDefinitions' : 'typeConfigs.designConfig.subViewDefinitions:' + ((_d = element.designConfig) === null || _d === void 0 ? void 0 : _d.subViewDefinitions)) + '::' + (((_e = element.renditionConfig) === null || _e === void 0 ? void 0 : _e.target) === undefined ? 'typeConfigs.renditionConfig.target' : 'typeConfigs.renditionConfig.target:' + ((_f = element.renditionConfig) === null || _f === void 0 ? void 0 : _f.target)) + '::' + (((_g = element.renditionConfig) === null || _g === void 0 ? void 0 : _g.subViewDefinitions) === undefined ? 'typeConfigs.renditionConfig.subViewDefinitions' : 'typeConfigs.renditionConfig.subViewDefinitions:' + ((_h = element.renditionConfig) === null || _h === void 0 ? void 0 : _h.subViewDefinitions)) + '::' + (((_k = (_j = element.schemaConfig) === null || _j === void 0 ? void 0 : _j.filterConfig) === null || _k === void 0 ? void 0 : _k.propertyNames) === undefined ? 'typeConfigs.schemaConfig.filterConfig.propertyNames' : 'typeConfigs.schemaConfig.filterConfig.propertyNames:' + ((_m = (_l = element.schemaConfig) === null || _l === void 0 ? void 0 : _l.filterConfig) === null || _m === void 0 ? void 0 : _m.propertyNames)) + '::' + (((_o = element.schemaConfig) === null || _o === void 0 ? void 0 : _o.subSchemaDefinitions) === undefined ? 'typeConfigs.schemaConfig.subSchemaDefinitions' : 'typeConfigs.schemaConfig.subSchemaDefinitions:' + ((_p = element.schemaConfig) === null || _p === void 0 ? void 0 : _p.subSchemaDefinitions)) + '::' + (((_q = element.sourceDescriptor) === null || _q === void 0 ? void 0 : _q.descriptor) === undefined ? 'typeConfigs.sourceDescriptor.descriptor' : 'typeConfigs.sourceDescriptor.descriptor:' + ((_r = element.sourceDescriptor) === null || _r === void 0 ? void 0 : _r.descriptor)) + '::' + (((_s = element.sourceDescriptor) === null || _s === void 0 ? void 0 : _s.propertyName) === undefined ? 'typeConfigs.sourceDescriptor.propertyName' : 'typeConfigs.sourceDescriptor.propertyName:' + ((_t = element.sourceDescriptor) === null || _t === void 0 ? void 0 : _t.propertyName)); }).join(',') + ']' + ')';
|
|
2054
2068
|
}
|
|
2055
2069
|
function getResponseCacheKeys(storeKeyMap, luvio, resourceParams, response) {
|
|
2056
2070
|
getTypeCacheKeys(storeKeyMap, luvio, response, () => keyBuilder$1(luvio, resourceParams));
|
|
@@ -2285,4 +2299,4 @@ withDefaultLuvio((luvio) => {
|
|
|
2285
2299
|
});
|
|
2286
2300
|
|
|
2287
2301
|
export { getBlockType, getBlockType_imperative, getBlockTypes, getBlockTypes_imperative, getContentType, getContentType_imperative, getContentTypes, getContentTypes_imperative, getPropertyType, getPropertyType_imperative, getPropertyTypes, getPropertyTypes_imperative, getTypes, getTypes_imperative };
|
|
2288
|
-
// version: 1.
|
|
2302
|
+
// version: 1.280.0-09f980816
|
package/src/raml/api.raml
CHANGED
|
@@ -446,6 +446,10 @@ types:
|
|
|
446
446
|
type: string
|
|
447
447
|
enum: [Default, Detail, Email, LightningDesktopCopilot, LightningMobileCopilot, Summary]
|
|
448
448
|
required: false # TODO waiting on W-8253396
|
|
449
|
+
subViewDefinitions:
|
|
450
|
+
description: Boolean property if sub-view should be included
|
|
451
|
+
type: boolean
|
|
452
|
+
required: false # TODO waiting on W-8253396
|
|
449
453
|
ExperienceModelDesignConfigInputRepresentation:
|
|
450
454
|
type: object
|
|
451
455
|
description: Input Representation for Experience Model type design configuration
|
|
@@ -455,6 +459,10 @@ types:
|
|
|
455
459
|
type: string
|
|
456
460
|
enum: [Default, LightningDesktopCopilot, LightningMobileCopilot]
|
|
457
461
|
required: false # TODO waiting on W-8253396
|
|
462
|
+
subViewDefinitions:
|
|
463
|
+
description: Boolean property if sub-view should be included
|
|
464
|
+
type: boolean
|
|
465
|
+
required: false # TODO waiting on W-8253396
|
|
458
466
|
ExperienceModelFilterConfigInputRepresentation:
|
|
459
467
|
type: object
|
|
460
468
|
description: Input Representation for Experience Model type Filter configuration
|