@salesforce/lds-adapters-cms-authoring 1.398.0 → 1.400.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 +178 -66
- package/dist/es/es2018/types/src/generated/adapters/createManagedContent.d.ts +1 -0
- package/dist/es/es2018/types/src/generated/adapters/replaceManagedContentVariant.d.ts +1 -0
- package/dist/es/es2018/types/src/generated/resources/postConnectCmsContents.d.ts +3 -0
- package/dist/es/es2018/types/src/generated/resources/putConnectCmsContentsVariantsByVariantId.d.ts +3 -0
- package/dist/es/es2018/types/src/generated/types/ManagedContentDocumentRepresentation.d.ts +5 -1
- package/dist/es/es2018/types/src/generated/types/ManagedContentErrorRepresentation.d.ts +32 -0
- package/dist/es/es2018/types/src/generated/types/ManagedContentSchemaValidationErrorBlockSummaryRepresentation.d.ts +31 -0
- package/dist/es/es2018/types/src/generated/types/ManagedContentSchemaValidationErrorRepresentation.d.ts +35 -0
- package/dist/es/es2018/types/src/generated/types/ManagedContentVariantRepresentation.d.ts +8 -1
- package/package.json +4 -4
- package/sfdc/index.js +169 -57
- package/src/raml/api.raml +70 -0
- package/src/raml/luvio.raml +12 -6
|
@@ -94,7 +94,7 @@ function createLink(ref) {
|
|
|
94
94
|
}
|
|
95
95
|
|
|
96
96
|
const VERSION$O = "7297fb0dbfe8f664d76179a65037c290";
|
|
97
|
-
function validate$
|
|
97
|
+
function validate$1t(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$1s(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$1p(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$1t(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$1r(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$1o(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$1s(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$1q(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$1p(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$1m(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$1r(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$1m(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$1q(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$1p(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$1o(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$1o(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$1n(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$1n(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$1m(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$1l(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$1i(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$1m(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$1k(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$1h(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$1l(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$1k(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$1j(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$1j(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$1i(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$1f(obj, path = 'ManagedContentSpaceFolderItemV1Representation'
|
|
|
2420
2420
|
|
|
2421
2421
|
const TTL$A = 100;
|
|
2422
2422
|
const VERSION$E = "df1370994ae2e57cdebc5f5125930e2d";
|
|
2423
|
-
function validate$
|
|
2423
|
+
function validate$1h(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$1e(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$1i(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$1h(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$1g(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$1d(obj, path = 'ManagedContentCollectionItemTypeSummaryReprese
|
|
|
2681
2681
|
return v_error === undefined ? null : v_error;
|
|
2682
2682
|
}
|
|
2683
2683
|
|
|
2684
|
-
function validate$
|
|
2684
|
+
function validate$1f(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$1c(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$1g(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$1c(obj, path = 'ManagedContentCollectionItemRepresentation') {
|
|
|
2724
2724
|
|
|
2725
2725
|
const TTL$z = 100;
|
|
2726
2726
|
const VERSION$D = "04fc59c4443f12c021c76e1603338c85";
|
|
2727
|
-
function validate$
|
|
2727
|
+
function validate$1e(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$1b(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$1t(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$1b(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$1f(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$1e(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$1d(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$1a(obj, path = 'ManagedContentTranslationV2RequestInputRep') {
|
|
|
3071
3071
|
|
|
3072
3072
|
const TTL$y = 100;
|
|
3073
3073
|
const VERSION$C = "52e643b998d6763482c6d74542b38408";
|
|
3074
|
-
function validate$
|
|
3074
|
+
function validate$1c(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$1c(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$1d(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$1b(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$18(obj, path = 'ManagedContentInputRepresentation') {
|
|
|
3434
3434
|
return v_error === undefined ? null : v_error;
|
|
3435
3435
|
}
|
|
3436
3436
|
|
|
3437
|
-
function validate$
|
|
3437
|
+
function validate$1a(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,6 +3453,74 @@ function validate$17(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
|
+
|
|
3456
3524
|
function validate$16(obj, path = 'ManagedContentFolderSummaryRepresentation') {
|
|
3457
3525
|
const v_error = (() => {
|
|
3458
3526
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -3492,7 +3560,7 @@ function validate$15(obj, path = 'ManagedContentVariantStatusRepresentation') {
|
|
|
3492
3560
|
}
|
|
3493
3561
|
|
|
3494
3562
|
const TTL$x = 100;
|
|
3495
|
-
const VERSION$B = "
|
|
3563
|
+
const VERSION$B = "61e7c9d04414b24be7f9971472c484ee";
|
|
3496
3564
|
function validate$14(obj, path = 'ManagedContentDocumentRepresentation') {
|
|
3497
3565
|
const v_error = (() => {
|
|
3498
3566
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -3547,7 +3615,7 @@ function validate$14(obj, path = 'ManagedContentDocumentRepresentation') {
|
|
|
3547
3615
|
}
|
|
3548
3616
|
const obj_contentSpace = obj.contentSpace;
|
|
3549
3617
|
const path_contentSpace = path + '.contentSpace';
|
|
3550
|
-
const referencepath_contentSpaceValidationError = validate$
|
|
3618
|
+
const referencepath_contentSpaceValidationError = validate$1a(obj_contentSpace, path_contentSpace);
|
|
3551
3619
|
if (referencepath_contentSpaceValidationError !== null) {
|
|
3552
3620
|
let message = 'Object doesn\'t match ManagedContentSpaceSummaryRepresentation (at "' + path_contentSpace + '")\n';
|
|
3553
3621
|
message += referencepath_contentSpaceValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3555,7 +3623,7 @@ function validate$14(obj, path = 'ManagedContentDocumentRepresentation') {
|
|
|
3555
3623
|
}
|
|
3556
3624
|
const obj_contentType = obj.contentType;
|
|
3557
3625
|
const path_contentType = path + '.contentType';
|
|
3558
|
-
const referencepath_contentTypeValidationError = validate$
|
|
3626
|
+
const referencepath_contentTypeValidationError = validate$1t(obj_contentType, path_contentType);
|
|
3559
3627
|
if (referencepath_contentTypeValidationError !== null) {
|
|
3560
3628
|
let message = 'Object doesn\'t match ManagedContentTypeSummaryRepresentation (at "' + path_contentType + '")\n';
|
|
3561
3629
|
message += referencepath_contentTypeValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3589,7 +3657,7 @@ function validate$14(obj, path = 'ManagedContentDocumentRepresentation') {
|
|
|
3589
3657
|
}
|
|
3590
3658
|
const obj_createdBy = obj.createdBy;
|
|
3591
3659
|
const path_createdBy = path + '.createdBy';
|
|
3592
|
-
const referencepath_createdByValidationError = validate$
|
|
3660
|
+
const referencepath_createdByValidationError = validate$1q(obj_createdBy, path_createdBy);
|
|
3593
3661
|
if (referencepath_createdByValidationError !== null) {
|
|
3594
3662
|
let message = 'Object doesn\'t match ManagedContentUserSummaryRepresentation (at "' + path_createdBy + '")\n';
|
|
3595
3663
|
message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3600,6 +3668,23 @@ function validate$14(obj, path = 'ManagedContentDocumentRepresentation') {
|
|
|
3600
3668
|
if (typeof obj_createdDate !== 'string') {
|
|
3601
3669
|
return new TypeError('Expected "string" but received "' + typeof obj_createdDate + '" (at "' + path_createdDate + '")');
|
|
3602
3670
|
}
|
|
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
|
+
}
|
|
3603
3688
|
const obj_folder = obj.folder;
|
|
3604
3689
|
const path_folder = path + '.folder';
|
|
3605
3690
|
const referencepath_folderValidationError = validate$16(obj_folder, path_folder);
|
|
@@ -3620,7 +3705,7 @@ function validate$14(obj, path = 'ManagedContentDocumentRepresentation') {
|
|
|
3620
3705
|
}
|
|
3621
3706
|
const obj_lastModifiedBy = obj.lastModifiedBy;
|
|
3622
3707
|
const path_lastModifiedBy = path + '.lastModifiedBy';
|
|
3623
|
-
const referencepath_lastModifiedByValidationError = validate$
|
|
3708
|
+
const referencepath_lastModifiedByValidationError = validate$1q(obj_lastModifiedBy, path_lastModifiedBy);
|
|
3624
3709
|
if (referencepath_lastModifiedByValidationError !== null) {
|
|
3625
3710
|
let message = 'Object doesn\'t match ManagedContentUserSummaryRepresentation (at "' + path_lastModifiedBy + '")\n';
|
|
3626
3711
|
message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3798,7 +3883,7 @@ function createResourceRequest$I(config) {
|
|
|
3798
3883
|
method: 'post',
|
|
3799
3884
|
body: config.body,
|
|
3800
3885
|
urlParams: {},
|
|
3801
|
-
queryParams:
|
|
3886
|
+
queryParams: config.queryParams,
|
|
3802
3887
|
headers,
|
|
3803
3888
|
priority: 'normal',
|
|
3804
3889
|
};
|
|
@@ -3810,14 +3895,16 @@ function ingestSuccess$I(luvio, resourceParams, response) {
|
|
|
3810
3895
|
|
|
3811
3896
|
const adapterName$I = 'createManagedContent';
|
|
3812
3897
|
const createManagedContent_ConfigPropertyMetadata = [
|
|
3898
|
+
generateParamConfigMetadata('saveMode', false, 1 /* QueryParameter */, 0 /* String */),
|
|
3813
3899
|
generateParamConfigMetadata('ManagedContentInputParam', true, 2 /* Body */, 4 /* Unsupported */),
|
|
3814
3900
|
];
|
|
3815
3901
|
const createManagedContent_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$I, createManagedContent_ConfigPropertyMetadata);
|
|
3816
3902
|
const createResourceParams$I = /*#__PURE__*/ createResourceParams$Q(createManagedContent_ConfigPropertyMetadata);
|
|
3817
3903
|
function typeCheckConfig$I(untrustedConfig) {
|
|
3818
3904
|
const config = {};
|
|
3905
|
+
typeCheckConfig$Q(untrustedConfig, config, createManagedContent_ConfigPropertyMetadata);
|
|
3819
3906
|
const untrustedConfig_ManagedContentInputParam = untrustedConfig.ManagedContentInputParam;
|
|
3820
|
-
const referenceManagedContentInputRepresentationValidationError = validate$
|
|
3907
|
+
const referenceManagedContentInputRepresentationValidationError = validate$1b(untrustedConfig_ManagedContentInputParam);
|
|
3821
3908
|
if (referenceManagedContentInputRepresentationValidationError === null) {
|
|
3822
3909
|
config.ManagedContentInputParam = untrustedConfig_ManagedContentInputParam;
|
|
3823
3910
|
}
|
|
@@ -4331,7 +4418,7 @@ function validate$11(obj, path = 'ManagedContentVariantInputRepresentation') {
|
|
|
4331
4418
|
}
|
|
4332
4419
|
|
|
4333
4420
|
const TTL$u = 3600000;
|
|
4334
|
-
const VERSION$y = "
|
|
4421
|
+
const VERSION$y = "c3675f685a9f5789db8308956e5d8472";
|
|
4335
4422
|
function validate$10(obj, path = 'ManagedContentVariantRepresentation') {
|
|
4336
4423
|
const v_error = (() => {
|
|
4337
4424
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -4358,7 +4445,7 @@ function validate$10(obj, path = 'ManagedContentVariantRepresentation') {
|
|
|
4358
4445
|
}
|
|
4359
4446
|
const obj_contentSpace = obj.contentSpace;
|
|
4360
4447
|
const path_contentSpace = path + '.contentSpace';
|
|
4361
|
-
const referencepath_contentSpaceValidationError = validate$
|
|
4448
|
+
const referencepath_contentSpaceValidationError = validate$1a(obj_contentSpace, path_contentSpace);
|
|
4362
4449
|
if (referencepath_contentSpaceValidationError !== null) {
|
|
4363
4450
|
let message = 'Object doesn\'t match ManagedContentSpaceSummaryRepresentation (at "' + path_contentSpace + '")\n';
|
|
4364
4451
|
message += referencepath_contentSpaceValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4366,7 +4453,7 @@ function validate$10(obj, path = 'ManagedContentVariantRepresentation') {
|
|
|
4366
4453
|
}
|
|
4367
4454
|
const obj_contentType = obj.contentType;
|
|
4368
4455
|
const path_contentType = path + '.contentType';
|
|
4369
|
-
const referencepath_contentTypeValidationError = validate$
|
|
4456
|
+
const referencepath_contentTypeValidationError = validate$1t(obj_contentType, path_contentType);
|
|
4370
4457
|
if (referencepath_contentTypeValidationError !== null) {
|
|
4371
4458
|
let message = 'Object doesn\'t match ManagedContentTypeSummaryRepresentation (at "' + path_contentType + '")\n';
|
|
4372
4459
|
message += referencepath_contentTypeValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4374,7 +4461,7 @@ function validate$10(obj, path = 'ManagedContentVariantRepresentation') {
|
|
|
4374
4461
|
}
|
|
4375
4462
|
const obj_createdBy = obj.createdBy;
|
|
4376
4463
|
const path_createdBy = path + '.createdBy';
|
|
4377
|
-
const referencepath_createdByValidationError = validate$
|
|
4464
|
+
const referencepath_createdByValidationError = validate$1q(obj_createdBy, path_createdBy);
|
|
4378
4465
|
if (referencepath_createdByValidationError !== null) {
|
|
4379
4466
|
let message = 'Object doesn\'t match ManagedContentUserSummaryRepresentation (at "' + path_createdBy + '")\n';
|
|
4380
4467
|
message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4385,6 +4472,23 @@ function validate$10(obj, path = 'ManagedContentVariantRepresentation') {
|
|
|
4385
4472
|
if (typeof obj_createdDate !== 'string') {
|
|
4386
4473
|
return new TypeError('Expected "string" but received "' + typeof obj_createdDate + '" (at "' + path_createdDate + '")');
|
|
4387
4474
|
}
|
|
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
|
+
}
|
|
4388
4492
|
const obj_folder = obj.folder;
|
|
4389
4493
|
const path_folder = path + '.folder';
|
|
4390
4494
|
const referencepath_folderValidationError = validate$16(obj_folder, path_folder);
|
|
@@ -4405,7 +4509,7 @@ function validate$10(obj, path = 'ManagedContentVariantRepresentation') {
|
|
|
4405
4509
|
}
|
|
4406
4510
|
const obj_lastModifiedBy = obj.lastModifiedBy;
|
|
4407
4511
|
const path_lastModifiedBy = path + '.lastModifiedBy';
|
|
4408
|
-
const referencepath_lastModifiedByValidationError = validate$
|
|
4512
|
+
const referencepath_lastModifiedByValidationError = validate$1q(obj_lastModifiedBy, path_lastModifiedBy);
|
|
4409
4513
|
if (referencepath_lastModifiedByValidationError !== null) {
|
|
4410
4514
|
let message = 'Object doesn\'t match ManagedContentUserSummaryRepresentation (at "' + path_lastModifiedBy + '")\n';
|
|
4411
4515
|
message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4449,6 +4553,13 @@ function validate$10(obj, path = 'ManagedContentVariantRepresentation') {
|
|
|
4449
4553
|
if (typeof obj_urlName !== 'string') {
|
|
4450
4554
|
return new TypeError('Expected "string" but received "' + typeof obj_urlName + '" (at "' + path_urlName + '")');
|
|
4451
4555
|
}
|
|
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
|
+
}
|
|
4452
4563
|
})();
|
|
4453
4564
|
return v_error === undefined ? null : v_error;
|
|
4454
4565
|
}
|
|
@@ -4887,7 +4998,7 @@ function createResourceRequest$C(config) {
|
|
|
4887
4998
|
method: 'put',
|
|
4888
4999
|
body: config.body,
|
|
4889
5000
|
urlParams: config.urlParams,
|
|
4890
|
-
queryParams:
|
|
5001
|
+
queryParams: config.queryParams,
|
|
4891
5002
|
headers,
|
|
4892
5003
|
priority: 'normal',
|
|
4893
5004
|
};
|
|
@@ -4896,6 +5007,7 @@ function createResourceRequest$C(config) {
|
|
|
4896
5007
|
const adapterName$C = 'replaceManagedContentVariant';
|
|
4897
5008
|
const replaceManagedContentVariant_ConfigPropertyMetadata = [
|
|
4898
5009
|
generateParamConfigMetadata('variantId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
5010
|
+
generateParamConfigMetadata('saveMode', false, 1 /* QueryParameter */, 0 /* String */),
|
|
4899
5011
|
generateParamConfigMetadata('ManagedContentVariantInputParam', true, 2 /* Body */, 4 /* Unsupported */),
|
|
4900
5012
|
];
|
|
4901
5013
|
const replaceManagedContentVariant_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$C, replaceManagedContentVariant_ConfigPropertyMetadata);
|
|
@@ -4959,7 +5071,7 @@ function validate$_(obj, path = 'ManagedContentVariantVersionRepresentation') {
|
|
|
4959
5071
|
}
|
|
4960
5072
|
const obj_createdBy = obj.createdBy;
|
|
4961
5073
|
const path_createdBy = path + '.createdBy';
|
|
4962
|
-
const referencepath_createdByValidationError = validate$
|
|
5074
|
+
const referencepath_createdByValidationError = validate$1q(obj_createdBy, path_createdBy);
|
|
4963
5075
|
if (referencepath_createdByValidationError !== null) {
|
|
4964
5076
|
let message = 'Object doesn\'t match ManagedContentUserSummaryRepresentation (at "' + path_createdBy + '")\n';
|
|
4965
5077
|
message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4972,7 +5084,7 @@ function validate$_(obj, path = 'ManagedContentVariantVersionRepresentation') {
|
|
|
4972
5084
|
}
|
|
4973
5085
|
const obj_lastModifiedBy = obj.lastModifiedBy;
|
|
4974
5086
|
const path_lastModifiedBy = path + '.lastModifiedBy';
|
|
4975
|
-
const referencepath_lastModifiedByValidationError = validate$
|
|
5087
|
+
const referencepath_lastModifiedByValidationError = validate$1q(obj_lastModifiedBy, path_lastModifiedBy);
|
|
4976
5088
|
if (referencepath_lastModifiedByValidationError !== null) {
|
|
4977
5089
|
let message = 'Object doesn\'t match ManagedContentUserSummaryRepresentation (at "' + path_lastModifiedBy + '")\n';
|
|
4978
5090
|
message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -7545,7 +7657,7 @@ function validate$H(obj, path = 'AbstractManagedContentReferencedByItemRepresent
|
|
|
7545
7657
|
const path_contentType = path + '.contentType';
|
|
7546
7658
|
let obj_contentType_union0 = null;
|
|
7547
7659
|
const obj_contentType_union0_error = (() => {
|
|
7548
|
-
const referencepath_contentTypeValidationError = validate$
|
|
7660
|
+
const referencepath_contentTypeValidationError = validate$1t(obj_contentType, path_contentType);
|
|
7549
7661
|
if (referencepath_contentTypeValidationError !== null) {
|
|
7550
7662
|
let message = 'Object doesn\'t match ManagedContentTypeSummaryRepresentation (at "' + path_contentType + '")\n';
|
|
7551
7663
|
message += referencepath_contentTypeValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -7925,7 +8037,7 @@ function validate$E(obj, path = 'ManagedContentVariantReferenceDetailsRepresenta
|
|
|
7925
8037
|
}
|
|
7926
8038
|
const obj_contentType = obj.contentType;
|
|
7927
8039
|
const path_contentType = path + '.contentType';
|
|
7928
|
-
const referencepath_contentTypeValidationError = validate$
|
|
8040
|
+
const referencepath_contentTypeValidationError = validate$1t(obj_contentType, path_contentType);
|
|
7929
8041
|
if (referencepath_contentTypeValidationError !== null) {
|
|
7930
8042
|
let message = 'Object doesn\'t match ManagedContentTypeSummaryRepresentation (at "' + path_contentType + '")\n';
|
|
7931
8043
|
message += referencepath_contentTypeValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -7933,7 +8045,7 @@ function validate$E(obj, path = 'ManagedContentVariantReferenceDetailsRepresenta
|
|
|
7933
8045
|
}
|
|
7934
8046
|
const obj_createdBy = obj.createdBy;
|
|
7935
8047
|
const path_createdBy = path + '.createdBy';
|
|
7936
|
-
const referencepath_createdByValidationError = validate$
|
|
8048
|
+
const referencepath_createdByValidationError = validate$1q(obj_createdBy, path_createdBy);
|
|
7937
8049
|
if (referencepath_createdByValidationError !== null) {
|
|
7938
8050
|
let message = 'Object doesn\'t match ManagedContentUserSummaryRepresentation (at "' + path_createdBy + '")\n';
|
|
7939
8051
|
message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -7959,7 +8071,7 @@ function validate$E(obj, path = 'ManagedContentVariantReferenceDetailsRepresenta
|
|
|
7959
8071
|
}
|
|
7960
8072
|
const obj_lastModifiedBy = obj.lastModifiedBy;
|
|
7961
8073
|
const path_lastModifiedBy = path + '.lastModifiedBy';
|
|
7962
|
-
const referencepath_lastModifiedByValidationError = validate$
|
|
8074
|
+
const referencepath_lastModifiedByValidationError = validate$1q(obj_lastModifiedBy, path_lastModifiedBy);
|
|
7963
8075
|
if (referencepath_lastModifiedByValidationError !== null) {
|
|
7964
8076
|
let message = 'Object doesn\'t match ManagedContentUserSummaryRepresentation (at "' + path_lastModifiedBy + '")\n';
|
|
7965
8077
|
message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -9462,7 +9574,7 @@ function validate$w(obj, path = 'ManagedContentSpaceFolderItemRepresentation') {
|
|
|
9462
9574
|
if (obj.contentType !== undefined) {
|
|
9463
9575
|
const obj_contentType = obj.contentType;
|
|
9464
9576
|
const path_contentType = path + '.contentType';
|
|
9465
|
-
const referencepath_contentTypeValidationError = validate$
|
|
9577
|
+
const referencepath_contentTypeValidationError = validate$1t(obj_contentType, path_contentType);
|
|
9466
9578
|
if (referencepath_contentTypeValidationError !== null) {
|
|
9467
9579
|
let message = 'Object doesn\'t match ManagedContentTypeSummaryRepresentation (at "' + path_contentType + '")\n';
|
|
9468
9580
|
message += referencepath_contentTypeValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -10414,7 +10526,7 @@ function validate$p(obj, path = 'AbstractManagedContentSearchResultRepresentatio
|
|
|
10414
10526
|
}
|
|
10415
10527
|
const obj_createdBy = obj.createdBy;
|
|
10416
10528
|
const path_createdBy = path + '.createdBy';
|
|
10417
|
-
const referencepath_createdByValidationError = validate$
|
|
10529
|
+
const referencepath_createdByValidationError = validate$1q(obj_createdBy, path_createdBy);
|
|
10418
10530
|
if (referencepath_createdByValidationError !== null) {
|
|
10419
10531
|
let message = 'Object doesn\'t match ManagedContentUserSummaryRepresentation (at "' + path_createdBy + '")\n';
|
|
10420
10532
|
message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -10440,7 +10552,7 @@ function validate$p(obj, path = 'AbstractManagedContentSearchResultRepresentatio
|
|
|
10440
10552
|
}
|
|
10441
10553
|
const obj_lastModifiedBy = obj.lastModifiedBy;
|
|
10442
10554
|
const path_lastModifiedBy = path + '.lastModifiedBy';
|
|
10443
|
-
const referencepath_lastModifiedByValidationError = validate$
|
|
10555
|
+
const referencepath_lastModifiedByValidationError = validate$1q(obj_lastModifiedBy, path_lastModifiedBy);
|
|
10444
10556
|
if (referencepath_lastModifiedByValidationError !== null) {
|
|
10445
10557
|
let message = 'Object doesn\'t match ManagedContentUserSummaryRepresentation (at "' + path_lastModifiedBy + '")\n';
|
|
10446
10558
|
message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -11971,7 +12083,7 @@ function validate$h(obj, path = 'ManagedContentSingleItemDocumentRepresentation'
|
|
|
11971
12083
|
}
|
|
11972
12084
|
const obj_contentSpace = obj.contentSpace;
|
|
11973
12085
|
const path_contentSpace = path + '.contentSpace';
|
|
11974
|
-
const referencepath_contentSpaceValidationError = validate$
|
|
12086
|
+
const referencepath_contentSpaceValidationError = validate$1a(obj_contentSpace, path_contentSpace);
|
|
11975
12087
|
if (referencepath_contentSpaceValidationError !== null) {
|
|
11976
12088
|
let message = 'Object doesn\'t match ManagedContentSpaceSummaryRepresentation (at "' + path_contentSpace + '")\n';
|
|
11977
12089
|
message += referencepath_contentSpaceValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -11979,7 +12091,7 @@ function validate$h(obj, path = 'ManagedContentSingleItemDocumentRepresentation'
|
|
|
11979
12091
|
}
|
|
11980
12092
|
const obj_contentType = obj.contentType;
|
|
11981
12093
|
const path_contentType = path + '.contentType';
|
|
11982
|
-
const referencepath_contentTypeValidationError = validate$
|
|
12094
|
+
const referencepath_contentTypeValidationError = validate$1t(obj_contentType, path_contentType);
|
|
11983
12095
|
if (referencepath_contentTypeValidationError !== null) {
|
|
11984
12096
|
let message = 'Object doesn\'t match ManagedContentTypeSummaryRepresentation (at "' + path_contentType + '")\n';
|
|
11985
12097
|
message += referencepath_contentTypeValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -12013,7 +12125,7 @@ function validate$h(obj, path = 'ManagedContentSingleItemDocumentRepresentation'
|
|
|
12013
12125
|
}
|
|
12014
12126
|
const obj_createdBy = obj.createdBy;
|
|
12015
12127
|
const path_createdBy = path + '.createdBy';
|
|
12016
|
-
const referencepath_createdByValidationError = validate$
|
|
12128
|
+
const referencepath_createdByValidationError = validate$1q(obj_createdBy, path_createdBy);
|
|
12017
12129
|
if (referencepath_createdByValidationError !== null) {
|
|
12018
12130
|
let message = 'Object doesn\'t match ManagedContentUserSummaryRepresentation (at "' + path_createdBy + '")\n';
|
|
12019
12131
|
message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -12065,7 +12177,7 @@ function validate$h(obj, path = 'ManagedContentSingleItemDocumentRepresentation'
|
|
|
12065
12177
|
}
|
|
12066
12178
|
const obj_lastModifiedBy = obj.lastModifiedBy;
|
|
12067
12179
|
const path_lastModifiedBy = path + '.lastModifiedBy';
|
|
12068
|
-
const referencepath_lastModifiedByValidationError = validate$
|
|
12180
|
+
const referencepath_lastModifiedByValidationError = validate$1q(obj_lastModifiedBy, path_lastModifiedBy);
|
|
12069
12181
|
if (referencepath_lastModifiedByValidationError !== null) {
|
|
12070
12182
|
let message = 'Object doesn\'t match ManagedContentUserSummaryRepresentation (at "' + path_lastModifiedBy + '")\n';
|
|
12071
12183
|
message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -12727,7 +12839,7 @@ function validate$d(obj, path = 'ManagedContentTypeSummaryCollectionRepresentati
|
|
|
12727
12839
|
for (let i = 0; i < obj_contentTypes.length; i++) {
|
|
12728
12840
|
const obj_contentTypes_item = obj_contentTypes[i];
|
|
12729
12841
|
const path_contentTypes_item = path_contentTypes + '[' + i + ']';
|
|
12730
|
-
const referencepath_contentTypes_itemValidationError = validate$
|
|
12842
|
+
const referencepath_contentTypes_itemValidationError = validate$1t(obj_contentTypes_item, path_contentTypes_item);
|
|
12731
12843
|
if (referencepath_contentTypes_itemValidationError !== null) {
|
|
12732
12844
|
let message = 'Object doesn\'t match ManagedContentTypeSummaryRepresentation (at "' + path_contentTypes_item + '")\n';
|
|
12733
12845
|
message += referencepath_contentTypes_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|