@salesforce/lds-adapters-experience-model 1.287.0-dev6 → 1.287.0-dev7
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 +16 -2
- 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.actionConfig !== undefined) {
|
|
1717
|
+
const obj_actionConfig = obj.actionConfig;
|
|
1718
|
+
const path_actionConfig = path + '.actionConfig';
|
|
1719
|
+
if (typeof obj_actionConfig !== 'boolean') {
|
|
1720
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_actionConfig + '" (at "' + path_actionConfig + '")');
|
|
1721
|
+
}
|
|
1722
|
+
}
|
|
1716
1723
|
if (obj.subViewDefinitions !== undefined) {
|
|
1717
1724
|
const obj_subViewDefinitions = obj.subViewDefinitions;
|
|
1718
1725
|
const path_subViewDefinitions = path + '.subViewDefinitions';
|
|
@@ -1736,6 +1743,13 @@ function validate$7(obj, path = 'ExperienceModelRenditionConfigInputRepresentati
|
|
|
1736
1743
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1737
1744
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1738
1745
|
}
|
|
1746
|
+
if (obj.actionConfig !== undefined) {
|
|
1747
|
+
const obj_actionConfig = obj.actionConfig;
|
|
1748
|
+
const path_actionConfig = path + '.actionConfig';
|
|
1749
|
+
if (typeof obj_actionConfig !== 'boolean') {
|
|
1750
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_actionConfig + '" (at "' + path_actionConfig + '")');
|
|
1751
|
+
}
|
|
1752
|
+
}
|
|
1739
1753
|
if (obj.subViewDefinitions !== undefined) {
|
|
1740
1754
|
const obj_subViewDefinitions = obj.subViewDefinitions;
|
|
1741
1755
|
const path_subViewDefinitions = path + '.subViewDefinitions';
|
|
@@ -2054,7 +2068,7 @@ function select(luvio, params) {
|
|
|
2054
2068
|
return select$1();
|
|
2055
2069
|
}
|
|
2056
2070
|
function keyBuilder$1(luvio, params) {
|
|
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.
|
|
2071
|
+
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, _u, _v, _w, _x; 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.designConfig) === null || _e === void 0 ? void 0 : _e.actionConfig) === undefined ? 'typeConfigs.designConfig.actionConfig' : 'typeConfigs.designConfig.actionConfig:' + ((_f = element.designConfig) === null || _f === void 0 ? void 0 : _f.actionConfig)) + '::' + (((_g = element.renditionConfig) === null || _g === void 0 ? void 0 : _g.target) === undefined ? 'typeConfigs.renditionConfig.target' : 'typeConfigs.renditionConfig.target:' + ((_h = element.renditionConfig) === null || _h === void 0 ? void 0 : _h.target)) + '::' + (((_j = element.renditionConfig) === null || _j === void 0 ? void 0 : _j.subViewDefinitions) === undefined ? 'typeConfigs.renditionConfig.subViewDefinitions' : 'typeConfigs.renditionConfig.subViewDefinitions:' + ((_k = element.renditionConfig) === null || _k === void 0 ? void 0 : _k.subViewDefinitions)) + '::' + (((_l = element.renditionConfig) === null || _l === void 0 ? void 0 : _l.actionConfig) === undefined ? 'typeConfigs.renditionConfig.actionConfig' : 'typeConfigs.renditionConfig.actionConfig:' + ((_m = element.renditionConfig) === null || _m === void 0 ? void 0 : _m.actionConfig)) + '::' + (((_p = (_o = element.schemaConfig) === null || _o === void 0 ? void 0 : _o.filterConfig) === null || _p === void 0 ? void 0 : _p.propertyNames) === undefined ? 'typeConfigs.schemaConfig.filterConfig.propertyNames' : 'typeConfigs.schemaConfig.filterConfig.propertyNames:' + ((_r = (_q = element.schemaConfig) === null || _q === void 0 ? void 0 : _q.filterConfig) === null || _r === void 0 ? void 0 : _r.propertyNames)) + '::' + (((_s = element.schemaConfig) === null || _s === void 0 ? void 0 : _s.subSchemaDefinitions) === undefined ? 'typeConfigs.schemaConfig.subSchemaDefinitions' : 'typeConfigs.schemaConfig.subSchemaDefinitions:' + ((_t = element.schemaConfig) === null || _t === void 0 ? void 0 : _t.subSchemaDefinitions)) + '::' + (((_u = element.sourceDescriptor) === null || _u === void 0 ? void 0 : _u.descriptor) === undefined ? 'typeConfigs.sourceDescriptor.descriptor' : 'typeConfigs.sourceDescriptor.descriptor:' + ((_v = element.sourceDescriptor) === null || _v === void 0 ? void 0 : _v.descriptor)) + '::' + (((_w = element.sourceDescriptor) === null || _w === void 0 ? void 0 : _w.propertyName) === undefined ? 'typeConfigs.sourceDescriptor.propertyName' : 'typeConfigs.sourceDescriptor.propertyName:' + ((_x = element.sourceDescriptor) === null || _x === void 0 ? void 0 : _x.propertyName)); }).join(',') + ']' + ')';
|
|
2058
2072
|
}
|
|
2059
2073
|
function getResponseCacheKeys(storeKeyMap, luvio, resourceParams, response) {
|
|
2060
2074
|
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 = "b06b940a80cf705e86ca75578fc8a68e";
|
|
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 actions should be included */
|
|
18
|
+
actionConfig?: boolean;
|
|
17
19
|
/** Boolean property if sub-view should be included */
|
|
18
20
|
subViewDefinitions?: boolean;
|
|
19
21
|
/** A design configuration target. To fetch all the types that have the design configuration for a particular target. */
|
|
@@ -26,6 +28,7 @@ export interface ExperienceModelDesignConfigInputRepresentationNormalized {
|
|
|
26
28
|
* (none)
|
|
27
29
|
*/
|
|
28
30
|
export interface ExperienceModelDesignConfigInputRepresentation {
|
|
31
|
+
actionConfig?: boolean;
|
|
29
32
|
subViewDefinitions?: boolean;
|
|
30
33
|
target?: string;
|
|
31
34
|
}
|
|
@@ -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 = "fe3c78556dcc7b668013491f2bbdd651";
|
|
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 actions should be included */
|
|
18
|
+
actionConfig?: boolean;
|
|
17
19
|
/** Boolean property if sub-view should be included */
|
|
18
20
|
subViewDefinitions?: boolean;
|
|
19
21
|
/** A rendition configuration target. To fetch all the types that have the rendition configuration for a particular target. */
|
|
@@ -26,6 +28,7 @@ export interface ExperienceModelRenditionConfigInputRepresentationNormalized {
|
|
|
26
28
|
* (none)
|
|
27
29
|
*/
|
|
28
30
|
export interface ExperienceModelRenditionConfigInputRepresentation {
|
|
31
|
+
actionConfig?: boolean;
|
|
29
32
|
subViewDefinitions?: boolean;
|
|
30
33
|
target?: string;
|
|
31
34
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-adapters-experience-model",
|
|
3
|
-
"version": "1.287.0-
|
|
3
|
+
"version": "1.287.0-dev7",
|
|
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.287.0-
|
|
47
|
+
"@salesforce/lds-bindings": "^1.287.0-dev7"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
|
-
"@salesforce/lds-compiler-plugins": "^1.287.0-
|
|
51
|
-
"@salesforce/lds-karma": "^1.287.0-
|
|
50
|
+
"@salesforce/lds-compiler-plugins": "^1.287.0-dev7",
|
|
51
|
+
"@salesforce/lds-karma": "^1.287.0-dev7"
|
|
52
52
|
},
|
|
53
53
|
"nx": {
|
|
54
54
|
"targets": {
|
package/sfdc/index.js
CHANGED
|
@@ -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.actionConfig !== undefined) {
|
|
1727
|
+
const obj_actionConfig = obj.actionConfig;
|
|
1728
|
+
const path_actionConfig = path + '.actionConfig';
|
|
1729
|
+
if (typeof obj_actionConfig !== 'boolean') {
|
|
1730
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_actionConfig + '" (at "' + path_actionConfig + '")');
|
|
1731
|
+
}
|
|
1732
|
+
}
|
|
1726
1733
|
if (obj.subViewDefinitions !== undefined) {
|
|
1727
1734
|
const obj_subViewDefinitions = obj.subViewDefinitions;
|
|
1728
1735
|
const path_subViewDefinitions = path + '.subViewDefinitions';
|
|
@@ -1746,6 +1753,13 @@ function validate$7(obj, path = 'ExperienceModelRenditionConfigInputRepresentati
|
|
|
1746
1753
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1747
1754
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1748
1755
|
}
|
|
1756
|
+
if (obj.actionConfig !== undefined) {
|
|
1757
|
+
const obj_actionConfig = obj.actionConfig;
|
|
1758
|
+
const path_actionConfig = path + '.actionConfig';
|
|
1759
|
+
if (typeof obj_actionConfig !== 'boolean') {
|
|
1760
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_actionConfig + '" (at "' + path_actionConfig + '")');
|
|
1761
|
+
}
|
|
1762
|
+
}
|
|
1749
1763
|
if (obj.subViewDefinitions !== undefined) {
|
|
1750
1764
|
const obj_subViewDefinitions = obj.subViewDefinitions;
|
|
1751
1765
|
const path_subViewDefinitions = path + '.subViewDefinitions';
|
|
@@ -2064,7 +2078,7 @@ function select(luvio, params) {
|
|
|
2064
2078
|
return select$1();
|
|
2065
2079
|
}
|
|
2066
2080
|
function keyBuilder$1(luvio, params) {
|
|
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.
|
|
2081
|
+
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, _u, _v, _w, _x; 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.designConfig) === null || _e === void 0 ? void 0 : _e.actionConfig) === undefined ? 'typeConfigs.designConfig.actionConfig' : 'typeConfigs.designConfig.actionConfig:' + ((_f = element.designConfig) === null || _f === void 0 ? void 0 : _f.actionConfig)) + '::' + (((_g = element.renditionConfig) === null || _g === void 0 ? void 0 : _g.target) === undefined ? 'typeConfigs.renditionConfig.target' : 'typeConfigs.renditionConfig.target:' + ((_h = element.renditionConfig) === null || _h === void 0 ? void 0 : _h.target)) + '::' + (((_j = element.renditionConfig) === null || _j === void 0 ? void 0 : _j.subViewDefinitions) === undefined ? 'typeConfigs.renditionConfig.subViewDefinitions' : 'typeConfigs.renditionConfig.subViewDefinitions:' + ((_k = element.renditionConfig) === null || _k === void 0 ? void 0 : _k.subViewDefinitions)) + '::' + (((_l = element.renditionConfig) === null || _l === void 0 ? void 0 : _l.actionConfig) === undefined ? 'typeConfigs.renditionConfig.actionConfig' : 'typeConfigs.renditionConfig.actionConfig:' + ((_m = element.renditionConfig) === null || _m === void 0 ? void 0 : _m.actionConfig)) + '::' + (((_p = (_o = element.schemaConfig) === null || _o === void 0 ? void 0 : _o.filterConfig) === null || _p === void 0 ? void 0 : _p.propertyNames) === undefined ? 'typeConfigs.schemaConfig.filterConfig.propertyNames' : 'typeConfigs.schemaConfig.filterConfig.propertyNames:' + ((_r = (_q = element.schemaConfig) === null || _q === void 0 ? void 0 : _q.filterConfig) === null || _r === void 0 ? void 0 : _r.propertyNames)) + '::' + (((_s = element.schemaConfig) === null || _s === void 0 ? void 0 : _s.subSchemaDefinitions) === undefined ? 'typeConfigs.schemaConfig.subSchemaDefinitions' : 'typeConfigs.schemaConfig.subSchemaDefinitions:' + ((_t = element.schemaConfig) === null || _t === void 0 ? void 0 : _t.subSchemaDefinitions)) + '::' + (((_u = element.sourceDescriptor) === null || _u === void 0 ? void 0 : _u.descriptor) === undefined ? 'typeConfigs.sourceDescriptor.descriptor' : 'typeConfigs.sourceDescriptor.descriptor:' + ((_v = element.sourceDescriptor) === null || _v === void 0 ? void 0 : _v.descriptor)) + '::' + (((_w = element.sourceDescriptor) === null || _w === void 0 ? void 0 : _w.propertyName) === undefined ? 'typeConfigs.sourceDescriptor.propertyName' : 'typeConfigs.sourceDescriptor.propertyName:' + ((_x = element.sourceDescriptor) === null || _x === void 0 ? void 0 : _x.propertyName)); }).join(',') + ']' + ')';
|
|
2068
2082
|
}
|
|
2069
2083
|
function getResponseCacheKeys(storeKeyMap, luvio, resourceParams, response) {
|
|
2070
2084
|
getTypeCacheKeys(storeKeyMap, luvio, response, () => keyBuilder$1(luvio, resourceParams));
|
|
@@ -2299,4 +2313,4 @@ withDefaultLuvio((luvio) => {
|
|
|
2299
2313
|
});
|
|
2300
2314
|
|
|
2301
2315
|
export { getBlockType, getBlockType_imperative, getBlockTypes, getBlockTypes_imperative, getContentType, getContentType_imperative, getContentTypes, getContentTypes_imperative, getPropertyType, getPropertyType_imperative, getPropertyTypes, getPropertyTypes_imperative, getTypes, getTypes_imperative };
|
|
2302
|
-
// version: 1.287.0-
|
|
2316
|
+
// version: 1.287.0-dev7-62bbd479a
|
package/src/raml/api.raml
CHANGED
|
@@ -450,6 +450,10 @@ types:
|
|
|
450
450
|
description: Boolean property if sub-view should be included
|
|
451
451
|
type: boolean
|
|
452
452
|
required: false # TODO waiting on W-8253396
|
|
453
|
+
actionConfig:
|
|
454
|
+
description: Boolean property if actions should be included
|
|
455
|
+
type: boolean
|
|
456
|
+
required: false # TODO waiting on W-8253396
|
|
453
457
|
ExperienceModelDesignConfigInputRepresentation:
|
|
454
458
|
type: object
|
|
455
459
|
description: Input Representation for Experience Model type design configuration
|
|
@@ -463,6 +467,10 @@ types:
|
|
|
463
467
|
description: Boolean property if sub-view should be included
|
|
464
468
|
type: boolean
|
|
465
469
|
required: false # TODO waiting on W-8253396
|
|
470
|
+
actionConfig:
|
|
471
|
+
description: Boolean property if actions should be included
|
|
472
|
+
type: boolean
|
|
473
|
+
required: false # TODO waiting on W-8253396
|
|
466
474
|
ExperienceModelFilterConfigInputRepresentation:
|
|
467
475
|
type: object
|
|
468
476
|
description: Input Representation for Experience Model type Filter configuration
|