@salesforce/lds-adapters-cms-authoring 1.435.1 → 1.436.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.
@@ -94,7 +94,7 @@ function createLink(ref) {
94
94
  }
95
95
 
96
96
  const VERSION$O = "7297fb0dbfe8f664d76179a65037c290";
97
- function validate$1q(obj, path = 'ManagedContentTypeSummaryRepresentation') {
97
+ function validate$1r(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$1p(obj, path = 'ManagedContentVariantSnapshotSummaryRepresentation') {
158
+ function validate$1q(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$1q(obj_contentType, path_contentType);
167
+ const referencepath_contentTypeValidationError = validate$1r(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$1o(obj, path = 'ManagedContentDeploymentItemRepresentation') {
399
+ function validate$1p(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$1p(obj_mcvSnapshotSummary, path_mcvSnapshotSummary);
426
+ const referencepath_mcvSnapshotSummaryValidationError = validate$1q(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$1n(obj, path = 'ManagedContentUserSummaryRepresentation') {
580
+ function validate$1o(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$1m(obj, path = 'ManagedContentDeploymentRepresentation') {
656
+ function validate$1n(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$1o(obj_deploymentItems_item, path_deploymentItems_item);
726
+ const referencepath_deploymentItems_itemValidationError = validate$1p(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$1n(obj_lastModifiedBy, path_lastModifiedBy);
789
+ const referencepath_lastModifiedByValidationError = validate$1o(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$1m(input);
956
+ const validateError = validate$1n(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$1l(obj, path = 'ManagedContentDeploymentCollectionRepresentation') {
978
+ function validate$1m(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$1l(input);
1132
+ const validateError = validate$1m(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$1k(obj, path = 'ManagedContentDeploymentInputRepresentation') {
1313
+ function validate$1l(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$1k(untrustedConfig_DeploymentInput);
1443
+ const referenceManagedContentDeploymentInputRepresentationValidationError = validate$1l(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$1j(obj, path = 'ManagedContentJobBodyRepresentation') {
1492
+ function validate$1k(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$1i(obj, path = 'ManagedContentJobBodyCollectionRepresentation') {
1570
+ function validate$1j(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$1j(obj_jobBodies_item, path_jobBodies_item);
1583
+ const referencepath_jobBodies_itemValidationError = validate$1k(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$1h(obj, path = 'ManagedContentV2JobDetailRepresentation') {
1625
+ function validate$1i(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$1i(obj_body, path_body);
1634
+ const referencepath_bodyValidationError = validate$1j(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$1h(input);
1851
+ const validateError = validate$1i(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$1g(obj, path = 'ManagedContentJobCollectionRepresentation') {
1873
+ function validate$1h(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$1g(input);
2027
+ const validateError = validate$1h(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$1f(obj, path = 'ManagedContentSpaceFolderItemV1Representation') {
2333
+ function validate$1g(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$1e(obj, path = 'ManagedContentSpaceFolderItemV1CollectionRepresentation') {
2423
+ function validate$1f(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$1f(obj_folderItems_item, path_folderItems_item);
2441
+ const referencepath_folderItems_itemValidationError = validate$1g(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$1e(input);
2497
+ const validateError = validate$1f(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$1d(obj, path = 'ManagedContentCollectionItemTypeSummaryRepresentation') {
2665
+ function validate$1e(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$1c(obj, path = 'ManagedContentCollectionItemRepresentation') {
2684
+ function validate$1d(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$1d(obj_contentType, path_contentType);
2705
+ const referencepath_contentTypeValidationError = validate$1e(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$1b(obj, path = 'ManagedContentCollectionDetailRepresentation') {
2727
+ function validate$1c(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$1q(obj_collectionType, path_collectionType);
2739
+ const referencepath_collectionTypeValidationError = validate$1r(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$1c(obj_items_item, path_items_item);
2768
+ const referencepath_items_itemValidationError = validate$1d(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$1b(input);
2839
+ const validateError = validate$1c(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$1a(obj, path = 'ManagedContentTranslationV2RequestInputRep') {
3002
+ function validate$1b(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$19(obj, path = 'ManagedContentTranslationV2Representation') {
3074
+ function validate$1a(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$19(input);
3260
+ const validateError = validate$1a(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$1a(untrustedConfig_translationV2Request);
3328
+ const referenceManagedContentTranslationV2RequestInputRepValidationError = validate$1b(untrustedConfig_translationV2Request);
3329
3329
  if (referenceManagedContentTranslationV2RequestInputRepValidationError === null) {
3330
3330
  config.translationV2Request = untrustedConfig_translationV2Request;
3331
3331
  }
@@ -3373,11 +3373,77 @@ const createTranslationV2JobAdapterFactory = (luvio) => {
3373
3373
  };
3374
3374
  };
3375
3375
 
3376
+ function validate$19(obj, path = 'ManagedContentAdditionalVariantInputRepresentation') {
3377
+ const v_error = (() => {
3378
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
3379
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
3380
+ }
3381
+ const obj_contentBody = obj.contentBody;
3382
+ const path_contentBody = path + '.contentBody';
3383
+ if (typeof obj_contentBody !== 'object' || ArrayIsArray(obj_contentBody) || obj_contentBody === null) {
3384
+ return new TypeError('Expected "object" but received "' + typeof obj_contentBody + '" (at "' + path_contentBody + '")');
3385
+ }
3386
+ const obj_contentBody_keys = ObjectKeys(obj_contentBody);
3387
+ for (let i = 0; i < obj_contentBody_keys.length; i++) {
3388
+ const key = obj_contentBody_keys[i];
3389
+ const obj_contentBody_prop = obj_contentBody[key];
3390
+ const path_contentBody_prop = path_contentBody + '["' + key + '"]';
3391
+ if (obj_contentBody_prop === undefined) {
3392
+ return new TypeError('Expected "defined" but received "' + typeof obj_contentBody_prop + '" (at "' + path_contentBody_prop + '")');
3393
+ }
3394
+ }
3395
+ const obj_language = obj.language;
3396
+ const path_language = path + '.language';
3397
+ if (typeof obj_language !== 'string') {
3398
+ return new TypeError('Expected "string" but received "' + typeof obj_language + '" (at "' + path_language + '")');
3399
+ }
3400
+ if (obj.title !== undefined) {
3401
+ const obj_title = obj.title;
3402
+ const path_title = path + '.title';
3403
+ if (typeof obj_title !== 'string') {
3404
+ return new TypeError('Expected "string" but received "' + typeof obj_title + '" (at "' + path_title + '")');
3405
+ }
3406
+ }
3407
+ if (obj.urlName !== undefined) {
3408
+ const obj_urlName = obj.urlName;
3409
+ const path_urlName = path + '.urlName';
3410
+ if (typeof obj_urlName !== 'string') {
3411
+ return new TypeError('Expected "string" but received "' + typeof obj_urlName + '" (at "' + path_urlName + '")');
3412
+ }
3413
+ }
3414
+ if (obj.variantType !== undefined) {
3415
+ const obj_variantType = obj.variantType;
3416
+ const path_variantType = path + '.variantType';
3417
+ if (typeof obj_variantType !== 'string') {
3418
+ return new TypeError('Expected "string" but received "' + typeof obj_variantType + '" (at "' + path_variantType + '")');
3419
+ }
3420
+ }
3421
+ })();
3422
+ return v_error === undefined ? null : v_error;
3423
+ }
3424
+
3376
3425
  function validate$18(obj, path = 'ManagedContentInputRepresentation') {
3377
3426
  const v_error = (() => {
3378
3427
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
3379
3428
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
3380
3429
  }
3430
+ if (obj.additionalVariants !== undefined) {
3431
+ const obj_additionalVariants = obj.additionalVariants;
3432
+ const path_additionalVariants = path + '.additionalVariants';
3433
+ if (!ArrayIsArray(obj_additionalVariants)) {
3434
+ return new TypeError('Expected "array" but received "' + typeof obj_additionalVariants + '" (at "' + path_additionalVariants + '")');
3435
+ }
3436
+ for (let i = 0; i < obj_additionalVariants.length; i++) {
3437
+ const obj_additionalVariants_item = obj_additionalVariants[i];
3438
+ const path_additionalVariants_item = path_additionalVariants + '[' + i + ']';
3439
+ const referencepath_additionalVariants_itemValidationError = validate$19(obj_additionalVariants_item, path_additionalVariants_item);
3440
+ if (referencepath_additionalVariants_itemValidationError !== null) {
3441
+ let message = 'Object doesn\'t match ManagedContentAdditionalVariantInputRepresentation (at "' + path_additionalVariants_item + '")\n';
3442
+ message += referencepath_additionalVariants_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
3443
+ return new TypeError(message);
3444
+ }
3445
+ }
3446
+ }
3381
3447
  const obj_contentBody = obj.contentBody;
3382
3448
  const path_contentBody = path + '.contentBody';
3383
3449
  if (typeof obj_contentBody !== 'object' || ArrayIsArray(obj_contentBody) || obj_contentBody === null) {
@@ -3555,7 +3621,7 @@ function validate$14(obj, path = 'ManagedContentDocumentRepresentation') {
3555
3621
  }
3556
3622
  const obj_contentType = obj.contentType;
3557
3623
  const path_contentType = path + '.contentType';
3558
- const referencepath_contentTypeValidationError = validate$1q(obj_contentType, path_contentType);
3624
+ const referencepath_contentTypeValidationError = validate$1r(obj_contentType, path_contentType);
3559
3625
  if (referencepath_contentTypeValidationError !== null) {
3560
3626
  let message = 'Object doesn\'t match ManagedContentTypeSummaryRepresentation (at "' + path_contentType + '")\n';
3561
3627
  message += referencepath_contentTypeValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -3589,7 +3655,7 @@ function validate$14(obj, path = 'ManagedContentDocumentRepresentation') {
3589
3655
  }
3590
3656
  const obj_createdBy = obj.createdBy;
3591
3657
  const path_createdBy = path + '.createdBy';
3592
- const referencepath_createdByValidationError = validate$1n(obj_createdBy, path_createdBy);
3658
+ const referencepath_createdByValidationError = validate$1o(obj_createdBy, path_createdBy);
3593
3659
  if (referencepath_createdByValidationError !== null) {
3594
3660
  let message = 'Object doesn\'t match ManagedContentUserSummaryRepresentation (at "' + path_createdBy + '")\n';
3595
3661
  message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -3620,7 +3686,7 @@ function validate$14(obj, path = 'ManagedContentDocumentRepresentation') {
3620
3686
  }
3621
3687
  const obj_lastModifiedBy = obj.lastModifiedBy;
3622
3688
  const path_lastModifiedBy = path + '.lastModifiedBy';
3623
- const referencepath_lastModifiedByValidationError = validate$1n(obj_lastModifiedBy, path_lastModifiedBy);
3689
+ const referencepath_lastModifiedByValidationError = validate$1o(obj_lastModifiedBy, path_lastModifiedBy);
3624
3690
  if (referencepath_lastModifiedByValidationError !== null) {
3625
3691
  let message = 'Object doesn\'t match ManagedContentUserSummaryRepresentation (at "' + path_lastModifiedBy + '")\n';
3626
3692
  message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -4366,7 +4432,7 @@ function validate$10(obj, path = 'ManagedContentVariantRepresentation') {
4366
4432
  }
4367
4433
  const obj_contentType = obj.contentType;
4368
4434
  const path_contentType = path + '.contentType';
4369
- const referencepath_contentTypeValidationError = validate$1q(obj_contentType, path_contentType);
4435
+ const referencepath_contentTypeValidationError = validate$1r(obj_contentType, path_contentType);
4370
4436
  if (referencepath_contentTypeValidationError !== null) {
4371
4437
  let message = 'Object doesn\'t match ManagedContentTypeSummaryRepresentation (at "' + path_contentType + '")\n';
4372
4438
  message += referencepath_contentTypeValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -4374,7 +4440,7 @@ function validate$10(obj, path = 'ManagedContentVariantRepresentation') {
4374
4440
  }
4375
4441
  const obj_createdBy = obj.createdBy;
4376
4442
  const path_createdBy = path + '.createdBy';
4377
- const referencepath_createdByValidationError = validate$1n(obj_createdBy, path_createdBy);
4443
+ const referencepath_createdByValidationError = validate$1o(obj_createdBy, path_createdBy);
4378
4444
  if (referencepath_createdByValidationError !== null) {
4379
4445
  let message = 'Object doesn\'t match ManagedContentUserSummaryRepresentation (at "' + path_createdBy + '")\n';
4380
4446
  message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -4405,7 +4471,7 @@ function validate$10(obj, path = 'ManagedContentVariantRepresentation') {
4405
4471
  }
4406
4472
  const obj_lastModifiedBy = obj.lastModifiedBy;
4407
4473
  const path_lastModifiedBy = path + '.lastModifiedBy';
4408
- const referencepath_lastModifiedByValidationError = validate$1n(obj_lastModifiedBy, path_lastModifiedBy);
4474
+ const referencepath_lastModifiedByValidationError = validate$1o(obj_lastModifiedBy, path_lastModifiedBy);
4409
4475
  if (referencepath_lastModifiedByValidationError !== null) {
4410
4476
  let message = 'Object doesn\'t match ManagedContentUserSummaryRepresentation (at "' + path_lastModifiedBy + '")\n';
4411
4477
  message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -4959,7 +5025,7 @@ function validate$_(obj, path = 'ManagedContentVariantVersionRepresentation') {
4959
5025
  }
4960
5026
  const obj_createdBy = obj.createdBy;
4961
5027
  const path_createdBy = path + '.createdBy';
4962
- const referencepath_createdByValidationError = validate$1n(obj_createdBy, path_createdBy);
5028
+ const referencepath_createdByValidationError = validate$1o(obj_createdBy, path_createdBy);
4963
5029
  if (referencepath_createdByValidationError !== null) {
4964
5030
  let message = 'Object doesn\'t match ManagedContentUserSummaryRepresentation (at "' + path_createdBy + '")\n';
4965
5031
  message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -4972,7 +5038,7 @@ function validate$_(obj, path = 'ManagedContentVariantVersionRepresentation') {
4972
5038
  }
4973
5039
  const obj_lastModifiedBy = obj.lastModifiedBy;
4974
5040
  const path_lastModifiedBy = path + '.lastModifiedBy';
4975
- const referencepath_lastModifiedByValidationError = validate$1n(obj_lastModifiedBy, path_lastModifiedBy);
5041
+ const referencepath_lastModifiedByValidationError = validate$1o(obj_lastModifiedBy, path_lastModifiedBy);
4976
5042
  if (referencepath_lastModifiedByValidationError !== null) {
4977
5043
  let message = 'Object doesn\'t match ManagedContentUserSummaryRepresentation (at "' + path_lastModifiedBy + '")\n';
4978
5044
  message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -7545,7 +7611,7 @@ function validate$H(obj, path = 'AbstractManagedContentReferencedByItemRepresent
7545
7611
  const path_contentType = path + '.contentType';
7546
7612
  let obj_contentType_union0 = null;
7547
7613
  const obj_contentType_union0_error = (() => {
7548
- const referencepath_contentTypeValidationError = validate$1q(obj_contentType, path_contentType);
7614
+ const referencepath_contentTypeValidationError = validate$1r(obj_contentType, path_contentType);
7549
7615
  if (referencepath_contentTypeValidationError !== null) {
7550
7616
  let message = 'Object doesn\'t match ManagedContentTypeSummaryRepresentation (at "' + path_contentType + '")\n';
7551
7617
  message += referencepath_contentTypeValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -7925,7 +7991,7 @@ function validate$E(obj, path = 'ManagedContentVariantReferenceDetailsRepresenta
7925
7991
  }
7926
7992
  const obj_contentType = obj.contentType;
7927
7993
  const path_contentType = path + '.contentType';
7928
- const referencepath_contentTypeValidationError = validate$1q(obj_contentType, path_contentType);
7994
+ const referencepath_contentTypeValidationError = validate$1r(obj_contentType, path_contentType);
7929
7995
  if (referencepath_contentTypeValidationError !== null) {
7930
7996
  let message = 'Object doesn\'t match ManagedContentTypeSummaryRepresentation (at "' + path_contentType + '")\n';
7931
7997
  message += referencepath_contentTypeValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -7933,7 +7999,7 @@ function validate$E(obj, path = 'ManagedContentVariantReferenceDetailsRepresenta
7933
7999
  }
7934
8000
  const obj_createdBy = obj.createdBy;
7935
8001
  const path_createdBy = path + '.createdBy';
7936
- const referencepath_createdByValidationError = validate$1n(obj_createdBy, path_createdBy);
8002
+ const referencepath_createdByValidationError = validate$1o(obj_createdBy, path_createdBy);
7937
8003
  if (referencepath_createdByValidationError !== null) {
7938
8004
  let message = 'Object doesn\'t match ManagedContentUserSummaryRepresentation (at "' + path_createdBy + '")\n';
7939
8005
  message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -7959,7 +8025,7 @@ function validate$E(obj, path = 'ManagedContentVariantReferenceDetailsRepresenta
7959
8025
  }
7960
8026
  const obj_lastModifiedBy = obj.lastModifiedBy;
7961
8027
  const path_lastModifiedBy = path + '.lastModifiedBy';
7962
- const referencepath_lastModifiedByValidationError = validate$1n(obj_lastModifiedBy, path_lastModifiedBy);
8028
+ const referencepath_lastModifiedByValidationError = validate$1o(obj_lastModifiedBy, path_lastModifiedBy);
7963
8029
  if (referencepath_lastModifiedByValidationError !== null) {
7964
8030
  let message = 'Object doesn\'t match ManagedContentUserSummaryRepresentation (at "' + path_lastModifiedBy + '")\n';
7965
8031
  message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -9462,7 +9528,7 @@ function validate$w(obj, path = 'ManagedContentSpaceFolderItemRepresentation') {
9462
9528
  if (obj.contentType !== undefined) {
9463
9529
  const obj_contentType = obj.contentType;
9464
9530
  const path_contentType = path + '.contentType';
9465
- const referencepath_contentTypeValidationError = validate$1q(obj_contentType, path_contentType);
9531
+ const referencepath_contentTypeValidationError = validate$1r(obj_contentType, path_contentType);
9466
9532
  if (referencepath_contentTypeValidationError !== null) {
9467
9533
  let message = 'Object doesn\'t match ManagedContentTypeSummaryRepresentation (at "' + path_contentType + '")\n';
9468
9534
  message += referencepath_contentTypeValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -10414,7 +10480,7 @@ function validate$p(obj, path = 'AbstractManagedContentSearchResultRepresentatio
10414
10480
  }
10415
10481
  const obj_createdBy = obj.createdBy;
10416
10482
  const path_createdBy = path + '.createdBy';
10417
- const referencepath_createdByValidationError = validate$1n(obj_createdBy, path_createdBy);
10483
+ const referencepath_createdByValidationError = validate$1o(obj_createdBy, path_createdBy);
10418
10484
  if (referencepath_createdByValidationError !== null) {
10419
10485
  let message = 'Object doesn\'t match ManagedContentUserSummaryRepresentation (at "' + path_createdBy + '")\n';
10420
10486
  message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -10440,7 +10506,7 @@ function validate$p(obj, path = 'AbstractManagedContentSearchResultRepresentatio
10440
10506
  }
10441
10507
  const obj_lastModifiedBy = obj.lastModifiedBy;
10442
10508
  const path_lastModifiedBy = path + '.lastModifiedBy';
10443
- const referencepath_lastModifiedByValidationError = validate$1n(obj_lastModifiedBy, path_lastModifiedBy);
10509
+ const referencepath_lastModifiedByValidationError = validate$1o(obj_lastModifiedBy, path_lastModifiedBy);
10444
10510
  if (referencepath_lastModifiedByValidationError !== null) {
10445
10511
  let message = 'Object doesn\'t match ManagedContentUserSummaryRepresentation (at "' + path_lastModifiedBy + '")\n';
10446
10512
  message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -11979,7 +12045,7 @@ function validate$h(obj, path = 'ManagedContentSingleItemDocumentRepresentation'
11979
12045
  }
11980
12046
  const obj_contentType = obj.contentType;
11981
12047
  const path_contentType = path + '.contentType';
11982
- const referencepath_contentTypeValidationError = validate$1q(obj_contentType, path_contentType);
12048
+ const referencepath_contentTypeValidationError = validate$1r(obj_contentType, path_contentType);
11983
12049
  if (referencepath_contentTypeValidationError !== null) {
11984
12050
  let message = 'Object doesn\'t match ManagedContentTypeSummaryRepresentation (at "' + path_contentType + '")\n';
11985
12051
  message += referencepath_contentTypeValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -12013,7 +12079,7 @@ function validate$h(obj, path = 'ManagedContentSingleItemDocumentRepresentation'
12013
12079
  }
12014
12080
  const obj_createdBy = obj.createdBy;
12015
12081
  const path_createdBy = path + '.createdBy';
12016
- const referencepath_createdByValidationError = validate$1n(obj_createdBy, path_createdBy);
12082
+ const referencepath_createdByValidationError = validate$1o(obj_createdBy, path_createdBy);
12017
12083
  if (referencepath_createdByValidationError !== null) {
12018
12084
  let message = 'Object doesn\'t match ManagedContentUserSummaryRepresentation (at "' + path_createdBy + '")\n';
12019
12085
  message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -12065,7 +12131,7 @@ function validate$h(obj, path = 'ManagedContentSingleItemDocumentRepresentation'
12065
12131
  }
12066
12132
  const obj_lastModifiedBy = obj.lastModifiedBy;
12067
12133
  const path_lastModifiedBy = path + '.lastModifiedBy';
12068
- const referencepath_lastModifiedByValidationError = validate$1n(obj_lastModifiedBy, path_lastModifiedBy);
12134
+ const referencepath_lastModifiedByValidationError = validate$1o(obj_lastModifiedBy, path_lastModifiedBy);
12069
12135
  if (referencepath_lastModifiedByValidationError !== null) {
12070
12136
  let message = 'Object doesn\'t match ManagedContentUserSummaryRepresentation (at "' + path_lastModifiedBy + '")\n';
12071
12137
  message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -12727,7 +12793,7 @@ function validate$d(obj, path = 'ManagedContentTypeSummaryCollectionRepresentati
12727
12793
  for (let i = 0; i < obj_contentTypes.length; i++) {
12728
12794
  const obj_contentTypes_item = obj_contentTypes[i];
12729
12795
  const path_contentTypes_item = path_contentTypes + '[' + i + ']';
12730
- const referencepath_contentTypes_itemValidationError = validate$1q(obj_contentTypes_item, path_contentTypes_item);
12796
+ const referencepath_contentTypes_itemValidationError = validate$1r(obj_contentTypes_item, path_contentTypes_item);
12731
12797
  if (referencepath_contentTypes_itemValidationError !== null) {
12732
12798
  let message = 'Object doesn\'t match ManagedContentTypeSummaryRepresentation (at "' + path_contentTypes_item + '")\n';
12733
12799
  message += referencepath_contentTypes_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -0,0 +1,44 @@
1
+ import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
2
+ export declare const VERSION = "0b793fdd4111ca970f7955e395856de4";
3
+ export declare function validate(obj: any, path?: string): TypeError | null;
4
+ export declare const RepresentationType: string;
5
+ export declare function normalize(input: ManagedContentAdditionalVariantInputRepresentation, existing: ManagedContentAdditionalVariantInputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ManagedContentAdditionalVariantInputRepresentationNormalized;
6
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
7
+ export declare function equals(existing: ManagedContentAdditionalVariantInputRepresentationNormalized, incoming: ManagedContentAdditionalVariantInputRepresentationNormalized): boolean;
8
+ export declare const ingest: $64$luvio_engine_ResourceIngest;
9
+ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: ManagedContentAdditionalVariantInputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
10
+ /**
11
+ * Input representation for an additional variant to create alongside the primary content.
12
+ *
13
+ * Keys:
14
+ * (none)
15
+ */
16
+ export interface ManagedContentAdditionalVariantInputRepresentationNormalized {
17
+ /** The body of the variant. */
18
+ contentBody: {
19
+ [key: string]: unknown;
20
+ };
21
+ /** The language of the variant (locale string). Required. */
22
+ language: string;
23
+ /** The title of the variant. */
24
+ title?: string;
25
+ /** URL-friendly identifier of the variant. */
26
+ urlName?: string;
27
+ /** The type of variant to create (Content, Translation, Variation, Mobile, Tablet). Defaults to Content. */
28
+ variantType?: string;
29
+ }
30
+ /**
31
+ * Input representation for an additional variant to create alongside the primary content.
32
+ *
33
+ * Keys:
34
+ * (none)
35
+ */
36
+ export interface ManagedContentAdditionalVariantInputRepresentation {
37
+ contentBody: {
38
+ [key: string]: unknown;
39
+ };
40
+ language: string;
41
+ title?: string;
42
+ urlName?: string;
43
+ variantType?: string;
44
+ }
@@ -1,5 +1,6 @@
1
+ import { ManagedContentAdditionalVariantInputRepresentation as ManagedContentAdditionalVariantInputRepresentation_ManagedContentAdditionalVariantInputRepresentation } from './ManagedContentAdditionalVariantInputRepresentation';
1
2
  import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
2
- export declare const VERSION = "86971f98fbfe2baeacebd4372f211dd2";
3
+ export declare const VERSION = "bae26bfea4b8c16153f0f3e3944fb41c";
3
4
  export declare function validate(obj: any, path?: string): TypeError | null;
4
5
  export declare const RepresentationType: string;
5
6
  export declare function normalize(input: ManagedContentInputRepresentation, existing: ManagedContentInputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ManagedContentInputRepresentationNormalized;
@@ -14,6 +15,8 @@ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableSto
14
15
  * (none)
15
16
  */
16
17
  export interface ManagedContentInputRepresentationNormalized {
18
+ /** Optional list of additional variants to create along with the primary content. */
19
+ additionalVariants?: Array<ManagedContentAdditionalVariantInputRepresentation_ManagedContentAdditionalVariantInputRepresentation>;
17
20
  /** The body of the managed content. */
18
21
  contentBody: {
19
22
  [key: string]: unknown;
@@ -38,6 +41,7 @@ export interface ManagedContentInputRepresentationNormalized {
38
41
  * (none)
39
42
  */
40
43
  export interface ManagedContentInputRepresentation {
44
+ additionalVariants?: Array<ManagedContentAdditionalVariantInputRepresentation_ManagedContentAdditionalVariantInputRepresentation>;
41
45
  contentBody: {
42
46
  [key: string]: unknown;
43
47
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-adapters-cms-authoring",
3
- "version": "1.435.1",
3
+ "version": "1.436.0",
4
4
  "license": "SEE LICENSE IN LICENSE.txt",
5
5
  "description": "Wire adapters for CMS authoring APIs",
6
6
  "main": "dist/es/es2018/cms-authoring.js",
@@ -44,11 +44,11 @@
44
44
  "test:unit": "jest"
45
45
  },
46
46
  "dependencies": {
47
- "@salesforce/lds-bindings": "^1.435.1"
47
+ "@salesforce/lds-bindings": "^1.436.0"
48
48
  },
49
49
  "devDependencies": {
50
- "@salesforce/lds-compiler-plugins": "^1.435.1",
51
- "@salesforce/lds-karma": "^1.435.1"
50
+ "@salesforce/lds-compiler-plugins": "^1.436.0",
51
+ "@salesforce/lds-karma": "^1.436.0"
52
52
  },
53
53
  "nx": {
54
54
  "targets": {
package/sfdc/index.js CHANGED
@@ -103,7 +103,7 @@ function createLink(ref) {
103
103
  };
104
104
  }
105
105
 
106
- function validate$1q(obj, path = 'ManagedContentCloneStatusRepresentation') {
106
+ function validate$1r(obj, path = 'ManagedContentCloneStatusRepresentation') {
107
107
  const v_error = (() => {
108
108
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
109
109
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -122,7 +122,7 @@ function validate$1q(obj, path = 'ManagedContentCloneStatusRepresentation') {
122
122
  return v_error === undefined ? null : v_error;
123
123
  }
124
124
 
125
- function validate$1p(obj, path = 'ManagedContentFailedVariantsRepresentation') {
125
+ function validate$1q(obj, path = 'ManagedContentFailedVariantsRepresentation') {
126
126
  const v_error = (() => {
127
127
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
128
128
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -146,7 +146,7 @@ function validate$1p(obj, path = 'ManagedContentFailedVariantsRepresentation') {
146
146
  return v_error === undefined ? null : v_error;
147
147
  }
148
148
 
149
- function validate$1o(obj, path = 'ManagedContentFolderSummaryRepresentation') {
149
+ function validate$1p(obj, path = 'ManagedContentFolderSummaryRepresentation') {
150
150
  const v_error = (() => {
151
151
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
152
152
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -165,7 +165,7 @@ function validate$1o(obj, path = 'ManagedContentFolderSummaryRepresentation') {
165
165
  return v_error === undefined ? null : v_error;
166
166
  }
167
167
 
168
- function validate$1n(obj, path = 'ManagedContentClonedVariantRepresentation') {
168
+ function validate$1o(obj, path = 'ManagedContentClonedVariantRepresentation') {
169
169
  const v_error = (() => {
170
170
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
171
171
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -212,7 +212,7 @@ function validate$1n(obj, path = 'ManagedContentClonedVariantRepresentation') {
212
212
 
213
213
  const TTL$E = 100;
214
214
  const VERSION$O = "7066162a0da609712a7a7b3fa365ed68";
215
- function validate$1m(obj, path = 'ManagedContentDocumentCloneRepresentation') {
215
+ function validate$1n(obj, path = 'ManagedContentDocumentCloneRepresentation') {
216
216
  const v_error = (() => {
217
217
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
218
218
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -247,7 +247,7 @@ function validate$1m(obj, path = 'ManagedContentDocumentCloneRepresentation') {
247
247
  }
248
248
  const obj_cloneStatus = obj.cloneStatus;
249
249
  const path_cloneStatus = path + '.cloneStatus';
250
- const referencepath_cloneStatusValidationError = validate$1q(obj_cloneStatus, path_cloneStatus);
250
+ const referencepath_cloneStatusValidationError = validate$1r(obj_cloneStatus, path_cloneStatus);
251
251
  if (referencepath_cloneStatusValidationError !== null) {
252
252
  let message = 'Object doesn\'t match ManagedContentCloneStatusRepresentation (at "' + path_cloneStatus + '")\n';
253
253
  message += referencepath_cloneStatusValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -294,7 +294,7 @@ function validate$1m(obj, path = 'ManagedContentDocumentCloneRepresentation') {
294
294
  for (let i = 0; i < obj_failedVariants.length; i++) {
295
295
  const obj_failedVariants_item = obj_failedVariants[i];
296
296
  const path_failedVariants_item = path_failedVariants + '[' + i + ']';
297
- const referencepath_failedVariants_itemValidationError = validate$1p(obj_failedVariants_item, path_failedVariants_item);
297
+ const referencepath_failedVariants_itemValidationError = validate$1q(obj_failedVariants_item, path_failedVariants_item);
298
298
  if (referencepath_failedVariants_itemValidationError !== null) {
299
299
  let message = 'Object doesn\'t match ManagedContentFailedVariantsRepresentation (at "' + path_failedVariants_item + '")\n';
300
300
  message += referencepath_failedVariants_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -304,7 +304,7 @@ function validate$1m(obj, path = 'ManagedContentDocumentCloneRepresentation') {
304
304
  if (obj.folder !== undefined) {
305
305
  const obj_folder = obj.folder;
306
306
  const path_folder = path + '.folder';
307
- const referencepath_folderValidationError = validate$1o(obj_folder, path_folder);
307
+ const referencepath_folderValidationError = validate$1p(obj_folder, path_folder);
308
308
  if (referencepath_folderValidationError !== null) {
309
309
  let message = 'Object doesn\'t match ManagedContentFolderSummaryRepresentation (at "' + path_folder + '")\n';
310
310
  message += referencepath_folderValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -408,7 +408,7 @@ function validate$1m(obj, path = 'ManagedContentDocumentCloneRepresentation') {
408
408
  for (let i = 0; i < obj_variants.length; i++) {
409
409
  const obj_variants_item = obj_variants[i];
410
410
  const path_variants_item = path_variants + '[' + i + ']';
411
- const referencepath_variants_itemValidationError = validate$1n(obj_variants_item, path_variants_item);
411
+ const referencepath_variants_itemValidationError = validate$1o(obj_variants_item, path_variants_item);
412
412
  if (referencepath_variants_itemValidationError !== null) {
413
413
  let message = 'Object doesn\'t match ManagedContentClonedVariantRepresentation (at "' + path_variants_item + '")\n';
414
414
  message += referencepath_variants_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -447,7 +447,7 @@ function equals$O(existing, incoming) {
447
447
  }
448
448
  const ingest$E = function ManagedContentDocumentCloneRepresentationIngest(input, path, luvio, store, timestamp) {
449
449
  if (process.env.NODE_ENV !== 'production') {
450
- const validateError = validate$1m(input);
450
+ const validateError = validate$1n(input);
451
451
  if (validateError !== null) {
452
452
  throw validateError;
453
453
  }
@@ -562,7 +562,7 @@ const cloneManagedContentDocumentAdapterFactory = (luvio) => {
562
562
  };
563
563
  };
564
564
 
565
- function validate$1l(obj, path = 'ManagedContentDeploymentInputRepresentation') {
565
+ function validate$1m(obj, path = 'ManagedContentDeploymentInputRepresentation') {
566
566
  const v_error = (() => {
567
567
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
568
568
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -647,7 +647,7 @@ function validate$1l(obj, path = 'ManagedContentDeploymentInputRepresentation')
647
647
  }
648
648
 
649
649
  const VERSION$N = "7297fb0dbfe8f664d76179a65037c290";
650
- function validate$1k(obj, path = 'ManagedContentTypeSummaryRepresentation') {
650
+ function validate$1l(obj, path = 'ManagedContentTypeSummaryRepresentation') {
651
651
  const v_error = (() => {
652
652
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
653
653
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -708,7 +708,7 @@ function equals$N(existing, incoming) {
708
708
  }
709
709
 
710
710
  const VERSION$M = "c30d880a3dba684a405d1cf961af2b76";
711
- function validate$1j(obj, path = 'ManagedContentVariantSnapshotSummaryRepresentation') {
711
+ function validate$1k(obj, path = 'ManagedContentVariantSnapshotSummaryRepresentation') {
712
712
  const v_error = (() => {
713
713
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
714
714
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -717,7 +717,7 @@ function validate$1j(obj, path = 'ManagedContentVariantSnapshotSummaryRepresenta
717
717
  const path_contentType = path + '.contentType';
718
718
  let obj_contentType_union0 = null;
719
719
  const obj_contentType_union0_error = (() => {
720
- const referencepath_contentTypeValidationError = validate$1k(obj_contentType, path_contentType);
720
+ const referencepath_contentTypeValidationError = validate$1l(obj_contentType, path_contentType);
721
721
  if (referencepath_contentTypeValidationError !== null) {
722
722
  let message = 'Object doesn\'t match ManagedContentTypeSummaryRepresentation (at "' + path_contentType + '")\n';
723
723
  message += referencepath_contentTypeValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -949,7 +949,7 @@ function equals$M(existing, incoming) {
949
949
  }
950
950
 
951
951
  const VERSION$L = "f99d45f1e809783023bfd9dbe2fe4a6c";
952
- function validate$1i(obj, path = 'ManagedContentDeploymentItemRepresentation') {
952
+ function validate$1j(obj, path = 'ManagedContentDeploymentItemRepresentation') {
953
953
  const v_error = (() => {
954
954
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
955
955
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -976,7 +976,7 @@ function validate$1i(obj, path = 'ManagedContentDeploymentItemRepresentation') {
976
976
  }
977
977
  const obj_mcvSnapshotSummary = obj.mcvSnapshotSummary;
978
978
  const path_mcvSnapshotSummary = path + '.mcvSnapshotSummary';
979
- const referencepath_mcvSnapshotSummaryValidationError = validate$1j(obj_mcvSnapshotSummary, path_mcvSnapshotSummary);
979
+ const referencepath_mcvSnapshotSummaryValidationError = validate$1k(obj_mcvSnapshotSummary, path_mcvSnapshotSummary);
980
980
  if (referencepath_mcvSnapshotSummaryValidationError !== null) {
981
981
  let message = 'Object doesn\'t match ManagedContentVariantSnapshotSummaryRepresentation (at "' + path_mcvSnapshotSummary + '")\n';
982
982
  message += referencepath_mcvSnapshotSummaryValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -1130,7 +1130,7 @@ function equals$L(existing, incoming) {
1130
1130
  }
1131
1131
 
1132
1132
  const VERSION$K = "4b75ed6ff448da86412b605f7e775a62";
1133
- function validate$1h(obj, path = 'ManagedContentUserSummaryRepresentation') {
1133
+ function validate$1i(obj, path = 'ManagedContentUserSummaryRepresentation') {
1134
1134
  const v_error = (() => {
1135
1135
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1136
1136
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -1206,7 +1206,7 @@ function equals$K(existing, incoming) {
1206
1206
 
1207
1207
  const TTL$D = 100;
1208
1208
  const VERSION$J = "f7e3c655efe77a7c9968ade15a6029b1";
1209
- function validate$1g(obj, path = 'ManagedContentDeploymentRepresentation') {
1209
+ function validate$1h(obj, path = 'ManagedContentDeploymentRepresentation') {
1210
1210
  const v_error = (() => {
1211
1211
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1212
1212
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -1276,7 +1276,7 @@ function validate$1g(obj, path = 'ManagedContentDeploymentRepresentation') {
1276
1276
  for (let i = 0; i < obj_deploymentItems.length; i++) {
1277
1277
  const obj_deploymentItems_item = obj_deploymentItems[i];
1278
1278
  const path_deploymentItems_item = path_deploymentItems + '[' + i + ']';
1279
- const referencepath_deploymentItems_itemValidationError = validate$1i(obj_deploymentItems_item, path_deploymentItems_item);
1279
+ const referencepath_deploymentItems_itemValidationError = validate$1j(obj_deploymentItems_item, path_deploymentItems_item);
1280
1280
  if (referencepath_deploymentItems_itemValidationError !== null) {
1281
1281
  let message = 'Object doesn\'t match ManagedContentDeploymentItemRepresentation (at "' + path_deploymentItems_item + '")\n';
1282
1282
  message += referencepath_deploymentItems_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -1339,7 +1339,7 @@ function validate$1g(obj, path = 'ManagedContentDeploymentRepresentation') {
1339
1339
  const path_lastModifiedBy = path + '.lastModifiedBy';
1340
1340
  let obj_lastModifiedBy_union0 = null;
1341
1341
  const obj_lastModifiedBy_union0_error = (() => {
1342
- const referencepath_lastModifiedByValidationError = validate$1h(obj_lastModifiedBy, path_lastModifiedBy);
1342
+ const referencepath_lastModifiedByValidationError = validate$1i(obj_lastModifiedBy, path_lastModifiedBy);
1343
1343
  if (referencepath_lastModifiedByValidationError !== null) {
1344
1344
  let message = 'Object doesn\'t match ManagedContentUserSummaryRepresentation (at "' + path_lastModifiedBy + '")\n';
1345
1345
  message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -1506,7 +1506,7 @@ function equals$J(existing, incoming) {
1506
1506
  }
1507
1507
  const ingest$D = function ManagedContentDeploymentRepresentationIngest(input, path, luvio, store, timestamp) {
1508
1508
  if (process.env.NODE_ENV !== 'production') {
1509
- const validateError = validate$1g(input);
1509
+ const validateError = validate$1h(input);
1510
1510
  if (validateError !== null) {
1511
1511
  throw validateError;
1512
1512
  }
@@ -1572,7 +1572,7 @@ const createResourceParams$O = /*#__PURE__*/ createResourceParams$Q(createDeploy
1572
1572
  function typeCheckConfig$O(untrustedConfig) {
1573
1573
  const config = {};
1574
1574
  const untrustedConfig_DeploymentInput = untrustedConfig.DeploymentInput;
1575
- const referenceManagedContentDeploymentInputRepresentationValidationError = validate$1l(untrustedConfig_DeploymentInput);
1575
+ const referenceManagedContentDeploymentInputRepresentationValidationError = validate$1m(untrustedConfig_DeploymentInput);
1576
1576
  if (referenceManagedContentDeploymentInputRepresentationValidationError === null) {
1577
1577
  config.DeploymentInput = untrustedConfig_DeploymentInput;
1578
1578
  }
@@ -1620,11 +1620,77 @@ const createDeploymentAdapterFactory = (luvio) => {
1620
1620
  };
1621
1621
  };
1622
1622
 
1623
+ function validate$1g(obj, path = 'ManagedContentAdditionalVariantInputRepresentation') {
1624
+ const v_error = (() => {
1625
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1626
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
1627
+ }
1628
+ const obj_contentBody = obj.contentBody;
1629
+ const path_contentBody = path + '.contentBody';
1630
+ if (typeof obj_contentBody !== 'object' || ArrayIsArray(obj_contentBody) || obj_contentBody === null) {
1631
+ return new TypeError('Expected "object" but received "' + typeof obj_contentBody + '" (at "' + path_contentBody + '")');
1632
+ }
1633
+ const obj_contentBody_keys = ObjectKeys(obj_contentBody);
1634
+ for (let i = 0; i < obj_contentBody_keys.length; i++) {
1635
+ const key = obj_contentBody_keys[i];
1636
+ const obj_contentBody_prop = obj_contentBody[key];
1637
+ const path_contentBody_prop = path_contentBody + '["' + key + '"]';
1638
+ if (obj_contentBody_prop === undefined) {
1639
+ return new TypeError('Expected "defined" but received "' + typeof obj_contentBody_prop + '" (at "' + path_contentBody_prop + '")');
1640
+ }
1641
+ }
1642
+ const obj_language = obj.language;
1643
+ const path_language = path + '.language';
1644
+ if (typeof obj_language !== 'string') {
1645
+ return new TypeError('Expected "string" but received "' + typeof obj_language + '" (at "' + path_language + '")');
1646
+ }
1647
+ if (obj.title !== undefined) {
1648
+ const obj_title = obj.title;
1649
+ const path_title = path + '.title';
1650
+ if (typeof obj_title !== 'string') {
1651
+ return new TypeError('Expected "string" but received "' + typeof obj_title + '" (at "' + path_title + '")');
1652
+ }
1653
+ }
1654
+ if (obj.urlName !== undefined) {
1655
+ const obj_urlName = obj.urlName;
1656
+ const path_urlName = path + '.urlName';
1657
+ if (typeof obj_urlName !== 'string') {
1658
+ return new TypeError('Expected "string" but received "' + typeof obj_urlName + '" (at "' + path_urlName + '")');
1659
+ }
1660
+ }
1661
+ if (obj.variantType !== undefined) {
1662
+ const obj_variantType = obj.variantType;
1663
+ const path_variantType = path + '.variantType';
1664
+ if (typeof obj_variantType !== 'string') {
1665
+ return new TypeError('Expected "string" but received "' + typeof obj_variantType + '" (at "' + path_variantType + '")');
1666
+ }
1667
+ }
1668
+ })();
1669
+ return v_error === undefined ? null : v_error;
1670
+ }
1671
+
1623
1672
  function validate$1f(obj, path = 'ManagedContentInputRepresentation') {
1624
1673
  const v_error = (() => {
1625
1674
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1626
1675
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
1627
1676
  }
1677
+ if (obj.additionalVariants !== undefined) {
1678
+ const obj_additionalVariants = obj.additionalVariants;
1679
+ const path_additionalVariants = path + '.additionalVariants';
1680
+ if (!ArrayIsArray(obj_additionalVariants)) {
1681
+ return new TypeError('Expected "array" but received "' + typeof obj_additionalVariants + '" (at "' + path_additionalVariants + '")');
1682
+ }
1683
+ for (let i = 0; i < obj_additionalVariants.length; i++) {
1684
+ const obj_additionalVariants_item = obj_additionalVariants[i];
1685
+ const path_additionalVariants_item = path_additionalVariants + '[' + i + ']';
1686
+ const referencepath_additionalVariants_itemValidationError = validate$1g(obj_additionalVariants_item, path_additionalVariants_item);
1687
+ if (referencepath_additionalVariants_itemValidationError !== null) {
1688
+ let message = 'Object doesn\'t match ManagedContentAdditionalVariantInputRepresentation (at "' + path_additionalVariants_item + '")\n';
1689
+ message += referencepath_additionalVariants_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1690
+ return new TypeError(message);
1691
+ }
1692
+ }
1693
+ }
1628
1694
  const obj_contentBody = obj.contentBody;
1629
1695
  const path_contentBody = path + '.contentBody';
1630
1696
  if (typeof obj_contentBody !== 'object' || ArrayIsArray(obj_contentBody) || obj_contentBody === null) {
@@ -1783,7 +1849,7 @@ function validate$1c(obj, path = 'ManagedContentDocumentRepresentation') {
1783
1849
  }
1784
1850
  const obj_contentType = obj.contentType;
1785
1851
  const path_contentType = path + '.contentType';
1786
- const referencepath_contentTypeValidationError = validate$1k(obj_contentType, path_contentType);
1852
+ const referencepath_contentTypeValidationError = validate$1l(obj_contentType, path_contentType);
1787
1853
  if (referencepath_contentTypeValidationError !== null) {
1788
1854
  let message = 'Object doesn\'t match ManagedContentTypeSummaryRepresentation (at "' + path_contentType + '")\n';
1789
1855
  message += referencepath_contentTypeValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -1817,7 +1883,7 @@ function validate$1c(obj, path = 'ManagedContentDocumentRepresentation') {
1817
1883
  }
1818
1884
  const obj_createdBy = obj.createdBy;
1819
1885
  const path_createdBy = path + '.createdBy';
1820
- const referencepath_createdByValidationError = validate$1h(obj_createdBy, path_createdBy);
1886
+ const referencepath_createdByValidationError = validate$1i(obj_createdBy, path_createdBy);
1821
1887
  if (referencepath_createdByValidationError !== null) {
1822
1888
  let message = 'Object doesn\'t match ManagedContentUserSummaryRepresentation (at "' + path_createdBy + '")\n';
1823
1889
  message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -1830,7 +1896,7 @@ function validate$1c(obj, path = 'ManagedContentDocumentRepresentation') {
1830
1896
  }
1831
1897
  const obj_folder = obj.folder;
1832
1898
  const path_folder = path + '.folder';
1833
- const referencepath_folderValidationError = validate$1o(obj_folder, path_folder);
1899
+ const referencepath_folderValidationError = validate$1p(obj_folder, path_folder);
1834
1900
  if (referencepath_folderValidationError !== null) {
1835
1901
  let message = 'Object doesn\'t match ManagedContentFolderSummaryRepresentation (at "' + path_folder + '")\n';
1836
1902
  message += referencepath_folderValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -1848,7 +1914,7 @@ function validate$1c(obj, path = 'ManagedContentDocumentRepresentation') {
1848
1914
  }
1849
1915
  const obj_lastModifiedBy = obj.lastModifiedBy;
1850
1916
  const path_lastModifiedBy = path + '.lastModifiedBy';
1851
- const referencepath_lastModifiedByValidationError = validate$1h(obj_lastModifiedBy, path_lastModifiedBy);
1917
+ const referencepath_lastModifiedByValidationError = validate$1i(obj_lastModifiedBy, path_lastModifiedBy);
1852
1918
  if (referencepath_lastModifiedByValidationError !== null) {
1853
1919
  let message = 'Object doesn\'t match ManagedContentUserSummaryRepresentation (at "' + path_lastModifiedBy + '")\n';
1854
1920
  message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -2606,7 +2672,7 @@ function validate$18(obj, path = 'ManagedContentVariantRepresentation') {
2606
2672
  }
2607
2673
  const obj_contentType = obj.contentType;
2608
2674
  const path_contentType = path + '.contentType';
2609
- const referencepath_contentTypeValidationError = validate$1k(obj_contentType, path_contentType);
2675
+ const referencepath_contentTypeValidationError = validate$1l(obj_contentType, path_contentType);
2610
2676
  if (referencepath_contentTypeValidationError !== null) {
2611
2677
  let message = 'Object doesn\'t match ManagedContentTypeSummaryRepresentation (at "' + path_contentType + '")\n';
2612
2678
  message += referencepath_contentTypeValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -2614,7 +2680,7 @@ function validate$18(obj, path = 'ManagedContentVariantRepresentation') {
2614
2680
  }
2615
2681
  const obj_createdBy = obj.createdBy;
2616
2682
  const path_createdBy = path + '.createdBy';
2617
- const referencepath_createdByValidationError = validate$1h(obj_createdBy, path_createdBy);
2683
+ const referencepath_createdByValidationError = validate$1i(obj_createdBy, path_createdBy);
2618
2684
  if (referencepath_createdByValidationError !== null) {
2619
2685
  let message = 'Object doesn\'t match ManagedContentUserSummaryRepresentation (at "' + path_createdBy + '")\n';
2620
2686
  message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -2627,7 +2693,7 @@ function validate$18(obj, path = 'ManagedContentVariantRepresentation') {
2627
2693
  }
2628
2694
  const obj_folder = obj.folder;
2629
2695
  const path_folder = path + '.folder';
2630
- const referencepath_folderValidationError = validate$1o(obj_folder, path_folder);
2696
+ const referencepath_folderValidationError = validate$1p(obj_folder, path_folder);
2631
2697
  if (referencepath_folderValidationError !== null) {
2632
2698
  let message = 'Object doesn\'t match ManagedContentFolderSummaryRepresentation (at "' + path_folder + '")\n';
2633
2699
  message += referencepath_folderValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -2645,7 +2711,7 @@ function validate$18(obj, path = 'ManagedContentVariantRepresentation') {
2645
2711
  }
2646
2712
  const obj_lastModifiedBy = obj.lastModifiedBy;
2647
2713
  const path_lastModifiedBy = path + '.lastModifiedBy';
2648
- const referencepath_lastModifiedByValidationError = validate$1h(obj_lastModifiedBy, path_lastModifiedBy);
2714
+ const referencepath_lastModifiedByValidationError = validate$1i(obj_lastModifiedBy, path_lastModifiedBy);
2649
2715
  if (referencepath_lastModifiedByValidationError !== null) {
2650
2716
  let message = 'Object doesn\'t match ManagedContentUserSummaryRepresentation (at "' + path_lastModifiedBy + '")\n';
2651
2717
  message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -4632,7 +4698,7 @@ function validate$Z(obj, path = 'ManagedContentCollectionDetailRepresentation')
4632
4698
  }
4633
4699
  const obj_collectionType = obj.collectionType;
4634
4700
  const path_collectionType = path + '.collectionType';
4635
- const referencepath_collectionTypeValidationError = validate$1k(obj_collectionType, path_collectionType);
4701
+ const referencepath_collectionTypeValidationError = validate$1l(obj_collectionType, path_collectionType);
4636
4702
  if (referencepath_collectionTypeValidationError !== null) {
4637
4703
  let message = 'Object doesn\'t match ManagedContentTypeSummaryRepresentation (at "' + path_collectionType + '")\n';
4638
4704
  message += referencepath_collectionTypeValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -6382,7 +6448,7 @@ function validate$Q(obj, path = 'ManagedContentSpaceFolderItemRepresentation') {
6382
6448
  if (obj.contentType !== undefined) {
6383
6449
  const obj_contentType = obj.contentType;
6384
6450
  const path_contentType = path + '.contentType';
6385
- const referencepath_contentTypeValidationError = validate$1k(obj_contentType, path_contentType);
6451
+ const referencepath_contentTypeValidationError = validate$1l(obj_contentType, path_contentType);
6386
6452
  if (referencepath_contentTypeValidationError !== null) {
6387
6453
  let message = 'Object doesn\'t match ManagedContentTypeSummaryRepresentation (at "' + path_contentType + '")\n';
6388
6454
  message += referencepath_contentTypeValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -8403,7 +8469,7 @@ function validate$D(obj, path = 'AbstractManagedContentReferencedByItemRepresent
8403
8469
  const path_contentType = path + '.contentType';
8404
8470
  let obj_contentType_union0 = null;
8405
8471
  const obj_contentType_union0_error = (() => {
8406
- const referencepath_contentTypeValidationError = validate$1k(obj_contentType, path_contentType);
8472
+ const referencepath_contentTypeValidationError = validate$1l(obj_contentType, path_contentType);
8407
8473
  if (referencepath_contentTypeValidationError !== null) {
8408
8474
  let message = 'Object doesn\'t match ManagedContentTypeSummaryRepresentation (at "' + path_contentType + '")\n';
8409
8475
  message += referencepath_contentTypeValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -8811,7 +8877,7 @@ function validate$B(obj, path = 'ManagedContentSingleItemDocumentRepresentation'
8811
8877
  }
8812
8878
  const obj_contentType = obj.contentType;
8813
8879
  const path_contentType = path + '.contentType';
8814
- const referencepath_contentTypeValidationError = validate$1k(obj_contentType, path_contentType);
8880
+ const referencepath_contentTypeValidationError = validate$1l(obj_contentType, path_contentType);
8815
8881
  if (referencepath_contentTypeValidationError !== null) {
8816
8882
  let message = 'Object doesn\'t match ManagedContentTypeSummaryRepresentation (at "' + path_contentType + '")\n';
8817
8883
  message += referencepath_contentTypeValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -8845,7 +8911,7 @@ function validate$B(obj, path = 'ManagedContentSingleItemDocumentRepresentation'
8845
8911
  }
8846
8912
  const obj_createdBy = obj.createdBy;
8847
8913
  const path_createdBy = path + '.createdBy';
8848
- const referencepath_createdByValidationError = validate$1h(obj_createdBy, path_createdBy);
8914
+ const referencepath_createdByValidationError = validate$1i(obj_createdBy, path_createdBy);
8849
8915
  if (referencepath_createdByValidationError !== null) {
8850
8916
  let message = 'Object doesn\'t match ManagedContentUserSummaryRepresentation (at "' + path_createdBy + '")\n';
8851
8917
  message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -8860,7 +8926,7 @@ function validate$B(obj, path = 'ManagedContentSingleItemDocumentRepresentation'
8860
8926
  const path_folder = path + '.folder';
8861
8927
  let obj_folder_union0 = null;
8862
8928
  const obj_folder_union0_error = (() => {
8863
- const referencepath_folderValidationError = validate$1o(obj_folder, path_folder);
8929
+ const referencepath_folderValidationError = validate$1p(obj_folder, path_folder);
8864
8930
  if (referencepath_folderValidationError !== null) {
8865
8931
  let message = 'Object doesn\'t match ManagedContentFolderSummaryRepresentation (at "' + path_folder + '")\n';
8866
8932
  message += referencepath_folderValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -8897,7 +8963,7 @@ function validate$B(obj, path = 'ManagedContentSingleItemDocumentRepresentation'
8897
8963
  }
8898
8964
  const obj_lastModifiedBy = obj.lastModifiedBy;
8899
8965
  const path_lastModifiedBy = path + '.lastModifiedBy';
8900
- const referencepath_lastModifiedByValidationError = validate$1h(obj_lastModifiedBy, path_lastModifiedBy);
8966
+ const referencepath_lastModifiedByValidationError = validate$1i(obj_lastModifiedBy, path_lastModifiedBy);
8901
8967
  if (referencepath_lastModifiedByValidationError !== null) {
8902
8968
  let message = 'Object doesn\'t match ManagedContentUserSummaryRepresentation (at "' + path_lastModifiedBy + '")\n';
8903
8969
  message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -12047,7 +12113,7 @@ function validate$l(obj, path = 'ManagedContentTypeSummaryCollectionRepresentati
12047
12113
  for (let i = 0; i < obj_contentTypes.length; i++) {
12048
12114
  const obj_contentTypes_item = obj_contentTypes[i];
12049
12115
  const path_contentTypes_item = path_contentTypes + '[' + i + ']';
12050
- const referencepath_contentTypes_itemValidationError = validate$1k(obj_contentTypes_item, path_contentTypes_item);
12116
+ const referencepath_contentTypes_itemValidationError = validate$1l(obj_contentTypes_item, path_contentTypes_item);
12051
12117
  if (referencepath_contentTypes_itemValidationError !== null) {
12052
12118
  let message = 'Object doesn\'t match ManagedContentTypeSummaryRepresentation (at "' + path_contentTypes_item + '")\n';
12053
12119
  message += referencepath_contentTypes_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -12463,7 +12529,7 @@ function validate$k(obj, path = 'ManagedContentVariantReferenceDetailsRepresenta
12463
12529
  }
12464
12530
  const obj_contentType = obj.contentType;
12465
12531
  const path_contentType = path + '.contentType';
12466
- const referencepath_contentTypeValidationError = validate$1k(obj_contentType, path_contentType);
12532
+ const referencepath_contentTypeValidationError = validate$1l(obj_contentType, path_contentType);
12467
12533
  if (referencepath_contentTypeValidationError !== null) {
12468
12534
  let message = 'Object doesn\'t match ManagedContentTypeSummaryRepresentation (at "' + path_contentType + '")\n';
12469
12535
  message += referencepath_contentTypeValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -12471,7 +12537,7 @@ function validate$k(obj, path = 'ManagedContentVariantReferenceDetailsRepresenta
12471
12537
  }
12472
12538
  const obj_createdBy = obj.createdBy;
12473
12539
  const path_createdBy = path + '.createdBy';
12474
- const referencepath_createdByValidationError = validate$1h(obj_createdBy, path_createdBy);
12540
+ const referencepath_createdByValidationError = validate$1i(obj_createdBy, path_createdBy);
12475
12541
  if (referencepath_createdByValidationError !== null) {
12476
12542
  let message = 'Object doesn\'t match ManagedContentUserSummaryRepresentation (at "' + path_createdBy + '")\n';
12477
12543
  message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -12497,7 +12563,7 @@ function validate$k(obj, path = 'ManagedContentVariantReferenceDetailsRepresenta
12497
12563
  }
12498
12564
  const obj_lastModifiedBy = obj.lastModifiedBy;
12499
12565
  const path_lastModifiedBy = path + '.lastModifiedBy';
12500
- const referencepath_lastModifiedByValidationError = validate$1h(obj_lastModifiedBy, path_lastModifiedBy);
12566
+ const referencepath_lastModifiedByValidationError = validate$1i(obj_lastModifiedBy, path_lastModifiedBy);
12501
12567
  if (referencepath_lastModifiedByValidationError !== null) {
12502
12568
  let message = 'Object doesn\'t match ManagedContentUserSummaryRepresentation (at "' + path_lastModifiedBy + '")\n';
12503
12569
  message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -13000,7 +13066,7 @@ function validate$h(obj, path = 'ManagedContentVariantVersionRepresentation') {
13000
13066
  }
13001
13067
  const obj_createdBy = obj.createdBy;
13002
13068
  const path_createdBy = path + '.createdBy';
13003
- const referencepath_createdByValidationError = validate$1h(obj_createdBy, path_createdBy);
13069
+ const referencepath_createdByValidationError = validate$1i(obj_createdBy, path_createdBy);
13004
13070
  if (referencepath_createdByValidationError !== null) {
13005
13071
  let message = 'Object doesn\'t match ManagedContentUserSummaryRepresentation (at "' + path_createdBy + '")\n';
13006
13072
  message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -13013,7 +13079,7 @@ function validate$h(obj, path = 'ManagedContentVariantVersionRepresentation') {
13013
13079
  }
13014
13080
  const obj_lastModifiedBy = obj.lastModifiedBy;
13015
13081
  const path_lastModifiedBy = path + '.lastModifiedBy';
13016
- const referencepath_lastModifiedByValidationError = validate$1h(obj_lastModifiedBy, path_lastModifiedBy);
13082
+ const referencepath_lastModifiedByValidationError = validate$1i(obj_lastModifiedBy, path_lastModifiedBy);
13017
13083
  if (referencepath_lastModifiedByValidationError !== null) {
13018
13084
  let message = 'Object doesn\'t match ManagedContentUserSummaryRepresentation (at "' + path_lastModifiedBy + '")\n';
13019
13085
  message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -13334,7 +13400,7 @@ function validate$f(obj, path = 'AbstractManagedContentSearchResultRepresentatio
13334
13400
  }
13335
13401
  const obj_createdBy = obj.createdBy;
13336
13402
  const path_createdBy = path + '.createdBy';
13337
- const referencepath_createdByValidationError = validate$1h(obj_createdBy, path_createdBy);
13403
+ const referencepath_createdByValidationError = validate$1i(obj_createdBy, path_createdBy);
13338
13404
  if (referencepath_createdByValidationError !== null) {
13339
13405
  let message = 'Object doesn\'t match ManagedContentUserSummaryRepresentation (at "' + path_createdBy + '")\n';
13340
13406
  message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -13347,7 +13413,7 @@ function validate$f(obj, path = 'AbstractManagedContentSearchResultRepresentatio
13347
13413
  }
13348
13414
  const obj_folder = obj.folder;
13349
13415
  const path_folder = path + '.folder';
13350
- const referencepath_folderValidationError = validate$1o(obj_folder, path_folder);
13416
+ const referencepath_folderValidationError = validate$1p(obj_folder, path_folder);
13351
13417
  if (referencepath_folderValidationError !== null) {
13352
13418
  let message = 'Object doesn\'t match ManagedContentFolderSummaryRepresentation (at "' + path_folder + '")\n';
13353
13419
  message += referencepath_folderValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -13360,7 +13426,7 @@ function validate$f(obj, path = 'AbstractManagedContentSearchResultRepresentatio
13360
13426
  }
13361
13427
  const obj_lastModifiedBy = obj.lastModifiedBy;
13362
13428
  const path_lastModifiedBy = path + '.lastModifiedBy';
13363
- const referencepath_lastModifiedByValidationError = validate$1h(obj_lastModifiedBy, path_lastModifiedBy);
13429
+ const referencepath_lastModifiedByValidationError = validate$1i(obj_lastModifiedBy, path_lastModifiedBy);
13364
13430
  if (referencepath_lastModifiedByValidationError !== null) {
13365
13431
  let message = 'Object doesn\'t match ManagedContentUserSummaryRepresentation (at "' + path_lastModifiedBy + '")\n';
13366
13432
  message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -15994,4 +16060,4 @@ withDefaultLuvio((luvio) => {
15994
16060
  });
15995
16061
 
15996
16062
  export { cloneManagedContentDocument, createDeployment, createManagedContent, createManagedContentExportV2Job, createManagedContentImportV2Job, createManagedContentTranslationVariants, createManagedContentVariant, createSchedule, createTranslationV2Job, deleteManagedContentVariant, getAllCMSJobsForSpace, getAllCMSJobsForSpace_imperative, getCMSJobForSpace, getCMSJobForSpaceNotifyChange, getCMSJobForSpace_imperative, getCollectionItems, getCollectionItems_imperative, getDeployments, getDeployments_imperative, getFormEmbedScript, getFormEmbedScript_imperative, getFormHandlerEmbedScript, getFormHandlerEmbedScript_imperative, getMCSFolderShareTargets, getMCSFolderShareTargets_imperative, getMCSFolderShares, getMCSFolderSharesNotifyChange, getMCSFolderShares_imperative, getManagedContent, getManagedContentByFolderId, getManagedContentByFolderId_imperative, getManagedContentDocumentCollection, getManagedContentDocumentCollection_imperative, getManagedContentExtensions, getManagedContentExtensions_imperative, getManagedContentForSite, getManagedContentForSite_imperative, getManagedContentPreviews, getManagedContentPreviews_imperative, getManagedContentProvidersForSpace, getManagedContentProvidersForSpace_imperative, getManagedContentReferencedBy, getManagedContentReferencedBy_imperative, getManagedContentSingleItem, getManagedContentSingleItem_imperative, getManagedContentSpace, getManagedContentSpaceByFullyQualifiedName, getManagedContentSpaceByFullyQualifiedName_imperative, getManagedContentSpaceFolder, getManagedContentSpaceFolderItemsV1, getManagedContentSpaceFolderItemsV1_imperative, getManagedContentSpaceFolder_imperative, getManagedContentSpaceNotifyChange, getManagedContentSpaceOrchestratorConfig, getManagedContentSpaceOrchestratorConfigNotifyChange, getManagedContentSpaceOrchestratorConfig_imperative, getManagedContentSpace_imperative, getManagedContentSpaces, getManagedContentSpaces_imperative, getManagedContentTaxonomyTerms, getManagedContentTaxonomyTerms_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, postManagedContentSpace, postManagedContentSpaceFolder, publishManagedContent, putManagedContentSpaceOrchestratorConfig, replaceManagedContentVariant, unpublishManagedContent, updateDeployment, updateMCSFolderShares, updateManagedContentTaxonomyTerms, updateManagedContentWebUrl };
15997
- // version: 1.435.1-a9f05717b8
16063
+ // version: 1.436.0-7cd4295391
package/src/raml/api.raml CHANGED
@@ -1314,6 +1314,37 @@ types:
1314
1314
  description: URL-friendly identifier of the content within the org.
1315
1315
  type: string
1316
1316
  required: false # TODO Hand-rolled W-9314597
1317
+ additionalVariants:
1318
+ description: Optional list of additional variants to create along with the primary content.
1319
+ type: array
1320
+ required: false # TODO Hand-rolled W-22268015
1321
+ items:
1322
+ type: ManagedContentAdditionalVariantInputRepresentation
1323
+ ManagedContentAdditionalVariantInputRepresentation:
1324
+ description: Input representation for an additional variant to create alongside the primary content.
1325
+ type: object
1326
+ properties:
1327
+ contentBody:
1328
+ description: The body of the variant.
1329
+ type: object
1330
+ properties:
1331
+ //:
1332
+ type: any # TODO hand rolled. W-22268015
1333
+ language:
1334
+ description: The language of the variant (locale string). Required.
1335
+ type: string
1336
+ title:
1337
+ description: The title of the variant.
1338
+ type: string
1339
+ required: false # TODO Hand-rolled W-22268015
1340
+ urlName:
1341
+ description: URL-friendly identifier of the variant.
1342
+ type: string
1343
+ required: false # TODO Hand-rolled W-22268015
1344
+ variantType:
1345
+ description: The type of variant to create (Content, Translation, Variation, Mobile, Tablet). Defaults to Content.
1346
+ type: string
1347
+ required: false # TODO Hand-rolled W-22268015
1317
1348
  ManagedContentJobBodyCollectionRepresentation:
1318
1349
  description: Information about managed content job body
1319
1350
  type: object
@@ -456,6 +456,32 @@ types:
456
456
  }
457
457
  }
458
458
  }
459
+ - |
460
+ {
461
+ "ManagedContentInputParam": {
462
+ "contentSpaceOrFolderId":"0Zuxx00000001DpCAI",
463
+ "contentType":"news",
464
+ "title":"hello authoring 2.0",
465
+ "urlName":"testurl",
466
+ "contentBody":{
467
+ "title": "hello authoring 2.0",
468
+ "body":"test body",
469
+ "excerpt":"test excerpt"
470
+ },
471
+ "additionalVariants": [
472
+ {
473
+ "title": "Mon Article",
474
+ "urlName": "mon-article",
475
+ "language": "fr",
476
+ "variantType": "Translation",
477
+ "contentBody": {
478
+ "title": "Mon Article",
479
+ "body": "corps du test"
480
+ }
481
+ }
482
+ ]
483
+ }
484
+ }
459
485
  invalidConfigs:
460
486
  - |
461
487
  {