@salesforce/lds-adapters-cms-authoring 1.418.0 → 1.419.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 +66 -178
- package/dist/es/es2018/types/src/generated/adapters/createManagedContent.d.ts +0 -1
- package/dist/es/es2018/types/src/generated/adapters/replaceManagedContentVariant.d.ts +0 -1
- package/dist/es/es2018/types/src/generated/resources/postConnectCmsContents.d.ts +0 -3
- package/dist/es/es2018/types/src/generated/resources/putConnectCmsContentsVariantsByVariantId.d.ts +0 -3
- package/dist/es/es2018/types/src/generated/types/ManagedContentDocumentRepresentation.d.ts +1 -5
- package/dist/es/es2018/types/src/generated/types/ManagedContentVariantRepresentation.d.ts +1 -8
- package/package.json +4 -4
- package/sfdc/index.js +57 -169
- package/src/raml/api.raml +0 -70
- package/src/raml/luvio.raml +6 -12
- package/dist/es/es2018/types/src/generated/types/ManagedContentErrorRepresentation.d.ts +0 -32
- package/dist/es/es2018/types/src/generated/types/ManagedContentSchemaValidationErrorBlockSummaryRepresentation.d.ts +0 -31
- package/dist/es/es2018/types/src/generated/types/ManagedContentSchemaValidationErrorRepresentation.d.ts +0 -35
|
@@ -94,7 +94,7 @@ function createLink(ref) {
|
|
|
94
94
|
}
|
|
95
95
|
|
|
96
96
|
const VERSION$O = "7297fb0dbfe8f664d76179a65037c290";
|
|
97
|
-
function validate$
|
|
97
|
+
function validate$1q(obj, path = 'ManagedContentTypeSummaryRepresentation') {
|
|
98
98
|
const v_error = (() => {
|
|
99
99
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
100
100
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -155,7 +155,7 @@ function equals$O(existing, incoming) {
|
|
|
155
155
|
}
|
|
156
156
|
|
|
157
157
|
const VERSION$N = "c30d880a3dba684a405d1cf961af2b76";
|
|
158
|
-
function validate$
|
|
158
|
+
function validate$1p(obj, path = 'ManagedContentVariantSnapshotSummaryRepresentation') {
|
|
159
159
|
const v_error = (() => {
|
|
160
160
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
161
161
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -164,7 +164,7 @@ function validate$1s(obj, path = 'ManagedContentVariantSnapshotSummaryRepresenta
|
|
|
164
164
|
const path_contentType = path + '.contentType';
|
|
165
165
|
let obj_contentType_union0 = null;
|
|
166
166
|
const obj_contentType_union0_error = (() => {
|
|
167
|
-
const referencepath_contentTypeValidationError = validate$
|
|
167
|
+
const referencepath_contentTypeValidationError = validate$1q(obj_contentType, path_contentType);
|
|
168
168
|
if (referencepath_contentTypeValidationError !== null) {
|
|
169
169
|
let message = 'Object doesn\'t match ManagedContentTypeSummaryRepresentation (at "' + path_contentType + '")\n';
|
|
170
170
|
message += referencepath_contentTypeValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -396,7 +396,7 @@ function equals$N(existing, incoming) {
|
|
|
396
396
|
}
|
|
397
397
|
|
|
398
398
|
const VERSION$M = "f99d45f1e809783023bfd9dbe2fe4a6c";
|
|
399
|
-
function validate$
|
|
399
|
+
function validate$1o(obj, path = 'ManagedContentDeploymentItemRepresentation') {
|
|
400
400
|
const v_error = (() => {
|
|
401
401
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
402
402
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -423,7 +423,7 @@ function validate$1r(obj, path = 'ManagedContentDeploymentItemRepresentation') {
|
|
|
423
423
|
}
|
|
424
424
|
const obj_mcvSnapshotSummary = obj.mcvSnapshotSummary;
|
|
425
425
|
const path_mcvSnapshotSummary = path + '.mcvSnapshotSummary';
|
|
426
|
-
const referencepath_mcvSnapshotSummaryValidationError = validate$
|
|
426
|
+
const referencepath_mcvSnapshotSummaryValidationError = validate$1p(obj_mcvSnapshotSummary, path_mcvSnapshotSummary);
|
|
427
427
|
if (referencepath_mcvSnapshotSummaryValidationError !== null) {
|
|
428
428
|
let message = 'Object doesn\'t match ManagedContentVariantSnapshotSummaryRepresentation (at "' + path_mcvSnapshotSummary + '")\n';
|
|
429
429
|
message += referencepath_mcvSnapshotSummaryValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -577,7 +577,7 @@ function equals$M(existing, incoming) {
|
|
|
577
577
|
}
|
|
578
578
|
|
|
579
579
|
const VERSION$L = "4b75ed6ff448da86412b605f7e775a62";
|
|
580
|
-
function validate$
|
|
580
|
+
function validate$1n(obj, path = 'ManagedContentUserSummaryRepresentation') {
|
|
581
581
|
const v_error = (() => {
|
|
582
582
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
583
583
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -653,7 +653,7 @@ function equals$L(existing, incoming) {
|
|
|
653
653
|
|
|
654
654
|
const TTL$E = 100;
|
|
655
655
|
const VERSION$K = "f7e3c655efe77a7c9968ade15a6029b1";
|
|
656
|
-
function validate$
|
|
656
|
+
function validate$1m(obj, path = 'ManagedContentDeploymentRepresentation') {
|
|
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 + '")');
|
|
@@ -723,7 +723,7 @@ function validate$1p(obj, path = 'ManagedContentDeploymentRepresentation') {
|
|
|
723
723
|
for (let i = 0; i < obj_deploymentItems.length; i++) {
|
|
724
724
|
const obj_deploymentItems_item = obj_deploymentItems[i];
|
|
725
725
|
const path_deploymentItems_item = path_deploymentItems + '[' + i + ']';
|
|
726
|
-
const referencepath_deploymentItems_itemValidationError = validate$
|
|
726
|
+
const referencepath_deploymentItems_itemValidationError = validate$1o(obj_deploymentItems_item, path_deploymentItems_item);
|
|
727
727
|
if (referencepath_deploymentItems_itemValidationError !== null) {
|
|
728
728
|
let message = 'Object doesn\'t match ManagedContentDeploymentItemRepresentation (at "' + path_deploymentItems_item + '")\n';
|
|
729
729
|
message += referencepath_deploymentItems_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -786,7 +786,7 @@ function validate$1p(obj, path = 'ManagedContentDeploymentRepresentation') {
|
|
|
786
786
|
const path_lastModifiedBy = path + '.lastModifiedBy';
|
|
787
787
|
let obj_lastModifiedBy_union0 = null;
|
|
788
788
|
const obj_lastModifiedBy_union0_error = (() => {
|
|
789
|
-
const referencepath_lastModifiedByValidationError = validate$
|
|
789
|
+
const referencepath_lastModifiedByValidationError = validate$1n(obj_lastModifiedBy, path_lastModifiedBy);
|
|
790
790
|
if (referencepath_lastModifiedByValidationError !== null) {
|
|
791
791
|
let message = 'Object doesn\'t match ManagedContentUserSummaryRepresentation (at "' + path_lastModifiedBy + '")\n';
|
|
792
792
|
message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -953,7 +953,7 @@ function equals$K(existing, incoming) {
|
|
|
953
953
|
}
|
|
954
954
|
const ingest$E = function ManagedContentDeploymentRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
955
955
|
if (process.env.NODE_ENV !== 'production') {
|
|
956
|
-
const validateError = validate$
|
|
956
|
+
const validateError = validate$1m(input);
|
|
957
957
|
if (validateError !== null) {
|
|
958
958
|
throw validateError;
|
|
959
959
|
}
|
|
@@ -975,7 +975,7 @@ function getTypeCacheKeys$E(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
975
975
|
|
|
976
976
|
const TTL$D = 100;
|
|
977
977
|
const VERSION$J = "b2c15aa80814ecd854e68bf635879e35";
|
|
978
|
-
function validate$
|
|
978
|
+
function validate$1l(obj, path = 'ManagedContentDeploymentCollectionRepresentation') {
|
|
979
979
|
const v_error = (() => {
|
|
980
980
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
981
981
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1129,7 +1129,7 @@ function equals$J(existing, incoming) {
|
|
|
1129
1129
|
}
|
|
1130
1130
|
const ingest$D = function ManagedContentDeploymentCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1131
1131
|
if (process.env.NODE_ENV !== 'production') {
|
|
1132
|
-
const validateError = validate$
|
|
1132
|
+
const validateError = validate$1l(input);
|
|
1133
1133
|
if (validateError !== null) {
|
|
1134
1134
|
throw validateError;
|
|
1135
1135
|
}
|
|
@@ -1310,7 +1310,7 @@ const getDeploymentsAdapterFactory = (luvio) => function CMSAuthoring__getDeploy
|
|
|
1310
1310
|
buildCachedSnapshotCachePolicy$u, buildNetworkSnapshotCachePolicy$u);
|
|
1311
1311
|
};
|
|
1312
1312
|
|
|
1313
|
-
function validate$
|
|
1313
|
+
function validate$1k(obj, path = 'ManagedContentDeploymentInputRepresentation') {
|
|
1314
1314
|
const v_error = (() => {
|
|
1315
1315
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1316
1316
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1440,7 +1440,7 @@ const createResourceParams$O = /*#__PURE__*/ createResourceParams$Q(createDeploy
|
|
|
1440
1440
|
function typeCheckConfig$O(untrustedConfig) {
|
|
1441
1441
|
const config = {};
|
|
1442
1442
|
const untrustedConfig_DeploymentInput = untrustedConfig.DeploymentInput;
|
|
1443
|
-
const referenceManagedContentDeploymentInputRepresentationValidationError = validate$
|
|
1443
|
+
const referenceManagedContentDeploymentInputRepresentationValidationError = validate$1k(untrustedConfig_DeploymentInput);
|
|
1444
1444
|
if (referenceManagedContentDeploymentInputRepresentationValidationError === null) {
|
|
1445
1445
|
config.DeploymentInput = untrustedConfig_DeploymentInput;
|
|
1446
1446
|
}
|
|
@@ -1489,7 +1489,7 @@ const createDeploymentAdapterFactory = (luvio) => {
|
|
|
1489
1489
|
};
|
|
1490
1490
|
|
|
1491
1491
|
const VERSION$I = "7e57fd77c4503be9a8822f2603a04df3";
|
|
1492
|
-
function validate$
|
|
1492
|
+
function validate$1j(obj, path = 'ManagedContentJobBodyRepresentation') {
|
|
1493
1493
|
const v_error = (() => {
|
|
1494
1494
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1495
1495
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1567,7 +1567,7 @@ function equals$I(existing, incoming) {
|
|
|
1567
1567
|
}
|
|
1568
1568
|
|
|
1569
1569
|
const VERSION$H = "eba1876bba76cb05d9cbb8a968bd6796";
|
|
1570
|
-
function validate$
|
|
1570
|
+
function validate$1i(obj, path = 'ManagedContentJobBodyCollectionRepresentation') {
|
|
1571
1571
|
const v_error = (() => {
|
|
1572
1572
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1573
1573
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1580,7 +1580,7 @@ function validate$1l(obj, path = 'ManagedContentJobBodyCollectionRepresentation'
|
|
|
1580
1580
|
for (let i = 0; i < obj_jobBodies.length; i++) {
|
|
1581
1581
|
const obj_jobBodies_item = obj_jobBodies[i];
|
|
1582
1582
|
const path_jobBodies_item = path_jobBodies + '[' + i + ']';
|
|
1583
|
-
const referencepath_jobBodies_itemValidationError = validate$
|
|
1583
|
+
const referencepath_jobBodies_itemValidationError = validate$1j(obj_jobBodies_item, path_jobBodies_item);
|
|
1584
1584
|
if (referencepath_jobBodies_itemValidationError !== null) {
|
|
1585
1585
|
let message = 'Object doesn\'t match ManagedContentJobBodyRepresentation (at "' + path_jobBodies_item + '")\n';
|
|
1586
1586
|
message += referencepath_jobBodies_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1622,7 +1622,7 @@ function equals$H(existing, incoming) {
|
|
|
1622
1622
|
|
|
1623
1623
|
const TTL$C = 100;
|
|
1624
1624
|
const VERSION$G = "9c2de7843d4d4e7784d56c7f83c58f0e";
|
|
1625
|
-
function validate$
|
|
1625
|
+
function validate$1h(obj, path = 'ManagedContentV2JobDetailRepresentation') {
|
|
1626
1626
|
const v_error = (() => {
|
|
1627
1627
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1628
1628
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1631,7 +1631,7 @@ function validate$1k(obj, path = 'ManagedContentV2JobDetailRepresentation') {
|
|
|
1631
1631
|
const path_body = path + '.body';
|
|
1632
1632
|
let obj_body_union0 = null;
|
|
1633
1633
|
const obj_body_union0_error = (() => {
|
|
1634
|
-
const referencepath_bodyValidationError = validate$
|
|
1634
|
+
const referencepath_bodyValidationError = validate$1i(obj_body, path_body);
|
|
1635
1635
|
if (referencepath_bodyValidationError !== null) {
|
|
1636
1636
|
let message = 'Object doesn\'t match ManagedContentJobBodyCollectionRepresentation (at "' + path_body + '")\n';
|
|
1637
1637
|
message += referencepath_bodyValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1848,7 +1848,7 @@ function equals$G(existing, incoming) {
|
|
|
1848
1848
|
}
|
|
1849
1849
|
const ingest$C = function ManagedContentV2JobDetailRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1850
1850
|
if (process.env.NODE_ENV !== 'production') {
|
|
1851
|
-
const validateError = validate$
|
|
1851
|
+
const validateError = validate$1h(input);
|
|
1852
1852
|
if (validateError !== null) {
|
|
1853
1853
|
throw validateError;
|
|
1854
1854
|
}
|
|
@@ -1870,7 +1870,7 @@ function getTypeCacheKeys$C(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
1870
1870
|
|
|
1871
1871
|
const TTL$B = 100;
|
|
1872
1872
|
const VERSION$F = "75cfd71e168144693d36fa16f7d8f4d0";
|
|
1873
|
-
function validate$
|
|
1873
|
+
function validate$1g(obj, path = 'ManagedContentJobCollectionRepresentation') {
|
|
1874
1874
|
const v_error = (() => {
|
|
1875
1875
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1876
1876
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2024,7 +2024,7 @@ function equals$F(existing, incoming) {
|
|
|
2024
2024
|
}
|
|
2025
2025
|
const ingest$B = function ManagedContentJobCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
2026
2026
|
if (process.env.NODE_ENV !== 'production') {
|
|
2027
|
-
const validateError = validate$
|
|
2027
|
+
const validateError = validate$1g(input);
|
|
2028
2028
|
if (validateError !== null) {
|
|
2029
2029
|
throw validateError;
|
|
2030
2030
|
}
|
|
@@ -2330,7 +2330,7 @@ const getCMSJobForSpaceAdapterFactory = (luvio) => function CMSAuthoring__getCMS
|
|
|
2330
2330
|
buildCachedSnapshotCachePolicy$s, buildNetworkSnapshotCachePolicy$s);
|
|
2331
2331
|
};
|
|
2332
2332
|
|
|
2333
|
-
function validate$
|
|
2333
|
+
function validate$1f(obj, path = 'ManagedContentSpaceFolderItemV1Representation') {
|
|
2334
2334
|
const v_error = (() => {
|
|
2335
2335
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2336
2336
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2420,7 +2420,7 @@ function validate$1i(obj, path = 'ManagedContentSpaceFolderItemV1Representation'
|
|
|
2420
2420
|
|
|
2421
2421
|
const TTL$A = 100;
|
|
2422
2422
|
const VERSION$E = "df1370994ae2e57cdebc5f5125930e2d";
|
|
2423
|
-
function validate$
|
|
2423
|
+
function validate$1e(obj, path = 'ManagedContentSpaceFolderItemV1CollectionRepresentation') {
|
|
2424
2424
|
const v_error = (() => {
|
|
2425
2425
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2426
2426
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2438,7 +2438,7 @@ function validate$1h(obj, path = 'ManagedContentSpaceFolderItemV1CollectionRepre
|
|
|
2438
2438
|
for (let i = 0; i < obj_folderItems.length; i++) {
|
|
2439
2439
|
const obj_folderItems_item = obj_folderItems[i];
|
|
2440
2440
|
const path_folderItems_item = path_folderItems + '[' + i + ']';
|
|
2441
|
-
const referencepath_folderItems_itemValidationError = validate$
|
|
2441
|
+
const referencepath_folderItems_itemValidationError = validate$1f(obj_folderItems_item, path_folderItems_item);
|
|
2442
2442
|
if (referencepath_folderItems_itemValidationError !== null) {
|
|
2443
2443
|
let message = 'Object doesn\'t match ManagedContentSpaceFolderItemV1Representation (at "' + path_folderItems_item + '")\n';
|
|
2444
2444
|
message += referencepath_folderItems_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2494,7 +2494,7 @@ function equals$E(existing, incoming) {
|
|
|
2494
2494
|
}
|
|
2495
2495
|
const ingest$A = function ManagedContentSpaceFolderItemV1CollectionRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
2496
2496
|
if (process.env.NODE_ENV !== 'production') {
|
|
2497
|
-
const validateError = validate$
|
|
2497
|
+
const validateError = validate$1e(input);
|
|
2498
2498
|
if (validateError !== null) {
|
|
2499
2499
|
throw validateError;
|
|
2500
2500
|
}
|
|
@@ -2662,7 +2662,7 @@ const getManagedContentSpaceFolderItemsV1AdapterFactory = (luvio) => function CM
|
|
|
2662
2662
|
buildCachedSnapshotCachePolicy$r, buildNetworkSnapshotCachePolicy$r);
|
|
2663
2663
|
};
|
|
2664
2664
|
|
|
2665
|
-
function validate$
|
|
2665
|
+
function validate$1d(obj, path = 'ManagedContentCollectionItemTypeSummaryRepresentation') {
|
|
2666
2666
|
const v_error = (() => {
|
|
2667
2667
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2668
2668
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2681,7 +2681,7 @@ function validate$1g(obj, path = 'ManagedContentCollectionItemTypeSummaryReprese
|
|
|
2681
2681
|
return v_error === undefined ? null : v_error;
|
|
2682
2682
|
}
|
|
2683
2683
|
|
|
2684
|
-
function validate$
|
|
2684
|
+
function validate$1c(obj, path = 'ManagedContentCollectionItemRepresentation') {
|
|
2685
2685
|
const v_error = (() => {
|
|
2686
2686
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2687
2687
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2702,7 +2702,7 @@ function validate$1f(obj, path = 'ManagedContentCollectionItemRepresentation') {
|
|
|
2702
2702
|
}
|
|
2703
2703
|
const obj_contentType = obj.contentType;
|
|
2704
2704
|
const path_contentType = path + '.contentType';
|
|
2705
|
-
const referencepath_contentTypeValidationError = validate$
|
|
2705
|
+
const referencepath_contentTypeValidationError = validate$1d(obj_contentType, path_contentType);
|
|
2706
2706
|
if (referencepath_contentTypeValidationError !== null) {
|
|
2707
2707
|
let message = 'Object doesn\'t match ManagedContentCollectionItemTypeSummaryRepresentation (at "' + path_contentType + '")\n';
|
|
2708
2708
|
message += referencepath_contentTypeValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2724,7 +2724,7 @@ function validate$1f(obj, path = 'ManagedContentCollectionItemRepresentation') {
|
|
|
2724
2724
|
|
|
2725
2725
|
const TTL$z = 100;
|
|
2726
2726
|
const VERSION$D = "04fc59c4443f12c021c76e1603338c85";
|
|
2727
|
-
function validate$
|
|
2727
|
+
function validate$1b(obj, path = 'ManagedContentCollectionDetailRepresentation') {
|
|
2728
2728
|
const v_error = (() => {
|
|
2729
2729
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2730
2730
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2736,7 +2736,7 @@ function validate$1e(obj, path = 'ManagedContentCollectionDetailRepresentation')
|
|
|
2736
2736
|
}
|
|
2737
2737
|
const obj_collectionType = obj.collectionType;
|
|
2738
2738
|
const path_collectionType = path + '.collectionType';
|
|
2739
|
-
const referencepath_collectionTypeValidationError = validate$
|
|
2739
|
+
const referencepath_collectionTypeValidationError = validate$1q(obj_collectionType, path_collectionType);
|
|
2740
2740
|
if (referencepath_collectionTypeValidationError !== null) {
|
|
2741
2741
|
let message = 'Object doesn\'t match ManagedContentTypeSummaryRepresentation (at "' + path_collectionType + '")\n';
|
|
2742
2742
|
message += referencepath_collectionTypeValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2765,7 +2765,7 @@ function validate$1e(obj, path = 'ManagedContentCollectionDetailRepresentation')
|
|
|
2765
2765
|
for (let i = 0; i < obj_items.length; i++) {
|
|
2766
2766
|
const obj_items_item = obj_items[i];
|
|
2767
2767
|
const path_items_item = path_items + '[' + i + ']';
|
|
2768
|
-
const referencepath_items_itemValidationError = validate$
|
|
2768
|
+
const referencepath_items_itemValidationError = validate$1c(obj_items_item, path_items_item);
|
|
2769
2769
|
if (referencepath_items_itemValidationError !== null) {
|
|
2770
2770
|
let message = 'Object doesn\'t match ManagedContentCollectionItemRepresentation (at "' + path_items_item + '")\n';
|
|
2771
2771
|
message += referencepath_items_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2836,7 +2836,7 @@ function equals$D(existing, incoming) {
|
|
|
2836
2836
|
}
|
|
2837
2837
|
const ingest$z = function ManagedContentCollectionDetailRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
2838
2838
|
if (process.env.NODE_ENV !== 'production') {
|
|
2839
|
-
const validateError = validate$
|
|
2839
|
+
const validateError = validate$1b(input);
|
|
2840
2840
|
if (validateError !== null) {
|
|
2841
2841
|
throw validateError;
|
|
2842
2842
|
}
|
|
@@ -2999,7 +2999,7 @@ const getCollectionItemsAdapterFactory = (luvio) => function CMSAuthoring__getCo
|
|
|
2999
2999
|
buildCachedSnapshotCachePolicy$q, buildNetworkSnapshotCachePolicy$q);
|
|
3000
3000
|
};
|
|
3001
3001
|
|
|
3002
|
-
function validate$
|
|
3002
|
+
function validate$1a(obj, path = 'ManagedContentTranslationV2RequestInputRep') {
|
|
3003
3003
|
const v_error = (() => {
|
|
3004
3004
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3005
3005
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3071,7 +3071,7 @@ function validate$1d(obj, path = 'ManagedContentTranslationV2RequestInputRep') {
|
|
|
3071
3071
|
|
|
3072
3072
|
const TTL$y = 100;
|
|
3073
3073
|
const VERSION$C = "52e643b998d6763482c6d74542b38408";
|
|
3074
|
-
function validate$
|
|
3074
|
+
function validate$19(obj, path = 'ManagedContentTranslationV2Representation') {
|
|
3075
3075
|
const v_error = (() => {
|
|
3076
3076
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3077
3077
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3257,7 +3257,7 @@ function equals$C(existing, incoming) {
|
|
|
3257
3257
|
}
|
|
3258
3258
|
const ingest$y = function ManagedContentTranslationV2RepresentationIngest(input, path, luvio, store, timestamp) {
|
|
3259
3259
|
if (process.env.NODE_ENV !== 'production') {
|
|
3260
|
-
const validateError = validate$
|
|
3260
|
+
const validateError = validate$19(input);
|
|
3261
3261
|
if (validateError !== null) {
|
|
3262
3262
|
throw validateError;
|
|
3263
3263
|
}
|
|
@@ -3325,7 +3325,7 @@ function typeCheckConfig$J(untrustedConfig) {
|
|
|
3325
3325
|
const config = {};
|
|
3326
3326
|
typeCheckConfig$Q(untrustedConfig, config, createTranslationV2Job_ConfigPropertyMetadata);
|
|
3327
3327
|
const untrustedConfig_translationV2Request = untrustedConfig.translationV2Request;
|
|
3328
|
-
const referenceManagedContentTranslationV2RequestInputRepValidationError = validate$
|
|
3328
|
+
const referenceManagedContentTranslationV2RequestInputRepValidationError = validate$1a(untrustedConfig_translationV2Request);
|
|
3329
3329
|
if (referenceManagedContentTranslationV2RequestInputRepValidationError === null) {
|
|
3330
3330
|
config.translationV2Request = untrustedConfig_translationV2Request;
|
|
3331
3331
|
}
|
|
@@ -3373,7 +3373,7 @@ const createTranslationV2JobAdapterFactory = (luvio) => {
|
|
|
3373
3373
|
};
|
|
3374
3374
|
};
|
|
3375
3375
|
|
|
3376
|
-
function validate$
|
|
3376
|
+
function validate$18(obj, path = 'ManagedContentInputRepresentation') {
|
|
3377
3377
|
const v_error = (() => {
|
|
3378
3378
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3379
3379
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3434,7 +3434,7 @@ function validate$1b(obj, path = 'ManagedContentInputRepresentation') {
|
|
|
3434
3434
|
return v_error === undefined ? null : v_error;
|
|
3435
3435
|
}
|
|
3436
3436
|
|
|
3437
|
-
function validate$
|
|
3437
|
+
function validate$17(obj, path = 'ManagedContentSpaceSummaryRepresentation') {
|
|
3438
3438
|
const v_error = (() => {
|
|
3439
3439
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3440
3440
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3453,74 +3453,6 @@ function validate$1a(obj, path = 'ManagedContentSpaceSummaryRepresentation') {
|
|
|
3453
3453
|
return v_error === undefined ? null : v_error;
|
|
3454
3454
|
}
|
|
3455
3455
|
|
|
3456
|
-
function validate$19(obj, path = 'ManagedContentSchemaValidationErrorBlockSummaryRepresentation') {
|
|
3457
|
-
const v_error = (() => {
|
|
3458
|
-
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3459
|
-
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
3460
|
-
}
|
|
3461
|
-
const obj_blockId = obj.blockId;
|
|
3462
|
-
const path_blockId = path + '.blockId';
|
|
3463
|
-
if (typeof obj_blockId !== 'string') {
|
|
3464
|
-
return new TypeError('Expected "string" but received "' + typeof obj_blockId + '" (at "' + path_blockId + '")');
|
|
3465
|
-
}
|
|
3466
|
-
const obj_blockLabel = obj.blockLabel;
|
|
3467
|
-
const path_blockLabel = path + '.blockLabel';
|
|
3468
|
-
if (typeof obj_blockLabel !== 'string') {
|
|
3469
|
-
return new TypeError('Expected "string" but received "' + typeof obj_blockLabel + '" (at "' + path_blockLabel + '")');
|
|
3470
|
-
}
|
|
3471
|
-
})();
|
|
3472
|
-
return v_error === undefined ? null : v_error;
|
|
3473
|
-
}
|
|
3474
|
-
|
|
3475
|
-
function validate$18(obj, path = 'ManagedContentSchemaValidationErrorRepresentation') {
|
|
3476
|
-
const v_error = (() => {
|
|
3477
|
-
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3478
|
-
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
3479
|
-
}
|
|
3480
|
-
const obj_block = obj.block;
|
|
3481
|
-
const path_block = path + '.block';
|
|
3482
|
-
const referencepath_blockValidationError = validate$19(obj_block, path_block);
|
|
3483
|
-
if (referencepath_blockValidationError !== null) {
|
|
3484
|
-
let message = 'Object doesn\'t match ManagedContentSchemaValidationErrorBlockSummaryRepresentation (at "' + path_block + '")\n';
|
|
3485
|
-
message += referencepath_blockValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
3486
|
-
return new TypeError(message);
|
|
3487
|
-
}
|
|
3488
|
-
const obj_message = obj.message;
|
|
3489
|
-
const path_message = path + '.message';
|
|
3490
|
-
if (typeof obj_message !== 'string') {
|
|
3491
|
-
return new TypeError('Expected "string" but received "' + typeof obj_message + '" (at "' + path_message + '")');
|
|
3492
|
-
}
|
|
3493
|
-
const obj_propertyPath = obj.propertyPath;
|
|
3494
|
-
const path_propertyPath = path + '.propertyPath';
|
|
3495
|
-
if (typeof obj_propertyPath !== 'string') {
|
|
3496
|
-
return new TypeError('Expected "string" but received "' + typeof obj_propertyPath + '" (at "' + path_propertyPath + '")');
|
|
3497
|
-
}
|
|
3498
|
-
})();
|
|
3499
|
-
return v_error === undefined ? null : v_error;
|
|
3500
|
-
}
|
|
3501
|
-
|
|
3502
|
-
function validate$17(obj, path = 'ManagedContentErrorRepresentation') {
|
|
3503
|
-
const v_error = (() => {
|
|
3504
|
-
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3505
|
-
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
3506
|
-
}
|
|
3507
|
-
const obj_errorCode = obj.errorCode;
|
|
3508
|
-
const path_errorCode = path + '.errorCode';
|
|
3509
|
-
if (typeof obj_errorCode !== 'string') {
|
|
3510
|
-
return new TypeError('Expected "string" but received "' + typeof obj_errorCode + '" (at "' + path_errorCode + '")');
|
|
3511
|
-
}
|
|
3512
|
-
const obj_errorMessage = obj.errorMessage;
|
|
3513
|
-
const path_errorMessage = path + '.errorMessage';
|
|
3514
|
-
const referencepath_errorMessageValidationError = validate$18(obj_errorMessage, path_errorMessage);
|
|
3515
|
-
if (referencepath_errorMessageValidationError !== null) {
|
|
3516
|
-
let message = 'Object doesn\'t match ManagedContentSchemaValidationErrorRepresentation (at "' + path_errorMessage + '")\n';
|
|
3517
|
-
message += referencepath_errorMessageValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
3518
|
-
return new TypeError(message);
|
|
3519
|
-
}
|
|
3520
|
-
})();
|
|
3521
|
-
return v_error === undefined ? null : v_error;
|
|
3522
|
-
}
|
|
3523
|
-
|
|
3524
3456
|
function validate$16(obj, path = 'ManagedContentFolderSummaryRepresentation') {
|
|
3525
3457
|
const v_error = (() => {
|
|
3526
3458
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -3560,7 +3492,7 @@ function validate$15(obj, path = 'ManagedContentVariantStatusRepresentation') {
|
|
|
3560
3492
|
}
|
|
3561
3493
|
|
|
3562
3494
|
const TTL$x = 100;
|
|
3563
|
-
const VERSION$B = "
|
|
3495
|
+
const VERSION$B = "6a11daeb9fe5ea23da2a7b4eb368581a";
|
|
3564
3496
|
function validate$14(obj, path = 'ManagedContentDocumentRepresentation') {
|
|
3565
3497
|
const v_error = (() => {
|
|
3566
3498
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -3615,7 +3547,7 @@ function validate$14(obj, path = 'ManagedContentDocumentRepresentation') {
|
|
|
3615
3547
|
}
|
|
3616
3548
|
const obj_contentSpace = obj.contentSpace;
|
|
3617
3549
|
const path_contentSpace = path + '.contentSpace';
|
|
3618
|
-
const referencepath_contentSpaceValidationError = validate$
|
|
3550
|
+
const referencepath_contentSpaceValidationError = validate$17(obj_contentSpace, path_contentSpace);
|
|
3619
3551
|
if (referencepath_contentSpaceValidationError !== null) {
|
|
3620
3552
|
let message = 'Object doesn\'t match ManagedContentSpaceSummaryRepresentation (at "' + path_contentSpace + '")\n';
|
|
3621
3553
|
message += referencepath_contentSpaceValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3623,7 +3555,7 @@ function validate$14(obj, path = 'ManagedContentDocumentRepresentation') {
|
|
|
3623
3555
|
}
|
|
3624
3556
|
const obj_contentType = obj.contentType;
|
|
3625
3557
|
const path_contentType = path + '.contentType';
|
|
3626
|
-
const referencepath_contentTypeValidationError = validate$
|
|
3558
|
+
const referencepath_contentTypeValidationError = validate$1q(obj_contentType, path_contentType);
|
|
3627
3559
|
if (referencepath_contentTypeValidationError !== null) {
|
|
3628
3560
|
let message = 'Object doesn\'t match ManagedContentTypeSummaryRepresentation (at "' + path_contentType + '")\n';
|
|
3629
3561
|
message += referencepath_contentTypeValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3657,7 +3589,7 @@ function validate$14(obj, path = 'ManagedContentDocumentRepresentation') {
|
|
|
3657
3589
|
}
|
|
3658
3590
|
const obj_createdBy = obj.createdBy;
|
|
3659
3591
|
const path_createdBy = path + '.createdBy';
|
|
3660
|
-
const referencepath_createdByValidationError = validate$
|
|
3592
|
+
const referencepath_createdByValidationError = validate$1n(obj_createdBy, path_createdBy);
|
|
3661
3593
|
if (referencepath_createdByValidationError !== null) {
|
|
3662
3594
|
let message = 'Object doesn\'t match ManagedContentUserSummaryRepresentation (at "' + path_createdBy + '")\n';
|
|
3663
3595
|
message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3668,23 +3600,6 @@ function validate$14(obj, path = 'ManagedContentDocumentRepresentation') {
|
|
|
3668
3600
|
if (typeof obj_createdDate !== 'string') {
|
|
3669
3601
|
return new TypeError('Expected "string" but received "' + typeof obj_createdDate + '" (at "' + path_createdDate + '")');
|
|
3670
3602
|
}
|
|
3671
|
-
if (obj.errors !== undefined) {
|
|
3672
|
-
const obj_errors = obj.errors;
|
|
3673
|
-
const path_errors = path + '.errors';
|
|
3674
|
-
if (!ArrayIsArray(obj_errors)) {
|
|
3675
|
-
return new TypeError('Expected "array" but received "' + typeof obj_errors + '" (at "' + path_errors + '")');
|
|
3676
|
-
}
|
|
3677
|
-
for (let i = 0; i < obj_errors.length; i++) {
|
|
3678
|
-
const obj_errors_item = obj_errors[i];
|
|
3679
|
-
const path_errors_item = path_errors + '[' + i + ']';
|
|
3680
|
-
const referencepath_errors_itemValidationError = validate$17(obj_errors_item, path_errors_item);
|
|
3681
|
-
if (referencepath_errors_itemValidationError !== null) {
|
|
3682
|
-
let message = 'Object doesn\'t match ManagedContentErrorRepresentation (at "' + path_errors_item + '")\n';
|
|
3683
|
-
message += referencepath_errors_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
3684
|
-
return new TypeError(message);
|
|
3685
|
-
}
|
|
3686
|
-
}
|
|
3687
|
-
}
|
|
3688
3603
|
const obj_folder = obj.folder;
|
|
3689
3604
|
const path_folder = path + '.folder';
|
|
3690
3605
|
const referencepath_folderValidationError = validate$16(obj_folder, path_folder);
|
|
@@ -3705,7 +3620,7 @@ function validate$14(obj, path = 'ManagedContentDocumentRepresentation') {
|
|
|
3705
3620
|
}
|
|
3706
3621
|
const obj_lastModifiedBy = obj.lastModifiedBy;
|
|
3707
3622
|
const path_lastModifiedBy = path + '.lastModifiedBy';
|
|
3708
|
-
const referencepath_lastModifiedByValidationError = validate$
|
|
3623
|
+
const referencepath_lastModifiedByValidationError = validate$1n(obj_lastModifiedBy, path_lastModifiedBy);
|
|
3709
3624
|
if (referencepath_lastModifiedByValidationError !== null) {
|
|
3710
3625
|
let message = 'Object doesn\'t match ManagedContentUserSummaryRepresentation (at "' + path_lastModifiedBy + '")\n';
|
|
3711
3626
|
message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3883,7 +3798,7 @@ function createResourceRequest$I(config) {
|
|
|
3883
3798
|
method: 'post',
|
|
3884
3799
|
body: config.body,
|
|
3885
3800
|
urlParams: {},
|
|
3886
|
-
queryParams:
|
|
3801
|
+
queryParams: {},
|
|
3887
3802
|
headers,
|
|
3888
3803
|
priority: 'normal',
|
|
3889
3804
|
};
|
|
@@ -3895,16 +3810,14 @@ function ingestSuccess$I(luvio, resourceParams, response) {
|
|
|
3895
3810
|
|
|
3896
3811
|
const adapterName$I = 'createManagedContent';
|
|
3897
3812
|
const createManagedContent_ConfigPropertyMetadata = [
|
|
3898
|
-
generateParamConfigMetadata('saveMode', false, 1 /* QueryParameter */, 0 /* String */),
|
|
3899
3813
|
generateParamConfigMetadata('ManagedContentInputParam', true, 2 /* Body */, 4 /* Unsupported */),
|
|
3900
3814
|
];
|
|
3901
3815
|
const createManagedContent_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$I, createManagedContent_ConfigPropertyMetadata);
|
|
3902
3816
|
const createResourceParams$I = /*#__PURE__*/ createResourceParams$Q(createManagedContent_ConfigPropertyMetadata);
|
|
3903
3817
|
function typeCheckConfig$I(untrustedConfig) {
|
|
3904
3818
|
const config = {};
|
|
3905
|
-
typeCheckConfig$Q(untrustedConfig, config, createManagedContent_ConfigPropertyMetadata);
|
|
3906
3819
|
const untrustedConfig_ManagedContentInputParam = untrustedConfig.ManagedContentInputParam;
|
|
3907
|
-
const referenceManagedContentInputRepresentationValidationError = validate$
|
|
3820
|
+
const referenceManagedContentInputRepresentationValidationError = validate$18(untrustedConfig_ManagedContentInputParam);
|
|
3908
3821
|
if (referenceManagedContentInputRepresentationValidationError === null) {
|
|
3909
3822
|
config.ManagedContentInputParam = untrustedConfig_ManagedContentInputParam;
|
|
3910
3823
|
}
|
|
@@ -4418,7 +4331,7 @@ function validate$11(obj, path = 'ManagedContentVariantInputRepresentation') {
|
|
|
4418
4331
|
}
|
|
4419
4332
|
|
|
4420
4333
|
const TTL$u = 3600000;
|
|
4421
|
-
const VERSION$y = "
|
|
4334
|
+
const VERSION$y = "7752c6a8bb6b113a02bfde83f39e5957";
|
|
4422
4335
|
function validate$10(obj, path = 'ManagedContentVariantRepresentation') {
|
|
4423
4336
|
const v_error = (() => {
|
|
4424
4337
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -4445,7 +4358,7 @@ function validate$10(obj, path = 'ManagedContentVariantRepresentation') {
|
|
|
4445
4358
|
}
|
|
4446
4359
|
const obj_contentSpace = obj.contentSpace;
|
|
4447
4360
|
const path_contentSpace = path + '.contentSpace';
|
|
4448
|
-
const referencepath_contentSpaceValidationError = validate$
|
|
4361
|
+
const referencepath_contentSpaceValidationError = validate$17(obj_contentSpace, path_contentSpace);
|
|
4449
4362
|
if (referencepath_contentSpaceValidationError !== null) {
|
|
4450
4363
|
let message = 'Object doesn\'t match ManagedContentSpaceSummaryRepresentation (at "' + path_contentSpace + '")\n';
|
|
4451
4364
|
message += referencepath_contentSpaceValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4453,7 +4366,7 @@ function validate$10(obj, path = 'ManagedContentVariantRepresentation') {
|
|
|
4453
4366
|
}
|
|
4454
4367
|
const obj_contentType = obj.contentType;
|
|
4455
4368
|
const path_contentType = path + '.contentType';
|
|
4456
|
-
const referencepath_contentTypeValidationError = validate$
|
|
4369
|
+
const referencepath_contentTypeValidationError = validate$1q(obj_contentType, path_contentType);
|
|
4457
4370
|
if (referencepath_contentTypeValidationError !== null) {
|
|
4458
4371
|
let message = 'Object doesn\'t match ManagedContentTypeSummaryRepresentation (at "' + path_contentType + '")\n';
|
|
4459
4372
|
message += referencepath_contentTypeValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4461,7 +4374,7 @@ function validate$10(obj, path = 'ManagedContentVariantRepresentation') {
|
|
|
4461
4374
|
}
|
|
4462
4375
|
const obj_createdBy = obj.createdBy;
|
|
4463
4376
|
const path_createdBy = path + '.createdBy';
|
|
4464
|
-
const referencepath_createdByValidationError = validate$
|
|
4377
|
+
const referencepath_createdByValidationError = validate$1n(obj_createdBy, path_createdBy);
|
|
4465
4378
|
if (referencepath_createdByValidationError !== null) {
|
|
4466
4379
|
let message = 'Object doesn\'t match ManagedContentUserSummaryRepresentation (at "' + path_createdBy + '")\n';
|
|
4467
4380
|
message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4472,23 +4385,6 @@ function validate$10(obj, path = 'ManagedContentVariantRepresentation') {
|
|
|
4472
4385
|
if (typeof obj_createdDate !== 'string') {
|
|
4473
4386
|
return new TypeError('Expected "string" but received "' + typeof obj_createdDate + '" (at "' + path_createdDate + '")');
|
|
4474
4387
|
}
|
|
4475
|
-
if (obj.errors !== undefined) {
|
|
4476
|
-
const obj_errors = obj.errors;
|
|
4477
|
-
const path_errors = path + '.errors';
|
|
4478
|
-
if (!ArrayIsArray(obj_errors)) {
|
|
4479
|
-
return new TypeError('Expected "array" but received "' + typeof obj_errors + '" (at "' + path_errors + '")');
|
|
4480
|
-
}
|
|
4481
|
-
for (let i = 0; i < obj_errors.length; i++) {
|
|
4482
|
-
const obj_errors_item = obj_errors[i];
|
|
4483
|
-
const path_errors_item = path_errors + '[' + i + ']';
|
|
4484
|
-
const referencepath_errors_itemValidationError = validate$17(obj_errors_item, path_errors_item);
|
|
4485
|
-
if (referencepath_errors_itemValidationError !== null) {
|
|
4486
|
-
let message = 'Object doesn\'t match ManagedContentErrorRepresentation (at "' + path_errors_item + '")\n';
|
|
4487
|
-
message += referencepath_errors_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
4488
|
-
return new TypeError(message);
|
|
4489
|
-
}
|
|
4490
|
-
}
|
|
4491
|
-
}
|
|
4492
4388
|
const obj_folder = obj.folder;
|
|
4493
4389
|
const path_folder = path + '.folder';
|
|
4494
4390
|
const referencepath_folderValidationError = validate$16(obj_folder, path_folder);
|
|
@@ -4509,7 +4405,7 @@ function validate$10(obj, path = 'ManagedContentVariantRepresentation') {
|
|
|
4509
4405
|
}
|
|
4510
4406
|
const obj_lastModifiedBy = obj.lastModifiedBy;
|
|
4511
4407
|
const path_lastModifiedBy = path + '.lastModifiedBy';
|
|
4512
|
-
const referencepath_lastModifiedByValidationError = validate$
|
|
4408
|
+
const referencepath_lastModifiedByValidationError = validate$1n(obj_lastModifiedBy, path_lastModifiedBy);
|
|
4513
4409
|
if (referencepath_lastModifiedByValidationError !== null) {
|
|
4514
4410
|
let message = 'Object doesn\'t match ManagedContentUserSummaryRepresentation (at "' + path_lastModifiedBy + '")\n';
|
|
4515
4411
|
message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4553,13 +4449,6 @@ function validate$10(obj, path = 'ManagedContentVariantRepresentation') {
|
|
|
4553
4449
|
if (typeof obj_urlName !== 'string') {
|
|
4554
4450
|
return new TypeError('Expected "string" but received "' + typeof obj_urlName + '" (at "' + path_urlName + '")');
|
|
4555
4451
|
}
|
|
4556
|
-
if (obj.validationStatus !== undefined) {
|
|
4557
|
-
const obj_validationStatus = obj.validationStatus;
|
|
4558
|
-
const path_validationStatus = path + '.validationStatus';
|
|
4559
|
-
if (typeof obj_validationStatus !== 'string') {
|
|
4560
|
-
return new TypeError('Expected "string" but received "' + typeof obj_validationStatus + '" (at "' + path_validationStatus + '")');
|
|
4561
|
-
}
|
|
4562
|
-
}
|
|
4563
4452
|
})();
|
|
4564
4453
|
return v_error === undefined ? null : v_error;
|
|
4565
4454
|
}
|
|
@@ -4998,7 +4887,7 @@ function createResourceRequest$C(config) {
|
|
|
4998
4887
|
method: 'put',
|
|
4999
4888
|
body: config.body,
|
|
5000
4889
|
urlParams: config.urlParams,
|
|
5001
|
-
queryParams:
|
|
4890
|
+
queryParams: {},
|
|
5002
4891
|
headers,
|
|
5003
4892
|
priority: 'normal',
|
|
5004
4893
|
};
|
|
@@ -5007,7 +4896,6 @@ function createResourceRequest$C(config) {
|
|
|
5007
4896
|
const adapterName$C = 'replaceManagedContentVariant';
|
|
5008
4897
|
const replaceManagedContentVariant_ConfigPropertyMetadata = [
|
|
5009
4898
|
generateParamConfigMetadata('variantId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
5010
|
-
generateParamConfigMetadata('saveMode', false, 1 /* QueryParameter */, 0 /* String */),
|
|
5011
4899
|
generateParamConfigMetadata('ManagedContentVariantInputParam', true, 2 /* Body */, 4 /* Unsupported */),
|
|
5012
4900
|
];
|
|
5013
4901
|
const replaceManagedContentVariant_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$C, replaceManagedContentVariant_ConfigPropertyMetadata);
|
|
@@ -5071,7 +4959,7 @@ function validate$_(obj, path = 'ManagedContentVariantVersionRepresentation') {
|
|
|
5071
4959
|
}
|
|
5072
4960
|
const obj_createdBy = obj.createdBy;
|
|
5073
4961
|
const path_createdBy = path + '.createdBy';
|
|
5074
|
-
const referencepath_createdByValidationError = validate$
|
|
4962
|
+
const referencepath_createdByValidationError = validate$1n(obj_createdBy, path_createdBy);
|
|
5075
4963
|
if (referencepath_createdByValidationError !== null) {
|
|
5076
4964
|
let message = 'Object doesn\'t match ManagedContentUserSummaryRepresentation (at "' + path_createdBy + '")\n';
|
|
5077
4965
|
message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -5084,7 +4972,7 @@ function validate$_(obj, path = 'ManagedContentVariantVersionRepresentation') {
|
|
|
5084
4972
|
}
|
|
5085
4973
|
const obj_lastModifiedBy = obj.lastModifiedBy;
|
|
5086
4974
|
const path_lastModifiedBy = path + '.lastModifiedBy';
|
|
5087
|
-
const referencepath_lastModifiedByValidationError = validate$
|
|
4975
|
+
const referencepath_lastModifiedByValidationError = validate$1n(obj_lastModifiedBy, path_lastModifiedBy);
|
|
5088
4976
|
if (referencepath_lastModifiedByValidationError !== null) {
|
|
5089
4977
|
let message = 'Object doesn\'t match ManagedContentUserSummaryRepresentation (at "' + path_lastModifiedBy + '")\n';
|
|
5090
4978
|
message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -7657,7 +7545,7 @@ function validate$H(obj, path = 'AbstractManagedContentReferencedByItemRepresent
|
|
|
7657
7545
|
const path_contentType = path + '.contentType';
|
|
7658
7546
|
let obj_contentType_union0 = null;
|
|
7659
7547
|
const obj_contentType_union0_error = (() => {
|
|
7660
|
-
const referencepath_contentTypeValidationError = validate$
|
|
7548
|
+
const referencepath_contentTypeValidationError = validate$1q(obj_contentType, path_contentType);
|
|
7661
7549
|
if (referencepath_contentTypeValidationError !== null) {
|
|
7662
7550
|
let message = 'Object doesn\'t match ManagedContentTypeSummaryRepresentation (at "' + path_contentType + '")\n';
|
|
7663
7551
|
message += referencepath_contentTypeValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -8037,7 +7925,7 @@ function validate$E(obj, path = 'ManagedContentVariantReferenceDetailsRepresenta
|
|
|
8037
7925
|
}
|
|
8038
7926
|
const obj_contentType = obj.contentType;
|
|
8039
7927
|
const path_contentType = path + '.contentType';
|
|
8040
|
-
const referencepath_contentTypeValidationError = validate$
|
|
7928
|
+
const referencepath_contentTypeValidationError = validate$1q(obj_contentType, path_contentType);
|
|
8041
7929
|
if (referencepath_contentTypeValidationError !== null) {
|
|
8042
7930
|
let message = 'Object doesn\'t match ManagedContentTypeSummaryRepresentation (at "' + path_contentType + '")\n';
|
|
8043
7931
|
message += referencepath_contentTypeValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -8045,7 +7933,7 @@ function validate$E(obj, path = 'ManagedContentVariantReferenceDetailsRepresenta
|
|
|
8045
7933
|
}
|
|
8046
7934
|
const obj_createdBy = obj.createdBy;
|
|
8047
7935
|
const path_createdBy = path + '.createdBy';
|
|
8048
|
-
const referencepath_createdByValidationError = validate$
|
|
7936
|
+
const referencepath_createdByValidationError = validate$1n(obj_createdBy, path_createdBy);
|
|
8049
7937
|
if (referencepath_createdByValidationError !== null) {
|
|
8050
7938
|
let message = 'Object doesn\'t match ManagedContentUserSummaryRepresentation (at "' + path_createdBy + '")\n';
|
|
8051
7939
|
message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -8071,7 +7959,7 @@ function validate$E(obj, path = 'ManagedContentVariantReferenceDetailsRepresenta
|
|
|
8071
7959
|
}
|
|
8072
7960
|
const obj_lastModifiedBy = obj.lastModifiedBy;
|
|
8073
7961
|
const path_lastModifiedBy = path + '.lastModifiedBy';
|
|
8074
|
-
const referencepath_lastModifiedByValidationError = validate$
|
|
7962
|
+
const referencepath_lastModifiedByValidationError = validate$1n(obj_lastModifiedBy, path_lastModifiedBy);
|
|
8075
7963
|
if (referencepath_lastModifiedByValidationError !== null) {
|
|
8076
7964
|
let message = 'Object doesn\'t match ManagedContentUserSummaryRepresentation (at "' + path_lastModifiedBy + '")\n';
|
|
8077
7965
|
message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -9574,7 +9462,7 @@ function validate$w(obj, path = 'ManagedContentSpaceFolderItemRepresentation') {
|
|
|
9574
9462
|
if (obj.contentType !== undefined) {
|
|
9575
9463
|
const obj_contentType = obj.contentType;
|
|
9576
9464
|
const path_contentType = path + '.contentType';
|
|
9577
|
-
const referencepath_contentTypeValidationError = validate$
|
|
9465
|
+
const referencepath_contentTypeValidationError = validate$1q(obj_contentType, path_contentType);
|
|
9578
9466
|
if (referencepath_contentTypeValidationError !== null) {
|
|
9579
9467
|
let message = 'Object doesn\'t match ManagedContentTypeSummaryRepresentation (at "' + path_contentType + '")\n';
|
|
9580
9468
|
message += referencepath_contentTypeValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -10526,7 +10414,7 @@ function validate$p(obj, path = 'AbstractManagedContentSearchResultRepresentatio
|
|
|
10526
10414
|
}
|
|
10527
10415
|
const obj_createdBy = obj.createdBy;
|
|
10528
10416
|
const path_createdBy = path + '.createdBy';
|
|
10529
|
-
const referencepath_createdByValidationError = validate$
|
|
10417
|
+
const referencepath_createdByValidationError = validate$1n(obj_createdBy, path_createdBy);
|
|
10530
10418
|
if (referencepath_createdByValidationError !== null) {
|
|
10531
10419
|
let message = 'Object doesn\'t match ManagedContentUserSummaryRepresentation (at "' + path_createdBy + '")\n';
|
|
10532
10420
|
message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -10552,7 +10440,7 @@ function validate$p(obj, path = 'AbstractManagedContentSearchResultRepresentatio
|
|
|
10552
10440
|
}
|
|
10553
10441
|
const obj_lastModifiedBy = obj.lastModifiedBy;
|
|
10554
10442
|
const path_lastModifiedBy = path + '.lastModifiedBy';
|
|
10555
|
-
const referencepath_lastModifiedByValidationError = validate$
|
|
10443
|
+
const referencepath_lastModifiedByValidationError = validate$1n(obj_lastModifiedBy, path_lastModifiedBy);
|
|
10556
10444
|
if (referencepath_lastModifiedByValidationError !== null) {
|
|
10557
10445
|
let message = 'Object doesn\'t match ManagedContentUserSummaryRepresentation (at "' + path_lastModifiedBy + '")\n';
|
|
10558
10446
|
message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -12083,7 +11971,7 @@ function validate$h(obj, path = 'ManagedContentSingleItemDocumentRepresentation'
|
|
|
12083
11971
|
}
|
|
12084
11972
|
const obj_contentSpace = obj.contentSpace;
|
|
12085
11973
|
const path_contentSpace = path + '.contentSpace';
|
|
12086
|
-
const referencepath_contentSpaceValidationError = validate$
|
|
11974
|
+
const referencepath_contentSpaceValidationError = validate$17(obj_contentSpace, path_contentSpace);
|
|
12087
11975
|
if (referencepath_contentSpaceValidationError !== null) {
|
|
12088
11976
|
let message = 'Object doesn\'t match ManagedContentSpaceSummaryRepresentation (at "' + path_contentSpace + '")\n';
|
|
12089
11977
|
message += referencepath_contentSpaceValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -12091,7 +11979,7 @@ function validate$h(obj, path = 'ManagedContentSingleItemDocumentRepresentation'
|
|
|
12091
11979
|
}
|
|
12092
11980
|
const obj_contentType = obj.contentType;
|
|
12093
11981
|
const path_contentType = path + '.contentType';
|
|
12094
|
-
const referencepath_contentTypeValidationError = validate$
|
|
11982
|
+
const referencepath_contentTypeValidationError = validate$1q(obj_contentType, path_contentType);
|
|
12095
11983
|
if (referencepath_contentTypeValidationError !== null) {
|
|
12096
11984
|
let message = 'Object doesn\'t match ManagedContentTypeSummaryRepresentation (at "' + path_contentType + '")\n';
|
|
12097
11985
|
message += referencepath_contentTypeValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -12125,7 +12013,7 @@ function validate$h(obj, path = 'ManagedContentSingleItemDocumentRepresentation'
|
|
|
12125
12013
|
}
|
|
12126
12014
|
const obj_createdBy = obj.createdBy;
|
|
12127
12015
|
const path_createdBy = path + '.createdBy';
|
|
12128
|
-
const referencepath_createdByValidationError = validate$
|
|
12016
|
+
const referencepath_createdByValidationError = validate$1n(obj_createdBy, path_createdBy);
|
|
12129
12017
|
if (referencepath_createdByValidationError !== null) {
|
|
12130
12018
|
let message = 'Object doesn\'t match ManagedContentUserSummaryRepresentation (at "' + path_createdBy + '")\n';
|
|
12131
12019
|
message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -12177,7 +12065,7 @@ function validate$h(obj, path = 'ManagedContentSingleItemDocumentRepresentation'
|
|
|
12177
12065
|
}
|
|
12178
12066
|
const obj_lastModifiedBy = obj.lastModifiedBy;
|
|
12179
12067
|
const path_lastModifiedBy = path + '.lastModifiedBy';
|
|
12180
|
-
const referencepath_lastModifiedByValidationError = validate$
|
|
12068
|
+
const referencepath_lastModifiedByValidationError = validate$1n(obj_lastModifiedBy, path_lastModifiedBy);
|
|
12181
12069
|
if (referencepath_lastModifiedByValidationError !== null) {
|
|
12182
12070
|
let message = 'Object doesn\'t match ManagedContentUserSummaryRepresentation (at "' + path_lastModifiedBy + '")\n';
|
|
12183
12071
|
message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -12839,7 +12727,7 @@ function validate$d(obj, path = 'ManagedContentTypeSummaryCollectionRepresentati
|
|
|
12839
12727
|
for (let i = 0; i < obj_contentTypes.length; i++) {
|
|
12840
12728
|
const obj_contentTypes_item = obj_contentTypes[i];
|
|
12841
12729
|
const path_contentTypes_item = path_contentTypes + '[' + i + ']';
|
|
12842
|
-
const referencepath_contentTypes_itemValidationError = validate$
|
|
12730
|
+
const referencepath_contentTypes_itemValidationError = validate$1q(obj_contentTypes_item, path_contentTypes_item);
|
|
12843
12731
|
if (referencepath_contentTypes_itemValidationError !== null) {
|
|
12844
12732
|
let message = 'Object doesn\'t match ManagedContentTypeSummaryRepresentation (at "' + path_contentTypes_item + '")\n';
|
|
12845
12733
|
message += referencepath_contentTypes_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|