@salesforce/lds-adapters-cms-authoring 1.175.0 → 1.177.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/cms-authoring.js +255 -98
- package/dist/es/es2018/types/src/generated/types/ManagedContentDocumentRepresentation.d.ts +5 -1
- package/dist/es/es2018/types/src/generated/types/ManagedContentSpaceBaseTypeRepresentation.d.ts +28 -0
- package/dist/es/es2018/types/src/generated/types/ManagedContentSpaceRepresentation.d.ts +5 -1
- package/dist/es/es2018/types/src/generated/types/WebPagePublicationChannelRepresentation.d.ts +34 -0
- package/dist/es/es2018/types/src/generated/types/WebPagePublicationRepresentation.d.ts +32 -0
- package/package.json +1 -1
- package/sfdc/index.js +234 -77
- package/src/raml/api.raml +42 -0
|
@@ -72,7 +72,7 @@ function createLink(ref) {
|
|
|
72
72
|
};
|
|
73
73
|
}
|
|
74
74
|
|
|
75
|
-
function validate$
|
|
75
|
+
function validate$M(obj, path = 'ManagedContentDeploymentItemRepresentation') {
|
|
76
76
|
const v_error = (() => {
|
|
77
77
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
78
78
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -129,7 +129,7 @@ function validate$J(obj, path = 'ManagedContentDeploymentItemRepresentation') {
|
|
|
129
129
|
|
|
130
130
|
const TTL$j = 1000;
|
|
131
131
|
const VERSION$l = "ca653daea9600118e6167b9b4ff4d07c";
|
|
132
|
-
function validate$
|
|
132
|
+
function validate$L(obj, path = 'ManagedContentDeploymentRepresentation') {
|
|
133
133
|
const v_error = (() => {
|
|
134
134
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
135
135
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -199,7 +199,7 @@ function validate$I(obj, path = 'ManagedContentDeploymentRepresentation') {
|
|
|
199
199
|
for (let i = 0; i < obj_deploymentItems.length; i++) {
|
|
200
200
|
const obj_deploymentItems_item = obj_deploymentItems[i];
|
|
201
201
|
const path_deploymentItems_item = path_deploymentItems + '[' + i + ']';
|
|
202
|
-
const referencepath_deploymentItems_itemValidationError = validate$
|
|
202
|
+
const referencepath_deploymentItems_itemValidationError = validate$M(obj_deploymentItems_item, path_deploymentItems_item);
|
|
203
203
|
if (referencepath_deploymentItems_itemValidationError !== null) {
|
|
204
204
|
let message = 'Object doesn\'t match ManagedContentDeploymentItemRepresentation (at "' + path_deploymentItems_item + '")\n';
|
|
205
205
|
message += referencepath_deploymentItems_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -342,7 +342,7 @@ function equals$l(existing, incoming) {
|
|
|
342
342
|
}
|
|
343
343
|
const ingest$j = function ManagedContentDeploymentRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
344
344
|
if (process.env.NODE_ENV !== 'production') {
|
|
345
|
-
const validateError = validate$
|
|
345
|
+
const validateError = validate$L(input);
|
|
346
346
|
if (validateError !== null) {
|
|
347
347
|
throw validateError;
|
|
348
348
|
}
|
|
@@ -382,7 +382,7 @@ function getTypeCacheKeys$j(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
382
382
|
|
|
383
383
|
const TTL$i = 100;
|
|
384
384
|
const VERSION$k = "b2c15aa80814ecd854e68bf635879e35";
|
|
385
|
-
function validate$
|
|
385
|
+
function validate$K(obj, path = 'ManagedContentDeploymentCollectionRepresentation') {
|
|
386
386
|
const v_error = (() => {
|
|
387
387
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
388
388
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -536,7 +536,7 @@ function equals$k(existing, incoming) {
|
|
|
536
536
|
}
|
|
537
537
|
const ingest$i = function ManagedContentDeploymentCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
538
538
|
if (process.env.NODE_ENV !== 'production') {
|
|
539
|
-
const validateError = validate$
|
|
539
|
+
const validateError = validate$K(input);
|
|
540
540
|
if (validateError !== null) {
|
|
541
541
|
throw validateError;
|
|
542
542
|
}
|
|
@@ -766,7 +766,7 @@ const getDeploymentByIdAdapterFactory = (luvio) => function CMSAuthoring__getDep
|
|
|
766
766
|
buildCachedSnapshotCachePolicy$e, buildNetworkSnapshotCachePolicy$e);
|
|
767
767
|
};
|
|
768
768
|
|
|
769
|
-
function validate$
|
|
769
|
+
function validate$J(obj, path = 'ManagedContentDeploymentInputRepresentation') {
|
|
770
770
|
const v_error = (() => {
|
|
771
771
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
772
772
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -905,7 +905,7 @@ function createResourceParams$o(config) {
|
|
|
905
905
|
function typeCheckConfig$o(untrustedConfig) {
|
|
906
906
|
const config = {};
|
|
907
907
|
const untrustedConfig_DeploymentInput = untrustedConfig.DeploymentInput;
|
|
908
|
-
const referenceManagedContentDeploymentInputRepresentationValidationError = validate$
|
|
908
|
+
const referenceManagedContentDeploymentInputRepresentationValidationError = validate$J(untrustedConfig_DeploymentInput);
|
|
909
909
|
if (referenceManagedContentDeploymentInputRepresentationValidationError === null) {
|
|
910
910
|
config.DeploymentInput = untrustedConfig_DeploymentInput;
|
|
911
911
|
}
|
|
@@ -953,7 +953,7 @@ const createDeploymentAdapterFactory = (luvio) => {
|
|
|
953
953
|
};
|
|
954
954
|
};
|
|
955
955
|
|
|
956
|
-
function validate$
|
|
956
|
+
function validate$I(obj, path = 'ManagedContentSpaceFolderItemV1Representation') {
|
|
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 + '")');
|
|
@@ -1043,7 +1043,7 @@ function validate$F(obj, path = 'ManagedContentSpaceFolderItemV1Representation')
|
|
|
1043
1043
|
|
|
1044
1044
|
const TTL$h = 100;
|
|
1045
1045
|
const VERSION$j = "df1370994ae2e57cdebc5f5125930e2d";
|
|
1046
|
-
function validate$
|
|
1046
|
+
function validate$H(obj, path = 'ManagedContentSpaceFolderItemV1CollectionRepresentation') {
|
|
1047
1047
|
const v_error = (() => {
|
|
1048
1048
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1049
1049
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1061,7 +1061,7 @@ function validate$E(obj, path = 'ManagedContentSpaceFolderItemV1CollectionRepres
|
|
|
1061
1061
|
for (let i = 0; i < obj_folderItems.length; i++) {
|
|
1062
1062
|
const obj_folderItems_item = obj_folderItems[i];
|
|
1063
1063
|
const path_folderItems_item = path_folderItems + '[' + i + ']';
|
|
1064
|
-
const referencepath_folderItems_itemValidationError = validate$
|
|
1064
|
+
const referencepath_folderItems_itemValidationError = validate$I(obj_folderItems_item, path_folderItems_item);
|
|
1065
1065
|
if (referencepath_folderItems_itemValidationError !== null) {
|
|
1066
1066
|
let message = 'Object doesn\'t match ManagedContentSpaceFolderItemV1Representation (at "' + path_folderItems_item + '")\n';
|
|
1067
1067
|
message += referencepath_folderItems_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1117,7 +1117,7 @@ function equals$j(existing, incoming) {
|
|
|
1117
1117
|
}
|
|
1118
1118
|
const ingest$h = function ManagedContentSpaceFolderItemV1CollectionRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1119
1119
|
if (process.env.NODE_ENV !== 'production') {
|
|
1120
|
-
const validateError = validate$
|
|
1120
|
+
const validateError = validate$H(input);
|
|
1121
1121
|
if (validateError !== null) {
|
|
1122
1122
|
throw validateError;
|
|
1123
1123
|
}
|
|
@@ -1370,7 +1370,7 @@ const getManagedContentSpaceFolderItemsV1AdapterFactory = (luvio) => function CM
|
|
|
1370
1370
|
};
|
|
1371
1371
|
|
|
1372
1372
|
const VERSION$i = "7297fb0dbfe8f664d76179a65037c290";
|
|
1373
|
-
function validate$
|
|
1373
|
+
function validate$G(obj, path = 'ManagedContentTypeSummaryRepresentation') {
|
|
1374
1374
|
const v_error = (() => {
|
|
1375
1375
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1376
1376
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1430,7 +1430,7 @@ function equals$i(existing, incoming) {
|
|
|
1430
1430
|
return true;
|
|
1431
1431
|
}
|
|
1432
1432
|
|
|
1433
|
-
function validate$
|
|
1433
|
+
function validate$F(obj, path = 'ManagedContentCollectionItemTypeSummaryRepresentation') {
|
|
1434
1434
|
const v_error = (() => {
|
|
1435
1435
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1436
1436
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1449,7 +1449,7 @@ function validate$C(obj, path = 'ManagedContentCollectionItemTypeSummaryRepresen
|
|
|
1449
1449
|
return v_error === undefined ? null : v_error;
|
|
1450
1450
|
}
|
|
1451
1451
|
|
|
1452
|
-
function validate$
|
|
1452
|
+
function validate$E(obj, path = 'ManagedContentCollectionItemRepresentation') {
|
|
1453
1453
|
const v_error = (() => {
|
|
1454
1454
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1455
1455
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1470,7 +1470,7 @@ function validate$B(obj, path = 'ManagedContentCollectionItemRepresentation') {
|
|
|
1470
1470
|
}
|
|
1471
1471
|
const obj_contentType = obj.contentType;
|
|
1472
1472
|
const path_contentType = path + '.contentType';
|
|
1473
|
-
const referencepath_contentTypeValidationError = validate$
|
|
1473
|
+
const referencepath_contentTypeValidationError = validate$F(obj_contentType, path_contentType);
|
|
1474
1474
|
if (referencepath_contentTypeValidationError !== null) {
|
|
1475
1475
|
let message = 'Object doesn\'t match ManagedContentCollectionItemTypeSummaryRepresentation (at "' + path_contentType + '")\n';
|
|
1476
1476
|
message += referencepath_contentTypeValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1492,7 +1492,7 @@ function validate$B(obj, path = 'ManagedContentCollectionItemRepresentation') {
|
|
|
1492
1492
|
|
|
1493
1493
|
const TTL$g = 100;
|
|
1494
1494
|
const VERSION$h = "eeea454f1268ece5c3e24c986688b876";
|
|
1495
|
-
function validate$
|
|
1495
|
+
function validate$D(obj, path = 'ManagedContentCollectionDetailRepresentation') {
|
|
1496
1496
|
const v_error = (() => {
|
|
1497
1497
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1498
1498
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1504,7 +1504,7 @@ function validate$A(obj, path = 'ManagedContentCollectionDetailRepresentation')
|
|
|
1504
1504
|
}
|
|
1505
1505
|
const obj_collectionType = obj.collectionType;
|
|
1506
1506
|
const path_collectionType = path + '.collectionType';
|
|
1507
|
-
const referencepath_collectionTypeValidationError = validate$
|
|
1507
|
+
const referencepath_collectionTypeValidationError = validate$G(obj_collectionType, path_collectionType);
|
|
1508
1508
|
if (referencepath_collectionTypeValidationError !== null) {
|
|
1509
1509
|
let message = 'Object doesn\'t match ManagedContentTypeSummaryRepresentation (at "' + path_collectionType + '")\n';
|
|
1510
1510
|
message += referencepath_collectionTypeValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1528,7 +1528,7 @@ function validate$A(obj, path = 'ManagedContentCollectionDetailRepresentation')
|
|
|
1528
1528
|
for (let i = 0; i < obj_items.length; i++) {
|
|
1529
1529
|
const obj_items_item = obj_items[i];
|
|
1530
1530
|
const path_items_item = path_items + '[' + i + ']';
|
|
1531
|
-
const referencepath_items_itemValidationError = validate$
|
|
1531
|
+
const referencepath_items_itemValidationError = validate$E(obj_items_item, path_items_item);
|
|
1532
1532
|
if (referencepath_items_itemValidationError !== null) {
|
|
1533
1533
|
let message = 'Object doesn\'t match ManagedContentCollectionItemRepresentation (at "' + path_items_item + '")\n';
|
|
1534
1534
|
message += referencepath_items_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1594,7 +1594,7 @@ function equals$h(existing, incoming) {
|
|
|
1594
1594
|
}
|
|
1595
1595
|
const ingest$g = function ManagedContentCollectionDetailRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1596
1596
|
if (process.env.NODE_ENV !== 'production') {
|
|
1597
|
-
const validateError = validate$
|
|
1597
|
+
const validateError = validate$D(input);
|
|
1598
1598
|
if (validateError !== null) {
|
|
1599
1599
|
throw validateError;
|
|
1600
1600
|
}
|
|
@@ -1826,7 +1826,7 @@ const getCollectionItemsAdapterFactory = (luvio) => function CMSAuthoring__getCo
|
|
|
1826
1826
|
buildCachedSnapshotCachePolicy$c, buildNetworkSnapshotCachePolicy$c);
|
|
1827
1827
|
};
|
|
1828
1828
|
|
|
1829
|
-
function validate$
|
|
1829
|
+
function validate$C(obj, path = 'ManagedContentTranslationV2RequestInputRep') {
|
|
1830
1830
|
const v_error = (() => {
|
|
1831
1831
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1832
1832
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1898,7 +1898,7 @@ function validate$z(obj, path = 'ManagedContentTranslationV2RequestInputRep') {
|
|
|
1898
1898
|
|
|
1899
1899
|
const TTL$f = 100;
|
|
1900
1900
|
const VERSION$g = "52e643b998d6763482c6d74542b38408";
|
|
1901
|
-
function validate$
|
|
1901
|
+
function validate$B(obj, path = 'ManagedContentTranslationV2Representation') {
|
|
1902
1902
|
const v_error = (() => {
|
|
1903
1903
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1904
1904
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2084,7 +2084,7 @@ function equals$g(existing, incoming) {
|
|
|
2084
2084
|
}
|
|
2085
2085
|
const ingest$f = function ManagedContentTranslationV2RepresentationIngest(input, path, luvio, store, timestamp) {
|
|
2086
2086
|
if (process.env.NODE_ENV !== 'production') {
|
|
2087
|
-
const validateError = validate$
|
|
2087
|
+
const validateError = validate$B(input);
|
|
2088
2088
|
if (validateError !== null) {
|
|
2089
2089
|
throw validateError;
|
|
2090
2090
|
}
|
|
@@ -2184,7 +2184,7 @@ function typeCheckConfig$l(untrustedConfig) {
|
|
|
2184
2184
|
config.contentSpaceId = untrustedConfig_contentSpaceId;
|
|
2185
2185
|
}
|
|
2186
2186
|
const untrustedConfig_translationV2Request = untrustedConfig.translationV2Request;
|
|
2187
|
-
const referenceManagedContentTranslationV2RequestInputRepValidationError = validate$
|
|
2187
|
+
const referenceManagedContentTranslationV2RequestInputRepValidationError = validate$C(untrustedConfig_translationV2Request);
|
|
2188
2188
|
if (referenceManagedContentTranslationV2RequestInputRepValidationError === null) {
|
|
2189
2189
|
config.translationV2Request = untrustedConfig_translationV2Request;
|
|
2190
2190
|
}
|
|
@@ -2232,7 +2232,7 @@ const createTranslationV2JobAdapterFactory = (luvio) => {
|
|
|
2232
2232
|
};
|
|
2233
2233
|
};
|
|
2234
2234
|
|
|
2235
|
-
function validate$
|
|
2235
|
+
function validate$A(obj, path = 'ManagedContentInputRepresentation') {
|
|
2236
2236
|
const v_error = (() => {
|
|
2237
2237
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2238
2238
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2275,7 +2275,7 @@ function validate$x(obj, path = 'ManagedContentInputRepresentation') {
|
|
|
2275
2275
|
return v_error === undefined ? null : v_error;
|
|
2276
2276
|
}
|
|
2277
2277
|
|
|
2278
|
-
function validate$
|
|
2278
|
+
function validate$z(obj, path = 'ManagedContentSpaceSummaryRepresentation') {
|
|
2279
2279
|
const v_error = (() => {
|
|
2280
2280
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2281
2281
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2294,7 +2294,7 @@ function validate$w(obj, path = 'ManagedContentSpaceSummaryRepresentation') {
|
|
|
2294
2294
|
return v_error === undefined ? null : v_error;
|
|
2295
2295
|
}
|
|
2296
2296
|
|
|
2297
|
-
function validate$
|
|
2297
|
+
function validate$y(obj, path = 'ManagedContentUserSummaryRepresentation') {
|
|
2298
2298
|
const v_error = (() => {
|
|
2299
2299
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2300
2300
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2320,7 +2320,7 @@ function validate$v(obj, path = 'ManagedContentUserSummaryRepresentation') {
|
|
|
2320
2320
|
return v_error === undefined ? null : v_error;
|
|
2321
2321
|
}
|
|
2322
2322
|
|
|
2323
|
-
function validate$
|
|
2323
|
+
function validate$x(obj, path = 'ManagedContentFolderSummaryRepresentation') {
|
|
2324
2324
|
const v_error = (() => {
|
|
2325
2325
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2326
2326
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2339,7 +2339,7 @@ function validate$u(obj, path = 'ManagedContentFolderSummaryRepresentation') {
|
|
|
2339
2339
|
return v_error === undefined ? null : v_error;
|
|
2340
2340
|
}
|
|
2341
2341
|
|
|
2342
|
-
function validate$
|
|
2342
|
+
function validate$w(obj, path = 'ManagedContentVariantStatusRepresentation') {
|
|
2343
2343
|
const v_error = (() => {
|
|
2344
2344
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2345
2345
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2358,9 +2358,69 @@ function validate$t(obj, path = 'ManagedContentVariantStatusRepresentation') {
|
|
|
2358
2358
|
return v_error === undefined ? null : v_error;
|
|
2359
2359
|
}
|
|
2360
2360
|
|
|
2361
|
+
function validate$v(obj, path = 'WebPagePublicationChannelRepresentation') {
|
|
2362
|
+
const v_error = (() => {
|
|
2363
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2364
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
2365
|
+
}
|
|
2366
|
+
const obj_baseUrl = obj.baseUrl;
|
|
2367
|
+
const path_baseUrl = path + '.baseUrl';
|
|
2368
|
+
if (typeof obj_baseUrl !== 'string') {
|
|
2369
|
+
return new TypeError('Expected "string" but received "' + typeof obj_baseUrl + '" (at "' + path_baseUrl + '")');
|
|
2370
|
+
}
|
|
2371
|
+
const obj_domainUrl = obj.domainUrl;
|
|
2372
|
+
const path_domainUrl = path + '.domainUrl';
|
|
2373
|
+
if (typeof obj_domainUrl !== 'string') {
|
|
2374
|
+
return new TypeError('Expected "string" but received "' + typeof obj_domainUrl + '" (at "' + path_domainUrl + '")');
|
|
2375
|
+
}
|
|
2376
|
+
const obj_id = obj.id;
|
|
2377
|
+
const path_id = path + '.id';
|
|
2378
|
+
if (typeof obj_id !== 'string') {
|
|
2379
|
+
return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
|
|
2380
|
+
}
|
|
2381
|
+
})();
|
|
2382
|
+
return v_error === undefined ? null : v_error;
|
|
2383
|
+
}
|
|
2384
|
+
|
|
2385
|
+
function validate$u(obj, path = 'WebPagePublicationRepresentation') {
|
|
2386
|
+
const v_error = (() => {
|
|
2387
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2388
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
2389
|
+
}
|
|
2390
|
+
const obj_channels = obj.channels;
|
|
2391
|
+
const path_channels = path + '.channels';
|
|
2392
|
+
if (!ArrayIsArray(obj_channels)) {
|
|
2393
|
+
return new TypeError('Expected "array" but received "' + typeof obj_channels + '" (at "' + path_channels + '")');
|
|
2394
|
+
}
|
|
2395
|
+
for (let i = 0; i < obj_channels.length; i++) {
|
|
2396
|
+
const obj_channels_item = obj_channels[i];
|
|
2397
|
+
const path_channels_item = path_channels + '[' + i + ']';
|
|
2398
|
+
const referencepath_channels_itemValidationError = validate$v(obj_channels_item, path_channels_item);
|
|
2399
|
+
if (referencepath_channels_itemValidationError !== null) {
|
|
2400
|
+
let message = 'Object doesn\'t match WebPagePublicationChannelRepresentation (at "' + path_channels_item + '")\n';
|
|
2401
|
+
message += referencepath_channels_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
2402
|
+
return new TypeError(message);
|
|
2403
|
+
}
|
|
2404
|
+
}
|
|
2405
|
+
const obj_urlAliases = obj.urlAliases;
|
|
2406
|
+
const path_urlAliases = path + '.urlAliases';
|
|
2407
|
+
if (!ArrayIsArray(obj_urlAliases)) {
|
|
2408
|
+
return new TypeError('Expected "array" but received "' + typeof obj_urlAliases + '" (at "' + path_urlAliases + '")');
|
|
2409
|
+
}
|
|
2410
|
+
for (let i = 0; i < obj_urlAliases.length; i++) {
|
|
2411
|
+
const obj_urlAliases_item = obj_urlAliases[i];
|
|
2412
|
+
const path_urlAliases_item = path_urlAliases + '[' + i + ']';
|
|
2413
|
+
if (typeof obj_urlAliases_item !== 'string') {
|
|
2414
|
+
return new TypeError('Expected "string" but received "' + typeof obj_urlAliases_item + '" (at "' + path_urlAliases_item + '")');
|
|
2415
|
+
}
|
|
2416
|
+
}
|
|
2417
|
+
})();
|
|
2418
|
+
return v_error === undefined ? null : v_error;
|
|
2419
|
+
}
|
|
2420
|
+
|
|
2361
2421
|
const TTL$e = 100;
|
|
2362
|
-
const VERSION$f = "
|
|
2363
|
-
function validate$
|
|
2422
|
+
const VERSION$f = "87bd11d179328f1b46dcb10980fb157b";
|
|
2423
|
+
function validate$t(obj, path = 'ManagedContentDocumentRepresentation') {
|
|
2364
2424
|
const v_error = (() => {
|
|
2365
2425
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2366
2426
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2386,7 +2446,7 @@ function validate$s(obj, path = 'ManagedContentDocumentRepresentation') {
|
|
|
2386
2446
|
}
|
|
2387
2447
|
const obj_contentSpace = obj.contentSpace;
|
|
2388
2448
|
const path_contentSpace = path + '.contentSpace';
|
|
2389
|
-
const referencepath_contentSpaceValidationError = validate$
|
|
2449
|
+
const referencepath_contentSpaceValidationError = validate$z(obj_contentSpace, path_contentSpace);
|
|
2390
2450
|
if (referencepath_contentSpaceValidationError !== null) {
|
|
2391
2451
|
let message = 'Object doesn\'t match ManagedContentSpaceSummaryRepresentation (at "' + path_contentSpace + '")\n';
|
|
2392
2452
|
message += referencepath_contentSpaceValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2394,7 +2454,7 @@ function validate$s(obj, path = 'ManagedContentDocumentRepresentation') {
|
|
|
2394
2454
|
}
|
|
2395
2455
|
const obj_contentType = obj.contentType;
|
|
2396
2456
|
const path_contentType = path + '.contentType';
|
|
2397
|
-
const referencepath_contentTypeValidationError = validate$
|
|
2457
|
+
const referencepath_contentTypeValidationError = validate$G(obj_contentType, path_contentType);
|
|
2398
2458
|
if (referencepath_contentTypeValidationError !== null) {
|
|
2399
2459
|
let message = 'Object doesn\'t match ManagedContentTypeSummaryRepresentation (at "' + path_contentType + '")\n';
|
|
2400
2460
|
message += referencepath_contentTypeValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2402,7 +2462,7 @@ function validate$s(obj, path = 'ManagedContentDocumentRepresentation') {
|
|
|
2402
2462
|
}
|
|
2403
2463
|
const obj_createdBy = obj.createdBy;
|
|
2404
2464
|
const path_createdBy = path + '.createdBy';
|
|
2405
|
-
const referencepath_createdByValidationError = validate$
|
|
2465
|
+
const referencepath_createdByValidationError = validate$y(obj_createdBy, path_createdBy);
|
|
2406
2466
|
if (referencepath_createdByValidationError !== null) {
|
|
2407
2467
|
let message = 'Object doesn\'t match ManagedContentUserSummaryRepresentation (at "' + path_createdBy + '")\n';
|
|
2408
2468
|
message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2415,7 +2475,7 @@ function validate$s(obj, path = 'ManagedContentDocumentRepresentation') {
|
|
|
2415
2475
|
}
|
|
2416
2476
|
const obj_folder = obj.folder;
|
|
2417
2477
|
const path_folder = path + '.folder';
|
|
2418
|
-
const referencepath_folderValidationError = validate$
|
|
2478
|
+
const referencepath_folderValidationError = validate$x(obj_folder, path_folder);
|
|
2419
2479
|
if (referencepath_folderValidationError !== null) {
|
|
2420
2480
|
let message = 'Object doesn\'t match ManagedContentFolderSummaryRepresentation (at "' + path_folder + '")\n';
|
|
2421
2481
|
message += referencepath_folderValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2433,7 +2493,7 @@ function validate$s(obj, path = 'ManagedContentDocumentRepresentation') {
|
|
|
2433
2493
|
}
|
|
2434
2494
|
const obj_lastModifiedBy = obj.lastModifiedBy;
|
|
2435
2495
|
const path_lastModifiedBy = path + '.lastModifiedBy';
|
|
2436
|
-
const referencepath_lastModifiedByValidationError = validate$
|
|
2496
|
+
const referencepath_lastModifiedByValidationError = validate$y(obj_lastModifiedBy, path_lastModifiedBy);
|
|
2437
2497
|
if (referencepath_lastModifiedByValidationError !== null) {
|
|
2438
2498
|
let message = 'Object doesn\'t match ManagedContentUserSummaryRepresentation (at "' + path_lastModifiedBy + '")\n';
|
|
2439
2499
|
message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2464,7 +2524,7 @@ function validate$s(obj, path = 'ManagedContentDocumentRepresentation') {
|
|
|
2464
2524
|
const path_status = path + '.status';
|
|
2465
2525
|
let obj_status_union0 = null;
|
|
2466
2526
|
const obj_status_union0_error = (() => {
|
|
2467
|
-
const referencepath_statusValidationError = validate$
|
|
2527
|
+
const referencepath_statusValidationError = validate$w(obj_status, path_status);
|
|
2468
2528
|
if (referencepath_statusValidationError !== null) {
|
|
2469
2529
|
let message = 'Object doesn\'t match ManagedContentVariantStatusRepresentation (at "' + path_status + '")\n';
|
|
2470
2530
|
message += referencepath_statusValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2531,6 +2591,37 @@ function validate$s(obj, path = 'ManagedContentDocumentRepresentation') {
|
|
|
2531
2591
|
message += '\n' + obj_versionNumber_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
2532
2592
|
return new TypeError(message);
|
|
2533
2593
|
}
|
|
2594
|
+
if (obj.webPagePublication !== undefined) {
|
|
2595
|
+
const obj_webPagePublication = obj.webPagePublication;
|
|
2596
|
+
const path_webPagePublication = path + '.webPagePublication';
|
|
2597
|
+
let obj_webPagePublication_union0 = null;
|
|
2598
|
+
const obj_webPagePublication_union0_error = (() => {
|
|
2599
|
+
const referencepath_webPagePublicationValidationError = validate$u(obj_webPagePublication, path_webPagePublication);
|
|
2600
|
+
if (referencepath_webPagePublicationValidationError !== null) {
|
|
2601
|
+
let message = 'Object doesn\'t match WebPagePublicationRepresentation (at "' + path_webPagePublication + '")\n';
|
|
2602
|
+
message += referencepath_webPagePublicationValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
2603
|
+
return new TypeError(message);
|
|
2604
|
+
}
|
|
2605
|
+
})();
|
|
2606
|
+
if (obj_webPagePublication_union0_error != null) {
|
|
2607
|
+
obj_webPagePublication_union0 = obj_webPagePublication_union0_error.message;
|
|
2608
|
+
}
|
|
2609
|
+
let obj_webPagePublication_union1 = null;
|
|
2610
|
+
const obj_webPagePublication_union1_error = (() => {
|
|
2611
|
+
if (obj_webPagePublication !== null) {
|
|
2612
|
+
return new TypeError('Expected "null" but received "' + typeof obj_webPagePublication + '" (at "' + path_webPagePublication + '")');
|
|
2613
|
+
}
|
|
2614
|
+
})();
|
|
2615
|
+
if (obj_webPagePublication_union1_error != null) {
|
|
2616
|
+
obj_webPagePublication_union1 = obj_webPagePublication_union1_error.message;
|
|
2617
|
+
}
|
|
2618
|
+
if (obj_webPagePublication_union0 && obj_webPagePublication_union1) {
|
|
2619
|
+
let message = 'Object doesn\'t match union (at "' + path_webPagePublication + '")';
|
|
2620
|
+
message += '\n' + obj_webPagePublication_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
2621
|
+
message += '\n' + obj_webPagePublication_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
2622
|
+
return new TypeError(message);
|
|
2623
|
+
}
|
|
2624
|
+
}
|
|
2534
2625
|
})();
|
|
2535
2626
|
return v_error === undefined ? null : v_error;
|
|
2536
2627
|
}
|
|
@@ -2565,7 +2656,7 @@ function equals$f(existing, incoming) {
|
|
|
2565
2656
|
}
|
|
2566
2657
|
const ingest$e = function ManagedContentDocumentRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
2567
2658
|
if (process.env.NODE_ENV !== 'production') {
|
|
2568
|
-
const validateError = validate$
|
|
2659
|
+
const validateError = validate$t(input);
|
|
2569
2660
|
if (validateError !== null) {
|
|
2570
2661
|
throw validateError;
|
|
2571
2662
|
}
|
|
@@ -2665,7 +2756,7 @@ function createResourceParams$k(config) {
|
|
|
2665
2756
|
function typeCheckConfig$k(untrustedConfig) {
|
|
2666
2757
|
const config = {};
|
|
2667
2758
|
const untrustedConfig_ManagedContentInputParam = untrustedConfig.ManagedContentInputParam;
|
|
2668
|
-
const referenceManagedContentInputRepresentationValidationError = validate$
|
|
2759
|
+
const referenceManagedContentInputRepresentationValidationError = validate$A(untrustedConfig_ManagedContentInputParam);
|
|
2669
2760
|
if (referenceManagedContentInputRepresentationValidationError === null) {
|
|
2670
2761
|
config.ManagedContentInputParam = untrustedConfig_ManagedContentInputParam;
|
|
2671
2762
|
}
|
|
@@ -2713,7 +2804,7 @@ const createManagedContentAdapterFactory = (luvio) => {
|
|
|
2713
2804
|
};
|
|
2714
2805
|
};
|
|
2715
2806
|
|
|
2716
|
-
function validate$
|
|
2807
|
+
function validate$s(obj, path = 'ManagedContentPublishInputRepresentation') {
|
|
2717
2808
|
const v_error = (() => {
|
|
2718
2809
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2719
2810
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2766,7 +2857,7 @@ function validate$r(obj, path = 'ManagedContentPublishInputRepresentation') {
|
|
|
2766
2857
|
|
|
2767
2858
|
const TTL$d = 100;
|
|
2768
2859
|
const VERSION$e = "789bce2e581ff7969982fbf2ffbfd9a5";
|
|
2769
|
-
function validate$
|
|
2860
|
+
function validate$r(obj, path = 'ManagedContentPublishOutputRepresentation') {
|
|
2770
2861
|
const v_error = (() => {
|
|
2771
2862
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2772
2863
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2860,7 +2951,7 @@ function equals$e(existing, incoming) {
|
|
|
2860
2951
|
}
|
|
2861
2952
|
const ingest$d = function ManagedContentPublishOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
2862
2953
|
if (process.env.NODE_ENV !== 'production') {
|
|
2863
|
-
const validateError = validate$
|
|
2954
|
+
const validateError = validate$r(input);
|
|
2864
2955
|
if (validateError !== null) {
|
|
2865
2956
|
throw validateError;
|
|
2866
2957
|
}
|
|
@@ -2953,7 +3044,7 @@ function createResourceParams$j(config) {
|
|
|
2953
3044
|
function typeCheckConfig$j(untrustedConfig) {
|
|
2954
3045
|
const config = {};
|
|
2955
3046
|
const untrustedConfig_publishInput = untrustedConfig.publishInput;
|
|
2956
|
-
const referenceManagedContentPublishInputRepresentationValidationError = validate$
|
|
3047
|
+
const referenceManagedContentPublishInputRepresentationValidationError = validate$s(untrustedConfig_publishInput);
|
|
2957
3048
|
if (referenceManagedContentPublishInputRepresentationValidationError === null) {
|
|
2958
3049
|
config.publishInput = untrustedConfig_publishInput;
|
|
2959
3050
|
}
|
|
@@ -3001,7 +3092,7 @@ const publishManagedContentAdapterFactory = (luvio) => {
|
|
|
3001
3092
|
};
|
|
3002
3093
|
};
|
|
3003
3094
|
|
|
3004
|
-
function validate$
|
|
3095
|
+
function validate$q(obj, path = 'ManagedContentUnpublishInputRepresentation') {
|
|
3005
3096
|
const v_error = (() => {
|
|
3006
3097
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3007
3098
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3047,7 +3138,7 @@ function validate$p(obj, path = 'ManagedContentUnpublishInputRepresentation') {
|
|
|
3047
3138
|
|
|
3048
3139
|
const TTL$c = 100;
|
|
3049
3140
|
const VERSION$d = "2f473ff12e87a4fc2336695104ab8567";
|
|
3050
|
-
function validate$
|
|
3141
|
+
function validate$p(obj, path = 'ManagedContentUnpublishOutputRepresentation') {
|
|
3051
3142
|
const v_error = (() => {
|
|
3052
3143
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3053
3144
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3141,7 +3232,7 @@ function equals$d(existing, incoming) {
|
|
|
3141
3232
|
}
|
|
3142
3233
|
const ingest$c = function ManagedContentUnpublishOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
3143
3234
|
if (process.env.NODE_ENV !== 'production') {
|
|
3144
|
-
const validateError = validate$
|
|
3235
|
+
const validateError = validate$p(input);
|
|
3145
3236
|
if (validateError !== null) {
|
|
3146
3237
|
throw validateError;
|
|
3147
3238
|
}
|
|
@@ -3234,7 +3325,7 @@ function createResourceParams$i(config) {
|
|
|
3234
3325
|
function typeCheckConfig$i(untrustedConfig) {
|
|
3235
3326
|
const config = {};
|
|
3236
3327
|
const untrustedConfig_unpublishInput = untrustedConfig.unpublishInput;
|
|
3237
|
-
const referenceManagedContentUnpublishInputRepresentationValidationError = validate$
|
|
3328
|
+
const referenceManagedContentUnpublishInputRepresentationValidationError = validate$q(untrustedConfig_unpublishInput);
|
|
3238
3329
|
if (referenceManagedContentUnpublishInputRepresentationValidationError === null) {
|
|
3239
3330
|
config.unpublishInput = untrustedConfig_unpublishInput;
|
|
3240
3331
|
}
|
|
@@ -3282,7 +3373,7 @@ const unpublishManagedContentAdapterFactory = (luvio) => {
|
|
|
3282
3373
|
};
|
|
3283
3374
|
};
|
|
3284
3375
|
|
|
3285
|
-
function validate$
|
|
3376
|
+
function validate$o(obj, path = 'ManagedContentVariantInputRepresentation') {
|
|
3286
3377
|
const v_error = (() => {
|
|
3287
3378
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3288
3379
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3331,7 +3422,7 @@ function validate$n(obj, path = 'ManagedContentVariantInputRepresentation') {
|
|
|
3331
3422
|
|
|
3332
3423
|
const TTL$b = 3600000;
|
|
3333
3424
|
const VERSION$c = "7752c6a8bb6b113a02bfde83f39e5957";
|
|
3334
|
-
function validate$
|
|
3425
|
+
function validate$n(obj, path = 'ManagedContentVariantRepresentation') {
|
|
3335
3426
|
const v_error = (() => {
|
|
3336
3427
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3337
3428
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3357,7 +3448,7 @@ function validate$m(obj, path = 'ManagedContentVariantRepresentation') {
|
|
|
3357
3448
|
}
|
|
3358
3449
|
const obj_contentSpace = obj.contentSpace;
|
|
3359
3450
|
const path_contentSpace = path + '.contentSpace';
|
|
3360
|
-
const referencepath_contentSpaceValidationError = validate$
|
|
3451
|
+
const referencepath_contentSpaceValidationError = validate$z(obj_contentSpace, path_contentSpace);
|
|
3361
3452
|
if (referencepath_contentSpaceValidationError !== null) {
|
|
3362
3453
|
let message = 'Object doesn\'t match ManagedContentSpaceSummaryRepresentation (at "' + path_contentSpace + '")\n';
|
|
3363
3454
|
message += referencepath_contentSpaceValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3365,7 +3456,7 @@ function validate$m(obj, path = 'ManagedContentVariantRepresentation') {
|
|
|
3365
3456
|
}
|
|
3366
3457
|
const obj_contentType = obj.contentType;
|
|
3367
3458
|
const path_contentType = path + '.contentType';
|
|
3368
|
-
const referencepath_contentTypeValidationError = validate$
|
|
3459
|
+
const referencepath_contentTypeValidationError = validate$G(obj_contentType, path_contentType);
|
|
3369
3460
|
if (referencepath_contentTypeValidationError !== null) {
|
|
3370
3461
|
let message = 'Object doesn\'t match ManagedContentTypeSummaryRepresentation (at "' + path_contentType + '")\n';
|
|
3371
3462
|
message += referencepath_contentTypeValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3373,7 +3464,7 @@ function validate$m(obj, path = 'ManagedContentVariantRepresentation') {
|
|
|
3373
3464
|
}
|
|
3374
3465
|
const obj_createdBy = obj.createdBy;
|
|
3375
3466
|
const path_createdBy = path + '.createdBy';
|
|
3376
|
-
const referencepath_createdByValidationError = validate$
|
|
3467
|
+
const referencepath_createdByValidationError = validate$y(obj_createdBy, path_createdBy);
|
|
3377
3468
|
if (referencepath_createdByValidationError !== null) {
|
|
3378
3469
|
let message = 'Object doesn\'t match ManagedContentUserSummaryRepresentation (at "' + path_createdBy + '")\n';
|
|
3379
3470
|
message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3386,7 +3477,7 @@ function validate$m(obj, path = 'ManagedContentVariantRepresentation') {
|
|
|
3386
3477
|
}
|
|
3387
3478
|
const obj_folder = obj.folder;
|
|
3388
3479
|
const path_folder = path + '.folder';
|
|
3389
|
-
const referencepath_folderValidationError = validate$
|
|
3480
|
+
const referencepath_folderValidationError = validate$x(obj_folder, path_folder);
|
|
3390
3481
|
if (referencepath_folderValidationError !== null) {
|
|
3391
3482
|
let message = 'Object doesn\'t match ManagedContentFolderSummaryRepresentation (at "' + path_folder + '")\n';
|
|
3392
3483
|
message += referencepath_folderValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3404,7 +3495,7 @@ function validate$m(obj, path = 'ManagedContentVariantRepresentation') {
|
|
|
3404
3495
|
}
|
|
3405
3496
|
const obj_lastModifiedBy = obj.lastModifiedBy;
|
|
3406
3497
|
const path_lastModifiedBy = path + '.lastModifiedBy';
|
|
3407
|
-
const referencepath_lastModifiedByValidationError = validate$
|
|
3498
|
+
const referencepath_lastModifiedByValidationError = validate$y(obj_lastModifiedBy, path_lastModifiedBy);
|
|
3408
3499
|
if (referencepath_lastModifiedByValidationError !== null) {
|
|
3409
3500
|
let message = 'Object doesn\'t match ManagedContentUserSummaryRepresentation (at "' + path_lastModifiedBy + '")\n';
|
|
3410
3501
|
message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3432,7 +3523,7 @@ function validate$m(obj, path = 'ManagedContentVariantRepresentation') {
|
|
|
3432
3523
|
}
|
|
3433
3524
|
const obj_status = obj.status;
|
|
3434
3525
|
const path_status = path + '.status';
|
|
3435
|
-
const referencepath_statusValidationError = validate$
|
|
3526
|
+
const referencepath_statusValidationError = validate$w(obj_status, path_status);
|
|
3436
3527
|
if (referencepath_statusValidationError !== null) {
|
|
3437
3528
|
let message = 'Object doesn\'t match ManagedContentVariantStatusRepresentation (at "' + path_status + '")\n';
|
|
3438
3529
|
message += referencepath_statusValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3480,7 +3571,7 @@ function equals$c(existing, incoming) {
|
|
|
3480
3571
|
}
|
|
3481
3572
|
const ingest$b = function ManagedContentVariantRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
3482
3573
|
if (process.env.NODE_ENV !== 'production') {
|
|
3483
|
-
const validateError = validate$
|
|
3574
|
+
const validateError = validate$n(input);
|
|
3484
3575
|
if (validateError !== null) {
|
|
3485
3576
|
throw validateError;
|
|
3486
3577
|
}
|
|
@@ -3573,7 +3664,7 @@ function createResourceParams$h(config) {
|
|
|
3573
3664
|
function typeCheckConfig$h(untrustedConfig) {
|
|
3574
3665
|
const config = {};
|
|
3575
3666
|
const untrustedConfig_managedContentVariantInputParam = untrustedConfig.managedContentVariantInputParam;
|
|
3576
|
-
const referenceManagedContentVariantInputRepresentationValidationError = validate$
|
|
3667
|
+
const referenceManagedContentVariantInputRepresentationValidationError = validate$o(untrustedConfig_managedContentVariantInputParam);
|
|
3577
3668
|
if (referenceManagedContentVariantInputRepresentationValidationError === null) {
|
|
3578
3669
|
config.managedContentVariantInputParam = untrustedConfig_managedContentVariantInputParam;
|
|
3579
3670
|
}
|
|
@@ -3884,7 +3975,7 @@ const getManagedContentVariantAdapterFactory = (luvio) => function CMSAuthoring_
|
|
|
3884
3975
|
buildCachedSnapshotCachePolicy$b, buildNetworkSnapshotCachePolicy$b);
|
|
3885
3976
|
};
|
|
3886
3977
|
|
|
3887
|
-
function validate$
|
|
3978
|
+
function validate$m(obj, path = 'ManagedContentVariantUpdateInputRepresentation') {
|
|
3888
3979
|
const v_error = (() => {
|
|
3889
3980
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3890
3981
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3979,7 +4070,7 @@ function typeCheckConfig$e(untrustedConfig) {
|
|
|
3979
4070
|
config.variantId = untrustedConfig_variantId;
|
|
3980
4071
|
}
|
|
3981
4072
|
const untrustedConfig_ManagedContentVariantInputParam = untrustedConfig.ManagedContentVariantInputParam;
|
|
3982
|
-
const referenceManagedContentVariantUpdateInputRepresentationValidationError = validate$
|
|
4073
|
+
const referenceManagedContentVariantUpdateInputRepresentationValidationError = validate$m(untrustedConfig_ManagedContentVariantInputParam);
|
|
3983
4074
|
if (referenceManagedContentVariantUpdateInputRepresentationValidationError === null) {
|
|
3984
4075
|
config.ManagedContentVariantInputParam = untrustedConfig_ManagedContentVariantInputParam;
|
|
3985
4076
|
}
|
|
@@ -4027,14 +4118,14 @@ const replaceManagedContentVariantAdapterFactory = (luvio) => {
|
|
|
4027
4118
|
};
|
|
4028
4119
|
};
|
|
4029
4120
|
|
|
4030
|
-
function validate$
|
|
4121
|
+
function validate$l(obj, path = 'ManagedContentVariantVersionRepresentation') {
|
|
4031
4122
|
const v_error = (() => {
|
|
4032
4123
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4033
4124
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
4034
4125
|
}
|
|
4035
4126
|
const obj_createdBy = obj.createdBy;
|
|
4036
4127
|
const path_createdBy = path + '.createdBy';
|
|
4037
|
-
const referencepath_createdByValidationError = validate$
|
|
4128
|
+
const referencepath_createdByValidationError = validate$y(obj_createdBy, path_createdBy);
|
|
4038
4129
|
if (referencepath_createdByValidationError !== null) {
|
|
4039
4130
|
let message = 'Object doesn\'t match ManagedContentUserSummaryRepresentation (at "' + path_createdBy + '")\n';
|
|
4040
4131
|
message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4047,7 +4138,7 @@ function validate$k(obj, path = 'ManagedContentVariantVersionRepresentation') {
|
|
|
4047
4138
|
}
|
|
4048
4139
|
const obj_lastModifiedBy = obj.lastModifiedBy;
|
|
4049
4140
|
const path_lastModifiedBy = path + '.lastModifiedBy';
|
|
4050
|
-
const referencepath_lastModifiedByValidationError = validate$
|
|
4141
|
+
const referencepath_lastModifiedByValidationError = validate$y(obj_lastModifiedBy, path_lastModifiedBy);
|
|
4051
4142
|
if (referencepath_lastModifiedByValidationError !== null) {
|
|
4052
4143
|
let message = 'Object doesn\'t match ManagedContentUserSummaryRepresentation (at "' + path_lastModifiedBy + '")\n';
|
|
4053
4144
|
message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4065,7 +4156,7 @@ function validate$k(obj, path = 'ManagedContentVariantVersionRepresentation') {
|
|
|
4065
4156
|
}
|
|
4066
4157
|
const obj_status = obj.status;
|
|
4067
4158
|
const path_status = path + '.status';
|
|
4068
|
-
const referencepath_statusValidationError = validate$
|
|
4159
|
+
const referencepath_statusValidationError = validate$w(obj_status, path_status);
|
|
4069
4160
|
if (referencepath_statusValidationError !== null) {
|
|
4070
4161
|
let message = 'Object doesn\'t match ManagedContentVariantStatusRepresentation (at "' + path_status + '")\n';
|
|
4071
4162
|
message += referencepath_statusValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4087,7 +4178,7 @@ function validate$k(obj, path = 'ManagedContentVariantVersionRepresentation') {
|
|
|
4087
4178
|
|
|
4088
4179
|
const TTL$a = 100;
|
|
4089
4180
|
const VERSION$b = "993f4fe3a5b12699f037079dbe30610b";
|
|
4090
|
-
function validate$
|
|
4181
|
+
function validate$k(obj, path = 'ManagedContentVariantVersionCollectionRepresentation') {
|
|
4091
4182
|
const v_error = (() => {
|
|
4092
4183
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4093
4184
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4117,7 +4208,7 @@ function validate$j(obj, path = 'ManagedContentVariantVersionCollectionRepresent
|
|
|
4117
4208
|
for (let i = 0; i < obj_versions.length; i++) {
|
|
4118
4209
|
const obj_versions_item = obj_versions[i];
|
|
4119
4210
|
const path_versions_item = path_versions + '[' + i + ']';
|
|
4120
|
-
const referencepath_versions_itemValidationError = validate$
|
|
4211
|
+
const referencepath_versions_itemValidationError = validate$l(obj_versions_item, path_versions_item);
|
|
4121
4212
|
if (referencepath_versions_itemValidationError !== null) {
|
|
4122
4213
|
let message = 'Object doesn\'t match ManagedContentVariantVersionRepresentation (at "' + path_versions_item + '")\n';
|
|
4123
4214
|
message += referencepath_versions_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4156,7 +4247,7 @@ function equals$b(existing, incoming) {
|
|
|
4156
4247
|
}
|
|
4157
4248
|
const ingest$a = function ManagedContentVariantVersionCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
4158
4249
|
if (process.env.NODE_ENV !== 'production') {
|
|
4159
|
-
const validateError = validate$
|
|
4250
|
+
const validateError = validate$k(input);
|
|
4160
4251
|
if (validateError !== null) {
|
|
4161
4252
|
throw validateError;
|
|
4162
4253
|
}
|
|
@@ -4615,7 +4706,7 @@ const getManagedContentAdapterFactory = (luvio) => function CMSAuthoring__getMan
|
|
|
4615
4706
|
|
|
4616
4707
|
const TTL$9 = 1000;
|
|
4617
4708
|
const VERSION$a = "98edee4f058ced93570a7b0ce2293672";
|
|
4618
|
-
function validate$
|
|
4709
|
+
function validate$j(obj, path = 'ManagedContentRenditionRepresentation') {
|
|
4619
4710
|
const v_error = (() => {
|
|
4620
4711
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4621
4712
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4686,7 +4777,7 @@ function equals$a(existing, incoming) {
|
|
|
4686
4777
|
}
|
|
4687
4778
|
const ingest$9 = function ManagedContentRenditionRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
4688
4779
|
if (process.env.NODE_ENV !== 'production') {
|
|
4689
|
-
const validateError = validate$
|
|
4780
|
+
const validateError = validate$j(input);
|
|
4690
4781
|
if (validateError !== null) {
|
|
4691
4782
|
throw validateError;
|
|
4692
4783
|
}
|
|
@@ -4907,7 +4998,7 @@ const getManagedContentVariantRenditionAdapterFactory = (luvio) => function CMSA
|
|
|
4907
4998
|
buildCachedSnapshotCachePolicy$8, buildNetworkSnapshotCachePolicy$8);
|
|
4908
4999
|
};
|
|
4909
5000
|
|
|
4910
|
-
function validate$
|
|
5001
|
+
function validate$i(obj, path = 'AbstractManagedContentReferencedByItemRepresentation') {
|
|
4911
5002
|
const v_error = (() => {
|
|
4912
5003
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4913
5004
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4915,7 +5006,7 @@ function validate$h(obj, path = 'AbstractManagedContentReferencedByItemRepresent
|
|
|
4915
5006
|
if (obj.contentType !== undefined) {
|
|
4916
5007
|
const obj_contentType = obj.contentType;
|
|
4917
5008
|
const path_contentType = path + '.contentType';
|
|
4918
|
-
const referencepath_contentTypeValidationError = validate$
|
|
5009
|
+
const referencepath_contentTypeValidationError = validate$G(obj_contentType, path_contentType);
|
|
4919
5010
|
if (referencepath_contentTypeValidationError !== null) {
|
|
4920
5011
|
let message = 'Object doesn\'t match ManagedContentTypeSummaryRepresentation (at "' + path_contentType + '")\n';
|
|
4921
5012
|
message += referencepath_contentTypeValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4976,7 +5067,7 @@ function validate$h(obj, path = 'AbstractManagedContentReferencedByItemRepresent
|
|
|
4976
5067
|
|
|
4977
5068
|
const TTL$8 = 100;
|
|
4978
5069
|
const VERSION$9 = "c297f5edbe1b51eadd89e68f176520ba";
|
|
4979
|
-
function validate$
|
|
5070
|
+
function validate$h(obj, path = 'ManagedContentReferencedByCollectionRepresentation') {
|
|
4980
5071
|
const v_error = (() => {
|
|
4981
5072
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4982
5073
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -5020,7 +5111,7 @@ function validate$g(obj, path = 'ManagedContentReferencedByCollectionRepresentat
|
|
|
5020
5111
|
for (let i = 0; i < obj_referencedBy.length; i++) {
|
|
5021
5112
|
const obj_referencedBy_item = obj_referencedBy[i];
|
|
5022
5113
|
const path_referencedBy_item = path_referencedBy + '[' + i + ']';
|
|
5023
|
-
const referencepath_referencedBy_itemValidationError = validate$
|
|
5114
|
+
const referencepath_referencedBy_itemValidationError = validate$i(obj_referencedBy_item, path_referencedBy_item);
|
|
5024
5115
|
if (referencepath_referencedBy_itemValidationError !== null) {
|
|
5025
5116
|
let message = 'Object doesn\'t match AbstractManagedContentReferencedByItemRepresentation (at "' + path_referencedBy_item + '")\n';
|
|
5026
5117
|
message += referencepath_referencedBy_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -5055,7 +5146,7 @@ function equals$9(existing, incoming) {
|
|
|
5055
5146
|
}
|
|
5056
5147
|
const ingest$8 = function ManagedContentReferencedByCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
5057
5148
|
if (process.env.NODE_ENV !== 'production') {
|
|
5058
|
-
const validateError = validate$
|
|
5149
|
+
const validateError = validate$h(input);
|
|
5059
5150
|
if (validateError !== null) {
|
|
5060
5151
|
throw validateError;
|
|
5061
5152
|
}
|
|
@@ -5276,7 +5367,7 @@ const getManagedContentReferencedByAdapterFactory = (luvio) => function CMSAutho
|
|
|
5276
5367
|
buildCachedSnapshotCachePolicy$7, buildNetworkSnapshotCachePolicy$7);
|
|
5277
5368
|
};
|
|
5278
5369
|
|
|
5279
|
-
function validate$
|
|
5370
|
+
function validate$g(obj, path = 'ManagedContentLanguageSummaryRepresentation') {
|
|
5280
5371
|
const v_error = (() => {
|
|
5281
5372
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
5282
5373
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -5295,7 +5386,7 @@ function validate$f(obj, path = 'ManagedContentLanguageSummaryRepresentation') {
|
|
|
5295
5386
|
return v_error === undefined ? null : v_error;
|
|
5296
5387
|
}
|
|
5297
5388
|
|
|
5298
|
-
function validate$
|
|
5389
|
+
function validate$f(obj, path = 'ManagedContentVariantReferenceDetailsRepresentation') {
|
|
5299
5390
|
const v_error = (() => {
|
|
5300
5391
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
5301
5392
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -5307,7 +5398,7 @@ function validate$e(obj, path = 'ManagedContentVariantReferenceDetailsRepresenta
|
|
|
5307
5398
|
}
|
|
5308
5399
|
const obj_contentType = obj.contentType;
|
|
5309
5400
|
const path_contentType = path + '.contentType';
|
|
5310
|
-
const referencepath_contentTypeValidationError = validate$
|
|
5401
|
+
const referencepath_contentTypeValidationError = validate$G(obj_contentType, path_contentType);
|
|
5311
5402
|
if (referencepath_contentTypeValidationError !== null) {
|
|
5312
5403
|
let message = 'Object doesn\'t match ManagedContentTypeSummaryRepresentation (at "' + path_contentType + '")\n';
|
|
5313
5404
|
message += referencepath_contentTypeValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -5315,7 +5406,7 @@ function validate$e(obj, path = 'ManagedContentVariantReferenceDetailsRepresenta
|
|
|
5315
5406
|
}
|
|
5316
5407
|
const obj_createdBy = obj.createdBy;
|
|
5317
5408
|
const path_createdBy = path + '.createdBy';
|
|
5318
|
-
const referencepath_createdByValidationError = validate$
|
|
5409
|
+
const referencepath_createdByValidationError = validate$y(obj_createdBy, path_createdBy);
|
|
5319
5410
|
if (referencepath_createdByValidationError !== null) {
|
|
5320
5411
|
let message = 'Object doesn\'t match ManagedContentUserSummaryRepresentation (at "' + path_createdBy + '")\n';
|
|
5321
5412
|
message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -5333,7 +5424,7 @@ function validate$e(obj, path = 'ManagedContentVariantReferenceDetailsRepresenta
|
|
|
5333
5424
|
}
|
|
5334
5425
|
const obj_language = obj.language;
|
|
5335
5426
|
const path_language = path + '.language';
|
|
5336
|
-
const referencepath_languageValidationError = validate$
|
|
5427
|
+
const referencepath_languageValidationError = validate$g(obj_language, path_language);
|
|
5337
5428
|
if (referencepath_languageValidationError !== null) {
|
|
5338
5429
|
let message = 'Object doesn\'t match ManagedContentLanguageSummaryRepresentation (at "' + path_language + '")\n';
|
|
5339
5430
|
message += referencepath_languageValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -5341,7 +5432,7 @@ function validate$e(obj, path = 'ManagedContentVariantReferenceDetailsRepresenta
|
|
|
5341
5432
|
}
|
|
5342
5433
|
const obj_lastModifiedBy = obj.lastModifiedBy;
|
|
5343
5434
|
const path_lastModifiedBy = path + '.lastModifiedBy';
|
|
5344
|
-
const referencepath_lastModifiedByValidationError = validate$
|
|
5435
|
+
const referencepath_lastModifiedByValidationError = validate$y(obj_lastModifiedBy, path_lastModifiedBy);
|
|
5345
5436
|
if (referencepath_lastModifiedByValidationError !== null) {
|
|
5346
5437
|
let message = 'Object doesn\'t match ManagedContentUserSummaryRepresentation (at "' + path_lastModifiedBy + '")\n';
|
|
5347
5438
|
message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -5364,7 +5455,7 @@ function validate$e(obj, path = 'ManagedContentVariantReferenceDetailsRepresenta
|
|
|
5364
5455
|
}
|
|
5365
5456
|
const obj_status = obj.status;
|
|
5366
5457
|
const path_status = path + '.status';
|
|
5367
|
-
const referencepath_statusValidationError = validate$
|
|
5458
|
+
const referencepath_statusValidationError = validate$w(obj_status, path_status);
|
|
5368
5459
|
if (referencepath_statusValidationError !== null) {
|
|
5369
5460
|
let message = 'Object doesn\'t match ManagedContentVariantStatusRepresentation (at "' + path_status + '")\n';
|
|
5370
5461
|
message += referencepath_statusValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -5381,7 +5472,7 @@ function validate$e(obj, path = 'ManagedContentVariantReferenceDetailsRepresenta
|
|
|
5381
5472
|
|
|
5382
5473
|
const TTL$7 = 100;
|
|
5383
5474
|
const VERSION$8 = "944ebf1d8e72c74b2d0a208b3dfa8326";
|
|
5384
|
-
function validate$
|
|
5475
|
+
function validate$e(obj, path = 'ManagedContentVariantReferencesCollectionRepresentation') {
|
|
5385
5476
|
const v_error = (() => {
|
|
5386
5477
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
5387
5478
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -5402,7 +5493,7 @@ function validate$d(obj, path = 'ManagedContentVariantReferencesCollectionRepres
|
|
|
5402
5493
|
for (let i = 0; i < obj_referenceVariants_prop.length; i++) {
|
|
5403
5494
|
const obj_referenceVariants_prop_item = obj_referenceVariants_prop[i];
|
|
5404
5495
|
const path_referenceVariants_prop_item = path_referenceVariants_prop + '[' + i + ']';
|
|
5405
|
-
const referencepath_referenceVariants_prop_itemValidationError = validate$
|
|
5496
|
+
const referencepath_referenceVariants_prop_itemValidationError = validate$f(obj_referenceVariants_prop_item, path_referenceVariants_prop_item);
|
|
5406
5497
|
if (referencepath_referenceVariants_prop_itemValidationError !== null) {
|
|
5407
5498
|
let message = 'Object doesn\'t match ManagedContentVariantReferenceDetailsRepresentation (at "' + path_referenceVariants_prop_item + '")\n';
|
|
5408
5499
|
message += referencepath_referenceVariants_prop_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -5433,7 +5524,7 @@ function equals$8(existing, incoming) {
|
|
|
5433
5524
|
}
|
|
5434
5525
|
const ingest$7 = function ManagedContentVariantReferencesCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
5435
5526
|
if (process.env.NODE_ENV !== 'production') {
|
|
5436
|
-
const validateError = validate$
|
|
5527
|
+
const validateError = validate$e(input);
|
|
5437
5528
|
if (validateError !== null) {
|
|
5438
5529
|
throw validateError;
|
|
5439
5530
|
}
|
|
@@ -5649,7 +5740,7 @@ const getManagedContentVariantReferencesAdapterFactory = (luvio) => function CMS
|
|
|
5649
5740
|
buildCachedSnapshotCachePolicy$6, buildNetworkSnapshotCachePolicy$6);
|
|
5650
5741
|
};
|
|
5651
5742
|
|
|
5652
|
-
function validate$
|
|
5743
|
+
function validate$d(obj, path = 'ManagedContentSpaceFolderItemRepresentation') {
|
|
5653
5744
|
const v_error = (() => {
|
|
5654
5745
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
5655
5746
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -5664,7 +5755,7 @@ function validate$c(obj, path = 'ManagedContentSpaceFolderItemRepresentation') {
|
|
|
5664
5755
|
if (obj.contentType !== undefined) {
|
|
5665
5756
|
const obj_contentType = obj.contentType;
|
|
5666
5757
|
const path_contentType = path + '.contentType';
|
|
5667
|
-
const referencepath_contentTypeValidationError = validate$
|
|
5758
|
+
const referencepath_contentTypeValidationError = validate$G(obj_contentType, path_contentType);
|
|
5668
5759
|
if (referencepath_contentTypeValidationError !== null) {
|
|
5669
5760
|
let message = 'Object doesn\'t match ManagedContentTypeSummaryRepresentation (at "' + path_contentType + '")\n';
|
|
5670
5761
|
message += referencepath_contentTypeValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -5703,7 +5794,7 @@ function validate$c(obj, path = 'ManagedContentSpaceFolderItemRepresentation') {
|
|
|
5703
5794
|
if (obj.language !== undefined) {
|
|
5704
5795
|
const obj_language = obj.language;
|
|
5705
5796
|
const path_language = path + '.language';
|
|
5706
|
-
const referencepath_languageValidationError = validate$
|
|
5797
|
+
const referencepath_languageValidationError = validate$g(obj_language, path_language);
|
|
5707
5798
|
if (referencepath_languageValidationError !== null) {
|
|
5708
5799
|
let message = 'Object doesn\'t match ManagedContentLanguageSummaryRepresentation (at "' + path_language + '")\n';
|
|
5709
5800
|
message += referencepath_languageValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -5760,7 +5851,7 @@ function validate$c(obj, path = 'ManagedContentSpaceFolderItemRepresentation') {
|
|
|
5760
5851
|
|
|
5761
5852
|
const TTL$6 = 100;
|
|
5762
5853
|
const VERSION$7 = "e85b8f02eca0f2e88859e6f3a061e56b";
|
|
5763
|
-
function validate$
|
|
5854
|
+
function validate$c(obj, path = 'ManagedContentSpaceFolderItemCollectionRepresentation') {
|
|
5764
5855
|
const v_error = (() => {
|
|
5765
5856
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
5766
5857
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -5778,7 +5869,7 @@ function validate$b(obj, path = 'ManagedContentSpaceFolderItemCollectionRepresen
|
|
|
5778
5869
|
for (let i = 0; i < obj_folderItems.length; i++) {
|
|
5779
5870
|
const obj_folderItems_item = obj_folderItems[i];
|
|
5780
5871
|
const path_folderItems_item = path_folderItems + '[' + i + ']';
|
|
5781
|
-
const referencepath_folderItems_itemValidationError = validate$
|
|
5872
|
+
const referencepath_folderItems_itemValidationError = validate$d(obj_folderItems_item, path_folderItems_item);
|
|
5782
5873
|
if (referencepath_folderItems_itemValidationError !== null) {
|
|
5783
5874
|
let message = 'Object doesn\'t match ManagedContentSpaceFolderItemRepresentation (at "' + path_folderItems_item + '")\n';
|
|
5784
5875
|
message += referencepath_folderItems_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -5834,7 +5925,7 @@ function equals$7(existing, incoming) {
|
|
|
5834
5925
|
}
|
|
5835
5926
|
const ingest$6 = function ManagedContentSpaceFolderItemCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
5836
5927
|
if (process.env.NODE_ENV !== 'production') {
|
|
5837
|
-
const validateError = validate$
|
|
5928
|
+
const validateError = validate$c(input);
|
|
5838
5929
|
if (validateError !== null) {
|
|
5839
5930
|
throw validateError;
|
|
5840
5931
|
}
|
|
@@ -6086,14 +6177,14 @@ const getManagedContentByFolderIdAdapterFactory = (luvio) => function CMSAuthori
|
|
|
6086
6177
|
buildCachedSnapshotCachePolicy$5, buildNetworkSnapshotCachePolicy$5);
|
|
6087
6178
|
};
|
|
6088
6179
|
|
|
6089
|
-
function validate$
|
|
6180
|
+
function validate$b(obj, path = 'AbstractManagedContentSearchResultRepresentation') {
|
|
6090
6181
|
const v_error = (() => {
|
|
6091
6182
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
6092
6183
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
6093
6184
|
}
|
|
6094
6185
|
const obj_createdBy = obj.createdBy;
|
|
6095
6186
|
const path_createdBy = path + '.createdBy';
|
|
6096
|
-
const referencepath_createdByValidationError = validate$
|
|
6187
|
+
const referencepath_createdByValidationError = validate$y(obj_createdBy, path_createdBy);
|
|
6097
6188
|
if (referencepath_createdByValidationError !== null) {
|
|
6098
6189
|
let message = 'Object doesn\'t match ManagedContentUserSummaryRepresentation (at "' + path_createdBy + '")\n';
|
|
6099
6190
|
message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -6106,7 +6197,7 @@ function validate$a(obj, path = 'AbstractManagedContentSearchResultRepresentatio
|
|
|
6106
6197
|
}
|
|
6107
6198
|
const obj_folder = obj.folder;
|
|
6108
6199
|
const path_folder = path + '.folder';
|
|
6109
|
-
const referencepath_folderValidationError = validate$
|
|
6200
|
+
const referencepath_folderValidationError = validate$x(obj_folder, path_folder);
|
|
6110
6201
|
if (referencepath_folderValidationError !== null) {
|
|
6111
6202
|
let message = 'Object doesn\'t match ManagedContentFolderSummaryRepresentation (at "' + path_folder + '")\n';
|
|
6112
6203
|
message += referencepath_folderValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -6119,7 +6210,7 @@ function validate$a(obj, path = 'AbstractManagedContentSearchResultRepresentatio
|
|
|
6119
6210
|
}
|
|
6120
6211
|
const obj_lastModifiedBy = obj.lastModifiedBy;
|
|
6121
6212
|
const path_lastModifiedBy = path + '.lastModifiedBy';
|
|
6122
|
-
const referencepath_lastModifiedByValidationError = validate$
|
|
6213
|
+
const referencepath_lastModifiedByValidationError = validate$y(obj_lastModifiedBy, path_lastModifiedBy);
|
|
6123
6214
|
if (referencepath_lastModifiedByValidationError !== null) {
|
|
6124
6215
|
let message = 'Object doesn\'t match ManagedContentUserSummaryRepresentation (at "' + path_lastModifiedBy + '")\n';
|
|
6125
6216
|
message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -6146,7 +6237,7 @@ function validate$a(obj, path = 'AbstractManagedContentSearchResultRepresentatio
|
|
|
6146
6237
|
|
|
6147
6238
|
const TTL$5 = 100;
|
|
6148
6239
|
const VERSION$6 = "bbcdc04e5d094f6f8048bc2863d86527";
|
|
6149
|
-
function validate$
|
|
6240
|
+
function validate$a(obj, path = 'ManagedContentSearchResultItemsCollectionRepresentation') {
|
|
6150
6241
|
const v_error = (() => {
|
|
6151
6242
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
6152
6243
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -6169,7 +6260,7 @@ function validate$9(obj, path = 'ManagedContentSearchResultItemsCollectionRepres
|
|
|
6169
6260
|
for (let i = 0; i < obj_items.length; i++) {
|
|
6170
6261
|
const obj_items_item = obj_items[i];
|
|
6171
6262
|
const path_items_item = path_items + '[' + i + ']';
|
|
6172
|
-
const referencepath_items_itemValidationError = validate$
|
|
6263
|
+
const referencepath_items_itemValidationError = validate$b(obj_items_item, path_items_item);
|
|
6173
6264
|
if (referencepath_items_itemValidationError !== null) {
|
|
6174
6265
|
let message = 'Object doesn\'t match AbstractManagedContentSearchResultRepresentation (at "' + path_items_item + '")\n';
|
|
6175
6266
|
message += referencepath_items_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -6204,7 +6295,7 @@ function equals$6(existing, incoming) {
|
|
|
6204
6295
|
}
|
|
6205
6296
|
const ingest$5 = function ManagedContentSearchResultItemsCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
6206
6297
|
if (process.env.NODE_ENV !== 'production') {
|
|
6207
|
-
const validateError = validate$
|
|
6298
|
+
const validateError = validate$a(input);
|
|
6208
6299
|
if (validateError !== null) {
|
|
6209
6300
|
throw validateError;
|
|
6210
6301
|
}
|
|
@@ -6444,13 +6535,79 @@ const getSearchResultsAdapterFactory = (luvio) => function CMSAuthoring__getSear
|
|
|
6444
6535
|
buildCachedSnapshotCachePolicy$4, buildNetworkSnapshotCachePolicy$4);
|
|
6445
6536
|
};
|
|
6446
6537
|
|
|
6538
|
+
function validate$9(obj, path = 'ManagedContentSpaceBaseTypeRepresentation') {
|
|
6539
|
+
const v_error = (() => {
|
|
6540
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
6541
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
6542
|
+
}
|
|
6543
|
+
const obj_apiName = obj.apiName;
|
|
6544
|
+
const path_apiName = path + '.apiName';
|
|
6545
|
+
let obj_apiName_union0 = null;
|
|
6546
|
+
const obj_apiName_union0_error = (() => {
|
|
6547
|
+
if (typeof obj_apiName !== 'string') {
|
|
6548
|
+
return new TypeError('Expected "string" but received "' + typeof obj_apiName + '" (at "' + path_apiName + '")');
|
|
6549
|
+
}
|
|
6550
|
+
})();
|
|
6551
|
+
if (obj_apiName_union0_error != null) {
|
|
6552
|
+
obj_apiName_union0 = obj_apiName_union0_error.message;
|
|
6553
|
+
}
|
|
6554
|
+
let obj_apiName_union1 = null;
|
|
6555
|
+
const obj_apiName_union1_error = (() => {
|
|
6556
|
+
if (obj_apiName !== null) {
|
|
6557
|
+
return new TypeError('Expected "null" but received "' + typeof obj_apiName + '" (at "' + path_apiName + '")');
|
|
6558
|
+
}
|
|
6559
|
+
})();
|
|
6560
|
+
if (obj_apiName_union1_error != null) {
|
|
6561
|
+
obj_apiName_union1 = obj_apiName_union1_error.message;
|
|
6562
|
+
}
|
|
6563
|
+
if (obj_apiName_union0 && obj_apiName_union1) {
|
|
6564
|
+
let message = 'Object doesn\'t match union (at "' + path_apiName + '")';
|
|
6565
|
+
message += '\n' + obj_apiName_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
6566
|
+
message += '\n' + obj_apiName_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
6567
|
+
return new TypeError(message);
|
|
6568
|
+
}
|
|
6569
|
+
})();
|
|
6570
|
+
return v_error === undefined ? null : v_error;
|
|
6571
|
+
}
|
|
6572
|
+
|
|
6447
6573
|
const TTL$4 = 100;
|
|
6448
|
-
const VERSION$5 = "
|
|
6574
|
+
const VERSION$5 = "1158bab6c830f40913e54e5f647ead28";
|
|
6449
6575
|
function validate$8(obj, path = 'ManagedContentSpaceRepresentation') {
|
|
6450
6576
|
const v_error = (() => {
|
|
6451
6577
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
6452
6578
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
6453
6579
|
}
|
|
6580
|
+
if (obj.baseType !== undefined) {
|
|
6581
|
+
const obj_baseType = obj.baseType;
|
|
6582
|
+
const path_baseType = path + '.baseType';
|
|
6583
|
+
let obj_baseType_union0 = null;
|
|
6584
|
+
const obj_baseType_union0_error = (() => {
|
|
6585
|
+
const referencepath_baseTypeValidationError = validate$9(obj_baseType, path_baseType);
|
|
6586
|
+
if (referencepath_baseTypeValidationError !== null) {
|
|
6587
|
+
let message = 'Object doesn\'t match ManagedContentSpaceBaseTypeRepresentation (at "' + path_baseType + '")\n';
|
|
6588
|
+
message += referencepath_baseTypeValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
6589
|
+
return new TypeError(message);
|
|
6590
|
+
}
|
|
6591
|
+
})();
|
|
6592
|
+
if (obj_baseType_union0_error != null) {
|
|
6593
|
+
obj_baseType_union0 = obj_baseType_union0_error.message;
|
|
6594
|
+
}
|
|
6595
|
+
let obj_baseType_union1 = null;
|
|
6596
|
+
const obj_baseType_union1_error = (() => {
|
|
6597
|
+
if (obj_baseType !== null) {
|
|
6598
|
+
return new TypeError('Expected "null" but received "' + typeof obj_baseType + '" (at "' + path_baseType + '")');
|
|
6599
|
+
}
|
|
6600
|
+
})();
|
|
6601
|
+
if (obj_baseType_union1_error != null) {
|
|
6602
|
+
obj_baseType_union1 = obj_baseType_union1_error.message;
|
|
6603
|
+
}
|
|
6604
|
+
if (obj_baseType_union0 && obj_baseType_union1) {
|
|
6605
|
+
let message = 'Object doesn\'t match union (at "' + path_baseType + '")';
|
|
6606
|
+
message += '\n' + obj_baseType_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
6607
|
+
message += '\n' + obj_baseType_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
6608
|
+
return new TypeError(message);
|
|
6609
|
+
}
|
|
6610
|
+
}
|
|
6454
6611
|
const obj_createdBy = obj.createdBy;
|
|
6455
6612
|
const path_createdBy = path + '.createdBy';
|
|
6456
6613
|
if (typeof obj_createdBy !== 'string') {
|
|
@@ -7636,7 +7793,7 @@ function validate$3(obj, path = 'ManagedContentTypeSummaryCollectionRepresentati
|
|
|
7636
7793
|
for (let i = 0; i < obj_contentTypes.length; i++) {
|
|
7637
7794
|
const obj_contentTypes_item = obj_contentTypes[i];
|
|
7638
7795
|
const path_contentTypes_item = path_contentTypes + '[' + i + ']';
|
|
7639
|
-
const referencepath_contentTypes_itemValidationError = validate$
|
|
7796
|
+
const referencepath_contentTypes_itemValidationError = validate$G(obj_contentTypes_item, path_contentTypes_item);
|
|
7640
7797
|
if (referencepath_contentTypes_itemValidationError !== null) {
|
|
7641
7798
|
let message = 'Object doesn\'t match ManagedContentTypeSummaryRepresentation (at "' + path_contentTypes_item + '")\n';
|
|
7642
7799
|
message += referencepath_contentTypes_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|