@salesforce/lds-adapters-experience-model 1.274.0 → 1.276.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 +57 -31
- package/dist/es/es2018/types/src/generated/types/ExperienceModelSourceDescriptorInputRepresentation.d.ts +31 -0
- package/dist/es/es2018/types/src/generated/types/ExperienceModelTypesConfigInputRepresentation.d.ts +4 -3
- package/dist/es/es2018/types/src/generated/types/ExperienceModelTypesRepresentation.d.ts +3 -3
- package/package.json +4 -4
- package/sfdc/index.js +58 -32
- package/src/raml/api.raml +14 -2
- package/src/raml/luvio.raml +1 -1
|
@@ -80,7 +80,7 @@ function createLink(ref) {
|
|
|
80
80
|
};
|
|
81
81
|
}
|
|
82
82
|
|
|
83
|
-
function validate$
|
|
83
|
+
function validate$h(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$g(obj, path = 'ExperienceModelBlockTypeSummaryRepresentation')
|
|
|
139
139
|
|
|
140
140
|
const TTL$6 = 3600000;
|
|
141
141
|
const VERSION$6 = "c4cd880e972cdf9faaa6db963fe35b31";
|
|
142
|
-
function validate$
|
|
142
|
+
function validate$g(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$f(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$h(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$g(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$f(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$f(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$e(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$d(obj, path = 'ExperienceModelContentTypeSummaryRepresentation
|
|
|
690
690
|
|
|
691
691
|
const TTL$4 = 3600000;
|
|
692
692
|
const VERSION$4 = "30f1f19149230f10ac9197e0d9769c88";
|
|
693
|
-
function validate$
|
|
693
|
+
function validate$d(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$c(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$e(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$d(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$c(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$c(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$b(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$a(obj, path = 'ExperienceModelPropertyTypeSummaryRepresentatio
|
|
|
1225
1225
|
|
|
1226
1226
|
const TTL$2 = 3600000;
|
|
1227
1227
|
const VERSION$2 = "172e544645942d550fc1f07812bb85b6";
|
|
1228
|
-
function validate$
|
|
1228
|
+
function validate$a(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$9(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$b(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$a(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$9(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$9(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$8(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$7(obj, path = 'ExperienceModelDesignConfigInputRepresentation'
|
|
|
1724
1724
|
return v_error === undefined ? null : v_error;
|
|
1725
1725
|
}
|
|
1726
1726
|
|
|
1727
|
-
function validate$
|
|
1727
|
+
function validate$7(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,7 +1740,7 @@ function validate$6(obj, path = 'ExperienceModelRenditionConfigInputRepresentati
|
|
|
1740
1740
|
return v_error === undefined ? null : v_error;
|
|
1741
1741
|
}
|
|
1742
1742
|
|
|
1743
|
-
function validate$
|
|
1743
|
+
function validate$6(obj, path = 'ExperienceModelFilterConfigInputRepresentation') {
|
|
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 + '")');
|
|
@@ -1761,7 +1761,7 @@ function validate$5(obj, path = 'ExperienceModelFilterConfigInputRepresentation'
|
|
|
1761
1761
|
return v_error === undefined ? null : v_error;
|
|
1762
1762
|
}
|
|
1763
1763
|
|
|
1764
|
-
function validate$
|
|
1764
|
+
function validate$5(obj, path = 'ExperienceModelSchemaConfigInputRepresentation') {
|
|
1765
1765
|
const v_error = (() => {
|
|
1766
1766
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1767
1767
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1769,7 +1769,7 @@ function validate$4(obj, path = 'ExperienceModelSchemaConfigInputRepresentation'
|
|
|
1769
1769
|
if (obj.filterConfig !== undefined) {
|
|
1770
1770
|
const obj_filterConfig = obj.filterConfig;
|
|
1771
1771
|
const path_filterConfig = path + '.filterConfig';
|
|
1772
|
-
const referencepath_filterConfigValidationError = validate$
|
|
1772
|
+
const referencepath_filterConfigValidationError = validate$6(obj_filterConfig, path_filterConfig);
|
|
1773
1773
|
if (referencepath_filterConfigValidationError !== null) {
|
|
1774
1774
|
let message = 'Object doesn\'t match ExperienceModelFilterConfigInputRepresentation (at "' + path_filterConfig + '")\n';
|
|
1775
1775
|
message += referencepath_filterConfigValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1787,6 +1787,29 @@ function validate$4(obj, path = 'ExperienceModelSchemaConfigInputRepresentation'
|
|
|
1787
1787
|
return v_error === undefined ? null : v_error;
|
|
1788
1788
|
}
|
|
1789
1789
|
|
|
1790
|
+
function validate$4(obj, path = 'ExperienceModelSourceDescriptorInputRepresentation') {
|
|
1791
|
+
const v_error = (() => {
|
|
1792
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1793
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1794
|
+
}
|
|
1795
|
+
if (obj.descriptor !== undefined) {
|
|
1796
|
+
const obj_descriptor = obj.descriptor;
|
|
1797
|
+
const path_descriptor = path + '.descriptor';
|
|
1798
|
+
if (typeof obj_descriptor !== 'string') {
|
|
1799
|
+
return new TypeError('Expected "string" but received "' + typeof obj_descriptor + '" (at "' + path_descriptor + '")');
|
|
1800
|
+
}
|
|
1801
|
+
}
|
|
1802
|
+
if (obj.propertyName !== undefined) {
|
|
1803
|
+
const obj_propertyName = obj.propertyName;
|
|
1804
|
+
const path_propertyName = path + '.propertyName';
|
|
1805
|
+
if (typeof obj_propertyName !== 'string') {
|
|
1806
|
+
return new TypeError('Expected "string" but received "' + typeof obj_propertyName + '" (at "' + path_propertyName + '")');
|
|
1807
|
+
}
|
|
1808
|
+
}
|
|
1809
|
+
})();
|
|
1810
|
+
return v_error === undefined ? null : v_error;
|
|
1811
|
+
}
|
|
1812
|
+
|
|
1790
1813
|
function validate$3(obj, path = 'ExperienceModelTypesConfigInputRepresentation') {
|
|
1791
1814
|
const v_error = (() => {
|
|
1792
1815
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -1800,7 +1823,7 @@ function validate$3(obj, path = 'ExperienceModelTypesConfigInputRepresentation')
|
|
|
1800
1823
|
if (obj.designConfig !== undefined) {
|
|
1801
1824
|
const obj_designConfig = obj.designConfig;
|
|
1802
1825
|
const path_designConfig = path + '.designConfig';
|
|
1803
|
-
const referencepath_designConfigValidationError = validate$
|
|
1826
|
+
const referencepath_designConfigValidationError = validate$8(obj_designConfig, path_designConfig);
|
|
1804
1827
|
if (referencepath_designConfigValidationError !== null) {
|
|
1805
1828
|
let message = 'Object doesn\'t match ExperienceModelDesignConfigInputRepresentation (at "' + path_designConfig + '")\n';
|
|
1806
1829
|
message += referencepath_designConfigValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1810,7 +1833,7 @@ function validate$3(obj, path = 'ExperienceModelTypesConfigInputRepresentation')
|
|
|
1810
1833
|
if (obj.renditionConfig !== undefined) {
|
|
1811
1834
|
const obj_renditionConfig = obj.renditionConfig;
|
|
1812
1835
|
const path_renditionConfig = path + '.renditionConfig';
|
|
1813
|
-
const referencepath_renditionConfigValidationError = validate$
|
|
1836
|
+
const referencepath_renditionConfigValidationError = validate$7(obj_renditionConfig, path_renditionConfig);
|
|
1814
1837
|
if (referencepath_renditionConfigValidationError !== null) {
|
|
1815
1838
|
let message = 'Object doesn\'t match ExperienceModelRenditionConfigInputRepresentation (at "' + path_renditionConfig + '")\n';
|
|
1816
1839
|
message += referencepath_renditionConfigValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1820,7 +1843,7 @@ function validate$3(obj, path = 'ExperienceModelTypesConfigInputRepresentation')
|
|
|
1820
1843
|
if (obj.schemaConfig !== undefined) {
|
|
1821
1844
|
const obj_schemaConfig = obj.schemaConfig;
|
|
1822
1845
|
const path_schemaConfig = path + '.schemaConfig';
|
|
1823
|
-
const referencepath_schemaConfigValidationError = validate$
|
|
1846
|
+
const referencepath_schemaConfigValidationError = validate$5(obj_schemaConfig, path_schemaConfig);
|
|
1824
1847
|
if (referencepath_schemaConfigValidationError !== null) {
|
|
1825
1848
|
let message = 'Object doesn\'t match ExperienceModelSchemaConfigInputRepresentation (at "' + path_schemaConfig + '")\n';
|
|
1826
1849
|
message += referencepath_schemaConfigValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1830,8 +1853,11 @@ function validate$3(obj, path = 'ExperienceModelTypesConfigInputRepresentation')
|
|
|
1830
1853
|
if (obj.sourceDescriptor !== undefined) {
|
|
1831
1854
|
const obj_sourceDescriptor = obj.sourceDescriptor;
|
|
1832
1855
|
const path_sourceDescriptor = path + '.sourceDescriptor';
|
|
1833
|
-
|
|
1834
|
-
|
|
1856
|
+
const referencepath_sourceDescriptorValidationError = validate$4(obj_sourceDescriptor, path_sourceDescriptor);
|
|
1857
|
+
if (referencepath_sourceDescriptorValidationError !== null) {
|
|
1858
|
+
let message = 'Object doesn\'t match ExperienceModelSourceDescriptorInputRepresentation (at "' + path_sourceDescriptor + '")\n';
|
|
1859
|
+
message += referencepath_sourceDescriptorValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
1860
|
+
return new TypeError(message);
|
|
1835
1861
|
}
|
|
1836
1862
|
}
|
|
1837
1863
|
})();
|
|
@@ -1930,8 +1956,8 @@ function validate$1(obj, path = 'ExperienceModelTypesRepresentation') {
|
|
|
1930
1956
|
if (obj.sourceDescriptor !== undefined) {
|
|
1931
1957
|
const obj_sourceDescriptor = obj.sourceDescriptor;
|
|
1932
1958
|
const path_sourceDescriptor = path + '.sourceDescriptor';
|
|
1933
|
-
if (typeof obj_sourceDescriptor !== '
|
|
1934
|
-
return new TypeError('Expected "
|
|
1959
|
+
if (typeof obj_sourceDescriptor !== 'object' || ArrayIsArray(obj_sourceDescriptor) || obj_sourceDescriptor === null) {
|
|
1960
|
+
return new TypeError('Expected "object" but received "' + typeof obj_sourceDescriptor + '" (at "' + path_sourceDescriptor + '")');
|
|
1935
1961
|
}
|
|
1936
1962
|
}
|
|
1937
1963
|
if (obj.title !== undefined) {
|
|
@@ -2014,7 +2040,7 @@ function select(luvio, params) {
|
|
|
2014
2040
|
return select$1();
|
|
2015
2041
|
}
|
|
2016
2042
|
function keyBuilder$1(luvio, params) {
|
|
2017
|
-
return keyPrefix + '::ExperienceModelTypesCollectionRepresentation:(' + 'language:' + params.body.language + '::' + '[' + params.body.typeConfigs.map(element => { var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k; 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)) + '::' + (((_f = (_e = element.schemaConfig) === null || _e === void 0 ? void 0 : _e.filterConfig) === null || _f === void 0 ? void 0 : _f.propertyNames) === undefined ? 'typeConfigs.schemaConfig.filterConfig.propertyNames' : 'typeConfigs.schemaConfig.filterConfig.propertyNames:' + ((_h = (_g = element.schemaConfig) === null || _g === void 0 ? void 0 : _g.filterConfig) === null || _h === void 0 ? void 0 : _h.propertyNames)) + '::' + (((_j = element.schemaConfig) === null || _j === void 0 ? void 0 : _j.subSchemaDefinitions) === undefined ? 'typeConfigs.schemaConfig.subSchemaDefinitions' : 'typeConfigs.schemaConfig.subSchemaDefinitions:' + ((_k = element.schemaConfig) === null || _k === void 0 ? void 0 : _k.subSchemaDefinitions)) + '::' + (element.sourceDescriptor === undefined ? 'typeConfigs.sourceDescriptor' : 'typeConfigs.sourceDescriptor:' + element.sourceDescriptor); }).join(',') + ']' + ')';
|
|
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.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)) + '::' + (((_f = (_e = element.schemaConfig) === null || _e === void 0 ? void 0 : _e.filterConfig) === null || _f === void 0 ? void 0 : _f.propertyNames) === undefined ? 'typeConfigs.schemaConfig.filterConfig.propertyNames' : 'typeConfigs.schemaConfig.filterConfig.propertyNames:' + ((_h = (_g = element.schemaConfig) === null || _g === void 0 ? void 0 : _g.filterConfig) === null || _h === void 0 ? void 0 : _h.propertyNames)) + '::' + (((_j = element.schemaConfig) === null || _j === void 0 ? void 0 : _j.subSchemaDefinitions) === undefined ? 'typeConfigs.schemaConfig.subSchemaDefinitions' : 'typeConfigs.schemaConfig.subSchemaDefinitions:' + ((_k = element.schemaConfig) === null || _k === void 0 ? void 0 : _k.subSchemaDefinitions)) + '::' + (((_l = element.sourceDescriptor) === null || _l === void 0 ? void 0 : _l.descriptor) === undefined ? 'typeConfigs.sourceDescriptor.descriptor' : 'typeConfigs.sourceDescriptor.descriptor:' + ((_m = element.sourceDescriptor) === null || _m === void 0 ? void 0 : _m.descriptor)) + '::' + (((_o = element.sourceDescriptor) === null || _o === void 0 ? void 0 : _o.propertyName) === undefined ? 'typeConfigs.sourceDescriptor.propertyName' : 'typeConfigs.sourceDescriptor.propertyName:' + ((_p = element.sourceDescriptor) === null || _p === void 0 ? void 0 : _p.propertyName)); }).join(',') + ']' + ')';
|
|
2018
2044
|
}
|
|
2019
2045
|
function getResponseCacheKeys(storeKeyMap, luvio, resourceParams, response) {
|
|
2020
2046
|
getTypeCacheKeys(storeKeyMap, luvio, response, () => keyBuilder$1(luvio, resourceParams));
|
|
@@ -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 = "f701ec743f0ab9aff8e064d2dd297cfe";
|
|
3
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
4
|
+
export declare const RepresentationType: string;
|
|
5
|
+
export declare function normalize(input: ExperienceModelSourceDescriptorInputRepresentation, existing: ExperienceModelSourceDescriptorInputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ExperienceModelSourceDescriptorInputRepresentationNormalized;
|
|
6
|
+
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
7
|
+
export declare function equals(existing: ExperienceModelSourceDescriptorInputRepresentationNormalized, incoming: ExperienceModelSourceDescriptorInputRepresentationNormalized): 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: ExperienceModelSourceDescriptorInputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
10
|
+
/**
|
|
11
|
+
* Input Representation for Experience Model source descriptor
|
|
12
|
+
*
|
|
13
|
+
* Keys:
|
|
14
|
+
* (none)
|
|
15
|
+
*/
|
|
16
|
+
export interface ExperienceModelSourceDescriptorInputRepresentationNormalized {
|
|
17
|
+
/** Source descriptor */
|
|
18
|
+
descriptor?: string;
|
|
19
|
+
/** Property name filter for source descriptor */
|
|
20
|
+
propertyName?: string;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Input Representation for Experience Model source descriptor
|
|
24
|
+
*
|
|
25
|
+
* Keys:
|
|
26
|
+
* (none)
|
|
27
|
+
*/
|
|
28
|
+
export interface ExperienceModelSourceDescriptorInputRepresentation {
|
|
29
|
+
descriptor?: string;
|
|
30
|
+
propertyName?: string;
|
|
31
|
+
}
|
package/dist/es/es2018/types/src/generated/types/ExperienceModelTypesConfigInputRepresentation.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { ExperienceModelDesignConfigInputRepresentation as ExperienceModelDesignConfigInputRepresentation_ExperienceModelDesignConfigInputRepresentation } from './ExperienceModelDesignConfigInputRepresentation';
|
|
2
2
|
import { ExperienceModelRenditionConfigInputRepresentation as ExperienceModelRenditionConfigInputRepresentation_ExperienceModelRenditionConfigInputRepresentation } from './ExperienceModelRenditionConfigInputRepresentation';
|
|
3
3
|
import { ExperienceModelSchemaConfigInputRepresentation as ExperienceModelSchemaConfigInputRepresentation_ExperienceModelSchemaConfigInputRepresentation } from './ExperienceModelSchemaConfigInputRepresentation';
|
|
4
|
+
import { ExperienceModelSourceDescriptorInputRepresentation as ExperienceModelSourceDescriptorInputRepresentation_ExperienceModelSourceDescriptorInputRepresentation } from './ExperienceModelSourceDescriptorInputRepresentation';
|
|
4
5
|
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';
|
|
5
|
-
export declare const VERSION = "
|
|
6
|
+
export declare const VERSION = "24eb6c42e7e3e3ce65c564e44ffd3c3f";
|
|
6
7
|
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
7
8
|
export declare const RepresentationType: string;
|
|
8
9
|
export declare function normalize(input: ExperienceModelTypesConfigInputRepresentation, existing: ExperienceModelTypesConfigInputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ExperienceModelTypesConfigInputRepresentationNormalized;
|
|
@@ -26,7 +27,7 @@ export interface ExperienceModelTypesConfigInputRepresentationNormalized {
|
|
|
26
27
|
/** The schema config. */
|
|
27
28
|
schemaConfig?: ExperienceModelSchemaConfigInputRepresentation_ExperienceModelSchemaConfigInputRepresentation;
|
|
28
29
|
/** The source descriptor. */
|
|
29
|
-
sourceDescriptor?:
|
|
30
|
+
sourceDescriptor?: ExperienceModelSourceDescriptorInputRepresentation_ExperienceModelSourceDescriptorInputRepresentation;
|
|
30
31
|
}
|
|
31
32
|
/**
|
|
32
33
|
* Input Representation for Experience Model types configuration
|
|
@@ -39,5 +40,5 @@ export interface ExperienceModelTypesConfigInputRepresentation {
|
|
|
39
40
|
designConfig?: ExperienceModelDesignConfigInputRepresentation_ExperienceModelDesignConfigInputRepresentation;
|
|
40
41
|
renditionConfig?: ExperienceModelRenditionConfigInputRepresentation_ExperienceModelRenditionConfigInputRepresentation;
|
|
41
42
|
schemaConfig?: ExperienceModelSchemaConfigInputRepresentation_ExperienceModelSchemaConfigInputRepresentation;
|
|
42
|
-
sourceDescriptor?:
|
|
43
|
+
sourceDescriptor?: ExperienceModelSourceDescriptorInputRepresentation_ExperienceModelSourceDescriptorInputRepresentation;
|
|
43
44
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ExperienceModelTypesErrorRepresentation as ExperienceModelTypesErrorRepresentation_ExperienceModelTypesErrorRepresentation } from './ExperienceModelTypesErrorRepresentation';
|
|
2
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';
|
|
3
3
|
export declare const TTL = 3600000;
|
|
4
|
-
export declare const VERSION = "
|
|
4
|
+
export declare const VERSION = "e3ea31fe5aa66480e72bc9919fb21b76";
|
|
5
5
|
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
6
6
|
export declare const RepresentationType: string;
|
|
7
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;
|
|
@@ -36,7 +36,7 @@ export interface ExperienceModelTypesRepresentationNormalized {
|
|
|
36
36
|
/** The JSON Schema definition (schema.json) of the Type */
|
|
37
37
|
schema?: {};
|
|
38
38
|
/** The source descriptor of the Type that was given in query params. */
|
|
39
|
-
sourceDescriptor?:
|
|
39
|
+
sourceDescriptor?: {};
|
|
40
40
|
/** The title of the Type that was given in its schema.json. */
|
|
41
41
|
title?: string;
|
|
42
42
|
}
|
|
@@ -57,6 +57,6 @@ export interface ExperienceModelTypesRepresentation {
|
|
|
57
57
|
namespacePrefix: string;
|
|
58
58
|
renditionConfig?: {};
|
|
59
59
|
schema?: {};
|
|
60
|
-
sourceDescriptor?:
|
|
60
|
+
sourceDescriptor?: {};
|
|
61
61
|
title?: string;
|
|
62
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.276.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.276.0"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
|
-
"@salesforce/lds-compiler-plugins": "^1.
|
|
51
|
-
"@salesforce/lds-karma": "^1.
|
|
50
|
+
"@salesforce/lds-compiler-plugins": "^1.276.0",
|
|
51
|
+
"@salesforce/lds-karma": "^1.276.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$h(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$h(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$g(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$f(obj, path = 'ExperienceModelBlockTypeSummaryRepresentation')
|
|
|
418
418
|
|
|
419
419
|
const TTL$5 = 3600000;
|
|
420
420
|
const VERSION$5 = "c4cd880e972cdf9faaa6db963fe35b31";
|
|
421
|
-
function validate$
|
|
421
|
+
function validate$f(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$e(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$g(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$f(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$e(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$e(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$d(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$c(obj, path = 'ExperienceModelContentTypeSummaryRepresentation
|
|
|
953
953
|
|
|
954
954
|
const TTL$3 = 3600000;
|
|
955
955
|
const VERSION$3 = "30f1f19149230f10ac9197e0d9769c88";
|
|
956
|
-
function validate$
|
|
956
|
+
function validate$c(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$b(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$d(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$c(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$b(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$b(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$a(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$9(obj, path = 'ExperienceModelPropertyTypeSummaryRepresentatio
|
|
|
1486
1486
|
|
|
1487
1487
|
const TTL$1 = 3600000;
|
|
1488
1488
|
const VERSION$1 = "172e544645942d550fc1f07812bb85b6";
|
|
1489
|
-
function validate$
|
|
1489
|
+
function validate$9(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$8(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$a(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$9(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$8(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$7(obj, path = 'ExperienceModelDesignConfigInputRepresentation'
|
|
|
1734
1734
|
return v_error === undefined ? null : v_error;
|
|
1735
1735
|
}
|
|
1736
1736
|
|
|
1737
|
-
function validate$
|
|
1737
|
+
function validate$7(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,7 +1750,7 @@ function validate$6(obj, path = 'ExperienceModelRenditionConfigInputRepresentati
|
|
|
1750
1750
|
return v_error === undefined ? null : v_error;
|
|
1751
1751
|
}
|
|
1752
1752
|
|
|
1753
|
-
function validate$
|
|
1753
|
+
function validate$6(obj, path = 'ExperienceModelFilterConfigInputRepresentation') {
|
|
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 + '")');
|
|
@@ -1771,7 +1771,7 @@ function validate$5(obj, path = 'ExperienceModelFilterConfigInputRepresentation'
|
|
|
1771
1771
|
return v_error === undefined ? null : v_error;
|
|
1772
1772
|
}
|
|
1773
1773
|
|
|
1774
|
-
function validate$
|
|
1774
|
+
function validate$5(obj, path = 'ExperienceModelSchemaConfigInputRepresentation') {
|
|
1775
1775
|
const v_error = (() => {
|
|
1776
1776
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1777
1777
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1779,7 +1779,7 @@ function validate$4(obj, path = 'ExperienceModelSchemaConfigInputRepresentation'
|
|
|
1779
1779
|
if (obj.filterConfig !== undefined) {
|
|
1780
1780
|
const obj_filterConfig = obj.filterConfig;
|
|
1781
1781
|
const path_filterConfig = path + '.filterConfig';
|
|
1782
|
-
const referencepath_filterConfigValidationError = validate$
|
|
1782
|
+
const referencepath_filterConfigValidationError = validate$6(obj_filterConfig, path_filterConfig);
|
|
1783
1783
|
if (referencepath_filterConfigValidationError !== null) {
|
|
1784
1784
|
let message = 'Object doesn\'t match ExperienceModelFilterConfigInputRepresentation (at "' + path_filterConfig + '")\n';
|
|
1785
1785
|
message += referencepath_filterConfigValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1797,6 +1797,29 @@ function validate$4(obj, path = 'ExperienceModelSchemaConfigInputRepresentation'
|
|
|
1797
1797
|
return v_error === undefined ? null : v_error;
|
|
1798
1798
|
}
|
|
1799
1799
|
|
|
1800
|
+
function validate$4(obj, path = 'ExperienceModelSourceDescriptorInputRepresentation') {
|
|
1801
|
+
const v_error = (() => {
|
|
1802
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1803
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1804
|
+
}
|
|
1805
|
+
if (obj.descriptor !== undefined) {
|
|
1806
|
+
const obj_descriptor = obj.descriptor;
|
|
1807
|
+
const path_descriptor = path + '.descriptor';
|
|
1808
|
+
if (typeof obj_descriptor !== 'string') {
|
|
1809
|
+
return new TypeError('Expected "string" but received "' + typeof obj_descriptor + '" (at "' + path_descriptor + '")');
|
|
1810
|
+
}
|
|
1811
|
+
}
|
|
1812
|
+
if (obj.propertyName !== undefined) {
|
|
1813
|
+
const obj_propertyName = obj.propertyName;
|
|
1814
|
+
const path_propertyName = path + '.propertyName';
|
|
1815
|
+
if (typeof obj_propertyName !== 'string') {
|
|
1816
|
+
return new TypeError('Expected "string" but received "' + typeof obj_propertyName + '" (at "' + path_propertyName + '")');
|
|
1817
|
+
}
|
|
1818
|
+
}
|
|
1819
|
+
})();
|
|
1820
|
+
return v_error === undefined ? null : v_error;
|
|
1821
|
+
}
|
|
1822
|
+
|
|
1800
1823
|
function validate$3(obj, path = 'ExperienceModelTypesConfigInputRepresentation') {
|
|
1801
1824
|
const v_error = (() => {
|
|
1802
1825
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -1810,7 +1833,7 @@ function validate$3(obj, path = 'ExperienceModelTypesConfigInputRepresentation')
|
|
|
1810
1833
|
if (obj.designConfig !== undefined) {
|
|
1811
1834
|
const obj_designConfig = obj.designConfig;
|
|
1812
1835
|
const path_designConfig = path + '.designConfig';
|
|
1813
|
-
const referencepath_designConfigValidationError = validate$
|
|
1836
|
+
const referencepath_designConfigValidationError = validate$8(obj_designConfig, path_designConfig);
|
|
1814
1837
|
if (referencepath_designConfigValidationError !== null) {
|
|
1815
1838
|
let message = 'Object doesn\'t match ExperienceModelDesignConfigInputRepresentation (at "' + path_designConfig + '")\n';
|
|
1816
1839
|
message += referencepath_designConfigValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1820,7 +1843,7 @@ function validate$3(obj, path = 'ExperienceModelTypesConfigInputRepresentation')
|
|
|
1820
1843
|
if (obj.renditionConfig !== undefined) {
|
|
1821
1844
|
const obj_renditionConfig = obj.renditionConfig;
|
|
1822
1845
|
const path_renditionConfig = path + '.renditionConfig';
|
|
1823
|
-
const referencepath_renditionConfigValidationError = validate$
|
|
1846
|
+
const referencepath_renditionConfigValidationError = validate$7(obj_renditionConfig, path_renditionConfig);
|
|
1824
1847
|
if (referencepath_renditionConfigValidationError !== null) {
|
|
1825
1848
|
let message = 'Object doesn\'t match ExperienceModelRenditionConfigInputRepresentation (at "' + path_renditionConfig + '")\n';
|
|
1826
1849
|
message += referencepath_renditionConfigValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1830,7 +1853,7 @@ function validate$3(obj, path = 'ExperienceModelTypesConfigInputRepresentation')
|
|
|
1830
1853
|
if (obj.schemaConfig !== undefined) {
|
|
1831
1854
|
const obj_schemaConfig = obj.schemaConfig;
|
|
1832
1855
|
const path_schemaConfig = path + '.schemaConfig';
|
|
1833
|
-
const referencepath_schemaConfigValidationError = validate$
|
|
1856
|
+
const referencepath_schemaConfigValidationError = validate$5(obj_schemaConfig, path_schemaConfig);
|
|
1834
1857
|
if (referencepath_schemaConfigValidationError !== null) {
|
|
1835
1858
|
let message = 'Object doesn\'t match ExperienceModelSchemaConfigInputRepresentation (at "' + path_schemaConfig + '")\n';
|
|
1836
1859
|
message += referencepath_schemaConfigValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1840,8 +1863,11 @@ function validate$3(obj, path = 'ExperienceModelTypesConfigInputRepresentation')
|
|
|
1840
1863
|
if (obj.sourceDescriptor !== undefined) {
|
|
1841
1864
|
const obj_sourceDescriptor = obj.sourceDescriptor;
|
|
1842
1865
|
const path_sourceDescriptor = path + '.sourceDescriptor';
|
|
1843
|
-
|
|
1844
|
-
|
|
1866
|
+
const referencepath_sourceDescriptorValidationError = validate$4(obj_sourceDescriptor, path_sourceDescriptor);
|
|
1867
|
+
if (referencepath_sourceDescriptorValidationError !== null) {
|
|
1868
|
+
let message = 'Object doesn\'t match ExperienceModelSourceDescriptorInputRepresentation (at "' + path_sourceDescriptor + '")\n';
|
|
1869
|
+
message += referencepath_sourceDescriptorValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
1870
|
+
return new TypeError(message);
|
|
1845
1871
|
}
|
|
1846
1872
|
}
|
|
1847
1873
|
})();
|
|
@@ -1940,8 +1966,8 @@ function validate$1(obj, path = 'ExperienceModelTypesRepresentation') {
|
|
|
1940
1966
|
if (obj.sourceDescriptor !== undefined) {
|
|
1941
1967
|
const obj_sourceDescriptor = obj.sourceDescriptor;
|
|
1942
1968
|
const path_sourceDescriptor = path + '.sourceDescriptor';
|
|
1943
|
-
if (typeof obj_sourceDescriptor !== '
|
|
1944
|
-
return new TypeError('Expected "
|
|
1969
|
+
if (typeof obj_sourceDescriptor !== 'object' || ArrayIsArray(obj_sourceDescriptor) || obj_sourceDescriptor === null) {
|
|
1970
|
+
return new TypeError('Expected "object" but received "' + typeof obj_sourceDescriptor + '" (at "' + path_sourceDescriptor + '")');
|
|
1945
1971
|
}
|
|
1946
1972
|
}
|
|
1947
1973
|
if (obj.title !== undefined) {
|
|
@@ -2024,7 +2050,7 @@ function select(luvio, params) {
|
|
|
2024
2050
|
return select$1();
|
|
2025
2051
|
}
|
|
2026
2052
|
function keyBuilder$1(luvio, params) {
|
|
2027
|
-
return keyPrefix + '::ExperienceModelTypesCollectionRepresentation:(' + 'language:' + params.body.language + '::' + '[' + params.body.typeConfigs.map(element => { var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k; 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)) + '::' + (((_f = (_e = element.schemaConfig) === null || _e === void 0 ? void 0 : _e.filterConfig) === null || _f === void 0 ? void 0 : _f.propertyNames) === undefined ? 'typeConfigs.schemaConfig.filterConfig.propertyNames' : 'typeConfigs.schemaConfig.filterConfig.propertyNames:' + ((_h = (_g = element.schemaConfig) === null || _g === void 0 ? void 0 : _g.filterConfig) === null || _h === void 0 ? void 0 : _h.propertyNames)) + '::' + (((_j = element.schemaConfig) === null || _j === void 0 ? void 0 : _j.subSchemaDefinitions) === undefined ? 'typeConfigs.schemaConfig.subSchemaDefinitions' : 'typeConfigs.schemaConfig.subSchemaDefinitions:' + ((_k = element.schemaConfig) === null || _k === void 0 ? void 0 : _k.subSchemaDefinitions)) + '::' + (element.sourceDescriptor === undefined ? 'typeConfigs.sourceDescriptor' : 'typeConfigs.sourceDescriptor:' + element.sourceDescriptor); }).join(',') + ']' + ')';
|
|
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.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)) + '::' + (((_f = (_e = element.schemaConfig) === null || _e === void 0 ? void 0 : _e.filterConfig) === null || _f === void 0 ? void 0 : _f.propertyNames) === undefined ? 'typeConfigs.schemaConfig.filterConfig.propertyNames' : 'typeConfigs.schemaConfig.filterConfig.propertyNames:' + ((_h = (_g = element.schemaConfig) === null || _g === void 0 ? void 0 : _g.filterConfig) === null || _h === void 0 ? void 0 : _h.propertyNames)) + '::' + (((_j = element.schemaConfig) === null || _j === void 0 ? void 0 : _j.subSchemaDefinitions) === undefined ? 'typeConfigs.schemaConfig.subSchemaDefinitions' : 'typeConfigs.schemaConfig.subSchemaDefinitions:' + ((_k = element.schemaConfig) === null || _k === void 0 ? void 0 : _k.subSchemaDefinitions)) + '::' + (((_l = element.sourceDescriptor) === null || _l === void 0 ? void 0 : _l.descriptor) === undefined ? 'typeConfigs.sourceDescriptor.descriptor' : 'typeConfigs.sourceDescriptor.descriptor:' + ((_m = element.sourceDescriptor) === null || _m === void 0 ? void 0 : _m.descriptor)) + '::' + (((_o = element.sourceDescriptor) === null || _o === void 0 ? void 0 : _o.propertyName) === undefined ? 'typeConfigs.sourceDescriptor.propertyName' : 'typeConfigs.sourceDescriptor.propertyName:' + ((_p = element.sourceDescriptor) === null || _p === void 0 ? void 0 : _p.propertyName)); }).join(',') + ']' + ')';
|
|
2028
2054
|
}
|
|
2029
2055
|
function getResponseCacheKeys(storeKeyMap, luvio, resourceParams, response) {
|
|
2030
2056
|
getTypeCacheKeys(storeKeyMap, luvio, response, () => keyBuilder$1(luvio, resourceParams));
|
|
@@ -2259,4 +2285,4 @@ withDefaultLuvio((luvio) => {
|
|
|
2259
2285
|
});
|
|
2260
2286
|
|
|
2261
2287
|
export { getBlockType, getBlockType_imperative, getBlockTypes, getBlockTypes_imperative, getContentType, getContentType_imperative, getContentTypes, getContentTypes_imperative, getPropertyType, getPropertyType_imperative, getPropertyTypes, getPropertyTypes_imperative, getTypes, getTypes_imperative };
|
|
2262
|
-
// version: 1.
|
|
2288
|
+
// version: 1.276.0-58fd72593
|
package/src/raml/api.raml
CHANGED
|
@@ -411,7 +411,7 @@ types:
|
|
|
411
411
|
required: false # TODO waiting on W-8253396s
|
|
412
412
|
sourceDescriptor:
|
|
413
413
|
description: The source descriptor of the Type that was given in query params.
|
|
414
|
-
type:
|
|
414
|
+
type: object
|
|
415
415
|
required: false # TODO waiting on W-8253396s
|
|
416
416
|
ExperienceModelSchemaConfigInputRepresentation:
|
|
417
417
|
type: object
|
|
@@ -425,6 +425,18 @@ types:
|
|
|
425
425
|
description: Boolean property if sub-schema should be included
|
|
426
426
|
type: boolean
|
|
427
427
|
required: false # TODO waiting on W-8253396
|
|
428
|
+
ExperienceModelSourceDescriptorInputRepresentation:
|
|
429
|
+
type: object
|
|
430
|
+
description: Input Representation for Experience Model source descriptor
|
|
431
|
+
properties:
|
|
432
|
+
descriptor:
|
|
433
|
+
description: Source descriptor
|
|
434
|
+
type: string
|
|
435
|
+
required: false # TODO waiting on W-8253396
|
|
436
|
+
propertyName:
|
|
437
|
+
description: Property name filter for source descriptor
|
|
438
|
+
type: string
|
|
439
|
+
required: false # TODO waiting on W-8253396
|
|
428
440
|
ExperienceModelRenditionConfigInputRepresentation:
|
|
429
441
|
type: object
|
|
430
442
|
description: Input Representation for Experience Model type rendition configuration
|
|
@@ -483,7 +495,7 @@ types:
|
|
|
483
495
|
required: false # TODO waiting on W-8253396
|
|
484
496
|
sourceDescriptor:
|
|
485
497
|
description: The source descriptor.
|
|
486
|
-
type:
|
|
498
|
+
type: ExperienceModelSourceDescriptorInputRepresentation
|
|
487
499
|
required: false # TODO waiting on W-8253396
|
|
488
500
|
ExperienceModelTypesInputRepresentation:
|
|
489
501
|
type: object
|
package/src/raml/luvio.raml
CHANGED