@salesforce/lds-adapters-experience-model 1.262.4 → 1.264.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 +82 -34
- package/dist/es/es2018/types/src/generated/types/ExperienceModelFilterConfigInputRepresentation.d.ts +28 -0
- package/dist/es/es2018/types/src/generated/types/ExperienceModelSchemaConfigInputRepresentation.d.ts +4 -1
- package/dist/es/es2018/types/src/generated/types/ExperienceModelTypesErrorRepresentation.d.ts +31 -0
- package/dist/es/es2018/types/src/generated/types/ExperienceModelTypesRepresentation.d.ts +10 -4
- package/package.json +4 -4
- package/sfdc/index.js +83 -35
- package/src/raml/api.raml +36 -2
|
@@ -80,7 +80,7 @@ function createLink(ref) {
|
|
|
80
80
|
};
|
|
81
81
|
}
|
|
82
82
|
|
|
83
|
-
function validate$
|
|
83
|
+
function validate$f(obj, path = 'ExperienceModelBlockTypeSummaryRepresentation') {
|
|
84
84
|
const v_error = (() => {
|
|
85
85
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
86
86
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -139,7 +139,7 @@ function validate$e(obj, path = 'ExperienceModelBlockTypeSummaryRepresentation')
|
|
|
139
139
|
|
|
140
140
|
const TTL$6 = 3600000;
|
|
141
141
|
const VERSION$6 = "c4cd880e972cdf9faaa6db963fe35b31";
|
|
142
|
-
function validate$
|
|
142
|
+
function validate$e(obj, path = 'ExperienceModelBlockTypeCollectionRepresentation') {
|
|
143
143
|
const v_error = (() => {
|
|
144
144
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
145
145
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -152,7 +152,7 @@ function validate$d(obj, path = 'ExperienceModelBlockTypeCollectionRepresentatio
|
|
|
152
152
|
for (let i = 0; i < obj_blockTypes.length; i++) {
|
|
153
153
|
const obj_blockTypes_item = obj_blockTypes[i];
|
|
154
154
|
const path_blockTypes_item = path_blockTypes + '[' + i + ']';
|
|
155
|
-
const referencepath_blockTypes_itemValidationError = validate$
|
|
155
|
+
const referencepath_blockTypes_itemValidationError = validate$f(obj_blockTypes_item, path_blockTypes_item);
|
|
156
156
|
if (referencepath_blockTypes_itemValidationError !== null) {
|
|
157
157
|
let message = 'Object doesn\'t match ExperienceModelBlockTypeSummaryRepresentation (at "' + path_blockTypes_item + '")\n';
|
|
158
158
|
message += referencepath_blockTypes_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -206,7 +206,7 @@ function equals$6(existing, incoming) {
|
|
|
206
206
|
}
|
|
207
207
|
const ingest$6 = function ExperienceModelBlockTypeCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
208
208
|
if (process.env.NODE_ENV !== 'production') {
|
|
209
|
-
const validateError = validate$
|
|
209
|
+
const validateError = validate$e(input);
|
|
210
210
|
if (validateError !== null) {
|
|
211
211
|
throw validateError;
|
|
212
212
|
}
|
|
@@ -374,7 +374,7 @@ const getBlockTypesAdapterFactory = (luvio) => function ExperienceType__getBlock
|
|
|
374
374
|
|
|
375
375
|
const TTL$5 = 3600000;
|
|
376
376
|
const VERSION$5 = "5a3f5e1d42d8f0aa089e888ddac06972";
|
|
377
|
-
function validate$
|
|
377
|
+
function validate$d(obj, path = 'ExperienceModelBlockTypeDetailRepresentation') {
|
|
378
378
|
const v_error = (() => {
|
|
379
379
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
380
380
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -479,7 +479,7 @@ function equals$5(existing, incoming) {
|
|
|
479
479
|
}
|
|
480
480
|
const ingest$5 = function ExperienceModelBlockTypeDetailRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
481
481
|
if (process.env.NODE_ENV !== 'production') {
|
|
482
|
-
const validateError = validate$
|
|
482
|
+
const validateError = validate$d(input);
|
|
483
483
|
if (validateError !== null) {
|
|
484
484
|
throw validateError;
|
|
485
485
|
}
|
|
@@ -641,7 +641,7 @@ const getBlockTypeAdapterFactory = (luvio) => function ExperienceType__getBlockT
|
|
|
641
641
|
buildCachedSnapshotCachePolicy$5, buildNetworkSnapshotCachePolicy$5);
|
|
642
642
|
};
|
|
643
643
|
|
|
644
|
-
function validate$
|
|
644
|
+
function validate$c(obj, path = 'ExperienceModelContentTypeSummaryRepresentation') {
|
|
645
645
|
const v_error = (() => {
|
|
646
646
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
647
647
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -690,7 +690,7 @@ function validate$b(obj, path = 'ExperienceModelContentTypeSummaryRepresentation
|
|
|
690
690
|
|
|
691
691
|
const TTL$4 = 3600000;
|
|
692
692
|
const VERSION$4 = "30f1f19149230f10ac9197e0d9769c88";
|
|
693
|
-
function validate$
|
|
693
|
+
function validate$b(obj, path = 'ExperienceModelContentTypeCollectionRepresentation') {
|
|
694
694
|
const v_error = (() => {
|
|
695
695
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
696
696
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -703,7 +703,7 @@ function validate$a(obj, path = 'ExperienceModelContentTypeCollectionRepresentat
|
|
|
703
703
|
for (let i = 0; i < obj_contentTypes.length; i++) {
|
|
704
704
|
const obj_contentTypes_item = obj_contentTypes[i];
|
|
705
705
|
const path_contentTypes_item = path_contentTypes + '[' + i + ']';
|
|
706
|
-
const referencepath_contentTypes_itemValidationError = validate$
|
|
706
|
+
const referencepath_contentTypes_itemValidationError = validate$c(obj_contentTypes_item, path_contentTypes_item);
|
|
707
707
|
if (referencepath_contentTypes_itemValidationError !== null) {
|
|
708
708
|
let message = 'Object doesn\'t match ExperienceModelContentTypeSummaryRepresentation (at "' + path_contentTypes_item + '")\n';
|
|
709
709
|
message += referencepath_contentTypes_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -759,7 +759,7 @@ function equals$4(existing, incoming) {
|
|
|
759
759
|
}
|
|
760
760
|
const ingest$4 = function ExperienceModelContentTypeCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
761
761
|
if (process.env.NODE_ENV !== 'production') {
|
|
762
|
-
const validateError = validate$
|
|
762
|
+
const validateError = validate$b(input);
|
|
763
763
|
if (validateError !== null) {
|
|
764
764
|
throw validateError;
|
|
765
765
|
}
|
|
@@ -927,7 +927,7 @@ const getContentTypesAdapterFactory = (luvio) => function ExperienceType__getCon
|
|
|
927
927
|
|
|
928
928
|
const TTL$3 = 3600000;
|
|
929
929
|
const VERSION$3 = "fb0265f1d37480d0821fd97a29a0f9c2";
|
|
930
|
-
function validate$
|
|
930
|
+
function validate$a(obj, path = 'ExperienceModelContentTypeDetailRepresentation') {
|
|
931
931
|
const v_error = (() => {
|
|
932
932
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
933
933
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1016,7 +1016,7 @@ function equals$3(existing, incoming) {
|
|
|
1016
1016
|
}
|
|
1017
1017
|
const ingest$3 = function ExperienceModelContentTypeDetailRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1018
1018
|
if (process.env.NODE_ENV !== 'production') {
|
|
1019
|
-
const validateError = validate$
|
|
1019
|
+
const validateError = validate$a(input);
|
|
1020
1020
|
if (validateError !== null) {
|
|
1021
1021
|
throw validateError;
|
|
1022
1022
|
}
|
|
@@ -1178,7 +1178,7 @@ const getContentTypeAdapterFactory = (luvio) => function ExperienceType__getCont
|
|
|
1178
1178
|
buildCachedSnapshotCachePolicy$3, buildNetworkSnapshotCachePolicy$3);
|
|
1179
1179
|
};
|
|
1180
1180
|
|
|
1181
|
-
function validate$
|
|
1181
|
+
function validate$9(obj, path = 'ExperienceModelPropertyTypeSummaryRepresentation') {
|
|
1182
1182
|
const v_error = (() => {
|
|
1183
1183
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1184
1184
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1225,7 +1225,7 @@ function validate$8(obj, path = 'ExperienceModelPropertyTypeSummaryRepresentatio
|
|
|
1225
1225
|
|
|
1226
1226
|
const TTL$2 = 3600000;
|
|
1227
1227
|
const VERSION$2 = "172e544645942d550fc1f07812bb85b6";
|
|
1228
|
-
function validate$
|
|
1228
|
+
function validate$8(obj, path = 'ExperienceModelPropertyTypeCollectionRepresentation') {
|
|
1229
1229
|
const v_error = (() => {
|
|
1230
1230
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1231
1231
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1264,7 +1264,7 @@ function validate$7(obj, path = 'ExperienceModelPropertyTypeCollectionRepresenta
|
|
|
1264
1264
|
for (let i = 0; i < obj_propertyTypes.length; i++) {
|
|
1265
1265
|
const obj_propertyTypes_item = obj_propertyTypes[i];
|
|
1266
1266
|
const path_propertyTypes_item = path_propertyTypes + '[' + i + ']';
|
|
1267
|
-
const referencepath_propertyTypes_itemValidationError = validate$
|
|
1267
|
+
const referencepath_propertyTypes_itemValidationError = validate$9(obj_propertyTypes_item, path_propertyTypes_item);
|
|
1268
1268
|
if (referencepath_propertyTypes_itemValidationError !== null) {
|
|
1269
1269
|
let message = 'Object doesn\'t match ExperienceModelPropertyTypeSummaryRepresentation (at "' + path_propertyTypes_item + '")\n';
|
|
1270
1270
|
message += referencepath_propertyTypes_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1294,7 +1294,7 @@ function equals$2(existing, incoming) {
|
|
|
1294
1294
|
}
|
|
1295
1295
|
const ingest$2 = function ExperienceModelPropertyTypeCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1296
1296
|
if (process.env.NODE_ENV !== 'production') {
|
|
1297
|
-
const validateError = validate$
|
|
1297
|
+
const validateError = validate$8(input);
|
|
1298
1298
|
if (validateError !== null) {
|
|
1299
1299
|
throw validateError;
|
|
1300
1300
|
}
|
|
@@ -1459,7 +1459,7 @@ const getPropertyTypesAdapterFactory = (luvio) => function ExperienceType__getPr
|
|
|
1459
1459
|
|
|
1460
1460
|
const TTL$1 = 3600000;
|
|
1461
1461
|
const VERSION$1 = "56f77a37a5711b32738bafbcb3eed520";
|
|
1462
|
-
function validate$
|
|
1462
|
+
function validate$7(obj, path = 'ExperienceModelPropertyTypeDetailRepresentation') {
|
|
1463
1463
|
const v_error = (() => {
|
|
1464
1464
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1465
1465
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1546,7 +1546,7 @@ function equals$1(existing, incoming) {
|
|
|
1546
1546
|
}
|
|
1547
1547
|
const ingest$1 = function ExperienceModelPropertyTypeDetailRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1548
1548
|
if (process.env.NODE_ENV !== 'production') {
|
|
1549
|
-
const validateError = validate$
|
|
1549
|
+
const validateError = validate$7(input);
|
|
1550
1550
|
if (validateError !== null) {
|
|
1551
1551
|
throw validateError;
|
|
1552
1552
|
}
|
|
@@ -1708,7 +1708,7 @@ const getPropertyTypeAdapterFactory = (luvio) => function ExperienceType__getPro
|
|
|
1708
1708
|
buildCachedSnapshotCachePolicy$1, buildNetworkSnapshotCachePolicy$1);
|
|
1709
1709
|
};
|
|
1710
1710
|
|
|
1711
|
-
function validate$
|
|
1711
|
+
function validate$6(obj, path = 'ExperienceModelDesignConfigInputRepresentation') {
|
|
1712
1712
|
const v_error = (() => {
|
|
1713
1713
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1714
1714
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1724,7 +1724,7 @@ function validate$5(obj, path = 'ExperienceModelDesignConfigInputRepresentation'
|
|
|
1724
1724
|
return v_error === undefined ? null : v_error;
|
|
1725
1725
|
}
|
|
1726
1726
|
|
|
1727
|
-
function validate$
|
|
1727
|
+
function validate$5(obj, path = 'ExperienceModelRenditionConfigInputRepresentation') {
|
|
1728
1728
|
const v_error = (() => {
|
|
1729
1729
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1730
1730
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1740,11 +1740,25 @@ function validate$4(obj, path = 'ExperienceModelRenditionConfigInputRepresentati
|
|
|
1740
1740
|
return v_error === undefined ? null : v_error;
|
|
1741
1741
|
}
|
|
1742
1742
|
|
|
1743
|
-
function validate$
|
|
1743
|
+
function validate$4(obj, path = 'ExperienceModelSchemaConfigInputRepresentation') {
|
|
1744
1744
|
const v_error = (() => {
|
|
1745
1745
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1746
1746
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1747
1747
|
}
|
|
1748
|
+
if (obj.filterConfig !== undefined) {
|
|
1749
|
+
const obj_filterConfig = obj.filterConfig;
|
|
1750
|
+
const path_filterConfig = path + '.filterConfig';
|
|
1751
|
+
if (!ArrayIsArray(obj_filterConfig)) {
|
|
1752
|
+
return new TypeError('Expected "array" but received "' + typeof obj_filterConfig + '" (at "' + path_filterConfig + '")');
|
|
1753
|
+
}
|
|
1754
|
+
for (let i = 0; i < obj_filterConfig.length; i++) {
|
|
1755
|
+
const obj_filterConfig_item = obj_filterConfig[i];
|
|
1756
|
+
const path_filterConfig_item = path_filterConfig + '[' + i + ']';
|
|
1757
|
+
if (typeof obj_filterConfig_item !== 'string') {
|
|
1758
|
+
return new TypeError('Expected "string" but received "' + typeof obj_filterConfig_item + '" (at "' + path_filterConfig_item + '")');
|
|
1759
|
+
}
|
|
1760
|
+
}
|
|
1761
|
+
}
|
|
1748
1762
|
if (obj.subSchemaDefinitions !== undefined) {
|
|
1749
1763
|
const obj_subSchemaDefinitions = obj.subSchemaDefinitions;
|
|
1750
1764
|
const path_subSchemaDefinitions = path + '.subSchemaDefinitions';
|
|
@@ -1756,7 +1770,7 @@ function validate$3(obj, path = 'ExperienceModelSchemaConfigInputRepresentation'
|
|
|
1756
1770
|
return v_error === undefined ? null : v_error;
|
|
1757
1771
|
}
|
|
1758
1772
|
|
|
1759
|
-
function validate$
|
|
1773
|
+
function validate$3(obj, path = 'ExperienceModelTypesConfigInputRepresentation') {
|
|
1760
1774
|
const v_error = (() => {
|
|
1761
1775
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1762
1776
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1769,7 +1783,7 @@ function validate$2(obj, path = 'ExperienceModelTypesConfigInputRepresentation')
|
|
|
1769
1783
|
if (obj.designConfig !== undefined) {
|
|
1770
1784
|
const obj_designConfig = obj.designConfig;
|
|
1771
1785
|
const path_designConfig = path + '.designConfig';
|
|
1772
|
-
const referencepath_designConfigValidationError = validate$
|
|
1786
|
+
const referencepath_designConfigValidationError = validate$6(obj_designConfig, path_designConfig);
|
|
1773
1787
|
if (referencepath_designConfigValidationError !== null) {
|
|
1774
1788
|
let message = 'Object doesn\'t match ExperienceModelDesignConfigInputRepresentation (at "' + path_designConfig + '")\n';
|
|
1775
1789
|
message += referencepath_designConfigValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1779,7 +1793,7 @@ function validate$2(obj, path = 'ExperienceModelTypesConfigInputRepresentation')
|
|
|
1779
1793
|
if (obj.renditionConfig !== undefined) {
|
|
1780
1794
|
const obj_renditionConfig = obj.renditionConfig;
|
|
1781
1795
|
const path_renditionConfig = path + '.renditionConfig';
|
|
1782
|
-
const referencepath_renditionConfigValidationError = validate$
|
|
1796
|
+
const referencepath_renditionConfigValidationError = validate$5(obj_renditionConfig, path_renditionConfig);
|
|
1783
1797
|
if (referencepath_renditionConfigValidationError !== null) {
|
|
1784
1798
|
let message = 'Object doesn\'t match ExperienceModelRenditionConfigInputRepresentation (at "' + path_renditionConfig + '")\n';
|
|
1785
1799
|
message += referencepath_renditionConfigValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1789,7 +1803,7 @@ function validate$2(obj, path = 'ExperienceModelTypesConfigInputRepresentation')
|
|
|
1789
1803
|
if (obj.schemaConfig !== undefined) {
|
|
1790
1804
|
const obj_schemaConfig = obj.schemaConfig;
|
|
1791
1805
|
const path_schemaConfig = path + '.schemaConfig';
|
|
1792
|
-
const referencepath_schemaConfigValidationError = validate$
|
|
1806
|
+
const referencepath_schemaConfigValidationError = validate$4(obj_schemaConfig, path_schemaConfig);
|
|
1793
1807
|
if (referencepath_schemaConfigValidationError !== null) {
|
|
1794
1808
|
let message = 'Object doesn\'t match ExperienceModelSchemaConfigInputRepresentation (at "' + path_schemaConfig + '")\n';
|
|
1795
1809
|
message += referencepath_schemaConfigValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1807,6 +1821,25 @@ function validate$2(obj, path = 'ExperienceModelTypesConfigInputRepresentation')
|
|
|
1807
1821
|
return v_error === undefined ? null : v_error;
|
|
1808
1822
|
}
|
|
1809
1823
|
|
|
1824
|
+
function validate$2(obj, path = 'ExperienceModelTypesErrorRepresentation') {
|
|
1825
|
+
const v_error = (() => {
|
|
1826
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1827
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1828
|
+
}
|
|
1829
|
+
const obj_errorDescription = obj.errorDescription;
|
|
1830
|
+
const path_errorDescription = path + '.errorDescription';
|
|
1831
|
+
if (typeof obj_errorDescription !== 'string') {
|
|
1832
|
+
return new TypeError('Expected "string" but received "' + typeof obj_errorDescription + '" (at "' + path_errorDescription + '")');
|
|
1833
|
+
}
|
|
1834
|
+
const obj_errorTitle = obj.errorTitle;
|
|
1835
|
+
const path_errorTitle = path + '.errorTitle';
|
|
1836
|
+
if (typeof obj_errorTitle !== 'string') {
|
|
1837
|
+
return new TypeError('Expected "string" but received "' + typeof obj_errorTitle + '" (at "' + path_errorTitle + '")');
|
|
1838
|
+
}
|
|
1839
|
+
})();
|
|
1840
|
+
return v_error === undefined ? null : v_error;
|
|
1841
|
+
}
|
|
1842
|
+
|
|
1810
1843
|
function validate$1(obj, path = 'ExperienceModelTypesRepresentation') {
|
|
1811
1844
|
const v_error = (() => {
|
|
1812
1845
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -1824,6 +1857,11 @@ function validate$1(obj, path = 'ExperienceModelTypesRepresentation') {
|
|
|
1824
1857
|
return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
|
|
1825
1858
|
}
|
|
1826
1859
|
}
|
|
1860
|
+
const obj_descriptor = obj.descriptor;
|
|
1861
|
+
const path_descriptor = path + '.descriptor';
|
|
1862
|
+
if (typeof obj_descriptor !== 'string') {
|
|
1863
|
+
return new TypeError('Expected "string" but received "' + typeof obj_descriptor + '" (at "' + path_descriptor + '")');
|
|
1864
|
+
}
|
|
1827
1865
|
if (obj.designConfig !== undefined) {
|
|
1828
1866
|
const obj_designConfig = obj.designConfig;
|
|
1829
1867
|
const path_designConfig = path + '.designConfig';
|
|
@@ -1836,6 +1874,16 @@ function validate$1(obj, path = 'ExperienceModelTypesRepresentation') {
|
|
|
1836
1874
|
if (typeof obj_developerName !== 'string') {
|
|
1837
1875
|
return new TypeError('Expected "string" but received "' + typeof obj_developerName + '" (at "' + path_developerName + '")');
|
|
1838
1876
|
}
|
|
1877
|
+
if (obj.errorDetails !== undefined) {
|
|
1878
|
+
const obj_errorDetails = obj.errorDetails;
|
|
1879
|
+
const path_errorDetails = path + '.errorDetails';
|
|
1880
|
+
const referencepath_errorDetailsValidationError = validate$2(obj_errorDetails, path_errorDetails);
|
|
1881
|
+
if (referencepath_errorDetailsValidationError !== null) {
|
|
1882
|
+
let message = 'Object doesn\'t match ExperienceModelTypesErrorRepresentation (at "' + path_errorDetails + '")\n';
|
|
1883
|
+
message += referencepath_errorDetailsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
1884
|
+
return new TypeError(message);
|
|
1885
|
+
}
|
|
1886
|
+
}
|
|
1839
1887
|
if (obj.id !== undefined) {
|
|
1840
1888
|
const obj_id = obj.id;
|
|
1841
1889
|
const path_id = path + '.id';
|
|
@@ -1862,6 +1910,13 @@ function validate$1(obj, path = 'ExperienceModelTypesRepresentation') {
|
|
|
1862
1910
|
return new TypeError('Expected "object" but received "' + typeof obj_schema + '" (at "' + path_schema + '")');
|
|
1863
1911
|
}
|
|
1864
1912
|
}
|
|
1913
|
+
if (obj.sourceDescriptor !== undefined) {
|
|
1914
|
+
const obj_sourceDescriptor = obj.sourceDescriptor;
|
|
1915
|
+
const path_sourceDescriptor = path + '.sourceDescriptor';
|
|
1916
|
+
if (typeof obj_sourceDescriptor !== 'string') {
|
|
1917
|
+
return new TypeError('Expected "string" but received "' + typeof obj_sourceDescriptor + '" (at "' + path_sourceDescriptor + '")');
|
|
1918
|
+
}
|
|
1919
|
+
}
|
|
1865
1920
|
if (obj.title !== undefined) {
|
|
1866
1921
|
const obj_title = obj.title;
|
|
1867
1922
|
const path_title = path + '.title';
|
|
@@ -1869,13 +1924,6 @@ function validate$1(obj, path = 'ExperienceModelTypesRepresentation') {
|
|
|
1869
1924
|
return new TypeError('Expected "string" but received "' + typeof obj_title + '" (at "' + path_title + '")');
|
|
1870
1925
|
}
|
|
1871
1926
|
}
|
|
1872
|
-
if (obj.typeDescriptor !== undefined) {
|
|
1873
|
-
const obj_typeDescriptor = obj.typeDescriptor;
|
|
1874
|
-
const path_typeDescriptor = path + '.typeDescriptor';
|
|
1875
|
-
if (typeof obj_typeDescriptor !== 'string') {
|
|
1876
|
-
return new TypeError('Expected "string" but received "' + typeof obj_typeDescriptor + '" (at "' + path_typeDescriptor + '")');
|
|
1877
|
-
}
|
|
1878
|
-
}
|
|
1879
1927
|
})();
|
|
1880
1928
|
return v_error === undefined ? null : v_error;
|
|
1881
1929
|
}
|
|
@@ -1949,7 +1997,7 @@ function select(luvio, params) {
|
|
|
1949
1997
|
return select$1();
|
|
1950
1998
|
}
|
|
1951
1999
|
function keyBuilder$1(luvio, params) {
|
|
1952
|
-
return keyPrefix + '::ExperienceModelTypesCollectionRepresentation:(' + 'language:' + params.body.language + '::' + '[' + params.body.typeConfigs.map(element => { var _a, _b, _c, _d, _e, _f; 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.renditionConfig) === null || _c === void 0 ? void 0 : _c.target) === undefined ? 'typeConfigs.renditionConfig.target' : 'typeConfigs.renditionConfig.target:' + ((_d = element.renditionConfig) === null || _d === void 0 ? void 0 : _d.target)) + '::' + (((_e = element.schemaConfig) === null || _e === void 0 ? void 0 : _e.
|
|
2000
|
+
return keyPrefix + '::ExperienceModelTypesCollectionRepresentation:(' + 'language:' + params.body.language + '::' + '[' + params.body.typeConfigs.map(element => { var _a, _b, _c, _d, _e, _f, _g, _h; 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.renditionConfig) === null || _c === void 0 ? void 0 : _c.target) === undefined ? 'typeConfigs.renditionConfig.target' : 'typeConfigs.renditionConfig.target:' + ((_d = element.renditionConfig) === null || _d === void 0 ? void 0 : _d.target)) + '::' + (((_e = element.schemaConfig) === null || _e === void 0 ? void 0 : _e.filterConfig) === undefined ? 'typeConfigs.schemaConfig.filterConfig' : 'typeConfigs.schemaConfig.filterConfig:' + ((_f = element.schemaConfig) === null || _f === void 0 ? void 0 : _f.filterConfig)) + '::' + (((_g = element.schemaConfig) === null || _g === void 0 ? void 0 : _g.subSchemaDefinitions) === undefined ? 'typeConfigs.schemaConfig.subSchemaDefinitions' : 'typeConfigs.schemaConfig.subSchemaDefinitions:' + ((_h = element.schemaConfig) === null || _h === void 0 ? void 0 : _h.subSchemaDefinitions)) + '::' + (element.sourceDescriptor === undefined ? 'typeConfigs.sourceDescriptor' : 'typeConfigs.sourceDescriptor:' + element.sourceDescriptor); }).join(',') + ']' + ')';
|
|
1953
2001
|
}
|
|
1954
2002
|
function getResponseCacheKeys(storeKeyMap, luvio, resourceParams, response) {
|
|
1955
2003
|
getTypeCacheKeys(storeKeyMap, luvio, response, () => keyBuilder$1(luvio, resourceParams));
|
|
@@ -2016,7 +2064,7 @@ function typeCheckConfig(untrustedConfig) {
|
|
|
2016
2064
|
const untrustedConfig_typeConfigs_array = [];
|
|
2017
2065
|
for (let i = 0, arrayLength = untrustedConfig_typeConfigs.length; i < arrayLength; i++) {
|
|
2018
2066
|
const untrustedConfig_typeConfigs_item = untrustedConfig_typeConfigs[i];
|
|
2019
|
-
const referenceExperienceModelTypesConfigInputRepresentationValidationError = validate$
|
|
2067
|
+
const referenceExperienceModelTypesConfigInputRepresentationValidationError = validate$3(untrustedConfig_typeConfigs_item);
|
|
2020
2068
|
if (referenceExperienceModelTypesConfigInputRepresentationValidationError === null) {
|
|
2021
2069
|
untrustedConfig_typeConfigs_array.push(untrustedConfig_typeConfigs_item);
|
|
2022
2070
|
}
|
package/dist/es/es2018/types/src/generated/types/ExperienceModelFilterConfigInputRepresentation.d.ts
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
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 = "2dea0b5c029eda868a7916246dc7a16c";
|
|
3
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
4
|
+
export declare const RepresentationType: string;
|
|
5
|
+
export declare function normalize(input: ExperienceModelFilterConfigInputRepresentation, existing: ExperienceModelFilterConfigInputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ExperienceModelFilterConfigInputRepresentationNormalized;
|
|
6
|
+
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
7
|
+
export declare function equals(existing: ExperienceModelFilterConfigInputRepresentationNormalized, incoming: ExperienceModelFilterConfigInputRepresentationNormalized): boolean;
|
|
8
|
+
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
9
|
+
export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: ExperienceModelFilterConfigInputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
10
|
+
/**
|
|
11
|
+
* Input Representation for Experience Model type Filter configuration
|
|
12
|
+
*
|
|
13
|
+
* Keys:
|
|
14
|
+
* (none)
|
|
15
|
+
*/
|
|
16
|
+
export interface ExperienceModelFilterConfigInputRepresentationNormalized {
|
|
17
|
+
/** Indicates list of properties to filter */
|
|
18
|
+
propertyNames: Array<string>;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Input Representation for Experience Model type Filter configuration
|
|
22
|
+
*
|
|
23
|
+
* Keys:
|
|
24
|
+
* (none)
|
|
25
|
+
*/
|
|
26
|
+
export interface ExperienceModelFilterConfigInputRepresentation {
|
|
27
|
+
propertyNames: Array<string>;
|
|
28
|
+
}
|
package/dist/es/es2018/types/src/generated/types/ExperienceModelSchemaConfigInputRepresentation.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 = "142ceb55da7be92dac85877e2d4b8cbf";
|
|
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: ExperienceModelSchemaConfigInputRepresentation, existing: ExperienceModelSchemaConfigInputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ExperienceModelSchemaConfigInputRepresentationNormalized;
|
|
@@ -14,6 +14,8 @@ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableSto
|
|
|
14
14
|
* (none)
|
|
15
15
|
*/
|
|
16
16
|
export interface ExperienceModelSchemaConfigInputRepresentationNormalized {
|
|
17
|
+
/** Filter configuration for schema */
|
|
18
|
+
filterConfig?: Array<string>;
|
|
17
19
|
/** Boolean property if sub-schema should be included */
|
|
18
20
|
subSchemaDefinitions?: boolean;
|
|
19
21
|
}
|
|
@@ -24,5 +26,6 @@ export interface ExperienceModelSchemaConfigInputRepresentationNormalized {
|
|
|
24
26
|
* (none)
|
|
25
27
|
*/
|
|
26
28
|
export interface ExperienceModelSchemaConfigInputRepresentation {
|
|
29
|
+
filterConfig?: Array<string>;
|
|
27
30
|
subSchemaDefinitions?: boolean;
|
|
28
31
|
}
|
|
@@ -0,0 +1,31 @@
|
|
|
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 = "beddbdf1ee8b69f9a92a034b646bf18d";
|
|
3
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
4
|
+
export declare const RepresentationType: string;
|
|
5
|
+
export declare function normalize(input: ExperienceModelTypesErrorRepresentation, existing: ExperienceModelTypesErrorRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ExperienceModelTypesErrorRepresentationNormalized;
|
|
6
|
+
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
7
|
+
export declare function equals(existing: ExperienceModelTypesErrorRepresentationNormalized, incoming: ExperienceModelTypesErrorRepresentationNormalized): boolean;
|
|
8
|
+
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
9
|
+
export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: ExperienceModelTypesErrorRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
10
|
+
/**
|
|
11
|
+
* Experience Mode Types Error Representation
|
|
12
|
+
*
|
|
13
|
+
* Keys:
|
|
14
|
+
* (none)
|
|
15
|
+
*/
|
|
16
|
+
export interface ExperienceModelTypesErrorRepresentationNormalized {
|
|
17
|
+
/** Error Description */
|
|
18
|
+
errorDescription: string;
|
|
19
|
+
/** Error Title */
|
|
20
|
+
errorTitle: string;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Experience Mode Types Error Representation
|
|
24
|
+
*
|
|
25
|
+
* Keys:
|
|
26
|
+
* (none)
|
|
27
|
+
*/
|
|
28
|
+
export interface ExperienceModelTypesErrorRepresentation {
|
|
29
|
+
errorDescription: string;
|
|
30
|
+
errorTitle: string;
|
|
31
|
+
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import { ExperienceModelTypesErrorRepresentation as ExperienceModelTypesErrorRepresentation_ExperienceModelTypesErrorRepresentation } from './ExperienceModelTypesErrorRepresentation';
|
|
1
2
|
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
3
|
export declare const TTL = 3600000;
|
|
3
|
-
export declare const VERSION = "
|
|
4
|
+
export declare const VERSION = "0df4feea0c2789a1d03fb79e5b5dd109";
|
|
4
5
|
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
5
6
|
export declare const RepresentationType: string;
|
|
6
7
|
export declare function normalize(input: ExperienceModelTypesRepresentation, existing: ExperienceModelTypesRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ExperienceModelTypesRepresentationNormalized;
|
|
@@ -19,10 +20,13 @@ export interface ExperienceModelTypesRepresentationNormalized {
|
|
|
19
20
|
bundleType: string;
|
|
20
21
|
/** The description of the Type that was given in its schema.json. */
|
|
21
22
|
description?: string;
|
|
23
|
+
/** The type descriptor of the Type that was given in query params. */
|
|
24
|
+
descriptor: string;
|
|
22
25
|
/** The design configuration for the specified target. */
|
|
23
26
|
designConfig?: {};
|
|
24
27
|
/** The developer name (aka apiName) of the Type. */
|
|
25
28
|
developerName: string;
|
|
29
|
+
errorDetails?: ExperienceModelTypesErrorRepresentation_ExperienceModelTypesErrorRepresentation;
|
|
26
30
|
/** The 18-char String ID of the Type. This is returned for the DB-Based (Custom) Types only. */
|
|
27
31
|
id?: string;
|
|
28
32
|
/** The namespace prefix that is associated with the Type. Refer to a Type using the namespacePrefix__developerName notation (aka fullyQualifiedName). */
|
|
@@ -31,10 +35,10 @@ export interface ExperienceModelTypesRepresentationNormalized {
|
|
|
31
35
|
renditionConfig?: {};
|
|
32
36
|
/** The JSON Schema definition (schema.json) of the Type */
|
|
33
37
|
schema?: {};
|
|
38
|
+
/** The source descriptor of the Type that was given in query params. */
|
|
39
|
+
sourceDescriptor?: string;
|
|
34
40
|
/** The title of the Type that was given in its schema.json. */
|
|
35
41
|
title?: string;
|
|
36
|
-
/** The type descriptor of the Type that was given in query params. */
|
|
37
|
-
typeDescriptor?: string;
|
|
38
42
|
}
|
|
39
43
|
/**
|
|
40
44
|
* Represents the details about Types.
|
|
@@ -45,12 +49,14 @@ export interface ExperienceModelTypesRepresentationNormalized {
|
|
|
45
49
|
export interface ExperienceModelTypesRepresentation {
|
|
46
50
|
bundleType: string;
|
|
47
51
|
description?: string;
|
|
52
|
+
descriptor: string;
|
|
48
53
|
designConfig?: {};
|
|
49
54
|
developerName: string;
|
|
55
|
+
errorDetails?: ExperienceModelTypesErrorRepresentation_ExperienceModelTypesErrorRepresentation;
|
|
50
56
|
id?: string;
|
|
51
57
|
namespacePrefix: string;
|
|
52
58
|
renditionConfig?: {};
|
|
53
59
|
schema?: {};
|
|
60
|
+
sourceDescriptor?: string;
|
|
54
61
|
title?: string;
|
|
55
|
-
typeDescriptor?: string;
|
|
56
62
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-adapters-experience-model",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.264.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.264.0"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
|
-
"@salesforce/lds-compiler-plugins": "^1.
|
|
51
|
-
"@salesforce/lds-karma": "^1.
|
|
50
|
+
"@salesforce/lds-compiler-plugins": "^1.264.0",
|
|
51
|
+
"@salesforce/lds-karma": "^1.264.0"
|
|
52
52
|
},
|
|
53
53
|
"nx": {
|
|
54
54
|
"targets": {
|
package/sfdc/index.js
CHANGED
|
@@ -92,7 +92,7 @@ function createLink(ref) {
|
|
|
92
92
|
|
|
93
93
|
const TTL$6 = 3600000;
|
|
94
94
|
const VERSION$6 = "5a3f5e1d42d8f0aa089e888ddac06972";
|
|
95
|
-
function validate$
|
|
95
|
+
function validate$f(obj, path = 'ExperienceModelBlockTypeDetailRepresentation') {
|
|
96
96
|
const v_error = (() => {
|
|
97
97
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
98
98
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -197,7 +197,7 @@ function equals$6(existing, incoming) {
|
|
|
197
197
|
}
|
|
198
198
|
const ingest$6 = function ExperienceModelBlockTypeDetailRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
199
199
|
if (process.env.NODE_ENV !== 'production') {
|
|
200
|
-
const validateError = validate$
|
|
200
|
+
const validateError = validate$f(input);
|
|
201
201
|
if (validateError !== null) {
|
|
202
202
|
throw validateError;
|
|
203
203
|
}
|
|
@@ -359,7 +359,7 @@ const getBlockTypeAdapterFactory = (luvio) => function ExperienceType__getBlockT
|
|
|
359
359
|
buildCachedSnapshotCachePolicy$6, buildNetworkSnapshotCachePolicy$6);
|
|
360
360
|
};
|
|
361
361
|
|
|
362
|
-
function validate$
|
|
362
|
+
function validate$e(obj, path = 'ExperienceModelBlockTypeSummaryRepresentation') {
|
|
363
363
|
const v_error = (() => {
|
|
364
364
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
365
365
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -418,7 +418,7 @@ function validate$d(obj, path = 'ExperienceModelBlockTypeSummaryRepresentation')
|
|
|
418
418
|
|
|
419
419
|
const TTL$5 = 3600000;
|
|
420
420
|
const VERSION$5 = "c4cd880e972cdf9faaa6db963fe35b31";
|
|
421
|
-
function validate$
|
|
421
|
+
function validate$d(obj, path = 'ExperienceModelBlockTypeCollectionRepresentation') {
|
|
422
422
|
const v_error = (() => {
|
|
423
423
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
424
424
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -431,7 +431,7 @@ function validate$c(obj, path = 'ExperienceModelBlockTypeCollectionRepresentatio
|
|
|
431
431
|
for (let i = 0; i < obj_blockTypes.length; i++) {
|
|
432
432
|
const obj_blockTypes_item = obj_blockTypes[i];
|
|
433
433
|
const path_blockTypes_item = path_blockTypes + '[' + i + ']';
|
|
434
|
-
const referencepath_blockTypes_itemValidationError = validate$
|
|
434
|
+
const referencepath_blockTypes_itemValidationError = validate$e(obj_blockTypes_item, path_blockTypes_item);
|
|
435
435
|
if (referencepath_blockTypes_itemValidationError !== null) {
|
|
436
436
|
let message = 'Object doesn\'t match ExperienceModelBlockTypeSummaryRepresentation (at "' + path_blockTypes_item + '")\n';
|
|
437
437
|
message += referencepath_blockTypes_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -485,7 +485,7 @@ function equals$5(existing, incoming) {
|
|
|
485
485
|
}
|
|
486
486
|
const ingest$5 = function ExperienceModelBlockTypeCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
487
487
|
if (process.env.NODE_ENV !== 'production') {
|
|
488
|
-
const validateError = validate$
|
|
488
|
+
const validateError = validate$d(input);
|
|
489
489
|
if (validateError !== null) {
|
|
490
490
|
throw validateError;
|
|
491
491
|
}
|
|
@@ -653,7 +653,7 @@ const getBlockTypesAdapterFactory = (luvio) => function ExperienceType__getBlock
|
|
|
653
653
|
|
|
654
654
|
const TTL$4 = 3600000;
|
|
655
655
|
const VERSION$4 = "fb0265f1d37480d0821fd97a29a0f9c2";
|
|
656
|
-
function validate$
|
|
656
|
+
function validate$c(obj, path = 'ExperienceModelContentTypeDetailRepresentation') {
|
|
657
657
|
const v_error = (() => {
|
|
658
658
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
659
659
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -742,7 +742,7 @@ function equals$4(existing, incoming) {
|
|
|
742
742
|
}
|
|
743
743
|
const ingest$4 = function ExperienceModelContentTypeDetailRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
744
744
|
if (process.env.NODE_ENV !== 'production') {
|
|
745
|
-
const validateError = validate$
|
|
745
|
+
const validateError = validate$c(input);
|
|
746
746
|
if (validateError !== null) {
|
|
747
747
|
throw validateError;
|
|
748
748
|
}
|
|
@@ -904,7 +904,7 @@ const getContentTypeAdapterFactory = (luvio) => function ExperienceType__getCont
|
|
|
904
904
|
buildCachedSnapshotCachePolicy$4, buildNetworkSnapshotCachePolicy$4);
|
|
905
905
|
};
|
|
906
906
|
|
|
907
|
-
function validate$
|
|
907
|
+
function validate$b(obj, path = 'ExperienceModelContentTypeSummaryRepresentation') {
|
|
908
908
|
const v_error = (() => {
|
|
909
909
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
910
910
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -953,7 +953,7 @@ function validate$a(obj, path = 'ExperienceModelContentTypeSummaryRepresentation
|
|
|
953
953
|
|
|
954
954
|
const TTL$3 = 3600000;
|
|
955
955
|
const VERSION$3 = "30f1f19149230f10ac9197e0d9769c88";
|
|
956
|
-
function validate$
|
|
956
|
+
function validate$a(obj, path = 'ExperienceModelContentTypeCollectionRepresentation') {
|
|
957
957
|
const v_error = (() => {
|
|
958
958
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
959
959
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -966,7 +966,7 @@ function validate$9(obj, path = 'ExperienceModelContentTypeCollectionRepresentat
|
|
|
966
966
|
for (let i = 0; i < obj_contentTypes.length; i++) {
|
|
967
967
|
const obj_contentTypes_item = obj_contentTypes[i];
|
|
968
968
|
const path_contentTypes_item = path_contentTypes + '[' + i + ']';
|
|
969
|
-
const referencepath_contentTypes_itemValidationError = validate$
|
|
969
|
+
const referencepath_contentTypes_itemValidationError = validate$b(obj_contentTypes_item, path_contentTypes_item);
|
|
970
970
|
if (referencepath_contentTypes_itemValidationError !== null) {
|
|
971
971
|
let message = 'Object doesn\'t match ExperienceModelContentTypeSummaryRepresentation (at "' + path_contentTypes_item + '")\n';
|
|
972
972
|
message += referencepath_contentTypes_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1022,7 +1022,7 @@ function equals$3(existing, incoming) {
|
|
|
1022
1022
|
}
|
|
1023
1023
|
const ingest$3 = function ExperienceModelContentTypeCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1024
1024
|
if (process.env.NODE_ENV !== 'production') {
|
|
1025
|
-
const validateError = validate$
|
|
1025
|
+
const validateError = validate$a(input);
|
|
1026
1026
|
if (validateError !== null) {
|
|
1027
1027
|
throw validateError;
|
|
1028
1028
|
}
|
|
@@ -1190,7 +1190,7 @@ const getContentTypesAdapterFactory = (luvio) => function ExperienceType__getCon
|
|
|
1190
1190
|
|
|
1191
1191
|
const TTL$2 = 3600000;
|
|
1192
1192
|
const VERSION$2 = "56f77a37a5711b32738bafbcb3eed520";
|
|
1193
|
-
function validate$
|
|
1193
|
+
function validate$9(obj, path = 'ExperienceModelPropertyTypeDetailRepresentation') {
|
|
1194
1194
|
const v_error = (() => {
|
|
1195
1195
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1196
1196
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1277,7 +1277,7 @@ function equals$2(existing, incoming) {
|
|
|
1277
1277
|
}
|
|
1278
1278
|
const ingest$2 = function ExperienceModelPropertyTypeDetailRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1279
1279
|
if (process.env.NODE_ENV !== 'production') {
|
|
1280
|
-
const validateError = validate$
|
|
1280
|
+
const validateError = validate$9(input);
|
|
1281
1281
|
if (validateError !== null) {
|
|
1282
1282
|
throw validateError;
|
|
1283
1283
|
}
|
|
@@ -1439,7 +1439,7 @@ const getPropertyTypeAdapterFactory = (luvio) => function ExperienceType__getPro
|
|
|
1439
1439
|
buildCachedSnapshotCachePolicy$2, buildNetworkSnapshotCachePolicy$2);
|
|
1440
1440
|
};
|
|
1441
1441
|
|
|
1442
|
-
function validate$
|
|
1442
|
+
function validate$8(obj, path = 'ExperienceModelPropertyTypeSummaryRepresentation') {
|
|
1443
1443
|
const v_error = (() => {
|
|
1444
1444
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1445
1445
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1486,7 +1486,7 @@ function validate$7(obj, path = 'ExperienceModelPropertyTypeSummaryRepresentatio
|
|
|
1486
1486
|
|
|
1487
1487
|
const TTL$1 = 3600000;
|
|
1488
1488
|
const VERSION$1 = "172e544645942d550fc1f07812bb85b6";
|
|
1489
|
-
function validate$
|
|
1489
|
+
function validate$7(obj, path = 'ExperienceModelPropertyTypeCollectionRepresentation') {
|
|
1490
1490
|
const v_error = (() => {
|
|
1491
1491
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1492
1492
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1525,7 +1525,7 @@ function validate$6(obj, path = 'ExperienceModelPropertyTypeCollectionRepresenta
|
|
|
1525
1525
|
for (let i = 0; i < obj_propertyTypes.length; i++) {
|
|
1526
1526
|
const obj_propertyTypes_item = obj_propertyTypes[i];
|
|
1527
1527
|
const path_propertyTypes_item = path_propertyTypes + '[' + i + ']';
|
|
1528
|
-
const referencepath_propertyTypes_itemValidationError = validate$
|
|
1528
|
+
const referencepath_propertyTypes_itemValidationError = validate$8(obj_propertyTypes_item, path_propertyTypes_item);
|
|
1529
1529
|
if (referencepath_propertyTypes_itemValidationError !== null) {
|
|
1530
1530
|
let message = 'Object doesn\'t match ExperienceModelPropertyTypeSummaryRepresentation (at "' + path_propertyTypes_item + '")\n';
|
|
1531
1531
|
message += referencepath_propertyTypes_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1555,7 +1555,7 @@ function equals$1(existing, incoming) {
|
|
|
1555
1555
|
}
|
|
1556
1556
|
const ingest$1 = function ExperienceModelPropertyTypeCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1557
1557
|
if (process.env.NODE_ENV !== 'production') {
|
|
1558
|
-
const validateError = validate$
|
|
1558
|
+
const validateError = validate$7(input);
|
|
1559
1559
|
if (validateError !== null) {
|
|
1560
1560
|
throw validateError;
|
|
1561
1561
|
}
|
|
@@ -1718,7 +1718,7 @@ const getPropertyTypesAdapterFactory = (luvio) => function ExperienceType__getPr
|
|
|
1718
1718
|
buildCachedSnapshotCachePolicy$1, buildNetworkSnapshotCachePolicy$1);
|
|
1719
1719
|
};
|
|
1720
1720
|
|
|
1721
|
-
function validate$
|
|
1721
|
+
function validate$6(obj, path = 'ExperienceModelDesignConfigInputRepresentation') {
|
|
1722
1722
|
const v_error = (() => {
|
|
1723
1723
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1724
1724
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1734,7 +1734,7 @@ function validate$5(obj, path = 'ExperienceModelDesignConfigInputRepresentation'
|
|
|
1734
1734
|
return v_error === undefined ? null : v_error;
|
|
1735
1735
|
}
|
|
1736
1736
|
|
|
1737
|
-
function validate$
|
|
1737
|
+
function validate$5(obj, path = 'ExperienceModelRenditionConfigInputRepresentation') {
|
|
1738
1738
|
const v_error = (() => {
|
|
1739
1739
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1740
1740
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1750,11 +1750,25 @@ function validate$4(obj, path = 'ExperienceModelRenditionConfigInputRepresentati
|
|
|
1750
1750
|
return v_error === undefined ? null : v_error;
|
|
1751
1751
|
}
|
|
1752
1752
|
|
|
1753
|
-
function validate$
|
|
1753
|
+
function validate$4(obj, path = 'ExperienceModelSchemaConfigInputRepresentation') {
|
|
1754
1754
|
const v_error = (() => {
|
|
1755
1755
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1756
1756
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1757
1757
|
}
|
|
1758
|
+
if (obj.filterConfig !== undefined) {
|
|
1759
|
+
const obj_filterConfig = obj.filterConfig;
|
|
1760
|
+
const path_filterConfig = path + '.filterConfig';
|
|
1761
|
+
if (!ArrayIsArray(obj_filterConfig)) {
|
|
1762
|
+
return new TypeError('Expected "array" but received "' + typeof obj_filterConfig + '" (at "' + path_filterConfig + '")');
|
|
1763
|
+
}
|
|
1764
|
+
for (let i = 0; i < obj_filterConfig.length; i++) {
|
|
1765
|
+
const obj_filterConfig_item = obj_filterConfig[i];
|
|
1766
|
+
const path_filterConfig_item = path_filterConfig + '[' + i + ']';
|
|
1767
|
+
if (typeof obj_filterConfig_item !== 'string') {
|
|
1768
|
+
return new TypeError('Expected "string" but received "' + typeof obj_filterConfig_item + '" (at "' + path_filterConfig_item + '")');
|
|
1769
|
+
}
|
|
1770
|
+
}
|
|
1771
|
+
}
|
|
1758
1772
|
if (obj.subSchemaDefinitions !== undefined) {
|
|
1759
1773
|
const obj_subSchemaDefinitions = obj.subSchemaDefinitions;
|
|
1760
1774
|
const path_subSchemaDefinitions = path + '.subSchemaDefinitions';
|
|
@@ -1766,7 +1780,7 @@ function validate$3(obj, path = 'ExperienceModelSchemaConfigInputRepresentation'
|
|
|
1766
1780
|
return v_error === undefined ? null : v_error;
|
|
1767
1781
|
}
|
|
1768
1782
|
|
|
1769
|
-
function validate$
|
|
1783
|
+
function validate$3(obj, path = 'ExperienceModelTypesConfigInputRepresentation') {
|
|
1770
1784
|
const v_error = (() => {
|
|
1771
1785
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1772
1786
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1779,7 +1793,7 @@ function validate$2(obj, path = 'ExperienceModelTypesConfigInputRepresentation')
|
|
|
1779
1793
|
if (obj.designConfig !== undefined) {
|
|
1780
1794
|
const obj_designConfig = obj.designConfig;
|
|
1781
1795
|
const path_designConfig = path + '.designConfig';
|
|
1782
|
-
const referencepath_designConfigValidationError = validate$
|
|
1796
|
+
const referencepath_designConfigValidationError = validate$6(obj_designConfig, path_designConfig);
|
|
1783
1797
|
if (referencepath_designConfigValidationError !== null) {
|
|
1784
1798
|
let message = 'Object doesn\'t match ExperienceModelDesignConfigInputRepresentation (at "' + path_designConfig + '")\n';
|
|
1785
1799
|
message += referencepath_designConfigValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1789,7 +1803,7 @@ function validate$2(obj, path = 'ExperienceModelTypesConfigInputRepresentation')
|
|
|
1789
1803
|
if (obj.renditionConfig !== undefined) {
|
|
1790
1804
|
const obj_renditionConfig = obj.renditionConfig;
|
|
1791
1805
|
const path_renditionConfig = path + '.renditionConfig';
|
|
1792
|
-
const referencepath_renditionConfigValidationError = validate$
|
|
1806
|
+
const referencepath_renditionConfigValidationError = validate$5(obj_renditionConfig, path_renditionConfig);
|
|
1793
1807
|
if (referencepath_renditionConfigValidationError !== null) {
|
|
1794
1808
|
let message = 'Object doesn\'t match ExperienceModelRenditionConfigInputRepresentation (at "' + path_renditionConfig + '")\n';
|
|
1795
1809
|
message += referencepath_renditionConfigValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1799,7 +1813,7 @@ function validate$2(obj, path = 'ExperienceModelTypesConfigInputRepresentation')
|
|
|
1799
1813
|
if (obj.schemaConfig !== undefined) {
|
|
1800
1814
|
const obj_schemaConfig = obj.schemaConfig;
|
|
1801
1815
|
const path_schemaConfig = path + '.schemaConfig';
|
|
1802
|
-
const referencepath_schemaConfigValidationError = validate$
|
|
1816
|
+
const referencepath_schemaConfigValidationError = validate$4(obj_schemaConfig, path_schemaConfig);
|
|
1803
1817
|
if (referencepath_schemaConfigValidationError !== null) {
|
|
1804
1818
|
let message = 'Object doesn\'t match ExperienceModelSchemaConfigInputRepresentation (at "' + path_schemaConfig + '")\n';
|
|
1805
1819
|
message += referencepath_schemaConfigValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1817,6 +1831,25 @@ function validate$2(obj, path = 'ExperienceModelTypesConfigInputRepresentation')
|
|
|
1817
1831
|
return v_error === undefined ? null : v_error;
|
|
1818
1832
|
}
|
|
1819
1833
|
|
|
1834
|
+
function validate$2(obj, path = 'ExperienceModelTypesErrorRepresentation') {
|
|
1835
|
+
const v_error = (() => {
|
|
1836
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1837
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1838
|
+
}
|
|
1839
|
+
const obj_errorDescription = obj.errorDescription;
|
|
1840
|
+
const path_errorDescription = path + '.errorDescription';
|
|
1841
|
+
if (typeof obj_errorDescription !== 'string') {
|
|
1842
|
+
return new TypeError('Expected "string" but received "' + typeof obj_errorDescription + '" (at "' + path_errorDescription + '")');
|
|
1843
|
+
}
|
|
1844
|
+
const obj_errorTitle = obj.errorTitle;
|
|
1845
|
+
const path_errorTitle = path + '.errorTitle';
|
|
1846
|
+
if (typeof obj_errorTitle !== 'string') {
|
|
1847
|
+
return new TypeError('Expected "string" but received "' + typeof obj_errorTitle + '" (at "' + path_errorTitle + '")');
|
|
1848
|
+
}
|
|
1849
|
+
})();
|
|
1850
|
+
return v_error === undefined ? null : v_error;
|
|
1851
|
+
}
|
|
1852
|
+
|
|
1820
1853
|
function validate$1(obj, path = 'ExperienceModelTypesRepresentation') {
|
|
1821
1854
|
const v_error = (() => {
|
|
1822
1855
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -1834,6 +1867,11 @@ function validate$1(obj, path = 'ExperienceModelTypesRepresentation') {
|
|
|
1834
1867
|
return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
|
|
1835
1868
|
}
|
|
1836
1869
|
}
|
|
1870
|
+
const obj_descriptor = obj.descriptor;
|
|
1871
|
+
const path_descriptor = path + '.descriptor';
|
|
1872
|
+
if (typeof obj_descriptor !== 'string') {
|
|
1873
|
+
return new TypeError('Expected "string" but received "' + typeof obj_descriptor + '" (at "' + path_descriptor + '")');
|
|
1874
|
+
}
|
|
1837
1875
|
if (obj.designConfig !== undefined) {
|
|
1838
1876
|
const obj_designConfig = obj.designConfig;
|
|
1839
1877
|
const path_designConfig = path + '.designConfig';
|
|
@@ -1846,6 +1884,16 @@ function validate$1(obj, path = 'ExperienceModelTypesRepresentation') {
|
|
|
1846
1884
|
if (typeof obj_developerName !== 'string') {
|
|
1847
1885
|
return new TypeError('Expected "string" but received "' + typeof obj_developerName + '" (at "' + path_developerName + '")');
|
|
1848
1886
|
}
|
|
1887
|
+
if (obj.errorDetails !== undefined) {
|
|
1888
|
+
const obj_errorDetails = obj.errorDetails;
|
|
1889
|
+
const path_errorDetails = path + '.errorDetails';
|
|
1890
|
+
const referencepath_errorDetailsValidationError = validate$2(obj_errorDetails, path_errorDetails);
|
|
1891
|
+
if (referencepath_errorDetailsValidationError !== null) {
|
|
1892
|
+
let message = 'Object doesn\'t match ExperienceModelTypesErrorRepresentation (at "' + path_errorDetails + '")\n';
|
|
1893
|
+
message += referencepath_errorDetailsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
1894
|
+
return new TypeError(message);
|
|
1895
|
+
}
|
|
1896
|
+
}
|
|
1849
1897
|
if (obj.id !== undefined) {
|
|
1850
1898
|
const obj_id = obj.id;
|
|
1851
1899
|
const path_id = path + '.id';
|
|
@@ -1872,6 +1920,13 @@ function validate$1(obj, path = 'ExperienceModelTypesRepresentation') {
|
|
|
1872
1920
|
return new TypeError('Expected "object" but received "' + typeof obj_schema + '" (at "' + path_schema + '")');
|
|
1873
1921
|
}
|
|
1874
1922
|
}
|
|
1923
|
+
if (obj.sourceDescriptor !== undefined) {
|
|
1924
|
+
const obj_sourceDescriptor = obj.sourceDescriptor;
|
|
1925
|
+
const path_sourceDescriptor = path + '.sourceDescriptor';
|
|
1926
|
+
if (typeof obj_sourceDescriptor !== 'string') {
|
|
1927
|
+
return new TypeError('Expected "string" but received "' + typeof obj_sourceDescriptor + '" (at "' + path_sourceDescriptor + '")');
|
|
1928
|
+
}
|
|
1929
|
+
}
|
|
1875
1930
|
if (obj.title !== undefined) {
|
|
1876
1931
|
const obj_title = obj.title;
|
|
1877
1932
|
const path_title = path + '.title';
|
|
@@ -1879,13 +1934,6 @@ function validate$1(obj, path = 'ExperienceModelTypesRepresentation') {
|
|
|
1879
1934
|
return new TypeError('Expected "string" but received "' + typeof obj_title + '" (at "' + path_title + '")');
|
|
1880
1935
|
}
|
|
1881
1936
|
}
|
|
1882
|
-
if (obj.typeDescriptor !== undefined) {
|
|
1883
|
-
const obj_typeDescriptor = obj.typeDescriptor;
|
|
1884
|
-
const path_typeDescriptor = path + '.typeDescriptor';
|
|
1885
|
-
if (typeof obj_typeDescriptor !== 'string') {
|
|
1886
|
-
return new TypeError('Expected "string" but received "' + typeof obj_typeDescriptor + '" (at "' + path_typeDescriptor + '")');
|
|
1887
|
-
}
|
|
1888
|
-
}
|
|
1889
1937
|
})();
|
|
1890
1938
|
return v_error === undefined ? null : v_error;
|
|
1891
1939
|
}
|
|
@@ -1959,7 +2007,7 @@ function select(luvio, params) {
|
|
|
1959
2007
|
return select$1();
|
|
1960
2008
|
}
|
|
1961
2009
|
function keyBuilder$1(luvio, params) {
|
|
1962
|
-
return keyPrefix + '::ExperienceModelTypesCollectionRepresentation:(' + 'language:' + params.body.language + '::' + '[' + params.body.typeConfigs.map(element => { var _a, _b, _c, _d, _e, _f; 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.renditionConfig) === null || _c === void 0 ? void 0 : _c.target) === undefined ? 'typeConfigs.renditionConfig.target' : 'typeConfigs.renditionConfig.target:' + ((_d = element.renditionConfig) === null || _d === void 0 ? void 0 : _d.target)) + '::' + (((_e = element.schemaConfig) === null || _e === void 0 ? void 0 : _e.
|
|
2010
|
+
return keyPrefix + '::ExperienceModelTypesCollectionRepresentation:(' + 'language:' + params.body.language + '::' + '[' + params.body.typeConfigs.map(element => { var _a, _b, _c, _d, _e, _f, _g, _h; 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.renditionConfig) === null || _c === void 0 ? void 0 : _c.target) === undefined ? 'typeConfigs.renditionConfig.target' : 'typeConfigs.renditionConfig.target:' + ((_d = element.renditionConfig) === null || _d === void 0 ? void 0 : _d.target)) + '::' + (((_e = element.schemaConfig) === null || _e === void 0 ? void 0 : _e.filterConfig) === undefined ? 'typeConfigs.schemaConfig.filterConfig' : 'typeConfigs.schemaConfig.filterConfig:' + ((_f = element.schemaConfig) === null || _f === void 0 ? void 0 : _f.filterConfig)) + '::' + (((_g = element.schemaConfig) === null || _g === void 0 ? void 0 : _g.subSchemaDefinitions) === undefined ? 'typeConfigs.schemaConfig.subSchemaDefinitions' : 'typeConfigs.schemaConfig.subSchemaDefinitions:' + ((_h = element.schemaConfig) === null || _h === void 0 ? void 0 : _h.subSchemaDefinitions)) + '::' + (element.sourceDescriptor === undefined ? 'typeConfigs.sourceDescriptor' : 'typeConfigs.sourceDescriptor:' + element.sourceDescriptor); }).join(',') + ']' + ')';
|
|
1963
2011
|
}
|
|
1964
2012
|
function getResponseCacheKeys(storeKeyMap, luvio, resourceParams, response) {
|
|
1965
2013
|
getTypeCacheKeys(storeKeyMap, luvio, response, () => keyBuilder$1(luvio, resourceParams));
|
|
@@ -2026,7 +2074,7 @@ function typeCheckConfig(untrustedConfig) {
|
|
|
2026
2074
|
const untrustedConfig_typeConfigs_array = [];
|
|
2027
2075
|
for (let i = 0, arrayLength = untrustedConfig_typeConfigs.length; i < arrayLength; i++) {
|
|
2028
2076
|
const untrustedConfig_typeConfigs_item = untrustedConfig_typeConfigs[i];
|
|
2029
|
-
const referenceExperienceModelTypesConfigInputRepresentationValidationError = validate$
|
|
2077
|
+
const referenceExperienceModelTypesConfigInputRepresentationValidationError = validate$3(untrustedConfig_typeConfigs_item);
|
|
2030
2078
|
if (referenceExperienceModelTypesConfigInputRepresentationValidationError === null) {
|
|
2031
2079
|
untrustedConfig_typeConfigs_array.push(untrustedConfig_typeConfigs_item);
|
|
2032
2080
|
}
|
|
@@ -2194,4 +2242,4 @@ withDefaultLuvio((luvio) => {
|
|
|
2194
2242
|
});
|
|
2195
2243
|
|
|
2196
2244
|
export { getBlockType, getBlockType_imperative, getBlockTypes, getBlockTypes_imperative, getContentType, getContentType_imperative, getContentTypes, getContentTypes_imperative, getPropertyType, getPropertyType_imperative, getPropertyTypes, getPropertyTypes_imperative, getTypes, getTypes_imperative };
|
|
2197
|
-
// version: 1.
|
|
2245
|
+
// version: 1.264.0-76ebb1758
|
package/src/raml/api.raml
CHANGED
|
@@ -376,6 +376,9 @@ types:
|
|
|
376
376
|
bundleType:
|
|
377
377
|
description: The bundle type of the Type that was given in type descriptor in query params.
|
|
378
378
|
type: string
|
|
379
|
+
descriptor:
|
|
380
|
+
description: The type descriptor of the Type that was given in query params.
|
|
381
|
+
type: string
|
|
379
382
|
designConfig:
|
|
380
383
|
description: The design configuration for the specified target.
|
|
381
384
|
type: object
|
|
@@ -383,6 +386,10 @@ types:
|
|
|
383
386
|
developerName:
|
|
384
387
|
description: The developer name (aka apiName) of the Type.
|
|
385
388
|
type: string
|
|
389
|
+
errorDetails:
|
|
390
|
+
description: Experience Model Types Error Details
|
|
391
|
+
type: ExperienceModelTypesErrorRepresentation
|
|
392
|
+
required: false # TODO waiting on W-8253396
|
|
386
393
|
id:
|
|
387
394
|
description: The 18-char String ID of the Type. This is returned for the DB-Based (Custom) Types only.
|
|
388
395
|
type: string
|
|
@@ -402,14 +409,20 @@ types:
|
|
|
402
409
|
description: The title of the Type that was given in its schema.json.
|
|
403
410
|
type: string
|
|
404
411
|
required: false # TODO waiting on W-8253396s
|
|
405
|
-
|
|
406
|
-
description: The
|
|
412
|
+
sourceDescriptor:
|
|
413
|
+
description: The source descriptor of the Type that was given in query params.
|
|
407
414
|
type: string
|
|
408
415
|
required: false # TODO waiting on W-8253396s
|
|
409
416
|
ExperienceModelSchemaConfigInputRepresentation:
|
|
410
417
|
type: object
|
|
411
418
|
description: Input Representation for Experience Model type schema configuration
|
|
412
419
|
properties:
|
|
420
|
+
filterConfig:
|
|
421
|
+
description: Filter configuration for schema
|
|
422
|
+
type: array
|
|
423
|
+
items:
|
|
424
|
+
type: string
|
|
425
|
+
required: false # TODO waiting on W-8253396
|
|
413
426
|
subSchemaDefinitions:
|
|
414
427
|
description: Boolean property if sub-schema should be included
|
|
415
428
|
type: boolean
|
|
@@ -421,6 +434,7 @@ types:
|
|
|
421
434
|
target:
|
|
422
435
|
description: A rendition configuration target. To fetch all the types that have the rendition configuration for a particular target.
|
|
423
436
|
type: string
|
|
437
|
+
enum: [Default, Detail, Email, LightningDesktopCopilot, LightningMobileCopilot, Summary]
|
|
424
438
|
required: false # TODO waiting on W-8253396
|
|
425
439
|
ExperienceModelDesignConfigInputRepresentation:
|
|
426
440
|
type: object
|
|
@@ -429,7 +443,27 @@ types:
|
|
|
429
443
|
target:
|
|
430
444
|
description: A design configuration target. To fetch all the types that have the design configuration for a particular target.
|
|
431
445
|
type: string
|
|
446
|
+
enum: [Default, LightningDesktopCopilot, LightningMobileCopilot]
|
|
432
447
|
required: false # TODO waiting on W-8253396
|
|
448
|
+
ExperienceModelFilterConfigInputRepresentation:
|
|
449
|
+
type: object
|
|
450
|
+
description: Input Representation for Experience Model type Filter configuration
|
|
451
|
+
properties:
|
|
452
|
+
propertyNames:
|
|
453
|
+
description: Indicates list of properties to filter
|
|
454
|
+
type: array
|
|
455
|
+
items:
|
|
456
|
+
type: string
|
|
457
|
+
ExperienceModelTypesErrorRepresentation:
|
|
458
|
+
type: object
|
|
459
|
+
description: Experience Mode Types Error Representation
|
|
460
|
+
properties:
|
|
461
|
+
errorDescription:
|
|
462
|
+
description: Error Description
|
|
463
|
+
type: string
|
|
464
|
+
errorTitle:
|
|
465
|
+
description: Error Title
|
|
466
|
+
type: string
|
|
433
467
|
ExperienceModelTypesConfigInputRepresentation:
|
|
434
468
|
type: object
|
|
435
469
|
description: Input Representation for Experience Model types configuration
|