@salesforce/lds-adapters-cms-authoring 1.284.0 → 1.286.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.
@@ -4,7 +4,7 @@
4
4
  * For full license text, see the LICENSE.txt file
5
5
  */
6
6
 
7
- import { serializeStructuredKey, ingestShape, deepFreeze, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$p, typeCheckConfig as typeCheckConfig$J, StoreKeyMap, createResourceParams as createResourceParams$J } from '@luvio/engine';
7
+ import { serializeStructuredKey, ingestShape, deepFreeze, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$p, typeCheckConfig as typeCheckConfig$I, StoreKeyMap, createResourceParams as createResourceParams$I } from '@luvio/engine';
8
8
 
9
9
  const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
10
10
  const { keys: ObjectKeys$1, create: ObjectCreate$1 } = Object;
@@ -93,8 +93,8 @@ function createLink(ref) {
93
93
  };
94
94
  }
95
95
 
96
- const VERSION$F = "7297fb0dbfe8f664d76179a65037c290";
97
- function validate$1f(obj, path = 'ManagedContentTypeSummaryRepresentation') {
96
+ const VERSION$E = "7297fb0dbfe8f664d76179a65037c290";
97
+ function validate$1c(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 + '")');
@@ -114,10 +114,10 @@ function validate$1f(obj, path = 'ManagedContentTypeSummaryRepresentation') {
114
114
  })();
115
115
  return v_error === undefined ? null : v_error;
116
116
  }
117
- const select$1l = function ManagedContentTypeSummaryRepresentationSelect() {
117
+ const select$1j = function ManagedContentTypeSummaryRepresentationSelect() {
118
118
  return {
119
119
  kind: 'Fragment',
120
- version: VERSION$F,
120
+ version: VERSION$E,
121
121
  private: [],
122
122
  selections: [
123
123
  {
@@ -132,7 +132,7 @@ const select$1l = function ManagedContentTypeSummaryRepresentationSelect() {
132
132
  ]
133
133
  };
134
134
  };
135
- function equals$F(existing, incoming) {
135
+ function equals$E(existing, incoming) {
136
136
  const existing_fullyQualifiedName = existing.fullyQualifiedName;
137
137
  const incoming_fullyQualifiedName = incoming.fullyQualifiedName;
138
138
  if (!(existing_fullyQualifiedName === incoming_fullyQualifiedName)) {
@@ -154,8 +154,8 @@ function equals$F(existing, incoming) {
154
154
  return true;
155
155
  }
156
156
 
157
- const VERSION$E = "c30d880a3dba684a405d1cf961af2b76";
158
- function validate$1e(obj, path = 'ManagedContentVariantSnapshotSummaryRepresentation') {
157
+ const VERSION$D = "c30d880a3dba684a405d1cf961af2b76";
158
+ function validate$1b(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$1e(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$1f(obj_contentType, path_contentType);
167
+ const referencepath_contentTypeValidationError = validate$1c(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');
@@ -322,11 +322,11 @@ function validate$1e(obj, path = 'ManagedContentVariantSnapshotSummaryRepresenta
322
322
  })();
323
323
  return v_error === undefined ? null : v_error;
324
324
  }
325
- const select$1k = function ManagedContentVariantSnapshotSummaryRepresentationSelect() {
326
- const { selections: ManagedContentTypeSummaryRepresentation__selections, opaque: ManagedContentTypeSummaryRepresentation__opaque, } = select$1l();
325
+ const select$1i = function ManagedContentVariantSnapshotSummaryRepresentationSelect() {
326
+ const { selections: ManagedContentTypeSummaryRepresentation__selections, opaque: ManagedContentTypeSummaryRepresentation__opaque, } = select$1j();
327
327
  return {
328
328
  kind: 'Fragment',
329
- version: VERSION$E,
329
+ version: VERSION$D,
330
330
  private: [],
331
331
  selections: [
332
332
  {
@@ -358,13 +358,13 @@ const select$1k = function ManagedContentVariantSnapshotSummaryRepresentationSel
358
358
  ]
359
359
  };
360
360
  };
361
- function equals$E(existing, incoming) {
361
+ function equals$D(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$F(existing_contentType, incoming_contentType)))) {
367
+ equals$E(existing_contentType, incoming_contentType)))) {
368
368
  return false;
369
369
  }
370
370
  const existing_id = existing.id;
@@ -395,8 +395,8 @@ function equals$E(existing, incoming) {
395
395
  return true;
396
396
  }
397
397
 
398
- const VERSION$D = "f99d45f1e809783023bfd9dbe2fe4a6c";
399
- function validate$1d(obj, path = 'ManagedContentDeploymentItemRepresentation') {
398
+ const VERSION$C = "f99d45f1e809783023bfd9dbe2fe4a6c";
399
+ function validate$1a(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$1d(obj, path = 'ManagedContentDeploymentItemRepresentation') {
423
423
  }
424
424
  const obj_mcvSnapshotSummary = obj.mcvSnapshotSummary;
425
425
  const path_mcvSnapshotSummary = path + '.mcvSnapshotSummary';
426
- const referencepath_mcvSnapshotSummaryValidationError = validate$1e(obj_mcvSnapshotSummary, path_mcvSnapshotSummary);
426
+ const referencepath_mcvSnapshotSummaryValidationError = validate$1b(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');
@@ -489,11 +489,11 @@ function validate$1d(obj, path = 'ManagedContentDeploymentItemRepresentation') {
489
489
  })();
490
490
  return v_error === undefined ? null : v_error;
491
491
  }
492
- const select$1j = function ManagedContentDeploymentItemRepresentationSelect() {
493
- const { selections: ManagedContentVariantSnapshotSummaryRepresentation__selections, opaque: ManagedContentVariantSnapshotSummaryRepresentation__opaque, } = select$1k();
492
+ const select$1h = function ManagedContentDeploymentItemRepresentationSelect() {
493
+ const { selections: ManagedContentVariantSnapshotSummaryRepresentation__selections, opaque: ManagedContentVariantSnapshotSummaryRepresentation__opaque, } = select$1i();
494
494
  return {
495
495
  kind: 'Fragment',
496
- version: VERSION$D,
496
+ version: VERSION$C,
497
497
  private: [],
498
498
  selections: [
499
499
  {
@@ -532,7 +532,7 @@ const select$1j = function ManagedContentDeploymentItemRepresentationSelect() {
532
532
  ]
533
533
  };
534
534
  };
535
- function equals$D(existing, incoming) {
535
+ function equals$C(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$D(existing, incoming) {
560
560
  }
561
561
  const existing_mcvSnapshotSummary = existing.mcvSnapshotSummary;
562
562
  const incoming_mcvSnapshotSummary = incoming.mcvSnapshotSummary;
563
- if (!(equals$E(existing_mcvSnapshotSummary, incoming_mcvSnapshotSummary))) {
563
+ if (!(equals$D(existing_mcvSnapshotSummary, incoming_mcvSnapshotSummary))) {
564
564
  return false;
565
565
  }
566
566
  const existing_targetId = existing.targetId;
@@ -576,8 +576,8 @@ function equals$D(existing, incoming) {
576
576
  return true;
577
577
  }
578
578
 
579
- const VERSION$C = "4b75ed6ff448da86412b605f7e775a62";
580
- function validate$1c(obj, path = 'ManagedContentUserSummaryRepresentation') {
579
+ const VERSION$B = "4b75ed6ff448da86412b605f7e775a62";
580
+ function validate$19(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 + '")');
@@ -602,10 +602,10 @@ function validate$1c(obj, path = 'ManagedContentUserSummaryRepresentation') {
602
602
  })();
603
603
  return v_error === undefined ? null : v_error;
604
604
  }
605
- const select$1i = function ManagedContentUserSummaryRepresentationSelect() {
605
+ const select$1g = function ManagedContentUserSummaryRepresentationSelect() {
606
606
  return {
607
607
  kind: 'Fragment',
608
- version: VERSION$C,
608
+ version: VERSION$B,
609
609
  private: [],
610
610
  selections: [
611
611
  {
@@ -624,7 +624,7 @@ const select$1i = function ManagedContentUserSummaryRepresentationSelect() {
624
624
  ]
625
625
  };
626
626
  };
627
- function equals$C(existing, incoming) {
627
+ function equals$B(existing, incoming) {
628
628
  const existing_id = existing.id;
629
629
  const incoming_id = incoming.id;
630
630
  if (!(existing_id === incoming_id)) {
@@ -651,9 +651,9 @@ function equals$C(existing, incoming) {
651
651
  return true;
652
652
  }
653
653
 
654
- const TTL$x = 100;
655
- const VERSION$B = "f7e3c655efe77a7c9968ade15a6029b1";
656
- function validate$1b(obj, path = 'ManagedContentDeploymentRepresentation') {
654
+ const TTL$w = 100;
655
+ const VERSION$A = "f7e3c655efe77a7c9968ade15a6029b1";
656
+ function validate$18(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$1b(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$1d(obj_deploymentItems_item, path_deploymentItems_item);
726
+ const referencepath_deploymentItems_itemValidationError = validate$1a(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$1b(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$1c(obj_lastModifiedBy, path_lastModifiedBy);
789
+ const referencepath_lastModifiedByValidationError = validate$19(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');
@@ -840,25 +840,25 @@ function validate$1b(obj, path = 'ManagedContentDeploymentRepresentation') {
840
840
  })();
841
841
  return v_error === undefined ? null : v_error;
842
842
  }
843
- const RepresentationType$y = 'ManagedContentDeploymentRepresentation';
844
- function keyBuilder$14(luvio, config) {
845
- return keyPrefix + '::' + RepresentationType$y + ':' + config.id;
843
+ const RepresentationType$x = 'ManagedContentDeploymentRepresentation';
844
+ function keyBuilder$13(luvio, config) {
845
+ return keyPrefix + '::' + RepresentationType$x + ':' + config.id;
846
846
  }
847
- function keyBuilderFromType$h(luvio, object) {
847
+ function keyBuilderFromType$g(luvio, object) {
848
848
  const keyParams = {
849
849
  id: object.deploymentId
850
850
  };
851
- return keyBuilder$14(luvio, keyParams);
851
+ return keyBuilder$13(luvio, keyParams);
852
852
  }
853
- function normalize$y(input, existing, path, luvio, store, timestamp) {
853
+ function normalize$x(input, existing, path, luvio, store, timestamp) {
854
854
  return input;
855
855
  }
856
- const select$1h = function ManagedContentDeploymentRepresentationSelect() {
857
- const { selections: ManagedContentDeploymentItemRepresentation__selections, opaque: ManagedContentDeploymentItemRepresentation__opaque, } = select$1j();
858
- const { selections: ManagedContentUserSummaryRepresentation__selections, opaque: ManagedContentUserSummaryRepresentation__opaque, } = select$1i();
856
+ const select$1f = function ManagedContentDeploymentRepresentationSelect() {
857
+ const { selections: ManagedContentDeploymentItemRepresentation__selections, opaque: ManagedContentDeploymentItemRepresentation__opaque, } = select$1h();
858
+ const { selections: ManagedContentUserSummaryRepresentation__selections, opaque: ManagedContentUserSummaryRepresentation__opaque, } = select$1g();
859
859
  return {
860
860
  kind: 'Fragment',
861
- version: VERSION$B,
861
+ version: VERSION$A,
862
862
  private: [],
863
863
  selections: [
864
864
  {
@@ -900,7 +900,7 @@ const select$1h = function ManagedContentDeploymentRepresentationSelect() {
900
900
  ]
901
901
  };
902
902
  };
903
- function equals$B(existing, incoming) {
903
+ function equals$A(existing, incoming) {
904
904
  const existing_deploymentId = existing.deploymentId;
905
905
  const incoming_deploymentId = incoming.deploymentId;
906
906
  if (!(existing_deploymentId === incoming_deploymentId)) {
@@ -919,7 +919,7 @@ function equals$B(existing, incoming) {
919
919
  const existing_deploymentItems = existing.deploymentItems;
920
920
  const incoming_deploymentItems = incoming.deploymentItems;
921
921
  const equals_deploymentItems_items = equalsArray(existing_deploymentItems, incoming_deploymentItems, (existing_deploymentItems_item, incoming_deploymentItems_item) => {
922
- if (!(equals$D(existing_deploymentItems_item, incoming_deploymentItems_item))) {
922
+ if (!(equals$C(existing_deploymentItems_item, incoming_deploymentItems_item))) {
923
923
  return false;
924
924
  }
925
925
  });
@@ -941,7 +941,7 @@ function equals$B(existing, incoming) {
941
941
  if (!(existing_lastModifiedBy === incoming_lastModifiedBy
942
942
  || (existing_lastModifiedBy != null &&
943
943
  incoming_lastModifiedBy != null &&
944
- equals$C(existing_lastModifiedBy, incoming_lastModifiedBy)))) {
944
+ equals$B(existing_lastModifiedBy, incoming_lastModifiedBy)))) {
945
945
  return false;
946
946
  }
947
947
  const existing_scheduledDate = existing.scheduledDate;
@@ -951,31 +951,31 @@ function equals$B(existing, incoming) {
951
951
  }
952
952
  return true;
953
953
  }
954
- const ingest$y = function ManagedContentDeploymentRepresentationIngest(input, path, luvio, store, timestamp) {
954
+ const ingest$x = function ManagedContentDeploymentRepresentationIngest(input, path, luvio, store, timestamp) {
955
955
  if (process.env.NODE_ENV !== 'production') {
956
- const validateError = validate$1b(input);
956
+ const validateError = validate$18(input);
957
957
  if (validateError !== null) {
958
958
  throw validateError;
959
959
  }
960
960
  }
961
- const key = keyBuilderFromType$h(luvio, input);
962
- const ttlToUse = TTL$x;
963
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$y, "CMSAuthoring", VERSION$B, RepresentationType$y, equals$B);
961
+ const key = keyBuilderFromType$g(luvio, input);
962
+ const ttlToUse = TTL$w;
963
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$x, "CMSAuthoring", VERSION$A, RepresentationType$x, equals$A);
964
964
  return createLink(key);
965
965
  };
966
- function getTypeCacheKeys$y(rootKeySet, luvio, input, fullPathFactory) {
966
+ function getTypeCacheKeys$x(rootKeySet, luvio, input, fullPathFactory) {
967
967
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
968
- const rootKey = keyBuilderFromType$h(luvio, input);
968
+ const rootKey = keyBuilderFromType$g(luvio, input);
969
969
  rootKeySet.set(rootKey, {
970
970
  namespace: keyPrefix,
971
- representationName: RepresentationType$y,
971
+ representationName: RepresentationType$x,
972
972
  mergeable: false
973
973
  });
974
974
  }
975
975
 
976
- const TTL$w = 100;
977
- const VERSION$A = "b2c15aa80814ecd854e68bf635879e35";
978
- function validate$1a(obj, path = 'ManagedContentDeploymentCollectionRepresentation') {
976
+ const TTL$v = 100;
977
+ const VERSION$z = "b2c15aa80814ecd854e68bf635879e35";
978
+ function validate$17(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 + '")');
@@ -1052,14 +1052,14 @@ function validate$1a(obj, path = 'ManagedContentDeploymentCollectionRepresentati
1052
1052
  })();
1053
1053
  return v_error === undefined ? null : v_error;
1054
1054
  }
1055
- const RepresentationType$x = 'ManagedContentDeploymentCollectionRepresentation';
1056
- function normalize$x(input, existing, path, luvio, store, timestamp) {
1055
+ const RepresentationType$w = 'ManagedContentDeploymentCollectionRepresentation';
1056
+ function normalize$w(input, existing, path, luvio, store, timestamp) {
1057
1057
  const input_deployments = input.deployments;
1058
1058
  const input_deployments_id = path.fullPath + '__deployments';
1059
1059
  for (let i = 0; i < input_deployments.length; i++) {
1060
1060
  const input_deployments_item = input_deployments[i];
1061
1061
  let input_deployments_item_id = input_deployments_id + '__' + i;
1062
- input_deployments[i] = ingest$y(input_deployments_item, {
1062
+ input_deployments[i] = ingest$x(input_deployments_item, {
1063
1063
  fullPath: input_deployments_item_id,
1064
1064
  propertyName: i,
1065
1065
  parent: {
@@ -1072,10 +1072,10 @@ function normalize$x(input, existing, path, luvio, store, timestamp) {
1072
1072
  }
1073
1073
  return input;
1074
1074
  }
1075
- const select$1g = function ManagedContentDeploymentCollectionRepresentationSelect() {
1075
+ const select$1e = function ManagedContentDeploymentCollectionRepresentationSelect() {
1076
1076
  return {
1077
1077
  kind: 'Fragment',
1078
- version: VERSION$A,
1078
+ version: VERSION$z,
1079
1079
  private: [],
1080
1080
  selections: [
1081
1081
  {
@@ -1086,7 +1086,7 @@ const select$1g = function ManagedContentDeploymentCollectionRepresentationSelec
1086
1086
  name: 'deployments',
1087
1087
  kind: 'Link',
1088
1088
  plural: true,
1089
- fragment: select$1h()
1089
+ fragment: select$1f()
1090
1090
  },
1091
1091
  {
1092
1092
  name: 'nextPageUrl',
@@ -1099,7 +1099,7 @@ const select$1g = function ManagedContentDeploymentCollectionRepresentationSelec
1099
1099
  ]
1100
1100
  };
1101
1101
  };
1102
- function equals$A(existing, incoming) {
1102
+ function equals$z(existing, incoming) {
1103
1103
  const existing_currentPageUrl = existing.currentPageUrl;
1104
1104
  const incoming_currentPageUrl = incoming.currentPageUrl;
1105
1105
  if (!(existing_currentPageUrl === incoming_currentPageUrl)) {
@@ -1127,48 +1127,48 @@ function equals$A(existing, incoming) {
1127
1127
  }
1128
1128
  return true;
1129
1129
  }
1130
- const ingest$x = function ManagedContentDeploymentCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
1130
+ const ingest$w = function ManagedContentDeploymentCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
1131
1131
  if (process.env.NODE_ENV !== 'production') {
1132
- const validateError = validate$1a(input);
1132
+ const validateError = validate$17(input);
1133
1133
  if (validateError !== null) {
1134
1134
  throw validateError;
1135
1135
  }
1136
1136
  }
1137
1137
  const key = path.fullPath;
1138
- const ttlToUse = TTL$w;
1139
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$x, "CMSAuthoring", VERSION$A, RepresentationType$x, equals$A);
1138
+ const ttlToUse = TTL$v;
1139
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$w, "CMSAuthoring", VERSION$z, RepresentationType$w, equals$z);
1140
1140
  return createLink(key);
1141
1141
  };
1142
- function getTypeCacheKeys$x(rootKeySet, luvio, input, fullPathFactory) {
1142
+ function getTypeCacheKeys$w(rootKeySet, luvio, input, fullPathFactory) {
1143
1143
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
1144
1144
  const rootKey = fullPathFactory();
1145
1145
  rootKeySet.set(rootKey, {
1146
1146
  namespace: keyPrefix,
1147
- representationName: RepresentationType$x,
1147
+ representationName: RepresentationType$w,
1148
1148
  mergeable: false
1149
1149
  });
1150
1150
  const input_deployments_length = input.deployments.length;
1151
1151
  for (let i = 0; i < input_deployments_length; i++) {
1152
- getTypeCacheKeys$y(rootKeySet, luvio, input.deployments[i]);
1152
+ getTypeCacheKeys$x(rootKeySet, luvio, input.deployments[i]);
1153
1153
  }
1154
1154
  }
1155
1155
 
1156
- function select$1f(luvio, params) {
1157
- return select$1g();
1156
+ function select$1d(luvio, params) {
1157
+ return select$1e();
1158
1158
  }
1159
- function keyBuilder$13(luvio, params) {
1159
+ function keyBuilder$12(luvio, params) {
1160
1160
  return keyPrefix + '::ManagedContentDeploymentCollectionRepresentation:(' + 'contentSpaceId:' + params.queryParams.contentSpaceId + ',' + 'deploymentId:' + params.queryParams.deploymentId + ',' + 'deploymentStatus:' + params.queryParams.deploymentStatus + ',' + 'deploymentType:' + params.queryParams.deploymentType + ',' + 'managedContentVersionId:' + params.queryParams.managedContentVersionId + ',' + 'page:' + params.queryParams.page + ',' + 'pageSize:' + params.queryParams.pageSize + ',' + 'variantIds:' + params.queryParams.variantIds + ')';
1161
1161
  }
1162
- function getResponseCacheKeys$I(storeKeyMap, luvio, resourceParams, response) {
1163
- getTypeCacheKeys$x(storeKeyMap, luvio, response, () => keyBuilder$13(luvio, resourceParams));
1162
+ function getResponseCacheKeys$H(storeKeyMap, luvio, resourceParams, response) {
1163
+ getTypeCacheKeys$w(storeKeyMap, luvio, response, () => keyBuilder$12(luvio, resourceParams));
1164
1164
  }
1165
- function ingestSuccess$I(luvio, resourceParams, response, snapshotRefresh) {
1165
+ function ingestSuccess$H(luvio, resourceParams, response, snapshotRefresh) {
1166
1166
  const { body } = response;
1167
- const key = keyBuilder$13(luvio, resourceParams);
1168
- luvio.storeIngest(key, ingest$x, body);
1167
+ const key = keyBuilder$12(luvio, resourceParams);
1168
+ luvio.storeIngest(key, ingest$w, body);
1169
1169
  const snapshot = luvio.storeLookup({
1170
1170
  recordId: key,
1171
- node: select$1f(),
1171
+ node: select$1d(),
1172
1172
  variables: {},
1173
1173
  }, snapshotRefresh);
1174
1174
  if (process.env.NODE_ENV !== 'production') {
@@ -1180,18 +1180,18 @@ function ingestSuccess$I(luvio, resourceParams, response, snapshotRefresh) {
1180
1180
  return snapshot;
1181
1181
  }
1182
1182
  function ingestError$o(luvio, params, error, snapshotRefresh) {
1183
- const key = keyBuilder$13(luvio, params);
1183
+ const key = keyBuilder$12(luvio, params);
1184
1184
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
1185
1185
  const storeMetadataParams = {
1186
- ttl: TTL$w,
1186
+ ttl: TTL$v,
1187
1187
  namespace: keyPrefix,
1188
- version: VERSION$A,
1189
- representationName: RepresentationType$x
1188
+ version: VERSION$z,
1189
+ representationName: RepresentationType$w
1190
1190
  };
1191
1191
  luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
1192
1192
  return errorSnapshot;
1193
1193
  }
1194
- function createResourceRequest$I(config) {
1194
+ function createResourceRequest$H(config) {
1195
1195
  const headers = {};
1196
1196
  return {
1197
1197
  baseUri: '/services/data/v61.0',
@@ -1205,7 +1205,7 @@ function createResourceRequest$I(config) {
1205
1205
  };
1206
1206
  }
1207
1207
 
1208
- const adapterName$I = 'getDeployments';
1208
+ const adapterName$H = 'getDeployments';
1209
1209
  const oneOfConfigPropertiesIdentifier = [
1210
1210
  'deploymentId',
1211
1211
  'contentSpaceId',
@@ -1222,25 +1222,25 @@ const getDeployments_ConfigPropertyMetadata = [
1222
1222
  generateParamConfigMetadata('pageSize', false, 1 /* QueryParameter */, 3 /* Integer */),
1223
1223
  generateParamConfigMetadata('variantIds', false, 1 /* QueryParameter */, 0 /* String */, true),
1224
1224
  ];
1225
- const getDeployments_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$I, getDeployments_ConfigPropertyMetadata);
1226
- const createResourceParams$I = /*#__PURE__*/ createResourceParams$J(getDeployments_ConfigPropertyMetadata);
1227
- function keyBuilder$12(luvio, config) {
1228
- const resourceParams = createResourceParams$I(config);
1229
- return keyBuilder$13(luvio, resourceParams);
1225
+ const getDeployments_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$H, getDeployments_ConfigPropertyMetadata);
1226
+ const createResourceParams$H = /*#__PURE__*/ createResourceParams$I(getDeployments_ConfigPropertyMetadata);
1227
+ function keyBuilder$11(luvio, config) {
1228
+ const resourceParams = createResourceParams$H(config);
1229
+ return keyBuilder$12(luvio, resourceParams);
1230
1230
  }
1231
- function typeCheckConfig$I(untrustedConfig) {
1231
+ function typeCheckConfig$H(untrustedConfig) {
1232
1232
  const config = {};
1233
- typeCheckConfig$J(untrustedConfig, config, getDeployments_ConfigPropertyMetadata);
1233
+ typeCheckConfig$I(untrustedConfig, config, getDeployments_ConfigPropertyMetadata);
1234
1234
  return config;
1235
1235
  }
1236
- function validateAdapterConfig$I(untrustedConfig, configPropertyNames) {
1236
+ function validateAdapterConfig$H(untrustedConfig, configPropertyNames) {
1237
1237
  if (!untrustedIsObject(untrustedConfig)) {
1238
1238
  return null;
1239
1239
  }
1240
1240
  if (process.env.NODE_ENV !== 'production') {
1241
1241
  validateConfig(untrustedConfig, configPropertyNames, oneOfConfigPropertiesIdentifier);
1242
1242
  }
1243
- const config = typeCheckConfig$I(untrustedConfig);
1243
+ const config = typeCheckConfig$H(untrustedConfig);
1244
1244
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
1245
1245
  return null;
1246
1246
  }
@@ -1253,31 +1253,31 @@ function validateAdapterConfig$I(untrustedConfig, configPropertyNames) {
1253
1253
  return config;
1254
1254
  }
1255
1255
  function adapterFragment$o(luvio, config) {
1256
- createResourceParams$I(config);
1257
- return select$1f();
1256
+ createResourceParams$H(config);
1257
+ return select$1d();
1258
1258
  }
1259
1259
  function onFetchResponseSuccess$r(luvio, config, resourceParams, response) {
1260
- const snapshot = ingestSuccess$I(luvio, resourceParams, response, {
1260
+ const snapshot = ingestSuccess$H(luvio, resourceParams, response, {
1261
1261
  config,
1262
- resolve: () => buildNetworkSnapshot$I(luvio, config, snapshotRefreshOptions)
1262
+ resolve: () => buildNetworkSnapshot$H(luvio, config, snapshotRefreshOptions)
1263
1263
  });
1264
1264
  return luvio.storeBroadcast().then(() => snapshot);
1265
1265
  }
1266
1266
  function onFetchResponseError$o(luvio, config, resourceParams, response) {
1267
1267
  const snapshot = ingestError$o(luvio, resourceParams, response, {
1268
1268
  config,
1269
- resolve: () => buildNetworkSnapshot$I(luvio, config, snapshotRefreshOptions)
1269
+ resolve: () => buildNetworkSnapshot$H(luvio, config, snapshotRefreshOptions)
1270
1270
  });
1271
1271
  return luvio.storeBroadcast().then(() => snapshot);
1272
1272
  }
1273
- function buildNetworkSnapshot$I(luvio, config, options) {
1274
- const resourceParams = createResourceParams$I(config);
1275
- const request = createResourceRequest$I(resourceParams);
1273
+ function buildNetworkSnapshot$H(luvio, config, options) {
1274
+ const resourceParams = createResourceParams$H(config);
1275
+ const request = createResourceRequest$H(resourceParams);
1276
1276
  return luvio.dispatchResourceRequest(request, options)
1277
1277
  .then((response) => {
1278
1278
  return luvio.handleSuccessResponse(() => onFetchResponseSuccess$r(luvio, config, resourceParams, response), () => {
1279
1279
  const cache = new StoreKeyMap();
1280
- getResponseCacheKeys$I(cache, luvio, resourceParams, response.body);
1280
+ getResponseCacheKeys$H(cache, luvio, resourceParams, response.body);
1281
1281
  return cache;
1282
1282
  });
1283
1283
  }, (response) => {
@@ -1285,23 +1285,23 @@ function buildNetworkSnapshot$I(luvio, config, options) {
1285
1285
  });
1286
1286
  }
1287
1287
  function buildNetworkSnapshotCachePolicy$o(context, coercedAdapterRequestContext) {
1288
- return buildNetworkSnapshotCachePolicy$p(context, coercedAdapterRequestContext, buildNetworkSnapshot$I, undefined, false);
1288
+ return buildNetworkSnapshotCachePolicy$p(context, coercedAdapterRequestContext, buildNetworkSnapshot$H, undefined, false);
1289
1289
  }
1290
1290
  function buildCachedSnapshotCachePolicy$o(context, storeLookup) {
1291
1291
  const { luvio, config } = context;
1292
1292
  const selector = {
1293
- recordId: keyBuilder$12(luvio, config),
1293
+ recordId: keyBuilder$11(luvio, config),
1294
1294
  node: adapterFragment$o(luvio, config),
1295
1295
  variables: {},
1296
1296
  };
1297
1297
  const cacheSnapshot = storeLookup(selector, {
1298
1298
  config,
1299
- resolve: () => buildNetworkSnapshot$I(luvio, config, snapshotRefreshOptions)
1299
+ resolve: () => buildNetworkSnapshot$H(luvio, config, snapshotRefreshOptions)
1300
1300
  });
1301
1301
  return cacheSnapshot;
1302
1302
  }
1303
1303
  const getDeploymentsAdapterFactory = (luvio) => function CMSAuthoring__getDeployments(untrustedConfig, requestContext) {
1304
- const config = validateAdapterConfig$I(untrustedConfig, getDeployments_ConfigPropertyNames);
1304
+ const config = validateAdapterConfig$H(untrustedConfig, getDeployments_ConfigPropertyNames);
1305
1305
  // Invalid or incomplete config
1306
1306
  if (config === null) {
1307
1307
  return null;
@@ -1310,7 +1310,7 @@ const getDeploymentsAdapterFactory = (luvio) => function CMSAuthoring__getDeploy
1310
1310
  buildCachedSnapshotCachePolicy$o, buildNetworkSnapshotCachePolicy$o);
1311
1311
  };
1312
1312
 
1313
- function validate$19(obj, path = 'ManagedContentDeploymentInputRepresentation') {
1313
+ function validate$16(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 + '")');
@@ -1394,19 +1394,19 @@ function validate$19(obj, path = 'ManagedContentDeploymentInputRepresentation')
1394
1394
  return v_error === undefined ? null : v_error;
1395
1395
  }
1396
1396
 
1397
- function select$1e(luvio, params) {
1398
- return select$1h();
1397
+ function select$1c(luvio, params) {
1398
+ return select$1f();
1399
1399
  }
1400
- function getResponseCacheKeys$H(storeKeyMap, luvio, resourceParams, response) {
1401
- getTypeCacheKeys$y(storeKeyMap, luvio, response);
1400
+ function getResponseCacheKeys$G(storeKeyMap, luvio, resourceParams, response) {
1401
+ getTypeCacheKeys$x(storeKeyMap, luvio, response);
1402
1402
  }
1403
- function ingestSuccess$H(luvio, resourceParams, response) {
1403
+ function ingestSuccess$G(luvio, resourceParams, response) {
1404
1404
  const { body } = response;
1405
- const key = keyBuilderFromType$h(luvio, body);
1406
- luvio.storeIngest(key, ingest$y, body);
1405
+ const key = keyBuilderFromType$g(luvio, body);
1406
+ luvio.storeIngest(key, ingest$x, body);
1407
1407
  const snapshot = luvio.storeLookup({
1408
1408
  recordId: key,
1409
- node: select$1e(),
1409
+ node: select$1c(),
1410
1410
  variables: {},
1411
1411
  });
1412
1412
  if (process.env.NODE_ENV !== 'production') {
@@ -1417,7 +1417,7 @@ function ingestSuccess$H(luvio, resourceParams, response) {
1417
1417
  deepFreeze(snapshot.data);
1418
1418
  return snapshot;
1419
1419
  }
1420
- function createResourceRequest$H(config) {
1420
+ function createResourceRequest$G(config) {
1421
1421
  const headers = {};
1422
1422
  return {
1423
1423
  baseUri: '/services/data/v61.0',
@@ -1431,45 +1431,45 @@ function createResourceRequest$H(config) {
1431
1431
  };
1432
1432
  }
1433
1433
 
1434
- const adapterName$H = 'createDeployment';
1434
+ const adapterName$G = 'createDeployment';
1435
1435
  const createDeployment_ConfigPropertyMetadata = [
1436
1436
  generateParamConfigMetadata('DeploymentInput', true, 2 /* Body */, 4 /* Unsupported */),
1437
1437
  ];
1438
- const createDeployment_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$H, createDeployment_ConfigPropertyMetadata);
1439
- const createResourceParams$H = /*#__PURE__*/ createResourceParams$J(createDeployment_ConfigPropertyMetadata);
1440
- function typeCheckConfig$H(untrustedConfig) {
1438
+ const createDeployment_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$G, createDeployment_ConfigPropertyMetadata);
1439
+ const createResourceParams$G = /*#__PURE__*/ createResourceParams$I(createDeployment_ConfigPropertyMetadata);
1440
+ function typeCheckConfig$G(untrustedConfig) {
1441
1441
  const config = {};
1442
1442
  const untrustedConfig_DeploymentInput = untrustedConfig.DeploymentInput;
1443
- const referenceManagedContentDeploymentInputRepresentationValidationError = validate$19(untrustedConfig_DeploymentInput);
1443
+ const referenceManagedContentDeploymentInputRepresentationValidationError = validate$16(untrustedConfig_DeploymentInput);
1444
1444
  if (referenceManagedContentDeploymentInputRepresentationValidationError === null) {
1445
1445
  config.DeploymentInput = untrustedConfig_DeploymentInput;
1446
1446
  }
1447
1447
  return config;
1448
1448
  }
1449
- function validateAdapterConfig$H(untrustedConfig, configPropertyNames) {
1449
+ function validateAdapterConfig$G(untrustedConfig, configPropertyNames) {
1450
1450
  if (!untrustedIsObject(untrustedConfig)) {
1451
1451
  return null;
1452
1452
  }
1453
1453
  if (process.env.NODE_ENV !== 'production') {
1454
1454
  validateConfig(untrustedConfig, configPropertyNames);
1455
1455
  }
1456
- const config = typeCheckConfig$H(untrustedConfig);
1456
+ const config = typeCheckConfig$G(untrustedConfig);
1457
1457
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
1458
1458
  return null;
1459
1459
  }
1460
1460
  return config;
1461
1461
  }
1462
- function buildNetworkSnapshot$H(luvio, config, options) {
1463
- const resourceParams = createResourceParams$H(config);
1464
- const request = createResourceRequest$H(resourceParams);
1462
+ function buildNetworkSnapshot$G(luvio, config, options) {
1463
+ const resourceParams = createResourceParams$G(config);
1464
+ const request = createResourceRequest$G(resourceParams);
1465
1465
  return luvio.dispatchResourceRequest(request, options)
1466
1466
  .then((response) => {
1467
1467
  return luvio.handleSuccessResponse(() => {
1468
- const snapshot = ingestSuccess$H(luvio, resourceParams, response);
1468
+ const snapshot = ingestSuccess$G(luvio, resourceParams, response);
1469
1469
  return luvio.storeBroadcast().then(() => snapshot);
1470
1470
  }, () => {
1471
1471
  const cache = new StoreKeyMap();
1472
- getResponseCacheKeys$H(cache, luvio, resourceParams, response.body);
1472
+ getResponseCacheKeys$G(cache, luvio, resourceParams, response.body);
1473
1473
  return cache;
1474
1474
  });
1475
1475
  }, (response) => {
@@ -1479,17 +1479,17 @@ function buildNetworkSnapshot$H(luvio, config, options) {
1479
1479
  }
1480
1480
  const createDeploymentAdapterFactory = (luvio) => {
1481
1481
  return function createDeployment(untrustedConfig) {
1482
- const config = validateAdapterConfig$H(untrustedConfig, createDeployment_ConfigPropertyNames);
1482
+ const config = validateAdapterConfig$G(untrustedConfig, createDeployment_ConfigPropertyNames);
1483
1483
  // Invalid or incomplete config
1484
1484
  if (config === null) {
1485
1485
  throw new Error('Invalid config for "createDeployment"');
1486
1486
  }
1487
- return buildNetworkSnapshot$H(luvio, config);
1487
+ return buildNetworkSnapshot$G(luvio, config);
1488
1488
  };
1489
1489
  };
1490
1490
 
1491
- const VERSION$z = "7e57fd77c4503be9a8822f2603a04df3";
1492
- function validate$18(obj, path = 'ManagedContentJobBodyRepresentation') {
1491
+ const VERSION$y = "7e57fd77c4503be9a8822f2603a04df3";
1492
+ function validate$15(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 + '")');
@@ -1517,10 +1517,10 @@ function validate$18(obj, path = 'ManagedContentJobBodyRepresentation') {
1517
1517
  })();
1518
1518
  return v_error === undefined ? null : v_error;
1519
1519
  }
1520
- const select$1d = function ManagedContentJobBodyRepresentationSelect() {
1520
+ const select$1b = function ManagedContentJobBodyRepresentationSelect() {
1521
1521
  return {
1522
1522
  kind: 'Fragment',
1523
- version: VERSION$z,
1523
+ version: VERSION$y,
1524
1524
  private: [],
1525
1525
  selections: [
1526
1526
  {
@@ -1542,7 +1542,7 @@ const select$1d = function ManagedContentJobBodyRepresentationSelect() {
1542
1542
  ]
1543
1543
  };
1544
1544
  };
1545
- function equals$z(existing, incoming) {
1545
+ function equals$y(existing, incoming) {
1546
1546
  const existing_bodyType = existing.bodyType;
1547
1547
  const incoming_bodyType = incoming.bodyType;
1548
1548
  if (!(existing_bodyType === incoming_bodyType)) {
@@ -1566,8 +1566,8 @@ function equals$z(existing, incoming) {
1566
1566
  return true;
1567
1567
  }
1568
1568
 
1569
- const VERSION$y = "eba1876bba76cb05d9cbb8a968bd6796";
1570
- function validate$17(obj, path = 'ManagedContentJobBodyCollectionRepresentation') {
1569
+ const VERSION$x = "eba1876bba76cb05d9cbb8a968bd6796";
1570
+ function validate$14(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$17(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$18(obj_jobBodies_item, path_jobBodies_item);
1583
+ const referencepath_jobBodies_itemValidationError = validate$15(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');
@@ -1590,11 +1590,11 @@ function validate$17(obj, path = 'ManagedContentJobBodyCollectionRepresentation'
1590
1590
  })();
1591
1591
  return v_error === undefined ? null : v_error;
1592
1592
  }
1593
- const select$1c = function ManagedContentJobBodyCollectionRepresentationSelect() {
1594
- const { selections: ManagedContentJobBodyRepresentation__selections, opaque: ManagedContentJobBodyRepresentation__opaque, } = select$1d();
1593
+ const select$1a = function ManagedContentJobBodyCollectionRepresentationSelect() {
1594
+ const { selections: ManagedContentJobBodyRepresentation__selections, opaque: ManagedContentJobBodyRepresentation__opaque, } = select$1b();
1595
1595
  return {
1596
1596
  kind: 'Fragment',
1597
- version: VERSION$y,
1597
+ version: VERSION$x,
1598
1598
  private: [],
1599
1599
  selections: [
1600
1600
  {
@@ -1606,11 +1606,11 @@ const select$1c = function ManagedContentJobBodyCollectionRepresentationSelect()
1606
1606
  ]
1607
1607
  };
1608
1608
  };
1609
- function equals$y(existing, incoming) {
1609
+ function equals$x(existing, incoming) {
1610
1610
  const existing_jobBodies = existing.jobBodies;
1611
1611
  const incoming_jobBodies = incoming.jobBodies;
1612
1612
  const equals_jobBodies_items = equalsArray(existing_jobBodies, incoming_jobBodies, (existing_jobBodies_item, incoming_jobBodies_item) => {
1613
- if (!(equals$z(existing_jobBodies_item, incoming_jobBodies_item))) {
1613
+ if (!(equals$y(existing_jobBodies_item, incoming_jobBodies_item))) {
1614
1614
  return false;
1615
1615
  }
1616
1616
  });
@@ -1620,9 +1620,9 @@ function equals$y(existing, incoming) {
1620
1620
  return true;
1621
1621
  }
1622
1622
 
1623
- const TTL$v = 100;
1624
- const VERSION$x = "9c2de7843d4d4e7784d56c7f83c58f0e";
1625
- function validate$16(obj, path = 'ManagedContentV2JobDetailRepresentation') {
1623
+ const TTL$u = 100;
1624
+ const VERSION$w = "9c2de7843d4d4e7784d56c7f83c58f0e";
1625
+ function validate$13(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$16(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$17(obj_body, path_body);
1634
+ const referencepath_bodyValidationError = validate$14(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');
@@ -1725,24 +1725,24 @@ function validate$16(obj, path = 'ManagedContentV2JobDetailRepresentation') {
1725
1725
  })();
1726
1726
  return v_error === undefined ? null : v_error;
1727
1727
  }
1728
- const RepresentationType$w = 'ManagedContentV2JobDetailRepresentation';
1729
- function keyBuilder$11(luvio, config) {
1730
- return keyPrefix + '::' + RepresentationType$w + ':' + config.id;
1728
+ const RepresentationType$v = 'ManagedContentV2JobDetailRepresentation';
1729
+ function keyBuilder$10(luvio, config) {
1730
+ return keyPrefix + '::' + RepresentationType$v + ':' + config.id;
1731
1731
  }
1732
- function keyBuilderFromType$g(luvio, object) {
1732
+ function keyBuilderFromType$f(luvio, object) {
1733
1733
  const keyParams = {
1734
1734
  id: object.id
1735
1735
  };
1736
- return keyBuilder$11(luvio, keyParams);
1736
+ return keyBuilder$10(luvio, keyParams);
1737
1737
  }
1738
- function normalize$w(input, existing, path, luvio, store, timestamp) {
1738
+ function normalize$v(input, existing, path, luvio, store, timestamp) {
1739
1739
  return input;
1740
1740
  }
1741
- const select$1b = function ManagedContentV2JobDetailRepresentationSelect() {
1742
- const { selections: ManagedContentJobBodyCollectionRepresentation__selections, opaque: ManagedContentJobBodyCollectionRepresentation__opaque, } = select$1c();
1741
+ const select$19 = function ManagedContentV2JobDetailRepresentationSelect() {
1742
+ const { selections: ManagedContentJobBodyCollectionRepresentation__selections, opaque: ManagedContentJobBodyCollectionRepresentation__opaque, } = select$1a();
1743
1743
  return {
1744
1744
  kind: 'Fragment',
1745
- version: VERSION$x,
1745
+ version: VERSION$w,
1746
1746
  private: [],
1747
1747
  selections: [
1748
1748
  {
@@ -1790,7 +1790,7 @@ const select$1b = function ManagedContentV2JobDetailRepresentationSelect() {
1790
1790
  ]
1791
1791
  };
1792
1792
  };
1793
- function equals$x(existing, incoming) {
1793
+ function equals$w(existing, incoming) {
1794
1794
  const existing_createdById = existing.createdById;
1795
1795
  const incoming_createdById = incoming.createdById;
1796
1796
  if (!(existing_createdById === incoming_createdById)) {
@@ -1836,7 +1836,7 @@ function equals$x(existing, incoming) {
1836
1836
  if (!(existing_body === incoming_body
1837
1837
  || (existing_body != null &&
1838
1838
  incoming_body != null &&
1839
- equals$y(existing_body, incoming_body)))) {
1839
+ equals$x(existing_body, incoming_body)))) {
1840
1840
  return false;
1841
1841
  }
1842
1842
  const existing_createdDate = existing.createdDate;
@@ -1846,31 +1846,31 @@ function equals$x(existing, incoming) {
1846
1846
  }
1847
1847
  return true;
1848
1848
  }
1849
- const ingest$w = function ManagedContentV2JobDetailRepresentationIngest(input, path, luvio, store, timestamp) {
1849
+ const ingest$v = function ManagedContentV2JobDetailRepresentationIngest(input, path, luvio, store, timestamp) {
1850
1850
  if (process.env.NODE_ENV !== 'production') {
1851
- const validateError = validate$16(input);
1851
+ const validateError = validate$13(input);
1852
1852
  if (validateError !== null) {
1853
1853
  throw validateError;
1854
1854
  }
1855
1855
  }
1856
- const key = keyBuilderFromType$g(luvio, input);
1857
- const ttlToUse = TTL$v;
1858
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$w, "CMSAuthoring", VERSION$x, RepresentationType$w, equals$x);
1856
+ const key = keyBuilderFromType$f(luvio, input);
1857
+ const ttlToUse = TTL$u;
1858
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$v, "CMSAuthoring", VERSION$w, RepresentationType$v, equals$w);
1859
1859
  return createLink(key);
1860
1860
  };
1861
- function getTypeCacheKeys$w(rootKeySet, luvio, input, fullPathFactory) {
1861
+ function getTypeCacheKeys$v(rootKeySet, luvio, input, fullPathFactory) {
1862
1862
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
1863
- const rootKey = keyBuilderFromType$g(luvio, input);
1863
+ const rootKey = keyBuilderFromType$f(luvio, input);
1864
1864
  rootKeySet.set(rootKey, {
1865
1865
  namespace: keyPrefix,
1866
- representationName: RepresentationType$w,
1866
+ representationName: RepresentationType$v,
1867
1867
  mergeable: false
1868
1868
  });
1869
1869
  }
1870
1870
 
1871
- const TTL$u = 100;
1872
- const VERSION$w = "75cfd71e168144693d36fa16f7d8f4d0";
1873
- function validate$15(obj, path = 'ManagedContentJobCollectionRepresentation') {
1871
+ const TTL$t = 100;
1872
+ const VERSION$v = "75cfd71e168144693d36fa16f7d8f4d0";
1873
+ function validate$12(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 + '")');
@@ -1947,14 +1947,14 @@ function validate$15(obj, path = 'ManagedContentJobCollectionRepresentation') {
1947
1947
  })();
1948
1948
  return v_error === undefined ? null : v_error;
1949
1949
  }
1950
- const RepresentationType$v = 'ManagedContentJobCollectionRepresentation';
1951
- function normalize$v(input, existing, path, luvio, store, timestamp) {
1950
+ const RepresentationType$u = 'ManagedContentJobCollectionRepresentation';
1951
+ function normalize$u(input, existing, path, luvio, store, timestamp) {
1952
1952
  const input_jobs = input.jobs;
1953
1953
  const input_jobs_id = path.fullPath + '__jobs';
1954
1954
  for (let i = 0; i < input_jobs.length; i++) {
1955
1955
  const input_jobs_item = input_jobs[i];
1956
1956
  let input_jobs_item_id = input_jobs_id + '__' + i;
1957
- input_jobs[i] = ingest$w(input_jobs_item, {
1957
+ input_jobs[i] = ingest$v(input_jobs_item, {
1958
1958
  fullPath: input_jobs_item_id,
1959
1959
  propertyName: i,
1960
1960
  parent: {
@@ -1967,10 +1967,10 @@ function normalize$v(input, existing, path, luvio, store, timestamp) {
1967
1967
  }
1968
1968
  return input;
1969
1969
  }
1970
- const select$1a = function ManagedContentJobCollectionRepresentationSelect() {
1970
+ const select$18 = function ManagedContentJobCollectionRepresentationSelect() {
1971
1971
  return {
1972
1972
  kind: 'Fragment',
1973
- version: VERSION$w,
1973
+ version: VERSION$v,
1974
1974
  private: [],
1975
1975
  selections: [
1976
1976
  {
@@ -1981,7 +1981,7 @@ const select$1a = function ManagedContentJobCollectionRepresentationSelect() {
1981
1981
  name: 'jobs',
1982
1982
  kind: 'Link',
1983
1983
  plural: true,
1984
- fragment: select$1b()
1984
+ fragment: select$19()
1985
1985
  },
1986
1986
  {
1987
1987
  name: 'nextPageUrl',
@@ -1994,7 +1994,7 @@ const select$1a = function ManagedContentJobCollectionRepresentationSelect() {
1994
1994
  ]
1995
1995
  };
1996
1996
  };
1997
- function equals$w(existing, incoming) {
1997
+ function equals$v(existing, incoming) {
1998
1998
  const existing_currentPageUrl = existing.currentPageUrl;
1999
1999
  const incoming_currentPageUrl = incoming.currentPageUrl;
2000
2000
  if (!(existing_currentPageUrl === incoming_currentPageUrl)) {
@@ -2022,48 +2022,48 @@ function equals$w(existing, incoming) {
2022
2022
  }
2023
2023
  return true;
2024
2024
  }
2025
- const ingest$v = function ManagedContentJobCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
2025
+ const ingest$u = function ManagedContentJobCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
2026
2026
  if (process.env.NODE_ENV !== 'production') {
2027
- const validateError = validate$15(input);
2027
+ const validateError = validate$12(input);
2028
2028
  if (validateError !== null) {
2029
2029
  throw validateError;
2030
2030
  }
2031
2031
  }
2032
2032
  const key = path.fullPath;
2033
- const ttlToUse = TTL$u;
2034
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$v, "CMSAuthoring", VERSION$w, RepresentationType$v, equals$w);
2033
+ const ttlToUse = TTL$t;
2034
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$u, "CMSAuthoring", VERSION$v, RepresentationType$u, equals$v);
2035
2035
  return createLink(key);
2036
2036
  };
2037
- function getTypeCacheKeys$v(rootKeySet, luvio, input, fullPathFactory) {
2037
+ function getTypeCacheKeys$u(rootKeySet, luvio, input, fullPathFactory) {
2038
2038
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
2039
2039
  const rootKey = fullPathFactory();
2040
2040
  rootKeySet.set(rootKey, {
2041
2041
  namespace: keyPrefix,
2042
- representationName: RepresentationType$v,
2042
+ representationName: RepresentationType$u,
2043
2043
  mergeable: false
2044
2044
  });
2045
2045
  const input_jobs_length = input.jobs.length;
2046
2046
  for (let i = 0; i < input_jobs_length; i++) {
2047
- getTypeCacheKeys$w(rootKeySet, luvio, input.jobs[i]);
2047
+ getTypeCacheKeys$v(rootKeySet, luvio, input.jobs[i]);
2048
2048
  }
2049
2049
  }
2050
2050
 
2051
- function select$19(luvio, params) {
2052
- return select$1a();
2051
+ function select$17(luvio, params) {
2052
+ return select$18();
2053
2053
  }
2054
- function keyBuilder$10(luvio, params) {
2054
+ function keyBuilder$$(luvio, params) {
2055
2055
  return keyPrefix + '::ManagedContentJobCollectionRepresentation:(' + 'jobType:' + params.queryParams.jobType + ',' + 'page:' + params.queryParams.page + ',' + 'pageSize:' + params.queryParams.pageSize + ',' + 'contentSpaceId:' + params.urlParams.contentSpaceId + ')';
2056
2056
  }
2057
- function getResponseCacheKeys$G(storeKeyMap, luvio, resourceParams, response) {
2058
- getTypeCacheKeys$v(storeKeyMap, luvio, response, () => keyBuilder$10(luvio, resourceParams));
2057
+ function getResponseCacheKeys$F(storeKeyMap, luvio, resourceParams, response) {
2058
+ getTypeCacheKeys$u(storeKeyMap, luvio, response, () => keyBuilder$$(luvio, resourceParams));
2059
2059
  }
2060
- function ingestSuccess$G(luvio, resourceParams, response, snapshotRefresh) {
2060
+ function ingestSuccess$F(luvio, resourceParams, response, snapshotRefresh) {
2061
2061
  const { body } = response;
2062
- const key = keyBuilder$10(luvio, resourceParams);
2063
- luvio.storeIngest(key, ingest$v, body);
2062
+ const key = keyBuilder$$(luvio, resourceParams);
2063
+ luvio.storeIngest(key, ingest$u, body);
2064
2064
  const snapshot = luvio.storeLookup({
2065
2065
  recordId: key,
2066
- node: select$19(),
2066
+ node: select$17(),
2067
2067
  variables: {},
2068
2068
  }, snapshotRefresh);
2069
2069
  if (process.env.NODE_ENV !== 'production') {
@@ -2075,18 +2075,18 @@ function ingestSuccess$G(luvio, resourceParams, response, snapshotRefresh) {
2075
2075
  return snapshot;
2076
2076
  }
2077
2077
  function ingestError$n(luvio, params, error, snapshotRefresh) {
2078
- const key = keyBuilder$10(luvio, params);
2078
+ const key = keyBuilder$$(luvio, params);
2079
2079
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
2080
2080
  const storeMetadataParams = {
2081
- ttl: TTL$u,
2081
+ ttl: TTL$t,
2082
2082
  namespace: keyPrefix,
2083
- version: VERSION$w,
2084
- representationName: RepresentationType$v
2083
+ version: VERSION$v,
2084
+ representationName: RepresentationType$u
2085
2085
  };
2086
2086
  luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
2087
2087
  return errorSnapshot;
2088
2088
  }
2089
- function createResourceRequest$G(config) {
2089
+ function createResourceRequest$F(config) {
2090
2090
  const headers = {};
2091
2091
  return {
2092
2092
  baseUri: '/services/data/v61.0',
@@ -2100,63 +2100,63 @@ function createResourceRequest$G(config) {
2100
2100
  };
2101
2101
  }
2102
2102
 
2103
- const adapterName$G = 'getAllCMSJobsForSpace';
2103
+ const adapterName$F = 'getAllCMSJobsForSpace';
2104
2104
  const getAllCMSJobsForSpace_ConfigPropertyMetadata = [
2105
2105
  generateParamConfigMetadata('contentSpaceId', true, 0 /* UrlParameter */, 0 /* String */),
2106
2106
  generateParamConfigMetadata('jobType', false, 1 /* QueryParameter */, 0 /* String */),
2107
2107
  generateParamConfigMetadata('page', false, 1 /* QueryParameter */, 3 /* Integer */),
2108
2108
  generateParamConfigMetadata('pageSize', false, 1 /* QueryParameter */, 3 /* Integer */),
2109
2109
  ];
2110
- const getAllCMSJobsForSpace_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$G, getAllCMSJobsForSpace_ConfigPropertyMetadata);
2111
- const createResourceParams$G = /*#__PURE__*/ createResourceParams$J(getAllCMSJobsForSpace_ConfigPropertyMetadata);
2112
- function keyBuilder$$(luvio, config) {
2113
- const resourceParams = createResourceParams$G(config);
2114
- return keyBuilder$10(luvio, resourceParams);
2110
+ const getAllCMSJobsForSpace_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$F, getAllCMSJobsForSpace_ConfigPropertyMetadata);
2111
+ const createResourceParams$F = /*#__PURE__*/ createResourceParams$I(getAllCMSJobsForSpace_ConfigPropertyMetadata);
2112
+ function keyBuilder$_(luvio, config) {
2113
+ const resourceParams = createResourceParams$F(config);
2114
+ return keyBuilder$$(luvio, resourceParams);
2115
2115
  }
2116
- function typeCheckConfig$G(untrustedConfig) {
2116
+ function typeCheckConfig$F(untrustedConfig) {
2117
2117
  const config = {};
2118
- typeCheckConfig$J(untrustedConfig, config, getAllCMSJobsForSpace_ConfigPropertyMetadata);
2118
+ typeCheckConfig$I(untrustedConfig, config, getAllCMSJobsForSpace_ConfigPropertyMetadata);
2119
2119
  return config;
2120
2120
  }
2121
- function validateAdapterConfig$G(untrustedConfig, configPropertyNames) {
2121
+ function validateAdapterConfig$F(untrustedConfig, configPropertyNames) {
2122
2122
  if (!untrustedIsObject(untrustedConfig)) {
2123
2123
  return null;
2124
2124
  }
2125
2125
  if (process.env.NODE_ENV !== 'production') {
2126
2126
  validateConfig(untrustedConfig, configPropertyNames);
2127
2127
  }
2128
- const config = typeCheckConfig$G(untrustedConfig);
2128
+ const config = typeCheckConfig$F(untrustedConfig);
2129
2129
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
2130
2130
  return null;
2131
2131
  }
2132
2132
  return config;
2133
2133
  }
2134
2134
  function adapterFragment$n(luvio, config) {
2135
- createResourceParams$G(config);
2136
- return select$19();
2135
+ createResourceParams$F(config);
2136
+ return select$17();
2137
2137
  }
2138
2138
  function onFetchResponseSuccess$q(luvio, config, resourceParams, response) {
2139
- const snapshot = ingestSuccess$G(luvio, resourceParams, response, {
2139
+ const snapshot = ingestSuccess$F(luvio, resourceParams, response, {
2140
2140
  config,
2141
- resolve: () => buildNetworkSnapshot$G(luvio, config, snapshotRefreshOptions)
2141
+ resolve: () => buildNetworkSnapshot$F(luvio, config, snapshotRefreshOptions)
2142
2142
  });
2143
2143
  return luvio.storeBroadcast().then(() => snapshot);
2144
2144
  }
2145
2145
  function onFetchResponseError$n(luvio, config, resourceParams, response) {
2146
2146
  const snapshot = ingestError$n(luvio, resourceParams, response, {
2147
2147
  config,
2148
- resolve: () => buildNetworkSnapshot$G(luvio, config, snapshotRefreshOptions)
2148
+ resolve: () => buildNetworkSnapshot$F(luvio, config, snapshotRefreshOptions)
2149
2149
  });
2150
2150
  return luvio.storeBroadcast().then(() => snapshot);
2151
2151
  }
2152
- function buildNetworkSnapshot$G(luvio, config, options) {
2153
- const resourceParams = createResourceParams$G(config);
2154
- const request = createResourceRequest$G(resourceParams);
2152
+ function buildNetworkSnapshot$F(luvio, config, options) {
2153
+ const resourceParams = createResourceParams$F(config);
2154
+ const request = createResourceRequest$F(resourceParams);
2155
2155
  return luvio.dispatchResourceRequest(request, options)
2156
2156
  .then((response) => {
2157
2157
  return luvio.handleSuccessResponse(() => onFetchResponseSuccess$q(luvio, config, resourceParams, response), () => {
2158
2158
  const cache = new StoreKeyMap();
2159
- getResponseCacheKeys$G(cache, luvio, resourceParams, response.body);
2159
+ getResponseCacheKeys$F(cache, luvio, resourceParams, response.body);
2160
2160
  return cache;
2161
2161
  });
2162
2162
  }, (response) => {
@@ -2164,23 +2164,23 @@ function buildNetworkSnapshot$G(luvio, config, options) {
2164
2164
  });
2165
2165
  }
2166
2166
  function buildNetworkSnapshotCachePolicy$n(context, coercedAdapterRequestContext) {
2167
- return buildNetworkSnapshotCachePolicy$p(context, coercedAdapterRequestContext, buildNetworkSnapshot$G, undefined, false);
2167
+ return buildNetworkSnapshotCachePolicy$p(context, coercedAdapterRequestContext, buildNetworkSnapshot$F, undefined, false);
2168
2168
  }
2169
2169
  function buildCachedSnapshotCachePolicy$n(context, storeLookup) {
2170
2170
  const { luvio, config } = context;
2171
2171
  const selector = {
2172
- recordId: keyBuilder$$(luvio, config),
2172
+ recordId: keyBuilder$_(luvio, config),
2173
2173
  node: adapterFragment$n(luvio, config),
2174
2174
  variables: {},
2175
2175
  };
2176
2176
  const cacheSnapshot = storeLookup(selector, {
2177
2177
  config,
2178
- resolve: () => buildNetworkSnapshot$G(luvio, config, snapshotRefreshOptions)
2178
+ resolve: () => buildNetworkSnapshot$F(luvio, config, snapshotRefreshOptions)
2179
2179
  });
2180
2180
  return cacheSnapshot;
2181
2181
  }
2182
2182
  const getAllCMSJobsForSpaceAdapterFactory = (luvio) => function CMSAuthoring__getAllCMSJobsForSpace(untrustedConfig, requestContext) {
2183
- const config = validateAdapterConfig$G(untrustedConfig, getAllCMSJobsForSpace_ConfigPropertyNames);
2183
+ const config = validateAdapterConfig$F(untrustedConfig, getAllCMSJobsForSpace_ConfigPropertyNames);
2184
2184
  // Invalid or incomplete config
2185
2185
  if (config === null) {
2186
2186
  return null;
@@ -2189,24 +2189,24 @@ const getAllCMSJobsForSpaceAdapterFactory = (luvio) => function CMSAuthoring__ge
2189
2189
  buildCachedSnapshotCachePolicy$n, buildNetworkSnapshotCachePolicy$n);
2190
2190
  };
2191
2191
 
2192
- function select$18(luvio, params) {
2193
- return select$1b();
2192
+ function select$16(luvio, params) {
2193
+ return select$19();
2194
2194
  }
2195
- function keyBuilder$_(luvio, params) {
2196
- return keyBuilder$11(luvio, {
2195
+ function keyBuilder$Z(luvio, params) {
2196
+ return keyBuilder$10(luvio, {
2197
2197
  id: params.urlParams.jobId
2198
2198
  });
2199
2199
  }
2200
- function getResponseCacheKeys$F(storeKeyMap, luvio, resourceParams, response) {
2201
- getTypeCacheKeys$w(storeKeyMap, luvio, response);
2200
+ function getResponseCacheKeys$E(storeKeyMap, luvio, resourceParams, response) {
2201
+ getTypeCacheKeys$v(storeKeyMap, luvio, response);
2202
2202
  }
2203
- function ingestSuccess$F(luvio, resourceParams, response, snapshotRefresh) {
2203
+ function ingestSuccess$E(luvio, resourceParams, response, snapshotRefresh) {
2204
2204
  const { body } = response;
2205
- const key = keyBuilder$_(luvio, resourceParams);
2206
- luvio.storeIngest(key, ingest$w, body);
2205
+ const key = keyBuilder$Z(luvio, resourceParams);
2206
+ luvio.storeIngest(key, ingest$v, body);
2207
2207
  const snapshot = luvio.storeLookup({
2208
2208
  recordId: key,
2209
- node: select$18(),
2209
+ node: select$16(),
2210
2210
  variables: {},
2211
2211
  }, snapshotRefresh);
2212
2212
  if (process.env.NODE_ENV !== 'production') {
@@ -2218,18 +2218,18 @@ function ingestSuccess$F(luvio, resourceParams, response, snapshotRefresh) {
2218
2218
  return snapshot;
2219
2219
  }
2220
2220
  function ingestError$m(luvio, params, error, snapshotRefresh) {
2221
- const key = keyBuilder$_(luvio, params);
2221
+ const key = keyBuilder$Z(luvio, params);
2222
2222
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
2223
2223
  const storeMetadataParams = {
2224
- ttl: TTL$v,
2224
+ ttl: TTL$u,
2225
2225
  namespace: keyPrefix,
2226
- version: VERSION$x,
2227
- representationName: RepresentationType$w
2226
+ version: VERSION$w,
2227
+ representationName: RepresentationType$v
2228
2228
  };
2229
2229
  luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
2230
2230
  return errorSnapshot;
2231
2231
  }
2232
- function createResourceRequest$F(config) {
2232
+ function createResourceRequest$E(config) {
2233
2233
  const headers = {};
2234
2234
  return {
2235
2235
  baseUri: '/services/data/v61.0',
@@ -2243,61 +2243,61 @@ function createResourceRequest$F(config) {
2243
2243
  };
2244
2244
  }
2245
2245
 
2246
- const adapterName$F = 'getCMSJobForSpace';
2246
+ const adapterName$E = 'getCMSJobForSpace';
2247
2247
  const getCMSJobForSpace_ConfigPropertyMetadata = [
2248
2248
  generateParamConfigMetadata('contentSpaceId', true, 0 /* UrlParameter */, 0 /* String */),
2249
2249
  generateParamConfigMetadata('jobId', true, 0 /* UrlParameter */, 0 /* String */),
2250
2250
  ];
2251
- const getCMSJobForSpace_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$F, getCMSJobForSpace_ConfigPropertyMetadata);
2252
- const createResourceParams$F = /*#__PURE__*/ createResourceParams$J(getCMSJobForSpace_ConfigPropertyMetadata);
2253
- function keyBuilder$Z(luvio, config) {
2254
- const resourceParams = createResourceParams$F(config);
2255
- return keyBuilder$_(luvio, resourceParams);
2251
+ const getCMSJobForSpace_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$E, getCMSJobForSpace_ConfigPropertyMetadata);
2252
+ const createResourceParams$E = /*#__PURE__*/ createResourceParams$I(getCMSJobForSpace_ConfigPropertyMetadata);
2253
+ function keyBuilder$Y(luvio, config) {
2254
+ const resourceParams = createResourceParams$E(config);
2255
+ return keyBuilder$Z(luvio, resourceParams);
2256
2256
  }
2257
- function typeCheckConfig$F(untrustedConfig) {
2257
+ function typeCheckConfig$E(untrustedConfig) {
2258
2258
  const config = {};
2259
- typeCheckConfig$J(untrustedConfig, config, getCMSJobForSpace_ConfigPropertyMetadata);
2259
+ typeCheckConfig$I(untrustedConfig, config, getCMSJobForSpace_ConfigPropertyMetadata);
2260
2260
  return config;
2261
2261
  }
2262
- function validateAdapterConfig$F(untrustedConfig, configPropertyNames) {
2262
+ function validateAdapterConfig$E(untrustedConfig, configPropertyNames) {
2263
2263
  if (!untrustedIsObject(untrustedConfig)) {
2264
2264
  return null;
2265
2265
  }
2266
2266
  if (process.env.NODE_ENV !== 'production') {
2267
2267
  validateConfig(untrustedConfig, configPropertyNames);
2268
2268
  }
2269
- const config = typeCheckConfig$F(untrustedConfig);
2269
+ const config = typeCheckConfig$E(untrustedConfig);
2270
2270
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
2271
2271
  return null;
2272
2272
  }
2273
2273
  return config;
2274
2274
  }
2275
2275
  function adapterFragment$m(luvio, config) {
2276
- createResourceParams$F(config);
2277
- return select$18();
2276
+ createResourceParams$E(config);
2277
+ return select$16();
2278
2278
  }
2279
2279
  function onFetchResponseSuccess$p(luvio, config, resourceParams, response) {
2280
- const snapshot = ingestSuccess$F(luvio, resourceParams, response, {
2280
+ const snapshot = ingestSuccess$E(luvio, resourceParams, response, {
2281
2281
  config,
2282
- resolve: () => buildNetworkSnapshot$F(luvio, config, snapshotRefreshOptions)
2282
+ resolve: () => buildNetworkSnapshot$E(luvio, config, snapshotRefreshOptions)
2283
2283
  });
2284
2284
  return luvio.storeBroadcast().then(() => snapshot);
2285
2285
  }
2286
2286
  function onFetchResponseError$m(luvio, config, resourceParams, response) {
2287
2287
  const snapshot = ingestError$m(luvio, resourceParams, response, {
2288
2288
  config,
2289
- resolve: () => buildNetworkSnapshot$F(luvio, config, snapshotRefreshOptions)
2289
+ resolve: () => buildNetworkSnapshot$E(luvio, config, snapshotRefreshOptions)
2290
2290
  });
2291
2291
  return luvio.storeBroadcast().then(() => snapshot);
2292
2292
  }
2293
- function buildNetworkSnapshot$F(luvio, config, options) {
2294
- const resourceParams = createResourceParams$F(config);
2295
- const request = createResourceRequest$F(resourceParams);
2293
+ function buildNetworkSnapshot$E(luvio, config, options) {
2294
+ const resourceParams = createResourceParams$E(config);
2295
+ const request = createResourceRequest$E(resourceParams);
2296
2296
  return luvio.dispatchResourceRequest(request, options)
2297
2297
  .then((response) => {
2298
2298
  return luvio.handleSuccessResponse(() => onFetchResponseSuccess$p(luvio, config, resourceParams, response), () => {
2299
2299
  const cache = new StoreKeyMap();
2300
- getResponseCacheKeys$F(cache, luvio, resourceParams, response.body);
2300
+ getResponseCacheKeys$E(cache, luvio, resourceParams, response.body);
2301
2301
  return cache;
2302
2302
  });
2303
2303
  }, (response) => {
@@ -2305,23 +2305,23 @@ function buildNetworkSnapshot$F(luvio, config, options) {
2305
2305
  });
2306
2306
  }
2307
2307
  function buildNetworkSnapshotCachePolicy$m(context, coercedAdapterRequestContext) {
2308
- return buildNetworkSnapshotCachePolicy$p(context, coercedAdapterRequestContext, buildNetworkSnapshot$F, undefined, false);
2308
+ return buildNetworkSnapshotCachePolicy$p(context, coercedAdapterRequestContext, buildNetworkSnapshot$E, undefined, false);
2309
2309
  }
2310
2310
  function buildCachedSnapshotCachePolicy$m(context, storeLookup) {
2311
2311
  const { luvio, config } = context;
2312
2312
  const selector = {
2313
- recordId: keyBuilder$Z(luvio, config),
2313
+ recordId: keyBuilder$Y(luvio, config),
2314
2314
  node: adapterFragment$m(luvio, config),
2315
2315
  variables: {},
2316
2316
  };
2317
2317
  const cacheSnapshot = storeLookup(selector, {
2318
2318
  config,
2319
- resolve: () => buildNetworkSnapshot$F(luvio, config, snapshotRefreshOptions)
2319
+ resolve: () => buildNetworkSnapshot$E(luvio, config, snapshotRefreshOptions)
2320
2320
  });
2321
2321
  return cacheSnapshot;
2322
2322
  }
2323
2323
  const getCMSJobForSpaceAdapterFactory = (luvio) => function CMSAuthoring__getCMSJobForSpace(untrustedConfig, requestContext) {
2324
- const config = validateAdapterConfig$F(untrustedConfig, getCMSJobForSpace_ConfigPropertyNames);
2324
+ const config = validateAdapterConfig$E(untrustedConfig, getCMSJobForSpace_ConfigPropertyNames);
2325
2325
  // Invalid or incomplete config
2326
2326
  if (config === null) {
2327
2327
  return null;
@@ -2330,7 +2330,7 @@ const getCMSJobForSpaceAdapterFactory = (luvio) => function CMSAuthoring__getCMS
2330
2330
  buildCachedSnapshotCachePolicy$m, buildNetworkSnapshotCachePolicy$m);
2331
2331
  };
2332
2332
 
2333
- function validate$14(obj, path = 'ManagedContentSpaceFolderItemV1Representation') {
2333
+ function validate$11(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 + '")');
@@ -2418,9 +2418,9 @@ function validate$14(obj, path = 'ManagedContentSpaceFolderItemV1Representation'
2418
2418
  return v_error === undefined ? null : v_error;
2419
2419
  }
2420
2420
 
2421
- const TTL$t = 100;
2422
- const VERSION$v = "df1370994ae2e57cdebc5f5125930e2d";
2423
- function validate$13(obj, path = 'ManagedContentSpaceFolderItemV1CollectionRepresentation') {
2421
+ const TTL$s = 100;
2422
+ const VERSION$u = "df1370994ae2e57cdebc5f5125930e2d";
2423
+ function validate$10(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$13(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$14(obj_folderItems_item, path_folderItems_item);
2441
+ const referencepath_folderItems_itemValidationError = validate$11(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');
@@ -2474,62 +2474,62 @@ function validate$13(obj, path = 'ManagedContentSpaceFolderItemV1CollectionRepre
2474
2474
  })();
2475
2475
  return v_error === undefined ? null : v_error;
2476
2476
  }
2477
- const RepresentationType$u = 'ManagedContentSpaceFolderItemV1CollectionRepresentation';
2478
- function normalize$u(input, existing, path, luvio, store, timestamp) {
2477
+ const RepresentationType$t = 'ManagedContentSpaceFolderItemV1CollectionRepresentation';
2478
+ function normalize$t(input, existing, path, luvio, store, timestamp) {
2479
2479
  return input;
2480
2480
  }
2481
- const select$17 = function ManagedContentSpaceFolderItemV1CollectionRepresentationSelect() {
2481
+ const select$15 = function ManagedContentSpaceFolderItemV1CollectionRepresentationSelect() {
2482
2482
  return {
2483
2483
  kind: 'Fragment',
2484
- version: VERSION$v,
2484
+ version: VERSION$u,
2485
2485
  private: [],
2486
2486
  opaque: true
2487
2487
  };
2488
2488
  };
2489
- function equals$v(existing, incoming) {
2489
+ function equals$u(existing, incoming) {
2490
2490
  if (JSONStringify(incoming) !== JSONStringify(existing)) {
2491
2491
  return false;
2492
2492
  }
2493
2493
  return true;
2494
2494
  }
2495
- const ingest$u = function ManagedContentSpaceFolderItemV1CollectionRepresentationIngest(input, path, luvio, store, timestamp) {
2495
+ const ingest$t = function ManagedContentSpaceFolderItemV1CollectionRepresentationIngest(input, path, luvio, store, timestamp) {
2496
2496
  if (process.env.NODE_ENV !== 'production') {
2497
- const validateError = validate$13(input);
2497
+ const validateError = validate$10(input);
2498
2498
  if (validateError !== null) {
2499
2499
  throw validateError;
2500
2500
  }
2501
2501
  }
2502
2502
  const key = path.fullPath;
2503
- const ttlToUse = TTL$t;
2504
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$u, "CMSAuthoring", VERSION$v, RepresentationType$u, equals$v);
2503
+ const ttlToUse = TTL$s;
2504
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$t, "CMSAuthoring", VERSION$u, RepresentationType$t, equals$u);
2505
2505
  return createLink(key);
2506
2506
  };
2507
- function getTypeCacheKeys$u(rootKeySet, luvio, input, fullPathFactory) {
2507
+ function getTypeCacheKeys$t(rootKeySet, luvio, input, fullPathFactory) {
2508
2508
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
2509
2509
  const rootKey = fullPathFactory();
2510
2510
  rootKeySet.set(rootKey, {
2511
2511
  namespace: keyPrefix,
2512
- representationName: RepresentationType$u,
2512
+ representationName: RepresentationType$t,
2513
2513
  mergeable: false
2514
2514
  });
2515
2515
  }
2516
2516
 
2517
- function select$16(luvio, params) {
2518
- return select$17();
2517
+ function select$14(luvio, params) {
2518
+ return select$15();
2519
2519
  }
2520
- function keyBuilder$Y(luvio, params) {
2520
+ function keyBuilder$X(luvio, params) {
2521
2521
  return keyPrefix + '::ManagedContentSpaceFolderItemV1CollectionRepresentation:(' + 'contentTypeFilter:' + params.queryParams.contentTypeFilter + ',' + 'contentTypes:' + params.queryParams.contentTypes + ',' + 'filter:' + params.queryParams.filter + ',' + 'managedContentType:' + params.queryParams.managedContentType + ',' + 'page:' + params.queryParams.page + ',' + 'pageSize:' + params.queryParams.pageSize + ',' + 'queryTerm:' + params.queryParams.queryTerm + ',' + 'showPublishedOnly:' + params.queryParams.showPublishedOnly + ',' + 'sortBy:' + params.queryParams.sortBy + ',' + 'sortOrder:' + params.queryParams.sortOrder + ',' + 'folderId:' + params.urlParams.folderId + ')';
2522
2522
  }
2523
- function getResponseCacheKeys$E(storeKeyMap, luvio, resourceParams, response) {
2524
- getTypeCacheKeys$u(storeKeyMap, luvio, response, () => keyBuilder$Y(luvio, resourceParams));
2523
+ function getResponseCacheKeys$D(storeKeyMap, luvio, resourceParams, response) {
2524
+ getTypeCacheKeys$t(storeKeyMap, luvio, response, () => keyBuilder$X(luvio, resourceParams));
2525
2525
  }
2526
- function ingestSuccess$E(luvio, resourceParams, response, snapshotRefresh) {
2526
+ function ingestSuccess$D(luvio, resourceParams, response, snapshotRefresh) {
2527
2527
  const { body } = response;
2528
- const key = keyBuilder$Y(luvio, resourceParams);
2529
- luvio.storeIngest(key, ingest$u, body);
2528
+ const key = keyBuilder$X(luvio, resourceParams);
2529
+ luvio.storeIngest(key, ingest$t, body);
2530
2530
  const snapshot = luvio.storeLookup({
2531
2531
  recordId: key,
2532
- node: select$16(),
2532
+ node: select$14(),
2533
2533
  variables: {},
2534
2534
  }, snapshotRefresh);
2535
2535
  if (process.env.NODE_ENV !== 'production') {
@@ -2541,18 +2541,18 @@ function ingestSuccess$E(luvio, resourceParams, response, snapshotRefresh) {
2541
2541
  return snapshot;
2542
2542
  }
2543
2543
  function ingestError$l(luvio, params, error, snapshotRefresh) {
2544
- const key = keyBuilder$Y(luvio, params);
2544
+ const key = keyBuilder$X(luvio, params);
2545
2545
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
2546
2546
  const storeMetadataParams = {
2547
- ttl: TTL$t,
2547
+ ttl: TTL$s,
2548
2548
  namespace: keyPrefix,
2549
- version: VERSION$v,
2550
- representationName: RepresentationType$u
2549
+ version: VERSION$u,
2550
+ representationName: RepresentationType$t
2551
2551
  };
2552
2552
  luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
2553
2553
  return errorSnapshot;
2554
2554
  }
2555
- function createResourceRequest$E(config) {
2555
+ function createResourceRequest$D(config) {
2556
2556
  const headers = {};
2557
2557
  return {
2558
2558
  baseUri: '/services/data/v61.0',
@@ -2566,7 +2566,7 @@ function createResourceRequest$E(config) {
2566
2566
  };
2567
2567
  }
2568
2568
 
2569
- const adapterName$E = 'getManagedContentSpaceFolderItemsV1';
2569
+ const adapterName$D = 'getManagedContentSpaceFolderItemsV1';
2570
2570
  const getManagedContentSpaceFolderItemsV1_ConfigPropertyMetadata = [
2571
2571
  generateParamConfigMetadata('folderId', true, 0 /* UrlParameter */, 0 /* String */),
2572
2572
  generateParamConfigMetadata('contentTypeFilter', false, 1 /* QueryParameter */, 0 /* String */),
@@ -2580,56 +2580,56 @@ const getManagedContentSpaceFolderItemsV1_ConfigPropertyMetadata = [
2580
2580
  generateParamConfigMetadata('sortBy', false, 1 /* QueryParameter */, 0 /* String */),
2581
2581
  generateParamConfigMetadata('sortOrder', false, 1 /* QueryParameter */, 0 /* String */),
2582
2582
  ];
2583
- const getManagedContentSpaceFolderItemsV1_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$E, getManagedContentSpaceFolderItemsV1_ConfigPropertyMetadata);
2584
- const createResourceParams$E = /*#__PURE__*/ createResourceParams$J(getManagedContentSpaceFolderItemsV1_ConfigPropertyMetadata);
2585
- function keyBuilder$X(luvio, config) {
2586
- const resourceParams = createResourceParams$E(config);
2587
- return keyBuilder$Y(luvio, resourceParams);
2583
+ const getManagedContentSpaceFolderItemsV1_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$D, getManagedContentSpaceFolderItemsV1_ConfigPropertyMetadata);
2584
+ const createResourceParams$D = /*#__PURE__*/ createResourceParams$I(getManagedContentSpaceFolderItemsV1_ConfigPropertyMetadata);
2585
+ function keyBuilder$W(luvio, config) {
2586
+ const resourceParams = createResourceParams$D(config);
2587
+ return keyBuilder$X(luvio, resourceParams);
2588
2588
  }
2589
- function typeCheckConfig$E(untrustedConfig) {
2589
+ function typeCheckConfig$D(untrustedConfig) {
2590
2590
  const config = {};
2591
- typeCheckConfig$J(untrustedConfig, config, getManagedContentSpaceFolderItemsV1_ConfigPropertyMetadata);
2591
+ typeCheckConfig$I(untrustedConfig, config, getManagedContentSpaceFolderItemsV1_ConfigPropertyMetadata);
2592
2592
  return config;
2593
2593
  }
2594
- function validateAdapterConfig$E(untrustedConfig, configPropertyNames) {
2594
+ function validateAdapterConfig$D(untrustedConfig, configPropertyNames) {
2595
2595
  if (!untrustedIsObject(untrustedConfig)) {
2596
2596
  return null;
2597
2597
  }
2598
2598
  if (process.env.NODE_ENV !== 'production') {
2599
2599
  validateConfig(untrustedConfig, configPropertyNames);
2600
2600
  }
2601
- const config = typeCheckConfig$E(untrustedConfig);
2601
+ const config = typeCheckConfig$D(untrustedConfig);
2602
2602
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
2603
2603
  return null;
2604
2604
  }
2605
2605
  return config;
2606
2606
  }
2607
2607
  function adapterFragment$l(luvio, config) {
2608
- createResourceParams$E(config);
2609
- return select$16();
2608
+ createResourceParams$D(config);
2609
+ return select$14();
2610
2610
  }
2611
2611
  function onFetchResponseSuccess$o(luvio, config, resourceParams, response) {
2612
- const snapshot = ingestSuccess$E(luvio, resourceParams, response, {
2612
+ const snapshot = ingestSuccess$D(luvio, resourceParams, response, {
2613
2613
  config,
2614
- resolve: () => buildNetworkSnapshot$E(luvio, config, snapshotRefreshOptions)
2614
+ resolve: () => buildNetworkSnapshot$D(luvio, config, snapshotRefreshOptions)
2615
2615
  });
2616
2616
  return luvio.storeBroadcast().then(() => snapshot);
2617
2617
  }
2618
2618
  function onFetchResponseError$l(luvio, config, resourceParams, response) {
2619
2619
  const snapshot = ingestError$l(luvio, resourceParams, response, {
2620
2620
  config,
2621
- resolve: () => buildNetworkSnapshot$E(luvio, config, snapshotRefreshOptions)
2621
+ resolve: () => buildNetworkSnapshot$D(luvio, config, snapshotRefreshOptions)
2622
2622
  });
2623
2623
  return luvio.storeBroadcast().then(() => snapshot);
2624
2624
  }
2625
- function buildNetworkSnapshot$E(luvio, config, options) {
2626
- const resourceParams = createResourceParams$E(config);
2627
- const request = createResourceRequest$E(resourceParams);
2625
+ function buildNetworkSnapshot$D(luvio, config, options) {
2626
+ const resourceParams = createResourceParams$D(config);
2627
+ const request = createResourceRequest$D(resourceParams);
2628
2628
  return luvio.dispatchResourceRequest(request, options)
2629
2629
  .then((response) => {
2630
2630
  return luvio.handleSuccessResponse(() => onFetchResponseSuccess$o(luvio, config, resourceParams, response), () => {
2631
2631
  const cache = new StoreKeyMap();
2632
- getResponseCacheKeys$E(cache, luvio, resourceParams, response.body);
2632
+ getResponseCacheKeys$D(cache, luvio, resourceParams, response.body);
2633
2633
  return cache;
2634
2634
  });
2635
2635
  }, (response) => {
@@ -2637,23 +2637,23 @@ function buildNetworkSnapshot$E(luvio, config, options) {
2637
2637
  });
2638
2638
  }
2639
2639
  function buildNetworkSnapshotCachePolicy$l(context, coercedAdapterRequestContext) {
2640
- return buildNetworkSnapshotCachePolicy$p(context, coercedAdapterRequestContext, buildNetworkSnapshot$E, undefined, false);
2640
+ return buildNetworkSnapshotCachePolicy$p(context, coercedAdapterRequestContext, buildNetworkSnapshot$D, undefined, false);
2641
2641
  }
2642
2642
  function buildCachedSnapshotCachePolicy$l(context, storeLookup) {
2643
2643
  const { luvio, config } = context;
2644
2644
  const selector = {
2645
- recordId: keyBuilder$X(luvio, config),
2645
+ recordId: keyBuilder$W(luvio, config),
2646
2646
  node: adapterFragment$l(luvio, config),
2647
2647
  variables: {},
2648
2648
  };
2649
2649
  const cacheSnapshot = storeLookup(selector, {
2650
2650
  config,
2651
- resolve: () => buildNetworkSnapshot$E(luvio, config, snapshotRefreshOptions)
2651
+ resolve: () => buildNetworkSnapshot$D(luvio, config, snapshotRefreshOptions)
2652
2652
  });
2653
2653
  return cacheSnapshot;
2654
2654
  }
2655
2655
  const getManagedContentSpaceFolderItemsV1AdapterFactory = (luvio) => function CMSAuthoring__getManagedContentSpaceFolderItemsV1(untrustedConfig, requestContext) {
2656
- const config = validateAdapterConfig$E(untrustedConfig, getManagedContentSpaceFolderItemsV1_ConfigPropertyNames);
2656
+ const config = validateAdapterConfig$D(untrustedConfig, getManagedContentSpaceFolderItemsV1_ConfigPropertyNames);
2657
2657
  // Invalid or incomplete config
2658
2658
  if (config === null) {
2659
2659
  return null;
@@ -2662,7 +2662,7 @@ const getManagedContentSpaceFolderItemsV1AdapterFactory = (luvio) => function CM
2662
2662
  buildCachedSnapshotCachePolicy$l, buildNetworkSnapshotCachePolicy$l);
2663
2663
  };
2664
2664
 
2665
- function validate$12(obj, path = 'ManagedContentCollectionItemTypeSummaryRepresentation') {
2665
+ function validate$$(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$12(obj, path = 'ManagedContentCollectionItemTypeSummaryReprese
2681
2681
  return v_error === undefined ? null : v_error;
2682
2682
  }
2683
2683
 
2684
- function validate$11(obj, path = 'ManagedContentCollectionItemRepresentation') {
2684
+ function validate$_(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$11(obj, path = 'ManagedContentCollectionItemRepresentation') {
2702
2702
  }
2703
2703
  const obj_contentType = obj.contentType;
2704
2704
  const path_contentType = path + '.contentType';
2705
- const referencepath_contentTypeValidationError = validate$12(obj_contentType, path_contentType);
2705
+ const referencepath_contentTypeValidationError = validate$$(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');
@@ -2722,9 +2722,9 @@ function validate$11(obj, path = 'ManagedContentCollectionItemRepresentation') {
2722
2722
  return v_error === undefined ? null : v_error;
2723
2723
  }
2724
2724
 
2725
- const TTL$s = 100;
2726
- const VERSION$u = "eeea454f1268ece5c3e24c986688b876";
2727
- function validate$10(obj, path = 'ManagedContentCollectionDetailRepresentation') {
2725
+ const TTL$r = 100;
2726
+ const VERSION$t = "eeea454f1268ece5c3e24c986688b876";
2727
+ function validate$Z(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$10(obj, path = 'ManagedContentCollectionDetailRepresentation')
2736
2736
  }
2737
2737
  const obj_collectionType = obj.collectionType;
2738
2738
  const path_collectionType = path + '.collectionType';
2739
- const referencepath_collectionTypeValidationError = validate$1f(obj_collectionType, path_collectionType);
2739
+ const referencepath_collectionTypeValidationError = validate$1c(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');
@@ -2760,7 +2760,7 @@ function validate$10(obj, path = 'ManagedContentCollectionDetailRepresentation')
2760
2760
  for (let i = 0; i < obj_items.length; i++) {
2761
2761
  const obj_items_item = obj_items[i];
2762
2762
  const path_items_item = path_items + '[' + i + ']';
2763
- const referencepath_items_itemValidationError = validate$11(obj_items_item, path_items_item);
2763
+ const referencepath_items_itemValidationError = validate$_(obj_items_item, path_items_item);
2764
2764
  if (referencepath_items_itemValidationError !== null) {
2765
2765
  let message = 'Object doesn\'t match ManagedContentCollectionItemRepresentation (at "' + path_items_item + '")\n';
2766
2766
  message += referencepath_items_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -2795,77 +2795,77 @@ function validate$10(obj, path = 'ManagedContentCollectionDetailRepresentation')
2795
2795
  })();
2796
2796
  return v_error === undefined ? null : v_error;
2797
2797
  }
2798
- const RepresentationType$t = 'ManagedContentCollectionDetailRepresentation';
2799
- function keyBuilder$W(luvio, config) {
2800
- return keyPrefix + '::' + RepresentationType$t + ':' + config.collection_key + ':' + config.language + ':' + config.version;
2798
+ const RepresentationType$s = 'ManagedContentCollectionDetailRepresentation';
2799
+ function keyBuilder$V(luvio, config) {
2800
+ return keyPrefix + '::' + RepresentationType$s + ':' + config.collection_key + ':' + config.language + ':' + config.version;
2801
2801
  }
2802
- function keyBuilderFromType$f(luvio, object) {
2802
+ function keyBuilderFromType$e(luvio, object) {
2803
2803
  const keyParams = {
2804
2804
  collection_key: object.collectionKey,
2805
2805
  language: object.language,
2806
2806
  version: object.versionNumber
2807
2807
  };
2808
- return keyBuilder$W(luvio, keyParams);
2808
+ return keyBuilder$V(luvio, keyParams);
2809
2809
  }
2810
- function normalize$t(input, existing, path, luvio, store, timestamp) {
2810
+ function normalize$s(input, existing, path, luvio, store, timestamp) {
2811
2811
  return input;
2812
2812
  }
2813
- const select$15 = function ManagedContentCollectionDetailRepresentationSelect() {
2813
+ const select$13 = function ManagedContentCollectionDetailRepresentationSelect() {
2814
2814
  return {
2815
2815
  kind: 'Fragment',
2816
- version: VERSION$u,
2816
+ version: VERSION$t,
2817
2817
  private: [],
2818
2818
  opaque: true
2819
2819
  };
2820
2820
  };
2821
- function equals$u(existing, incoming) {
2821
+ function equals$t(existing, incoming) {
2822
2822
  if (JSONStringify(incoming) !== JSONStringify(existing)) {
2823
2823
  return false;
2824
2824
  }
2825
2825
  return true;
2826
2826
  }
2827
- const ingest$t = function ManagedContentCollectionDetailRepresentationIngest(input, path, luvio, store, timestamp) {
2827
+ const ingest$s = function ManagedContentCollectionDetailRepresentationIngest(input, path, luvio, store, timestamp) {
2828
2828
  if (process.env.NODE_ENV !== 'production') {
2829
- const validateError = validate$10(input);
2829
+ const validateError = validate$Z(input);
2830
2830
  if (validateError !== null) {
2831
2831
  throw validateError;
2832
2832
  }
2833
2833
  }
2834
- const key = keyBuilderFromType$f(luvio, input);
2835
- const ttlToUse = TTL$s;
2836
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$t, "CMSAuthoring", VERSION$u, RepresentationType$t, equals$u);
2834
+ const key = keyBuilderFromType$e(luvio, input);
2835
+ const ttlToUse = TTL$r;
2836
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$s, "CMSAuthoring", VERSION$t, RepresentationType$s, equals$t);
2837
2837
  return createLink(key);
2838
2838
  };
2839
- function getTypeCacheKeys$t(rootKeySet, luvio, input, fullPathFactory) {
2839
+ function getTypeCacheKeys$s(rootKeySet, luvio, input, fullPathFactory) {
2840
2840
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
2841
- const rootKey = keyBuilderFromType$f(luvio, input);
2841
+ const rootKey = keyBuilderFromType$e(luvio, input);
2842
2842
  rootKeySet.set(rootKey, {
2843
2843
  namespace: keyPrefix,
2844
- representationName: RepresentationType$t,
2844
+ representationName: RepresentationType$s,
2845
2845
  mergeable: false
2846
2846
  });
2847
2847
  }
2848
2848
 
2849
- function select$14(luvio, params) {
2850
- return select$15();
2849
+ function select$12(luvio, params) {
2850
+ return select$13();
2851
2851
  }
2852
- function keyBuilder$V(luvio, params) {
2853
- return keyBuilder$W(luvio, {
2852
+ function keyBuilder$U(luvio, params) {
2853
+ return keyBuilder$V(luvio, {
2854
2854
  collection_key: params.urlParams.collectionKeyOrId,
2855
2855
  language: params.queryParams.language || '',
2856
2856
  version: params.queryParams.version || ''
2857
2857
  });
2858
2858
  }
2859
- function getResponseCacheKeys$D(storeKeyMap, luvio, resourceParams, response) {
2860
- getTypeCacheKeys$t(storeKeyMap, luvio, response);
2859
+ function getResponseCacheKeys$C(storeKeyMap, luvio, resourceParams, response) {
2860
+ getTypeCacheKeys$s(storeKeyMap, luvio, response);
2861
2861
  }
2862
- function ingestSuccess$D(luvio, resourceParams, response, snapshotRefresh) {
2862
+ function ingestSuccess$C(luvio, resourceParams, response, snapshotRefresh) {
2863
2863
  const { body } = response;
2864
- const key = keyBuilder$V(luvio, resourceParams);
2865
- luvio.storeIngest(key, ingest$t, body);
2864
+ const key = keyBuilder$U(luvio, resourceParams);
2865
+ luvio.storeIngest(key, ingest$s, body);
2866
2866
  const snapshot = luvio.storeLookup({
2867
2867
  recordId: key,
2868
- node: select$14(),
2868
+ node: select$12(),
2869
2869
  variables: {},
2870
2870
  }, snapshotRefresh);
2871
2871
  if (process.env.NODE_ENV !== 'production') {
@@ -2877,18 +2877,18 @@ function ingestSuccess$D(luvio, resourceParams, response, snapshotRefresh) {
2877
2877
  return snapshot;
2878
2878
  }
2879
2879
  function ingestError$k(luvio, params, error, snapshotRefresh) {
2880
- const key = keyBuilder$V(luvio, params);
2880
+ const key = keyBuilder$U(luvio, params);
2881
2881
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
2882
2882
  const storeMetadataParams = {
2883
- ttl: TTL$s,
2883
+ ttl: TTL$r,
2884
2884
  namespace: keyPrefix,
2885
- version: VERSION$u,
2886
- representationName: RepresentationType$t
2885
+ version: VERSION$t,
2886
+ representationName: RepresentationType$s
2887
2887
  };
2888
2888
  luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
2889
2889
  return errorSnapshot;
2890
2890
  }
2891
- function createResourceRequest$D(config) {
2891
+ function createResourceRequest$C(config) {
2892
2892
  const headers = {};
2893
2893
  return {
2894
2894
  baseUri: '/services/data/v61.0',
@@ -2917,62 +2917,62 @@ function onFetchResponseSuccess$n(luvio, config, resourceParams, response) {
2917
2917
  return onFetchResponseSuccess$m(luvio, config, updatedResourceParams, response);
2918
2918
  }
2919
2919
 
2920
- const adapterName$D = 'getCollectionItems';
2920
+ const adapterName$C = 'getCollectionItems';
2921
2921
  const getCollectionItems_ConfigPropertyMetadata = [
2922
2922
  generateParamConfigMetadata('collectionKeyOrId', true, 0 /* UrlParameter */, 0 /* String */),
2923
2923
  generateParamConfigMetadata('language', false, 1 /* QueryParameter */, 0 /* String */),
2924
2924
  generateParamConfigMetadata('version', false, 1 /* QueryParameter */, 0 /* String */),
2925
2925
  ];
2926
- const getCollectionItems_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$D, getCollectionItems_ConfigPropertyMetadata);
2927
- const createResourceParams$D = /*#__PURE__*/ createResourceParams$J(getCollectionItems_ConfigPropertyMetadata);
2928
- function keyBuilder$U(luvio, config) {
2929
- const resourceParams = createResourceParams$D(config);
2930
- return keyBuilder$V(luvio, resourceParams);
2926
+ const getCollectionItems_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$C, getCollectionItems_ConfigPropertyMetadata);
2927
+ const createResourceParams$C = /*#__PURE__*/ createResourceParams$I(getCollectionItems_ConfigPropertyMetadata);
2928
+ function keyBuilder$T(luvio, config) {
2929
+ const resourceParams = createResourceParams$C(config);
2930
+ return keyBuilder$U(luvio, resourceParams);
2931
2931
  }
2932
- function typeCheckConfig$D(untrustedConfig) {
2932
+ function typeCheckConfig$C(untrustedConfig) {
2933
2933
  const config = {};
2934
- typeCheckConfig$J(untrustedConfig, config, getCollectionItems_ConfigPropertyMetadata);
2934
+ typeCheckConfig$I(untrustedConfig, config, getCollectionItems_ConfigPropertyMetadata);
2935
2935
  return config;
2936
2936
  }
2937
- function validateAdapterConfig$D(untrustedConfig, configPropertyNames) {
2937
+ function validateAdapterConfig$C(untrustedConfig, configPropertyNames) {
2938
2938
  if (!untrustedIsObject(untrustedConfig)) {
2939
2939
  return null;
2940
2940
  }
2941
2941
  if (process.env.NODE_ENV !== 'production') {
2942
2942
  validateConfig(untrustedConfig, configPropertyNames);
2943
2943
  }
2944
- const config = typeCheckConfig$D(untrustedConfig);
2944
+ const config = typeCheckConfig$C(untrustedConfig);
2945
2945
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
2946
2946
  return null;
2947
2947
  }
2948
2948
  return config;
2949
2949
  }
2950
2950
  function adapterFragment$k(luvio, config) {
2951
- createResourceParams$D(config);
2952
- return select$14();
2951
+ createResourceParams$C(config);
2952
+ return select$12();
2953
2953
  }
2954
2954
  function onFetchResponseSuccess$m(luvio, config, resourceParams, response) {
2955
- const snapshot = ingestSuccess$D(luvio, resourceParams, response, {
2955
+ const snapshot = ingestSuccess$C(luvio, resourceParams, response, {
2956
2956
  config,
2957
- resolve: () => buildNetworkSnapshot$D(luvio, config, snapshotRefreshOptions)
2957
+ resolve: () => buildNetworkSnapshot$C(luvio, config, snapshotRefreshOptions)
2958
2958
  });
2959
2959
  return luvio.storeBroadcast().then(() => snapshot);
2960
2960
  }
2961
2961
  function onFetchResponseError$k(luvio, config, resourceParams, response) {
2962
2962
  const snapshot = ingestError$k(luvio, resourceParams, response, {
2963
2963
  config,
2964
- resolve: () => buildNetworkSnapshot$D(luvio, config, snapshotRefreshOptions)
2964
+ resolve: () => buildNetworkSnapshot$C(luvio, config, snapshotRefreshOptions)
2965
2965
  });
2966
2966
  return luvio.storeBroadcast().then(() => snapshot);
2967
2967
  }
2968
- function buildNetworkSnapshot$D(luvio, config, options) {
2969
- const resourceParams = createResourceParams$D(config);
2970
- const request = createResourceRequest$D(resourceParams);
2968
+ function buildNetworkSnapshot$C(luvio, config, options) {
2969
+ const resourceParams = createResourceParams$C(config);
2970
+ const request = createResourceRequest$C(resourceParams);
2971
2971
  return luvio.dispatchResourceRequest(request, options)
2972
2972
  .then((response) => {
2973
2973
  return luvio.handleSuccessResponse(() => onFetchResponseSuccess$n(luvio, config, resourceParams, response), () => {
2974
2974
  const cache = new StoreKeyMap();
2975
- getResponseCacheKeys$D(cache, luvio, resourceParams, response.body);
2975
+ getResponseCacheKeys$C(cache, luvio, resourceParams, response.body);
2976
2976
  return cache;
2977
2977
  });
2978
2978
  }, (response) => {
@@ -2980,23 +2980,23 @@ function buildNetworkSnapshot$D(luvio, config, options) {
2980
2980
  });
2981
2981
  }
2982
2982
  function buildNetworkSnapshotCachePolicy$k(context, coercedAdapterRequestContext) {
2983
- return buildNetworkSnapshotCachePolicy$p(context, coercedAdapterRequestContext, buildNetworkSnapshot$D, undefined, false);
2983
+ return buildNetworkSnapshotCachePolicy$p(context, coercedAdapterRequestContext, buildNetworkSnapshot$C, undefined, false);
2984
2984
  }
2985
2985
  function buildCachedSnapshotCachePolicy$k(context, storeLookup) {
2986
2986
  const { luvio, config } = context;
2987
2987
  const selector = {
2988
- recordId: keyBuilder$U(luvio, config),
2988
+ recordId: keyBuilder$T(luvio, config),
2989
2989
  node: adapterFragment$k(luvio, config),
2990
2990
  variables: {},
2991
2991
  };
2992
2992
  const cacheSnapshot = storeLookup(selector, {
2993
2993
  config,
2994
- resolve: () => buildNetworkSnapshot$D(luvio, config, snapshotRefreshOptions)
2994
+ resolve: () => buildNetworkSnapshot$C(luvio, config, snapshotRefreshOptions)
2995
2995
  });
2996
2996
  return cacheSnapshot;
2997
2997
  }
2998
2998
  const getCollectionItemsAdapterFactory = (luvio) => function CMSAuthoring__getCollectionItems(untrustedConfig, requestContext) {
2999
- const config = validateAdapterConfig$D(untrustedConfig, getCollectionItems_ConfigPropertyNames);
2999
+ const config = validateAdapterConfig$C(untrustedConfig, getCollectionItems_ConfigPropertyNames);
3000
3000
  // Invalid or incomplete config
3001
3001
  if (config === null) {
3002
3002
  return null;
@@ -3005,7 +3005,7 @@ const getCollectionItemsAdapterFactory = (luvio) => function CMSAuthoring__getCo
3005
3005
  buildCachedSnapshotCachePolicy$k, buildNetworkSnapshotCachePolicy$k);
3006
3006
  };
3007
3007
 
3008
- function validate$$(obj, path = 'ManagedContentTranslationV2RequestInputRep') {
3008
+ function validate$Y(obj, path = 'ManagedContentTranslationV2RequestInputRep') {
3009
3009
  const v_error = (() => {
3010
3010
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
3011
3011
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -3075,9 +3075,9 @@ function validate$$(obj, path = 'ManagedContentTranslationV2RequestInputRep') {
3075
3075
  return v_error === undefined ? null : v_error;
3076
3076
  }
3077
3077
 
3078
- const TTL$r = 100;
3079
- const VERSION$t = "52e643b998d6763482c6d74542b38408";
3080
- function validate$_(obj, path = 'ManagedContentTranslationV2Representation') {
3078
+ const TTL$q = 100;
3079
+ const VERSION$s = "52e643b998d6763482c6d74542b38408";
3080
+ function validate$X(obj, path = 'ManagedContentTranslationV2Representation') {
3081
3081
  const v_error = (() => {
3082
3082
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
3083
3083
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -3234,68 +3234,68 @@ function validate$_(obj, path = 'ManagedContentTranslationV2Representation') {
3234
3234
  })();
3235
3235
  return v_error === undefined ? null : v_error;
3236
3236
  }
3237
- const RepresentationType$s = 'ManagedContentTranslationV2Representation';
3238
- function keyBuilder$T(luvio, config) {
3239
- return keyPrefix + '::' + RepresentationType$s + ':' + config.id;
3237
+ const RepresentationType$r = 'ManagedContentTranslationV2Representation';
3238
+ function keyBuilder$S(luvio, config) {
3239
+ return keyPrefix + '::' + RepresentationType$r + ':' + config.id;
3240
3240
  }
3241
- function keyBuilderFromType$e(luvio, object) {
3241
+ function keyBuilderFromType$d(luvio, object) {
3242
3242
  const keyParams = {
3243
3243
  id: object.id
3244
3244
  };
3245
- return keyBuilder$T(luvio, keyParams);
3245
+ return keyBuilder$S(luvio, keyParams);
3246
3246
  }
3247
- function normalize$s(input, existing, path, luvio, store, timestamp) {
3247
+ function normalize$r(input, existing, path, luvio, store, timestamp) {
3248
3248
  return input;
3249
3249
  }
3250
- const select$13 = function ManagedContentTranslationV2RepresentationSelect() {
3250
+ const select$11 = function ManagedContentTranslationV2RepresentationSelect() {
3251
3251
  return {
3252
3252
  kind: 'Fragment',
3253
- version: VERSION$t,
3253
+ version: VERSION$s,
3254
3254
  private: [],
3255
3255
  opaque: true
3256
3256
  };
3257
3257
  };
3258
- function equals$t(existing, incoming) {
3258
+ function equals$s(existing, incoming) {
3259
3259
  if (JSONStringify(incoming) !== JSONStringify(existing)) {
3260
3260
  return false;
3261
3261
  }
3262
3262
  return true;
3263
3263
  }
3264
- const ingest$s = function ManagedContentTranslationV2RepresentationIngest(input, path, luvio, store, timestamp) {
3264
+ const ingest$r = function ManagedContentTranslationV2RepresentationIngest(input, path, luvio, store, timestamp) {
3265
3265
  if (process.env.NODE_ENV !== 'production') {
3266
- const validateError = validate$_(input);
3266
+ const validateError = validate$X(input);
3267
3267
  if (validateError !== null) {
3268
3268
  throw validateError;
3269
3269
  }
3270
3270
  }
3271
- const key = keyBuilderFromType$e(luvio, input);
3272
- const ttlToUse = TTL$r;
3273
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$s, "CMSAuthoring", VERSION$t, RepresentationType$s, equals$t);
3271
+ const key = keyBuilderFromType$d(luvio, input);
3272
+ const ttlToUse = TTL$q;
3273
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$r, "CMSAuthoring", VERSION$s, RepresentationType$r, equals$s);
3274
3274
  return createLink(key);
3275
3275
  };
3276
- function getTypeCacheKeys$s(rootKeySet, luvio, input, fullPathFactory) {
3276
+ function getTypeCacheKeys$r(rootKeySet, luvio, input, fullPathFactory) {
3277
3277
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
3278
- const rootKey = keyBuilderFromType$e(luvio, input);
3278
+ const rootKey = keyBuilderFromType$d(luvio, input);
3279
3279
  rootKeySet.set(rootKey, {
3280
3280
  namespace: keyPrefix,
3281
- representationName: RepresentationType$s,
3281
+ representationName: RepresentationType$r,
3282
3282
  mergeable: false
3283
3283
  });
3284
3284
  }
3285
3285
 
3286
- function select$12(luvio, params) {
3287
- return select$13();
3286
+ function select$10(luvio, params) {
3287
+ return select$11();
3288
3288
  }
3289
- function getResponseCacheKeys$C(storeKeyMap, luvio, resourceParams, response) {
3290
- getTypeCacheKeys$s(storeKeyMap, luvio, response);
3289
+ function getResponseCacheKeys$B(storeKeyMap, luvio, resourceParams, response) {
3290
+ getTypeCacheKeys$r(storeKeyMap, luvio, response);
3291
3291
  }
3292
- function ingestSuccess$C(luvio, resourceParams, response) {
3292
+ function ingestSuccess$B(luvio, resourceParams, response) {
3293
3293
  const { body } = response;
3294
- const key = keyBuilderFromType$e(luvio, body);
3295
- luvio.storeIngest(key, ingest$s, body);
3294
+ const key = keyBuilderFromType$d(luvio, body);
3295
+ luvio.storeIngest(key, ingest$r, body);
3296
3296
  const snapshot = luvio.storeLookup({
3297
3297
  recordId: key,
3298
- node: select$12(),
3298
+ node: select$10(),
3299
3299
  variables: {},
3300
3300
  });
3301
3301
  if (process.env.NODE_ENV !== 'production') {
@@ -3306,7 +3306,7 @@ function ingestSuccess$C(luvio, resourceParams, response) {
3306
3306
  deepFreeze(snapshot.data);
3307
3307
  return snapshot;
3308
3308
  }
3309
- function createResourceRequest$C(config) {
3309
+ function createResourceRequest$B(config) {
3310
3310
  const headers = {};
3311
3311
  return {
3312
3312
  baseUri: '/services/data/v61.0',
@@ -3320,47 +3320,47 @@ function createResourceRequest$C(config) {
3320
3320
  };
3321
3321
  }
3322
3322
 
3323
- const adapterName$C = 'createTranslationV2Job';
3323
+ const adapterName$B = 'createTranslationV2Job';
3324
3324
  const createTranslationV2Job_ConfigPropertyMetadata = [
3325
3325
  generateParamConfigMetadata('contentSpaceId', true, 0 /* UrlParameter */, 0 /* String */),
3326
3326
  generateParamConfigMetadata('translationV2Request', true, 2 /* Body */, 4 /* Unsupported */),
3327
3327
  ];
3328
- const createTranslationV2Job_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$C, createTranslationV2Job_ConfigPropertyMetadata);
3329
- const createResourceParams$C = /*#__PURE__*/ createResourceParams$J(createTranslationV2Job_ConfigPropertyMetadata);
3330
- function typeCheckConfig$C(untrustedConfig) {
3328
+ const createTranslationV2Job_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$B, createTranslationV2Job_ConfigPropertyMetadata);
3329
+ const createResourceParams$B = /*#__PURE__*/ createResourceParams$I(createTranslationV2Job_ConfigPropertyMetadata);
3330
+ function typeCheckConfig$B(untrustedConfig) {
3331
3331
  const config = {};
3332
- typeCheckConfig$J(untrustedConfig, config, createTranslationV2Job_ConfigPropertyMetadata);
3332
+ typeCheckConfig$I(untrustedConfig, config, createTranslationV2Job_ConfigPropertyMetadata);
3333
3333
  const untrustedConfig_translationV2Request = untrustedConfig.translationV2Request;
3334
- const referenceManagedContentTranslationV2RequestInputRepValidationError = validate$$(untrustedConfig_translationV2Request);
3334
+ const referenceManagedContentTranslationV2RequestInputRepValidationError = validate$Y(untrustedConfig_translationV2Request);
3335
3335
  if (referenceManagedContentTranslationV2RequestInputRepValidationError === null) {
3336
3336
  config.translationV2Request = untrustedConfig_translationV2Request;
3337
3337
  }
3338
3338
  return config;
3339
3339
  }
3340
- function validateAdapterConfig$C(untrustedConfig, configPropertyNames) {
3340
+ function validateAdapterConfig$B(untrustedConfig, configPropertyNames) {
3341
3341
  if (!untrustedIsObject(untrustedConfig)) {
3342
3342
  return null;
3343
3343
  }
3344
3344
  if (process.env.NODE_ENV !== 'production') {
3345
3345
  validateConfig(untrustedConfig, configPropertyNames);
3346
3346
  }
3347
- const config = typeCheckConfig$C(untrustedConfig);
3347
+ const config = typeCheckConfig$B(untrustedConfig);
3348
3348
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
3349
3349
  return null;
3350
3350
  }
3351
3351
  return config;
3352
3352
  }
3353
- function buildNetworkSnapshot$C(luvio, config, options) {
3354
- const resourceParams = createResourceParams$C(config);
3355
- const request = createResourceRequest$C(resourceParams);
3353
+ function buildNetworkSnapshot$B(luvio, config, options) {
3354
+ const resourceParams = createResourceParams$B(config);
3355
+ const request = createResourceRequest$B(resourceParams);
3356
3356
  return luvio.dispatchResourceRequest(request, options)
3357
3357
  .then((response) => {
3358
3358
  return luvio.handleSuccessResponse(() => {
3359
- const snapshot = ingestSuccess$C(luvio, resourceParams, response);
3359
+ const snapshot = ingestSuccess$B(luvio, resourceParams, response);
3360
3360
  return luvio.storeBroadcast().then(() => snapshot);
3361
3361
  }, () => {
3362
3362
  const cache = new StoreKeyMap();
3363
- getResponseCacheKeys$C(cache, luvio, resourceParams, response.body);
3363
+ getResponseCacheKeys$B(cache, luvio, resourceParams, response.body);
3364
3364
  return cache;
3365
3365
  });
3366
3366
  }, (response) => {
@@ -3370,16 +3370,16 @@ function buildNetworkSnapshot$C(luvio, config, options) {
3370
3370
  }
3371
3371
  const createTranslationV2JobAdapterFactory = (luvio) => {
3372
3372
  return function createTranslationV2Job(untrustedConfig) {
3373
- const config = validateAdapterConfig$C(untrustedConfig, createTranslationV2Job_ConfigPropertyNames);
3373
+ const config = validateAdapterConfig$B(untrustedConfig, createTranslationV2Job_ConfigPropertyNames);
3374
3374
  // Invalid or incomplete config
3375
3375
  if (config === null) {
3376
3376
  throw new Error('Invalid config for "createTranslationV2Job"');
3377
3377
  }
3378
- return buildNetworkSnapshot$C(luvio, config);
3378
+ return buildNetworkSnapshot$B(luvio, config);
3379
3379
  };
3380
3380
  };
3381
3381
 
3382
- function validate$Z(obj, path = 'ManagedContentInputRepresentation') {
3382
+ function validate$W(obj, path = 'ManagedContentInputRepresentation') {
3383
3383
  const v_error = (() => {
3384
3384
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
3385
3385
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -3426,7 +3426,7 @@ function validate$Z(obj, path = 'ManagedContentInputRepresentation') {
3426
3426
  return v_error === undefined ? null : v_error;
3427
3427
  }
3428
3428
 
3429
- function validate$Y(obj, path = 'ManagedContentSpaceSummaryRepresentation') {
3429
+ function validate$V(obj, path = 'ManagedContentSpaceSummaryRepresentation') {
3430
3430
  const v_error = (() => {
3431
3431
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
3432
3432
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -3445,7 +3445,7 @@ function validate$Y(obj, path = 'ManagedContentSpaceSummaryRepresentation') {
3445
3445
  return v_error === undefined ? null : v_error;
3446
3446
  }
3447
3447
 
3448
- function validate$X(obj, path = 'ManagedContentFolderSummaryRepresentation') {
3448
+ function validate$U(obj, path = 'ManagedContentFolderSummaryRepresentation') {
3449
3449
  const v_error = (() => {
3450
3450
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
3451
3451
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -3464,7 +3464,7 @@ function validate$X(obj, path = 'ManagedContentFolderSummaryRepresentation') {
3464
3464
  return v_error === undefined ? null : v_error;
3465
3465
  }
3466
3466
 
3467
- function validate$W(obj, path = 'ManagedContentVariantStatusRepresentation') {
3467
+ function validate$T(obj, path = 'ManagedContentVariantStatusRepresentation') {
3468
3468
  const v_error = (() => {
3469
3469
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
3470
3470
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -3483,9 +3483,9 @@ function validate$W(obj, path = 'ManagedContentVariantStatusRepresentation') {
3483
3483
  return v_error === undefined ? null : v_error;
3484
3484
  }
3485
3485
 
3486
- const TTL$q = 100;
3487
- const VERSION$s = "32da7ab9bec2902e7f2b1d1e9aa618f1";
3488
- function validate$V(obj, path = 'ManagedContentDocumentRepresentation') {
3486
+ const TTL$p = 100;
3487
+ const VERSION$r = "32da7ab9bec2902e7f2b1d1e9aa618f1";
3488
+ function validate$S(obj, path = 'ManagedContentDocumentRepresentation') {
3489
3489
  const v_error = (() => {
3490
3490
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
3491
3491
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -3539,7 +3539,7 @@ function validate$V(obj, path = 'ManagedContentDocumentRepresentation') {
3539
3539
  }
3540
3540
  const obj_contentSpace = obj.contentSpace;
3541
3541
  const path_contentSpace = path + '.contentSpace';
3542
- const referencepath_contentSpaceValidationError = validate$Y(obj_contentSpace, path_contentSpace);
3542
+ const referencepath_contentSpaceValidationError = validate$V(obj_contentSpace, path_contentSpace);
3543
3543
  if (referencepath_contentSpaceValidationError !== null) {
3544
3544
  let message = 'Object doesn\'t match ManagedContentSpaceSummaryRepresentation (at "' + path_contentSpace + '")\n';
3545
3545
  message += referencepath_contentSpaceValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -3547,7 +3547,7 @@ function validate$V(obj, path = 'ManagedContentDocumentRepresentation') {
3547
3547
  }
3548
3548
  const obj_contentType = obj.contentType;
3549
3549
  const path_contentType = path + '.contentType';
3550
- const referencepath_contentTypeValidationError = validate$1f(obj_contentType, path_contentType);
3550
+ const referencepath_contentTypeValidationError = validate$1c(obj_contentType, path_contentType);
3551
3551
  if (referencepath_contentTypeValidationError !== null) {
3552
3552
  let message = 'Object doesn\'t match ManagedContentTypeSummaryRepresentation (at "' + path_contentType + '")\n';
3553
3553
  message += referencepath_contentTypeValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -3555,7 +3555,7 @@ function validate$V(obj, path = 'ManagedContentDocumentRepresentation') {
3555
3555
  }
3556
3556
  const obj_createdBy = obj.createdBy;
3557
3557
  const path_createdBy = path + '.createdBy';
3558
- const referencepath_createdByValidationError = validate$1c(obj_createdBy, path_createdBy);
3558
+ const referencepath_createdByValidationError = validate$19(obj_createdBy, path_createdBy);
3559
3559
  if (referencepath_createdByValidationError !== null) {
3560
3560
  let message = 'Object doesn\'t match ManagedContentUserSummaryRepresentation (at "' + path_createdBy + '")\n';
3561
3561
  message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -3568,7 +3568,7 @@ function validate$V(obj, path = 'ManagedContentDocumentRepresentation') {
3568
3568
  }
3569
3569
  const obj_folder = obj.folder;
3570
3570
  const path_folder = path + '.folder';
3571
- const referencepath_folderValidationError = validate$X(obj_folder, path_folder);
3571
+ const referencepath_folderValidationError = validate$U(obj_folder, path_folder);
3572
3572
  if (referencepath_folderValidationError !== null) {
3573
3573
  let message = 'Object doesn\'t match ManagedContentFolderSummaryRepresentation (at "' + path_folder + '")\n';
3574
3574
  message += referencepath_folderValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -3586,7 +3586,7 @@ function validate$V(obj, path = 'ManagedContentDocumentRepresentation') {
3586
3586
  }
3587
3587
  const obj_lastModifiedBy = obj.lastModifiedBy;
3588
3588
  const path_lastModifiedBy = path + '.lastModifiedBy';
3589
- const referencepath_lastModifiedByValidationError = validate$1c(obj_lastModifiedBy, path_lastModifiedBy);
3589
+ const referencepath_lastModifiedByValidationError = validate$19(obj_lastModifiedBy, path_lastModifiedBy);
3590
3590
  if (referencepath_lastModifiedByValidationError !== null) {
3591
3591
  let message = 'Object doesn\'t match ManagedContentUserSummaryRepresentation (at "' + path_lastModifiedBy + '")\n';
3592
3592
  message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -3599,595 +3599,110 @@ function validate$V(obj, path = 'ManagedContentDocumentRepresentation') {
3599
3599
  }
3600
3600
  const obj_managedContentId = obj.managedContentId;
3601
3601
  const path_managedContentId = path + '.managedContentId';
3602
- if (typeof obj_managedContentId !== 'string') {
3603
- return new TypeError('Expected "string" but received "' + typeof obj_managedContentId + '" (at "' + path_managedContentId + '")');
3604
- }
3605
- const obj_managedContentVariantId = obj.managedContentVariantId;
3606
- const path_managedContentVariantId = path + '.managedContentVariantId';
3607
- if (typeof obj_managedContentVariantId !== 'string') {
3608
- return new TypeError('Expected "string" but received "' + typeof obj_managedContentVariantId + '" (at "' + path_managedContentVariantId + '")');
3609
- }
3610
- const obj_managedContentVersionId = obj.managedContentVersionId;
3611
- const path_managedContentVersionId = path + '.managedContentVersionId';
3612
- if (typeof obj_managedContentVersionId !== 'string') {
3613
- return new TypeError('Expected "string" but received "' + typeof obj_managedContentVersionId + '" (at "' + path_managedContentVersionId + '")');
3614
- }
3615
- if (obj.status !== undefined) {
3616
- const obj_status = obj.status;
3617
- const path_status = path + '.status';
3618
- let obj_status_union0 = null;
3619
- const obj_status_union0_error = (() => {
3620
- const referencepath_statusValidationError = validate$W(obj_status, path_status);
3621
- if (referencepath_statusValidationError !== null) {
3622
- let message = 'Object doesn\'t match ManagedContentVariantStatusRepresentation (at "' + path_status + '")\n';
3623
- message += referencepath_statusValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
3624
- return new TypeError(message);
3625
- }
3626
- })();
3627
- if (obj_status_union0_error != null) {
3628
- obj_status_union0 = obj_status_union0_error.message;
3629
- }
3630
- let obj_status_union1 = null;
3631
- const obj_status_union1_error = (() => {
3632
- if (obj_status !== null) {
3633
- return new TypeError('Expected "null" but received "' + typeof obj_status + '" (at "' + path_status + '")');
3634
- }
3635
- })();
3636
- if (obj_status_union1_error != null) {
3637
- obj_status_union1 = obj_status_union1_error.message;
3638
- }
3639
- if (obj_status_union0 && obj_status_union1) {
3640
- let message = 'Object doesn\'t match union (at "' + path_status + '")';
3641
- message += '\n' + obj_status_union0.split('\n').map((line) => '\t' + line).join('\n');
3642
- message += '\n' + obj_status_union1.split('\n').map((line) => '\t' + line).join('\n');
3643
- return new TypeError(message);
3644
- }
3645
- }
3646
- const obj_title = obj.title;
3647
- const path_title = path + '.title';
3648
- if (typeof obj_title !== 'string') {
3649
- return new TypeError('Expected "string" but received "' + typeof obj_title + '" (at "' + path_title + '")');
3650
- }
3651
- const obj_urlName = obj.urlName;
3652
- const path_urlName = path + '.urlName';
3653
- if (typeof obj_urlName !== 'string') {
3654
- return new TypeError('Expected "string" but received "' + typeof obj_urlName + '" (at "' + path_urlName + '")');
3655
- }
3656
- const obj_version = obj.version;
3657
- const path_version = path + '.version';
3658
- if (typeof obj_version !== 'string') {
3659
- return new TypeError('Expected "string" but received "' + typeof obj_version + '" (at "' + path_version + '")');
3660
- }
3661
- const obj_versionNumber = obj.versionNumber;
3662
- const path_versionNumber = path + '.versionNumber';
3663
- let obj_versionNumber_union0 = null;
3664
- const obj_versionNumber_union0_error = (() => {
3665
- if (typeof obj_versionNumber !== 'string') {
3666
- return new TypeError('Expected "string" but received "' + typeof obj_versionNumber + '" (at "' + path_versionNumber + '")');
3667
- }
3668
- })();
3669
- if (obj_versionNumber_union0_error != null) {
3670
- obj_versionNumber_union0 = obj_versionNumber_union0_error.message;
3671
- }
3672
- let obj_versionNumber_union1 = null;
3673
- const obj_versionNumber_union1_error = (() => {
3674
- if (obj_versionNumber !== null) {
3675
- return new TypeError('Expected "null" but received "' + typeof obj_versionNumber + '" (at "' + path_versionNumber + '")');
3676
- }
3677
- })();
3678
- if (obj_versionNumber_union1_error != null) {
3679
- obj_versionNumber_union1 = obj_versionNumber_union1_error.message;
3680
- }
3681
- if (obj_versionNumber_union0 && obj_versionNumber_union1) {
3682
- let message = 'Object doesn\'t match union (at "' + path_versionNumber + '")';
3683
- message += '\n' + obj_versionNumber_union0.split('\n').map((line) => '\t' + line).join('\n');
3684
- message += '\n' + obj_versionNumber_union1.split('\n').map((line) => '\t' + line).join('\n');
3685
- return new TypeError(message);
3686
- }
3687
- })();
3688
- return v_error === undefined ? null : v_error;
3689
- }
3690
- const RepresentationType$r = 'ManagedContentDocumentRepresentation';
3691
- function keyBuilder$S(luvio, config) {
3692
- return keyPrefix + '::' + RepresentationType$r + ':' + config.content_key + ':' + config.language + ':' + config.version;
3693
- }
3694
- function keyBuilderFromType$d(luvio, object) {
3695
- const keyParams = {
3696
- content_key: object.contentKey,
3697
- language: object.language,
3698
- version: object.version
3699
- };
3700
- return keyBuilder$S(luvio, keyParams);
3701
- }
3702
- function normalize$r(input, existing, path, luvio, store, timestamp) {
3703
- return input;
3704
- }
3705
- const select$11 = function ManagedContentDocumentRepresentationSelect() {
3706
- return {
3707
- kind: 'Fragment',
3708
- version: VERSION$s,
3709
- private: [],
3710
- opaque: true
3711
- };
3712
- };
3713
- function equals$s(existing, incoming) {
3714
- if (JSONStringify(incoming) !== JSONStringify(existing)) {
3715
- return false;
3716
- }
3717
- return true;
3718
- }
3719
- const ingest$r = function ManagedContentDocumentRepresentationIngest(input, path, luvio, store, timestamp) {
3720
- if (process.env.NODE_ENV !== 'production') {
3721
- const validateError = validate$V(input);
3722
- if (validateError !== null) {
3723
- throw validateError;
3724
- }
3725
- }
3726
- const key = keyBuilderFromType$d(luvio, input);
3727
- const ttlToUse = TTL$q;
3728
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$r, "CMSAuthoring", VERSION$s, RepresentationType$r, equals$s);
3729
- return createLink(key);
3730
- };
3731
- function getTypeCacheKeys$r(rootKeySet, luvio, input, fullPathFactory) {
3732
- // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
3733
- const rootKey = keyBuilderFromType$d(luvio, input);
3734
- rootKeySet.set(rootKey, {
3735
- namespace: keyPrefix,
3736
- representationName: RepresentationType$r,
3737
- mergeable: false
3738
- });
3739
- }
3740
-
3741
- function select$10(luvio, params) {
3742
- return select$11();
3743
- }
3744
- function getResponseCacheKeys$B(storeKeyMap, luvio, resourceParams, response) {
3745
- getTypeCacheKeys$r(storeKeyMap, luvio, response);
3746
- }
3747
- function ingestSuccess$B(luvio, resourceParams, response) {
3748
- const { body } = response;
3749
- const key = keyBuilderFromType$d(luvio, body);
3750
- luvio.storeIngest(key, ingest$r, body);
3751
- const snapshot = luvio.storeLookup({
3752
- recordId: key,
3753
- node: select$10(),
3754
- variables: {},
3755
- });
3756
- if (process.env.NODE_ENV !== 'production') {
3757
- if (snapshot.state !== 'Fulfilled') {
3758
- throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
3759
- }
3760
- }
3761
- deepFreeze(snapshot.data);
3762
- return snapshot;
3763
- }
3764
- function createResourceRequest$B(config) {
3765
- const headers = {};
3766
- return {
3767
- baseUri: '/services/data/v61.0',
3768
- basePath: '/connect/cms/contents',
3769
- method: 'post',
3770
- body: config.body,
3771
- urlParams: {},
3772
- queryParams: {},
3773
- headers,
3774
- priority: 'normal',
3775
- };
3776
- }
3777
-
3778
- function ingestSuccess$A(luvio, resourceParams, response) {
3779
- // Version can come either from versionNumber field in case of v2 content, or managedContentVersionId field in case of v1 content.
3780
- response.body.version = (response.body.versionNumber ||
3781
- response.body.managedContentVersionId);
3782
- return ingestSuccess$B(luvio, resourceParams, response);
3783
- }
3784
-
3785
- const adapterName$B = 'createManagedContent';
3786
- const createManagedContent_ConfigPropertyMetadata = [
3787
- generateParamConfigMetadata('ManagedContentInputParam', true, 2 /* Body */, 4 /* Unsupported */),
3788
- ];
3789
- const createManagedContent_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$B, createManagedContent_ConfigPropertyMetadata);
3790
- const createResourceParams$B = /*#__PURE__*/ createResourceParams$J(createManagedContent_ConfigPropertyMetadata);
3791
- function typeCheckConfig$B(untrustedConfig) {
3792
- const config = {};
3793
- const untrustedConfig_ManagedContentInputParam = untrustedConfig.ManagedContentInputParam;
3794
- const referenceManagedContentInputRepresentationValidationError = validate$Z(untrustedConfig_ManagedContentInputParam);
3795
- if (referenceManagedContentInputRepresentationValidationError === null) {
3796
- config.ManagedContentInputParam = untrustedConfig_ManagedContentInputParam;
3797
- }
3798
- return config;
3799
- }
3800
- function validateAdapterConfig$B(untrustedConfig, configPropertyNames) {
3801
- if (!untrustedIsObject(untrustedConfig)) {
3802
- return null;
3803
- }
3804
- if (process.env.NODE_ENV !== 'production') {
3805
- validateConfig(untrustedConfig, configPropertyNames);
3806
- }
3807
- const config = typeCheckConfig$B(untrustedConfig);
3808
- if (!areRequiredParametersPresent(config, configPropertyNames)) {
3809
- return null;
3810
- }
3811
- return config;
3812
- }
3813
- function buildNetworkSnapshot$B(luvio, config, options) {
3814
- const resourceParams = createResourceParams$B(config);
3815
- const request = createResourceRequest$B(resourceParams);
3816
- return luvio.dispatchResourceRequest(request, options)
3817
- .then((response) => {
3818
- return luvio.handleSuccessResponse(() => {
3819
- const snapshot = ingestSuccess$A(luvio, resourceParams, response);
3820
- return luvio.storeBroadcast().then(() => snapshot);
3821
- }, () => {
3822
- const cache = new StoreKeyMap();
3823
- getResponseCacheKeys$B(cache, luvio, resourceParams, response.body);
3824
- return cache;
3825
- });
3826
- }, (response) => {
3827
- deepFreeze(response);
3828
- throw response;
3829
- });
3830
- }
3831
- const createManagedContentAdapterFactory = (luvio) => {
3832
- return function createManagedContent(untrustedConfig) {
3833
- const config = validateAdapterConfig$B(untrustedConfig, createManagedContent_ConfigPropertyNames);
3834
- // Invalid or incomplete config
3835
- if (config === null) {
3836
- throw new Error('Invalid config for "createManagedContent"');
3837
- }
3838
- return buildNetworkSnapshot$B(luvio, config);
3839
- };
3840
- };
3841
-
3842
- function validate$U(obj, path = 'ManagedContentCloneItemRepresentation') {
3843
- const v_error = (() => {
3844
- if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
3845
- return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
3846
- }
3847
- const obj_contentKeyOrId = obj.contentKeyOrId;
3848
- const path_contentKeyOrId = path + '.contentKeyOrId';
3849
- if (typeof obj_contentKeyOrId !== 'string') {
3850
- return new TypeError('Expected "string" but received "' + typeof obj_contentKeyOrId + '" (at "' + path_contentKeyOrId + '")');
3851
- }
3852
- if (obj.title !== undefined) {
3853
- const obj_title = obj.title;
3854
- const path_title = path + '.title';
3855
- if (typeof obj_title !== 'string') {
3856
- return new TypeError('Expected "string" but received "' + typeof obj_title + '" (at "' + path_title + '")');
3857
- }
3858
- }
3859
- })();
3860
- return v_error === undefined ? null : v_error;
3861
- }
3862
-
3863
- function validate$T(obj, path = 'ManagedContentCloneStatusRepresentation') {
3864
- const v_error = (() => {
3865
- if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
3866
- return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
3867
- }
3868
- const obj_label = obj.label;
3869
- const path_label = path + '.label';
3870
- if (typeof obj_label !== 'string') {
3871
- return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
3872
- }
3873
- const obj_status = obj.status;
3874
- const path_status = path + '.status';
3875
- if (typeof obj_status !== 'string') {
3876
- return new TypeError('Expected "string" but received "' + typeof obj_status + '" (at "' + path_status + '")');
3877
- }
3878
- })();
3879
- return v_error === undefined ? null : v_error;
3880
- }
3881
-
3882
- function validate$S(obj, path = 'ManagedContentFailedVariantsRepresentation') {
3883
- const v_error = (() => {
3884
- if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
3885
- return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
3886
- }
3887
- const obj_errorMessage = obj.errorMessage;
3888
- const path_errorMessage = path + '.errorMessage';
3889
- if (typeof obj_errorMessage !== 'string') {
3890
- return new TypeError('Expected "string" but received "' + typeof obj_errorMessage + '" (at "' + path_errorMessage + '")');
3891
- }
3892
- const obj_language = obj.language;
3893
- const path_language = path + '.language';
3894
- if (typeof obj_language !== 'string') {
3895
- return new TypeError('Expected "string" but received "' + typeof obj_language + '" (at "' + path_language + '")');
3896
- }
3897
- const obj_sourceManagedContentVariantId = obj.sourceManagedContentVariantId;
3898
- const path_sourceManagedContentVariantId = path + '.sourceManagedContentVariantId';
3899
- if (typeof obj_sourceManagedContentVariantId !== 'string') {
3900
- return new TypeError('Expected "string" but received "' + typeof obj_sourceManagedContentVariantId + '" (at "' + path_sourceManagedContentVariantId + '")');
3901
- }
3902
- })();
3903
- return v_error === undefined ? null : v_error;
3904
- }
3905
-
3906
- function validate$R(obj, path = 'ManagedContentClonedVariantRepresentation') {
3907
- const v_error = (() => {
3908
- if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
3909
- return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
3910
- }
3911
- const obj_language = obj.language;
3912
- const path_language = path + '.language';
3913
- if (typeof obj_language !== 'string') {
3914
- return new TypeError('Expected "string" but received "' + typeof obj_language + '" (at "' + path_language + '")');
3915
- }
3916
- const obj_managedContentVariantId = obj.managedContentVariantId;
3917
- const path_managedContentVariantId = path + '.managedContentVariantId';
3918
- if (typeof obj_managedContentVariantId !== 'string') {
3919
- return new TypeError('Expected "string" but received "' + typeof obj_managedContentVariantId + '" (at "' + path_managedContentVariantId + '")');
3920
- }
3921
- const obj_resourceURL = obj.resourceURL;
3922
- const path_resourceURL = path + '.resourceURL';
3923
- let obj_resourceURL_union0 = null;
3924
- const obj_resourceURL_union0_error = (() => {
3925
- if (typeof obj_resourceURL !== 'string') {
3926
- return new TypeError('Expected "string" but received "' + typeof obj_resourceURL + '" (at "' + path_resourceURL + '")');
3927
- }
3928
- })();
3929
- if (obj_resourceURL_union0_error != null) {
3930
- obj_resourceURL_union0 = obj_resourceURL_union0_error.message;
3931
- }
3932
- let obj_resourceURL_union1 = null;
3933
- const obj_resourceURL_union1_error = (() => {
3934
- if (obj_resourceURL !== null) {
3935
- return new TypeError('Expected "null" but received "' + typeof obj_resourceURL + '" (at "' + path_resourceURL + '")');
3936
- }
3937
- })();
3938
- if (obj_resourceURL_union1_error != null) {
3939
- obj_resourceURL_union1 = obj_resourceURL_union1_error.message;
3940
- }
3941
- if (obj_resourceURL_union0 && obj_resourceURL_union1) {
3942
- let message = 'Object doesn\'t match union (at "' + path_resourceURL + '")';
3943
- message += '\n' + obj_resourceURL_union0.split('\n').map((line) => '\t' + line).join('\n');
3944
- message += '\n' + obj_resourceURL_union1.split('\n').map((line) => '\t' + line).join('\n');
3945
- return new TypeError(message);
3946
- }
3947
- })();
3948
- return v_error === undefined ? null : v_error;
3949
- }
3950
-
3951
- function validate$Q(obj, path = 'ManagedContentCloneRepresentation') {
3952
- const v_error = (() => {
3953
- if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
3954
- return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
3955
- }
3956
- const obj_cloneStatus = obj.cloneStatus;
3957
- const path_cloneStatus = path + '.cloneStatus';
3958
- const referencepath_cloneStatusValidationError = validate$T(obj_cloneStatus, path_cloneStatus);
3959
- if (referencepath_cloneStatusValidationError !== null) {
3960
- let message = 'Object doesn\'t match ManagedContentCloneStatusRepresentation (at "' + path_cloneStatus + '")\n';
3961
- message += referencepath_cloneStatusValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
3962
- return new TypeError(message);
3963
- }
3964
- if (obj.contentKey !== undefined) {
3965
- const obj_contentKey = obj.contentKey;
3966
- const path_contentKey = path + '.contentKey';
3967
- let obj_contentKey_union0 = null;
3968
- const obj_contentKey_union0_error = (() => {
3969
- if (typeof obj_contentKey !== 'string') {
3970
- return new TypeError('Expected "string" but received "' + typeof obj_contentKey + '" (at "' + path_contentKey + '")');
3971
- }
3972
- })();
3973
- if (obj_contentKey_union0_error != null) {
3974
- obj_contentKey_union0 = obj_contentKey_union0_error.message;
3975
- }
3976
- let obj_contentKey_union1 = null;
3977
- const obj_contentKey_union1_error = (() => {
3978
- if (obj_contentKey !== null) {
3979
- return new TypeError('Expected "null" but received "' + typeof obj_contentKey + '" (at "' + path_contentKey + '")');
3980
- }
3981
- })();
3982
- if (obj_contentKey_union1_error != null) {
3983
- obj_contentKey_union1 = obj_contentKey_union1_error.message;
3984
- }
3985
- if (obj_contentKey_union0 && obj_contentKey_union1) {
3986
- let message = 'Object doesn\'t match union (at "' + path_contentKey + '")';
3987
- message += '\n' + obj_contentKey_union0.split('\n').map((line) => '\t' + line).join('\n');
3988
- message += '\n' + obj_contentKey_union1.split('\n').map((line) => '\t' + line).join('\n');
3989
- return new TypeError(message);
3990
- }
3991
- }
3992
- if (obj.errorMessage !== undefined) {
3993
- const obj_errorMessage = obj.errorMessage;
3994
- const path_errorMessage = path + '.errorMessage';
3995
- let obj_errorMessage_union0 = null;
3996
- const obj_errorMessage_union0_error = (() => {
3997
- if (typeof obj_errorMessage !== 'string') {
3998
- return new TypeError('Expected "string" but received "' + typeof obj_errorMessage + '" (at "' + path_errorMessage + '")');
3999
- }
4000
- })();
4001
- if (obj_errorMessage_union0_error != null) {
4002
- obj_errorMessage_union0 = obj_errorMessage_union0_error.message;
4003
- }
4004
- let obj_errorMessage_union1 = null;
4005
- const obj_errorMessage_union1_error = (() => {
4006
- if (obj_errorMessage !== null) {
4007
- return new TypeError('Expected "null" but received "' + typeof obj_errorMessage + '" (at "' + path_errorMessage + '")');
4008
- }
4009
- })();
4010
- if (obj_errorMessage_union1_error != null) {
4011
- obj_errorMessage_union1 = obj_errorMessage_union1_error.message;
4012
- }
4013
- if (obj_errorMessage_union0 && obj_errorMessage_union1) {
4014
- let message = 'Object doesn\'t match union (at "' + path_errorMessage + '")';
4015
- message += '\n' + obj_errorMessage_union0.split('\n').map((line) => '\t' + line).join('\n');
4016
- message += '\n' + obj_errorMessage_union1.split('\n').map((line) => '\t' + line).join('\n');
4017
- return new TypeError(message);
4018
- }
4019
- }
4020
- if (obj.failedVariants !== undefined) {
4021
- const obj_failedVariants = obj.failedVariants;
4022
- const path_failedVariants = path + '.failedVariants';
4023
- if (!ArrayIsArray(obj_failedVariants)) {
4024
- return new TypeError('Expected "array" but received "' + typeof obj_failedVariants + '" (at "' + path_failedVariants + '")');
4025
- }
4026
- for (let i = 0; i < obj_failedVariants.length; i++) {
4027
- const obj_failedVariants_item = obj_failedVariants[i];
4028
- const path_failedVariants_item = path_failedVariants + '[' + i + ']';
4029
- const referencepath_failedVariants_itemValidationError = validate$S(obj_failedVariants_item, path_failedVariants_item);
4030
- if (referencepath_failedVariants_itemValidationError !== null) {
4031
- let message = 'Object doesn\'t match ManagedContentFailedVariantsRepresentation (at "' + path_failedVariants_item + '")\n';
4032
- message += referencepath_failedVariants_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
4033
- return new TypeError(message);
4034
- }
4035
- }
4036
- }
4037
- if (obj.managedContentId !== undefined) {
4038
- const obj_managedContentId = obj.managedContentId;
4039
- const path_managedContentId = path + '.managedContentId';
4040
- let obj_managedContentId_union0 = null;
4041
- const obj_managedContentId_union0_error = (() => {
4042
- if (typeof obj_managedContentId !== 'string') {
4043
- return new TypeError('Expected "string" but received "' + typeof obj_managedContentId + '" (at "' + path_managedContentId + '")');
4044
- }
4045
- })();
4046
- if (obj_managedContentId_union0_error != null) {
4047
- obj_managedContentId_union0 = obj_managedContentId_union0_error.message;
4048
- }
4049
- let obj_managedContentId_union1 = null;
4050
- const obj_managedContentId_union1_error = (() => {
4051
- if (obj_managedContentId !== null) {
4052
- return new TypeError('Expected "null" but received "' + typeof obj_managedContentId + '" (at "' + path_managedContentId + '")');
4053
- }
4054
- })();
4055
- if (obj_managedContentId_union1_error != null) {
4056
- obj_managedContentId_union1 = obj_managedContentId_union1_error.message;
4057
- }
4058
- if (obj_managedContentId_union0 && obj_managedContentId_union1) {
4059
- let message = 'Object doesn\'t match union (at "' + path_managedContentId + '")';
4060
- message += '\n' + obj_managedContentId_union0.split('\n').map((line) => '\t' + line).join('\n');
4061
- message += '\n' + obj_managedContentId_union1.split('\n').map((line) => '\t' + line).join('\n');
4062
- return new TypeError(message);
4063
- }
4064
- }
4065
- if (obj.resourceURL !== undefined) {
4066
- const obj_resourceURL = obj.resourceURL;
4067
- const path_resourceURL = path + '.resourceURL';
4068
- let obj_resourceURL_union0 = null;
4069
- const obj_resourceURL_union0_error = (() => {
4070
- if (typeof obj_resourceURL !== 'string') {
4071
- return new TypeError('Expected "string" but received "' + typeof obj_resourceURL + '" (at "' + path_resourceURL + '")');
4072
- }
4073
- })();
4074
- if (obj_resourceURL_union0_error != null) {
4075
- obj_resourceURL_union0 = obj_resourceURL_union0_error.message;
4076
- }
4077
- let obj_resourceURL_union1 = null;
4078
- const obj_resourceURL_union1_error = (() => {
4079
- if (obj_resourceURL !== null) {
4080
- return new TypeError('Expected "null" but received "' + typeof obj_resourceURL + '" (at "' + path_resourceURL + '")');
4081
- }
4082
- })();
4083
- if (obj_resourceURL_union1_error != null) {
4084
- obj_resourceURL_union1 = obj_resourceURL_union1_error.message;
4085
- }
4086
- if (obj_resourceURL_union0 && obj_resourceURL_union1) {
4087
- let message = 'Object doesn\'t match union (at "' + path_resourceURL + '")';
4088
- message += '\n' + obj_resourceURL_union0.split('\n').map((line) => '\t' + line).join('\n');
4089
- message += '\n' + obj_resourceURL_union1.split('\n').map((line) => '\t' + line).join('\n');
4090
- return new TypeError(message);
4091
- }
3602
+ if (typeof obj_managedContentId !== 'string') {
3603
+ return new TypeError('Expected "string" but received "' + typeof obj_managedContentId + '" (at "' + path_managedContentId + '")');
4092
3604
  }
4093
- const obj_sourceContentKeyOrId = obj.sourceContentKeyOrId;
4094
- const path_sourceContentKeyOrId = path + '.sourceContentKeyOrId';
4095
- if (typeof obj_sourceContentKeyOrId !== 'string') {
4096
- return new TypeError('Expected "string" but received "' + typeof obj_sourceContentKeyOrId + '" (at "' + path_sourceContentKeyOrId + '")');
3605
+ const obj_managedContentVariantId = obj.managedContentVariantId;
3606
+ const path_managedContentVariantId = path + '.managedContentVariantId';
3607
+ if (typeof obj_managedContentVariantId !== 'string') {
3608
+ return new TypeError('Expected "string" but received "' + typeof obj_managedContentVariantId + '" (at "' + path_managedContentVariantId + '")');
4097
3609
  }
4098
- if (obj.title !== undefined) {
4099
- const obj_title = obj.title;
4100
- const path_title = path + '.title';
4101
- let obj_title_union0 = null;
4102
- const obj_title_union0_error = (() => {
4103
- if (typeof obj_title !== 'string') {
4104
- return new TypeError('Expected "string" but received "' + typeof obj_title + '" (at "' + path_title + '")');
3610
+ const obj_managedContentVersionId = obj.managedContentVersionId;
3611
+ const path_managedContentVersionId = path + '.managedContentVersionId';
3612
+ if (typeof obj_managedContentVersionId !== 'string') {
3613
+ return new TypeError('Expected "string" but received "' + typeof obj_managedContentVersionId + '" (at "' + path_managedContentVersionId + '")');
3614
+ }
3615
+ if (obj.status !== undefined) {
3616
+ const obj_status = obj.status;
3617
+ const path_status = path + '.status';
3618
+ let obj_status_union0 = null;
3619
+ const obj_status_union0_error = (() => {
3620
+ const referencepath_statusValidationError = validate$T(obj_status, path_status);
3621
+ if (referencepath_statusValidationError !== null) {
3622
+ let message = 'Object doesn\'t match ManagedContentVariantStatusRepresentation (at "' + path_status + '")\n';
3623
+ message += referencepath_statusValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
3624
+ return new TypeError(message);
4105
3625
  }
4106
3626
  })();
4107
- if (obj_title_union0_error != null) {
4108
- obj_title_union0 = obj_title_union0_error.message;
3627
+ if (obj_status_union0_error != null) {
3628
+ obj_status_union0 = obj_status_union0_error.message;
4109
3629
  }
4110
- let obj_title_union1 = null;
4111
- const obj_title_union1_error = (() => {
4112
- if (obj_title !== null) {
4113
- return new TypeError('Expected "null" but received "' + typeof obj_title + '" (at "' + path_title + '")');
3630
+ let obj_status_union1 = null;
3631
+ const obj_status_union1_error = (() => {
3632
+ if (obj_status !== null) {
3633
+ return new TypeError('Expected "null" but received "' + typeof obj_status + '" (at "' + path_status + '")');
4114
3634
  }
4115
3635
  })();
4116
- if (obj_title_union1_error != null) {
4117
- obj_title_union1 = obj_title_union1_error.message;
3636
+ if (obj_status_union1_error != null) {
3637
+ obj_status_union1 = obj_status_union1_error.message;
4118
3638
  }
4119
- if (obj_title_union0 && obj_title_union1) {
4120
- let message = 'Object doesn\'t match union (at "' + path_title + '")';
4121
- message += '\n' + obj_title_union0.split('\n').map((line) => '\t' + line).join('\n');
4122
- message += '\n' + obj_title_union1.split('\n').map((line) => '\t' + line).join('\n');
3639
+ if (obj_status_union0 && obj_status_union1) {
3640
+ let message = 'Object doesn\'t match union (at "' + path_status + '")';
3641
+ message += '\n' + obj_status_union0.split('\n').map((line) => '\t' + line).join('\n');
3642
+ message += '\n' + obj_status_union1.split('\n').map((line) => '\t' + line).join('\n');
4123
3643
  return new TypeError(message);
4124
3644
  }
4125
3645
  }
4126
- if (obj.variants !== undefined) {
4127
- const obj_variants = obj.variants;
4128
- const path_variants = path + '.variants';
4129
- if (!ArrayIsArray(obj_variants)) {
4130
- return new TypeError('Expected "array" but received "' + typeof obj_variants + '" (at "' + path_variants + '")');
4131
- }
4132
- for (let i = 0; i < obj_variants.length; i++) {
4133
- const obj_variants_item = obj_variants[i];
4134
- const path_variants_item = path_variants + '[' + i + ']';
4135
- const referencepath_variants_itemValidationError = validate$R(obj_variants_item, path_variants_item);
4136
- if (referencepath_variants_itemValidationError !== null) {
4137
- let message = 'Object doesn\'t match ManagedContentClonedVariantRepresentation (at "' + path_variants_item + '")\n';
4138
- message += referencepath_variants_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
4139
- return new TypeError(message);
4140
- }
4141
- }
3646
+ const obj_title = obj.title;
3647
+ const path_title = path + '.title';
3648
+ if (typeof obj_title !== 'string') {
3649
+ return new TypeError('Expected "string" but received "' + typeof obj_title + '" (at "' + path_title + '")');
4142
3650
  }
4143
- })();
4144
- return v_error === undefined ? null : v_error;
4145
- }
4146
-
4147
- const TTL$p = 100;
4148
- const VERSION$r = "cd2506a860c4f555d401c1c68ff97158";
4149
- function validate$P(obj, path = 'ManagedContentCloneCollectionRepresentation') {
4150
- const v_error = (() => {
4151
- if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
4152
- return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
3651
+ const obj_urlName = obj.urlName;
3652
+ const path_urlName = path + '.urlName';
3653
+ if (typeof obj_urlName !== 'string') {
3654
+ return new TypeError('Expected "string" but received "' + typeof obj_urlName + '" (at "' + path_urlName + '")');
4153
3655
  }
4154
- const obj_contents = obj.contents;
4155
- const path_contents = path + '.contents';
4156
- if (!ArrayIsArray(obj_contents)) {
4157
- return new TypeError('Expected "array" but received "' + typeof obj_contents + '" (at "' + path_contents + '")');
4158
- }
4159
- for (let i = 0; i < obj_contents.length; i++) {
4160
- const obj_contents_item = obj_contents[i];
4161
- const path_contents_item = path_contents + '[' + i + ']';
4162
- const referencepath_contents_itemValidationError = validate$Q(obj_contents_item, path_contents_item);
4163
- if (referencepath_contents_itemValidationError !== null) {
4164
- let message = 'Object doesn\'t match ManagedContentCloneRepresentation (at "' + path_contents_item + '")\n';
4165
- message += referencepath_contents_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
4166
- return new TypeError(message);
3656
+ const obj_version = obj.version;
3657
+ const path_version = path + '.version';
3658
+ if (typeof obj_version !== 'string') {
3659
+ return new TypeError('Expected "string" but received "' + typeof obj_version + '" (at "' + path_version + '")');
3660
+ }
3661
+ const obj_versionNumber = obj.versionNumber;
3662
+ const path_versionNumber = path + '.versionNumber';
3663
+ let obj_versionNumber_union0 = null;
3664
+ const obj_versionNumber_union0_error = (() => {
3665
+ if (typeof obj_versionNumber !== 'string') {
3666
+ return new TypeError('Expected "string" but received "' + typeof obj_versionNumber + '" (at "' + path_versionNumber + '")');
4167
3667
  }
3668
+ })();
3669
+ if (obj_versionNumber_union0_error != null) {
3670
+ obj_versionNumber_union0 = obj_versionNumber_union0_error.message;
4168
3671
  }
4169
- const obj_id = obj.id;
4170
- const path_id = path + '.id';
4171
- if (typeof obj_id !== 'string') {
4172
- return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
3672
+ let obj_versionNumber_union1 = null;
3673
+ const obj_versionNumber_union1_error = (() => {
3674
+ if (obj_versionNumber !== null) {
3675
+ return new TypeError('Expected "null" but received "' + typeof obj_versionNumber + '" (at "' + path_versionNumber + '")');
3676
+ }
3677
+ })();
3678
+ if (obj_versionNumber_union1_error != null) {
3679
+ obj_versionNumber_union1 = obj_versionNumber_union1_error.message;
3680
+ }
3681
+ if (obj_versionNumber_union0 && obj_versionNumber_union1) {
3682
+ let message = 'Object doesn\'t match union (at "' + path_versionNumber + '")';
3683
+ message += '\n' + obj_versionNumber_union0.split('\n').map((line) => '\t' + line).join('\n');
3684
+ message += '\n' + obj_versionNumber_union1.split('\n').map((line) => '\t' + line).join('\n');
3685
+ return new TypeError(message);
4173
3686
  }
4174
3687
  })();
4175
3688
  return v_error === undefined ? null : v_error;
4176
3689
  }
4177
- const RepresentationType$q = 'ManagedContentCloneCollectionRepresentation';
3690
+ const RepresentationType$q = 'ManagedContentDocumentRepresentation';
4178
3691
  function keyBuilder$R(luvio, config) {
4179
- return keyPrefix + '::' + RepresentationType$q + ':' + config.id;
3692
+ return keyPrefix + '::' + RepresentationType$q + ':' + config.content_key + ':' + config.language + ':' + config.version;
4180
3693
  }
4181
3694
  function keyBuilderFromType$c(luvio, object) {
4182
3695
  const keyParams = {
4183
- id: object.id
3696
+ content_key: object.contentKey,
3697
+ language: object.language,
3698
+ version: object.version
4184
3699
  };
4185
3700
  return keyBuilder$R(luvio, keyParams);
4186
3701
  }
4187
3702
  function normalize$q(input, existing, path, luvio, store, timestamp) {
4188
3703
  return input;
4189
3704
  }
4190
- const select$$ = function ManagedContentCloneCollectionRepresentationSelect() {
3705
+ const select$$ = function ManagedContentDocumentRepresentationSelect() {
4191
3706
  return {
4192
3707
  kind: 'Fragment',
4193
3708
  version: VERSION$r,
@@ -4201,9 +3716,9 @@ function equals$r(existing, incoming) {
4201
3716
  }
4202
3717
  return true;
4203
3718
  }
4204
- const ingest$q = function ManagedContentCloneCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
3719
+ const ingest$q = function ManagedContentDocumentRepresentationIngest(input, path, luvio, store, timestamp) {
4205
3720
  if (process.env.NODE_ENV !== 'production') {
4206
- const validateError = validate$P(input);
3721
+ const validateError = validate$S(input);
4207
3722
  if (validateError !== null) {
4208
3723
  throw validateError;
4209
3724
  }
@@ -4229,7 +3744,7 @@ function select$_(luvio, params) {
4229
3744
  function getResponseCacheKeys$A(storeKeyMap, luvio, resourceParams, response) {
4230
3745
  getTypeCacheKeys$q(storeKeyMap, luvio, response);
4231
3746
  }
4232
- function ingestSuccess$z(luvio, resourceParams, response) {
3747
+ function ingestSuccess$A(luvio, resourceParams, response) {
4233
3748
  const { body } = response;
4234
3749
  const key = keyBuilderFromType$c(luvio, body);
4235
3750
  luvio.storeIngest(key, ingest$q, body);
@@ -4250,7 +3765,7 @@ function createResourceRequest$A(config) {
4250
3765
  const headers = {};
4251
3766
  return {
4252
3767
  baseUri: '/services/data/v61.0',
4253
- basePath: '/connect/cms/contents/clone',
3768
+ basePath: '/connect/cms/contents',
4254
3769
  method: 'post',
4255
3770
  body: config.body,
4256
3771
  urlParams: {},
@@ -4260,28 +3775,25 @@ function createResourceRequest$A(config) {
4260
3775
  };
4261
3776
  }
4262
3777
 
4263
- const adapterName$A = 'cloneManagedContents';
4264
- const cloneManagedContents_ConfigPropertyMetadata = [
4265
- generateParamConfigMetadata('contents', true, 2 /* Body */, 4 /* Unsupported */, true),
4266
- generateParamConfigMetadata('includeVariants', false, 2 /* Body */, 1 /* Boolean */),
4267
- generateParamConfigMetadata('targetContentSpaceOrFolderId', false, 2 /* Body */, 0 /* String */),
3778
+ function ingestSuccess$z(luvio, resourceParams, response) {
3779
+ // Version can come either from versionNumber field in case of v2 content, or managedContentVersionId field in case of v1 content.
3780
+ response.body.version = (response.body.versionNumber ||
3781
+ response.body.managedContentVersionId);
3782
+ return ingestSuccess$A(luvio, resourceParams, response);
3783
+ }
3784
+
3785
+ const adapterName$A = 'createManagedContent';
3786
+ const createManagedContent_ConfigPropertyMetadata = [
3787
+ generateParamConfigMetadata('ManagedContentInputParam', true, 2 /* Body */, 4 /* Unsupported */),
4268
3788
  ];
4269
- const cloneManagedContents_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$A, cloneManagedContents_ConfigPropertyMetadata);
4270
- const createResourceParams$A = /*#__PURE__*/ createResourceParams$J(cloneManagedContents_ConfigPropertyMetadata);
3789
+ const createManagedContent_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$A, createManagedContent_ConfigPropertyMetadata);
3790
+ const createResourceParams$A = /*#__PURE__*/ createResourceParams$I(createManagedContent_ConfigPropertyMetadata);
4271
3791
  function typeCheckConfig$A(untrustedConfig) {
4272
3792
  const config = {};
4273
- typeCheckConfig$J(untrustedConfig, config, cloneManagedContents_ConfigPropertyMetadata);
4274
- const untrustedConfig_contents = untrustedConfig.contents;
4275
- if (ArrayIsArray$1(untrustedConfig_contents)) {
4276
- const untrustedConfig_contents_array = [];
4277
- for (let i = 0, arrayLength = untrustedConfig_contents.length; i < arrayLength; i++) {
4278
- const untrustedConfig_contents_item = untrustedConfig_contents[i];
4279
- const referenceManagedContentCloneItemRepresentationValidationError = validate$U(untrustedConfig_contents_item);
4280
- if (referenceManagedContentCloneItemRepresentationValidationError === null) {
4281
- untrustedConfig_contents_array.push(untrustedConfig_contents_item);
4282
- }
4283
- }
4284
- config.contents = untrustedConfig_contents_array;
3793
+ const untrustedConfig_ManagedContentInputParam = untrustedConfig.ManagedContentInputParam;
3794
+ const referenceManagedContentInputRepresentationValidationError = validate$W(untrustedConfig_ManagedContentInputParam);
3795
+ if (referenceManagedContentInputRepresentationValidationError === null) {
3796
+ config.ManagedContentInputParam = untrustedConfig_ManagedContentInputParam;
4285
3797
  }
4286
3798
  return config;
4287
3799
  }
@@ -4316,12 +3828,12 @@ function buildNetworkSnapshot$A(luvio, config, options) {
4316
3828
  throw response;
4317
3829
  });
4318
3830
  }
4319
- const cloneManagedContentsAdapterFactory = (luvio) => {
4320
- return function cloneManagedContents(untrustedConfig) {
4321
- const config = validateAdapterConfig$A(untrustedConfig, cloneManagedContents_ConfigPropertyNames);
3831
+ const createManagedContentAdapterFactory = (luvio) => {
3832
+ return function createManagedContent(untrustedConfig) {
3833
+ const config = validateAdapterConfig$A(untrustedConfig, createManagedContent_ConfigPropertyNames);
4322
3834
  // Invalid or incomplete config
4323
3835
  if (config === null) {
4324
- throw new Error('Invalid config for "cloneManagedContents"');
3836
+ throw new Error('Invalid config for "createManagedContent"');
4325
3837
  }
4326
3838
  return buildNetworkSnapshot$A(luvio, config);
4327
3839
  };
@@ -4329,7 +3841,7 @@ const cloneManagedContentsAdapterFactory = (luvio) => {
4329
3841
 
4330
3842
  const TTL$o = 100;
4331
3843
  const VERSION$q = "17d0c7553970a191d9ac970ac0cd8666";
4332
- function validate$O(obj, path = 'ManagedContentFileUploadRepresentation') {
3844
+ function validate$R(obj, path = 'ManagedContentFileUploadRepresentation') {
4333
3845
  const v_error = (() => {
4334
3846
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
4335
3847
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -4383,7 +3895,7 @@ function equals$q(existing, incoming) {
4383
3895
  }
4384
3896
  const ingest$p = function ManagedContentFileUploadRepresentationIngest(input, path, luvio, store, timestamp) {
4385
3897
  if (process.env.NODE_ENV !== 'production') {
4386
- const validateError = validate$O(input);
3898
+ const validateError = validate$R(input);
4387
3899
  if (validateError !== null) {
4388
3900
  throw validateError;
4389
3901
  }
@@ -4458,7 +3970,7 @@ function createResourceRequest$z(config) {
4458
3970
  const adapterName$z = 'getManagedContentFileUploadConfig';
4459
3971
  const getManagedContentFileUploadConfig_ConfigPropertyMetadata = [];
4460
3972
  const getManagedContentFileUploadConfig_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$z, getManagedContentFileUploadConfig_ConfigPropertyMetadata);
4461
- const createResourceParams$z = /*#__PURE__*/ createResourceParams$J(getManagedContentFileUploadConfig_ConfigPropertyMetadata);
3973
+ const createResourceParams$z = /*#__PURE__*/ createResourceParams$I(getManagedContentFileUploadConfig_ConfigPropertyMetadata);
4462
3974
  function keyBuilder$P(luvio, config) {
4463
3975
  createResourceParams$z(config);
4464
3976
  return keyBuilder$Q();
@@ -4538,7 +4050,7 @@ const getManagedContentFileUploadConfigAdapterFactory = (luvio) => function CMSA
4538
4050
  buildCachedSnapshotCachePolicy$j, buildNetworkSnapshotCachePolicy$j);
4539
4051
  };
4540
4052
 
4541
- function validate$N(obj, path = 'ManagedContentPublishInputRepresentation') {
4053
+ function validate$Q(obj, path = 'ManagedContentPublishInputRepresentation') {
4542
4054
  const v_error = (() => {
4543
4055
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
4544
4056
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -4598,7 +4110,7 @@ function validate$N(obj, path = 'ManagedContentPublishInputRepresentation') {
4598
4110
 
4599
4111
  const TTL$n = 100;
4600
4112
  const VERSION$p = "789bce2e581ff7969982fbf2ffbfd9a5";
4601
- function validate$M(obj, path = 'ManagedContentPublishOutputRepresentation') {
4113
+ function validate$P(obj, path = 'ManagedContentPublishOutputRepresentation') {
4602
4114
  const v_error = (() => {
4603
4115
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
4604
4116
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -4692,7 +4204,7 @@ function equals$p(existing, incoming) {
4692
4204
  }
4693
4205
  const ingest$o = function ManagedContentPublishOutputRepresentationIngest(input, path, luvio, store, timestamp) {
4694
4206
  if (process.env.NODE_ENV !== 'production') {
4695
- const validateError = validate$M(input);
4207
+ const validateError = validate$P(input);
4696
4208
  if (validateError !== null) {
4697
4209
  throw validateError;
4698
4210
  }
@@ -4754,11 +4266,11 @@ const publishManagedContent_ConfigPropertyMetadata = [
4754
4266
  generateParamConfigMetadata('publishInput', true, 2 /* Body */, 4 /* Unsupported */),
4755
4267
  ];
4756
4268
  const publishManagedContent_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$y, publishManagedContent_ConfigPropertyMetadata);
4757
- const createResourceParams$y = /*#__PURE__*/ createResourceParams$J(publishManagedContent_ConfigPropertyMetadata);
4269
+ const createResourceParams$y = /*#__PURE__*/ createResourceParams$I(publishManagedContent_ConfigPropertyMetadata);
4758
4270
  function typeCheckConfig$y(untrustedConfig) {
4759
4271
  const config = {};
4760
4272
  const untrustedConfig_publishInput = untrustedConfig.publishInput;
4761
- const referenceManagedContentPublishInputRepresentationValidationError = validate$N(untrustedConfig_publishInput);
4273
+ const referenceManagedContentPublishInputRepresentationValidationError = validate$Q(untrustedConfig_publishInput);
4762
4274
  if (referenceManagedContentPublishInputRepresentationValidationError === null) {
4763
4275
  config.publishInput = untrustedConfig_publishInput;
4764
4276
  }
@@ -4806,7 +4318,7 @@ const publishManagedContentAdapterFactory = (luvio) => {
4806
4318
  };
4807
4319
  };
4808
4320
 
4809
- function validate$L(obj, path = 'ManagedContentUnpublishInputRepresentation') {
4321
+ function validate$O(obj, path = 'ManagedContentUnpublishInputRepresentation') {
4810
4322
  const v_error = (() => {
4811
4323
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
4812
4324
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -4852,7 +4364,7 @@ function validate$L(obj, path = 'ManagedContentUnpublishInputRepresentation') {
4852
4364
 
4853
4365
  const TTL$m = 100;
4854
4366
  const VERSION$o = "2f473ff12e87a4fc2336695104ab8567";
4855
- function validate$K(obj, path = 'ManagedContentUnpublishOutputRepresentation') {
4367
+ function validate$N(obj, path = 'ManagedContentUnpublishOutputRepresentation') {
4856
4368
  const v_error = (() => {
4857
4369
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
4858
4370
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -4946,7 +4458,7 @@ function equals$o(existing, incoming) {
4946
4458
  }
4947
4459
  const ingest$n = function ManagedContentUnpublishOutputRepresentationIngest(input, path, luvio, store, timestamp) {
4948
4460
  if (process.env.NODE_ENV !== 'production') {
4949
- const validateError = validate$K(input);
4461
+ const validateError = validate$N(input);
4950
4462
  if (validateError !== null) {
4951
4463
  throw validateError;
4952
4464
  }
@@ -5008,11 +4520,11 @@ const unpublishManagedContent_ConfigPropertyMetadata = [
5008
4520
  generateParamConfigMetadata('unpublishInput', true, 2 /* Body */, 4 /* Unsupported */),
5009
4521
  ];
5010
4522
  const unpublishManagedContent_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$x, unpublishManagedContent_ConfigPropertyMetadata);
5011
- const createResourceParams$x = /*#__PURE__*/ createResourceParams$J(unpublishManagedContent_ConfigPropertyMetadata);
4523
+ const createResourceParams$x = /*#__PURE__*/ createResourceParams$I(unpublishManagedContent_ConfigPropertyMetadata);
5012
4524
  function typeCheckConfig$x(untrustedConfig) {
5013
4525
  const config = {};
5014
4526
  const untrustedConfig_unpublishInput = untrustedConfig.unpublishInput;
5015
- const referenceManagedContentUnpublishInputRepresentationValidationError = validate$L(untrustedConfig_unpublishInput);
4527
+ const referenceManagedContentUnpublishInputRepresentationValidationError = validate$O(untrustedConfig_unpublishInput);
5016
4528
  if (referenceManagedContentUnpublishInputRepresentationValidationError === null) {
5017
4529
  config.unpublishInput = untrustedConfig_unpublishInput;
5018
4530
  }
@@ -5060,7 +4572,7 @@ const unpublishManagedContentAdapterFactory = (luvio) => {
5060
4572
  };
5061
4573
  };
5062
4574
 
5063
- function validate$J(obj, path = 'ManagedContentVariantInputRepresentation') {
4575
+ function validate$M(obj, path = 'ManagedContentVariantInputRepresentation') {
5064
4576
  const v_error = (() => {
5065
4577
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
5066
4578
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -5109,7 +4621,7 @@ function validate$J(obj, path = 'ManagedContentVariantInputRepresentation') {
5109
4621
 
5110
4622
  const TTL$l = 3600000;
5111
4623
  const VERSION$n = "7752c6a8bb6b113a02bfde83f39e5957";
5112
- function validate$I(obj, path = 'ManagedContentVariantRepresentation') {
4624
+ function validate$L(obj, path = 'ManagedContentVariantRepresentation') {
5113
4625
  const v_error = (() => {
5114
4626
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
5115
4627
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -5135,7 +4647,7 @@ function validate$I(obj, path = 'ManagedContentVariantRepresentation') {
5135
4647
  }
5136
4648
  const obj_contentSpace = obj.contentSpace;
5137
4649
  const path_contentSpace = path + '.contentSpace';
5138
- const referencepath_contentSpaceValidationError = validate$Y(obj_contentSpace, path_contentSpace);
4650
+ const referencepath_contentSpaceValidationError = validate$V(obj_contentSpace, path_contentSpace);
5139
4651
  if (referencepath_contentSpaceValidationError !== null) {
5140
4652
  let message = 'Object doesn\'t match ManagedContentSpaceSummaryRepresentation (at "' + path_contentSpace + '")\n';
5141
4653
  message += referencepath_contentSpaceValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -5143,7 +4655,7 @@ function validate$I(obj, path = 'ManagedContentVariantRepresentation') {
5143
4655
  }
5144
4656
  const obj_contentType = obj.contentType;
5145
4657
  const path_contentType = path + '.contentType';
5146
- const referencepath_contentTypeValidationError = validate$1f(obj_contentType, path_contentType);
4658
+ const referencepath_contentTypeValidationError = validate$1c(obj_contentType, path_contentType);
5147
4659
  if (referencepath_contentTypeValidationError !== null) {
5148
4660
  let message = 'Object doesn\'t match ManagedContentTypeSummaryRepresentation (at "' + path_contentType + '")\n';
5149
4661
  message += referencepath_contentTypeValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -5151,7 +4663,7 @@ function validate$I(obj, path = 'ManagedContentVariantRepresentation') {
5151
4663
  }
5152
4664
  const obj_createdBy = obj.createdBy;
5153
4665
  const path_createdBy = path + '.createdBy';
5154
- const referencepath_createdByValidationError = validate$1c(obj_createdBy, path_createdBy);
4666
+ const referencepath_createdByValidationError = validate$19(obj_createdBy, path_createdBy);
5155
4667
  if (referencepath_createdByValidationError !== null) {
5156
4668
  let message = 'Object doesn\'t match ManagedContentUserSummaryRepresentation (at "' + path_createdBy + '")\n';
5157
4669
  message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -5164,7 +4676,7 @@ function validate$I(obj, path = 'ManagedContentVariantRepresentation') {
5164
4676
  }
5165
4677
  const obj_folder = obj.folder;
5166
4678
  const path_folder = path + '.folder';
5167
- const referencepath_folderValidationError = validate$X(obj_folder, path_folder);
4679
+ const referencepath_folderValidationError = validate$U(obj_folder, path_folder);
5168
4680
  if (referencepath_folderValidationError !== null) {
5169
4681
  let message = 'Object doesn\'t match ManagedContentFolderSummaryRepresentation (at "' + path_folder + '")\n';
5170
4682
  message += referencepath_folderValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -5182,7 +4694,7 @@ function validate$I(obj, path = 'ManagedContentVariantRepresentation') {
5182
4694
  }
5183
4695
  const obj_lastModifiedBy = obj.lastModifiedBy;
5184
4696
  const path_lastModifiedBy = path + '.lastModifiedBy';
5185
- const referencepath_lastModifiedByValidationError = validate$1c(obj_lastModifiedBy, path_lastModifiedBy);
4697
+ const referencepath_lastModifiedByValidationError = validate$19(obj_lastModifiedBy, path_lastModifiedBy);
5186
4698
  if (referencepath_lastModifiedByValidationError !== null) {
5187
4699
  let message = 'Object doesn\'t match ManagedContentUserSummaryRepresentation (at "' + path_lastModifiedBy + '")\n';
5188
4700
  message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -5210,7 +4722,7 @@ function validate$I(obj, path = 'ManagedContentVariantRepresentation') {
5210
4722
  }
5211
4723
  const obj_status = obj.status;
5212
4724
  const path_status = path + '.status';
5213
- const referencepath_statusValidationError = validate$W(obj_status, path_status);
4725
+ const referencepath_statusValidationError = validate$T(obj_status, path_status);
5214
4726
  if (referencepath_statusValidationError !== null) {
5215
4727
  let message = 'Object doesn\'t match ManagedContentVariantStatusRepresentation (at "' + path_status + '")\n';
5216
4728
  message += referencepath_statusValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -5258,7 +4770,7 @@ function equals$n(existing, incoming) {
5258
4770
  }
5259
4771
  const ingest$m = function ManagedContentVariantRepresentationIngest(input, path, luvio, store, timestamp) {
5260
4772
  if (process.env.NODE_ENV !== 'production') {
5261
- const validateError = validate$I(input);
4773
+ const validateError = validate$L(input);
5262
4774
  if (validateError !== null) {
5263
4775
  throw validateError;
5264
4776
  }
@@ -5320,11 +4832,11 @@ const createManagedContentVariant_ConfigPropertyMetadata = [
5320
4832
  generateParamConfigMetadata('managedContentVariantInputParam', true, 2 /* Body */, 4 /* Unsupported */),
5321
4833
  ];
5322
4834
  const createManagedContentVariant_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$w, createManagedContentVariant_ConfigPropertyMetadata);
5323
- const createResourceParams$w = /*#__PURE__*/ createResourceParams$J(createManagedContentVariant_ConfigPropertyMetadata);
4835
+ const createResourceParams$w = /*#__PURE__*/ createResourceParams$I(createManagedContentVariant_ConfigPropertyMetadata);
5324
4836
  function typeCheckConfig$w(untrustedConfig) {
5325
4837
  const config = {};
5326
4838
  const untrustedConfig_managedContentVariantInputParam = untrustedConfig.managedContentVariantInputParam;
5327
- const referenceManagedContentVariantInputRepresentationValidationError = validate$J(untrustedConfig_managedContentVariantInputParam);
4839
+ const referenceManagedContentVariantInputRepresentationValidationError = validate$M(untrustedConfig_managedContentVariantInputParam);
5328
4840
  if (referenceManagedContentVariantInputRepresentationValidationError === null) {
5329
4841
  config.managedContentVariantInputParam = untrustedConfig_managedContentVariantInputParam;
5330
4842
  }
@@ -5408,10 +4920,10 @@ const deleteManagedContentVariant_ConfigPropertyMetadata = [
5408
4920
  generateParamConfigMetadata('variantId', true, 0 /* UrlParameter */, 0 /* String */),
5409
4921
  ];
5410
4922
  const deleteManagedContentVariant_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$v, deleteManagedContentVariant_ConfigPropertyMetadata);
5411
- const createResourceParams$v = /*#__PURE__*/ createResourceParams$J(deleteManagedContentVariant_ConfigPropertyMetadata);
4923
+ const createResourceParams$v = /*#__PURE__*/ createResourceParams$I(deleteManagedContentVariant_ConfigPropertyMetadata);
5412
4924
  function typeCheckConfig$v(untrustedConfig) {
5413
4925
  const config = {};
5414
- typeCheckConfig$J(untrustedConfig, config, deleteManagedContentVariant_ConfigPropertyMetadata);
4926
+ typeCheckConfig$I(untrustedConfig, config, deleteManagedContentVariant_ConfigPropertyMetadata);
5415
4927
  return config;
5416
4928
  }
5417
4929
  function validateAdapterConfig$v(untrustedConfig, configPropertyNames) {
@@ -5515,14 +5027,14 @@ const getManagedContentVariant_ConfigPropertyMetadata = [
5515
5027
  generateParamConfigMetadata('variantId', true, 0 /* UrlParameter */, 0 /* String */),
5516
5028
  ];
5517
5029
  const getManagedContentVariant_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$u, getManagedContentVariant_ConfigPropertyMetadata);
5518
- const createResourceParams$u = /*#__PURE__*/ createResourceParams$J(getManagedContentVariant_ConfigPropertyMetadata);
5030
+ const createResourceParams$u = /*#__PURE__*/ createResourceParams$I(getManagedContentVariant_ConfigPropertyMetadata);
5519
5031
  function keyBuilder$J(luvio, config) {
5520
5032
  const resourceParams = createResourceParams$u(config);
5521
5033
  return keyBuilder$K(luvio, resourceParams);
5522
5034
  }
5523
5035
  function typeCheckConfig$u(untrustedConfig) {
5524
5036
  const config = {};
5525
- typeCheckConfig$J(untrustedConfig, config, getManagedContentVariant_ConfigPropertyMetadata);
5037
+ typeCheckConfig$I(untrustedConfig, config, getManagedContentVariant_ConfigPropertyMetadata);
5526
5038
  return config;
5527
5039
  }
5528
5040
  function validateAdapterConfig$u(untrustedConfig, configPropertyNames) {
@@ -5596,7 +5108,7 @@ const getManagedContentVariantAdapterFactory = (luvio) => function CMSAuthoring_
5596
5108
  buildCachedSnapshotCachePolicy$i, buildNetworkSnapshotCachePolicy$i);
5597
5109
  };
5598
5110
 
5599
- function validate$H(obj, path = 'ManagedContentVariantUpdateInputRepresentation') {
5111
+ function validate$K(obj, path = 'ManagedContentVariantUpdateInputRepresentation') {
5600
5112
  const v_error = (() => {
5601
5113
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
5602
5114
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -5676,12 +5188,12 @@ const replaceManagedContentVariant_ConfigPropertyMetadata = [
5676
5188
  generateParamConfigMetadata('ManagedContentVariantInputParam', true, 2 /* Body */, 4 /* Unsupported */),
5677
5189
  ];
5678
5190
  const replaceManagedContentVariant_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$t, replaceManagedContentVariant_ConfigPropertyMetadata);
5679
- const createResourceParams$t = /*#__PURE__*/ createResourceParams$J(replaceManagedContentVariant_ConfigPropertyMetadata);
5191
+ const createResourceParams$t = /*#__PURE__*/ createResourceParams$I(replaceManagedContentVariant_ConfigPropertyMetadata);
5680
5192
  function typeCheckConfig$t(untrustedConfig) {
5681
5193
  const config = {};
5682
- typeCheckConfig$J(untrustedConfig, config, replaceManagedContentVariant_ConfigPropertyMetadata);
5194
+ typeCheckConfig$I(untrustedConfig, config, replaceManagedContentVariant_ConfigPropertyMetadata);
5683
5195
  const untrustedConfig_ManagedContentVariantInputParam = untrustedConfig.ManagedContentVariantInputParam;
5684
- const referenceManagedContentVariantUpdateInputRepresentationValidationError = validate$H(untrustedConfig_ManagedContentVariantInputParam);
5196
+ const referenceManagedContentVariantUpdateInputRepresentationValidationError = validate$K(untrustedConfig_ManagedContentVariantInputParam);
5685
5197
  if (referenceManagedContentVariantUpdateInputRepresentationValidationError === null) {
5686
5198
  config.ManagedContentVariantInputParam = untrustedConfig_ManagedContentVariantInputParam;
5687
5199
  }
@@ -5729,14 +5241,14 @@ const replaceManagedContentVariantAdapterFactory = (luvio) => {
5729
5241
  };
5730
5242
  };
5731
5243
 
5732
- function validate$G(obj, path = 'ManagedContentVariantVersionRepresentation') {
5244
+ function validate$J(obj, path = 'ManagedContentVariantVersionRepresentation') {
5733
5245
  const v_error = (() => {
5734
5246
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
5735
5247
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
5736
5248
  }
5737
5249
  const obj_createdBy = obj.createdBy;
5738
5250
  const path_createdBy = path + '.createdBy';
5739
- const referencepath_createdByValidationError = validate$1c(obj_createdBy, path_createdBy);
5251
+ const referencepath_createdByValidationError = validate$19(obj_createdBy, path_createdBy);
5740
5252
  if (referencepath_createdByValidationError !== null) {
5741
5253
  let message = 'Object doesn\'t match ManagedContentUserSummaryRepresentation (at "' + path_createdBy + '")\n';
5742
5254
  message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -5749,7 +5261,7 @@ function validate$G(obj, path = 'ManagedContentVariantVersionRepresentation') {
5749
5261
  }
5750
5262
  const obj_lastModifiedBy = obj.lastModifiedBy;
5751
5263
  const path_lastModifiedBy = path + '.lastModifiedBy';
5752
- const referencepath_lastModifiedByValidationError = validate$1c(obj_lastModifiedBy, path_lastModifiedBy);
5264
+ const referencepath_lastModifiedByValidationError = validate$19(obj_lastModifiedBy, path_lastModifiedBy);
5753
5265
  if (referencepath_lastModifiedByValidationError !== null) {
5754
5266
  let message = 'Object doesn\'t match ManagedContentUserSummaryRepresentation (at "' + path_lastModifiedBy + '")\n';
5755
5267
  message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -5767,7 +5279,7 @@ function validate$G(obj, path = 'ManagedContentVariantVersionRepresentation') {
5767
5279
  }
5768
5280
  const obj_status = obj.status;
5769
5281
  const path_status = path + '.status';
5770
- const referencepath_statusValidationError = validate$W(obj_status, path_status);
5282
+ const referencepath_statusValidationError = validate$T(obj_status, path_status);
5771
5283
  if (referencepath_statusValidationError !== null) {
5772
5284
  let message = 'Object doesn\'t match ManagedContentVariantStatusRepresentation (at "' + path_status + '")\n';
5773
5285
  message += referencepath_statusValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -5789,7 +5301,7 @@ function validate$G(obj, path = 'ManagedContentVariantVersionRepresentation') {
5789
5301
 
5790
5302
  const TTL$k = 100;
5791
5303
  const VERSION$m = "993f4fe3a5b12699f037079dbe30610b";
5792
- function validate$F(obj, path = 'ManagedContentVariantVersionCollectionRepresentation') {
5304
+ function validate$I(obj, path = 'ManagedContentVariantVersionCollectionRepresentation') {
5793
5305
  const v_error = (() => {
5794
5306
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
5795
5307
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -5819,7 +5331,7 @@ function validate$F(obj, path = 'ManagedContentVariantVersionCollectionRepresent
5819
5331
  for (let i = 0; i < obj_versions.length; i++) {
5820
5332
  const obj_versions_item = obj_versions[i];
5821
5333
  const path_versions_item = path_versions + '[' + i + ']';
5822
- const referencepath_versions_itemValidationError = validate$G(obj_versions_item, path_versions_item);
5334
+ const referencepath_versions_itemValidationError = validate$J(obj_versions_item, path_versions_item);
5823
5335
  if (referencepath_versions_itemValidationError !== null) {
5824
5336
  let message = 'Object doesn\'t match ManagedContentVariantVersionRepresentation (at "' + path_versions_item + '")\n';
5825
5337
  message += referencepath_versions_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -5858,7 +5370,7 @@ function equals$m(existing, incoming) {
5858
5370
  }
5859
5371
  const ingest$l = function ManagedContentVariantVersionCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
5860
5372
  if (process.env.NODE_ENV !== 'production') {
5861
- const validateError = validate$F(input);
5373
+ const validateError = validate$I(input);
5862
5374
  if (validateError !== null) {
5863
5375
  throw validateError;
5864
5376
  }
@@ -5940,14 +5452,14 @@ const getManagedContentVariantVersions_ConfigPropertyMetadata = [
5940
5452
  generateParamConfigMetadata('status', false, 1 /* QueryParameter */, 0 /* String */, true),
5941
5453
  ];
5942
5454
  const getManagedContentVariantVersions_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$s, getManagedContentVariantVersions_ConfigPropertyMetadata);
5943
- const createResourceParams$s = /*#__PURE__*/ createResourceParams$J(getManagedContentVariantVersions_ConfigPropertyMetadata);
5455
+ const createResourceParams$s = /*#__PURE__*/ createResourceParams$I(getManagedContentVariantVersions_ConfigPropertyMetadata);
5944
5456
  function keyBuilder$G(luvio, config) {
5945
5457
  const resourceParams = createResourceParams$s(config);
5946
5458
  return keyBuilder$H(luvio, resourceParams);
5947
5459
  }
5948
5460
  function typeCheckConfig$s(untrustedConfig) {
5949
5461
  const config = {};
5950
- typeCheckConfig$J(untrustedConfig, config, getManagedContentVariantVersions_ConfigPropertyMetadata);
5462
+ typeCheckConfig$I(untrustedConfig, config, getManagedContentVariantVersions_ConfigPropertyMetadata);
5951
5463
  return config;
5952
5464
  }
5953
5465
  function validateAdapterConfig$s(untrustedConfig, configPropertyNames) {
@@ -6021,7 +5533,7 @@ const getManagedContentVariantVersionsAdapterFactory = (luvio) => function CMSAu
6021
5533
  buildCachedSnapshotCachePolicy$h, buildNetworkSnapshotCachePolicy$h);
6022
5534
  };
6023
5535
 
6024
- function validate$E(obj, path = 'ManagedContentWebUrlRedirectInfoInputRepresentation') {
5536
+ function validate$H(obj, path = 'ManagedContentWebUrlRedirectInfoInputRepresentation') {
6025
5537
  const v_error = (() => {
6026
5538
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
6027
5539
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -6035,7 +5547,7 @@ function validate$E(obj, path = 'ManagedContentWebUrlRedirectInfoInputRepresenta
6035
5547
  return v_error === undefined ? null : v_error;
6036
5548
  }
6037
5549
 
6038
- function validate$D(obj, path = 'ManagedContentWebUrlRedirectInfoOutputRepresentation') {
5550
+ function validate$G(obj, path = 'ManagedContentWebUrlRedirectInfoOutputRepresentation') {
6039
5551
  const v_error = (() => {
6040
5552
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
6041
5553
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -6070,7 +5582,7 @@ function validate$D(obj, path = 'ManagedContentWebUrlRedirectInfoOutputRepresent
6070
5582
  return v_error === undefined ? null : v_error;
6071
5583
  }
6072
5584
 
6073
- function validate$C(obj, path = 'ManagedContentSiteInfoRepresentation') {
5585
+ function validate$F(obj, path = 'ManagedContentSiteInfoRepresentation') {
6074
5586
  const v_error = (() => {
6075
5587
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
6076
5588
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -6089,7 +5601,7 @@ function validate$C(obj, path = 'ManagedContentSiteInfoRepresentation') {
6089
5601
  return v_error === undefined ? null : v_error;
6090
5602
  }
6091
5603
 
6092
- function validate$B(obj, path = 'ManagedContentWebUrlInfoRepresentation') {
5604
+ function validate$E(obj, path = 'ManagedContentWebUrlInfoRepresentation') {
6093
5605
  const v_error = (() => {
6094
5606
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
6095
5607
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -6097,7 +5609,7 @@ function validate$B(obj, path = 'ManagedContentWebUrlInfoRepresentation') {
6097
5609
  if (obj.siteInfo !== undefined) {
6098
5610
  const obj_siteInfo = obj.siteInfo;
6099
5611
  const path_siteInfo = path + '.siteInfo';
6100
- const referencepath_siteInfoValidationError = validate$C(obj_siteInfo, path_siteInfo);
5612
+ const referencepath_siteInfoValidationError = validate$F(obj_siteInfo, path_siteInfo);
6101
5613
  if (referencepath_siteInfoValidationError !== null) {
6102
5614
  let message = 'Object doesn\'t match ManagedContentSiteInfoRepresentation (at "' + path_siteInfo + '")\n';
6103
5615
  message += referencepath_siteInfoValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -6115,7 +5627,7 @@ function validate$B(obj, path = 'ManagedContentWebUrlInfoRepresentation') {
6115
5627
 
6116
5628
  const TTL$j = 100;
6117
5629
  const VERSION$l = "e55a316362ca4e75b43fa6c9c1b8a065";
6118
- function validate$A(obj, path = 'ManagedContentWebUrlRepresentation') {
5630
+ function validate$D(obj, path = 'ManagedContentWebUrlRepresentation') {
6119
5631
  const v_error = (() => {
6120
5632
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
6121
5633
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -6132,7 +5644,7 @@ function validate$A(obj, path = 'ManagedContentWebUrlRepresentation') {
6132
5644
  }
6133
5645
  const obj_redirectInfo = obj.redirectInfo;
6134
5646
  const path_redirectInfo = path + '.redirectInfo';
6135
- const referencepath_redirectInfoValidationError = validate$D(obj_redirectInfo, path_redirectInfo);
5647
+ const referencepath_redirectInfoValidationError = validate$G(obj_redirectInfo, path_redirectInfo);
6136
5648
  if (referencepath_redirectInfoValidationError !== null) {
6137
5649
  let message = 'Object doesn\'t match ManagedContentWebUrlRedirectInfoOutputRepresentation (at "' + path_redirectInfo + '")\n';
6138
5650
  message += referencepath_redirectInfoValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -6156,7 +5668,7 @@ function validate$A(obj, path = 'ManagedContentWebUrlRepresentation') {
6156
5668
  for (let i = 0; i < obj_urls.length; i++) {
6157
5669
  const obj_urls_item = obj_urls[i];
6158
5670
  const path_urls_item = path_urls + '[' + i + ']';
6159
- const referencepath_urls_itemValidationError = validate$B(obj_urls_item, path_urls_item);
5671
+ const referencepath_urls_itemValidationError = validate$E(obj_urls_item, path_urls_item);
6160
5672
  if (referencepath_urls_itemValidationError !== null) {
6161
5673
  let message = 'Object doesn\'t match ManagedContentWebUrlInfoRepresentation (at "' + path_urls_item + '")\n';
6162
5674
  message += referencepath_urls_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -6195,7 +5707,7 @@ function equals$l(existing, incoming) {
6195
5707
  }
6196
5708
  const ingest$k = function ManagedContentWebUrlRepresentationIngest(input, path, luvio, store, timestamp) {
6197
5709
  if (process.env.NODE_ENV !== 'production') {
6198
- const validateError = validate$A(input);
5710
+ const validateError = validate$D(input);
6199
5711
  if (validateError !== null) {
6200
5712
  throw validateError;
6201
5713
  }
@@ -6260,12 +5772,12 @@ const updateManagedContentWebUrl_ConfigPropertyMetadata = [
6260
5772
  generateParamConfigMetadata('urlAlias', false, 2 /* Body */, 0 /* String */),
6261
5773
  ];
6262
5774
  const updateManagedContentWebUrl_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$r, updateManagedContentWebUrl_ConfigPropertyMetadata);
6263
- const createResourceParams$r = /*#__PURE__*/ createResourceParams$J(updateManagedContentWebUrl_ConfigPropertyMetadata);
5775
+ const createResourceParams$r = /*#__PURE__*/ createResourceParams$I(updateManagedContentWebUrl_ConfigPropertyMetadata);
6264
5776
  function typeCheckConfig$r(untrustedConfig) {
6265
5777
  const config = {};
6266
- typeCheckConfig$J(untrustedConfig, config, updateManagedContentWebUrl_ConfigPropertyMetadata);
5778
+ typeCheckConfig$I(untrustedConfig, config, updateManagedContentWebUrl_ConfigPropertyMetadata);
6267
5779
  const untrustedConfig_redirectInfo = untrustedConfig.redirectInfo;
6268
- const referenceManagedContentWebUrlRedirectInfoInputRepresentationValidationError = validate$E(untrustedConfig_redirectInfo);
5780
+ const referenceManagedContentWebUrlRedirectInfoInputRepresentationValidationError = validate$H(untrustedConfig_redirectInfo);
6269
5781
  if (referenceManagedContentWebUrlRedirectInfoInputRepresentationValidationError === null) {
6270
5782
  config.redirectInfo = untrustedConfig_redirectInfo;
6271
5783
  }
@@ -6314,22 +5826,22 @@ const updateManagedContentWebUrlAdapterFactory = (luvio) => {
6314
5826
  };
6315
5827
 
6316
5828
  function select$L(luvio, params) {
6317
- return select$11();
5829
+ return select$$();
6318
5830
  }
6319
5831
  function keyBuilder$E(luvio, params) {
6320
- return keyBuilder$S(luvio, {
5832
+ return keyBuilder$R(luvio, {
6321
5833
  content_key: params.urlParams.contentKeyOrId,
6322
5834
  language: params.queryParams.language || '',
6323
5835
  version: params.queryParams.version || ''
6324
5836
  });
6325
5837
  }
6326
5838
  function getResponseCacheKeys$q(storeKeyMap, luvio, resourceParams, response) {
6327
- getTypeCacheKeys$r(storeKeyMap, luvio, response);
5839
+ getTypeCacheKeys$q(storeKeyMap, luvio, response);
6328
5840
  }
6329
5841
  function ingestSuccess$q(luvio, resourceParams, response, snapshotRefresh) {
6330
5842
  const { body } = response;
6331
5843
  const key = keyBuilder$E(luvio, resourceParams);
6332
- luvio.storeIngest(key, ingest$r, body);
5844
+ luvio.storeIngest(key, ingest$q, body);
6333
5845
  const snapshot = luvio.storeLookup({
6334
5846
  recordId: key,
6335
5847
  node: select$L(),
@@ -6347,10 +5859,10 @@ function ingestError$g(luvio, params, error, snapshotRefresh) {
6347
5859
  const key = keyBuilder$E(luvio, params);
6348
5860
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
6349
5861
  const storeMetadataParams = {
6350
- ttl: TTL$q,
5862
+ ttl: TTL$p,
6351
5863
  namespace: keyPrefix,
6352
- version: VERSION$s,
6353
- representationName: RepresentationType$r
5864
+ version: VERSION$r,
5865
+ representationName: RepresentationType$q
6354
5866
  };
6355
5867
  luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
6356
5868
  return errorSnapshot;
@@ -6428,14 +5940,14 @@ const getManagedContent_ConfigPropertyMetadata = [
6428
5940
  generateParamConfigMetadata('version', false, 1 /* QueryParameter */, 0 /* String */),
6429
5941
  ];
6430
5942
  const getManagedContent_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$q, getManagedContent_ConfigPropertyMetadata);
6431
- const createResourceParams$q = /*#__PURE__*/ createResourceParams$J(getManagedContent_ConfigPropertyMetadata);
5943
+ const createResourceParams$q = /*#__PURE__*/ createResourceParams$I(getManagedContent_ConfigPropertyMetadata);
6432
5944
  function keyBuilder$D(luvio, config) {
6433
5945
  const resourceParams = createResourceParams$q(config);
6434
5946
  return keyBuilder$E(luvio, resourceParams);
6435
5947
  }
6436
5948
  function typeCheckConfig$q(untrustedConfig) {
6437
5949
  const config = {};
6438
- typeCheckConfig$J(untrustedConfig, config, getManagedContent_ConfigPropertyMetadata);
5950
+ typeCheckConfig$I(untrustedConfig, config, getManagedContent_ConfigPropertyMetadata);
6439
5951
  return config;
6440
5952
  }
6441
5953
  function validateAdapterConfig$q(untrustedConfig, configPropertyNames) {
@@ -6509,8 +6021,96 @@ const getManagedContentAdapterFactory = (luvio) => function CMSAuthoring__getMan
6509
6021
  buildCachedSnapshotCachePolicy$g, buildNetworkSnapshotCachePolicy$g);
6510
6022
  };
6511
6023
 
6024
+ function validate$C(obj, path = 'ManagedContentCloneStatusRepresentation') {
6025
+ const v_error = (() => {
6026
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
6027
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
6028
+ }
6029
+ const obj_label = obj.label;
6030
+ const path_label = path + '.label';
6031
+ if (typeof obj_label !== 'string') {
6032
+ return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
6033
+ }
6034
+ const obj_status = obj.status;
6035
+ const path_status = path + '.status';
6036
+ if (typeof obj_status !== 'string') {
6037
+ return new TypeError('Expected "string" but received "' + typeof obj_status + '" (at "' + path_status + '")');
6038
+ }
6039
+ })();
6040
+ return v_error === undefined ? null : v_error;
6041
+ }
6042
+
6043
+ function validate$B(obj, path = 'ManagedContentFailedVariantsRepresentation') {
6044
+ const v_error = (() => {
6045
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
6046
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
6047
+ }
6048
+ const obj_errorMessage = obj.errorMessage;
6049
+ const path_errorMessage = path + '.errorMessage';
6050
+ if (typeof obj_errorMessage !== 'string') {
6051
+ return new TypeError('Expected "string" but received "' + typeof obj_errorMessage + '" (at "' + path_errorMessage + '")');
6052
+ }
6053
+ const obj_language = obj.language;
6054
+ const path_language = path + '.language';
6055
+ if (typeof obj_language !== 'string') {
6056
+ return new TypeError('Expected "string" but received "' + typeof obj_language + '" (at "' + path_language + '")');
6057
+ }
6058
+ const obj_sourceManagedContentVariantId = obj.sourceManagedContentVariantId;
6059
+ const path_sourceManagedContentVariantId = path + '.sourceManagedContentVariantId';
6060
+ if (typeof obj_sourceManagedContentVariantId !== 'string') {
6061
+ return new TypeError('Expected "string" but received "' + typeof obj_sourceManagedContentVariantId + '" (at "' + path_sourceManagedContentVariantId + '")');
6062
+ }
6063
+ })();
6064
+ return v_error === undefined ? null : v_error;
6065
+ }
6066
+
6067
+ function validate$A(obj, path = 'ManagedContentClonedVariantRepresentation') {
6068
+ const v_error = (() => {
6069
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
6070
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
6071
+ }
6072
+ const obj_language = obj.language;
6073
+ const path_language = path + '.language';
6074
+ if (typeof obj_language !== 'string') {
6075
+ return new TypeError('Expected "string" but received "' + typeof obj_language + '" (at "' + path_language + '")');
6076
+ }
6077
+ const obj_managedContentVariantId = obj.managedContentVariantId;
6078
+ const path_managedContentVariantId = path + '.managedContentVariantId';
6079
+ if (typeof obj_managedContentVariantId !== 'string') {
6080
+ return new TypeError('Expected "string" but received "' + typeof obj_managedContentVariantId + '" (at "' + path_managedContentVariantId + '")');
6081
+ }
6082
+ const obj_resourceURL = obj.resourceURL;
6083
+ const path_resourceURL = path + '.resourceURL';
6084
+ let obj_resourceURL_union0 = null;
6085
+ const obj_resourceURL_union0_error = (() => {
6086
+ if (typeof obj_resourceURL !== 'string') {
6087
+ return new TypeError('Expected "string" but received "' + typeof obj_resourceURL + '" (at "' + path_resourceURL + '")');
6088
+ }
6089
+ })();
6090
+ if (obj_resourceURL_union0_error != null) {
6091
+ obj_resourceURL_union0 = obj_resourceURL_union0_error.message;
6092
+ }
6093
+ let obj_resourceURL_union1 = null;
6094
+ const obj_resourceURL_union1_error = (() => {
6095
+ if (obj_resourceURL !== null) {
6096
+ return new TypeError('Expected "null" but received "' + typeof obj_resourceURL + '" (at "' + path_resourceURL + '")');
6097
+ }
6098
+ })();
6099
+ if (obj_resourceURL_union1_error != null) {
6100
+ obj_resourceURL_union1 = obj_resourceURL_union1_error.message;
6101
+ }
6102
+ if (obj_resourceURL_union0 && obj_resourceURL_union1) {
6103
+ let message = 'Object doesn\'t match union (at "' + path_resourceURL + '")';
6104
+ message += '\n' + obj_resourceURL_union0.split('\n').map((line) => '\t' + line).join('\n');
6105
+ message += '\n' + obj_resourceURL_union1.split('\n').map((line) => '\t' + line).join('\n');
6106
+ return new TypeError(message);
6107
+ }
6108
+ })();
6109
+ return v_error === undefined ? null : v_error;
6110
+ }
6111
+
6512
6112
  const TTL$i = 100;
6513
- const VERSION$k = "50e3e56d0e2d82a46778008df4bcb1b0";
6113
+ const VERSION$k = "7066162a0da609712a7a7b3fa365ed68";
6514
6114
  function validate$z(obj, path = 'ManagedContentDocumentCloneRepresentation') {
6515
6115
  const v_error = (() => {
6516
6116
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -6546,39 +6146,16 @@ function validate$z(obj, path = 'ManagedContentDocumentCloneRepresentation') {
6546
6146
  }
6547
6147
  const obj_cloneStatus = obj.cloneStatus;
6548
6148
  const path_cloneStatus = path + '.cloneStatus';
6549
- const referencepath_cloneStatusValidationError = validate$T(obj_cloneStatus, path_cloneStatus);
6149
+ const referencepath_cloneStatusValidationError = validate$C(obj_cloneStatus, path_cloneStatus);
6550
6150
  if (referencepath_cloneStatusValidationError !== null) {
6551
6151
  let message = 'Object doesn\'t match ManagedContentCloneStatusRepresentation (at "' + path_cloneStatus + '")\n';
6552
6152
  message += referencepath_cloneStatusValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
6553
6153
  return new TypeError(message);
6554
6154
  }
6555
- if (obj.contentKey !== undefined) {
6556
- const obj_contentKey = obj.contentKey;
6557
- const path_contentKey = path + '.contentKey';
6558
- let obj_contentKey_union0 = null;
6559
- const obj_contentKey_union0_error = (() => {
6560
- if (typeof obj_contentKey !== 'string') {
6561
- return new TypeError('Expected "string" but received "' + typeof obj_contentKey + '" (at "' + path_contentKey + '")');
6562
- }
6563
- })();
6564
- if (obj_contentKey_union0_error != null) {
6565
- obj_contentKey_union0 = obj_contentKey_union0_error.message;
6566
- }
6567
- let obj_contentKey_union1 = null;
6568
- const obj_contentKey_union1_error = (() => {
6569
- if (obj_contentKey !== null) {
6570
- return new TypeError('Expected "null" but received "' + typeof obj_contentKey + '" (at "' + path_contentKey + '")');
6571
- }
6572
- })();
6573
- if (obj_contentKey_union1_error != null) {
6574
- obj_contentKey_union1 = obj_contentKey_union1_error.message;
6575
- }
6576
- if (obj_contentKey_union0 && obj_contentKey_union1) {
6577
- let message = 'Object doesn\'t match union (at "' + path_contentKey + '")';
6578
- message += '\n' + obj_contentKey_union0.split('\n').map((line) => '\t' + line).join('\n');
6579
- message += '\n' + obj_contentKey_union1.split('\n').map((line) => '\t' + line).join('\n');
6580
- return new TypeError(message);
6581
- }
6155
+ const obj_contentKey = obj.contentKey;
6156
+ const path_contentKey = path + '.contentKey';
6157
+ if (typeof obj_contentKey !== 'string') {
6158
+ return new TypeError('Expected "string" but received "' + typeof obj_contentKey + '" (at "' + path_contentKey + '")');
6582
6159
  }
6583
6160
  if (obj.errorMessage !== undefined) {
6584
6161
  const obj_errorMessage = obj.errorMessage;
@@ -6616,7 +6193,7 @@ function validate$z(obj, path = 'ManagedContentDocumentCloneRepresentation') {
6616
6193
  for (let i = 0; i < obj_failedVariants.length; i++) {
6617
6194
  const obj_failedVariants_item = obj_failedVariants[i];
6618
6195
  const path_failedVariants_item = path_failedVariants + '[' + i + ']';
6619
- const referencepath_failedVariants_itemValidationError = validate$S(obj_failedVariants_item, path_failedVariants_item);
6196
+ const referencepath_failedVariants_itemValidationError = validate$B(obj_failedVariants_item, path_failedVariants_item);
6620
6197
  if (referencepath_failedVariants_itemValidationError !== null) {
6621
6198
  let message = 'Object doesn\'t match ManagedContentFailedVariantsRepresentation (at "' + path_failedVariants_item + '")\n';
6622
6199
  message += referencepath_failedVariants_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -6626,7 +6203,7 @@ function validate$z(obj, path = 'ManagedContentDocumentCloneRepresentation') {
6626
6203
  if (obj.folder !== undefined) {
6627
6204
  const obj_folder = obj.folder;
6628
6205
  const path_folder = path + '.folder';
6629
- const referencepath_folderValidationError = validate$X(obj_folder, path_folder);
6206
+ const referencepath_folderValidationError = validate$U(obj_folder, path_folder);
6630
6207
  if (referencepath_folderValidationError !== null) {
6631
6208
  let message = 'Object doesn\'t match ManagedContentFolderSummaryRepresentation (at "' + path_folder + '")\n';
6632
6209
  message += referencepath_folderValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -6730,7 +6307,7 @@ function validate$z(obj, path = 'ManagedContentDocumentCloneRepresentation') {
6730
6307
  for (let i = 0; i < obj_variants.length; i++) {
6731
6308
  const obj_variants_item = obj_variants[i];
6732
6309
  const path_variants_item = path_variants + '[' + i + ']';
6733
- const referencepath_variants_itemValidationError = validate$R(obj_variants_item, path_variants_item);
6310
+ const referencepath_variants_itemValidationError = validate$A(obj_variants_item, path_variants_item);
6734
6311
  if (referencepath_variants_itemValidationError !== null) {
6735
6312
  let message = 'Object doesn\'t match ManagedContentClonedVariantRepresentation (at "' + path_variants_item + '")\n';
6736
6313
  message += referencepath_variants_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -6746,7 +6323,7 @@ function keyBuilder$C(luvio, config) {
6746
6323
  }
6747
6324
  function keyBuilderFromType$6(luvio, object) {
6748
6325
  const keyParams = {
6749
- id: object.sourceContentKeyOrId
6326
+ id: object.contentKey
6750
6327
  };
6751
6328
  return keyBuilder$C(luvio, keyParams);
6752
6329
  }
@@ -6835,10 +6412,10 @@ const cloneManagedContentDocument_ConfigPropertyMetadata = [
6835
6412
  generateParamConfigMetadata('title', false, 2 /* Body */, 0 /* String */),
6836
6413
  ];
6837
6414
  const cloneManagedContentDocument_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$p, cloneManagedContentDocument_ConfigPropertyMetadata);
6838
- const createResourceParams$p = /*#__PURE__*/ createResourceParams$J(cloneManagedContentDocument_ConfigPropertyMetadata);
6415
+ const createResourceParams$p = /*#__PURE__*/ createResourceParams$I(cloneManagedContentDocument_ConfigPropertyMetadata);
6839
6416
  function typeCheckConfig$p(untrustedConfig) {
6840
6417
  const config = {};
6841
- typeCheckConfig$J(untrustedConfig, config, cloneManagedContentDocument_ConfigPropertyMetadata);
6418
+ typeCheckConfig$I(untrustedConfig, config, cloneManagedContentDocument_ConfigPropertyMetadata);
6842
6419
  return config;
6843
6420
  }
6844
6421
  function validateAdapterConfig$p(untrustedConfig, configPropertyNames) {
@@ -7037,14 +6614,14 @@ const getManagedContentVariantRendition_ConfigPropertyMetadata = [
7037
6614
  generateParamConfigMetadata('version', false, 1 /* QueryParameter */, 0 /* String */),
7038
6615
  ];
7039
6616
  const getManagedContentVariantRendition_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$o, getManagedContentVariantRendition_ConfigPropertyMetadata);
7040
- const createResourceParams$o = /*#__PURE__*/ createResourceParams$J(getManagedContentVariantRendition_ConfigPropertyMetadata);
6617
+ const createResourceParams$o = /*#__PURE__*/ createResourceParams$I(getManagedContentVariantRendition_ConfigPropertyMetadata);
7041
6618
  function keyBuilder$A(luvio, config) {
7042
6619
  const resourceParams = createResourceParams$o(config);
7043
6620
  return keyBuilder$B(luvio, resourceParams);
7044
6621
  }
7045
6622
  function typeCheckConfig$o(untrustedConfig) {
7046
6623
  const config = {};
7047
- typeCheckConfig$J(untrustedConfig, config, getManagedContentVariantRendition_ConfigPropertyMetadata);
6624
+ typeCheckConfig$I(untrustedConfig, config, getManagedContentVariantRendition_ConfigPropertyMetadata);
7048
6625
  return config;
7049
6626
  }
7050
6627
  function validateAdapterConfig$o(untrustedConfig, configPropertyNames) {
@@ -7572,14 +7149,14 @@ const getManagedContentTaxonomyTerms_ConfigPropertyMetadata = [
7572
7149
  generateParamConfigMetadata('contentKeyOrId', true, 0 /* UrlParameter */, 0 /* String */),
7573
7150
  ];
7574
7151
  const getManagedContentTaxonomyTerms_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$n, getManagedContentTaxonomyTerms_ConfigPropertyMetadata);
7575
- const createResourceParams$n = /*#__PURE__*/ createResourceParams$J(getManagedContentTaxonomyTerms_ConfigPropertyMetadata);
7152
+ const createResourceParams$n = /*#__PURE__*/ createResourceParams$I(getManagedContentTaxonomyTerms_ConfigPropertyMetadata);
7576
7153
  function keyBuilder$x(luvio, config) {
7577
7154
  const resourceParams = createResourceParams$n(config);
7578
7155
  return keyBuilder$y(luvio, resourceParams);
7579
7156
  }
7580
7157
  function typeCheckConfig$n(untrustedConfig) {
7581
7158
  const config = {};
7582
- typeCheckConfig$J(untrustedConfig, config, getManagedContentTaxonomyTerms_ConfigPropertyMetadata);
7159
+ typeCheckConfig$I(untrustedConfig, config, getManagedContentTaxonomyTerms_ConfigPropertyMetadata);
7583
7160
  return config;
7584
7161
  }
7585
7162
  function validateAdapterConfig$n(untrustedConfig, configPropertyNames) {
@@ -7698,10 +7275,10 @@ const updateManagedContentTaxonomyTerms_ConfigPropertyMetadata = [
7698
7275
  generateParamConfigMetadata('termsToRemove', true, 2 /* Body */, 0 /* String */, true),
7699
7276
  ];
7700
7277
  const updateManagedContentTaxonomyTerms_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$m, updateManagedContentTaxonomyTerms_ConfigPropertyMetadata);
7701
- const createResourceParams$m = /*#__PURE__*/ createResourceParams$J(updateManagedContentTaxonomyTerms_ConfigPropertyMetadata);
7278
+ const createResourceParams$m = /*#__PURE__*/ createResourceParams$I(updateManagedContentTaxonomyTerms_ConfigPropertyMetadata);
7702
7279
  function typeCheckConfig$m(untrustedConfig) {
7703
7280
  const config = {};
7704
- typeCheckConfig$J(untrustedConfig, config, updateManagedContentTaxonomyTerms_ConfigPropertyMetadata);
7281
+ typeCheckConfig$I(untrustedConfig, config, updateManagedContentTaxonomyTerms_ConfigPropertyMetadata);
7705
7282
  return config;
7706
7283
  }
7707
7284
  function validateAdapterConfig$m(untrustedConfig, configPropertyNames) {
@@ -7761,7 +7338,7 @@ function validate$t(obj, path = 'ManagedContentWebUrlsRepresentation') {
7761
7338
  for (let i = 0; i < obj_urlAliases.length; i++) {
7762
7339
  const obj_urlAliases_item = obj_urlAliases[i];
7763
7340
  const path_urlAliases_item = path_urlAliases + '[' + i + ']';
7764
- const referencepath_urlAliases_itemValidationError = validate$A(obj_urlAliases_item, path_urlAliases_item);
7341
+ const referencepath_urlAliases_itemValidationError = validate$D(obj_urlAliases_item, path_urlAliases_item);
7765
7342
  if (referencepath_urlAliases_itemValidationError !== null) {
7766
7343
  let message = 'Object doesn\'t match ManagedContentWebUrlRepresentation (at "' + path_urlAliases_item + '")\n';
7767
7344
  message += referencepath_urlAliases_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -7870,14 +7447,14 @@ const getWebUrls_ConfigPropertyMetadata = [
7870
7447
  generateParamConfigMetadata('pageSize', false, 1 /* QueryParameter */, 3 /* Integer */),
7871
7448
  ];
7872
7449
  const getWebUrls_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$l, getWebUrls_ConfigPropertyMetadata);
7873
- const createResourceParams$l = /*#__PURE__*/ createResourceParams$J(getWebUrls_ConfigPropertyMetadata);
7450
+ const createResourceParams$l = /*#__PURE__*/ createResourceParams$I(getWebUrls_ConfigPropertyMetadata);
7874
7451
  function keyBuilder$v(luvio, config) {
7875
7452
  const resourceParams = createResourceParams$l(config);
7876
7453
  return keyBuilder$w(luvio, resourceParams);
7877
7454
  }
7878
7455
  function typeCheckConfig$l(untrustedConfig) {
7879
7456
  const config = {};
7880
- typeCheckConfig$J(untrustedConfig, config, getWebUrls_ConfigPropertyMetadata);
7457
+ typeCheckConfig$I(untrustedConfig, config, getWebUrls_ConfigPropertyMetadata);
7881
7458
  return config;
7882
7459
  }
7883
7460
  function validateAdapterConfig$l(untrustedConfig, configPropertyNames) {
@@ -7961,7 +7538,7 @@ function validate$s(obj, path = 'AbstractManagedContentReferencedByItemRepresent
7961
7538
  const path_contentType = path + '.contentType';
7962
7539
  let obj_contentType_union0 = null;
7963
7540
  const obj_contentType_union0_error = (() => {
7964
- const referencepath_contentTypeValidationError = validate$1f(obj_contentType, path_contentType);
7541
+ const referencepath_contentTypeValidationError = validate$1c(obj_contentType, path_contentType);
7965
7542
  if (referencepath_contentTypeValidationError !== null) {
7966
7543
  let message = 'Object doesn\'t match ManagedContentTypeSummaryRepresentation (at "' + path_contentType + '")\n';
7967
7544
  message += referencepath_contentTypeValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -8224,14 +7801,14 @@ const getManagedContentReferencedBy_ConfigPropertyMetadata = [
8224
7801
  generateParamConfigMetadata('referenceType', false, 1 /* QueryParameter */, 0 /* String */),
8225
7802
  ];
8226
7803
  const getManagedContentReferencedBy_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$k, getManagedContentReferencedBy_ConfigPropertyMetadata);
8227
- const createResourceParams$k = /*#__PURE__*/ createResourceParams$J(getManagedContentReferencedBy_ConfigPropertyMetadata);
7804
+ const createResourceParams$k = /*#__PURE__*/ createResourceParams$I(getManagedContentReferencedBy_ConfigPropertyMetadata);
8228
7805
  function keyBuilder$t(luvio, config) {
8229
7806
  const resourceParams = createResourceParams$k(config);
8230
7807
  return keyBuilder$u(luvio, resourceParams);
8231
7808
  }
8232
7809
  function typeCheckConfig$k(untrustedConfig) {
8233
7810
  const config = {};
8234
- typeCheckConfig$J(untrustedConfig, config, getManagedContentReferencedBy_ConfigPropertyMetadata);
7811
+ typeCheckConfig$I(untrustedConfig, config, getManagedContentReferencedBy_ConfigPropertyMetadata);
8235
7812
  return config;
8236
7813
  }
8237
7814
  function validateAdapterConfig$k(untrustedConfig, configPropertyNames) {
@@ -8341,7 +7918,7 @@ function validate$p(obj, path = 'ManagedContentVariantReferenceDetailsRepresenta
8341
7918
  }
8342
7919
  const obj_contentType = obj.contentType;
8343
7920
  const path_contentType = path + '.contentType';
8344
- const referencepath_contentTypeValidationError = validate$1f(obj_contentType, path_contentType);
7921
+ const referencepath_contentTypeValidationError = validate$1c(obj_contentType, path_contentType);
8345
7922
  if (referencepath_contentTypeValidationError !== null) {
8346
7923
  let message = 'Object doesn\'t match ManagedContentTypeSummaryRepresentation (at "' + path_contentType + '")\n';
8347
7924
  message += referencepath_contentTypeValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -8349,7 +7926,7 @@ function validate$p(obj, path = 'ManagedContentVariantReferenceDetailsRepresenta
8349
7926
  }
8350
7927
  const obj_createdBy = obj.createdBy;
8351
7928
  const path_createdBy = path + '.createdBy';
8352
- const referencepath_createdByValidationError = validate$1c(obj_createdBy, path_createdBy);
7929
+ const referencepath_createdByValidationError = validate$19(obj_createdBy, path_createdBy);
8353
7930
  if (referencepath_createdByValidationError !== null) {
8354
7931
  let message = 'Object doesn\'t match ManagedContentUserSummaryRepresentation (at "' + path_createdBy + '")\n';
8355
7932
  message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -8375,7 +7952,7 @@ function validate$p(obj, path = 'ManagedContentVariantReferenceDetailsRepresenta
8375
7952
  }
8376
7953
  const obj_lastModifiedBy = obj.lastModifiedBy;
8377
7954
  const path_lastModifiedBy = path + '.lastModifiedBy';
8378
- const referencepath_lastModifiedByValidationError = validate$1c(obj_lastModifiedBy, path_lastModifiedBy);
7955
+ const referencepath_lastModifiedByValidationError = validate$19(obj_lastModifiedBy, path_lastModifiedBy);
8379
7956
  if (referencepath_lastModifiedByValidationError !== null) {
8380
7957
  let message = 'Object doesn\'t match ManagedContentUserSummaryRepresentation (at "' + path_lastModifiedBy + '")\n';
8381
7958
  message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -8408,7 +7985,7 @@ function validate$p(obj, path = 'ManagedContentVariantReferenceDetailsRepresenta
8408
7985
  }
8409
7986
  const obj_status = obj.status;
8410
7987
  const path_status = path + '.status';
8411
- const referencepath_statusValidationError = validate$W(obj_status, path_status);
7988
+ const referencepath_statusValidationError = validate$T(obj_status, path_status);
8412
7989
  if (referencepath_statusValidationError !== null) {
8413
7990
  let message = 'Object doesn\'t match ManagedContentVariantStatusRepresentation (at "' + path_status + '")\n';
8414
7991
  message += referencepath_statusValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -8555,14 +8132,14 @@ const getManagedContentVariantReferences_ConfigPropertyMetadata = [
8555
8132
  generateParamConfigMetadata('variantIds', false, 1 /* QueryParameter */, 0 /* String */, true),
8556
8133
  ];
8557
8134
  const getManagedContentVariantReferences_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$j, getManagedContentVariantReferences_ConfigPropertyMetadata);
8558
- const createResourceParams$j = /*#__PURE__*/ createResourceParams$J(getManagedContentVariantReferences_ConfigPropertyMetadata);
8135
+ const createResourceParams$j = /*#__PURE__*/ createResourceParams$I(getManagedContentVariantReferences_ConfigPropertyMetadata);
8559
8136
  function keyBuilder$r(luvio, config) {
8560
8137
  const resourceParams = createResourceParams$j(config);
8561
8138
  return keyBuilder$s(luvio, resourceParams);
8562
8139
  }
8563
8140
  function typeCheckConfig$j(untrustedConfig) {
8564
8141
  const config = {};
8565
- typeCheckConfig$J(untrustedConfig, config, getManagedContentVariantReferences_ConfigPropertyMetadata);
8142
+ typeCheckConfig$I(untrustedConfig, config, getManagedContentVariantReferences_ConfigPropertyMetadata);
8566
8143
  return config;
8567
8144
  }
8568
8145
  function validateAdapterConfig$j(untrustedConfig, configPropertyNames) {
@@ -8774,10 +8351,10 @@ const postManagedContentSpaceFolder_ConfigPropertyMetadata = [
8774
8351
  generateParamConfigMetadata('parentFolderId', true, 2 /* Body */, 0 /* String */),
8775
8352
  ];
8776
8353
  const postManagedContentSpaceFolder_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$i, postManagedContentSpaceFolder_ConfigPropertyMetadata);
8777
- const createResourceParams$i = /*#__PURE__*/ createResourceParams$J(postManagedContentSpaceFolder_ConfigPropertyMetadata);
8354
+ const createResourceParams$i = /*#__PURE__*/ createResourceParams$I(postManagedContentSpaceFolder_ConfigPropertyMetadata);
8778
8355
  function typeCheckConfig$i(untrustedConfig) {
8779
8356
  const config = {};
8780
- typeCheckConfig$J(untrustedConfig, config, postManagedContentSpaceFolder_ConfigPropertyMetadata);
8357
+ typeCheckConfig$I(untrustedConfig, config, postManagedContentSpaceFolder_ConfigPropertyMetadata);
8781
8358
  return config;
8782
8359
  }
8783
8360
  function validateAdapterConfig$i(untrustedConfig, configPropertyNames) {
@@ -8970,14 +8547,14 @@ const getManagedContentSpaceFolder_ConfigPropertyMetadata = [
8970
8547
  generateParamConfigMetadata('contextContentSpaceId', false, 1 /* QueryParameter */, 0 /* String */),
8971
8548
  ];
8972
8549
  const getManagedContentSpaceFolder_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$h, getManagedContentSpaceFolder_ConfigPropertyMetadata);
8973
- const createResourceParams$h = /*#__PURE__*/ createResourceParams$J(getManagedContentSpaceFolder_ConfigPropertyMetadata);
8550
+ const createResourceParams$h = /*#__PURE__*/ createResourceParams$I(getManagedContentSpaceFolder_ConfigPropertyMetadata);
8974
8551
  function keyBuilder$o(luvio, config) {
8975
8552
  const resourceParams = createResourceParams$h(config);
8976
8553
  return keyBuilder$p(luvio, resourceParams);
8977
8554
  }
8978
8555
  function typeCheckConfig$h(untrustedConfig) {
8979
8556
  const config = {};
8980
- typeCheckConfig$J(untrustedConfig, config, getManagedContentSpaceFolder_ConfigPropertyMetadata);
8557
+ typeCheckConfig$I(untrustedConfig, config, getManagedContentSpaceFolder_ConfigPropertyMetadata);
8981
8558
  return config;
8982
8559
  }
8983
8560
  function validateAdapterConfig$h(untrustedConfig, configPropertyNames) {
@@ -9066,7 +8643,7 @@ function validate$l(obj, path = 'ManagedContentSpaceFolderItemRepresentation') {
9066
8643
  if (obj.contentType !== undefined) {
9067
8644
  const obj_contentType = obj.contentType;
9068
8645
  const path_contentType = path + '.contentType';
9069
- const referencepath_contentTypeValidationError = validate$1f(obj_contentType, path_contentType);
8646
+ const referencepath_contentTypeValidationError = validate$1c(obj_contentType, path_contentType);
9070
8647
  if (referencepath_contentTypeValidationError !== null) {
9071
8648
  let message = 'Object doesn\'t match ManagedContentTypeSummaryRepresentation (at "' + path_contentType + '")\n';
9072
8649
  message += referencepath_contentTypeValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -9335,14 +8912,14 @@ const getManagedContentByFolderId_ConfigPropertyMetadata = [
9335
8912
  generateParamConfigMetadata('showSharedWithSpaceFolder', false, 1 /* QueryParameter */, 1 /* Boolean */),
9336
8913
  ];
9337
8914
  const getManagedContentByFolderId_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$g, getManagedContentByFolderId_ConfigPropertyMetadata);
9338
- const createResourceParams$g = /*#__PURE__*/ createResourceParams$J(getManagedContentByFolderId_ConfigPropertyMetadata);
8915
+ const createResourceParams$g = /*#__PURE__*/ createResourceParams$I(getManagedContentByFolderId_ConfigPropertyMetadata);
9339
8916
  function keyBuilder$m(luvio, config) {
9340
8917
  const resourceParams = createResourceParams$g(config);
9341
8918
  return keyBuilder$n(luvio, resourceParams);
9342
8919
  }
9343
8920
  function typeCheckConfig$g(untrustedConfig) {
9344
8921
  const config = {};
9345
- typeCheckConfig$J(untrustedConfig, config, getManagedContentByFolderId_ConfigPropertyMetadata);
8922
+ typeCheckConfig$I(untrustedConfig, config, getManagedContentByFolderId_ConfigPropertyMetadata);
9346
8923
  return config;
9347
8924
  }
9348
8925
  function validateAdapterConfig$g(untrustedConfig, configPropertyNames) {
@@ -9562,14 +9139,14 @@ const getMCSFolderShareTargets_ConfigPropertyMetadata = [
9562
9139
  generateParamConfigMetadata('folderId', true, 0 /* UrlParameter */, 0 /* String */),
9563
9140
  ];
9564
9141
  const getMCSFolderShareTargets_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$f, getMCSFolderShareTargets_ConfigPropertyMetadata);
9565
- const createResourceParams$f = /*#__PURE__*/ createResourceParams$J(getMCSFolderShareTargets_ConfigPropertyMetadata);
9142
+ const createResourceParams$f = /*#__PURE__*/ createResourceParams$I(getMCSFolderShareTargets_ConfigPropertyMetadata);
9566
9143
  function keyBuilder$k(luvio, config) {
9567
9144
  const resourceParams = createResourceParams$f(config);
9568
9145
  return keyBuilder$l(luvio, resourceParams);
9569
9146
  }
9570
9147
  function typeCheckConfig$f(untrustedConfig) {
9571
9148
  const config = {};
9572
- typeCheckConfig$J(untrustedConfig, config, getMCSFolderShareTargets_ConfigPropertyMetadata);
9149
+ typeCheckConfig$I(untrustedConfig, config, getMCSFolderShareTargets_ConfigPropertyMetadata);
9573
9150
  return config;
9574
9151
  }
9575
9152
  function validateAdapterConfig$f(untrustedConfig, configPropertyNames) {
@@ -9807,14 +9384,14 @@ const getMCSFolderShares_ConfigPropertyMetadata = [
9807
9384
  generateParamConfigMetadata('folderId', true, 0 /* UrlParameter */, 0 /* String */),
9808
9385
  ];
9809
9386
  const getMCSFolderShares_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$e, getMCSFolderShares_ConfigPropertyMetadata);
9810
- const createResourceParams$e = /*#__PURE__*/ createResourceParams$J(getMCSFolderShares_ConfigPropertyMetadata);
9387
+ const createResourceParams$e = /*#__PURE__*/ createResourceParams$I(getMCSFolderShares_ConfigPropertyMetadata);
9811
9388
  function keyBuilder$h(luvio, config) {
9812
9389
  const resourceParams = createResourceParams$e(config);
9813
9390
  return keyBuilder$i(luvio, resourceParams);
9814
9391
  }
9815
9392
  function typeCheckConfig$e(untrustedConfig) {
9816
9393
  const config = {};
9817
- typeCheckConfig$J(untrustedConfig, config, getMCSFolderShares_ConfigPropertyMetadata);
9394
+ typeCheckConfig$I(untrustedConfig, config, getMCSFolderShares_ConfigPropertyMetadata);
9818
9395
  return config;
9819
9396
  }
9820
9397
  function validateAdapterConfig$e(untrustedConfig, configPropertyNames) {
@@ -9946,10 +9523,10 @@ const updateMCSFolderShares_ConfigPropertyMetadata = [
9946
9523
  generateParamConfigMetadata('unshareWith', true, 2 /* Body */, 0 /* String */, true),
9947
9524
  ];
9948
9525
  const updateMCSFolderShares_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$d, updateMCSFolderShares_ConfigPropertyMetadata);
9949
- const createResourceParams$d = /*#__PURE__*/ createResourceParams$J(updateMCSFolderShares_ConfigPropertyMetadata);
9526
+ const createResourceParams$d = /*#__PURE__*/ createResourceParams$I(updateMCSFolderShares_ConfigPropertyMetadata);
9950
9527
  function typeCheckConfig$d(untrustedConfig) {
9951
9528
  const config = {};
9952
- typeCheckConfig$J(untrustedConfig, config, updateMCSFolderShares_ConfigPropertyMetadata);
9529
+ typeCheckConfig$I(untrustedConfig, config, updateMCSFolderShares_ConfigPropertyMetadata);
9953
9530
  const untrustedConfig_shareWith = untrustedConfig.shareWith;
9954
9531
  if (ArrayIsArray$1(untrustedConfig_shareWith)) {
9955
9532
  const untrustedConfig_shareWith_array = [];
@@ -10013,7 +9590,7 @@ function validate$e(obj, path = 'AbstractManagedContentSearchResultRepresentatio
10013
9590
  }
10014
9591
  const obj_createdBy = obj.createdBy;
10015
9592
  const path_createdBy = path + '.createdBy';
10016
- const referencepath_createdByValidationError = validate$1c(obj_createdBy, path_createdBy);
9593
+ const referencepath_createdByValidationError = validate$19(obj_createdBy, path_createdBy);
10017
9594
  if (referencepath_createdByValidationError !== null) {
10018
9595
  let message = 'Object doesn\'t match ManagedContentUserSummaryRepresentation (at "' + path_createdBy + '")\n';
10019
9596
  message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -10026,7 +9603,7 @@ function validate$e(obj, path = 'AbstractManagedContentSearchResultRepresentatio
10026
9603
  }
10027
9604
  const obj_folder = obj.folder;
10028
9605
  const path_folder = path + '.folder';
10029
- const referencepath_folderValidationError = validate$X(obj_folder, path_folder);
9606
+ const referencepath_folderValidationError = validate$U(obj_folder, path_folder);
10030
9607
  if (referencepath_folderValidationError !== null) {
10031
9608
  let message = 'Object doesn\'t match ManagedContentFolderSummaryRepresentation (at "' + path_folder + '")\n';
10032
9609
  message += referencepath_folderValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -10039,7 +9616,7 @@ function validate$e(obj, path = 'AbstractManagedContentSearchResultRepresentatio
10039
9616
  }
10040
9617
  const obj_lastModifiedBy = obj.lastModifiedBy;
10041
9618
  const path_lastModifiedBy = path + '.lastModifiedBy';
10042
- const referencepath_lastModifiedByValidationError = validate$1c(obj_lastModifiedBy, path_lastModifiedBy);
9619
+ const referencepath_lastModifiedByValidationError = validate$19(obj_lastModifiedBy, path_lastModifiedBy);
10043
9620
  if (referencepath_lastModifiedByValidationError !== null) {
10044
9621
  let message = 'Object doesn\'t match ManagedContentUserSummaryRepresentation (at "' + path_lastModifiedBy + '")\n';
10045
9622
  message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -10207,14 +9784,14 @@ const getSearchResults_ConfigPropertyMetadata = [
10207
9784
  generateParamConfigMetadata('scope', false, 1 /* QueryParameter */, 0 /* String */),
10208
9785
  ];
10209
9786
  const getSearchResults_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$c, getSearchResults_ConfigPropertyMetadata);
10210
- const createResourceParams$c = /*#__PURE__*/ createResourceParams$J(getSearchResults_ConfigPropertyMetadata);
9787
+ const createResourceParams$c = /*#__PURE__*/ createResourceParams$I(getSearchResults_ConfigPropertyMetadata);
10211
9788
  function keyBuilder$f(luvio, config) {
10212
9789
  const resourceParams = createResourceParams$c(config);
10213
9790
  return keyBuilder$g(luvio, resourceParams);
10214
9791
  }
10215
9792
  function typeCheckConfig$c(untrustedConfig) {
10216
9793
  const config = {};
10217
- typeCheckConfig$J(untrustedConfig, config, getSearchResults_ConfigPropertyMetadata);
9794
+ typeCheckConfig$I(untrustedConfig, config, getSearchResults_ConfigPropertyMetadata);
10218
9795
  return config;
10219
9796
  }
10220
9797
  function validateAdapterConfig$c(untrustedConfig, configPropertyNames) {
@@ -10289,15 +9866,15 @@ const getSearchResultsAdapterFactory = (luvio) => function CMSAuthoring__getSear
10289
9866
  };
10290
9867
 
10291
9868
  function select$i(luvio, params) {
10292
- return select$1h();
9869
+ return select$1f();
10293
9870
  }
10294
9871
  function getResponseCacheKeys$b(storeKeyMap, luvio, resourceParams, response) {
10295
- getTypeCacheKeys$y(storeKeyMap, luvio, response);
9872
+ getTypeCacheKeys$x(storeKeyMap, luvio, response);
10296
9873
  }
10297
9874
  function ingestSuccess$b(luvio, resourceParams, response) {
10298
9875
  const { body } = response;
10299
- const key = keyBuilderFromType$h(luvio, body);
10300
- luvio.storeIngest(key, ingest$y, body);
9876
+ const key = keyBuilderFromType$g(luvio, body);
9877
+ luvio.storeIngest(key, ingest$x, body);
10301
9878
  const snapshot = luvio.storeLookup({
10302
9879
  recordId: key,
10303
9880
  node: select$i(),
@@ -10338,10 +9915,10 @@ const createSchedule_ConfigPropertyMetadata = [
10338
9915
  generateParamConfigMetadata('versionIds', false, 2 /* Body */, 0 /* String */, true),
10339
9916
  ];
10340
9917
  const createSchedule_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$b, createSchedule_ConfigPropertyMetadata);
10341
- const createResourceParams$b = /*#__PURE__*/ createResourceParams$J(createSchedule_ConfigPropertyMetadata);
9918
+ const createResourceParams$b = /*#__PURE__*/ createResourceParams$I(createSchedule_ConfigPropertyMetadata);
10342
9919
  function typeCheckConfig$b(untrustedConfig) {
10343
9920
  const config = {};
10344
- typeCheckConfig$J(untrustedConfig, config, createSchedule_ConfigPropertyMetadata);
9921
+ typeCheckConfig$I(untrustedConfig, config, createSchedule_ConfigPropertyMetadata);
10345
9922
  return config;
10346
9923
  }
10347
9924
  function validateAdapterConfig$b(untrustedConfig, configPropertyNames) {
@@ -10387,15 +9964,15 @@ const createScheduleAdapterFactory = (luvio) => {
10387
9964
  };
10388
9965
 
10389
9966
  function select$h(luvio, params) {
10390
- return select$1h();
9967
+ return select$1f();
10391
9968
  }
10392
9969
  function getResponseCacheKeys$a(storeKeyMap, luvio, resourceParams, response) {
10393
- getTypeCacheKeys$y(storeKeyMap, luvio, response);
9970
+ getTypeCacheKeys$x(storeKeyMap, luvio, response);
10394
9971
  }
10395
9972
  function ingestSuccess$a(luvio, resourceParams, response) {
10396
9973
  const { body } = response;
10397
- const key = keyBuilderFromType$h(luvio, body);
10398
- luvio.storeIngest(key, ingest$y, body);
9974
+ const key = keyBuilderFromType$g(luvio, body);
9975
+ luvio.storeIngest(key, ingest$x, body);
10399
9976
  const snapshot = luvio.storeLookup({
10400
9977
  recordId: key,
10401
9978
  node: select$h(),
@@ -10430,10 +10007,10 @@ const updateDeployment_ConfigPropertyMetadata = [
10430
10007
  generateParamConfigMetadata('scheduleDate', false, 1 /* QueryParameter */, 0 /* String */),
10431
10008
  ];
10432
10009
  const updateDeployment_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$a, updateDeployment_ConfigPropertyMetadata);
10433
- const createResourceParams$a = /*#__PURE__*/ createResourceParams$J(updateDeployment_ConfigPropertyMetadata);
10010
+ const createResourceParams$a = /*#__PURE__*/ createResourceParams$I(updateDeployment_ConfigPropertyMetadata);
10434
10011
  function typeCheckConfig$a(untrustedConfig) {
10435
10012
  const config = {};
10436
- typeCheckConfig$J(untrustedConfig, config, updateDeployment_ConfigPropertyMetadata);
10013
+ typeCheckConfig$I(untrustedConfig, config, updateDeployment_ConfigPropertyMetadata);
10437
10014
  return config;
10438
10015
  }
10439
10016
  function validateAdapterConfig$a(untrustedConfig, configPropertyNames) {
@@ -10840,14 +10417,14 @@ const getManagedContentSpaces_ConfigPropertyMetadata = [
10840
10417
  generateParamConfigMetadata('nameFragment', false, 1 /* QueryParameter */, 0 /* String */),
10841
10418
  ];
10842
10419
  const getManagedContentSpaces_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$9, getManagedContentSpaces_ConfigPropertyMetadata);
10843
- const createResourceParams$9 = /*#__PURE__*/ createResourceParams$J(getManagedContentSpaces_ConfigPropertyMetadata);
10420
+ const createResourceParams$9 = /*#__PURE__*/ createResourceParams$I(getManagedContentSpaces_ConfigPropertyMetadata);
10844
10421
  function keyBuilder$c(luvio, config) {
10845
10422
  const resourceParams = createResourceParams$9(config);
10846
10423
  return keyBuilder$d(luvio, resourceParams);
10847
10424
  }
10848
10425
  function typeCheckConfig$9(untrustedConfig) {
10849
10426
  const config = {};
10850
- typeCheckConfig$J(untrustedConfig, config, getManagedContentSpaces_ConfigPropertyMetadata);
10427
+ typeCheckConfig$I(untrustedConfig, config, getManagedContentSpaces_ConfigPropertyMetadata);
10851
10428
  return config;
10852
10429
  }
10853
10430
  function validateAdapterConfig$9(untrustedConfig, configPropertyNames) {
@@ -10980,14 +10557,14 @@ const getManagedContentSpace_ConfigPropertyMetadata = [
10980
10557
  generateParamConfigMetadata('contentSpaceId', true, 0 /* UrlParameter */, 0 /* String */),
10981
10558
  ];
10982
10559
  const getManagedContentSpace_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$8, getManagedContentSpace_ConfigPropertyMetadata);
10983
- const createResourceParams$8 = /*#__PURE__*/ createResourceParams$J(getManagedContentSpace_ConfigPropertyMetadata);
10560
+ const createResourceParams$8 = /*#__PURE__*/ createResourceParams$I(getManagedContentSpace_ConfigPropertyMetadata);
10984
10561
  function keyBuilder$a(luvio, config) {
10985
10562
  const resourceParams = createResourceParams$8(config);
10986
10563
  return keyBuilder$b(luvio, resourceParams);
10987
10564
  }
10988
10565
  function typeCheckConfig$8(untrustedConfig) {
10989
10566
  const config = {};
10990
- typeCheckConfig$J(untrustedConfig, config, getManagedContentSpace_ConfigPropertyMetadata);
10567
+ typeCheckConfig$I(untrustedConfig, config, getManagedContentSpace_ConfigPropertyMetadata);
10991
10568
  return config;
10992
10569
  }
10993
10570
  function validateAdapterConfig$8(untrustedConfig, configPropertyNames) {
@@ -11197,10 +10774,10 @@ const patchManagedContentSpace_ConfigPropertyMetadata = [
11197
10774
  generateParamConfigMetadata('ManagedContentSpaceInput', true, 2 /* Body */, 4 /* Unsupported */),
11198
10775
  ];
11199
10776
  const patchManagedContentSpace_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$7, patchManagedContentSpace_ConfigPropertyMetadata);
11200
- const createResourceParams$7 = /*#__PURE__*/ createResourceParams$J(patchManagedContentSpace_ConfigPropertyMetadata);
10777
+ const createResourceParams$7 = /*#__PURE__*/ createResourceParams$I(patchManagedContentSpace_ConfigPropertyMetadata);
11201
10778
  function typeCheckConfig$7(untrustedConfig) {
11202
10779
  const config = {};
11203
- typeCheckConfig$J(untrustedConfig, config, patchManagedContentSpace_ConfigPropertyMetadata);
10780
+ typeCheckConfig$I(untrustedConfig, config, patchManagedContentSpace_ConfigPropertyMetadata);
11204
10781
  const untrustedConfig_ManagedContentSpaceInput = untrustedConfig.ManagedContentSpaceInput;
11205
10782
  const referenceManagedContentSpaceInputRepresentationValidationError = validate$9(untrustedConfig_ManagedContentSpaceInput);
11206
10783
  if (referenceManagedContentSpaceInputRepresentationValidationError === null) {
@@ -11424,14 +11001,14 @@ const getManagedContentSpaceOrchestratorConfig_ConfigPropertyMetadata = [
11424
11001
  generateParamConfigMetadata('contentSpaceId', true, 0 /* UrlParameter */, 0 /* String */),
11425
11002
  ];
11426
11003
  const getManagedContentSpaceOrchestratorConfig_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, getManagedContentSpaceOrchestratorConfig_ConfigPropertyMetadata);
11427
- const createResourceParams$6 = /*#__PURE__*/ createResourceParams$J(getManagedContentSpaceOrchestratorConfig_ConfigPropertyMetadata);
11004
+ const createResourceParams$6 = /*#__PURE__*/ createResourceParams$I(getManagedContentSpaceOrchestratorConfig_ConfigPropertyMetadata);
11428
11005
  function keyBuilder$7(luvio, config) {
11429
11006
  const resourceParams = createResourceParams$6(config);
11430
11007
  return keyBuilder$8(luvio, resourceParams);
11431
11008
  }
11432
11009
  function typeCheckConfig$6(untrustedConfig) {
11433
11010
  const config = {};
11434
- typeCheckConfig$J(untrustedConfig, config, getManagedContentSpaceOrchestratorConfig_ConfigPropertyMetadata);
11011
+ typeCheckConfig$I(untrustedConfig, config, getManagedContentSpaceOrchestratorConfig_ConfigPropertyMetadata);
11435
11012
  return config;
11436
11013
  }
11437
11014
  function validateAdapterConfig$6(untrustedConfig, configPropertyNames) {
@@ -11569,10 +11146,10 @@ const putManagedContentSpaceOrchestratorConfig_ConfigPropertyMetadata = [
11569
11146
  generateParamConfigMetadata('mContentOrchConfigInput', true, 2 /* Body */, 4 /* Unsupported */),
11570
11147
  ];
11571
11148
  const putManagedContentSpaceOrchestratorConfig_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, putManagedContentSpaceOrchestratorConfig_ConfigPropertyMetadata);
11572
- const createResourceParams$5 = /*#__PURE__*/ createResourceParams$J(putManagedContentSpaceOrchestratorConfig_ConfigPropertyMetadata);
11149
+ const createResourceParams$5 = /*#__PURE__*/ createResourceParams$I(putManagedContentSpaceOrchestratorConfig_ConfigPropertyMetadata);
11573
11150
  function typeCheckConfig$5(untrustedConfig) {
11574
11151
  const config = {};
11575
- typeCheckConfig$J(untrustedConfig, config, putManagedContentSpaceOrchestratorConfig_ConfigPropertyMetadata);
11152
+ typeCheckConfig$I(untrustedConfig, config, putManagedContentSpaceOrchestratorConfig_ConfigPropertyMetadata);
11576
11153
  const untrustedConfig_mContentOrchConfigInput = untrustedConfig.mContentOrchConfigInput;
11577
11154
  const referenceManagedContentOrchestratorConfigInputRepresentationValidationError = validate$6(untrustedConfig_mContentOrchConfigInput);
11578
11155
  if (referenceManagedContentOrchestratorConfigInputRepresentationValidationError === null) {
@@ -11637,7 +11214,7 @@ function validate$5(obj, path = 'ManagedContentTypeSummaryCollectionRepresentati
11637
11214
  for (let i = 0; i < obj_contentTypes.length; i++) {
11638
11215
  const obj_contentTypes_item = obj_contentTypes[i];
11639
11216
  const path_contentTypes_item = path_contentTypes + '[' + i + ']';
11640
- const referencepath_contentTypes_itemValidationError = validate$1f(obj_contentTypes_item, path_contentTypes_item);
11217
+ const referencepath_contentTypes_itemValidationError = validate$1c(obj_contentTypes_item, path_contentTypes_item);
11641
11218
  if (referencepath_contentTypes_itemValidationError !== null) {
11642
11219
  let message = 'Object doesn\'t match ManagedContentTypeSummaryRepresentation (at "' + path_contentTypes_item + '")\n';
11643
11220
  message += referencepath_contentTypes_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -11657,7 +11234,7 @@ function normalize$2(input, existing, path, luvio, store, timestamp) {
11657
11234
  return input;
11658
11235
  }
11659
11236
  const select$8 = function ManagedContentTypeSummaryCollectionRepresentationSelect() {
11660
- const { selections: ManagedContentTypeSummaryRepresentation__selections, opaque: ManagedContentTypeSummaryRepresentation__opaque, } = select$1l();
11237
+ const { selections: ManagedContentTypeSummaryRepresentation__selections, opaque: ManagedContentTypeSummaryRepresentation__opaque, } = select$1j();
11661
11238
  return {
11662
11239
  kind: 'Fragment',
11663
11240
  version: VERSION$3,
@@ -11685,7 +11262,7 @@ function equals$3(existing, incoming) {
11685
11262
  const existing_contentTypes = existing.contentTypes;
11686
11263
  const incoming_contentTypes = incoming.contentTypes;
11687
11264
  const equals_contentTypes_items = equalsArray(existing_contentTypes, incoming_contentTypes, (existing_contentTypes_item, incoming_contentTypes_item) => {
11688
- if (!(equals$F(existing_contentTypes_item, incoming_contentTypes_item))) {
11265
+ if (!(equals$E(existing_contentTypes_item, incoming_contentTypes_item))) {
11689
11266
  return false;
11690
11267
  }
11691
11268
  });
@@ -11774,14 +11351,14 @@ const getManagedContentTypesForMixin_ConfigPropertyMetadata = [
11774
11351
  generateParamConfigMetadata('mixinFQN', false, 1 /* QueryParameter */, 0 /* String */),
11775
11352
  ];
11776
11353
  const getManagedContentTypesForMixin_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, getManagedContentTypesForMixin_ConfigPropertyMetadata);
11777
- const createResourceParams$4 = /*#__PURE__*/ createResourceParams$J(getManagedContentTypesForMixin_ConfigPropertyMetadata);
11354
+ const createResourceParams$4 = /*#__PURE__*/ createResourceParams$I(getManagedContentTypesForMixin_ConfigPropertyMetadata);
11778
11355
  function keyBuilder$5(luvio, config) {
11779
11356
  const resourceParams = createResourceParams$4(config);
11780
11357
  return keyBuilder$6(luvio, resourceParams);
11781
11358
  }
11782
11359
  function typeCheckConfig$4(untrustedConfig) {
11783
11360
  const config = {};
11784
- typeCheckConfig$J(untrustedConfig, config, getManagedContentTypesForMixin_ConfigPropertyMetadata);
11361
+ typeCheckConfig$I(untrustedConfig, config, getManagedContentTypesForMixin_ConfigPropertyMetadata);
11785
11362
  return config;
11786
11363
  }
11787
11364
  function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
@@ -12154,10 +11731,10 @@ const createManagedContentExportV2Job_ConfigPropertyMetadata = [
12154
11731
  generateParamConfigMetadata('managedContentV2JobRequest', true, 2 /* Body */, 4 /* Unsupported */),
12155
11732
  ];
12156
11733
  const createManagedContentExportV2Job_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, createManagedContentExportV2Job_ConfigPropertyMetadata);
12157
- const createResourceParams$3 = /*#__PURE__*/ createResourceParams$J(createManagedContentExportV2Job_ConfigPropertyMetadata);
11734
+ const createResourceParams$3 = /*#__PURE__*/ createResourceParams$I(createManagedContentExportV2Job_ConfigPropertyMetadata);
12158
11735
  function typeCheckConfig$3(untrustedConfig) {
12159
11736
  const config = {};
12160
- typeCheckConfig$J(untrustedConfig, config, createManagedContentExportV2Job_ConfigPropertyMetadata);
11737
+ typeCheckConfig$I(untrustedConfig, config, createManagedContentExportV2Job_ConfigPropertyMetadata);
12161
11738
  const untrustedConfig_managedContentV2JobRequest = untrustedConfig.managedContentV2JobRequest;
12162
11739
  const referenceManagedContentExportContentV2JobRequestInputRepresentationValidationError = validate$4(untrustedConfig_managedContentV2JobRequest);
12163
11740
  if (referenceManagedContentExportContentV2JobRequestInputRepresentationValidationError === null) {
@@ -12274,10 +11851,10 @@ const createManagedContentImportV2Job_ConfigPropertyMetadata = [
12274
11851
  generateParamConfigMetadata('managedContentV2JobRequest', true, 2 /* Body */, 4 /* Unsupported */),
12275
11852
  ];
12276
11853
  const createManagedContentImportV2Job_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, createManagedContentImportV2Job_ConfigPropertyMetadata);
12277
- const createResourceParams$2 = /*#__PURE__*/ createResourceParams$J(createManagedContentImportV2Job_ConfigPropertyMetadata);
11854
+ const createResourceParams$2 = /*#__PURE__*/ createResourceParams$I(createManagedContentImportV2Job_ConfigPropertyMetadata);
12278
11855
  function typeCheckConfig$2(untrustedConfig) {
12279
11856
  const config = {};
12280
- typeCheckConfig$J(untrustedConfig, config, createManagedContentImportV2Job_ConfigPropertyMetadata);
11857
+ typeCheckConfig$I(untrustedConfig, config, createManagedContentImportV2Job_ConfigPropertyMetadata);
12281
11858
  const untrustedConfig_managedContentV2JobRequest = untrustedConfig.managedContentV2JobRequest;
12282
11859
  const referenceManagedContentV2JobRequestInputRepresentationValidationError = validate$2(untrustedConfig_managedContentV2JobRequest);
12283
11860
  if (referenceManagedContentV2JobRequestInputRepresentationValidationError === null) {
@@ -12593,14 +12170,14 @@ const getManagedContentPreviews_ConfigPropertyMetadata = [
12593
12170
  generateParamConfigMetadata('managedContentTypeName', false, 1 /* QueryParameter */, 0 /* String */),
12594
12171
  ];
12595
12172
  const getManagedContentPreviews_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, getManagedContentPreviews_ConfigPropertyMetadata);
12596
- const createResourceParams$1 = /*#__PURE__*/ createResourceParams$J(getManagedContentPreviews_ConfigPropertyMetadata);
12173
+ const createResourceParams$1 = /*#__PURE__*/ createResourceParams$I(getManagedContentPreviews_ConfigPropertyMetadata);
12597
12174
  function keyBuilder$2(luvio, config) {
12598
12175
  const resourceParams = createResourceParams$1(config);
12599
12176
  return keyBuilder$3(luvio, resourceParams);
12600
12177
  }
12601
12178
  function typeCheckConfig$1(untrustedConfig) {
12602
12179
  const config = {};
12603
- typeCheckConfig$J(untrustedConfig, config, getManagedContentPreviews_ConfigPropertyMetadata);
12180
+ typeCheckConfig$I(untrustedConfig, config, getManagedContentPreviews_ConfigPropertyMetadata);
12604
12181
  return config;
12605
12182
  }
12606
12183
  function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
@@ -12675,22 +12252,22 @@ const getManagedContentPreviewsAdapterFactory = (luvio) => function CMSAuthoring
12675
12252
  };
12676
12253
 
12677
12254
  function select(luvio, params) {
12678
- return select$11();
12255
+ return select$$();
12679
12256
  }
12680
12257
  function keyBuilder$1(luvio, params) {
12681
- return keyBuilder$S(luvio, {
12258
+ return keyBuilder$R(luvio, {
12682
12259
  content_key: params.urlParams.contentKeyOrId,
12683
12260
  language: params.queryParams.language || '',
12684
12261
  version: params.queryParams.version || ''
12685
12262
  });
12686
12263
  }
12687
12264
  function getResponseCacheKeys(storeKeyMap, luvio, resourceParams, response) {
12688
- getTypeCacheKeys$r(storeKeyMap, luvio, response);
12265
+ getTypeCacheKeys$q(storeKeyMap, luvio, response);
12689
12266
  }
12690
12267
  function ingestSuccess(luvio, resourceParams, response, snapshotRefresh) {
12691
12268
  const { body } = response;
12692
12269
  const key = keyBuilder$1(luvio, resourceParams);
12693
- luvio.storeIngest(key, ingest$r, body);
12270
+ luvio.storeIngest(key, ingest$q, body);
12694
12271
  const snapshot = luvio.storeLookup({
12695
12272
  recordId: key,
12696
12273
  node: select(),
@@ -12708,10 +12285,10 @@ function ingestError(luvio, params, error, snapshotRefresh) {
12708
12285
  const key = keyBuilder$1(luvio, params);
12709
12286
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
12710
12287
  const storeMetadataParams = {
12711
- ttl: TTL$q,
12288
+ ttl: TTL$p,
12712
12289
  namespace: keyPrefix,
12713
- version: VERSION$s,
12714
- representationName: RepresentationType$r
12290
+ version: VERSION$r,
12291
+ representationName: RepresentationType$q
12715
12292
  };
12716
12293
  luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
12717
12294
  return errorSnapshot;
@@ -12790,14 +12367,14 @@ const getManagedContentForSite_ConfigPropertyMetadata = [
12790
12367
  generateParamConfigMetadata('version', false, 1 /* QueryParameter */, 0 /* String */),
12791
12368
  ];
12792
12369
  const getManagedContentForSite_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, getManagedContentForSite_ConfigPropertyMetadata);
12793
- const createResourceParams = /*#__PURE__*/ createResourceParams$J(getManagedContentForSite_ConfigPropertyMetadata);
12370
+ const createResourceParams = /*#__PURE__*/ createResourceParams$I(getManagedContentForSite_ConfigPropertyMetadata);
12794
12371
  function keyBuilder(luvio, config) {
12795
12372
  const resourceParams = createResourceParams(config);
12796
12373
  return keyBuilder$1(luvio, resourceParams);
12797
12374
  }
12798
12375
  function typeCheckConfig(untrustedConfig) {
12799
12376
  const config = {};
12800
- typeCheckConfig$J(untrustedConfig, config, getManagedContentForSite_ConfigPropertyMetadata);
12377
+ typeCheckConfig$I(untrustedConfig, config, getManagedContentForSite_ConfigPropertyMetadata);
12801
12378
  return config;
12802
12379
  }
12803
12380
  function validateAdapterConfig(untrustedConfig, configPropertyNames) {
@@ -12871,4 +12448,4 @@ const getManagedContentForSiteAdapterFactory = (luvio) => function CMSAuthoring_
12871
12448
  buildCachedSnapshotCachePolicy, buildNetworkSnapshotCachePolicy);
12872
12449
  };
12873
12450
 
12874
- export { cloneManagedContentDocumentAdapterFactory, cloneManagedContentsAdapterFactory, createDeploymentAdapterFactory, createManagedContentAdapterFactory, createManagedContentExportV2JobAdapterFactory, createManagedContentImportV2JobAdapterFactory, createManagedContentVariantAdapterFactory, createScheduleAdapterFactory, createTranslationV2JobAdapterFactory, deleteManagedContentVariantAdapterFactory, getAllCMSJobsForSpaceAdapterFactory, getCMSJobForSpaceAdapterFactory, getCollectionItemsAdapterFactory, getDeploymentsAdapterFactory, getMCSFolderShareTargetsAdapterFactory, getMCSFolderSharesAdapterFactory, getManagedContentAdapterFactory, getManagedContentByFolderIdAdapterFactory, getManagedContentFileUploadConfigAdapterFactory, getManagedContentForSiteAdapterFactory, getManagedContentPreviewsAdapterFactory, getManagedContentReferencedByAdapterFactory, getManagedContentSpaceAdapterFactory, getManagedContentSpaceFolderAdapterFactory, getManagedContentSpaceFolderItemsV1AdapterFactory, getManagedContentSpaceOrchestratorConfigAdapterFactory, getManagedContentSpacesAdapterFactory, getManagedContentTaxonomyTermsAdapterFactory, getManagedContentTypesForMixinAdapterFactory, getManagedContentVariantAdapterFactory, getManagedContentVariantReferencesAdapterFactory, getManagedContentVariantRenditionAdapterFactory, getManagedContentVariantVersionsAdapterFactory, getSearchResultsAdapterFactory, getWebUrlsAdapterFactory, patchManagedContentSpaceAdapterFactory, postManagedContentSpaceFolderAdapterFactory, publishManagedContentAdapterFactory, putManagedContentSpaceOrchestratorConfigAdapterFactory, replaceManagedContentVariantAdapterFactory, unpublishManagedContentAdapterFactory, updateDeploymentAdapterFactory, updateMCSFolderSharesAdapterFactory, updateManagedContentTaxonomyTermsAdapterFactory, updateManagedContentWebUrlAdapterFactory };
12451
+ export { cloneManagedContentDocumentAdapterFactory, createDeploymentAdapterFactory, createManagedContentAdapterFactory, createManagedContentExportV2JobAdapterFactory, createManagedContentImportV2JobAdapterFactory, createManagedContentVariantAdapterFactory, createScheduleAdapterFactory, createTranslationV2JobAdapterFactory, deleteManagedContentVariantAdapterFactory, getAllCMSJobsForSpaceAdapterFactory, getCMSJobForSpaceAdapterFactory, getCollectionItemsAdapterFactory, getDeploymentsAdapterFactory, getMCSFolderShareTargetsAdapterFactory, getMCSFolderSharesAdapterFactory, getManagedContentAdapterFactory, getManagedContentByFolderIdAdapterFactory, getManagedContentFileUploadConfigAdapterFactory, getManagedContentForSiteAdapterFactory, getManagedContentPreviewsAdapterFactory, getManagedContentReferencedByAdapterFactory, getManagedContentSpaceAdapterFactory, getManagedContentSpaceFolderAdapterFactory, getManagedContentSpaceFolderItemsV1AdapterFactory, getManagedContentSpaceOrchestratorConfigAdapterFactory, getManagedContentSpacesAdapterFactory, getManagedContentTaxonomyTermsAdapterFactory, getManagedContentTypesForMixinAdapterFactory, getManagedContentVariantAdapterFactory, getManagedContentVariantReferencesAdapterFactory, getManagedContentVariantRenditionAdapterFactory, getManagedContentVariantVersionsAdapterFactory, getSearchResultsAdapterFactory, getWebUrlsAdapterFactory, patchManagedContentSpaceAdapterFactory, postManagedContentSpaceFolderAdapterFactory, publishManagedContentAdapterFactory, putManagedContentSpaceOrchestratorConfigAdapterFactory, replaceManagedContentVariantAdapterFactory, unpublishManagedContentAdapterFactory, updateDeploymentAdapterFactory, updateMCSFolderSharesAdapterFactory, updateManagedContentTaxonomyTermsAdapterFactory, updateManagedContentWebUrlAdapterFactory };