@salesforce/lds-adapters-cms-authoring 1.251.0 → 1.253.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.
|
@@ -93,7 +93,7 @@ function createLink(ref) {
|
|
|
93
93
|
};
|
|
94
94
|
}
|
|
95
95
|
|
|
96
|
-
const VERSION$
|
|
96
|
+
const VERSION$w = "7297fb0dbfe8f664d76179a65037c290";
|
|
97
97
|
function validate$_(obj, path = 'ManagedContentTypeSummaryRepresentation') {
|
|
98
98
|
const v_error = (() => {
|
|
99
99
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -114,10 +114,10 @@ function validate$_(obj, path = 'ManagedContentTypeSummaryRepresentation') {
|
|
|
114
114
|
})();
|
|
115
115
|
return v_error === undefined ? null : v_error;
|
|
116
116
|
}
|
|
117
|
-
const select$
|
|
117
|
+
const select$12 = function ManagedContentTypeSummaryRepresentationSelect() {
|
|
118
118
|
return {
|
|
119
119
|
kind: 'Fragment',
|
|
120
|
-
version: VERSION$
|
|
120
|
+
version: VERSION$w,
|
|
121
121
|
private: [],
|
|
122
122
|
selections: [
|
|
123
123
|
{
|
|
@@ -132,7 +132,7 @@ const select$11 = function ManagedContentTypeSummaryRepresentationSelect() {
|
|
|
132
132
|
]
|
|
133
133
|
};
|
|
134
134
|
};
|
|
135
|
-
function equals$
|
|
135
|
+
function equals$w(existing, incoming) {
|
|
136
136
|
const existing_fullyQualifiedName = existing.fullyQualifiedName;
|
|
137
137
|
const incoming_fullyQualifiedName = incoming.fullyQualifiedName;
|
|
138
138
|
if (!(existing_fullyQualifiedName === incoming_fullyQualifiedName)) {
|
|
@@ -154,7 +154,7 @@ function equals$v(existing, incoming) {
|
|
|
154
154
|
return true;
|
|
155
155
|
}
|
|
156
156
|
|
|
157
|
-
const VERSION$
|
|
157
|
+
const VERSION$v = "c30d880a3dba684a405d1cf961af2b76";
|
|
158
158
|
function validate$Z(obj, path = 'ManagedContentVariantSnapshotSummaryRepresentation') {
|
|
159
159
|
const v_error = (() => {
|
|
160
160
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -322,11 +322,11 @@ function validate$Z(obj, path = 'ManagedContentVariantSnapshotSummaryRepresentat
|
|
|
322
322
|
})();
|
|
323
323
|
return v_error === undefined ? null : v_error;
|
|
324
324
|
}
|
|
325
|
-
const select$
|
|
326
|
-
const { selections: ManagedContentTypeSummaryRepresentation__selections, opaque: ManagedContentTypeSummaryRepresentation__opaque, } = select$
|
|
325
|
+
const select$11 = function ManagedContentVariantSnapshotSummaryRepresentationSelect() {
|
|
326
|
+
const { selections: ManagedContentTypeSummaryRepresentation__selections, opaque: ManagedContentTypeSummaryRepresentation__opaque, } = select$12();
|
|
327
327
|
return {
|
|
328
328
|
kind: 'Fragment',
|
|
329
|
-
version: VERSION$
|
|
329
|
+
version: VERSION$v,
|
|
330
330
|
private: [],
|
|
331
331
|
selections: [
|
|
332
332
|
{
|
|
@@ -358,13 +358,13 @@ const select$10 = function ManagedContentVariantSnapshotSummaryRepresentationSel
|
|
|
358
358
|
]
|
|
359
359
|
};
|
|
360
360
|
};
|
|
361
|
-
function equals$
|
|
361
|
+
function equals$v(existing, incoming) {
|
|
362
362
|
const existing_contentType = existing.contentType;
|
|
363
363
|
const incoming_contentType = incoming.contentType;
|
|
364
364
|
if (!(existing_contentType === incoming_contentType
|
|
365
365
|
|| (existing_contentType != null &&
|
|
366
366
|
incoming_contentType != null &&
|
|
367
|
-
equals$
|
|
367
|
+
equals$w(existing_contentType, incoming_contentType)))) {
|
|
368
368
|
return false;
|
|
369
369
|
}
|
|
370
370
|
const existing_id = existing.id;
|
|
@@ -395,7 +395,7 @@ function equals$u(existing, incoming) {
|
|
|
395
395
|
return true;
|
|
396
396
|
}
|
|
397
397
|
|
|
398
|
-
const VERSION$
|
|
398
|
+
const VERSION$u = "f99d45f1e809783023bfd9dbe2fe4a6c";
|
|
399
399
|
function validate$Y(obj, path = 'ManagedContentDeploymentItemRepresentation') {
|
|
400
400
|
const v_error = (() => {
|
|
401
401
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -489,11 +489,11 @@ function validate$Y(obj, path = 'ManagedContentDeploymentItemRepresentation') {
|
|
|
489
489
|
})();
|
|
490
490
|
return v_error === undefined ? null : v_error;
|
|
491
491
|
}
|
|
492
|
-
const select
|
|
493
|
-
const { selections: ManagedContentVariantSnapshotSummaryRepresentation__selections, opaque: ManagedContentVariantSnapshotSummaryRepresentation__opaque, } = select$
|
|
492
|
+
const select$10 = function ManagedContentDeploymentItemRepresentationSelect() {
|
|
493
|
+
const { selections: ManagedContentVariantSnapshotSummaryRepresentation__selections, opaque: ManagedContentVariantSnapshotSummaryRepresentation__opaque, } = select$11();
|
|
494
494
|
return {
|
|
495
495
|
kind: 'Fragment',
|
|
496
|
-
version: VERSION$
|
|
496
|
+
version: VERSION$u,
|
|
497
497
|
private: [],
|
|
498
498
|
selections: [
|
|
499
499
|
{
|
|
@@ -532,7 +532,7 @@ const select$$ = function ManagedContentDeploymentItemRepresentationSelect() {
|
|
|
532
532
|
]
|
|
533
533
|
};
|
|
534
534
|
};
|
|
535
|
-
function equals$
|
|
535
|
+
function equals$u(existing, incoming) {
|
|
536
536
|
const existing_isTopLevel = existing.isTopLevel;
|
|
537
537
|
const incoming_isTopLevel = incoming.isTopLevel;
|
|
538
538
|
if (!(existing_isTopLevel === incoming_isTopLevel)) {
|
|
@@ -560,7 +560,7 @@ function equals$t(existing, incoming) {
|
|
|
560
560
|
}
|
|
561
561
|
const existing_mcvSnapshotSummary = existing.mcvSnapshotSummary;
|
|
562
562
|
const incoming_mcvSnapshotSummary = incoming.mcvSnapshotSummary;
|
|
563
|
-
if (!(equals$
|
|
563
|
+
if (!(equals$v(existing_mcvSnapshotSummary, incoming_mcvSnapshotSummary))) {
|
|
564
564
|
return false;
|
|
565
565
|
}
|
|
566
566
|
const existing_targetId = existing.targetId;
|
|
@@ -576,9 +576,84 @@ function equals$t(existing, incoming) {
|
|
|
576
576
|
return true;
|
|
577
577
|
}
|
|
578
578
|
|
|
579
|
+
const VERSION$t = "4b75ed6ff448da86412b605f7e775a62";
|
|
580
|
+
function validate$X(obj, path = 'ManagedContentUserSummaryRepresentation') {
|
|
581
|
+
const v_error = (() => {
|
|
582
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
583
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
584
|
+
}
|
|
585
|
+
const obj_id = obj.id;
|
|
586
|
+
const path_id = path + '.id';
|
|
587
|
+
if (typeof obj_id !== 'string') {
|
|
588
|
+
return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
|
|
589
|
+
}
|
|
590
|
+
if (obj.name !== undefined) {
|
|
591
|
+
const obj_name = obj.name;
|
|
592
|
+
const path_name = path + '.name';
|
|
593
|
+
if (typeof obj_name !== 'string') {
|
|
594
|
+
return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
|
|
595
|
+
}
|
|
596
|
+
}
|
|
597
|
+
const obj_resourceUrl = obj.resourceUrl;
|
|
598
|
+
const path_resourceUrl = path + '.resourceUrl';
|
|
599
|
+
if (typeof obj_resourceUrl !== 'string') {
|
|
600
|
+
return new TypeError('Expected "string" but received "' + typeof obj_resourceUrl + '" (at "' + path_resourceUrl + '")');
|
|
601
|
+
}
|
|
602
|
+
})();
|
|
603
|
+
return v_error === undefined ? null : v_error;
|
|
604
|
+
}
|
|
605
|
+
const select$$ = function ManagedContentUserSummaryRepresentationSelect() {
|
|
606
|
+
return {
|
|
607
|
+
kind: 'Fragment',
|
|
608
|
+
version: VERSION$t,
|
|
609
|
+
private: [],
|
|
610
|
+
selections: [
|
|
611
|
+
{
|
|
612
|
+
name: 'id',
|
|
613
|
+
kind: 'Scalar'
|
|
614
|
+
},
|
|
615
|
+
{
|
|
616
|
+
name: 'name',
|
|
617
|
+
kind: 'Scalar',
|
|
618
|
+
required: false
|
|
619
|
+
},
|
|
620
|
+
{
|
|
621
|
+
name: 'resourceUrl',
|
|
622
|
+
kind: 'Scalar'
|
|
623
|
+
}
|
|
624
|
+
]
|
|
625
|
+
};
|
|
626
|
+
};
|
|
627
|
+
function equals$t(existing, incoming) {
|
|
628
|
+
const existing_id = existing.id;
|
|
629
|
+
const incoming_id = incoming.id;
|
|
630
|
+
if (!(existing_id === incoming_id)) {
|
|
631
|
+
return false;
|
|
632
|
+
}
|
|
633
|
+
const existing_name = existing.name;
|
|
634
|
+
const incoming_name = incoming.name;
|
|
635
|
+
// if at least one of these optionals is defined
|
|
636
|
+
if (existing_name !== undefined || incoming_name !== undefined) {
|
|
637
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
638
|
+
// not equal
|
|
639
|
+
if (existing_name === undefined || incoming_name === undefined) {
|
|
640
|
+
return false;
|
|
641
|
+
}
|
|
642
|
+
if (!(existing_name === incoming_name)) {
|
|
643
|
+
return false;
|
|
644
|
+
}
|
|
645
|
+
}
|
|
646
|
+
const existing_resourceUrl = existing.resourceUrl;
|
|
647
|
+
const incoming_resourceUrl = incoming.resourceUrl;
|
|
648
|
+
if (!(existing_resourceUrl === incoming_resourceUrl)) {
|
|
649
|
+
return false;
|
|
650
|
+
}
|
|
651
|
+
return true;
|
|
652
|
+
}
|
|
653
|
+
|
|
579
654
|
const TTL$p = 100;
|
|
580
|
-
const VERSION$s = "
|
|
581
|
-
function validate$
|
|
655
|
+
const VERSION$s = "f7e3c655efe77a7c9968ade15a6029b1";
|
|
656
|
+
function validate$W(obj, path = 'ManagedContentDeploymentRepresentation') {
|
|
582
657
|
const v_error = (() => {
|
|
583
658
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
584
659
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -711,8 +786,11 @@ function validate$X(obj, path = 'ManagedContentDeploymentRepresentation') {
|
|
|
711
786
|
const path_lastModifiedBy = path + '.lastModifiedBy';
|
|
712
787
|
let obj_lastModifiedBy_union0 = null;
|
|
713
788
|
const obj_lastModifiedBy_union0_error = (() => {
|
|
714
|
-
|
|
715
|
-
|
|
789
|
+
const referencepath_lastModifiedByValidationError = validate$X(obj_lastModifiedBy, path_lastModifiedBy);
|
|
790
|
+
if (referencepath_lastModifiedByValidationError !== null) {
|
|
791
|
+
let message = 'Object doesn\'t match ManagedContentUserSummaryRepresentation (at "' + path_lastModifiedBy + '")\n';
|
|
792
|
+
message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
793
|
+
return new TypeError(message);
|
|
716
794
|
}
|
|
717
795
|
})();
|
|
718
796
|
if (obj_lastModifiedBy_union0_error != null) {
|
|
@@ -776,7 +854,8 @@ function normalize$p(input, existing, path, luvio, store, timestamp) {
|
|
|
776
854
|
return input;
|
|
777
855
|
}
|
|
778
856
|
const select$_ = function ManagedContentDeploymentRepresentationSelect() {
|
|
779
|
-
const { selections: ManagedContentDeploymentItemRepresentation__selections, opaque: ManagedContentDeploymentItemRepresentation__opaque, } = select
|
|
857
|
+
const { selections: ManagedContentDeploymentItemRepresentation__selections, opaque: ManagedContentDeploymentItemRepresentation__opaque, } = select$10();
|
|
858
|
+
const { selections: ManagedContentUserSummaryRepresentation__selections, opaque: ManagedContentUserSummaryRepresentation__opaque, } = select$$();
|
|
780
859
|
return {
|
|
781
860
|
kind: 'Fragment',
|
|
782
861
|
version: VERSION$s,
|
|
@@ -810,7 +889,9 @@ const select$_ = function ManagedContentDeploymentRepresentationSelect() {
|
|
|
810
889
|
},
|
|
811
890
|
{
|
|
812
891
|
name: 'lastModifiedBy',
|
|
813
|
-
kind: '
|
|
892
|
+
kind: 'Object',
|
|
893
|
+
nullable: true,
|
|
894
|
+
selections: ManagedContentUserSummaryRepresentation__selections
|
|
814
895
|
},
|
|
815
896
|
{
|
|
816
897
|
name: 'scheduledDate',
|
|
@@ -838,7 +919,7 @@ function equals$s(existing, incoming) {
|
|
|
838
919
|
const existing_deploymentItems = existing.deploymentItems;
|
|
839
920
|
const incoming_deploymentItems = incoming.deploymentItems;
|
|
840
921
|
const equals_deploymentItems_items = equalsArray(existing_deploymentItems, incoming_deploymentItems, (existing_deploymentItems_item, incoming_deploymentItems_item) => {
|
|
841
|
-
if (!(equals$
|
|
922
|
+
if (!(equals$u(existing_deploymentItems_item, incoming_deploymentItems_item))) {
|
|
842
923
|
return false;
|
|
843
924
|
}
|
|
844
925
|
});
|
|
@@ -857,7 +938,10 @@ function equals$s(existing, incoming) {
|
|
|
857
938
|
}
|
|
858
939
|
const existing_lastModifiedBy = existing.lastModifiedBy;
|
|
859
940
|
const incoming_lastModifiedBy = incoming.lastModifiedBy;
|
|
860
|
-
if (!(existing_lastModifiedBy === incoming_lastModifiedBy
|
|
941
|
+
if (!(existing_lastModifiedBy === incoming_lastModifiedBy
|
|
942
|
+
|| (existing_lastModifiedBy != null &&
|
|
943
|
+
incoming_lastModifiedBy != null &&
|
|
944
|
+
equals$t(existing_lastModifiedBy, incoming_lastModifiedBy)))) {
|
|
861
945
|
return false;
|
|
862
946
|
}
|
|
863
947
|
const existing_scheduledDate = existing.scheduledDate;
|
|
@@ -869,7 +953,7 @@ function equals$s(existing, incoming) {
|
|
|
869
953
|
}
|
|
870
954
|
const ingest$p = function ManagedContentDeploymentRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
871
955
|
if (process.env.NODE_ENV !== 'production') {
|
|
872
|
-
const validateError = validate$
|
|
956
|
+
const validateError = validate$W(input);
|
|
873
957
|
if (validateError !== null) {
|
|
874
958
|
throw validateError;
|
|
875
959
|
}
|
|
@@ -891,7 +975,7 @@ function getTypeCacheKeys$p(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
891
975
|
|
|
892
976
|
const TTL$o = 100;
|
|
893
977
|
const VERSION$r = "b2c15aa80814ecd854e68bf635879e35";
|
|
894
|
-
function validate$
|
|
978
|
+
function validate$V(obj, path = 'ManagedContentDeploymentCollectionRepresentation') {
|
|
895
979
|
const v_error = (() => {
|
|
896
980
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
897
981
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1045,7 +1129,7 @@ function equals$r(existing, incoming) {
|
|
|
1045
1129
|
}
|
|
1046
1130
|
const ingest$o = function ManagedContentDeploymentCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1047
1131
|
if (process.env.NODE_ENV !== 'production') {
|
|
1048
|
-
const validateError = validate$
|
|
1132
|
+
const validateError = validate$V(input);
|
|
1049
1133
|
if (validateError !== null) {
|
|
1050
1134
|
throw validateError;
|
|
1051
1135
|
}
|
|
@@ -1122,6 +1206,12 @@ function createResourceRequest$y(config) {
|
|
|
1122
1206
|
}
|
|
1123
1207
|
|
|
1124
1208
|
const adapterName$y = 'getDeployments';
|
|
1209
|
+
const oneOfConfigPropertiesIdentifier = [
|
|
1210
|
+
'deploymentId',
|
|
1211
|
+
'contentSpaceId',
|
|
1212
|
+
'variantIds',
|
|
1213
|
+
'managedContentVersionId'
|
|
1214
|
+
];
|
|
1125
1215
|
const getDeployments_ConfigPropertyMetadata = [
|
|
1126
1216
|
generateParamConfigMetadata('contentSpaceId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
1127
1217
|
generateParamConfigMetadata('deploymentId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
@@ -1148,12 +1238,18 @@ function validateAdapterConfig$y(untrustedConfig, configPropertyNames) {
|
|
|
1148
1238
|
return null;
|
|
1149
1239
|
}
|
|
1150
1240
|
if (process.env.NODE_ENV !== 'production') {
|
|
1151
|
-
validateConfig(untrustedConfig, configPropertyNames);
|
|
1241
|
+
validateConfig(untrustedConfig, configPropertyNames, oneOfConfigPropertiesIdentifier);
|
|
1152
1242
|
}
|
|
1153
1243
|
const config = typeCheckConfig$y(untrustedConfig);
|
|
1154
1244
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
1155
1245
|
return null;
|
|
1156
1246
|
}
|
|
1247
|
+
if (config.deploymentId === undefined &&
|
|
1248
|
+
config.contentSpaceId === undefined &&
|
|
1249
|
+
config.variantIds === undefined &&
|
|
1250
|
+
config.managedContentVersionId === undefined) {
|
|
1251
|
+
return null;
|
|
1252
|
+
}
|
|
1157
1253
|
return config;
|
|
1158
1254
|
}
|
|
1159
1255
|
function adapterFragment$j(luvio, config) {
|
|
@@ -1214,7 +1310,7 @@ const getDeploymentsAdapterFactory = (luvio) => function CMSAuthoring__getDeploy
|
|
|
1214
1310
|
buildCachedSnapshotCachePolicy$j, buildNetworkSnapshotCachePolicy$j);
|
|
1215
1311
|
};
|
|
1216
1312
|
|
|
1217
|
-
function validate$
|
|
1313
|
+
function validate$U(obj, path = 'ManagedContentDeploymentInputRepresentation') {
|
|
1218
1314
|
const v_error = (() => {
|
|
1219
1315
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1220
1316
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1344,7 +1440,7 @@ const createResourceParams$x = /*#__PURE__*/ createResourceParams$z(createDeploy
|
|
|
1344
1440
|
function typeCheckConfig$x(untrustedConfig) {
|
|
1345
1441
|
const config = {};
|
|
1346
1442
|
const untrustedConfig_DeploymentInput = untrustedConfig.DeploymentInput;
|
|
1347
|
-
const referenceManagedContentDeploymentInputRepresentationValidationError = validate$
|
|
1443
|
+
const referenceManagedContentDeploymentInputRepresentationValidationError = validate$U(untrustedConfig_DeploymentInput);
|
|
1348
1444
|
if (referenceManagedContentDeploymentInputRepresentationValidationError === null) {
|
|
1349
1445
|
config.DeploymentInput = untrustedConfig_DeploymentInput;
|
|
1350
1446
|
}
|
|
@@ -1393,7 +1489,7 @@ const createDeploymentAdapterFactory = (luvio) => {
|
|
|
1393
1489
|
};
|
|
1394
1490
|
|
|
1395
1491
|
const VERSION$q = "7e57fd77c4503be9a8822f2603a04df3";
|
|
1396
|
-
function validate$
|
|
1492
|
+
function validate$T(obj, path = 'ManagedContentJobBodyRepresentation') {
|
|
1397
1493
|
const v_error = (() => {
|
|
1398
1494
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1399
1495
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1471,7 +1567,7 @@ function equals$q(existing, incoming) {
|
|
|
1471
1567
|
}
|
|
1472
1568
|
|
|
1473
1569
|
const VERSION$p = "eba1876bba76cb05d9cbb8a968bd6796";
|
|
1474
|
-
function validate$
|
|
1570
|
+
function validate$S(obj, path = 'ManagedContentJobBodyCollectionRepresentation') {
|
|
1475
1571
|
const v_error = (() => {
|
|
1476
1572
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1477
1573
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1484,7 +1580,7 @@ function validate$T(obj, path = 'ManagedContentJobBodyCollectionRepresentation')
|
|
|
1484
1580
|
for (let i = 0; i < obj_jobBodies.length; i++) {
|
|
1485
1581
|
const obj_jobBodies_item = obj_jobBodies[i];
|
|
1486
1582
|
const path_jobBodies_item = path_jobBodies + '[' + i + ']';
|
|
1487
|
-
const referencepath_jobBodies_itemValidationError = validate$
|
|
1583
|
+
const referencepath_jobBodies_itemValidationError = validate$T(obj_jobBodies_item, path_jobBodies_item);
|
|
1488
1584
|
if (referencepath_jobBodies_itemValidationError !== null) {
|
|
1489
1585
|
let message = 'Object doesn\'t match ManagedContentJobBodyRepresentation (at "' + path_jobBodies_item + '")\n';
|
|
1490
1586
|
message += referencepath_jobBodies_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1526,7 +1622,7 @@ function equals$p(existing, incoming) {
|
|
|
1526
1622
|
|
|
1527
1623
|
const TTL$n = 100;
|
|
1528
1624
|
const VERSION$o = "9c2de7843d4d4e7784d56c7f83c58f0e";
|
|
1529
|
-
function validate$
|
|
1625
|
+
function validate$R(obj, path = 'ManagedContentV2JobDetailRepresentation') {
|
|
1530
1626
|
const v_error = (() => {
|
|
1531
1627
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1532
1628
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1535,7 +1631,7 @@ function validate$S(obj, path = 'ManagedContentV2JobDetailRepresentation') {
|
|
|
1535
1631
|
const path_body = path + '.body';
|
|
1536
1632
|
let obj_body_union0 = null;
|
|
1537
1633
|
const obj_body_union0_error = (() => {
|
|
1538
|
-
const referencepath_bodyValidationError = validate$
|
|
1634
|
+
const referencepath_bodyValidationError = validate$S(obj_body, path_body);
|
|
1539
1635
|
if (referencepath_bodyValidationError !== null) {
|
|
1540
1636
|
let message = 'Object doesn\'t match ManagedContentJobBodyCollectionRepresentation (at "' + path_body + '")\n';
|
|
1541
1637
|
message += referencepath_bodyValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1752,7 +1848,7 @@ function equals$o(existing, incoming) {
|
|
|
1752
1848
|
}
|
|
1753
1849
|
const ingest$n = function ManagedContentV2JobDetailRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1754
1850
|
if (process.env.NODE_ENV !== 'production') {
|
|
1755
|
-
const validateError = validate$
|
|
1851
|
+
const validateError = validate$R(input);
|
|
1756
1852
|
if (validateError !== null) {
|
|
1757
1853
|
throw validateError;
|
|
1758
1854
|
}
|
|
@@ -1774,7 +1870,7 @@ function getTypeCacheKeys$n(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
1774
1870
|
|
|
1775
1871
|
const TTL$m = 100;
|
|
1776
1872
|
const VERSION$n = "75cfd71e168144693d36fa16f7d8f4d0";
|
|
1777
|
-
function validate$
|
|
1873
|
+
function validate$Q(obj, path = 'ManagedContentJobCollectionRepresentation') {
|
|
1778
1874
|
const v_error = (() => {
|
|
1779
1875
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1780
1876
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1928,7 +2024,7 @@ function equals$n(existing, incoming) {
|
|
|
1928
2024
|
}
|
|
1929
2025
|
const ingest$m = function ManagedContentJobCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1930
2026
|
if (process.env.NODE_ENV !== 'production') {
|
|
1931
|
-
const validateError = validate$
|
|
2027
|
+
const validateError = validate$Q(input);
|
|
1932
2028
|
if (validateError !== null) {
|
|
1933
2029
|
throw validateError;
|
|
1934
2030
|
}
|
|
@@ -2234,7 +2330,7 @@ const getCMSJobForSpaceAdapterFactory = (luvio) => function CMSAuthoring__getCMS
|
|
|
2234
2330
|
buildCachedSnapshotCachePolicy$h, buildNetworkSnapshotCachePolicy$h);
|
|
2235
2331
|
};
|
|
2236
2332
|
|
|
2237
|
-
function validate$
|
|
2333
|
+
function validate$P(obj, path = 'ManagedContentSpaceFolderItemV1Representation') {
|
|
2238
2334
|
const v_error = (() => {
|
|
2239
2335
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2240
2336
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2324,7 +2420,7 @@ function validate$Q(obj, path = 'ManagedContentSpaceFolderItemV1Representation')
|
|
|
2324
2420
|
|
|
2325
2421
|
const TTL$l = 100;
|
|
2326
2422
|
const VERSION$m = "df1370994ae2e57cdebc5f5125930e2d";
|
|
2327
|
-
function validate$
|
|
2423
|
+
function validate$O(obj, path = 'ManagedContentSpaceFolderItemV1CollectionRepresentation') {
|
|
2328
2424
|
const v_error = (() => {
|
|
2329
2425
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2330
2426
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2342,7 +2438,7 @@ function validate$P(obj, path = 'ManagedContentSpaceFolderItemV1CollectionRepres
|
|
|
2342
2438
|
for (let i = 0; i < obj_folderItems.length; i++) {
|
|
2343
2439
|
const obj_folderItems_item = obj_folderItems[i];
|
|
2344
2440
|
const path_folderItems_item = path_folderItems + '[' + i + ']';
|
|
2345
|
-
const referencepath_folderItems_itemValidationError = validate$
|
|
2441
|
+
const referencepath_folderItems_itemValidationError = validate$P(obj_folderItems_item, path_folderItems_item);
|
|
2346
2442
|
if (referencepath_folderItems_itemValidationError !== null) {
|
|
2347
2443
|
let message = 'Object doesn\'t match ManagedContentSpaceFolderItemV1Representation (at "' + path_folderItems_item + '")\n';
|
|
2348
2444
|
message += referencepath_folderItems_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2398,7 +2494,7 @@ function equals$m(existing, incoming) {
|
|
|
2398
2494
|
}
|
|
2399
2495
|
const ingest$l = function ManagedContentSpaceFolderItemV1CollectionRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
2400
2496
|
if (process.env.NODE_ENV !== 'production') {
|
|
2401
|
-
const validateError = validate$
|
|
2497
|
+
const validateError = validate$O(input);
|
|
2402
2498
|
if (validateError !== null) {
|
|
2403
2499
|
throw validateError;
|
|
2404
2500
|
}
|
|
@@ -2566,7 +2662,7 @@ const getManagedContentSpaceFolderItemsV1AdapterFactory = (luvio) => function CM
|
|
|
2566
2662
|
buildCachedSnapshotCachePolicy$g, buildNetworkSnapshotCachePolicy$g);
|
|
2567
2663
|
};
|
|
2568
2664
|
|
|
2569
|
-
function validate$
|
|
2665
|
+
function validate$N(obj, path = 'ManagedContentCollectionItemTypeSummaryRepresentation') {
|
|
2570
2666
|
const v_error = (() => {
|
|
2571
2667
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2572
2668
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2585,7 +2681,7 @@ function validate$O(obj, path = 'ManagedContentCollectionItemTypeSummaryRepresen
|
|
|
2585
2681
|
return v_error === undefined ? null : v_error;
|
|
2586
2682
|
}
|
|
2587
2683
|
|
|
2588
|
-
function validate$
|
|
2684
|
+
function validate$M(obj, path = 'ManagedContentCollectionItemRepresentation') {
|
|
2589
2685
|
const v_error = (() => {
|
|
2590
2686
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2591
2687
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2606,7 +2702,7 @@ function validate$N(obj, path = 'ManagedContentCollectionItemRepresentation') {
|
|
|
2606
2702
|
}
|
|
2607
2703
|
const obj_contentType = obj.contentType;
|
|
2608
2704
|
const path_contentType = path + '.contentType';
|
|
2609
|
-
const referencepath_contentTypeValidationError = validate$
|
|
2705
|
+
const referencepath_contentTypeValidationError = validate$N(obj_contentType, path_contentType);
|
|
2610
2706
|
if (referencepath_contentTypeValidationError !== null) {
|
|
2611
2707
|
let message = 'Object doesn\'t match ManagedContentCollectionItemTypeSummaryRepresentation (at "' + path_contentType + '")\n';
|
|
2612
2708
|
message += referencepath_contentTypeValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2628,7 +2724,7 @@ function validate$N(obj, path = 'ManagedContentCollectionItemRepresentation') {
|
|
|
2628
2724
|
|
|
2629
2725
|
const TTL$k = 100;
|
|
2630
2726
|
const VERSION$l = "eeea454f1268ece5c3e24c986688b876";
|
|
2631
|
-
function validate$
|
|
2727
|
+
function validate$L(obj, path = 'ManagedContentCollectionDetailRepresentation') {
|
|
2632
2728
|
const v_error = (() => {
|
|
2633
2729
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2634
2730
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2664,7 +2760,7 @@ function validate$M(obj, path = 'ManagedContentCollectionDetailRepresentation')
|
|
|
2664
2760
|
for (let i = 0; i < obj_items.length; i++) {
|
|
2665
2761
|
const obj_items_item = obj_items[i];
|
|
2666
2762
|
const path_items_item = path_items + '[' + i + ']';
|
|
2667
|
-
const referencepath_items_itemValidationError = validate$
|
|
2763
|
+
const referencepath_items_itemValidationError = validate$M(obj_items_item, path_items_item);
|
|
2668
2764
|
if (referencepath_items_itemValidationError !== null) {
|
|
2669
2765
|
let message = 'Object doesn\'t match ManagedContentCollectionItemRepresentation (at "' + path_items_item + '")\n';
|
|
2670
2766
|
message += referencepath_items_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2730,7 +2826,7 @@ function equals$l(existing, incoming) {
|
|
|
2730
2826
|
}
|
|
2731
2827
|
const ingest$k = function ManagedContentCollectionDetailRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
2732
2828
|
if (process.env.NODE_ENV !== 'production') {
|
|
2733
|
-
const validateError = validate$
|
|
2829
|
+
const validateError = validate$L(input);
|
|
2734
2830
|
if (validateError !== null) {
|
|
2735
2831
|
throw validateError;
|
|
2736
2832
|
}
|
|
@@ -2909,7 +3005,7 @@ const getCollectionItemsAdapterFactory = (luvio) => function CMSAuthoring__getCo
|
|
|
2909
3005
|
buildCachedSnapshotCachePolicy$f, buildNetworkSnapshotCachePolicy$f);
|
|
2910
3006
|
};
|
|
2911
3007
|
|
|
2912
|
-
function validate$
|
|
3008
|
+
function validate$K(obj, path = 'ManagedContentTranslationV2RequestInputRep') {
|
|
2913
3009
|
const v_error = (() => {
|
|
2914
3010
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2915
3011
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2981,7 +3077,7 @@ function validate$L(obj, path = 'ManagedContentTranslationV2RequestInputRep') {
|
|
|
2981
3077
|
|
|
2982
3078
|
const TTL$j = 100;
|
|
2983
3079
|
const VERSION$k = "52e643b998d6763482c6d74542b38408";
|
|
2984
|
-
function validate$
|
|
3080
|
+
function validate$J(obj, path = 'ManagedContentTranslationV2Representation') {
|
|
2985
3081
|
const v_error = (() => {
|
|
2986
3082
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2987
3083
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3167,7 +3263,7 @@ function equals$k(existing, incoming) {
|
|
|
3167
3263
|
}
|
|
3168
3264
|
const ingest$j = function ManagedContentTranslationV2RepresentationIngest(input, path, luvio, store, timestamp) {
|
|
3169
3265
|
if (process.env.NODE_ENV !== 'production') {
|
|
3170
|
-
const validateError = validate$
|
|
3266
|
+
const validateError = validate$J(input);
|
|
3171
3267
|
if (validateError !== null) {
|
|
3172
3268
|
throw validateError;
|
|
3173
3269
|
}
|
|
@@ -3235,7 +3331,7 @@ function typeCheckConfig$s(untrustedConfig) {
|
|
|
3235
3331
|
const config = {};
|
|
3236
3332
|
typeCheckConfig$z(untrustedConfig, config, createTranslationV2Job_ConfigPropertyMetadata);
|
|
3237
3333
|
const untrustedConfig_translationV2Request = untrustedConfig.translationV2Request;
|
|
3238
|
-
const referenceManagedContentTranslationV2RequestInputRepValidationError = validate$
|
|
3334
|
+
const referenceManagedContentTranslationV2RequestInputRepValidationError = validate$K(untrustedConfig_translationV2Request);
|
|
3239
3335
|
if (referenceManagedContentTranslationV2RequestInputRepValidationError === null) {
|
|
3240
3336
|
config.translationV2Request = untrustedConfig_translationV2Request;
|
|
3241
3337
|
}
|
|
@@ -3283,7 +3379,7 @@ const createTranslationV2JobAdapterFactory = (luvio) => {
|
|
|
3283
3379
|
};
|
|
3284
3380
|
};
|
|
3285
3381
|
|
|
3286
|
-
function validate$
|
|
3382
|
+
function validate$I(obj, path = 'ManagedContentInputRepresentation') {
|
|
3287
3383
|
const v_error = (() => {
|
|
3288
3384
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3289
3385
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3330,26 +3426,7 @@ function validate$J(obj, path = 'ManagedContentInputRepresentation') {
|
|
|
3330
3426
|
return v_error === undefined ? null : v_error;
|
|
3331
3427
|
}
|
|
3332
3428
|
|
|
3333
|
-
function validate$
|
|
3334
|
-
const v_error = (() => {
|
|
3335
|
-
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3336
|
-
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
3337
|
-
}
|
|
3338
|
-
const obj_id = obj.id;
|
|
3339
|
-
const path_id = path + '.id';
|
|
3340
|
-
if (typeof obj_id !== 'string') {
|
|
3341
|
-
return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
|
|
3342
|
-
}
|
|
3343
|
-
const obj_resourceUrl = obj.resourceUrl;
|
|
3344
|
-
const path_resourceUrl = path + '.resourceUrl';
|
|
3345
|
-
if (typeof obj_resourceUrl !== 'string') {
|
|
3346
|
-
return new TypeError('Expected "string" but received "' + typeof obj_resourceUrl + '" (at "' + path_resourceUrl + '")');
|
|
3347
|
-
}
|
|
3348
|
-
})();
|
|
3349
|
-
return v_error === undefined ? null : v_error;
|
|
3350
|
-
}
|
|
3351
|
-
|
|
3352
|
-
function validate$H(obj, path = 'ManagedContentUserSummaryRepresentation') {
|
|
3429
|
+
function validate$H(obj, path = 'ManagedContentSpaceSummaryRepresentation') {
|
|
3353
3430
|
const v_error = (() => {
|
|
3354
3431
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3355
3432
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3359,13 +3436,6 @@ function validate$H(obj, path = 'ManagedContentUserSummaryRepresentation') {
|
|
|
3359
3436
|
if (typeof obj_id !== 'string') {
|
|
3360
3437
|
return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
|
|
3361
3438
|
}
|
|
3362
|
-
if (obj.name !== undefined) {
|
|
3363
|
-
const obj_name = obj.name;
|
|
3364
|
-
const path_name = path + '.name';
|
|
3365
|
-
if (typeof obj_name !== 'string') {
|
|
3366
|
-
return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
|
|
3367
|
-
}
|
|
3368
|
-
}
|
|
3369
3439
|
const obj_resourceUrl = obj.resourceUrl;
|
|
3370
3440
|
const path_resourceUrl = path + '.resourceUrl';
|
|
3371
3441
|
if (typeof obj_resourceUrl !== 'string') {
|
|
@@ -3441,7 +3511,7 @@ function validate$E(obj, path = 'ManagedContentDocumentRepresentation') {
|
|
|
3441
3511
|
}
|
|
3442
3512
|
const obj_contentSpace = obj.contentSpace;
|
|
3443
3513
|
const path_contentSpace = path + '.contentSpace';
|
|
3444
|
-
const referencepath_contentSpaceValidationError = validate$
|
|
3514
|
+
const referencepath_contentSpaceValidationError = validate$H(obj_contentSpace, path_contentSpace);
|
|
3445
3515
|
if (referencepath_contentSpaceValidationError !== null) {
|
|
3446
3516
|
let message = 'Object doesn\'t match ManagedContentSpaceSummaryRepresentation (at "' + path_contentSpace + '")\n';
|
|
3447
3517
|
message += referencepath_contentSpaceValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3457,7 +3527,7 @@ function validate$E(obj, path = 'ManagedContentDocumentRepresentation') {
|
|
|
3457
3527
|
}
|
|
3458
3528
|
const obj_createdBy = obj.createdBy;
|
|
3459
3529
|
const path_createdBy = path + '.createdBy';
|
|
3460
|
-
const referencepath_createdByValidationError = validate$
|
|
3530
|
+
const referencepath_createdByValidationError = validate$X(obj_createdBy, path_createdBy);
|
|
3461
3531
|
if (referencepath_createdByValidationError !== null) {
|
|
3462
3532
|
let message = 'Object doesn\'t match ManagedContentUserSummaryRepresentation (at "' + path_createdBy + '")\n';
|
|
3463
3533
|
message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3488,7 +3558,7 @@ function validate$E(obj, path = 'ManagedContentDocumentRepresentation') {
|
|
|
3488
3558
|
}
|
|
3489
3559
|
const obj_lastModifiedBy = obj.lastModifiedBy;
|
|
3490
3560
|
const path_lastModifiedBy = path + '.lastModifiedBy';
|
|
3491
|
-
const referencepath_lastModifiedByValidationError = validate$
|
|
3561
|
+
const referencepath_lastModifiedByValidationError = validate$X(obj_lastModifiedBy, path_lastModifiedBy);
|
|
3492
3562
|
if (referencepath_lastModifiedByValidationError !== null) {
|
|
3493
3563
|
let message = 'Object doesn\'t match ManagedContentUserSummaryRepresentation (at "' + path_lastModifiedBy + '")\n';
|
|
3494
3564
|
message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3693,7 +3763,7 @@ const createResourceParams$r = /*#__PURE__*/ createResourceParams$z(createManage
|
|
|
3693
3763
|
function typeCheckConfig$r(untrustedConfig) {
|
|
3694
3764
|
const config = {};
|
|
3695
3765
|
const untrustedConfig_ManagedContentInputParam = untrustedConfig.ManagedContentInputParam;
|
|
3696
|
-
const referenceManagedContentInputRepresentationValidationError = validate$
|
|
3766
|
+
const referenceManagedContentInputRepresentationValidationError = validate$I(untrustedConfig_ManagedContentInputParam);
|
|
3697
3767
|
if (referenceManagedContentInputRepresentationValidationError === null) {
|
|
3698
3768
|
config.ManagedContentInputParam = untrustedConfig_ManagedContentInputParam;
|
|
3699
3769
|
}
|
|
@@ -4331,7 +4401,7 @@ function validate$y(obj, path = 'ManagedContentVariantRepresentation') {
|
|
|
4331
4401
|
}
|
|
4332
4402
|
const obj_contentSpace = obj.contentSpace;
|
|
4333
4403
|
const path_contentSpace = path + '.contentSpace';
|
|
4334
|
-
const referencepath_contentSpaceValidationError = validate$
|
|
4404
|
+
const referencepath_contentSpaceValidationError = validate$H(obj_contentSpace, path_contentSpace);
|
|
4335
4405
|
if (referencepath_contentSpaceValidationError !== null) {
|
|
4336
4406
|
let message = 'Object doesn\'t match ManagedContentSpaceSummaryRepresentation (at "' + path_contentSpace + '")\n';
|
|
4337
4407
|
message += referencepath_contentSpaceValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4347,7 +4417,7 @@ function validate$y(obj, path = 'ManagedContentVariantRepresentation') {
|
|
|
4347
4417
|
}
|
|
4348
4418
|
const obj_createdBy = obj.createdBy;
|
|
4349
4419
|
const path_createdBy = path + '.createdBy';
|
|
4350
|
-
const referencepath_createdByValidationError = validate$
|
|
4420
|
+
const referencepath_createdByValidationError = validate$X(obj_createdBy, path_createdBy);
|
|
4351
4421
|
if (referencepath_createdByValidationError !== null) {
|
|
4352
4422
|
let message = 'Object doesn\'t match ManagedContentUserSummaryRepresentation (at "' + path_createdBy + '")\n';
|
|
4353
4423
|
message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4378,7 +4448,7 @@ function validate$y(obj, path = 'ManagedContentVariantRepresentation') {
|
|
|
4378
4448
|
}
|
|
4379
4449
|
const obj_lastModifiedBy = obj.lastModifiedBy;
|
|
4380
4450
|
const path_lastModifiedBy = path + '.lastModifiedBy';
|
|
4381
|
-
const referencepath_lastModifiedByValidationError = validate$
|
|
4451
|
+
const referencepath_lastModifiedByValidationError = validate$X(obj_lastModifiedBy, path_lastModifiedBy);
|
|
4382
4452
|
if (referencepath_lastModifiedByValidationError !== null) {
|
|
4383
4453
|
let message = 'Object doesn\'t match ManagedContentUserSummaryRepresentation (at "' + path_lastModifiedBy + '")\n';
|
|
4384
4454
|
message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4932,7 +5002,7 @@ function validate$w(obj, path = 'ManagedContentVariantVersionRepresentation') {
|
|
|
4932
5002
|
}
|
|
4933
5003
|
const obj_createdBy = obj.createdBy;
|
|
4934
5004
|
const path_createdBy = path + '.createdBy';
|
|
4935
|
-
const referencepath_createdByValidationError = validate$
|
|
5005
|
+
const referencepath_createdByValidationError = validate$X(obj_createdBy, path_createdBy);
|
|
4936
5006
|
if (referencepath_createdByValidationError !== null) {
|
|
4937
5007
|
let message = 'Object doesn\'t match ManagedContentUserSummaryRepresentation (at "' + path_createdBy + '")\n';
|
|
4938
5008
|
message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4945,7 +5015,7 @@ function validate$w(obj, path = 'ManagedContentVariantVersionRepresentation') {
|
|
|
4945
5015
|
}
|
|
4946
5016
|
const obj_lastModifiedBy = obj.lastModifiedBy;
|
|
4947
5017
|
const path_lastModifiedBy = path + '.lastModifiedBy';
|
|
4948
|
-
const referencepath_lastModifiedByValidationError = validate$
|
|
5018
|
+
const referencepath_lastModifiedByValidationError = validate$X(obj_lastModifiedBy, path_lastModifiedBy);
|
|
4949
5019
|
if (referencepath_lastModifiedByValidationError !== null) {
|
|
4950
5020
|
let message = 'Object doesn\'t match ManagedContentUserSummaryRepresentation (at "' + path_lastModifiedBy + '")\n';
|
|
4951
5021
|
message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -6494,7 +6564,7 @@ function validate$k(obj, path = 'ManagedContentVariantReferenceDetailsRepresenta
|
|
|
6494
6564
|
}
|
|
6495
6565
|
const obj_createdBy = obj.createdBy;
|
|
6496
6566
|
const path_createdBy = path + '.createdBy';
|
|
6497
|
-
const referencepath_createdByValidationError = validate$
|
|
6567
|
+
const referencepath_createdByValidationError = validate$X(obj_createdBy, path_createdBy);
|
|
6498
6568
|
if (referencepath_createdByValidationError !== null) {
|
|
6499
6569
|
let message = 'Object doesn\'t match ManagedContentUserSummaryRepresentation (at "' + path_createdBy + '")\n';
|
|
6500
6570
|
message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -6520,7 +6590,7 @@ function validate$k(obj, path = 'ManagedContentVariantReferenceDetailsRepresenta
|
|
|
6520
6590
|
}
|
|
6521
6591
|
const obj_lastModifiedBy = obj.lastModifiedBy;
|
|
6522
6592
|
const path_lastModifiedBy = path + '.lastModifiedBy';
|
|
6523
|
-
const referencepath_lastModifiedByValidationError = validate$
|
|
6593
|
+
const referencepath_lastModifiedByValidationError = validate$X(obj_lastModifiedBy, path_lastModifiedBy);
|
|
6524
6594
|
if (referencepath_lastModifiedByValidationError !== null) {
|
|
6525
6595
|
let message = 'Object doesn\'t match ManagedContentUserSummaryRepresentation (at "' + path_lastModifiedBy + '")\n';
|
|
6526
6596
|
message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -7360,7 +7430,7 @@ function validate$e(obj, path = 'AbstractManagedContentSearchResultRepresentatio
|
|
|
7360
7430
|
}
|
|
7361
7431
|
const obj_createdBy = obj.createdBy;
|
|
7362
7432
|
const path_createdBy = path + '.createdBy';
|
|
7363
|
-
const referencepath_createdByValidationError = validate$
|
|
7433
|
+
const referencepath_createdByValidationError = validate$X(obj_createdBy, path_createdBy);
|
|
7364
7434
|
if (referencepath_createdByValidationError !== null) {
|
|
7365
7435
|
let message = 'Object doesn\'t match ManagedContentUserSummaryRepresentation (at "' + path_createdBy + '")\n';
|
|
7366
7436
|
message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -7386,7 +7456,7 @@ function validate$e(obj, path = 'AbstractManagedContentSearchResultRepresentatio
|
|
|
7386
7456
|
}
|
|
7387
7457
|
const obj_lastModifiedBy = obj.lastModifiedBy;
|
|
7388
7458
|
const path_lastModifiedBy = path + '.lastModifiedBy';
|
|
7389
|
-
const referencepath_lastModifiedByValidationError = validate$
|
|
7459
|
+
const referencepath_lastModifiedByValidationError = validate$X(obj_lastModifiedBy, path_lastModifiedBy);
|
|
7390
7460
|
if (referencepath_lastModifiedByValidationError !== null) {
|
|
7391
7461
|
let message = 'Object doesn\'t match ManagedContentUserSummaryRepresentation (at "' + path_lastModifiedBy + '")\n';
|
|
7392
7462
|
message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -9004,7 +9074,7 @@ function normalize$2(input, existing, path, luvio, store, timestamp) {
|
|
|
9004
9074
|
return input;
|
|
9005
9075
|
}
|
|
9006
9076
|
const select$7 = function ManagedContentTypeSummaryCollectionRepresentationSelect() {
|
|
9007
|
-
const { selections: ManagedContentTypeSummaryRepresentation__selections, opaque: ManagedContentTypeSummaryRepresentation__opaque, } = select$
|
|
9077
|
+
const { selections: ManagedContentTypeSummaryRepresentation__selections, opaque: ManagedContentTypeSummaryRepresentation__opaque, } = select$12();
|
|
9008
9078
|
return {
|
|
9009
9079
|
kind: 'Fragment',
|
|
9010
9080
|
version: VERSION$3,
|
|
@@ -9032,7 +9102,7 @@ function equals$3(existing, incoming) {
|
|
|
9032
9102
|
const existing_contentTypes = existing.contentTypes;
|
|
9033
9103
|
const incoming_contentTypes = incoming.contentTypes;
|
|
9034
9104
|
const equals_contentTypes_items = equalsArray(existing_contentTypes, incoming_contentTypes, (existing_contentTypes_item, incoming_contentTypes_item) => {
|
|
9035
|
-
if (!(equals$
|
|
9105
|
+
if (!(equals$w(existing_contentTypes_item, incoming_contentTypes_item))) {
|
|
9036
9106
|
return false;
|
|
9037
9107
|
}
|
|
9038
9108
|
});
|
package/dist/es/es2018/types/src/generated/types/ManagedContentDeploymentRepresentation.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { ManagedContentDeploymentItemRepresentation as ManagedContentDeploymentItemRepresentation_ManagedContentDeploymentItemRepresentation } from './ManagedContentDeploymentItemRepresentation';
|
|
2
|
+
import { ManagedContentUserSummaryRepresentation as ManagedContentUserSummaryRepresentation_ManagedContentUserSummaryRepresentation } from './ManagedContentUserSummaryRepresentation';
|
|
2
3
|
import { KeyMetadata as $64$luvio_engine_KeyMetadata, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, Luvio as $64$luvio_engine_Luvio, IngestPath as $64$luvio_engine_IngestPath, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap } from '@luvio/engine';
|
|
3
4
|
export declare const TTL = 100;
|
|
4
|
-
export declare const VERSION = "
|
|
5
|
+
export declare const VERSION = "f7e3c655efe77a7c9968ade15a6029b1";
|
|
5
6
|
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
6
7
|
export declare const RepresentationType: string;
|
|
7
8
|
export interface KeyParams extends $64$luvio_engine_KeyMetadata {
|
|
@@ -38,7 +39,7 @@ export interface ManagedContentDeploymentRepresentationNormalized {
|
|
|
38
39
|
/** ManagedContentDeployment Status */
|
|
39
40
|
deploymentStatus: string | null;
|
|
40
41
|
/** ManagedContentDeployment record Last Modified user Id */
|
|
41
|
-
lastModifiedBy:
|
|
42
|
+
lastModifiedBy: ManagedContentUserSummaryRepresentation_ManagedContentUserSummaryRepresentation | null;
|
|
42
43
|
/** ManagedContentDeployment Scheduled Date */
|
|
43
44
|
scheduledDate: string | null;
|
|
44
45
|
}
|
|
@@ -55,6 +56,6 @@ export interface ManagedContentDeploymentRepresentation {
|
|
|
55
56
|
deploymentItems: Array<ManagedContentDeploymentItemRepresentation_ManagedContentDeploymentItemRepresentation>;
|
|
56
57
|
deploymentName: string | null;
|
|
57
58
|
deploymentStatus: string | null;
|
|
58
|
-
lastModifiedBy:
|
|
59
|
+
lastModifiedBy: ManagedContentUserSummaryRepresentation_ManagedContentUserSummaryRepresentation | null;
|
|
59
60
|
scheduledDate: string | null;
|
|
60
61
|
}
|
package/package.json
CHANGED
package/sfdc/index.js
CHANGED
|
@@ -187,7 +187,7 @@ function validate$_(obj, path = 'ManagedContentDeploymentInputRepresentation') {
|
|
|
187
187
|
return v_error === undefined ? null : v_error;
|
|
188
188
|
}
|
|
189
189
|
|
|
190
|
-
const VERSION$
|
|
190
|
+
const VERSION$w = "7297fb0dbfe8f664d76179a65037c290";
|
|
191
191
|
function validate$Z(obj, path = 'ManagedContentTypeSummaryRepresentation') {
|
|
192
192
|
const v_error = (() => {
|
|
193
193
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -208,10 +208,10 @@ function validate$Z(obj, path = 'ManagedContentTypeSummaryRepresentation') {
|
|
|
208
208
|
})();
|
|
209
209
|
return v_error === undefined ? null : v_error;
|
|
210
210
|
}
|
|
211
|
-
const select$
|
|
211
|
+
const select$12 = function ManagedContentTypeSummaryRepresentationSelect() {
|
|
212
212
|
return {
|
|
213
213
|
kind: 'Fragment',
|
|
214
|
-
version: VERSION$
|
|
214
|
+
version: VERSION$w,
|
|
215
215
|
private: [],
|
|
216
216
|
selections: [
|
|
217
217
|
{
|
|
@@ -226,7 +226,7 @@ const select$11 = function ManagedContentTypeSummaryRepresentationSelect() {
|
|
|
226
226
|
]
|
|
227
227
|
};
|
|
228
228
|
};
|
|
229
|
-
function equals$
|
|
229
|
+
function equals$w(existing, incoming) {
|
|
230
230
|
const existing_fullyQualifiedName = existing.fullyQualifiedName;
|
|
231
231
|
const incoming_fullyQualifiedName = incoming.fullyQualifiedName;
|
|
232
232
|
if (!(existing_fullyQualifiedName === incoming_fullyQualifiedName)) {
|
|
@@ -248,7 +248,7 @@ function equals$v(existing, incoming) {
|
|
|
248
248
|
return true;
|
|
249
249
|
}
|
|
250
250
|
|
|
251
|
-
const VERSION$
|
|
251
|
+
const VERSION$v = "c30d880a3dba684a405d1cf961af2b76";
|
|
252
252
|
function validate$Y(obj, path = 'ManagedContentVariantSnapshotSummaryRepresentation') {
|
|
253
253
|
const v_error = (() => {
|
|
254
254
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -416,11 +416,11 @@ function validate$Y(obj, path = 'ManagedContentVariantSnapshotSummaryRepresentat
|
|
|
416
416
|
})();
|
|
417
417
|
return v_error === undefined ? null : v_error;
|
|
418
418
|
}
|
|
419
|
-
const select$
|
|
420
|
-
const { selections: ManagedContentTypeSummaryRepresentation__selections, opaque: ManagedContentTypeSummaryRepresentation__opaque, } = select$
|
|
419
|
+
const select$11 = function ManagedContentVariantSnapshotSummaryRepresentationSelect() {
|
|
420
|
+
const { selections: ManagedContentTypeSummaryRepresentation__selections, opaque: ManagedContentTypeSummaryRepresentation__opaque, } = select$12();
|
|
421
421
|
return {
|
|
422
422
|
kind: 'Fragment',
|
|
423
|
-
version: VERSION$
|
|
423
|
+
version: VERSION$v,
|
|
424
424
|
private: [],
|
|
425
425
|
selections: [
|
|
426
426
|
{
|
|
@@ -452,13 +452,13 @@ const select$10 = function ManagedContentVariantSnapshotSummaryRepresentationSel
|
|
|
452
452
|
]
|
|
453
453
|
};
|
|
454
454
|
};
|
|
455
|
-
function equals$
|
|
455
|
+
function equals$v(existing, incoming) {
|
|
456
456
|
const existing_contentType = existing.contentType;
|
|
457
457
|
const incoming_contentType = incoming.contentType;
|
|
458
458
|
if (!(existing_contentType === incoming_contentType
|
|
459
459
|
|| (existing_contentType != null &&
|
|
460
460
|
incoming_contentType != null &&
|
|
461
|
-
equals$
|
|
461
|
+
equals$w(existing_contentType, incoming_contentType)))) {
|
|
462
462
|
return false;
|
|
463
463
|
}
|
|
464
464
|
const existing_id = existing.id;
|
|
@@ -489,7 +489,7 @@ function equals$u(existing, incoming) {
|
|
|
489
489
|
return true;
|
|
490
490
|
}
|
|
491
491
|
|
|
492
|
-
const VERSION$
|
|
492
|
+
const VERSION$u = "f99d45f1e809783023bfd9dbe2fe4a6c";
|
|
493
493
|
function validate$X(obj, path = 'ManagedContentDeploymentItemRepresentation') {
|
|
494
494
|
const v_error = (() => {
|
|
495
495
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -583,11 +583,11 @@ function validate$X(obj, path = 'ManagedContentDeploymentItemRepresentation') {
|
|
|
583
583
|
})();
|
|
584
584
|
return v_error === undefined ? null : v_error;
|
|
585
585
|
}
|
|
586
|
-
const select
|
|
587
|
-
const { selections: ManagedContentVariantSnapshotSummaryRepresentation__selections, opaque: ManagedContentVariantSnapshotSummaryRepresentation__opaque, } = select$
|
|
586
|
+
const select$10 = function ManagedContentDeploymentItemRepresentationSelect() {
|
|
587
|
+
const { selections: ManagedContentVariantSnapshotSummaryRepresentation__selections, opaque: ManagedContentVariantSnapshotSummaryRepresentation__opaque, } = select$11();
|
|
588
588
|
return {
|
|
589
589
|
kind: 'Fragment',
|
|
590
|
-
version: VERSION$
|
|
590
|
+
version: VERSION$u,
|
|
591
591
|
private: [],
|
|
592
592
|
selections: [
|
|
593
593
|
{
|
|
@@ -626,7 +626,7 @@ const select$$ = function ManagedContentDeploymentItemRepresentationSelect() {
|
|
|
626
626
|
]
|
|
627
627
|
};
|
|
628
628
|
};
|
|
629
|
-
function equals$
|
|
629
|
+
function equals$u(existing, incoming) {
|
|
630
630
|
const existing_isTopLevel = existing.isTopLevel;
|
|
631
631
|
const incoming_isTopLevel = incoming.isTopLevel;
|
|
632
632
|
if (!(existing_isTopLevel === incoming_isTopLevel)) {
|
|
@@ -654,7 +654,7 @@ function equals$t(existing, incoming) {
|
|
|
654
654
|
}
|
|
655
655
|
const existing_mcvSnapshotSummary = existing.mcvSnapshotSummary;
|
|
656
656
|
const incoming_mcvSnapshotSummary = incoming.mcvSnapshotSummary;
|
|
657
|
-
if (!(equals$
|
|
657
|
+
if (!(equals$v(existing_mcvSnapshotSummary, incoming_mcvSnapshotSummary))) {
|
|
658
658
|
return false;
|
|
659
659
|
}
|
|
660
660
|
const existing_targetId = existing.targetId;
|
|
@@ -670,9 +670,84 @@ function equals$t(existing, incoming) {
|
|
|
670
670
|
return true;
|
|
671
671
|
}
|
|
672
672
|
|
|
673
|
+
const VERSION$t = "4b75ed6ff448da86412b605f7e775a62";
|
|
674
|
+
function validate$W(obj, path = 'ManagedContentUserSummaryRepresentation') {
|
|
675
|
+
const v_error = (() => {
|
|
676
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
677
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
678
|
+
}
|
|
679
|
+
const obj_id = obj.id;
|
|
680
|
+
const path_id = path + '.id';
|
|
681
|
+
if (typeof obj_id !== 'string') {
|
|
682
|
+
return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
|
|
683
|
+
}
|
|
684
|
+
if (obj.name !== undefined) {
|
|
685
|
+
const obj_name = obj.name;
|
|
686
|
+
const path_name = path + '.name';
|
|
687
|
+
if (typeof obj_name !== 'string') {
|
|
688
|
+
return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
|
|
689
|
+
}
|
|
690
|
+
}
|
|
691
|
+
const obj_resourceUrl = obj.resourceUrl;
|
|
692
|
+
const path_resourceUrl = path + '.resourceUrl';
|
|
693
|
+
if (typeof obj_resourceUrl !== 'string') {
|
|
694
|
+
return new TypeError('Expected "string" but received "' + typeof obj_resourceUrl + '" (at "' + path_resourceUrl + '")');
|
|
695
|
+
}
|
|
696
|
+
})();
|
|
697
|
+
return v_error === undefined ? null : v_error;
|
|
698
|
+
}
|
|
699
|
+
const select$$ = function ManagedContentUserSummaryRepresentationSelect() {
|
|
700
|
+
return {
|
|
701
|
+
kind: 'Fragment',
|
|
702
|
+
version: VERSION$t,
|
|
703
|
+
private: [],
|
|
704
|
+
selections: [
|
|
705
|
+
{
|
|
706
|
+
name: 'id',
|
|
707
|
+
kind: 'Scalar'
|
|
708
|
+
},
|
|
709
|
+
{
|
|
710
|
+
name: 'name',
|
|
711
|
+
kind: 'Scalar',
|
|
712
|
+
required: false
|
|
713
|
+
},
|
|
714
|
+
{
|
|
715
|
+
name: 'resourceUrl',
|
|
716
|
+
kind: 'Scalar'
|
|
717
|
+
}
|
|
718
|
+
]
|
|
719
|
+
};
|
|
720
|
+
};
|
|
721
|
+
function equals$t(existing, incoming) {
|
|
722
|
+
const existing_id = existing.id;
|
|
723
|
+
const incoming_id = incoming.id;
|
|
724
|
+
if (!(existing_id === incoming_id)) {
|
|
725
|
+
return false;
|
|
726
|
+
}
|
|
727
|
+
const existing_name = existing.name;
|
|
728
|
+
const incoming_name = incoming.name;
|
|
729
|
+
// if at least one of these optionals is defined
|
|
730
|
+
if (existing_name !== undefined || incoming_name !== undefined) {
|
|
731
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
732
|
+
// not equal
|
|
733
|
+
if (existing_name === undefined || incoming_name === undefined) {
|
|
734
|
+
return false;
|
|
735
|
+
}
|
|
736
|
+
if (!(existing_name === incoming_name)) {
|
|
737
|
+
return false;
|
|
738
|
+
}
|
|
739
|
+
}
|
|
740
|
+
const existing_resourceUrl = existing.resourceUrl;
|
|
741
|
+
const incoming_resourceUrl = incoming.resourceUrl;
|
|
742
|
+
if (!(existing_resourceUrl === incoming_resourceUrl)) {
|
|
743
|
+
return false;
|
|
744
|
+
}
|
|
745
|
+
return true;
|
|
746
|
+
}
|
|
747
|
+
|
|
673
748
|
const TTL$p = 100;
|
|
674
|
-
const VERSION$s = "
|
|
675
|
-
function validate$
|
|
749
|
+
const VERSION$s = "f7e3c655efe77a7c9968ade15a6029b1";
|
|
750
|
+
function validate$V(obj, path = 'ManagedContentDeploymentRepresentation') {
|
|
676
751
|
const v_error = (() => {
|
|
677
752
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
678
753
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -805,8 +880,11 @@ function validate$W(obj, path = 'ManagedContentDeploymentRepresentation') {
|
|
|
805
880
|
const path_lastModifiedBy = path + '.lastModifiedBy';
|
|
806
881
|
let obj_lastModifiedBy_union0 = null;
|
|
807
882
|
const obj_lastModifiedBy_union0_error = (() => {
|
|
808
|
-
|
|
809
|
-
|
|
883
|
+
const referencepath_lastModifiedByValidationError = validate$W(obj_lastModifiedBy, path_lastModifiedBy);
|
|
884
|
+
if (referencepath_lastModifiedByValidationError !== null) {
|
|
885
|
+
let message = 'Object doesn\'t match ManagedContentUserSummaryRepresentation (at "' + path_lastModifiedBy + '")\n';
|
|
886
|
+
message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
887
|
+
return new TypeError(message);
|
|
810
888
|
}
|
|
811
889
|
})();
|
|
812
890
|
if (obj_lastModifiedBy_union0_error != null) {
|
|
@@ -870,7 +948,8 @@ function normalize$p(input, existing, path, luvio, store, timestamp) {
|
|
|
870
948
|
return input;
|
|
871
949
|
}
|
|
872
950
|
const select$_ = function ManagedContentDeploymentRepresentationSelect() {
|
|
873
|
-
const { selections: ManagedContentDeploymentItemRepresentation__selections, opaque: ManagedContentDeploymentItemRepresentation__opaque, } = select
|
|
951
|
+
const { selections: ManagedContentDeploymentItemRepresentation__selections, opaque: ManagedContentDeploymentItemRepresentation__opaque, } = select$10();
|
|
952
|
+
const { selections: ManagedContentUserSummaryRepresentation__selections, opaque: ManagedContentUserSummaryRepresentation__opaque, } = select$$();
|
|
874
953
|
return {
|
|
875
954
|
kind: 'Fragment',
|
|
876
955
|
version: VERSION$s,
|
|
@@ -904,7 +983,9 @@ const select$_ = function ManagedContentDeploymentRepresentationSelect() {
|
|
|
904
983
|
},
|
|
905
984
|
{
|
|
906
985
|
name: 'lastModifiedBy',
|
|
907
|
-
kind: '
|
|
986
|
+
kind: 'Object',
|
|
987
|
+
nullable: true,
|
|
988
|
+
selections: ManagedContentUserSummaryRepresentation__selections
|
|
908
989
|
},
|
|
909
990
|
{
|
|
910
991
|
name: 'scheduledDate',
|
|
@@ -932,7 +1013,7 @@ function equals$s(existing, incoming) {
|
|
|
932
1013
|
const existing_deploymentItems = existing.deploymentItems;
|
|
933
1014
|
const incoming_deploymentItems = incoming.deploymentItems;
|
|
934
1015
|
const equals_deploymentItems_items = equalsArray(existing_deploymentItems, incoming_deploymentItems, (existing_deploymentItems_item, incoming_deploymentItems_item) => {
|
|
935
|
-
if (!(equals$
|
|
1016
|
+
if (!(equals$u(existing_deploymentItems_item, incoming_deploymentItems_item))) {
|
|
936
1017
|
return false;
|
|
937
1018
|
}
|
|
938
1019
|
});
|
|
@@ -951,7 +1032,10 @@ function equals$s(existing, incoming) {
|
|
|
951
1032
|
}
|
|
952
1033
|
const existing_lastModifiedBy = existing.lastModifiedBy;
|
|
953
1034
|
const incoming_lastModifiedBy = incoming.lastModifiedBy;
|
|
954
|
-
if (!(existing_lastModifiedBy === incoming_lastModifiedBy
|
|
1035
|
+
if (!(existing_lastModifiedBy === incoming_lastModifiedBy
|
|
1036
|
+
|| (existing_lastModifiedBy != null &&
|
|
1037
|
+
incoming_lastModifiedBy != null &&
|
|
1038
|
+
equals$t(existing_lastModifiedBy, incoming_lastModifiedBy)))) {
|
|
955
1039
|
return false;
|
|
956
1040
|
}
|
|
957
1041
|
const existing_scheduledDate = existing.scheduledDate;
|
|
@@ -963,7 +1047,7 @@ function equals$s(existing, incoming) {
|
|
|
963
1047
|
}
|
|
964
1048
|
const ingest$p = function ManagedContentDeploymentRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
965
1049
|
if (process.env.NODE_ENV !== 'production') {
|
|
966
|
-
const validateError = validate$
|
|
1050
|
+
const validateError = validate$V(input);
|
|
967
1051
|
if (validateError !== null) {
|
|
968
1052
|
throw validateError;
|
|
969
1053
|
}
|
|
@@ -1077,7 +1161,7 @@ const createDeploymentAdapterFactory = (luvio) => {
|
|
|
1077
1161
|
};
|
|
1078
1162
|
};
|
|
1079
1163
|
|
|
1080
|
-
function validate$
|
|
1164
|
+
function validate$U(obj, path = 'ManagedContentInputRepresentation') {
|
|
1081
1165
|
const v_error = (() => {
|
|
1082
1166
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1083
1167
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1124,7 +1208,7 @@ function validate$V(obj, path = 'ManagedContentInputRepresentation') {
|
|
|
1124
1208
|
return v_error === undefined ? null : v_error;
|
|
1125
1209
|
}
|
|
1126
1210
|
|
|
1127
|
-
function validate$
|
|
1211
|
+
function validate$T(obj, path = 'ManagedContentSpaceSummaryRepresentation') {
|
|
1128
1212
|
const v_error = (() => {
|
|
1129
1213
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1130
1214
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1143,32 +1227,6 @@ function validate$U(obj, path = 'ManagedContentSpaceSummaryRepresentation') {
|
|
|
1143
1227
|
return v_error === undefined ? null : v_error;
|
|
1144
1228
|
}
|
|
1145
1229
|
|
|
1146
|
-
function validate$T(obj, path = 'ManagedContentUserSummaryRepresentation') {
|
|
1147
|
-
const v_error = (() => {
|
|
1148
|
-
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1149
|
-
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1150
|
-
}
|
|
1151
|
-
const obj_id = obj.id;
|
|
1152
|
-
const path_id = path + '.id';
|
|
1153
|
-
if (typeof obj_id !== 'string') {
|
|
1154
|
-
return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
|
|
1155
|
-
}
|
|
1156
|
-
if (obj.name !== undefined) {
|
|
1157
|
-
const obj_name = obj.name;
|
|
1158
|
-
const path_name = path + '.name';
|
|
1159
|
-
if (typeof obj_name !== 'string') {
|
|
1160
|
-
return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
|
|
1161
|
-
}
|
|
1162
|
-
}
|
|
1163
|
-
const obj_resourceUrl = obj.resourceUrl;
|
|
1164
|
-
const path_resourceUrl = path + '.resourceUrl';
|
|
1165
|
-
if (typeof obj_resourceUrl !== 'string') {
|
|
1166
|
-
return new TypeError('Expected "string" but received "' + typeof obj_resourceUrl + '" (at "' + path_resourceUrl + '")');
|
|
1167
|
-
}
|
|
1168
|
-
})();
|
|
1169
|
-
return v_error === undefined ? null : v_error;
|
|
1170
|
-
}
|
|
1171
|
-
|
|
1172
1230
|
function validate$S(obj, path = 'ManagedContentFolderSummaryRepresentation') {
|
|
1173
1231
|
const v_error = (() => {
|
|
1174
1232
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -1235,7 +1293,7 @@ function validate$Q(obj, path = 'ManagedContentDocumentRepresentation') {
|
|
|
1235
1293
|
}
|
|
1236
1294
|
const obj_contentSpace = obj.contentSpace;
|
|
1237
1295
|
const path_contentSpace = path + '.contentSpace';
|
|
1238
|
-
const referencepath_contentSpaceValidationError = validate$
|
|
1296
|
+
const referencepath_contentSpaceValidationError = validate$T(obj_contentSpace, path_contentSpace);
|
|
1239
1297
|
if (referencepath_contentSpaceValidationError !== null) {
|
|
1240
1298
|
let message = 'Object doesn\'t match ManagedContentSpaceSummaryRepresentation (at "' + path_contentSpace + '")\n';
|
|
1241
1299
|
message += referencepath_contentSpaceValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1251,7 +1309,7 @@ function validate$Q(obj, path = 'ManagedContentDocumentRepresentation') {
|
|
|
1251
1309
|
}
|
|
1252
1310
|
const obj_createdBy = obj.createdBy;
|
|
1253
1311
|
const path_createdBy = path + '.createdBy';
|
|
1254
|
-
const referencepath_createdByValidationError = validate$
|
|
1312
|
+
const referencepath_createdByValidationError = validate$W(obj_createdBy, path_createdBy);
|
|
1255
1313
|
if (referencepath_createdByValidationError !== null) {
|
|
1256
1314
|
let message = 'Object doesn\'t match ManagedContentUserSummaryRepresentation (at "' + path_createdBy + '")\n';
|
|
1257
1315
|
message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1282,7 +1340,7 @@ function validate$Q(obj, path = 'ManagedContentDocumentRepresentation') {
|
|
|
1282
1340
|
}
|
|
1283
1341
|
const obj_lastModifiedBy = obj.lastModifiedBy;
|
|
1284
1342
|
const path_lastModifiedBy = path + '.lastModifiedBy';
|
|
1285
|
-
const referencepath_lastModifiedByValidationError = validate$
|
|
1343
|
+
const referencepath_lastModifiedByValidationError = validate$W(obj_lastModifiedBy, path_lastModifiedBy);
|
|
1286
1344
|
if (referencepath_lastModifiedByValidationError !== null) {
|
|
1287
1345
|
let message = 'Object doesn\'t match ManagedContentUserSummaryRepresentation (at "' + path_lastModifiedBy + '")\n';
|
|
1288
1346
|
message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1487,7 +1545,7 @@ const createResourceParams$x = /*#__PURE__*/ createResourceParams$z(createManage
|
|
|
1487
1545
|
function typeCheckConfig$x(untrustedConfig) {
|
|
1488
1546
|
const config = {};
|
|
1489
1547
|
const untrustedConfig_ManagedContentInputParam = untrustedConfig.ManagedContentInputParam;
|
|
1490
|
-
const referenceManagedContentInputRepresentationValidationError = validate$
|
|
1548
|
+
const referenceManagedContentInputRepresentationValidationError = validate$U(untrustedConfig_ManagedContentInputParam);
|
|
1491
1549
|
if (referenceManagedContentInputRepresentationValidationError === null) {
|
|
1492
1550
|
config.ManagedContentInputParam = untrustedConfig_ManagedContentInputParam;
|
|
1493
1551
|
}
|
|
@@ -2082,7 +2140,7 @@ function validate$L(obj, path = 'ManagedContentVariantRepresentation') {
|
|
|
2082
2140
|
}
|
|
2083
2141
|
const obj_contentSpace = obj.contentSpace;
|
|
2084
2142
|
const path_contentSpace = path + '.contentSpace';
|
|
2085
|
-
const referencepath_contentSpaceValidationError = validate$
|
|
2143
|
+
const referencepath_contentSpaceValidationError = validate$T(obj_contentSpace, path_contentSpace);
|
|
2086
2144
|
if (referencepath_contentSpaceValidationError !== null) {
|
|
2087
2145
|
let message = 'Object doesn\'t match ManagedContentSpaceSummaryRepresentation (at "' + path_contentSpace + '")\n';
|
|
2088
2146
|
message += referencepath_contentSpaceValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2098,7 +2156,7 @@ function validate$L(obj, path = 'ManagedContentVariantRepresentation') {
|
|
|
2098
2156
|
}
|
|
2099
2157
|
const obj_createdBy = obj.createdBy;
|
|
2100
2158
|
const path_createdBy = path + '.createdBy';
|
|
2101
|
-
const referencepath_createdByValidationError = validate$
|
|
2159
|
+
const referencepath_createdByValidationError = validate$W(obj_createdBy, path_createdBy);
|
|
2102
2160
|
if (referencepath_createdByValidationError !== null) {
|
|
2103
2161
|
let message = 'Object doesn\'t match ManagedContentUserSummaryRepresentation (at "' + path_createdBy + '")\n';
|
|
2104
2162
|
message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2129,7 +2187,7 @@ function validate$L(obj, path = 'ManagedContentVariantRepresentation') {
|
|
|
2129
2187
|
}
|
|
2130
2188
|
const obj_lastModifiedBy = obj.lastModifiedBy;
|
|
2131
2189
|
const path_lastModifiedBy = path + '.lastModifiedBy';
|
|
2132
|
-
const referencepath_lastModifiedByValidationError = validate$
|
|
2190
|
+
const referencepath_lastModifiedByValidationError = validate$W(obj_lastModifiedBy, path_lastModifiedBy);
|
|
2133
2191
|
if (referencepath_lastModifiedByValidationError !== null) {
|
|
2134
2192
|
let message = 'Object doesn\'t match ManagedContentUserSummaryRepresentation (at "' + path_lastModifiedBy + '")\n';
|
|
2135
2193
|
message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4334,6 +4392,12 @@ function createResourceRequest$n(config) {
|
|
|
4334
4392
|
}
|
|
4335
4393
|
|
|
4336
4394
|
const adapterName$n = 'getDeployments';
|
|
4395
|
+
const oneOfConfigPropertiesIdentifier = [
|
|
4396
|
+
'deploymentId',
|
|
4397
|
+
'contentSpaceId',
|
|
4398
|
+
'variantIds',
|
|
4399
|
+
'managedContentVersionId'
|
|
4400
|
+
];
|
|
4337
4401
|
const getDeployments_ConfigPropertyMetadata = [
|
|
4338
4402
|
generateParamConfigMetadata('contentSpaceId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
4339
4403
|
generateParamConfigMetadata('deploymentId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
@@ -4360,12 +4424,18 @@ function validateAdapterConfig$n(untrustedConfig, configPropertyNames) {
|
|
|
4360
4424
|
return null;
|
|
4361
4425
|
}
|
|
4362
4426
|
if (process.env.NODE_ENV !== 'production') {
|
|
4363
|
-
validateConfig(untrustedConfig, configPropertyNames);
|
|
4427
|
+
validateConfig(untrustedConfig, configPropertyNames, oneOfConfigPropertiesIdentifier);
|
|
4364
4428
|
}
|
|
4365
4429
|
const config = typeCheckConfig$n(untrustedConfig);
|
|
4366
4430
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
4367
4431
|
return null;
|
|
4368
4432
|
}
|
|
4433
|
+
if (config.deploymentId === undefined &&
|
|
4434
|
+
config.contentSpaceId === undefined &&
|
|
4435
|
+
config.variantIds === undefined &&
|
|
4436
|
+
config.managedContentVersionId === undefined) {
|
|
4437
|
+
return null;
|
|
4438
|
+
}
|
|
4369
4439
|
return config;
|
|
4370
4440
|
}
|
|
4371
4441
|
function adapterFragment$g(luvio, config) {
|
|
@@ -7132,7 +7202,7 @@ function normalize$8(input, existing, path, luvio, store, timestamp) {
|
|
|
7132
7202
|
return input;
|
|
7133
7203
|
}
|
|
7134
7204
|
const select$m = function ManagedContentTypeSummaryCollectionRepresentationSelect() {
|
|
7135
|
-
const { selections: ManagedContentTypeSummaryRepresentation__selections, opaque: ManagedContentTypeSummaryRepresentation__opaque, } = select$
|
|
7205
|
+
const { selections: ManagedContentTypeSummaryRepresentation__selections, opaque: ManagedContentTypeSummaryRepresentation__opaque, } = select$12();
|
|
7136
7206
|
return {
|
|
7137
7207
|
kind: 'Fragment',
|
|
7138
7208
|
version: VERSION$8,
|
|
@@ -7160,7 +7230,7 @@ function equals$8(existing, incoming) {
|
|
|
7160
7230
|
const existing_contentTypes = existing.contentTypes;
|
|
7161
7231
|
const incoming_contentTypes = incoming.contentTypes;
|
|
7162
7232
|
const equals_contentTypes_items = equalsArray(existing_contentTypes, incoming_contentTypes, (existing_contentTypes_item, incoming_contentTypes_item) => {
|
|
7163
|
-
if (!(equals$
|
|
7233
|
+
if (!(equals$w(existing_contentTypes_item, incoming_contentTypes_item))) {
|
|
7164
7234
|
return false;
|
|
7165
7235
|
}
|
|
7166
7236
|
});
|
|
@@ -7531,7 +7601,7 @@ function validate$j(obj, path = 'ManagedContentVariantReferenceDetailsRepresenta
|
|
|
7531
7601
|
}
|
|
7532
7602
|
const obj_createdBy = obj.createdBy;
|
|
7533
7603
|
const path_createdBy = path + '.createdBy';
|
|
7534
|
-
const referencepath_createdByValidationError = validate$
|
|
7604
|
+
const referencepath_createdByValidationError = validate$W(obj_createdBy, path_createdBy);
|
|
7535
7605
|
if (referencepath_createdByValidationError !== null) {
|
|
7536
7606
|
let message = 'Object doesn\'t match ManagedContentUserSummaryRepresentation (at "' + path_createdBy + '")\n';
|
|
7537
7607
|
message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -7557,7 +7627,7 @@ function validate$j(obj, path = 'ManagedContentVariantReferenceDetailsRepresenta
|
|
|
7557
7627
|
}
|
|
7558
7628
|
const obj_lastModifiedBy = obj.lastModifiedBy;
|
|
7559
7629
|
const path_lastModifiedBy = path + '.lastModifiedBy';
|
|
7560
|
-
const referencepath_lastModifiedByValidationError = validate$
|
|
7630
|
+
const referencepath_lastModifiedByValidationError = validate$W(obj_lastModifiedBy, path_lastModifiedBy);
|
|
7561
7631
|
if (referencepath_lastModifiedByValidationError !== null) {
|
|
7562
7632
|
let message = 'Object doesn\'t match ManagedContentUserSummaryRepresentation (at "' + path_lastModifiedBy + '")\n';
|
|
7563
7633
|
message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -8050,7 +8120,7 @@ function validate$g(obj, path = 'ManagedContentVariantVersionRepresentation') {
|
|
|
8050
8120
|
}
|
|
8051
8121
|
const obj_createdBy = obj.createdBy;
|
|
8052
8122
|
const path_createdBy = path + '.createdBy';
|
|
8053
|
-
const referencepath_createdByValidationError = validate$
|
|
8123
|
+
const referencepath_createdByValidationError = validate$W(obj_createdBy, path_createdBy);
|
|
8054
8124
|
if (referencepath_createdByValidationError !== null) {
|
|
8055
8125
|
let message = 'Object doesn\'t match ManagedContentUserSummaryRepresentation (at "' + path_createdBy + '")\n';
|
|
8056
8126
|
message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -8063,7 +8133,7 @@ function validate$g(obj, path = 'ManagedContentVariantVersionRepresentation') {
|
|
|
8063
8133
|
}
|
|
8064
8134
|
const obj_lastModifiedBy = obj.lastModifiedBy;
|
|
8065
8135
|
const path_lastModifiedBy = path + '.lastModifiedBy';
|
|
8066
|
-
const referencepath_lastModifiedByValidationError = validate$
|
|
8136
|
+
const referencepath_lastModifiedByValidationError = validate$W(obj_lastModifiedBy, path_lastModifiedBy);
|
|
8067
8137
|
if (referencepath_lastModifiedByValidationError !== null) {
|
|
8068
8138
|
let message = 'Object doesn\'t match ManagedContentUserSummaryRepresentation (at "' + path_lastModifiedBy + '")\n';
|
|
8069
8139
|
message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -8384,7 +8454,7 @@ function validate$e(obj, path = 'AbstractManagedContentSearchResultRepresentatio
|
|
|
8384
8454
|
}
|
|
8385
8455
|
const obj_createdBy = obj.createdBy;
|
|
8386
8456
|
const path_createdBy = path + '.createdBy';
|
|
8387
|
-
const referencepath_createdByValidationError = validate$
|
|
8457
|
+
const referencepath_createdByValidationError = validate$W(obj_createdBy, path_createdBy);
|
|
8388
8458
|
if (referencepath_createdByValidationError !== null) {
|
|
8389
8459
|
let message = 'Object doesn\'t match ManagedContentUserSummaryRepresentation (at "' + path_createdBy + '")\n';
|
|
8390
8460
|
message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -8410,7 +8480,7 @@ function validate$e(obj, path = 'AbstractManagedContentSearchResultRepresentatio
|
|
|
8410
8480
|
}
|
|
8411
8481
|
const obj_lastModifiedBy = obj.lastModifiedBy;
|
|
8412
8482
|
const path_lastModifiedBy = path + '.lastModifiedBy';
|
|
8413
|
-
const referencepath_lastModifiedByValidationError = validate$
|
|
8483
|
+
const referencepath_lastModifiedByValidationError = validate$W(obj_lastModifiedBy, path_lastModifiedBy);
|
|
8414
8484
|
if (referencepath_lastModifiedByValidationError !== null) {
|
|
8415
8485
|
let message = 'Object doesn\'t match ManagedContentUserSummaryRepresentation (at "' + path_lastModifiedBy + '")\n';
|
|
8416
8486
|
message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -10439,4 +10509,4 @@ withDefaultLuvio((luvio) => {
|
|
|
10439
10509
|
});
|
|
10440
10510
|
|
|
10441
10511
|
export { createDeployment, createManagedContent, createManagedContentExportV2Job, createManagedContentImportV2Job, createManagedContentVariant, createSchedule, createTranslationV2Job, deleteManagedContentVariant, getAllCMSJobsForSpace, getAllCMSJobsForSpace_imperative, getCMSJobForSpace, getCMSJobForSpaceNotifyChange, getCMSJobForSpace_imperative, getCollectionItems, getCollectionItems_imperative, getDeployments, getDeployments_imperative, getManagedContent, getManagedContentByFolderId, getManagedContentByFolderId_imperative, getManagedContentPreviews, getManagedContentPreviews_imperative, getManagedContentReferencedBy, getManagedContentReferencedBy_imperative, getManagedContentSpace, getManagedContentSpaceFolder, getManagedContentSpaceFolderItemsV1, getManagedContentSpaceFolderItemsV1_imperative, getManagedContentSpaceFolder_imperative, getManagedContentSpaceNotifyChange, getManagedContentSpaceOrchestratorConfig, getManagedContentSpaceOrchestratorConfigNotifyChange, getManagedContentSpaceOrchestratorConfig_imperative, getManagedContentSpace_imperative, getManagedContentSpaces, getManagedContentSpaces_imperative, getManagedContentTypesForMixin, getManagedContentTypesForMixin_imperative, getManagedContentVariant, getManagedContentVariantNotifyChange, getManagedContentVariantReferences, getManagedContentVariantReferences_imperative, getManagedContentVariantRendition, getManagedContentVariantRendition_imperative, getManagedContentVariantVersions, getManagedContentVariantVersionsNotifyChange, getManagedContentVariantVersions_imperative, getManagedContentVariant_imperative, getManagedContent_imperative, getSearchResults, getSearchResults_imperative, getWebUrls, getWebUrls_imperative, patchManagedContentSpace, publishManagedContent, putManagedContentSpaceOrchestratorConfig, replaceManagedContentVariant, unpublishManagedContent, updateDeployment, updateManagedContentWebUrl };
|
|
10442
|
-
// version: 1.
|
|
10512
|
+
// version: 1.253.0-15fc9805a
|
package/src/raml/api.raml
CHANGED
|
@@ -731,7 +731,7 @@ types:
|
|
|
731
731
|
type: string | nil
|
|
732
732
|
lastModifiedBy:
|
|
733
733
|
description: ManagedContentDeployment record Last Modified user Id
|
|
734
|
-
type:
|
|
734
|
+
type: ManagedContentUserSummaryRepresentation | nil
|
|
735
735
|
scheduledDate:
|
|
736
736
|
description: ManagedContentDeployment Scheduled Date
|
|
737
737
|
type: string | nil
|
package/src/raml/luvio.raml
CHANGED