@salesforce/lds-adapters-cms-authoring 1.271.0 → 1.273.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/es/es2018/cms-authoring.js +1210 -599
- package/dist/es/es2018/types/src/generated/adapters/getManagedContentTaxonomyTerms.d.ts +28 -0
- package/dist/es/es2018/types/src/generated/adapters/updateManagedContentTaxonomyTerms.d.ts +17 -0
- package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +2 -0
- package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +5 -1
- package/dist/es/es2018/types/src/generated/resources/getConnectCmsContentTaxonomyTermsByContentKeyOrId.d.ts +16 -0
- package/dist/es/es2018/types/src/generated/resources/patchConnectCmsContentTaxonomyTermsByContentKeyOrId.d.ts +16 -0
- package/dist/es/es2018/types/src/generated/types/ManagedContentDocumentRepresentation.d.ts +4 -1
- package/dist/es/es2018/types/src/generated/types/ManagedContentTaxonomyPathFragmentRepresentation.d.ts +41 -0
- package/dist/es/es2018/types/src/generated/types/ManagedContentTaxonomyPathRepresentation.d.ts +36 -0
- package/dist/es/es2018/types/src/generated/types/ManagedContentTaxonomyTermCollectionRepresentation.d.ts +54 -0
- package/dist/es/es2018/types/src/generated/types/ManagedContentTaxonomyTermRepresentation.d.ts +44 -0
- package/dist/es/es2018/types/src/generated/types/ManagedContentTaxonomyTermsInputRepresentation.d.ts +32 -0
- package/package.json +4 -4
- package/sfdc/index.js +2267 -1597
- package/src/raml/api.raml +105 -0
- package/src/raml/luvio.raml +27 -0
|
@@ -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$
|
|
7
|
+
import { serializeStructuredKey, ingestShape, deepFreeze, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$l, typeCheckConfig as typeCheckConfig$B, StoreKeyMap, createResourceParams as createResourceParams$B } 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$
|
|
97
|
-
function validate$
|
|
96
|
+
const VERSION$z = "7297fb0dbfe8f664d76179a65037c290";
|
|
97
|
+
function validate$12(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$_(obj, path = 'ManagedContentTypeSummaryRepresentation') {
|
|
|
114
114
|
})();
|
|
115
115
|
return v_error === undefined ? null : v_error;
|
|
116
116
|
}
|
|
117
|
-
const select$
|
|
117
|
+
const select$17 = function ManagedContentTypeSummaryRepresentationSelect() {
|
|
118
118
|
return {
|
|
119
119
|
kind: 'Fragment',
|
|
120
|
-
version: VERSION$
|
|
120
|
+
version: VERSION$z,
|
|
121
121
|
private: [],
|
|
122
122
|
selections: [
|
|
123
123
|
{
|
|
@@ -132,7 +132,7 @@ const select$12 = function ManagedContentTypeSummaryRepresentationSelect() {
|
|
|
132
132
|
]
|
|
133
133
|
};
|
|
134
134
|
};
|
|
135
|
-
function equals$
|
|
135
|
+
function equals$z(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$w(existing, incoming) {
|
|
|
154
154
|
return true;
|
|
155
155
|
}
|
|
156
156
|
|
|
157
|
-
const VERSION$
|
|
158
|
-
function validate$
|
|
157
|
+
const VERSION$y = "c30d880a3dba684a405d1cf961af2b76";
|
|
158
|
+
function validate$11(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$Z(obj, path = 'ManagedContentVariantSnapshotSummaryRepresentat
|
|
|
164
164
|
const path_contentType = path + '.contentType';
|
|
165
165
|
let obj_contentType_union0 = null;
|
|
166
166
|
const obj_contentType_union0_error = (() => {
|
|
167
|
-
const referencepath_contentTypeValidationError = validate$
|
|
167
|
+
const referencepath_contentTypeValidationError = validate$12(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$Z(obj, path = 'ManagedContentVariantSnapshotSummaryRepresentat
|
|
|
322
322
|
})();
|
|
323
323
|
return v_error === undefined ? null : v_error;
|
|
324
324
|
}
|
|
325
|
-
const select$
|
|
326
|
-
const { selections: ManagedContentTypeSummaryRepresentation__selections, opaque: ManagedContentTypeSummaryRepresentation__opaque, } = select$
|
|
325
|
+
const select$16 = function ManagedContentVariantSnapshotSummaryRepresentationSelect() {
|
|
326
|
+
const { selections: ManagedContentTypeSummaryRepresentation__selections, opaque: ManagedContentTypeSummaryRepresentation__opaque, } = select$17();
|
|
327
327
|
return {
|
|
328
328
|
kind: 'Fragment',
|
|
329
|
-
version: VERSION$
|
|
329
|
+
version: VERSION$y,
|
|
330
330
|
private: [],
|
|
331
331
|
selections: [
|
|
332
332
|
{
|
|
@@ -358,13 +358,13 @@ const select$11 = function ManagedContentVariantSnapshotSummaryRepresentationSel
|
|
|
358
358
|
]
|
|
359
359
|
};
|
|
360
360
|
};
|
|
361
|
-
function equals$
|
|
361
|
+
function equals$y(existing, incoming) {
|
|
362
362
|
const existing_contentType = existing.contentType;
|
|
363
363
|
const incoming_contentType = incoming.contentType;
|
|
364
364
|
if (!(existing_contentType === incoming_contentType
|
|
365
365
|
|| (existing_contentType != null &&
|
|
366
366
|
incoming_contentType != null &&
|
|
367
|
-
equals$
|
|
367
|
+
equals$z(existing_contentType, incoming_contentType)))) {
|
|
368
368
|
return false;
|
|
369
369
|
}
|
|
370
370
|
const existing_id = existing.id;
|
|
@@ -395,8 +395,8 @@ function equals$v(existing, incoming) {
|
|
|
395
395
|
return true;
|
|
396
396
|
}
|
|
397
397
|
|
|
398
|
-
const VERSION$
|
|
399
|
-
function validate$
|
|
398
|
+
const VERSION$x = "f99d45f1e809783023bfd9dbe2fe4a6c";
|
|
399
|
+
function validate$10(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$Y(obj, path = 'ManagedContentDeploymentItemRepresentation') {
|
|
|
423
423
|
}
|
|
424
424
|
const obj_mcvSnapshotSummary = obj.mcvSnapshotSummary;
|
|
425
425
|
const path_mcvSnapshotSummary = path + '.mcvSnapshotSummary';
|
|
426
|
-
const referencepath_mcvSnapshotSummaryValidationError = validate$
|
|
426
|
+
const referencepath_mcvSnapshotSummaryValidationError = validate$11(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$Y(obj, path = 'ManagedContentDeploymentItemRepresentation') {
|
|
|
489
489
|
})();
|
|
490
490
|
return v_error === undefined ? null : v_error;
|
|
491
491
|
}
|
|
492
|
-
const select$
|
|
493
|
-
const { selections: ManagedContentVariantSnapshotSummaryRepresentation__selections, opaque: ManagedContentVariantSnapshotSummaryRepresentation__opaque, } = select$
|
|
492
|
+
const select$15 = function ManagedContentDeploymentItemRepresentationSelect() {
|
|
493
|
+
const { selections: ManagedContentVariantSnapshotSummaryRepresentation__selections, opaque: ManagedContentVariantSnapshotSummaryRepresentation__opaque, } = select$16();
|
|
494
494
|
return {
|
|
495
495
|
kind: 'Fragment',
|
|
496
|
-
version: VERSION$
|
|
496
|
+
version: VERSION$x,
|
|
497
497
|
private: [],
|
|
498
498
|
selections: [
|
|
499
499
|
{
|
|
@@ -532,7 +532,7 @@ const select$10 = function ManagedContentDeploymentItemRepresentationSelect() {
|
|
|
532
532
|
]
|
|
533
533
|
};
|
|
534
534
|
};
|
|
535
|
-
function equals$
|
|
535
|
+
function equals$x(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$u(existing, incoming) {
|
|
|
560
560
|
}
|
|
561
561
|
const existing_mcvSnapshotSummary = existing.mcvSnapshotSummary;
|
|
562
562
|
const incoming_mcvSnapshotSummary = incoming.mcvSnapshotSummary;
|
|
563
|
-
if (!(equals$
|
|
563
|
+
if (!(equals$y(existing_mcvSnapshotSummary, incoming_mcvSnapshotSummary))) {
|
|
564
564
|
return false;
|
|
565
565
|
}
|
|
566
566
|
const existing_targetId = existing.targetId;
|
|
@@ -576,8 +576,8 @@ function equals$u(existing, incoming) {
|
|
|
576
576
|
return true;
|
|
577
577
|
}
|
|
578
578
|
|
|
579
|
-
const VERSION$
|
|
580
|
-
function validate
|
|
579
|
+
const VERSION$w = "4b75ed6ff448da86412b605f7e775a62";
|
|
580
|
+
function validate$$(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$X(obj, path = 'ManagedContentUserSummaryRepresentation') {
|
|
|
602
602
|
})();
|
|
603
603
|
return v_error === undefined ? null : v_error;
|
|
604
604
|
}
|
|
605
|
-
const select
|
|
605
|
+
const select$14 = function ManagedContentUserSummaryRepresentationSelect() {
|
|
606
606
|
return {
|
|
607
607
|
kind: 'Fragment',
|
|
608
|
-
version: VERSION$
|
|
608
|
+
version: VERSION$w,
|
|
609
609
|
private: [],
|
|
610
610
|
selections: [
|
|
611
611
|
{
|
|
@@ -624,7 +624,7 @@ const select$$ = function ManagedContentUserSummaryRepresentationSelect() {
|
|
|
624
624
|
]
|
|
625
625
|
};
|
|
626
626
|
};
|
|
627
|
-
function equals$
|
|
627
|
+
function equals$w(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$t(existing, incoming) {
|
|
|
651
651
|
return true;
|
|
652
652
|
}
|
|
653
653
|
|
|
654
|
-
const TTL$
|
|
655
|
-
const VERSION$
|
|
656
|
-
function validate$
|
|
654
|
+
const TTL$r = 100;
|
|
655
|
+
const VERSION$v = "f7e3c655efe77a7c9968ade15a6029b1";
|
|
656
|
+
function validate$_(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$W(obj, path = 'ManagedContentDeploymentRepresentation') {
|
|
|
723
723
|
for (let i = 0; i < obj_deploymentItems.length; i++) {
|
|
724
724
|
const obj_deploymentItems_item = obj_deploymentItems[i];
|
|
725
725
|
const path_deploymentItems_item = path_deploymentItems + '[' + i + ']';
|
|
726
|
-
const referencepath_deploymentItems_itemValidationError = validate$
|
|
726
|
+
const referencepath_deploymentItems_itemValidationError = validate$10(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$W(obj, path = 'ManagedContentDeploymentRepresentation') {
|
|
|
786
786
|
const path_lastModifiedBy = path + '.lastModifiedBy';
|
|
787
787
|
let obj_lastModifiedBy_union0 = null;
|
|
788
788
|
const obj_lastModifiedBy_union0_error = (() => {
|
|
789
|
-
const referencepath_lastModifiedByValidationError = validate
|
|
789
|
+
const referencepath_lastModifiedByValidationError = validate$$(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$W(obj, path = 'ManagedContentDeploymentRepresentation') {
|
|
|
840
840
|
})();
|
|
841
841
|
return v_error === undefined ? null : v_error;
|
|
842
842
|
}
|
|
843
|
-
const RepresentationType$
|
|
844
|
-
function keyBuilder$
|
|
845
|
-
return keyPrefix + '::' + RepresentationType$
|
|
843
|
+
const RepresentationType$s = 'ManagedContentDeploymentRepresentation';
|
|
844
|
+
function keyBuilder$U(luvio, config) {
|
|
845
|
+
return keyPrefix + '::' + RepresentationType$s + ':' + config.id;
|
|
846
846
|
}
|
|
847
|
-
function keyBuilderFromType$
|
|
847
|
+
function keyBuilderFromType$d(luvio, object) {
|
|
848
848
|
const keyParams = {
|
|
849
849
|
id: object.deploymentId
|
|
850
850
|
};
|
|
851
|
-
return keyBuilder$
|
|
851
|
+
return keyBuilder$U(luvio, keyParams);
|
|
852
852
|
}
|
|
853
|
-
function normalize$
|
|
853
|
+
function normalize$s(input, existing, path, luvio, store, timestamp) {
|
|
854
854
|
return input;
|
|
855
855
|
}
|
|
856
|
-
const select$
|
|
857
|
-
const { selections: ManagedContentDeploymentItemRepresentation__selections, opaque: ManagedContentDeploymentItemRepresentation__opaque, } = select$
|
|
858
|
-
const { selections: ManagedContentUserSummaryRepresentation__selections, opaque: ManagedContentUserSummaryRepresentation__opaque, } = select
|
|
856
|
+
const select$13 = function ManagedContentDeploymentRepresentationSelect() {
|
|
857
|
+
const { selections: ManagedContentDeploymentItemRepresentation__selections, opaque: ManagedContentDeploymentItemRepresentation__opaque, } = select$15();
|
|
858
|
+
const { selections: ManagedContentUserSummaryRepresentation__selections, opaque: ManagedContentUserSummaryRepresentation__opaque, } = select$14();
|
|
859
859
|
return {
|
|
860
860
|
kind: 'Fragment',
|
|
861
|
-
version: VERSION$
|
|
861
|
+
version: VERSION$v,
|
|
862
862
|
private: [],
|
|
863
863
|
selections: [
|
|
864
864
|
{
|
|
@@ -900,7 +900,7 @@ const select$_ = function ManagedContentDeploymentRepresentationSelect() {
|
|
|
900
900
|
]
|
|
901
901
|
};
|
|
902
902
|
};
|
|
903
|
-
function equals$
|
|
903
|
+
function equals$v(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$s(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$
|
|
922
|
+
if (!(equals$x(existing_deploymentItems_item, incoming_deploymentItems_item))) {
|
|
923
923
|
return false;
|
|
924
924
|
}
|
|
925
925
|
});
|
|
@@ -941,7 +941,7 @@ function equals$s(existing, incoming) {
|
|
|
941
941
|
if (!(existing_lastModifiedBy === incoming_lastModifiedBy
|
|
942
942
|
|| (existing_lastModifiedBy != null &&
|
|
943
943
|
incoming_lastModifiedBy != null &&
|
|
944
|
-
equals$
|
|
944
|
+
equals$w(existing_lastModifiedBy, incoming_lastModifiedBy)))) {
|
|
945
945
|
return false;
|
|
946
946
|
}
|
|
947
947
|
const existing_scheduledDate = existing.scheduledDate;
|
|
@@ -951,31 +951,31 @@ function equals$s(existing, incoming) {
|
|
|
951
951
|
}
|
|
952
952
|
return true;
|
|
953
953
|
}
|
|
954
|
-
const ingest$
|
|
954
|
+
const ingest$s = function ManagedContentDeploymentRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
955
955
|
if (process.env.NODE_ENV !== 'production') {
|
|
956
|
-
const validateError = validate$
|
|
956
|
+
const validateError = validate$_(input);
|
|
957
957
|
if (validateError !== null) {
|
|
958
958
|
throw validateError;
|
|
959
959
|
}
|
|
960
960
|
}
|
|
961
|
-
const key = keyBuilderFromType$
|
|
962
|
-
const ttlToUse = TTL$
|
|
963
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
961
|
+
const key = keyBuilderFromType$d(luvio, input);
|
|
962
|
+
const ttlToUse = TTL$r;
|
|
963
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$s, "CMSAuthoring", VERSION$v, RepresentationType$s, equals$v);
|
|
964
964
|
return createLink(key);
|
|
965
965
|
};
|
|
966
|
-
function getTypeCacheKeys$
|
|
966
|
+
function getTypeCacheKeys$s(rootKeySet, luvio, input, fullPathFactory) {
|
|
967
967
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
968
|
-
const rootKey = keyBuilderFromType$
|
|
968
|
+
const rootKey = keyBuilderFromType$d(luvio, input);
|
|
969
969
|
rootKeySet.set(rootKey, {
|
|
970
970
|
namespace: keyPrefix,
|
|
971
|
-
representationName: RepresentationType$
|
|
971
|
+
representationName: RepresentationType$s,
|
|
972
972
|
mergeable: false
|
|
973
973
|
});
|
|
974
974
|
}
|
|
975
975
|
|
|
976
|
-
const TTL$
|
|
977
|
-
const VERSION$
|
|
978
|
-
function validate$
|
|
976
|
+
const TTL$q = 100;
|
|
977
|
+
const VERSION$u = "b2c15aa80814ecd854e68bf635879e35";
|
|
978
|
+
function validate$Z(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$V(obj, path = 'ManagedContentDeploymentCollectionRepresentatio
|
|
|
1052
1052
|
})();
|
|
1053
1053
|
return v_error === undefined ? null : v_error;
|
|
1054
1054
|
}
|
|
1055
|
-
const RepresentationType$
|
|
1056
|
-
function normalize$
|
|
1055
|
+
const RepresentationType$r = 'ManagedContentDeploymentCollectionRepresentation';
|
|
1056
|
+
function normalize$r(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$
|
|
1062
|
+
input_deployments[i] = ingest$s(input_deployments_item, {
|
|
1063
1063
|
fullPath: input_deployments_item_id,
|
|
1064
1064
|
propertyName: i,
|
|
1065
1065
|
parent: {
|
|
@@ -1072,10 +1072,10 @@ function normalize$o(input, existing, path, luvio, store, timestamp) {
|
|
|
1072
1072
|
}
|
|
1073
1073
|
return input;
|
|
1074
1074
|
}
|
|
1075
|
-
const select$
|
|
1075
|
+
const select$12 = function ManagedContentDeploymentCollectionRepresentationSelect() {
|
|
1076
1076
|
return {
|
|
1077
1077
|
kind: 'Fragment',
|
|
1078
|
-
version: VERSION$
|
|
1078
|
+
version: VERSION$u,
|
|
1079
1079
|
private: [],
|
|
1080
1080
|
selections: [
|
|
1081
1081
|
{
|
|
@@ -1086,7 +1086,7 @@ const select$Z = function ManagedContentDeploymentCollectionRepresentationSelect
|
|
|
1086
1086
|
name: 'deployments',
|
|
1087
1087
|
kind: 'Link',
|
|
1088
1088
|
plural: true,
|
|
1089
|
-
fragment: select$
|
|
1089
|
+
fragment: select$13()
|
|
1090
1090
|
},
|
|
1091
1091
|
{
|
|
1092
1092
|
name: 'nextPageUrl',
|
|
@@ -1099,7 +1099,7 @@ const select$Z = function ManagedContentDeploymentCollectionRepresentationSelect
|
|
|
1099
1099
|
]
|
|
1100
1100
|
};
|
|
1101
1101
|
};
|
|
1102
|
-
function equals$
|
|
1102
|
+
function equals$u(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$r(existing, incoming) {
|
|
|
1127
1127
|
}
|
|
1128
1128
|
return true;
|
|
1129
1129
|
}
|
|
1130
|
-
const ingest$
|
|
1130
|
+
const ingest$r = function ManagedContentDeploymentCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1131
1131
|
if (process.env.NODE_ENV !== 'production') {
|
|
1132
|
-
const validateError = validate$
|
|
1132
|
+
const validateError = validate$Z(input);
|
|
1133
1133
|
if (validateError !== null) {
|
|
1134
1134
|
throw validateError;
|
|
1135
1135
|
}
|
|
1136
1136
|
}
|
|
1137
1137
|
const key = path.fullPath;
|
|
1138
|
-
const ttlToUse = TTL$
|
|
1139
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
1138
|
+
const ttlToUse = TTL$q;
|
|
1139
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$r, "CMSAuthoring", VERSION$u, RepresentationType$r, equals$u);
|
|
1140
1140
|
return createLink(key);
|
|
1141
1141
|
};
|
|
1142
|
-
function getTypeCacheKeys$
|
|
1142
|
+
function getTypeCacheKeys$r(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$
|
|
1147
|
+
representationName: RepresentationType$r,
|
|
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$
|
|
1152
|
+
getTypeCacheKeys$s(rootKeySet, luvio, input.deployments[i]);
|
|
1153
1153
|
}
|
|
1154
1154
|
}
|
|
1155
1155
|
|
|
1156
|
-
function select$
|
|
1157
|
-
return select$
|
|
1156
|
+
function select$11(luvio, params) {
|
|
1157
|
+
return select$12();
|
|
1158
1158
|
}
|
|
1159
|
-
function keyBuilder$
|
|
1159
|
+
function keyBuilder$T(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$
|
|
1163
|
-
getTypeCacheKeys$
|
|
1162
|
+
function getResponseCacheKeys$A(storeKeyMap, luvio, resourceParams, response) {
|
|
1163
|
+
getTypeCacheKeys$r(storeKeyMap, luvio, response, () => keyBuilder$T(luvio, resourceParams));
|
|
1164
1164
|
}
|
|
1165
|
-
function ingestSuccess$
|
|
1165
|
+
function ingestSuccess$A(luvio, resourceParams, response, snapshotRefresh) {
|
|
1166
1166
|
const { body } = response;
|
|
1167
|
-
const key = keyBuilder$
|
|
1168
|
-
luvio.storeIngest(key, ingest$
|
|
1167
|
+
const key = keyBuilder$T(luvio, resourceParams);
|
|
1168
|
+
luvio.storeIngest(key, ingest$r, body);
|
|
1169
1169
|
const snapshot = luvio.storeLookup({
|
|
1170
1170
|
recordId: key,
|
|
1171
|
-
node: select$
|
|
1171
|
+
node: select$11(),
|
|
1172
1172
|
variables: {},
|
|
1173
1173
|
}, snapshotRefresh);
|
|
1174
1174
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -1179,19 +1179,19 @@ function ingestSuccess$y(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
1179
1179
|
deepFreeze(snapshot.data);
|
|
1180
1180
|
return snapshot;
|
|
1181
1181
|
}
|
|
1182
|
-
function ingestError$
|
|
1183
|
-
const key = keyBuilder$
|
|
1182
|
+
function ingestError$k(luvio, params, error, snapshotRefresh) {
|
|
1183
|
+
const key = keyBuilder$T(luvio, params);
|
|
1184
1184
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
1185
1185
|
const storeMetadataParams = {
|
|
1186
|
-
ttl: TTL$
|
|
1186
|
+
ttl: TTL$q,
|
|
1187
1187
|
namespace: keyPrefix,
|
|
1188
|
-
version: VERSION$
|
|
1189
|
-
representationName: RepresentationType$
|
|
1188
|
+
version: VERSION$u,
|
|
1189
|
+
representationName: RepresentationType$r
|
|
1190
1190
|
};
|
|
1191
1191
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
1192
1192
|
return errorSnapshot;
|
|
1193
1193
|
}
|
|
1194
|
-
function createResourceRequest$
|
|
1194
|
+
function createResourceRequest$A(config) {
|
|
1195
1195
|
const headers = {};
|
|
1196
1196
|
return {
|
|
1197
1197
|
baseUri: '/services/data/v61.0',
|
|
@@ -1205,7 +1205,7 @@ function createResourceRequest$y(config) {
|
|
|
1205
1205
|
};
|
|
1206
1206
|
}
|
|
1207
1207
|
|
|
1208
|
-
const adapterName$
|
|
1208
|
+
const adapterName$A = '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$
|
|
1226
|
-
const createResourceParams$
|
|
1227
|
-
function keyBuilder$
|
|
1228
|
-
const resourceParams = createResourceParams$
|
|
1229
|
-
return keyBuilder$
|
|
1225
|
+
const getDeployments_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$A, getDeployments_ConfigPropertyMetadata);
|
|
1226
|
+
const createResourceParams$A = /*#__PURE__*/ createResourceParams$B(getDeployments_ConfigPropertyMetadata);
|
|
1227
|
+
function keyBuilder$S(luvio, config) {
|
|
1228
|
+
const resourceParams = createResourceParams$A(config);
|
|
1229
|
+
return keyBuilder$T(luvio, resourceParams);
|
|
1230
1230
|
}
|
|
1231
|
-
function typeCheckConfig$
|
|
1231
|
+
function typeCheckConfig$A(untrustedConfig) {
|
|
1232
1232
|
const config = {};
|
|
1233
|
-
typeCheckConfig$
|
|
1233
|
+
typeCheckConfig$B(untrustedConfig, config, getDeployments_ConfigPropertyMetadata);
|
|
1234
1234
|
return config;
|
|
1235
1235
|
}
|
|
1236
|
-
function validateAdapterConfig$
|
|
1236
|
+
function validateAdapterConfig$A(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$
|
|
1243
|
+
const config = typeCheckConfig$A(untrustedConfig);
|
|
1244
1244
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
1245
1245
|
return null;
|
|
1246
1246
|
}
|
|
@@ -1252,65 +1252,65 @@ function validateAdapterConfig$y(untrustedConfig, configPropertyNames) {
|
|
|
1252
1252
|
}
|
|
1253
1253
|
return config;
|
|
1254
1254
|
}
|
|
1255
|
-
function adapterFragment$
|
|
1256
|
-
createResourceParams$
|
|
1257
|
-
return select$
|
|
1255
|
+
function adapterFragment$k(luvio, config) {
|
|
1256
|
+
createResourceParams$A(config);
|
|
1257
|
+
return select$11();
|
|
1258
1258
|
}
|
|
1259
|
-
function onFetchResponseSuccess$
|
|
1260
|
-
const snapshot = ingestSuccess$
|
|
1259
|
+
function onFetchResponseSuccess$m(luvio, config, resourceParams, response) {
|
|
1260
|
+
const snapshot = ingestSuccess$A(luvio, resourceParams, response, {
|
|
1261
1261
|
config,
|
|
1262
|
-
resolve: () => buildNetworkSnapshot$
|
|
1262
|
+
resolve: () => buildNetworkSnapshot$A(luvio, config, snapshotRefreshOptions)
|
|
1263
1263
|
});
|
|
1264
1264
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
1265
1265
|
}
|
|
1266
|
-
function onFetchResponseError$
|
|
1267
|
-
const snapshot = ingestError$
|
|
1266
|
+
function onFetchResponseError$k(luvio, config, resourceParams, response) {
|
|
1267
|
+
const snapshot = ingestError$k(luvio, resourceParams, response, {
|
|
1268
1268
|
config,
|
|
1269
|
-
resolve: () => buildNetworkSnapshot$
|
|
1269
|
+
resolve: () => buildNetworkSnapshot$A(luvio, config, snapshotRefreshOptions)
|
|
1270
1270
|
});
|
|
1271
1271
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
1272
1272
|
}
|
|
1273
|
-
function buildNetworkSnapshot$
|
|
1274
|
-
const resourceParams = createResourceParams$
|
|
1275
|
-
const request = createResourceRequest$
|
|
1273
|
+
function buildNetworkSnapshot$A(luvio, config, options) {
|
|
1274
|
+
const resourceParams = createResourceParams$A(config);
|
|
1275
|
+
const request = createResourceRequest$A(resourceParams);
|
|
1276
1276
|
return luvio.dispatchResourceRequest(request, options)
|
|
1277
1277
|
.then((response) => {
|
|
1278
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
1278
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$m(luvio, config, resourceParams, response), () => {
|
|
1279
1279
|
const cache = new StoreKeyMap();
|
|
1280
|
-
getResponseCacheKeys$
|
|
1280
|
+
getResponseCacheKeys$A(cache, luvio, resourceParams, response.body);
|
|
1281
1281
|
return cache;
|
|
1282
1282
|
});
|
|
1283
1283
|
}, (response) => {
|
|
1284
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
1284
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$k(luvio, config, resourceParams, response));
|
|
1285
1285
|
});
|
|
1286
1286
|
}
|
|
1287
|
-
function buildNetworkSnapshotCachePolicy$
|
|
1288
|
-
return buildNetworkSnapshotCachePolicy$
|
|
1287
|
+
function buildNetworkSnapshotCachePolicy$k(context, coercedAdapterRequestContext) {
|
|
1288
|
+
return buildNetworkSnapshotCachePolicy$l(context, coercedAdapterRequestContext, buildNetworkSnapshot$A, undefined, false);
|
|
1289
1289
|
}
|
|
1290
|
-
function buildCachedSnapshotCachePolicy$
|
|
1290
|
+
function buildCachedSnapshotCachePolicy$k(context, storeLookup) {
|
|
1291
1291
|
const { luvio, config } = context;
|
|
1292
1292
|
const selector = {
|
|
1293
|
-
recordId: keyBuilder$
|
|
1294
|
-
node: adapterFragment$
|
|
1293
|
+
recordId: keyBuilder$S(luvio, config),
|
|
1294
|
+
node: adapterFragment$k(luvio, config),
|
|
1295
1295
|
variables: {},
|
|
1296
1296
|
};
|
|
1297
1297
|
const cacheSnapshot = storeLookup(selector, {
|
|
1298
1298
|
config,
|
|
1299
|
-
resolve: () => buildNetworkSnapshot$
|
|
1299
|
+
resolve: () => buildNetworkSnapshot$A(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$
|
|
1304
|
+
const config = validateAdapterConfig$A(untrustedConfig, getDeployments_ConfigPropertyNames);
|
|
1305
1305
|
// Invalid or incomplete config
|
|
1306
1306
|
if (config === null) {
|
|
1307
1307
|
return null;
|
|
1308
1308
|
}
|
|
1309
1309
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
1310
|
-
buildCachedSnapshotCachePolicy$
|
|
1310
|
+
buildCachedSnapshotCachePolicy$k, buildNetworkSnapshotCachePolicy$k);
|
|
1311
1311
|
};
|
|
1312
1312
|
|
|
1313
|
-
function validate$
|
|
1313
|
+
function validate$Y(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$U(obj, path = 'ManagedContentDeploymentInputRepresentation') {
|
|
|
1394
1394
|
return v_error === undefined ? null : v_error;
|
|
1395
1395
|
}
|
|
1396
1396
|
|
|
1397
|
-
function select$
|
|
1398
|
-
return select$
|
|
1397
|
+
function select$10(luvio, params) {
|
|
1398
|
+
return select$13();
|
|
1399
1399
|
}
|
|
1400
|
-
function getResponseCacheKeys$
|
|
1401
|
-
getTypeCacheKeys$
|
|
1400
|
+
function getResponseCacheKeys$z(storeKeyMap, luvio, resourceParams, response) {
|
|
1401
|
+
getTypeCacheKeys$s(storeKeyMap, luvio, response);
|
|
1402
1402
|
}
|
|
1403
|
-
function ingestSuccess$
|
|
1403
|
+
function ingestSuccess$z(luvio, resourceParams, response) {
|
|
1404
1404
|
const { body } = response;
|
|
1405
|
-
const key = keyBuilderFromType$
|
|
1406
|
-
luvio.storeIngest(key, ingest$
|
|
1405
|
+
const key = keyBuilderFromType$d(luvio, body);
|
|
1406
|
+
luvio.storeIngest(key, ingest$s, body);
|
|
1407
1407
|
const snapshot = luvio.storeLookup({
|
|
1408
1408
|
recordId: key,
|
|
1409
|
-
node: select$
|
|
1409
|
+
node: select$10(),
|
|
1410
1410
|
variables: {},
|
|
1411
1411
|
});
|
|
1412
1412
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -1417,7 +1417,7 @@ function ingestSuccess$x(luvio, resourceParams, response) {
|
|
|
1417
1417
|
deepFreeze(snapshot.data);
|
|
1418
1418
|
return snapshot;
|
|
1419
1419
|
}
|
|
1420
|
-
function createResourceRequest$
|
|
1420
|
+
function createResourceRequest$z(config) {
|
|
1421
1421
|
const headers = {};
|
|
1422
1422
|
return {
|
|
1423
1423
|
baseUri: '/services/data/v61.0',
|
|
@@ -1431,45 +1431,45 @@ function createResourceRequest$x(config) {
|
|
|
1431
1431
|
};
|
|
1432
1432
|
}
|
|
1433
1433
|
|
|
1434
|
-
const adapterName$
|
|
1434
|
+
const adapterName$z = 'createDeployment';
|
|
1435
1435
|
const createDeployment_ConfigPropertyMetadata = [
|
|
1436
1436
|
generateParamConfigMetadata('DeploymentInput', true, 2 /* Body */, 4 /* Unsupported */),
|
|
1437
1437
|
];
|
|
1438
|
-
const createDeployment_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
1439
|
-
const createResourceParams$
|
|
1440
|
-
function typeCheckConfig$
|
|
1438
|
+
const createDeployment_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$z, createDeployment_ConfigPropertyMetadata);
|
|
1439
|
+
const createResourceParams$z = /*#__PURE__*/ createResourceParams$B(createDeployment_ConfigPropertyMetadata);
|
|
1440
|
+
function typeCheckConfig$z(untrustedConfig) {
|
|
1441
1441
|
const config = {};
|
|
1442
1442
|
const untrustedConfig_DeploymentInput = untrustedConfig.DeploymentInput;
|
|
1443
|
-
const referenceManagedContentDeploymentInputRepresentationValidationError = validate$
|
|
1443
|
+
const referenceManagedContentDeploymentInputRepresentationValidationError = validate$Y(untrustedConfig_DeploymentInput);
|
|
1444
1444
|
if (referenceManagedContentDeploymentInputRepresentationValidationError === null) {
|
|
1445
1445
|
config.DeploymentInput = untrustedConfig_DeploymentInput;
|
|
1446
1446
|
}
|
|
1447
1447
|
return config;
|
|
1448
1448
|
}
|
|
1449
|
-
function validateAdapterConfig$
|
|
1449
|
+
function validateAdapterConfig$z(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$
|
|
1456
|
+
const config = typeCheckConfig$z(untrustedConfig);
|
|
1457
1457
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
1458
1458
|
return null;
|
|
1459
1459
|
}
|
|
1460
1460
|
return config;
|
|
1461
1461
|
}
|
|
1462
|
-
function buildNetworkSnapshot$
|
|
1463
|
-
const resourceParams = createResourceParams$
|
|
1464
|
-
const request = createResourceRequest$
|
|
1462
|
+
function buildNetworkSnapshot$z(luvio, config, options) {
|
|
1463
|
+
const resourceParams = createResourceParams$z(config);
|
|
1464
|
+
const request = createResourceRequest$z(resourceParams);
|
|
1465
1465
|
return luvio.dispatchResourceRequest(request, options)
|
|
1466
1466
|
.then((response) => {
|
|
1467
1467
|
return luvio.handleSuccessResponse(() => {
|
|
1468
|
-
const snapshot = ingestSuccess$
|
|
1468
|
+
const snapshot = ingestSuccess$z(luvio, resourceParams, response);
|
|
1469
1469
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
1470
1470
|
}, () => {
|
|
1471
1471
|
const cache = new StoreKeyMap();
|
|
1472
|
-
getResponseCacheKeys$
|
|
1472
|
+
getResponseCacheKeys$z(cache, luvio, resourceParams, response.body);
|
|
1473
1473
|
return cache;
|
|
1474
1474
|
});
|
|
1475
1475
|
}, (response) => {
|
|
@@ -1479,17 +1479,17 @@ function buildNetworkSnapshot$x(luvio, config, options) {
|
|
|
1479
1479
|
}
|
|
1480
1480
|
const createDeploymentAdapterFactory = (luvio) => {
|
|
1481
1481
|
return function createDeployment(untrustedConfig) {
|
|
1482
|
-
const config = validateAdapterConfig$
|
|
1482
|
+
const config = validateAdapterConfig$z(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$
|
|
1487
|
+
return buildNetworkSnapshot$z(luvio, config);
|
|
1488
1488
|
};
|
|
1489
1489
|
};
|
|
1490
1490
|
|
|
1491
|
-
const VERSION$
|
|
1492
|
-
function validate$
|
|
1491
|
+
const VERSION$t = "7e57fd77c4503be9a8822f2603a04df3";
|
|
1492
|
+
function validate$X(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$T(obj, path = 'ManagedContentJobBodyRepresentation') {
|
|
|
1517
1517
|
})();
|
|
1518
1518
|
return v_error === undefined ? null : v_error;
|
|
1519
1519
|
}
|
|
1520
|
-
const select
|
|
1520
|
+
const select$$ = function ManagedContentJobBodyRepresentationSelect() {
|
|
1521
1521
|
return {
|
|
1522
1522
|
kind: 'Fragment',
|
|
1523
|
-
version: VERSION$
|
|
1523
|
+
version: VERSION$t,
|
|
1524
1524
|
private: [],
|
|
1525
1525
|
selections: [
|
|
1526
1526
|
{
|
|
@@ -1542,7 +1542,7 @@ const select$W = function ManagedContentJobBodyRepresentationSelect() {
|
|
|
1542
1542
|
]
|
|
1543
1543
|
};
|
|
1544
1544
|
};
|
|
1545
|
-
function equals$
|
|
1545
|
+
function equals$t(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$q(existing, incoming) {
|
|
|
1566
1566
|
return true;
|
|
1567
1567
|
}
|
|
1568
1568
|
|
|
1569
|
-
const VERSION$
|
|
1570
|
-
function validate$
|
|
1569
|
+
const VERSION$s = "eba1876bba76cb05d9cbb8a968bd6796";
|
|
1570
|
+
function validate$W(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$S(obj, path = 'ManagedContentJobBodyCollectionRepresentation')
|
|
|
1580
1580
|
for (let i = 0; i < obj_jobBodies.length; i++) {
|
|
1581
1581
|
const obj_jobBodies_item = obj_jobBodies[i];
|
|
1582
1582
|
const path_jobBodies_item = path_jobBodies + '[' + i + ']';
|
|
1583
|
-
const referencepath_jobBodies_itemValidationError = validate$
|
|
1583
|
+
const referencepath_jobBodies_itemValidationError = validate$X(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$S(obj, path = 'ManagedContentJobBodyCollectionRepresentation')
|
|
|
1590
1590
|
})();
|
|
1591
1591
|
return v_error === undefined ? null : v_error;
|
|
1592
1592
|
}
|
|
1593
|
-
const select$
|
|
1594
|
-
const { selections: ManagedContentJobBodyRepresentation__selections, opaque: ManagedContentJobBodyRepresentation__opaque, } = select
|
|
1593
|
+
const select$_ = function ManagedContentJobBodyCollectionRepresentationSelect() {
|
|
1594
|
+
const { selections: ManagedContentJobBodyRepresentation__selections, opaque: ManagedContentJobBodyRepresentation__opaque, } = select$$();
|
|
1595
1595
|
return {
|
|
1596
1596
|
kind: 'Fragment',
|
|
1597
|
-
version: VERSION$
|
|
1597
|
+
version: VERSION$s,
|
|
1598
1598
|
private: [],
|
|
1599
1599
|
selections: [
|
|
1600
1600
|
{
|
|
@@ -1606,11 +1606,11 @@ const select$V = function ManagedContentJobBodyCollectionRepresentationSelect()
|
|
|
1606
1606
|
]
|
|
1607
1607
|
};
|
|
1608
1608
|
};
|
|
1609
|
-
function equals$
|
|
1609
|
+
function equals$s(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$
|
|
1613
|
+
if (!(equals$t(existing_jobBodies_item, incoming_jobBodies_item))) {
|
|
1614
1614
|
return false;
|
|
1615
1615
|
}
|
|
1616
1616
|
});
|
|
@@ -1620,9 +1620,9 @@ function equals$p(existing, incoming) {
|
|
|
1620
1620
|
return true;
|
|
1621
1621
|
}
|
|
1622
1622
|
|
|
1623
|
-
const TTL$
|
|
1624
|
-
const VERSION$
|
|
1625
|
-
function validate$
|
|
1623
|
+
const TTL$p = 100;
|
|
1624
|
+
const VERSION$r = "9c2de7843d4d4e7784d56c7f83c58f0e";
|
|
1625
|
+
function validate$V(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$R(obj, path = 'ManagedContentV2JobDetailRepresentation') {
|
|
|
1631
1631
|
const path_body = path + '.body';
|
|
1632
1632
|
let obj_body_union0 = null;
|
|
1633
1633
|
const obj_body_union0_error = (() => {
|
|
1634
|
-
const referencepath_bodyValidationError = validate$
|
|
1634
|
+
const referencepath_bodyValidationError = validate$W(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$R(obj, path = 'ManagedContentV2JobDetailRepresentation') {
|
|
|
1725
1725
|
})();
|
|
1726
1726
|
return v_error === undefined ? null : v_error;
|
|
1727
1727
|
}
|
|
1728
|
-
const RepresentationType$
|
|
1729
|
-
function keyBuilder$
|
|
1730
|
-
return keyPrefix + '::' + RepresentationType$
|
|
1728
|
+
const RepresentationType$q = 'ManagedContentV2JobDetailRepresentation';
|
|
1729
|
+
function keyBuilder$R(luvio, config) {
|
|
1730
|
+
return keyPrefix + '::' + RepresentationType$q + ':' + config.id;
|
|
1731
1731
|
}
|
|
1732
|
-
function keyBuilderFromType$
|
|
1732
|
+
function keyBuilderFromType$c(luvio, object) {
|
|
1733
1733
|
const keyParams = {
|
|
1734
1734
|
id: object.id
|
|
1735
1735
|
};
|
|
1736
|
-
return keyBuilder$
|
|
1736
|
+
return keyBuilder$R(luvio, keyParams);
|
|
1737
1737
|
}
|
|
1738
|
-
function normalize$
|
|
1738
|
+
function normalize$q(input, existing, path, luvio, store, timestamp) {
|
|
1739
1739
|
return input;
|
|
1740
1740
|
}
|
|
1741
|
-
const select$
|
|
1742
|
-
const { selections: ManagedContentJobBodyCollectionRepresentation__selections, opaque: ManagedContentJobBodyCollectionRepresentation__opaque, } = select$
|
|
1741
|
+
const select$Z = function ManagedContentV2JobDetailRepresentationSelect() {
|
|
1742
|
+
const { selections: ManagedContentJobBodyCollectionRepresentation__selections, opaque: ManagedContentJobBodyCollectionRepresentation__opaque, } = select$_();
|
|
1743
1743
|
return {
|
|
1744
1744
|
kind: 'Fragment',
|
|
1745
|
-
version: VERSION$
|
|
1745
|
+
version: VERSION$r,
|
|
1746
1746
|
private: [],
|
|
1747
1747
|
selections: [
|
|
1748
1748
|
{
|
|
@@ -1790,7 +1790,7 @@ const select$U = function ManagedContentV2JobDetailRepresentationSelect() {
|
|
|
1790
1790
|
]
|
|
1791
1791
|
};
|
|
1792
1792
|
};
|
|
1793
|
-
function equals$
|
|
1793
|
+
function equals$r(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$o(existing, incoming) {
|
|
|
1836
1836
|
if (!(existing_body === incoming_body
|
|
1837
1837
|
|| (existing_body != null &&
|
|
1838
1838
|
incoming_body != null &&
|
|
1839
|
-
equals$
|
|
1839
|
+
equals$s(existing_body, incoming_body)))) {
|
|
1840
1840
|
return false;
|
|
1841
1841
|
}
|
|
1842
1842
|
const existing_createdDate = existing.createdDate;
|
|
@@ -1846,31 +1846,31 @@ function equals$o(existing, incoming) {
|
|
|
1846
1846
|
}
|
|
1847
1847
|
return true;
|
|
1848
1848
|
}
|
|
1849
|
-
const ingest$
|
|
1849
|
+
const ingest$q = function ManagedContentV2JobDetailRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1850
1850
|
if (process.env.NODE_ENV !== 'production') {
|
|
1851
|
-
const validateError = validate$
|
|
1851
|
+
const validateError = validate$V(input);
|
|
1852
1852
|
if (validateError !== null) {
|
|
1853
1853
|
throw validateError;
|
|
1854
1854
|
}
|
|
1855
1855
|
}
|
|
1856
|
-
const key = keyBuilderFromType$
|
|
1857
|
-
const ttlToUse = TTL$
|
|
1858
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
1856
|
+
const key = keyBuilderFromType$c(luvio, input);
|
|
1857
|
+
const ttlToUse = TTL$p;
|
|
1858
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$q, "CMSAuthoring", VERSION$r, RepresentationType$q, equals$r);
|
|
1859
1859
|
return createLink(key);
|
|
1860
1860
|
};
|
|
1861
|
-
function getTypeCacheKeys$
|
|
1861
|
+
function getTypeCacheKeys$q(rootKeySet, luvio, input, fullPathFactory) {
|
|
1862
1862
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
1863
|
-
const rootKey = keyBuilderFromType$
|
|
1863
|
+
const rootKey = keyBuilderFromType$c(luvio, input);
|
|
1864
1864
|
rootKeySet.set(rootKey, {
|
|
1865
1865
|
namespace: keyPrefix,
|
|
1866
|
-
representationName: RepresentationType$
|
|
1866
|
+
representationName: RepresentationType$q,
|
|
1867
1867
|
mergeable: false
|
|
1868
1868
|
});
|
|
1869
1869
|
}
|
|
1870
1870
|
|
|
1871
|
-
const TTL$
|
|
1872
|
-
const VERSION$
|
|
1873
|
-
function validate$
|
|
1871
|
+
const TTL$o = 100;
|
|
1872
|
+
const VERSION$q = "75cfd71e168144693d36fa16f7d8f4d0";
|
|
1873
|
+
function validate$U(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$Q(obj, path = 'ManagedContentJobCollectionRepresentation') {
|
|
|
1947
1947
|
})();
|
|
1948
1948
|
return v_error === undefined ? null : v_error;
|
|
1949
1949
|
}
|
|
1950
|
-
const RepresentationType$
|
|
1951
|
-
function normalize$
|
|
1950
|
+
const RepresentationType$p = 'ManagedContentJobCollectionRepresentation';
|
|
1951
|
+
function normalize$p(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$
|
|
1957
|
+
input_jobs[i] = ingest$q(input_jobs_item, {
|
|
1958
1958
|
fullPath: input_jobs_item_id,
|
|
1959
1959
|
propertyName: i,
|
|
1960
1960
|
parent: {
|
|
@@ -1967,10 +1967,10 @@ function normalize$m(input, existing, path, luvio, store, timestamp) {
|
|
|
1967
1967
|
}
|
|
1968
1968
|
return input;
|
|
1969
1969
|
}
|
|
1970
|
-
const select$
|
|
1970
|
+
const select$Y = function ManagedContentJobCollectionRepresentationSelect() {
|
|
1971
1971
|
return {
|
|
1972
1972
|
kind: 'Fragment',
|
|
1973
|
-
version: VERSION$
|
|
1973
|
+
version: VERSION$q,
|
|
1974
1974
|
private: [],
|
|
1975
1975
|
selections: [
|
|
1976
1976
|
{
|
|
@@ -1981,7 +1981,7 @@ const select$T = function ManagedContentJobCollectionRepresentationSelect() {
|
|
|
1981
1981
|
name: 'jobs',
|
|
1982
1982
|
kind: 'Link',
|
|
1983
1983
|
plural: true,
|
|
1984
|
-
fragment: select$
|
|
1984
|
+
fragment: select$Z()
|
|
1985
1985
|
},
|
|
1986
1986
|
{
|
|
1987
1987
|
name: 'nextPageUrl',
|
|
@@ -1994,7 +1994,7 @@ const select$T = function ManagedContentJobCollectionRepresentationSelect() {
|
|
|
1994
1994
|
]
|
|
1995
1995
|
};
|
|
1996
1996
|
};
|
|
1997
|
-
function equals$
|
|
1997
|
+
function equals$q(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$n(existing, incoming) {
|
|
|
2022
2022
|
}
|
|
2023
2023
|
return true;
|
|
2024
2024
|
}
|
|
2025
|
-
const ingest$
|
|
2025
|
+
const ingest$p = function ManagedContentJobCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
2026
2026
|
if (process.env.NODE_ENV !== 'production') {
|
|
2027
|
-
const validateError = validate$
|
|
2027
|
+
const validateError = validate$U(input);
|
|
2028
2028
|
if (validateError !== null) {
|
|
2029
2029
|
throw validateError;
|
|
2030
2030
|
}
|
|
2031
2031
|
}
|
|
2032
2032
|
const key = path.fullPath;
|
|
2033
|
-
const ttlToUse = TTL$
|
|
2034
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
2033
|
+
const ttlToUse = TTL$o;
|
|
2034
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$p, "CMSAuthoring", VERSION$q, RepresentationType$p, equals$q);
|
|
2035
2035
|
return createLink(key);
|
|
2036
2036
|
};
|
|
2037
|
-
function getTypeCacheKeys$
|
|
2037
|
+
function getTypeCacheKeys$p(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$
|
|
2042
|
+
representationName: RepresentationType$p,
|
|
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$
|
|
2047
|
+
getTypeCacheKeys$q(rootKeySet, luvio, input.jobs[i]);
|
|
2048
2048
|
}
|
|
2049
2049
|
}
|
|
2050
2050
|
|
|
2051
|
-
function select$
|
|
2052
|
-
return select$
|
|
2051
|
+
function select$X(luvio, params) {
|
|
2052
|
+
return select$Y();
|
|
2053
2053
|
}
|
|
2054
|
-
function keyBuilder$
|
|
2054
|
+
function keyBuilder$Q(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$
|
|
2058
|
-
getTypeCacheKeys$
|
|
2057
|
+
function getResponseCacheKeys$y(storeKeyMap, luvio, resourceParams, response) {
|
|
2058
|
+
getTypeCacheKeys$p(storeKeyMap, luvio, response, () => keyBuilder$Q(luvio, resourceParams));
|
|
2059
2059
|
}
|
|
2060
|
-
function ingestSuccess$
|
|
2060
|
+
function ingestSuccess$y(luvio, resourceParams, response, snapshotRefresh) {
|
|
2061
2061
|
const { body } = response;
|
|
2062
|
-
const key = keyBuilder$
|
|
2063
|
-
luvio.storeIngest(key, ingest$
|
|
2062
|
+
const key = keyBuilder$Q(luvio, resourceParams);
|
|
2063
|
+
luvio.storeIngest(key, ingest$p, body);
|
|
2064
2064
|
const snapshot = luvio.storeLookup({
|
|
2065
2065
|
recordId: key,
|
|
2066
|
-
node: select$
|
|
2066
|
+
node: select$X(),
|
|
2067
2067
|
variables: {},
|
|
2068
2068
|
}, snapshotRefresh);
|
|
2069
2069
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -2074,19 +2074,19 @@ function ingestSuccess$w(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
2074
2074
|
deepFreeze(snapshot.data);
|
|
2075
2075
|
return snapshot;
|
|
2076
2076
|
}
|
|
2077
|
-
function ingestError$
|
|
2078
|
-
const key = keyBuilder$
|
|
2077
|
+
function ingestError$j(luvio, params, error, snapshotRefresh) {
|
|
2078
|
+
const key = keyBuilder$Q(luvio, params);
|
|
2079
2079
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
2080
2080
|
const storeMetadataParams = {
|
|
2081
|
-
ttl: TTL$
|
|
2081
|
+
ttl: TTL$o,
|
|
2082
2082
|
namespace: keyPrefix,
|
|
2083
|
-
version: VERSION$
|
|
2084
|
-
representationName: RepresentationType$
|
|
2083
|
+
version: VERSION$q,
|
|
2084
|
+
representationName: RepresentationType$p
|
|
2085
2085
|
};
|
|
2086
2086
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
2087
2087
|
return errorSnapshot;
|
|
2088
2088
|
}
|
|
2089
|
-
function createResourceRequest$
|
|
2089
|
+
function createResourceRequest$y(config) {
|
|
2090
2090
|
const headers = {};
|
|
2091
2091
|
return {
|
|
2092
2092
|
baseUri: '/services/data/v61.0',
|
|
@@ -2100,113 +2100,113 @@ function createResourceRequest$w(config) {
|
|
|
2100
2100
|
};
|
|
2101
2101
|
}
|
|
2102
2102
|
|
|
2103
|
-
const adapterName$
|
|
2103
|
+
const adapterName$y = '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$
|
|
2111
|
-
const createResourceParams$
|
|
2112
|
-
function keyBuilder$
|
|
2113
|
-
const resourceParams = createResourceParams$
|
|
2114
|
-
return keyBuilder$
|
|
2110
|
+
const getAllCMSJobsForSpace_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$y, getAllCMSJobsForSpace_ConfigPropertyMetadata);
|
|
2111
|
+
const createResourceParams$y = /*#__PURE__*/ createResourceParams$B(getAllCMSJobsForSpace_ConfigPropertyMetadata);
|
|
2112
|
+
function keyBuilder$P(luvio, config) {
|
|
2113
|
+
const resourceParams = createResourceParams$y(config);
|
|
2114
|
+
return keyBuilder$Q(luvio, resourceParams);
|
|
2115
2115
|
}
|
|
2116
|
-
function typeCheckConfig$
|
|
2116
|
+
function typeCheckConfig$y(untrustedConfig) {
|
|
2117
2117
|
const config = {};
|
|
2118
|
-
typeCheckConfig$
|
|
2118
|
+
typeCheckConfig$B(untrustedConfig, config, getAllCMSJobsForSpace_ConfigPropertyMetadata);
|
|
2119
2119
|
return config;
|
|
2120
2120
|
}
|
|
2121
|
-
function validateAdapterConfig$
|
|
2121
|
+
function validateAdapterConfig$y(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$
|
|
2128
|
+
const config = typeCheckConfig$y(untrustedConfig);
|
|
2129
2129
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
2130
2130
|
return null;
|
|
2131
2131
|
}
|
|
2132
2132
|
return config;
|
|
2133
2133
|
}
|
|
2134
|
-
function adapterFragment$
|
|
2135
|
-
createResourceParams$
|
|
2136
|
-
return select$
|
|
2134
|
+
function adapterFragment$j(luvio, config) {
|
|
2135
|
+
createResourceParams$y(config);
|
|
2136
|
+
return select$X();
|
|
2137
2137
|
}
|
|
2138
|
-
function onFetchResponseSuccess$
|
|
2139
|
-
const snapshot = ingestSuccess$
|
|
2138
|
+
function onFetchResponseSuccess$l(luvio, config, resourceParams, response) {
|
|
2139
|
+
const snapshot = ingestSuccess$y(luvio, resourceParams, response, {
|
|
2140
2140
|
config,
|
|
2141
|
-
resolve: () => buildNetworkSnapshot$
|
|
2141
|
+
resolve: () => buildNetworkSnapshot$y(luvio, config, snapshotRefreshOptions)
|
|
2142
2142
|
});
|
|
2143
2143
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
2144
2144
|
}
|
|
2145
|
-
function onFetchResponseError$
|
|
2146
|
-
const snapshot = ingestError$
|
|
2145
|
+
function onFetchResponseError$j(luvio, config, resourceParams, response) {
|
|
2146
|
+
const snapshot = ingestError$j(luvio, resourceParams, response, {
|
|
2147
2147
|
config,
|
|
2148
|
-
resolve: () => buildNetworkSnapshot$
|
|
2148
|
+
resolve: () => buildNetworkSnapshot$y(luvio, config, snapshotRefreshOptions)
|
|
2149
2149
|
});
|
|
2150
2150
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
2151
2151
|
}
|
|
2152
|
-
function buildNetworkSnapshot$
|
|
2153
|
-
const resourceParams = createResourceParams$
|
|
2154
|
-
const request = createResourceRequest$
|
|
2152
|
+
function buildNetworkSnapshot$y(luvio, config, options) {
|
|
2153
|
+
const resourceParams = createResourceParams$y(config);
|
|
2154
|
+
const request = createResourceRequest$y(resourceParams);
|
|
2155
2155
|
return luvio.dispatchResourceRequest(request, options)
|
|
2156
2156
|
.then((response) => {
|
|
2157
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
2157
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$l(luvio, config, resourceParams, response), () => {
|
|
2158
2158
|
const cache = new StoreKeyMap();
|
|
2159
|
-
getResponseCacheKeys$
|
|
2159
|
+
getResponseCacheKeys$y(cache, luvio, resourceParams, response.body);
|
|
2160
2160
|
return cache;
|
|
2161
2161
|
});
|
|
2162
2162
|
}, (response) => {
|
|
2163
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
2163
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$j(luvio, config, resourceParams, response));
|
|
2164
2164
|
});
|
|
2165
2165
|
}
|
|
2166
|
-
function buildNetworkSnapshotCachePolicy$
|
|
2167
|
-
return buildNetworkSnapshotCachePolicy$
|
|
2166
|
+
function buildNetworkSnapshotCachePolicy$j(context, coercedAdapterRequestContext) {
|
|
2167
|
+
return buildNetworkSnapshotCachePolicy$l(context, coercedAdapterRequestContext, buildNetworkSnapshot$y, undefined, false);
|
|
2168
2168
|
}
|
|
2169
|
-
function buildCachedSnapshotCachePolicy$
|
|
2169
|
+
function buildCachedSnapshotCachePolicy$j(context, storeLookup) {
|
|
2170
2170
|
const { luvio, config } = context;
|
|
2171
2171
|
const selector = {
|
|
2172
|
-
recordId: keyBuilder$
|
|
2173
|
-
node: adapterFragment$
|
|
2172
|
+
recordId: keyBuilder$P(luvio, config),
|
|
2173
|
+
node: adapterFragment$j(luvio, config),
|
|
2174
2174
|
variables: {},
|
|
2175
2175
|
};
|
|
2176
2176
|
const cacheSnapshot = storeLookup(selector, {
|
|
2177
2177
|
config,
|
|
2178
|
-
resolve: () => buildNetworkSnapshot$
|
|
2178
|
+
resolve: () => buildNetworkSnapshot$y(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$
|
|
2183
|
+
const config = validateAdapterConfig$y(untrustedConfig, getAllCMSJobsForSpace_ConfigPropertyNames);
|
|
2184
2184
|
// Invalid or incomplete config
|
|
2185
2185
|
if (config === null) {
|
|
2186
2186
|
return null;
|
|
2187
2187
|
}
|
|
2188
2188
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
2189
|
-
buildCachedSnapshotCachePolicy$
|
|
2189
|
+
buildCachedSnapshotCachePolicy$j, buildNetworkSnapshotCachePolicy$j);
|
|
2190
2190
|
};
|
|
2191
2191
|
|
|
2192
|
-
function select$
|
|
2193
|
-
return select$
|
|
2192
|
+
function select$W(luvio, params) {
|
|
2193
|
+
return select$Z();
|
|
2194
2194
|
}
|
|
2195
|
-
function keyBuilder$
|
|
2196
|
-
return keyBuilder$
|
|
2195
|
+
function keyBuilder$O(luvio, params) {
|
|
2196
|
+
return keyBuilder$R(luvio, {
|
|
2197
2197
|
id: params.urlParams.jobId
|
|
2198
2198
|
});
|
|
2199
2199
|
}
|
|
2200
|
-
function getResponseCacheKeys$
|
|
2201
|
-
getTypeCacheKeys$
|
|
2200
|
+
function getResponseCacheKeys$x(storeKeyMap, luvio, resourceParams, response) {
|
|
2201
|
+
getTypeCacheKeys$q(storeKeyMap, luvio, response);
|
|
2202
2202
|
}
|
|
2203
|
-
function ingestSuccess$
|
|
2203
|
+
function ingestSuccess$x(luvio, resourceParams, response, snapshotRefresh) {
|
|
2204
2204
|
const { body } = response;
|
|
2205
|
-
const key = keyBuilder$
|
|
2206
|
-
luvio.storeIngest(key, ingest$
|
|
2205
|
+
const key = keyBuilder$O(luvio, resourceParams);
|
|
2206
|
+
luvio.storeIngest(key, ingest$q, body);
|
|
2207
2207
|
const snapshot = luvio.storeLookup({
|
|
2208
2208
|
recordId: key,
|
|
2209
|
-
node: select$
|
|
2209
|
+
node: select$W(),
|
|
2210
2210
|
variables: {},
|
|
2211
2211
|
}, snapshotRefresh);
|
|
2212
2212
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -2217,19 +2217,19 @@ function ingestSuccess$v(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
2217
2217
|
deepFreeze(snapshot.data);
|
|
2218
2218
|
return snapshot;
|
|
2219
2219
|
}
|
|
2220
|
-
function ingestError$
|
|
2221
|
-
const key = keyBuilder$
|
|
2220
|
+
function ingestError$i(luvio, params, error, snapshotRefresh) {
|
|
2221
|
+
const key = keyBuilder$O(luvio, params);
|
|
2222
2222
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
2223
2223
|
const storeMetadataParams = {
|
|
2224
|
-
ttl: TTL$
|
|
2224
|
+
ttl: TTL$p,
|
|
2225
2225
|
namespace: keyPrefix,
|
|
2226
|
-
version: VERSION$
|
|
2227
|
-
representationName: RepresentationType$
|
|
2226
|
+
version: VERSION$r,
|
|
2227
|
+
representationName: RepresentationType$q
|
|
2228
2228
|
};
|
|
2229
2229
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
2230
2230
|
return errorSnapshot;
|
|
2231
2231
|
}
|
|
2232
|
-
function createResourceRequest$
|
|
2232
|
+
function createResourceRequest$x(config) {
|
|
2233
2233
|
const headers = {};
|
|
2234
2234
|
return {
|
|
2235
2235
|
baseUri: '/services/data/v61.0',
|
|
@@ -2243,94 +2243,94 @@ function createResourceRequest$v(config) {
|
|
|
2243
2243
|
};
|
|
2244
2244
|
}
|
|
2245
2245
|
|
|
2246
|
-
const adapterName$
|
|
2246
|
+
const adapterName$x = '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$
|
|
2252
|
-
const createResourceParams$
|
|
2253
|
-
function keyBuilder$
|
|
2254
|
-
const resourceParams = createResourceParams$
|
|
2255
|
-
return keyBuilder$
|
|
2251
|
+
const getCMSJobForSpace_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$x, getCMSJobForSpace_ConfigPropertyMetadata);
|
|
2252
|
+
const createResourceParams$x = /*#__PURE__*/ createResourceParams$B(getCMSJobForSpace_ConfigPropertyMetadata);
|
|
2253
|
+
function keyBuilder$N(luvio, config) {
|
|
2254
|
+
const resourceParams = createResourceParams$x(config);
|
|
2255
|
+
return keyBuilder$O(luvio, resourceParams);
|
|
2256
2256
|
}
|
|
2257
|
-
function typeCheckConfig$
|
|
2257
|
+
function typeCheckConfig$x(untrustedConfig) {
|
|
2258
2258
|
const config = {};
|
|
2259
|
-
typeCheckConfig$
|
|
2259
|
+
typeCheckConfig$B(untrustedConfig, config, getCMSJobForSpace_ConfigPropertyMetadata);
|
|
2260
2260
|
return config;
|
|
2261
2261
|
}
|
|
2262
|
-
function validateAdapterConfig$
|
|
2262
|
+
function validateAdapterConfig$x(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$
|
|
2269
|
+
const config = typeCheckConfig$x(untrustedConfig);
|
|
2270
2270
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
2271
2271
|
return null;
|
|
2272
2272
|
}
|
|
2273
2273
|
return config;
|
|
2274
2274
|
}
|
|
2275
|
-
function adapterFragment$
|
|
2276
|
-
createResourceParams$
|
|
2277
|
-
return select$
|
|
2275
|
+
function adapterFragment$i(luvio, config) {
|
|
2276
|
+
createResourceParams$x(config);
|
|
2277
|
+
return select$W();
|
|
2278
2278
|
}
|
|
2279
|
-
function onFetchResponseSuccess$
|
|
2280
|
-
const snapshot = ingestSuccess$
|
|
2279
|
+
function onFetchResponseSuccess$k(luvio, config, resourceParams, response) {
|
|
2280
|
+
const snapshot = ingestSuccess$x(luvio, resourceParams, response, {
|
|
2281
2281
|
config,
|
|
2282
|
-
resolve: () => buildNetworkSnapshot$
|
|
2282
|
+
resolve: () => buildNetworkSnapshot$x(luvio, config, snapshotRefreshOptions)
|
|
2283
2283
|
});
|
|
2284
2284
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
2285
2285
|
}
|
|
2286
|
-
function onFetchResponseError$
|
|
2287
|
-
const snapshot = ingestError$
|
|
2286
|
+
function onFetchResponseError$i(luvio, config, resourceParams, response) {
|
|
2287
|
+
const snapshot = ingestError$i(luvio, resourceParams, response, {
|
|
2288
2288
|
config,
|
|
2289
|
-
resolve: () => buildNetworkSnapshot$
|
|
2289
|
+
resolve: () => buildNetworkSnapshot$x(luvio, config, snapshotRefreshOptions)
|
|
2290
2290
|
});
|
|
2291
2291
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
2292
2292
|
}
|
|
2293
|
-
function buildNetworkSnapshot$
|
|
2294
|
-
const resourceParams = createResourceParams$
|
|
2295
|
-
const request = createResourceRequest$
|
|
2293
|
+
function buildNetworkSnapshot$x(luvio, config, options) {
|
|
2294
|
+
const resourceParams = createResourceParams$x(config);
|
|
2295
|
+
const request = createResourceRequest$x(resourceParams);
|
|
2296
2296
|
return luvio.dispatchResourceRequest(request, options)
|
|
2297
2297
|
.then((response) => {
|
|
2298
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
2298
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$k(luvio, config, resourceParams, response), () => {
|
|
2299
2299
|
const cache = new StoreKeyMap();
|
|
2300
|
-
getResponseCacheKeys$
|
|
2300
|
+
getResponseCacheKeys$x(cache, luvio, resourceParams, response.body);
|
|
2301
2301
|
return cache;
|
|
2302
2302
|
});
|
|
2303
2303
|
}, (response) => {
|
|
2304
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
2304
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$i(luvio, config, resourceParams, response));
|
|
2305
2305
|
});
|
|
2306
2306
|
}
|
|
2307
|
-
function buildNetworkSnapshotCachePolicy$
|
|
2308
|
-
return buildNetworkSnapshotCachePolicy$
|
|
2307
|
+
function buildNetworkSnapshotCachePolicy$i(context, coercedAdapterRequestContext) {
|
|
2308
|
+
return buildNetworkSnapshotCachePolicy$l(context, coercedAdapterRequestContext, buildNetworkSnapshot$x, undefined, false);
|
|
2309
2309
|
}
|
|
2310
|
-
function buildCachedSnapshotCachePolicy$
|
|
2310
|
+
function buildCachedSnapshotCachePolicy$i(context, storeLookup) {
|
|
2311
2311
|
const { luvio, config } = context;
|
|
2312
2312
|
const selector = {
|
|
2313
|
-
recordId: keyBuilder$
|
|
2314
|
-
node: adapterFragment$
|
|
2313
|
+
recordId: keyBuilder$N(luvio, config),
|
|
2314
|
+
node: adapterFragment$i(luvio, config),
|
|
2315
2315
|
variables: {},
|
|
2316
2316
|
};
|
|
2317
2317
|
const cacheSnapshot = storeLookup(selector, {
|
|
2318
2318
|
config,
|
|
2319
|
-
resolve: () => buildNetworkSnapshot$
|
|
2319
|
+
resolve: () => buildNetworkSnapshot$x(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$
|
|
2324
|
+
const config = validateAdapterConfig$x(untrustedConfig, getCMSJobForSpace_ConfigPropertyNames);
|
|
2325
2325
|
// Invalid or incomplete config
|
|
2326
2326
|
if (config === null) {
|
|
2327
2327
|
return null;
|
|
2328
2328
|
}
|
|
2329
2329
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
2330
|
-
buildCachedSnapshotCachePolicy$
|
|
2330
|
+
buildCachedSnapshotCachePolicy$i, buildNetworkSnapshotCachePolicy$i);
|
|
2331
2331
|
};
|
|
2332
2332
|
|
|
2333
|
-
function validate$
|
|
2333
|
+
function validate$T(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$P(obj, path = 'ManagedContentSpaceFolderItemV1Representation')
|
|
|
2418
2418
|
return v_error === undefined ? null : v_error;
|
|
2419
2419
|
}
|
|
2420
2420
|
|
|
2421
|
-
const TTL$
|
|
2422
|
-
const VERSION$
|
|
2423
|
-
function validate$
|
|
2421
|
+
const TTL$n = 100;
|
|
2422
|
+
const VERSION$p = "df1370994ae2e57cdebc5f5125930e2d";
|
|
2423
|
+
function validate$S(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$O(obj, path = 'ManagedContentSpaceFolderItemV1CollectionRepres
|
|
|
2438
2438
|
for (let i = 0; i < obj_folderItems.length; i++) {
|
|
2439
2439
|
const obj_folderItems_item = obj_folderItems[i];
|
|
2440
2440
|
const path_folderItems_item = path_folderItems + '[' + i + ']';
|
|
2441
|
-
const referencepath_folderItems_itemValidationError = validate$
|
|
2441
|
+
const referencepath_folderItems_itemValidationError = validate$T(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$O(obj, path = 'ManagedContentSpaceFolderItemV1CollectionRepres
|
|
|
2474
2474
|
})();
|
|
2475
2475
|
return v_error === undefined ? null : v_error;
|
|
2476
2476
|
}
|
|
2477
|
-
const RepresentationType$
|
|
2478
|
-
function normalize$
|
|
2477
|
+
const RepresentationType$o = 'ManagedContentSpaceFolderItemV1CollectionRepresentation';
|
|
2478
|
+
function normalize$o(input, existing, path, luvio, store, timestamp) {
|
|
2479
2479
|
return input;
|
|
2480
2480
|
}
|
|
2481
|
-
const select$
|
|
2481
|
+
const select$V = function ManagedContentSpaceFolderItemV1CollectionRepresentationSelect() {
|
|
2482
2482
|
return {
|
|
2483
2483
|
kind: 'Fragment',
|
|
2484
|
-
version: VERSION$
|
|
2484
|
+
version: VERSION$p,
|
|
2485
2485
|
private: [],
|
|
2486
2486
|
opaque: true
|
|
2487
2487
|
};
|
|
2488
2488
|
};
|
|
2489
|
-
function equals$
|
|
2489
|
+
function equals$p(existing, incoming) {
|
|
2490
2490
|
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
2491
2491
|
return false;
|
|
2492
2492
|
}
|
|
2493
2493
|
return true;
|
|
2494
2494
|
}
|
|
2495
|
-
const ingest$
|
|
2495
|
+
const ingest$o = function ManagedContentSpaceFolderItemV1CollectionRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
2496
2496
|
if (process.env.NODE_ENV !== 'production') {
|
|
2497
|
-
const validateError = validate$
|
|
2497
|
+
const validateError = validate$S(input);
|
|
2498
2498
|
if (validateError !== null) {
|
|
2499
2499
|
throw validateError;
|
|
2500
2500
|
}
|
|
2501
2501
|
}
|
|
2502
2502
|
const key = path.fullPath;
|
|
2503
|
-
const ttlToUse = TTL$
|
|
2504
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
2503
|
+
const ttlToUse = TTL$n;
|
|
2504
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$o, "CMSAuthoring", VERSION$p, RepresentationType$o, equals$p);
|
|
2505
2505
|
return createLink(key);
|
|
2506
2506
|
};
|
|
2507
|
-
function getTypeCacheKeys$
|
|
2507
|
+
function getTypeCacheKeys$o(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$
|
|
2512
|
+
representationName: RepresentationType$o,
|
|
2513
2513
|
mergeable: false
|
|
2514
2514
|
});
|
|
2515
2515
|
}
|
|
2516
2516
|
|
|
2517
|
-
function select$
|
|
2518
|
-
return select$
|
|
2517
|
+
function select$U(luvio, params) {
|
|
2518
|
+
return select$V();
|
|
2519
2519
|
}
|
|
2520
|
-
function keyBuilder$
|
|
2520
|
+
function keyBuilder$M(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$
|
|
2524
|
-
getTypeCacheKeys$
|
|
2523
|
+
function getResponseCacheKeys$w(storeKeyMap, luvio, resourceParams, response) {
|
|
2524
|
+
getTypeCacheKeys$o(storeKeyMap, luvio, response, () => keyBuilder$M(luvio, resourceParams));
|
|
2525
2525
|
}
|
|
2526
|
-
function ingestSuccess$
|
|
2526
|
+
function ingestSuccess$w(luvio, resourceParams, response, snapshotRefresh) {
|
|
2527
2527
|
const { body } = response;
|
|
2528
|
-
const key = keyBuilder$
|
|
2529
|
-
luvio.storeIngest(key, ingest$
|
|
2528
|
+
const key = keyBuilder$M(luvio, resourceParams);
|
|
2529
|
+
luvio.storeIngest(key, ingest$o, body);
|
|
2530
2530
|
const snapshot = luvio.storeLookup({
|
|
2531
2531
|
recordId: key,
|
|
2532
|
-
node: select$
|
|
2532
|
+
node: select$U(),
|
|
2533
2533
|
variables: {},
|
|
2534
2534
|
}, snapshotRefresh);
|
|
2535
2535
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -2540,19 +2540,19 @@ function ingestSuccess$u(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
2540
2540
|
deepFreeze(snapshot.data);
|
|
2541
2541
|
return snapshot;
|
|
2542
2542
|
}
|
|
2543
|
-
function ingestError$
|
|
2544
|
-
const key = keyBuilder$
|
|
2543
|
+
function ingestError$h(luvio, params, error, snapshotRefresh) {
|
|
2544
|
+
const key = keyBuilder$M(luvio, params);
|
|
2545
2545
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
2546
2546
|
const storeMetadataParams = {
|
|
2547
|
-
ttl: TTL$
|
|
2547
|
+
ttl: TTL$n,
|
|
2548
2548
|
namespace: keyPrefix,
|
|
2549
|
-
version: VERSION$
|
|
2550
|
-
representationName: RepresentationType$
|
|
2549
|
+
version: VERSION$p,
|
|
2550
|
+
representationName: RepresentationType$o
|
|
2551
2551
|
};
|
|
2552
2552
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
2553
2553
|
return errorSnapshot;
|
|
2554
2554
|
}
|
|
2555
|
-
function createResourceRequest$
|
|
2555
|
+
function createResourceRequest$w(config) {
|
|
2556
2556
|
const headers = {};
|
|
2557
2557
|
return {
|
|
2558
2558
|
baseUri: '/services/data/v61.0',
|
|
@@ -2566,7 +2566,7 @@ function createResourceRequest$u(config) {
|
|
|
2566
2566
|
};
|
|
2567
2567
|
}
|
|
2568
2568
|
|
|
2569
|
-
const adapterName$
|
|
2569
|
+
const adapterName$w = '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,89 +2580,89 @@ 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$
|
|
2584
|
-
const createResourceParams$
|
|
2585
|
-
function keyBuilder$
|
|
2586
|
-
const resourceParams = createResourceParams$
|
|
2587
|
-
return keyBuilder$
|
|
2583
|
+
const getManagedContentSpaceFolderItemsV1_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$w, getManagedContentSpaceFolderItemsV1_ConfigPropertyMetadata);
|
|
2584
|
+
const createResourceParams$w = /*#__PURE__*/ createResourceParams$B(getManagedContentSpaceFolderItemsV1_ConfigPropertyMetadata);
|
|
2585
|
+
function keyBuilder$L(luvio, config) {
|
|
2586
|
+
const resourceParams = createResourceParams$w(config);
|
|
2587
|
+
return keyBuilder$M(luvio, resourceParams);
|
|
2588
2588
|
}
|
|
2589
|
-
function typeCheckConfig$
|
|
2589
|
+
function typeCheckConfig$w(untrustedConfig) {
|
|
2590
2590
|
const config = {};
|
|
2591
|
-
typeCheckConfig$
|
|
2591
|
+
typeCheckConfig$B(untrustedConfig, config, getManagedContentSpaceFolderItemsV1_ConfigPropertyMetadata);
|
|
2592
2592
|
return config;
|
|
2593
2593
|
}
|
|
2594
|
-
function validateAdapterConfig$
|
|
2594
|
+
function validateAdapterConfig$w(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$
|
|
2601
|
+
const config = typeCheckConfig$w(untrustedConfig);
|
|
2602
2602
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
2603
2603
|
return null;
|
|
2604
2604
|
}
|
|
2605
2605
|
return config;
|
|
2606
2606
|
}
|
|
2607
|
-
function adapterFragment$
|
|
2608
|
-
createResourceParams$
|
|
2609
|
-
return select$
|
|
2607
|
+
function adapterFragment$h(luvio, config) {
|
|
2608
|
+
createResourceParams$w(config);
|
|
2609
|
+
return select$U();
|
|
2610
2610
|
}
|
|
2611
|
-
function onFetchResponseSuccess$
|
|
2612
|
-
const snapshot = ingestSuccess$
|
|
2611
|
+
function onFetchResponseSuccess$j(luvio, config, resourceParams, response) {
|
|
2612
|
+
const snapshot = ingestSuccess$w(luvio, resourceParams, response, {
|
|
2613
2613
|
config,
|
|
2614
|
-
resolve: () => buildNetworkSnapshot$
|
|
2614
|
+
resolve: () => buildNetworkSnapshot$w(luvio, config, snapshotRefreshOptions)
|
|
2615
2615
|
});
|
|
2616
2616
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
2617
2617
|
}
|
|
2618
|
-
function onFetchResponseError$
|
|
2619
|
-
const snapshot = ingestError$
|
|
2618
|
+
function onFetchResponseError$h(luvio, config, resourceParams, response) {
|
|
2619
|
+
const snapshot = ingestError$h(luvio, resourceParams, response, {
|
|
2620
2620
|
config,
|
|
2621
|
-
resolve: () => buildNetworkSnapshot$
|
|
2621
|
+
resolve: () => buildNetworkSnapshot$w(luvio, config, snapshotRefreshOptions)
|
|
2622
2622
|
});
|
|
2623
2623
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
2624
2624
|
}
|
|
2625
|
-
function buildNetworkSnapshot$
|
|
2626
|
-
const resourceParams = createResourceParams$
|
|
2627
|
-
const request = createResourceRequest$
|
|
2625
|
+
function buildNetworkSnapshot$w(luvio, config, options) {
|
|
2626
|
+
const resourceParams = createResourceParams$w(config);
|
|
2627
|
+
const request = createResourceRequest$w(resourceParams);
|
|
2628
2628
|
return luvio.dispatchResourceRequest(request, options)
|
|
2629
2629
|
.then((response) => {
|
|
2630
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
2630
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$j(luvio, config, resourceParams, response), () => {
|
|
2631
2631
|
const cache = new StoreKeyMap();
|
|
2632
|
-
getResponseCacheKeys$
|
|
2632
|
+
getResponseCacheKeys$w(cache, luvio, resourceParams, response.body);
|
|
2633
2633
|
return cache;
|
|
2634
2634
|
});
|
|
2635
2635
|
}, (response) => {
|
|
2636
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
2636
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$h(luvio, config, resourceParams, response));
|
|
2637
2637
|
});
|
|
2638
2638
|
}
|
|
2639
|
-
function buildNetworkSnapshotCachePolicy$
|
|
2640
|
-
return buildNetworkSnapshotCachePolicy$
|
|
2639
|
+
function buildNetworkSnapshotCachePolicy$h(context, coercedAdapterRequestContext) {
|
|
2640
|
+
return buildNetworkSnapshotCachePolicy$l(context, coercedAdapterRequestContext, buildNetworkSnapshot$w, undefined, false);
|
|
2641
2641
|
}
|
|
2642
|
-
function buildCachedSnapshotCachePolicy$
|
|
2642
|
+
function buildCachedSnapshotCachePolicy$h(context, storeLookup) {
|
|
2643
2643
|
const { luvio, config } = context;
|
|
2644
2644
|
const selector = {
|
|
2645
|
-
recordId: keyBuilder$
|
|
2646
|
-
node: adapterFragment$
|
|
2645
|
+
recordId: keyBuilder$L(luvio, config),
|
|
2646
|
+
node: adapterFragment$h(luvio, config),
|
|
2647
2647
|
variables: {},
|
|
2648
2648
|
};
|
|
2649
2649
|
const cacheSnapshot = storeLookup(selector, {
|
|
2650
2650
|
config,
|
|
2651
|
-
resolve: () => buildNetworkSnapshot$
|
|
2651
|
+
resolve: () => buildNetworkSnapshot$w(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$
|
|
2656
|
+
const config = validateAdapterConfig$w(untrustedConfig, getManagedContentSpaceFolderItemsV1_ConfigPropertyNames);
|
|
2657
2657
|
// Invalid or incomplete config
|
|
2658
2658
|
if (config === null) {
|
|
2659
2659
|
return null;
|
|
2660
2660
|
}
|
|
2661
2661
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
2662
|
-
buildCachedSnapshotCachePolicy$
|
|
2662
|
+
buildCachedSnapshotCachePolicy$h, buildNetworkSnapshotCachePolicy$h);
|
|
2663
2663
|
};
|
|
2664
2664
|
|
|
2665
|
-
function validate$
|
|
2665
|
+
function validate$R(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$N(obj, path = 'ManagedContentCollectionItemTypeSummaryRepresen
|
|
|
2681
2681
|
return v_error === undefined ? null : v_error;
|
|
2682
2682
|
}
|
|
2683
2683
|
|
|
2684
|
-
function validate$
|
|
2684
|
+
function validate$Q(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$M(obj, path = 'ManagedContentCollectionItemRepresentation') {
|
|
|
2702
2702
|
}
|
|
2703
2703
|
const obj_contentType = obj.contentType;
|
|
2704
2704
|
const path_contentType = path + '.contentType';
|
|
2705
|
-
const referencepath_contentTypeValidationError = validate$
|
|
2705
|
+
const referencepath_contentTypeValidationError = validate$R(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$M(obj, path = 'ManagedContentCollectionItemRepresentation') {
|
|
|
2722
2722
|
return v_error === undefined ? null : v_error;
|
|
2723
2723
|
}
|
|
2724
2724
|
|
|
2725
|
-
const TTL$
|
|
2726
|
-
const VERSION$
|
|
2727
|
-
function validate$
|
|
2725
|
+
const TTL$m = 100;
|
|
2726
|
+
const VERSION$o = "eeea454f1268ece5c3e24c986688b876";
|
|
2727
|
+
function validate$P(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$L(obj, path = 'ManagedContentCollectionDetailRepresentation')
|
|
|
2736
2736
|
}
|
|
2737
2737
|
const obj_collectionType = obj.collectionType;
|
|
2738
2738
|
const path_collectionType = path + '.collectionType';
|
|
2739
|
-
const referencepath_collectionTypeValidationError = validate$
|
|
2739
|
+
const referencepath_collectionTypeValidationError = validate$12(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$L(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$
|
|
2763
|
+
const referencepath_items_itemValidationError = validate$Q(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$L(obj, path = 'ManagedContentCollectionDetailRepresentation')
|
|
|
2795
2795
|
})();
|
|
2796
2796
|
return v_error === undefined ? null : v_error;
|
|
2797
2797
|
}
|
|
2798
|
-
const RepresentationType$
|
|
2799
|
-
function keyBuilder$
|
|
2800
|
-
return keyPrefix + '::' + RepresentationType$
|
|
2798
|
+
const RepresentationType$n = 'ManagedContentCollectionDetailRepresentation';
|
|
2799
|
+
function keyBuilder$K(luvio, config) {
|
|
2800
|
+
return keyPrefix + '::' + RepresentationType$n + ':' + config.collection_key + ':' + config.language + ':' + config.version;
|
|
2801
2801
|
}
|
|
2802
|
-
function keyBuilderFromType$
|
|
2802
|
+
function keyBuilderFromType$b(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$
|
|
2808
|
+
return keyBuilder$K(luvio, keyParams);
|
|
2809
2809
|
}
|
|
2810
|
-
function normalize$
|
|
2810
|
+
function normalize$n(input, existing, path, luvio, store, timestamp) {
|
|
2811
2811
|
return input;
|
|
2812
2812
|
}
|
|
2813
|
-
const select$
|
|
2813
|
+
const select$T = function ManagedContentCollectionDetailRepresentationSelect() {
|
|
2814
2814
|
return {
|
|
2815
2815
|
kind: 'Fragment',
|
|
2816
|
-
version: VERSION$
|
|
2816
|
+
version: VERSION$o,
|
|
2817
2817
|
private: [],
|
|
2818
2818
|
opaque: true
|
|
2819
2819
|
};
|
|
2820
2820
|
};
|
|
2821
|
-
function equals$
|
|
2821
|
+
function equals$o(existing, incoming) {
|
|
2822
2822
|
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
2823
2823
|
return false;
|
|
2824
2824
|
}
|
|
2825
2825
|
return true;
|
|
2826
2826
|
}
|
|
2827
|
-
const ingest$
|
|
2827
|
+
const ingest$n = function ManagedContentCollectionDetailRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
2828
2828
|
if (process.env.NODE_ENV !== 'production') {
|
|
2829
|
-
const validateError = validate$
|
|
2829
|
+
const validateError = validate$P(input);
|
|
2830
2830
|
if (validateError !== null) {
|
|
2831
2831
|
throw validateError;
|
|
2832
2832
|
}
|
|
2833
2833
|
}
|
|
2834
|
-
const key = keyBuilderFromType$
|
|
2835
|
-
const ttlToUse = TTL$
|
|
2836
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
2834
|
+
const key = keyBuilderFromType$b(luvio, input);
|
|
2835
|
+
const ttlToUse = TTL$m;
|
|
2836
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$n, "CMSAuthoring", VERSION$o, RepresentationType$n, equals$o);
|
|
2837
2837
|
return createLink(key);
|
|
2838
2838
|
};
|
|
2839
|
-
function getTypeCacheKeys$
|
|
2839
|
+
function getTypeCacheKeys$n(rootKeySet, luvio, input, fullPathFactory) {
|
|
2840
2840
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
2841
|
-
const rootKey = keyBuilderFromType$
|
|
2841
|
+
const rootKey = keyBuilderFromType$b(luvio, input);
|
|
2842
2842
|
rootKeySet.set(rootKey, {
|
|
2843
2843
|
namespace: keyPrefix,
|
|
2844
|
-
representationName: RepresentationType$
|
|
2844
|
+
representationName: RepresentationType$n,
|
|
2845
2845
|
mergeable: false
|
|
2846
2846
|
});
|
|
2847
2847
|
}
|
|
2848
2848
|
|
|
2849
|
-
function select$
|
|
2850
|
-
return select$
|
|
2849
|
+
function select$S(luvio, params) {
|
|
2850
|
+
return select$T();
|
|
2851
2851
|
}
|
|
2852
|
-
function keyBuilder$
|
|
2853
|
-
return keyBuilder$
|
|
2852
|
+
function keyBuilder$J(luvio, params) {
|
|
2853
|
+
return keyBuilder$K(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$
|
|
2860
|
-
getTypeCacheKeys$
|
|
2859
|
+
function getResponseCacheKeys$v(storeKeyMap, luvio, resourceParams, response) {
|
|
2860
|
+
getTypeCacheKeys$n(storeKeyMap, luvio, response);
|
|
2861
2861
|
}
|
|
2862
|
-
function ingestSuccess$
|
|
2862
|
+
function ingestSuccess$v(luvio, resourceParams, response, snapshotRefresh) {
|
|
2863
2863
|
const { body } = response;
|
|
2864
|
-
const key = keyBuilder$
|
|
2865
|
-
luvio.storeIngest(key, ingest$
|
|
2864
|
+
const key = keyBuilder$J(luvio, resourceParams);
|
|
2865
|
+
luvio.storeIngest(key, ingest$n, body);
|
|
2866
2866
|
const snapshot = luvio.storeLookup({
|
|
2867
2867
|
recordId: key,
|
|
2868
|
-
node: select$
|
|
2868
|
+
node: select$S(),
|
|
2869
2869
|
variables: {},
|
|
2870
2870
|
}, snapshotRefresh);
|
|
2871
2871
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -2876,19 +2876,19 @@ function ingestSuccess$t(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
2876
2876
|
deepFreeze(snapshot.data);
|
|
2877
2877
|
return snapshot;
|
|
2878
2878
|
}
|
|
2879
|
-
function ingestError$
|
|
2880
|
-
const key = keyBuilder$
|
|
2879
|
+
function ingestError$g(luvio, params, error, snapshotRefresh) {
|
|
2880
|
+
const key = keyBuilder$J(luvio, params);
|
|
2881
2881
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
2882
2882
|
const storeMetadataParams = {
|
|
2883
|
-
ttl: TTL$
|
|
2883
|
+
ttl: TTL$m,
|
|
2884
2884
|
namespace: keyPrefix,
|
|
2885
|
-
version: VERSION$
|
|
2886
|
-
representationName: RepresentationType$
|
|
2885
|
+
version: VERSION$o,
|
|
2886
|
+
representationName: RepresentationType$n
|
|
2887
2887
|
};
|
|
2888
2888
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
2889
2889
|
return errorSnapshot;
|
|
2890
2890
|
}
|
|
2891
|
-
function createResourceRequest$
|
|
2891
|
+
function createResourceRequest$v(config) {
|
|
2892
2892
|
const headers = {};
|
|
2893
2893
|
return {
|
|
2894
2894
|
baseUri: '/services/data/v61.0',
|
|
@@ -2902,7 +2902,7 @@ function createResourceRequest$t(config) {
|
|
|
2902
2902
|
};
|
|
2903
2903
|
}
|
|
2904
2904
|
|
|
2905
|
-
function onFetchResponseSuccess$
|
|
2905
|
+
function onFetchResponseSuccess$i(luvio, config, resourceParams, response) {
|
|
2906
2906
|
let updatedResourceParams = resourceParams;
|
|
2907
2907
|
// If language is not provided in request resource params, use language from the response
|
|
2908
2908
|
// and update the response params. As this resource params will be used to build a cache key.
|
|
@@ -2914,98 +2914,98 @@ function onFetchResponseSuccess$h(luvio, config, resourceParams, response) {
|
|
|
2914
2914
|
if (updatedResourceParams.queryParams.version === undefined) {
|
|
2915
2915
|
updatedResourceParams.queryParams.version = response.body.versionNumber;
|
|
2916
2916
|
}
|
|
2917
|
-
return onFetchResponseSuccess$
|
|
2917
|
+
return onFetchResponseSuccess$h(luvio, config, updatedResourceParams, response);
|
|
2918
2918
|
}
|
|
2919
2919
|
|
|
2920
|
-
const adapterName$
|
|
2920
|
+
const adapterName$v = '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$
|
|
2927
|
-
const createResourceParams$
|
|
2928
|
-
function keyBuilder$
|
|
2929
|
-
const resourceParams = createResourceParams$
|
|
2930
|
-
return keyBuilder$
|
|
2926
|
+
const getCollectionItems_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$v, getCollectionItems_ConfigPropertyMetadata);
|
|
2927
|
+
const createResourceParams$v = /*#__PURE__*/ createResourceParams$B(getCollectionItems_ConfigPropertyMetadata);
|
|
2928
|
+
function keyBuilder$I(luvio, config) {
|
|
2929
|
+
const resourceParams = createResourceParams$v(config);
|
|
2930
|
+
return keyBuilder$J(luvio, resourceParams);
|
|
2931
2931
|
}
|
|
2932
|
-
function typeCheckConfig$
|
|
2932
|
+
function typeCheckConfig$v(untrustedConfig) {
|
|
2933
2933
|
const config = {};
|
|
2934
|
-
typeCheckConfig$
|
|
2934
|
+
typeCheckConfig$B(untrustedConfig, config, getCollectionItems_ConfigPropertyMetadata);
|
|
2935
2935
|
return config;
|
|
2936
2936
|
}
|
|
2937
|
-
function validateAdapterConfig$
|
|
2937
|
+
function validateAdapterConfig$v(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$
|
|
2944
|
+
const config = typeCheckConfig$v(untrustedConfig);
|
|
2945
2945
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
2946
2946
|
return null;
|
|
2947
2947
|
}
|
|
2948
2948
|
return config;
|
|
2949
2949
|
}
|
|
2950
|
-
function adapterFragment$
|
|
2951
|
-
createResourceParams$
|
|
2952
|
-
return select$
|
|
2950
|
+
function adapterFragment$g(luvio, config) {
|
|
2951
|
+
createResourceParams$v(config);
|
|
2952
|
+
return select$S();
|
|
2953
2953
|
}
|
|
2954
|
-
function onFetchResponseSuccess$
|
|
2955
|
-
const snapshot = ingestSuccess$
|
|
2954
|
+
function onFetchResponseSuccess$h(luvio, config, resourceParams, response) {
|
|
2955
|
+
const snapshot = ingestSuccess$v(luvio, resourceParams, response, {
|
|
2956
2956
|
config,
|
|
2957
|
-
resolve: () => buildNetworkSnapshot$
|
|
2957
|
+
resolve: () => buildNetworkSnapshot$v(luvio, config, snapshotRefreshOptions)
|
|
2958
2958
|
});
|
|
2959
2959
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
2960
2960
|
}
|
|
2961
|
-
function onFetchResponseError$
|
|
2962
|
-
const snapshot = ingestError$
|
|
2961
|
+
function onFetchResponseError$g(luvio, config, resourceParams, response) {
|
|
2962
|
+
const snapshot = ingestError$g(luvio, resourceParams, response, {
|
|
2963
2963
|
config,
|
|
2964
|
-
resolve: () => buildNetworkSnapshot$
|
|
2964
|
+
resolve: () => buildNetworkSnapshot$v(luvio, config, snapshotRefreshOptions)
|
|
2965
2965
|
});
|
|
2966
2966
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
2967
2967
|
}
|
|
2968
|
-
function buildNetworkSnapshot$
|
|
2969
|
-
const resourceParams = createResourceParams$
|
|
2970
|
-
const request = createResourceRequest$
|
|
2968
|
+
function buildNetworkSnapshot$v(luvio, config, options) {
|
|
2969
|
+
const resourceParams = createResourceParams$v(config);
|
|
2970
|
+
const request = createResourceRequest$v(resourceParams);
|
|
2971
2971
|
return luvio.dispatchResourceRequest(request, options)
|
|
2972
2972
|
.then((response) => {
|
|
2973
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
2973
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$i(luvio, config, resourceParams, response), () => {
|
|
2974
2974
|
const cache = new StoreKeyMap();
|
|
2975
|
-
getResponseCacheKeys$
|
|
2975
|
+
getResponseCacheKeys$v(cache, luvio, resourceParams, response.body);
|
|
2976
2976
|
return cache;
|
|
2977
2977
|
});
|
|
2978
2978
|
}, (response) => {
|
|
2979
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
2979
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$g(luvio, config, resourceParams, response));
|
|
2980
2980
|
});
|
|
2981
2981
|
}
|
|
2982
|
-
function buildNetworkSnapshotCachePolicy$
|
|
2983
|
-
return buildNetworkSnapshotCachePolicy$
|
|
2982
|
+
function buildNetworkSnapshotCachePolicy$g(context, coercedAdapterRequestContext) {
|
|
2983
|
+
return buildNetworkSnapshotCachePolicy$l(context, coercedAdapterRequestContext, buildNetworkSnapshot$v, undefined, false);
|
|
2984
2984
|
}
|
|
2985
|
-
function buildCachedSnapshotCachePolicy$
|
|
2985
|
+
function buildCachedSnapshotCachePolicy$g(context, storeLookup) {
|
|
2986
2986
|
const { luvio, config } = context;
|
|
2987
2987
|
const selector = {
|
|
2988
|
-
recordId: keyBuilder$
|
|
2989
|
-
node: adapterFragment$
|
|
2988
|
+
recordId: keyBuilder$I(luvio, config),
|
|
2989
|
+
node: adapterFragment$g(luvio, config),
|
|
2990
2990
|
variables: {},
|
|
2991
2991
|
};
|
|
2992
2992
|
const cacheSnapshot = storeLookup(selector, {
|
|
2993
2993
|
config,
|
|
2994
|
-
resolve: () => buildNetworkSnapshot$
|
|
2994
|
+
resolve: () => buildNetworkSnapshot$v(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$
|
|
2999
|
+
const config = validateAdapterConfig$v(untrustedConfig, getCollectionItems_ConfigPropertyNames);
|
|
3000
3000
|
// Invalid or incomplete config
|
|
3001
3001
|
if (config === null) {
|
|
3002
3002
|
return null;
|
|
3003
3003
|
}
|
|
3004
3004
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
3005
|
-
buildCachedSnapshotCachePolicy$
|
|
3005
|
+
buildCachedSnapshotCachePolicy$g, buildNetworkSnapshotCachePolicy$g);
|
|
3006
3006
|
};
|
|
3007
3007
|
|
|
3008
|
-
function validate$
|
|
3008
|
+
function validate$O(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$K(obj, path = 'ManagedContentTranslationV2RequestInputRep') {
|
|
|
3075
3075
|
return v_error === undefined ? null : v_error;
|
|
3076
3076
|
}
|
|
3077
3077
|
|
|
3078
|
-
const TTL$
|
|
3079
|
-
const VERSION$
|
|
3080
|
-
function validate$
|
|
3078
|
+
const TTL$l = 100;
|
|
3079
|
+
const VERSION$n = "52e643b998d6763482c6d74542b38408";
|
|
3080
|
+
function validate$N(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 + '")');
|
|
@@ -3185,83 +3185,528 @@ function validate$J(obj, path = 'ManagedContentTranslationV2Representation') {
|
|
|
3185
3185
|
if (obj_outputBodyUrl_union0_error != null) {
|
|
3186
3186
|
obj_outputBodyUrl_union0 = obj_outputBodyUrl_union0_error.message;
|
|
3187
3187
|
}
|
|
3188
|
-
let obj_outputBodyUrl_union1 = null;
|
|
3189
|
-
const obj_outputBodyUrl_union1_error = (() => {
|
|
3190
|
-
if (obj_outputBodyUrl !== null) {
|
|
3191
|
-
return new TypeError('Expected "null" but received "' + typeof obj_outputBodyUrl + '" (at "' + path_outputBodyUrl + '")');
|
|
3192
|
-
}
|
|
3193
|
-
})();
|
|
3194
|
-
if (obj_outputBodyUrl_union1_error != null) {
|
|
3195
|
-
obj_outputBodyUrl_union1 = obj_outputBodyUrl_union1_error.message;
|
|
3188
|
+
let obj_outputBodyUrl_union1 = null;
|
|
3189
|
+
const obj_outputBodyUrl_union1_error = (() => {
|
|
3190
|
+
if (obj_outputBodyUrl !== null) {
|
|
3191
|
+
return new TypeError('Expected "null" but received "' + typeof obj_outputBodyUrl + '" (at "' + path_outputBodyUrl + '")');
|
|
3192
|
+
}
|
|
3193
|
+
})();
|
|
3194
|
+
if (obj_outputBodyUrl_union1_error != null) {
|
|
3195
|
+
obj_outputBodyUrl_union1 = obj_outputBodyUrl_union1_error.message;
|
|
3196
|
+
}
|
|
3197
|
+
if (obj_outputBodyUrl_union0 && obj_outputBodyUrl_union1) {
|
|
3198
|
+
let message = 'Object doesn\'t match union (at "' + path_outputBodyUrl + '")';
|
|
3199
|
+
message += '\n' + obj_outputBodyUrl_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
3200
|
+
message += '\n' + obj_outputBodyUrl_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
3201
|
+
return new TypeError(message);
|
|
3202
|
+
}
|
|
3203
|
+
const obj_startDate = obj.startDate;
|
|
3204
|
+
const path_startDate = path + '.startDate';
|
|
3205
|
+
let obj_startDate_union0 = null;
|
|
3206
|
+
const obj_startDate_union0_error = (() => {
|
|
3207
|
+
if (typeof obj_startDate !== 'string') {
|
|
3208
|
+
return new TypeError('Expected "string" but received "' + typeof obj_startDate + '" (at "' + path_startDate + '")');
|
|
3209
|
+
}
|
|
3210
|
+
})();
|
|
3211
|
+
if (obj_startDate_union0_error != null) {
|
|
3212
|
+
obj_startDate_union0 = obj_startDate_union0_error.message;
|
|
3213
|
+
}
|
|
3214
|
+
let obj_startDate_union1 = null;
|
|
3215
|
+
const obj_startDate_union1_error = (() => {
|
|
3216
|
+
if (obj_startDate !== null) {
|
|
3217
|
+
return new TypeError('Expected "null" but received "' + typeof obj_startDate + '" (at "' + path_startDate + '")');
|
|
3218
|
+
}
|
|
3219
|
+
})();
|
|
3220
|
+
if (obj_startDate_union1_error != null) {
|
|
3221
|
+
obj_startDate_union1 = obj_startDate_union1_error.message;
|
|
3222
|
+
}
|
|
3223
|
+
if (obj_startDate_union0 && obj_startDate_union1) {
|
|
3224
|
+
let message = 'Object doesn\'t match union (at "' + path_startDate + '")';
|
|
3225
|
+
message += '\n' + obj_startDate_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
3226
|
+
message += '\n' + obj_startDate_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
3227
|
+
return new TypeError(message);
|
|
3228
|
+
}
|
|
3229
|
+
const obj_status = obj.status;
|
|
3230
|
+
const path_status = path + '.status';
|
|
3231
|
+
if (typeof obj_status !== 'string') {
|
|
3232
|
+
return new TypeError('Expected "string" but received "' + typeof obj_status + '" (at "' + path_status + '")');
|
|
3233
|
+
}
|
|
3234
|
+
})();
|
|
3235
|
+
return v_error === undefined ? null : v_error;
|
|
3236
|
+
}
|
|
3237
|
+
const RepresentationType$m = 'ManagedContentTranslationV2Representation';
|
|
3238
|
+
function keyBuilder$H(luvio, config) {
|
|
3239
|
+
return keyPrefix + '::' + RepresentationType$m + ':' + config.id;
|
|
3240
|
+
}
|
|
3241
|
+
function keyBuilderFromType$a(luvio, object) {
|
|
3242
|
+
const keyParams = {
|
|
3243
|
+
id: object.id
|
|
3244
|
+
};
|
|
3245
|
+
return keyBuilder$H(luvio, keyParams);
|
|
3246
|
+
}
|
|
3247
|
+
function normalize$m(input, existing, path, luvio, store, timestamp) {
|
|
3248
|
+
return input;
|
|
3249
|
+
}
|
|
3250
|
+
const select$R = function ManagedContentTranslationV2RepresentationSelect() {
|
|
3251
|
+
return {
|
|
3252
|
+
kind: 'Fragment',
|
|
3253
|
+
version: VERSION$n,
|
|
3254
|
+
private: [],
|
|
3255
|
+
opaque: true
|
|
3256
|
+
};
|
|
3257
|
+
};
|
|
3258
|
+
function equals$n(existing, incoming) {
|
|
3259
|
+
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
3260
|
+
return false;
|
|
3261
|
+
}
|
|
3262
|
+
return true;
|
|
3263
|
+
}
|
|
3264
|
+
const ingest$m = function ManagedContentTranslationV2RepresentationIngest(input, path, luvio, store, timestamp) {
|
|
3265
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
3266
|
+
const validateError = validate$N(input);
|
|
3267
|
+
if (validateError !== null) {
|
|
3268
|
+
throw validateError;
|
|
3269
|
+
}
|
|
3270
|
+
}
|
|
3271
|
+
const key = keyBuilderFromType$a(luvio, input);
|
|
3272
|
+
const ttlToUse = TTL$l;
|
|
3273
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$m, "CMSAuthoring", VERSION$n, RepresentationType$m, equals$n);
|
|
3274
|
+
return createLink(key);
|
|
3275
|
+
};
|
|
3276
|
+
function getTypeCacheKeys$m(rootKeySet, luvio, input, fullPathFactory) {
|
|
3277
|
+
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
3278
|
+
const rootKey = keyBuilderFromType$a(luvio, input);
|
|
3279
|
+
rootKeySet.set(rootKey, {
|
|
3280
|
+
namespace: keyPrefix,
|
|
3281
|
+
representationName: RepresentationType$m,
|
|
3282
|
+
mergeable: false
|
|
3283
|
+
});
|
|
3284
|
+
}
|
|
3285
|
+
|
|
3286
|
+
function select$Q(luvio, params) {
|
|
3287
|
+
return select$R();
|
|
3288
|
+
}
|
|
3289
|
+
function getResponseCacheKeys$u(storeKeyMap, luvio, resourceParams, response) {
|
|
3290
|
+
getTypeCacheKeys$m(storeKeyMap, luvio, response);
|
|
3291
|
+
}
|
|
3292
|
+
function ingestSuccess$u(luvio, resourceParams, response) {
|
|
3293
|
+
const { body } = response;
|
|
3294
|
+
const key = keyBuilderFromType$a(luvio, body);
|
|
3295
|
+
luvio.storeIngest(key, ingest$m, body);
|
|
3296
|
+
const snapshot = luvio.storeLookup({
|
|
3297
|
+
recordId: key,
|
|
3298
|
+
node: select$Q(),
|
|
3299
|
+
variables: {},
|
|
3300
|
+
});
|
|
3301
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
3302
|
+
if (snapshot.state !== 'Fulfilled') {
|
|
3303
|
+
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
3304
|
+
}
|
|
3305
|
+
}
|
|
3306
|
+
deepFreeze(snapshot.data);
|
|
3307
|
+
return snapshot;
|
|
3308
|
+
}
|
|
3309
|
+
function createResourceRequest$u(config) {
|
|
3310
|
+
const headers = {};
|
|
3311
|
+
return {
|
|
3312
|
+
baseUri: '/services/data/v61.0',
|
|
3313
|
+
basePath: '/connect/cms/content/spaces/' + config.urlParams.contentSpaceId + '/translation',
|
|
3314
|
+
method: 'post',
|
|
3315
|
+
body: config.body,
|
|
3316
|
+
urlParams: config.urlParams,
|
|
3317
|
+
queryParams: {},
|
|
3318
|
+
headers,
|
|
3319
|
+
priority: 'normal',
|
|
3320
|
+
};
|
|
3321
|
+
}
|
|
3322
|
+
|
|
3323
|
+
const adapterName$u = 'createTranslationV2Job';
|
|
3324
|
+
const createTranslationV2Job_ConfigPropertyMetadata = [
|
|
3325
|
+
generateParamConfigMetadata('contentSpaceId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
3326
|
+
generateParamConfigMetadata('translationV2Request', true, 2 /* Body */, 4 /* Unsupported */),
|
|
3327
|
+
];
|
|
3328
|
+
const createTranslationV2Job_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$u, createTranslationV2Job_ConfigPropertyMetadata);
|
|
3329
|
+
const createResourceParams$u = /*#__PURE__*/ createResourceParams$B(createTranslationV2Job_ConfigPropertyMetadata);
|
|
3330
|
+
function typeCheckConfig$u(untrustedConfig) {
|
|
3331
|
+
const config = {};
|
|
3332
|
+
typeCheckConfig$B(untrustedConfig, config, createTranslationV2Job_ConfigPropertyMetadata);
|
|
3333
|
+
const untrustedConfig_translationV2Request = untrustedConfig.translationV2Request;
|
|
3334
|
+
const referenceManagedContentTranslationV2RequestInputRepValidationError = validate$O(untrustedConfig_translationV2Request);
|
|
3335
|
+
if (referenceManagedContentTranslationV2RequestInputRepValidationError === null) {
|
|
3336
|
+
config.translationV2Request = untrustedConfig_translationV2Request;
|
|
3337
|
+
}
|
|
3338
|
+
return config;
|
|
3339
|
+
}
|
|
3340
|
+
function validateAdapterConfig$u(untrustedConfig, configPropertyNames) {
|
|
3341
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
3342
|
+
return null;
|
|
3343
|
+
}
|
|
3344
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
3345
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
3346
|
+
}
|
|
3347
|
+
const config = typeCheckConfig$u(untrustedConfig);
|
|
3348
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
3349
|
+
return null;
|
|
3350
|
+
}
|
|
3351
|
+
return config;
|
|
3352
|
+
}
|
|
3353
|
+
function buildNetworkSnapshot$u(luvio, config, options) {
|
|
3354
|
+
const resourceParams = createResourceParams$u(config);
|
|
3355
|
+
const request = createResourceRequest$u(resourceParams);
|
|
3356
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
3357
|
+
.then((response) => {
|
|
3358
|
+
return luvio.handleSuccessResponse(() => {
|
|
3359
|
+
const snapshot = ingestSuccess$u(luvio, resourceParams, response);
|
|
3360
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
3361
|
+
}, () => {
|
|
3362
|
+
const cache = new StoreKeyMap();
|
|
3363
|
+
getResponseCacheKeys$u(cache, luvio, resourceParams, response.body);
|
|
3364
|
+
return cache;
|
|
3365
|
+
});
|
|
3366
|
+
}, (response) => {
|
|
3367
|
+
deepFreeze(response);
|
|
3368
|
+
throw response;
|
|
3369
|
+
});
|
|
3370
|
+
}
|
|
3371
|
+
const createTranslationV2JobAdapterFactory = (luvio) => {
|
|
3372
|
+
return function createTranslationV2Job(untrustedConfig) {
|
|
3373
|
+
const config = validateAdapterConfig$u(untrustedConfig, createTranslationV2Job_ConfigPropertyNames);
|
|
3374
|
+
// Invalid or incomplete config
|
|
3375
|
+
if (config === null) {
|
|
3376
|
+
throw new Error('Invalid config for "createTranslationV2Job"');
|
|
3377
|
+
}
|
|
3378
|
+
return buildNetworkSnapshot$u(luvio, config);
|
|
3379
|
+
};
|
|
3380
|
+
};
|
|
3381
|
+
|
|
3382
|
+
function validate$M(obj, path = 'ManagedContentTaxonomyPathFragmentRepresentation') {
|
|
3383
|
+
const v_error = (() => {
|
|
3384
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3385
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
3386
|
+
}
|
|
3387
|
+
const obj_id = obj.id;
|
|
3388
|
+
const path_id = path + '.id';
|
|
3389
|
+
if (typeof obj_id !== 'string') {
|
|
3390
|
+
return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
|
|
3391
|
+
}
|
|
3392
|
+
const obj_label = obj.label;
|
|
3393
|
+
const path_label = path + '.label';
|
|
3394
|
+
if (typeof obj_label !== 'string') {
|
|
3395
|
+
return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
|
|
3396
|
+
}
|
|
3397
|
+
})();
|
|
3398
|
+
return v_error === undefined ? null : v_error;
|
|
3399
|
+
}
|
|
3400
|
+
|
|
3401
|
+
const TTL$k = 100;
|
|
3402
|
+
const VERSION$m = "861a01549e9c8877564cf9109fe8af72";
|
|
3403
|
+
function validate$L(obj, path = 'ManagedContentTaxonomyPathRepresentation') {
|
|
3404
|
+
const v_error = (() => {
|
|
3405
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3406
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
3407
|
+
}
|
|
3408
|
+
const obj_label = obj.label;
|
|
3409
|
+
const path_label = path + '.label';
|
|
3410
|
+
if (typeof obj_label !== 'string') {
|
|
3411
|
+
return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
|
|
3412
|
+
}
|
|
3413
|
+
const obj_taxonomyFragment = obj.taxonomyFragment;
|
|
3414
|
+
const path_taxonomyFragment = path + '.taxonomyFragment';
|
|
3415
|
+
const referencepath_taxonomyFragmentValidationError = validate$M(obj_taxonomyFragment, path_taxonomyFragment);
|
|
3416
|
+
if (referencepath_taxonomyFragmentValidationError !== null) {
|
|
3417
|
+
let message = 'Object doesn\'t match ManagedContentTaxonomyPathFragmentRepresentation (at "' + path_taxonomyFragment + '")\n';
|
|
3418
|
+
message += referencepath_taxonomyFragmentValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
3419
|
+
return new TypeError(message);
|
|
3420
|
+
}
|
|
3421
|
+
const obj_termFragments = obj.termFragments;
|
|
3422
|
+
const path_termFragments = path + '.termFragments';
|
|
3423
|
+
if (!ArrayIsArray(obj_termFragments)) {
|
|
3424
|
+
return new TypeError('Expected "array" but received "' + typeof obj_termFragments + '" (at "' + path_termFragments + '")');
|
|
3425
|
+
}
|
|
3426
|
+
for (let i = 0; i < obj_termFragments.length; i++) {
|
|
3427
|
+
const obj_termFragments_item = obj_termFragments[i];
|
|
3428
|
+
const path_termFragments_item = path_termFragments + '[' + i + ']';
|
|
3429
|
+
const referencepath_termFragments_itemValidationError = validate$M(obj_termFragments_item, path_termFragments_item);
|
|
3430
|
+
if (referencepath_termFragments_itemValidationError !== null) {
|
|
3431
|
+
let message = 'Object doesn\'t match ManagedContentTaxonomyPathFragmentRepresentation (at "' + path_termFragments_item + '")\n';
|
|
3432
|
+
message += referencepath_termFragments_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
3433
|
+
return new TypeError(message);
|
|
3434
|
+
}
|
|
3435
|
+
}
|
|
3436
|
+
})();
|
|
3437
|
+
return v_error === undefined ? null : v_error;
|
|
3438
|
+
}
|
|
3439
|
+
const RepresentationType$l = 'ManagedContentTaxonomyPathRepresentation';
|
|
3440
|
+
function normalize$l(input, existing, path, luvio, store, timestamp) {
|
|
3441
|
+
return input;
|
|
3442
|
+
}
|
|
3443
|
+
const select$P = function ManagedContentTaxonomyPathRepresentationSelect() {
|
|
3444
|
+
return {
|
|
3445
|
+
kind: 'Fragment',
|
|
3446
|
+
version: VERSION$m,
|
|
3447
|
+
private: [],
|
|
3448
|
+
opaque: true
|
|
3449
|
+
};
|
|
3450
|
+
};
|
|
3451
|
+
function equals$m(existing, incoming) {
|
|
3452
|
+
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
3453
|
+
return false;
|
|
3454
|
+
}
|
|
3455
|
+
return true;
|
|
3456
|
+
}
|
|
3457
|
+
const ingest$l = function ManagedContentTaxonomyPathRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
3458
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
3459
|
+
const validateError = validate$L(input);
|
|
3460
|
+
if (validateError !== null) {
|
|
3461
|
+
throw validateError;
|
|
3462
|
+
}
|
|
3463
|
+
}
|
|
3464
|
+
const key = path.fullPath;
|
|
3465
|
+
const ttlToUse = TTL$k;
|
|
3466
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$l, "CMSAuthoring", VERSION$m, RepresentationType$l, equals$m);
|
|
3467
|
+
return createLink(key);
|
|
3468
|
+
};
|
|
3469
|
+
function getTypeCacheKeys$l(rootKeySet, luvio, input, fullPathFactory) {
|
|
3470
|
+
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
3471
|
+
const rootKey = fullPathFactory();
|
|
3472
|
+
rootKeySet.set(rootKey, {
|
|
3473
|
+
namespace: keyPrefix,
|
|
3474
|
+
representationName: RepresentationType$l,
|
|
3475
|
+
mergeable: false
|
|
3476
|
+
});
|
|
3477
|
+
}
|
|
3478
|
+
|
|
3479
|
+
const VERSION$l = "05c4867cd20f87930367aa80db4baab5";
|
|
3480
|
+
function validate$K(obj, path = 'ManagedContentTaxonomyTermRepresentation') {
|
|
3481
|
+
const v_error = (() => {
|
|
3482
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3483
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
3484
|
+
}
|
|
3485
|
+
const obj_id = obj.id;
|
|
3486
|
+
const path_id = path + '.id';
|
|
3487
|
+
if (typeof obj_id !== 'string') {
|
|
3488
|
+
return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
|
|
3489
|
+
}
|
|
3490
|
+
const obj_label = obj.label;
|
|
3491
|
+
const path_label = path + '.label';
|
|
3492
|
+
if (typeof obj_label !== 'string') {
|
|
3493
|
+
return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
|
|
3494
|
+
}
|
|
3495
|
+
const obj_pathsFromRoot = obj.pathsFromRoot;
|
|
3496
|
+
const path_pathsFromRoot = path + '.pathsFromRoot';
|
|
3497
|
+
if (!ArrayIsArray(obj_pathsFromRoot)) {
|
|
3498
|
+
return new TypeError('Expected "array" but received "' + typeof obj_pathsFromRoot + '" (at "' + path_pathsFromRoot + '")');
|
|
3499
|
+
}
|
|
3500
|
+
for (let i = 0; i < obj_pathsFromRoot.length; i++) {
|
|
3501
|
+
const obj_pathsFromRoot_item = obj_pathsFromRoot[i];
|
|
3502
|
+
const path_pathsFromRoot_item = path_pathsFromRoot + '[' + i + ']';
|
|
3503
|
+
if (typeof obj_pathsFromRoot_item !== 'object') {
|
|
3504
|
+
return new TypeError('Expected "object" but received "' + typeof obj_pathsFromRoot_item + '" (at "' + path_pathsFromRoot_item + '")');
|
|
3505
|
+
}
|
|
3506
|
+
}
|
|
3507
|
+
})();
|
|
3508
|
+
return v_error === undefined ? null : v_error;
|
|
3509
|
+
}
|
|
3510
|
+
const RepresentationType$k = 'ManagedContentTaxonomyTermRepresentation';
|
|
3511
|
+
function normalize$k(input, existing, path, luvio, store, timestamp) {
|
|
3512
|
+
const input_pathsFromRoot = input.pathsFromRoot;
|
|
3513
|
+
const input_pathsFromRoot_id = path.fullPath + '__pathsFromRoot';
|
|
3514
|
+
for (let i = 0; i < input_pathsFromRoot.length; i++) {
|
|
3515
|
+
const input_pathsFromRoot_item = input_pathsFromRoot[i];
|
|
3516
|
+
let input_pathsFromRoot_item_id = input_pathsFromRoot_id + '__' + i;
|
|
3517
|
+
input_pathsFromRoot[i] = ingest$l(input_pathsFromRoot_item, {
|
|
3518
|
+
fullPath: input_pathsFromRoot_item_id,
|
|
3519
|
+
propertyName: i,
|
|
3520
|
+
parent: {
|
|
3521
|
+
data: input,
|
|
3522
|
+
key: path.fullPath,
|
|
3523
|
+
existing: existing,
|
|
3524
|
+
},
|
|
3525
|
+
ttl: path.ttl
|
|
3526
|
+
}, luvio, store, timestamp);
|
|
3527
|
+
}
|
|
3528
|
+
return input;
|
|
3529
|
+
}
|
|
3530
|
+
const select$O = function ManagedContentTaxonomyTermRepresentationSelect() {
|
|
3531
|
+
return {
|
|
3532
|
+
kind: 'Fragment',
|
|
3533
|
+
version: VERSION$l,
|
|
3534
|
+
private: [],
|
|
3535
|
+
selections: [
|
|
3536
|
+
{
|
|
3537
|
+
name: 'id',
|
|
3538
|
+
kind: 'Scalar'
|
|
3539
|
+
},
|
|
3540
|
+
{
|
|
3541
|
+
name: 'label',
|
|
3542
|
+
kind: 'Scalar'
|
|
3543
|
+
},
|
|
3544
|
+
{
|
|
3545
|
+
name: 'pathsFromRoot',
|
|
3546
|
+
kind: 'Link',
|
|
3547
|
+
plural: true,
|
|
3548
|
+
fragment: select$P()
|
|
3549
|
+
}
|
|
3550
|
+
]
|
|
3551
|
+
};
|
|
3552
|
+
};
|
|
3553
|
+
function equals$l(existing, incoming) {
|
|
3554
|
+
const existing_id = existing.id;
|
|
3555
|
+
const incoming_id = incoming.id;
|
|
3556
|
+
if (!(existing_id === incoming_id)) {
|
|
3557
|
+
return false;
|
|
3558
|
+
}
|
|
3559
|
+
const existing_label = existing.label;
|
|
3560
|
+
const incoming_label = incoming.label;
|
|
3561
|
+
if (!(existing_label === incoming_label)) {
|
|
3562
|
+
return false;
|
|
3563
|
+
}
|
|
3564
|
+
const existing_pathsFromRoot = existing.pathsFromRoot;
|
|
3565
|
+
const incoming_pathsFromRoot = incoming.pathsFromRoot;
|
|
3566
|
+
const equals_pathsFromRoot_items = equalsArray(existing_pathsFromRoot, incoming_pathsFromRoot, (existing_pathsFromRoot_item, incoming_pathsFromRoot_item) => {
|
|
3567
|
+
if (!(existing_pathsFromRoot_item.__ref === incoming_pathsFromRoot_item.__ref)) {
|
|
3568
|
+
return false;
|
|
3569
|
+
}
|
|
3570
|
+
});
|
|
3571
|
+
if (equals_pathsFromRoot_items === false) {
|
|
3572
|
+
return false;
|
|
3573
|
+
}
|
|
3574
|
+
return true;
|
|
3575
|
+
}
|
|
3576
|
+
const ingest$k = function ManagedContentTaxonomyTermRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
3577
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
3578
|
+
const validateError = validate$K(input);
|
|
3579
|
+
if (validateError !== null) {
|
|
3580
|
+
throw validateError;
|
|
3581
|
+
}
|
|
3582
|
+
}
|
|
3583
|
+
const key = path.fullPath;
|
|
3584
|
+
const ttlToUse = path.ttl;
|
|
3585
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$k, "CMSAuthoring", VERSION$l, RepresentationType$k, equals$l);
|
|
3586
|
+
return createLink(key);
|
|
3587
|
+
};
|
|
3588
|
+
function getTypeCacheKeys$k(rootKeySet, luvio, input, fullPathFactory) {
|
|
3589
|
+
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
3590
|
+
const rootKey = fullPathFactory();
|
|
3591
|
+
rootKeySet.set(rootKey, {
|
|
3592
|
+
namespace: keyPrefix,
|
|
3593
|
+
representationName: RepresentationType$k,
|
|
3594
|
+
mergeable: false
|
|
3595
|
+
});
|
|
3596
|
+
const input_pathsFromRoot_length = input.pathsFromRoot.length;
|
|
3597
|
+
for (let i = 0; i < input_pathsFromRoot_length; i++) {
|
|
3598
|
+
getTypeCacheKeys$l(rootKeySet, luvio, input.pathsFromRoot[i], () => '');
|
|
3599
|
+
}
|
|
3600
|
+
}
|
|
3601
|
+
|
|
3602
|
+
const TTL$j = 100;
|
|
3603
|
+
const VERSION$k = "838bc0422b420be598cab667d4031ed0";
|
|
3604
|
+
function validate$J(obj, path = 'ManagedContentTaxonomyTermCollectionRepresentation') {
|
|
3605
|
+
const v_error = (() => {
|
|
3606
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3607
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
3608
|
+
}
|
|
3609
|
+
const obj_contentKey = obj.contentKey;
|
|
3610
|
+
const path_contentKey = path + '.contentKey';
|
|
3611
|
+
if (typeof obj_contentKey !== 'string') {
|
|
3612
|
+
return new TypeError('Expected "string" but received "' + typeof obj_contentKey + '" (at "' + path_contentKey + '")');
|
|
3196
3613
|
}
|
|
3197
|
-
|
|
3198
|
-
|
|
3199
|
-
|
|
3200
|
-
|
|
3201
|
-
return new TypeError(message);
|
|
3614
|
+
const obj_managedContentId = obj.managedContentId;
|
|
3615
|
+
const path_managedContentId = path + '.managedContentId';
|
|
3616
|
+
if (typeof obj_managedContentId !== 'string') {
|
|
3617
|
+
return new TypeError('Expected "string" but received "' + typeof obj_managedContentId + '" (at "' + path_managedContentId + '")');
|
|
3202
3618
|
}
|
|
3203
|
-
const
|
|
3204
|
-
const
|
|
3205
|
-
|
|
3206
|
-
|
|
3207
|
-
if (typeof obj_startDate !== 'string') {
|
|
3208
|
-
return new TypeError('Expected "string" but received "' + typeof obj_startDate + '" (at "' + path_startDate + '")');
|
|
3209
|
-
}
|
|
3210
|
-
})();
|
|
3211
|
-
if (obj_startDate_union0_error != null) {
|
|
3212
|
-
obj_startDate_union0 = obj_startDate_union0_error.message;
|
|
3619
|
+
const obj_taxonomyTerms = obj.taxonomyTerms;
|
|
3620
|
+
const path_taxonomyTerms = path + '.taxonomyTerms';
|
|
3621
|
+
if (!ArrayIsArray(obj_taxonomyTerms)) {
|
|
3622
|
+
return new TypeError('Expected "array" but received "' + typeof obj_taxonomyTerms + '" (at "' + path_taxonomyTerms + '")');
|
|
3213
3623
|
}
|
|
3214
|
-
let
|
|
3215
|
-
|
|
3216
|
-
|
|
3217
|
-
|
|
3624
|
+
for (let i = 0; i < obj_taxonomyTerms.length; i++) {
|
|
3625
|
+
const obj_taxonomyTerms_item = obj_taxonomyTerms[i];
|
|
3626
|
+
const path_taxonomyTerms_item = path_taxonomyTerms + '[' + i + ']';
|
|
3627
|
+
if (typeof obj_taxonomyTerms_item !== 'object') {
|
|
3628
|
+
return new TypeError('Expected "object" but received "' + typeof obj_taxonomyTerms_item + '" (at "' + path_taxonomyTerms_item + '")');
|
|
3218
3629
|
}
|
|
3219
|
-
})();
|
|
3220
|
-
if (obj_startDate_union1_error != null) {
|
|
3221
|
-
obj_startDate_union1 = obj_startDate_union1_error.message;
|
|
3222
|
-
}
|
|
3223
|
-
if (obj_startDate_union0 && obj_startDate_union1) {
|
|
3224
|
-
let message = 'Object doesn\'t match union (at "' + path_startDate + '")';
|
|
3225
|
-
message += '\n' + obj_startDate_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
3226
|
-
message += '\n' + obj_startDate_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
3227
|
-
return new TypeError(message);
|
|
3228
|
-
}
|
|
3229
|
-
const obj_status = obj.status;
|
|
3230
|
-
const path_status = path + '.status';
|
|
3231
|
-
if (typeof obj_status !== 'string') {
|
|
3232
|
-
return new TypeError('Expected "string" but received "' + typeof obj_status + '" (at "' + path_status + '")');
|
|
3233
3630
|
}
|
|
3234
3631
|
})();
|
|
3235
3632
|
return v_error === undefined ? null : v_error;
|
|
3236
3633
|
}
|
|
3237
|
-
const RepresentationType$j = '
|
|
3238
|
-
function keyBuilder$
|
|
3634
|
+
const RepresentationType$j = 'ManagedContentTaxonomyTermCollectionRepresentation';
|
|
3635
|
+
function keyBuilder$G(luvio, config) {
|
|
3239
3636
|
return keyPrefix + '::' + RepresentationType$j + ':' + config.id;
|
|
3240
3637
|
}
|
|
3241
3638
|
function keyBuilderFromType$9(luvio, object) {
|
|
3242
3639
|
const keyParams = {
|
|
3243
|
-
id: object.
|
|
3640
|
+
id: object.contentKey
|
|
3244
3641
|
};
|
|
3245
|
-
return keyBuilder$
|
|
3642
|
+
return keyBuilder$G(luvio, keyParams);
|
|
3246
3643
|
}
|
|
3247
3644
|
function normalize$j(input, existing, path, luvio, store, timestamp) {
|
|
3645
|
+
const input_taxonomyTerms = input.taxonomyTerms;
|
|
3646
|
+
const input_taxonomyTerms_id = path.fullPath + '__taxonomyTerms';
|
|
3647
|
+
for (let i = 0; i < input_taxonomyTerms.length; i++) {
|
|
3648
|
+
const input_taxonomyTerms_item = input_taxonomyTerms[i];
|
|
3649
|
+
let input_taxonomyTerms_item_id = input_taxonomyTerms_id + '__' + i;
|
|
3650
|
+
input_taxonomyTerms[i] = ingest$k(input_taxonomyTerms_item, {
|
|
3651
|
+
fullPath: input_taxonomyTerms_item_id,
|
|
3652
|
+
propertyName: i,
|
|
3653
|
+
parent: {
|
|
3654
|
+
data: input,
|
|
3655
|
+
key: path.fullPath,
|
|
3656
|
+
existing: existing,
|
|
3657
|
+
},
|
|
3658
|
+
ttl: path.ttl
|
|
3659
|
+
}, luvio, store, timestamp);
|
|
3660
|
+
}
|
|
3248
3661
|
return input;
|
|
3249
3662
|
}
|
|
3250
|
-
const select$
|
|
3663
|
+
const select$N = function ManagedContentTaxonomyTermCollectionRepresentationSelect() {
|
|
3251
3664
|
return {
|
|
3252
3665
|
kind: 'Fragment',
|
|
3253
3666
|
version: VERSION$k,
|
|
3254
3667
|
private: [],
|
|
3255
|
-
|
|
3668
|
+
selections: [
|
|
3669
|
+
{
|
|
3670
|
+
name: 'contentKey',
|
|
3671
|
+
kind: 'Scalar'
|
|
3672
|
+
},
|
|
3673
|
+
{
|
|
3674
|
+
name: 'managedContentId',
|
|
3675
|
+
kind: 'Scalar'
|
|
3676
|
+
},
|
|
3677
|
+
{
|
|
3678
|
+
name: 'taxonomyTerms',
|
|
3679
|
+
kind: 'Link',
|
|
3680
|
+
plural: true,
|
|
3681
|
+
fragment: select$O()
|
|
3682
|
+
}
|
|
3683
|
+
]
|
|
3256
3684
|
};
|
|
3257
3685
|
};
|
|
3258
3686
|
function equals$k(existing, incoming) {
|
|
3259
|
-
|
|
3687
|
+
const existing_contentKey = existing.contentKey;
|
|
3688
|
+
const incoming_contentKey = incoming.contentKey;
|
|
3689
|
+
if (!(existing_contentKey === incoming_contentKey)) {
|
|
3690
|
+
return false;
|
|
3691
|
+
}
|
|
3692
|
+
const existing_managedContentId = existing.managedContentId;
|
|
3693
|
+
const incoming_managedContentId = incoming.managedContentId;
|
|
3694
|
+
if (!(existing_managedContentId === incoming_managedContentId)) {
|
|
3695
|
+
return false;
|
|
3696
|
+
}
|
|
3697
|
+
const existing_taxonomyTerms = existing.taxonomyTerms;
|
|
3698
|
+
const incoming_taxonomyTerms = incoming.taxonomyTerms;
|
|
3699
|
+
const equals_taxonomyTerms_items = equalsArray(existing_taxonomyTerms, incoming_taxonomyTerms, (existing_taxonomyTerms_item, incoming_taxonomyTerms_item) => {
|
|
3700
|
+
if (!(existing_taxonomyTerms_item.__ref === incoming_taxonomyTerms_item.__ref)) {
|
|
3701
|
+
return false;
|
|
3702
|
+
}
|
|
3703
|
+
});
|
|
3704
|
+
if (equals_taxonomyTerms_items === false) {
|
|
3260
3705
|
return false;
|
|
3261
3706
|
}
|
|
3262
3707
|
return true;
|
|
3263
3708
|
}
|
|
3264
|
-
const ingest$j = function
|
|
3709
|
+
const ingest$j = function ManagedContentTaxonomyTermCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
3265
3710
|
if (process.env.NODE_ENV !== 'production') {
|
|
3266
3711
|
const validateError = validate$J(input);
|
|
3267
3712
|
if (validateError !== null) {
|
|
@@ -3281,11 +3726,155 @@ function getTypeCacheKeys$j(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
3281
3726
|
representationName: RepresentationType$j,
|
|
3282
3727
|
mergeable: false
|
|
3283
3728
|
});
|
|
3729
|
+
const input_taxonomyTerms_length = input.taxonomyTerms.length;
|
|
3730
|
+
for (let i = 0; i < input_taxonomyTerms_length; i++) {
|
|
3731
|
+
getTypeCacheKeys$k(rootKeySet, luvio, input.taxonomyTerms[i], () => '');
|
|
3732
|
+
}
|
|
3284
3733
|
}
|
|
3285
3734
|
|
|
3286
|
-
function select$
|
|
3735
|
+
function select$M(luvio, params) {
|
|
3736
|
+
return select$N();
|
|
3737
|
+
}
|
|
3738
|
+
function keyBuilder$F(luvio, params) {
|
|
3739
|
+
return keyBuilder$G(luvio, {
|
|
3740
|
+
id: params.urlParams.contentKeyOrId
|
|
3741
|
+
});
|
|
3742
|
+
}
|
|
3743
|
+
function getResponseCacheKeys$t(storeKeyMap, luvio, resourceParams, response) {
|
|
3744
|
+
getTypeCacheKeys$j(storeKeyMap, luvio, response);
|
|
3745
|
+
}
|
|
3746
|
+
function ingestSuccess$t(luvio, resourceParams, response, snapshotRefresh) {
|
|
3747
|
+
const { body } = response;
|
|
3748
|
+
const key = keyBuilder$F(luvio, resourceParams);
|
|
3749
|
+
luvio.storeIngest(key, ingest$j, body);
|
|
3750
|
+
const snapshot = luvio.storeLookup({
|
|
3751
|
+
recordId: key,
|
|
3752
|
+
node: select$M(),
|
|
3753
|
+
variables: {},
|
|
3754
|
+
}, snapshotRefresh);
|
|
3755
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
3756
|
+
if (snapshot.state !== 'Fulfilled') {
|
|
3757
|
+
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
3758
|
+
}
|
|
3759
|
+
}
|
|
3760
|
+
deepFreeze(snapshot.data);
|
|
3761
|
+
return snapshot;
|
|
3762
|
+
}
|
|
3763
|
+
function ingestError$f(luvio, params, error, snapshotRefresh) {
|
|
3764
|
+
const key = keyBuilder$F(luvio, params);
|
|
3765
|
+
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
3766
|
+
const storeMetadataParams = {
|
|
3767
|
+
ttl: TTL$j,
|
|
3768
|
+
namespace: keyPrefix,
|
|
3769
|
+
version: VERSION$k,
|
|
3770
|
+
representationName: RepresentationType$j
|
|
3771
|
+
};
|
|
3772
|
+
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
3773
|
+
return errorSnapshot;
|
|
3774
|
+
}
|
|
3775
|
+
function createResourceRequest$t(config) {
|
|
3776
|
+
const headers = {};
|
|
3777
|
+
return {
|
|
3778
|
+
baseUri: '/services/data/v61.0',
|
|
3779
|
+
basePath: '/connect/cms/content/' + config.urlParams.contentKeyOrId + '/taxonomy-terms',
|
|
3780
|
+
method: 'get',
|
|
3781
|
+
body: null,
|
|
3782
|
+
urlParams: config.urlParams,
|
|
3783
|
+
queryParams: {},
|
|
3784
|
+
headers,
|
|
3785
|
+
priority: 'normal',
|
|
3786
|
+
};
|
|
3787
|
+
}
|
|
3788
|
+
|
|
3789
|
+
const adapterName$t = 'getManagedContentTaxonomyTerms';
|
|
3790
|
+
const getManagedContentTaxonomyTerms_ConfigPropertyMetadata = [
|
|
3791
|
+
generateParamConfigMetadata('contentKeyOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
3792
|
+
];
|
|
3793
|
+
const getManagedContentTaxonomyTerms_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$t, getManagedContentTaxonomyTerms_ConfigPropertyMetadata);
|
|
3794
|
+
const createResourceParams$t = /*#__PURE__*/ createResourceParams$B(getManagedContentTaxonomyTerms_ConfigPropertyMetadata);
|
|
3795
|
+
function keyBuilder$E(luvio, config) {
|
|
3796
|
+
const resourceParams = createResourceParams$t(config);
|
|
3797
|
+
return keyBuilder$F(luvio, resourceParams);
|
|
3798
|
+
}
|
|
3799
|
+
function typeCheckConfig$t(untrustedConfig) {
|
|
3800
|
+
const config = {};
|
|
3801
|
+
typeCheckConfig$B(untrustedConfig, config, getManagedContentTaxonomyTerms_ConfigPropertyMetadata);
|
|
3802
|
+
return config;
|
|
3803
|
+
}
|
|
3804
|
+
function validateAdapterConfig$t(untrustedConfig, configPropertyNames) {
|
|
3805
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
3806
|
+
return null;
|
|
3807
|
+
}
|
|
3808
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
3809
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
3810
|
+
}
|
|
3811
|
+
const config = typeCheckConfig$t(untrustedConfig);
|
|
3812
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
3813
|
+
return null;
|
|
3814
|
+
}
|
|
3815
|
+
return config;
|
|
3816
|
+
}
|
|
3817
|
+
function adapterFragment$f(luvio, config) {
|
|
3818
|
+
createResourceParams$t(config);
|
|
3287
3819
|
return select$M();
|
|
3288
3820
|
}
|
|
3821
|
+
function onFetchResponseSuccess$g(luvio, config, resourceParams, response) {
|
|
3822
|
+
const snapshot = ingestSuccess$t(luvio, resourceParams, response, {
|
|
3823
|
+
config,
|
|
3824
|
+
resolve: () => buildNetworkSnapshot$t(luvio, config, snapshotRefreshOptions)
|
|
3825
|
+
});
|
|
3826
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
3827
|
+
}
|
|
3828
|
+
function onFetchResponseError$f(luvio, config, resourceParams, response) {
|
|
3829
|
+
const snapshot = ingestError$f(luvio, resourceParams, response, {
|
|
3830
|
+
config,
|
|
3831
|
+
resolve: () => buildNetworkSnapshot$t(luvio, config, snapshotRefreshOptions)
|
|
3832
|
+
});
|
|
3833
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
3834
|
+
}
|
|
3835
|
+
function buildNetworkSnapshot$t(luvio, config, options) {
|
|
3836
|
+
const resourceParams = createResourceParams$t(config);
|
|
3837
|
+
const request = createResourceRequest$t(resourceParams);
|
|
3838
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
3839
|
+
.then((response) => {
|
|
3840
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$g(luvio, config, resourceParams, response), () => {
|
|
3841
|
+
const cache = new StoreKeyMap();
|
|
3842
|
+
getResponseCacheKeys$t(cache, luvio, resourceParams, response.body);
|
|
3843
|
+
return cache;
|
|
3844
|
+
});
|
|
3845
|
+
}, (response) => {
|
|
3846
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$f(luvio, config, resourceParams, response));
|
|
3847
|
+
});
|
|
3848
|
+
}
|
|
3849
|
+
function buildNetworkSnapshotCachePolicy$f(context, coercedAdapterRequestContext) {
|
|
3850
|
+
return buildNetworkSnapshotCachePolicy$l(context, coercedAdapterRequestContext, buildNetworkSnapshot$t, undefined, false);
|
|
3851
|
+
}
|
|
3852
|
+
function buildCachedSnapshotCachePolicy$f(context, storeLookup) {
|
|
3853
|
+
const { luvio, config } = context;
|
|
3854
|
+
const selector = {
|
|
3855
|
+
recordId: keyBuilder$E(luvio, config),
|
|
3856
|
+
node: adapterFragment$f(luvio, config),
|
|
3857
|
+
variables: {},
|
|
3858
|
+
};
|
|
3859
|
+
const cacheSnapshot = storeLookup(selector, {
|
|
3860
|
+
config,
|
|
3861
|
+
resolve: () => buildNetworkSnapshot$t(luvio, config, snapshotRefreshOptions)
|
|
3862
|
+
});
|
|
3863
|
+
return cacheSnapshot;
|
|
3864
|
+
}
|
|
3865
|
+
const getManagedContentTaxonomyTermsAdapterFactory = (luvio) => function CMSAuthoring__getManagedContentTaxonomyTerms(untrustedConfig, requestContext) {
|
|
3866
|
+
const config = validateAdapterConfig$t(untrustedConfig, getManagedContentTaxonomyTerms_ConfigPropertyNames);
|
|
3867
|
+
// Invalid or incomplete config
|
|
3868
|
+
if (config === null) {
|
|
3869
|
+
return null;
|
|
3870
|
+
}
|
|
3871
|
+
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
3872
|
+
buildCachedSnapshotCachePolicy$f, buildNetworkSnapshotCachePolicy$f);
|
|
3873
|
+
};
|
|
3874
|
+
|
|
3875
|
+
function select$L(luvio, params) {
|
|
3876
|
+
return select$N();
|
|
3877
|
+
}
|
|
3289
3878
|
function getResponseCacheKeys$s(storeKeyMap, luvio, resourceParams, response) {
|
|
3290
3879
|
getTypeCacheKeys$j(storeKeyMap, luvio, response);
|
|
3291
3880
|
}
|
|
@@ -3310,8 +3899,8 @@ function createResourceRequest$s(config) {
|
|
|
3310
3899
|
const headers = {};
|
|
3311
3900
|
return {
|
|
3312
3901
|
baseUri: '/services/data/v61.0',
|
|
3313
|
-
basePath: '/connect/cms/content/
|
|
3314
|
-
method: '
|
|
3902
|
+
basePath: '/connect/cms/content/' + config.urlParams.contentKeyOrId + '/taxonomy-terms',
|
|
3903
|
+
method: 'patch',
|
|
3315
3904
|
body: config.body,
|
|
3316
3905
|
urlParams: config.urlParams,
|
|
3317
3906
|
queryParams: {},
|
|
@@ -3320,21 +3909,17 @@ function createResourceRequest$s(config) {
|
|
|
3320
3909
|
};
|
|
3321
3910
|
}
|
|
3322
3911
|
|
|
3323
|
-
const adapterName$s = '
|
|
3324
|
-
const
|
|
3325
|
-
generateParamConfigMetadata('
|
|
3326
|
-
generateParamConfigMetadata('
|
|
3912
|
+
const adapterName$s = 'updateManagedContentTaxonomyTerms';
|
|
3913
|
+
const updateManagedContentTaxonomyTerms_ConfigPropertyMetadata = [
|
|
3914
|
+
generateParamConfigMetadata('contentKeyOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
3915
|
+
generateParamConfigMetadata('termsToAdd', true, 2 /* Body */, 0 /* String */, true),
|
|
3916
|
+
generateParamConfigMetadata('termsToRemove', true, 2 /* Body */, 0 /* String */, true),
|
|
3327
3917
|
];
|
|
3328
|
-
const
|
|
3329
|
-
const createResourceParams$s = /*#__PURE__*/ createResourceParams$
|
|
3918
|
+
const updateManagedContentTaxonomyTerms_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$s, updateManagedContentTaxonomyTerms_ConfigPropertyMetadata);
|
|
3919
|
+
const createResourceParams$s = /*#__PURE__*/ createResourceParams$B(updateManagedContentTaxonomyTerms_ConfigPropertyMetadata);
|
|
3330
3920
|
function typeCheckConfig$s(untrustedConfig) {
|
|
3331
3921
|
const config = {};
|
|
3332
|
-
typeCheckConfig$
|
|
3333
|
-
const untrustedConfig_translationV2Request = untrustedConfig.translationV2Request;
|
|
3334
|
-
const referenceManagedContentTranslationV2RequestInputRepValidationError = validate$K(untrustedConfig_translationV2Request);
|
|
3335
|
-
if (referenceManagedContentTranslationV2RequestInputRepValidationError === null) {
|
|
3336
|
-
config.translationV2Request = untrustedConfig_translationV2Request;
|
|
3337
|
-
}
|
|
3922
|
+
typeCheckConfig$B(untrustedConfig, config, updateManagedContentTaxonomyTerms_ConfigPropertyMetadata);
|
|
3338
3923
|
return config;
|
|
3339
3924
|
}
|
|
3340
3925
|
function validateAdapterConfig$s(untrustedConfig, configPropertyNames) {
|
|
@@ -3368,12 +3953,12 @@ function buildNetworkSnapshot$s(luvio, config, options) {
|
|
|
3368
3953
|
throw response;
|
|
3369
3954
|
});
|
|
3370
3955
|
}
|
|
3371
|
-
const
|
|
3372
|
-
return function
|
|
3373
|
-
const config = validateAdapterConfig$s(untrustedConfig,
|
|
3956
|
+
const updateManagedContentTaxonomyTermsAdapterFactory = (luvio) => {
|
|
3957
|
+
return function updateManagedContentTaxonomyTerms(untrustedConfig) {
|
|
3958
|
+
const config = validateAdapterConfig$s(untrustedConfig, updateManagedContentTaxonomyTerms_ConfigPropertyNames);
|
|
3374
3959
|
// Invalid or incomplete config
|
|
3375
3960
|
if (config === null) {
|
|
3376
|
-
throw new Error('Invalid config for "
|
|
3961
|
+
throw new Error('Invalid config for "updateManagedContentTaxonomyTerms"');
|
|
3377
3962
|
}
|
|
3378
3963
|
return buildNetworkSnapshot$s(luvio, config);
|
|
3379
3964
|
};
|
|
@@ -3484,12 +4069,38 @@ function validate$F(obj, path = 'ManagedContentVariantStatusRepresentation') {
|
|
|
3484
4069
|
}
|
|
3485
4070
|
|
|
3486
4071
|
const TTL$i = 100;
|
|
3487
|
-
const VERSION$j = "
|
|
4072
|
+
const VERSION$j = "f644ed182fdec4abba2087ae85c47223";
|
|
3488
4073
|
function validate$E(obj, path = 'ManagedContentDocumentRepresentation') {
|
|
3489
4074
|
const v_error = (() => {
|
|
3490
4075
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3491
4076
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
3492
4077
|
}
|
|
4078
|
+
const obj_apiName = obj.apiName;
|
|
4079
|
+
const path_apiName = path + '.apiName';
|
|
4080
|
+
let obj_apiName_union0 = null;
|
|
4081
|
+
const obj_apiName_union0_error = (() => {
|
|
4082
|
+
if (typeof obj_apiName !== 'string') {
|
|
4083
|
+
return new TypeError('Expected "string" but received "' + typeof obj_apiName + '" (at "' + path_apiName + '")');
|
|
4084
|
+
}
|
|
4085
|
+
})();
|
|
4086
|
+
if (obj_apiName_union0_error != null) {
|
|
4087
|
+
obj_apiName_union0 = obj_apiName_union0_error.message;
|
|
4088
|
+
}
|
|
4089
|
+
let obj_apiName_union1 = null;
|
|
4090
|
+
const obj_apiName_union1_error = (() => {
|
|
4091
|
+
if (obj_apiName !== null) {
|
|
4092
|
+
return new TypeError('Expected "null" but received "' + typeof obj_apiName + '" (at "' + path_apiName + '")');
|
|
4093
|
+
}
|
|
4094
|
+
})();
|
|
4095
|
+
if (obj_apiName_union1_error != null) {
|
|
4096
|
+
obj_apiName_union1 = obj_apiName_union1_error.message;
|
|
4097
|
+
}
|
|
4098
|
+
if (obj_apiName_union0 && obj_apiName_union1) {
|
|
4099
|
+
let message = 'Object doesn\'t match union (at "' + path_apiName + '")';
|
|
4100
|
+
message += '\n' + obj_apiName_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
4101
|
+
message += '\n' + obj_apiName_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
4102
|
+
return new TypeError(message);
|
|
4103
|
+
}
|
|
3493
4104
|
const obj_contentBody = obj.contentBody;
|
|
3494
4105
|
const path_contentBody = path + '.contentBody';
|
|
3495
4106
|
if (typeof obj_contentBody !== 'object' || ArrayIsArray(obj_contentBody) || obj_contentBody === null) {
|
|
@@ -3519,7 +4130,7 @@ function validate$E(obj, path = 'ManagedContentDocumentRepresentation') {
|
|
|
3519
4130
|
}
|
|
3520
4131
|
const obj_contentType = obj.contentType;
|
|
3521
4132
|
const path_contentType = path + '.contentType';
|
|
3522
|
-
const referencepath_contentTypeValidationError = validate$
|
|
4133
|
+
const referencepath_contentTypeValidationError = validate$12(obj_contentType, path_contentType);
|
|
3523
4134
|
if (referencepath_contentTypeValidationError !== null) {
|
|
3524
4135
|
let message = 'Object doesn\'t match ManagedContentTypeSummaryRepresentation (at "' + path_contentType + '")\n';
|
|
3525
4136
|
message += referencepath_contentTypeValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3527,7 +4138,7 @@ function validate$E(obj, path = 'ManagedContentDocumentRepresentation') {
|
|
|
3527
4138
|
}
|
|
3528
4139
|
const obj_createdBy = obj.createdBy;
|
|
3529
4140
|
const path_createdBy = path + '.createdBy';
|
|
3530
|
-
const referencepath_createdByValidationError = validate
|
|
4141
|
+
const referencepath_createdByValidationError = validate$$(obj_createdBy, path_createdBy);
|
|
3531
4142
|
if (referencepath_createdByValidationError !== null) {
|
|
3532
4143
|
let message = 'Object doesn\'t match ManagedContentUserSummaryRepresentation (at "' + path_createdBy + '")\n';
|
|
3533
4144
|
message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3558,7 +4169,7 @@ function validate$E(obj, path = 'ManagedContentDocumentRepresentation') {
|
|
|
3558
4169
|
}
|
|
3559
4170
|
const obj_lastModifiedBy = obj.lastModifiedBy;
|
|
3560
4171
|
const path_lastModifiedBy = path + '.lastModifiedBy';
|
|
3561
|
-
const referencepath_lastModifiedByValidationError = validate
|
|
4172
|
+
const referencepath_lastModifiedByValidationError = validate$$(obj_lastModifiedBy, path_lastModifiedBy);
|
|
3562
4173
|
if (referencepath_lastModifiedByValidationError !== null) {
|
|
3563
4174
|
let message = 'Object doesn\'t match ManagedContentUserSummaryRepresentation (at "' + path_lastModifiedBy + '")\n';
|
|
3564
4175
|
message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3759,7 +4370,7 @@ const createManagedContent_ConfigPropertyMetadata = [
|
|
|
3759
4370
|
generateParamConfigMetadata('ManagedContentInputParam', true, 2 /* Body */, 4 /* Unsupported */),
|
|
3760
4371
|
];
|
|
3761
4372
|
const createManagedContent_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$r, createManagedContent_ConfigPropertyMetadata);
|
|
3762
|
-
const createResourceParams$r = /*#__PURE__*/ createResourceParams$
|
|
4373
|
+
const createResourceParams$r = /*#__PURE__*/ createResourceParams$B(createManagedContent_ConfigPropertyMetadata);
|
|
3763
4374
|
function typeCheckConfig$r(untrustedConfig) {
|
|
3764
4375
|
const config = {};
|
|
3765
4376
|
const untrustedConfig_ManagedContentInputParam = untrustedConfig.ManagedContentInputParam;
|
|
@@ -4020,7 +4631,7 @@ const publishManagedContent_ConfigPropertyMetadata = [
|
|
|
4020
4631
|
generateParamConfigMetadata('publishInput', true, 2 /* Body */, 4 /* Unsupported */),
|
|
4021
4632
|
];
|
|
4022
4633
|
const publishManagedContent_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$q, publishManagedContent_ConfigPropertyMetadata);
|
|
4023
|
-
const createResourceParams$q = /*#__PURE__*/ createResourceParams$
|
|
4634
|
+
const createResourceParams$q = /*#__PURE__*/ createResourceParams$B(publishManagedContent_ConfigPropertyMetadata);
|
|
4024
4635
|
function typeCheckConfig$q(untrustedConfig) {
|
|
4025
4636
|
const config = {};
|
|
4026
4637
|
const untrustedConfig_publishInput = untrustedConfig.publishInput;
|
|
@@ -4274,7 +4885,7 @@ const unpublishManagedContent_ConfigPropertyMetadata = [
|
|
|
4274
4885
|
generateParamConfigMetadata('unpublishInput', true, 2 /* Body */, 4 /* Unsupported */),
|
|
4275
4886
|
];
|
|
4276
4887
|
const unpublishManagedContent_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$p, unpublishManagedContent_ConfigPropertyMetadata);
|
|
4277
|
-
const createResourceParams$p = /*#__PURE__*/ createResourceParams$
|
|
4888
|
+
const createResourceParams$p = /*#__PURE__*/ createResourceParams$B(unpublishManagedContent_ConfigPropertyMetadata);
|
|
4278
4889
|
function typeCheckConfig$p(untrustedConfig) {
|
|
4279
4890
|
const config = {};
|
|
4280
4891
|
const untrustedConfig_unpublishInput = untrustedConfig.unpublishInput;
|
|
@@ -4409,7 +5020,7 @@ function validate$y(obj, path = 'ManagedContentVariantRepresentation') {
|
|
|
4409
5020
|
}
|
|
4410
5021
|
const obj_contentType = obj.contentType;
|
|
4411
5022
|
const path_contentType = path + '.contentType';
|
|
4412
|
-
const referencepath_contentTypeValidationError = validate$
|
|
5023
|
+
const referencepath_contentTypeValidationError = validate$12(obj_contentType, path_contentType);
|
|
4413
5024
|
if (referencepath_contentTypeValidationError !== null) {
|
|
4414
5025
|
let message = 'Object doesn\'t match ManagedContentTypeSummaryRepresentation (at "' + path_contentType + '")\n';
|
|
4415
5026
|
message += referencepath_contentTypeValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4417,7 +5028,7 @@ function validate$y(obj, path = 'ManagedContentVariantRepresentation') {
|
|
|
4417
5028
|
}
|
|
4418
5029
|
const obj_createdBy = obj.createdBy;
|
|
4419
5030
|
const path_createdBy = path + '.createdBy';
|
|
4420
|
-
const referencepath_createdByValidationError = validate
|
|
5031
|
+
const referencepath_createdByValidationError = validate$$(obj_createdBy, path_createdBy);
|
|
4421
5032
|
if (referencepath_createdByValidationError !== null) {
|
|
4422
5033
|
let message = 'Object doesn\'t match ManagedContentUserSummaryRepresentation (at "' + path_createdBy + '")\n';
|
|
4423
5034
|
message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4448,7 +5059,7 @@ function validate$y(obj, path = 'ManagedContentVariantRepresentation') {
|
|
|
4448
5059
|
}
|
|
4449
5060
|
const obj_lastModifiedBy = obj.lastModifiedBy;
|
|
4450
5061
|
const path_lastModifiedBy = path + '.lastModifiedBy';
|
|
4451
|
-
const referencepath_lastModifiedByValidationError = validate
|
|
5062
|
+
const referencepath_lastModifiedByValidationError = validate$$(obj_lastModifiedBy, path_lastModifiedBy);
|
|
4452
5063
|
if (referencepath_lastModifiedByValidationError !== null) {
|
|
4453
5064
|
let message = 'Object doesn\'t match ManagedContentUserSummaryRepresentation (at "' + path_lastModifiedBy + '")\n';
|
|
4454
5065
|
message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4586,7 +5197,7 @@ const createManagedContentVariant_ConfigPropertyMetadata = [
|
|
|
4586
5197
|
generateParamConfigMetadata('managedContentVariantInputParam', true, 2 /* Body */, 4 /* Unsupported */),
|
|
4587
5198
|
];
|
|
4588
5199
|
const createManagedContentVariant_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$o, createManagedContentVariant_ConfigPropertyMetadata);
|
|
4589
|
-
const createResourceParams$o = /*#__PURE__*/ createResourceParams$
|
|
5200
|
+
const createResourceParams$o = /*#__PURE__*/ createResourceParams$B(createManagedContentVariant_ConfigPropertyMetadata);
|
|
4590
5201
|
function typeCheckConfig$o(untrustedConfig) {
|
|
4591
5202
|
const config = {};
|
|
4592
5203
|
const untrustedConfig_managedContentVariantInputParam = untrustedConfig.managedContentVariantInputParam;
|
|
@@ -4674,10 +5285,10 @@ const deleteManagedContentVariant_ConfigPropertyMetadata = [
|
|
|
4674
5285
|
generateParamConfigMetadata('variantId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
4675
5286
|
];
|
|
4676
5287
|
const deleteManagedContentVariant_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$n, deleteManagedContentVariant_ConfigPropertyMetadata);
|
|
4677
|
-
const createResourceParams$n = /*#__PURE__*/ createResourceParams$
|
|
5288
|
+
const createResourceParams$n = /*#__PURE__*/ createResourceParams$B(deleteManagedContentVariant_ConfigPropertyMetadata);
|
|
4678
5289
|
function typeCheckConfig$n(untrustedConfig) {
|
|
4679
5290
|
const config = {};
|
|
4680
|
-
typeCheckConfig$
|
|
5291
|
+
typeCheckConfig$B(untrustedConfig, config, deleteManagedContentVariant_ConfigPropertyMetadata);
|
|
4681
5292
|
return config;
|
|
4682
5293
|
}
|
|
4683
5294
|
function validateAdapterConfig$n(untrustedConfig, configPropertyNames) {
|
|
@@ -4781,14 +5392,14 @@ const getManagedContentVariant_ConfigPropertyMetadata = [
|
|
|
4781
5392
|
generateParamConfigMetadata('variantId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
4782
5393
|
];
|
|
4783
5394
|
const getManagedContentVariant_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$m, getManagedContentVariant_ConfigPropertyMetadata);
|
|
4784
|
-
const createResourceParams$m = /*#__PURE__*/ createResourceParams$
|
|
5395
|
+
const createResourceParams$m = /*#__PURE__*/ createResourceParams$B(getManagedContentVariant_ConfigPropertyMetadata);
|
|
4785
5396
|
function keyBuilder$x(luvio, config) {
|
|
4786
5397
|
const resourceParams = createResourceParams$m(config);
|
|
4787
5398
|
return keyBuilder$y(luvio, resourceParams);
|
|
4788
5399
|
}
|
|
4789
5400
|
function typeCheckConfig$m(untrustedConfig) {
|
|
4790
5401
|
const config = {};
|
|
4791
|
-
typeCheckConfig$
|
|
5402
|
+
typeCheckConfig$B(untrustedConfig, config, getManagedContentVariant_ConfigPropertyMetadata);
|
|
4792
5403
|
return config;
|
|
4793
5404
|
}
|
|
4794
5405
|
function validateAdapterConfig$m(untrustedConfig, configPropertyNames) {
|
|
@@ -4837,7 +5448,7 @@ function buildNetworkSnapshot$m(luvio, config, options) {
|
|
|
4837
5448
|
});
|
|
4838
5449
|
}
|
|
4839
5450
|
function buildNetworkSnapshotCachePolicy$e(context, coercedAdapterRequestContext) {
|
|
4840
|
-
return buildNetworkSnapshotCachePolicy$
|
|
5451
|
+
return buildNetworkSnapshotCachePolicy$l(context, coercedAdapterRequestContext, buildNetworkSnapshot$m, undefined, false);
|
|
4841
5452
|
}
|
|
4842
5453
|
function buildCachedSnapshotCachePolicy$e(context, storeLookup) {
|
|
4843
5454
|
const { luvio, config } = context;
|
|
@@ -4942,10 +5553,10 @@ const replaceManagedContentVariant_ConfigPropertyMetadata = [
|
|
|
4942
5553
|
generateParamConfigMetadata('ManagedContentVariantInputParam', true, 2 /* Body */, 4 /* Unsupported */),
|
|
4943
5554
|
];
|
|
4944
5555
|
const replaceManagedContentVariant_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$l, replaceManagedContentVariant_ConfigPropertyMetadata);
|
|
4945
|
-
const createResourceParams$l = /*#__PURE__*/ createResourceParams$
|
|
5556
|
+
const createResourceParams$l = /*#__PURE__*/ createResourceParams$B(replaceManagedContentVariant_ConfigPropertyMetadata);
|
|
4946
5557
|
function typeCheckConfig$l(untrustedConfig) {
|
|
4947
5558
|
const config = {};
|
|
4948
|
-
typeCheckConfig$
|
|
5559
|
+
typeCheckConfig$B(untrustedConfig, config, replaceManagedContentVariant_ConfigPropertyMetadata);
|
|
4949
5560
|
const untrustedConfig_ManagedContentVariantInputParam = untrustedConfig.ManagedContentVariantInputParam;
|
|
4950
5561
|
const referenceManagedContentVariantUpdateInputRepresentationValidationError = validate$x(untrustedConfig_ManagedContentVariantInputParam);
|
|
4951
5562
|
if (referenceManagedContentVariantUpdateInputRepresentationValidationError === null) {
|
|
@@ -5002,7 +5613,7 @@ function validate$w(obj, path = 'ManagedContentVariantVersionRepresentation') {
|
|
|
5002
5613
|
}
|
|
5003
5614
|
const obj_createdBy = obj.createdBy;
|
|
5004
5615
|
const path_createdBy = path + '.createdBy';
|
|
5005
|
-
const referencepath_createdByValidationError = validate
|
|
5616
|
+
const referencepath_createdByValidationError = validate$$(obj_createdBy, path_createdBy);
|
|
5006
5617
|
if (referencepath_createdByValidationError !== null) {
|
|
5007
5618
|
let message = 'Object doesn\'t match ManagedContentUserSummaryRepresentation (at "' + path_createdBy + '")\n';
|
|
5008
5619
|
message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -5015,7 +5626,7 @@ function validate$w(obj, path = 'ManagedContentVariantVersionRepresentation') {
|
|
|
5015
5626
|
}
|
|
5016
5627
|
const obj_lastModifiedBy = obj.lastModifiedBy;
|
|
5017
5628
|
const path_lastModifiedBy = path + '.lastModifiedBy';
|
|
5018
|
-
const referencepath_lastModifiedByValidationError = validate
|
|
5629
|
+
const referencepath_lastModifiedByValidationError = validate$$(obj_lastModifiedBy, path_lastModifiedBy);
|
|
5019
5630
|
if (referencepath_lastModifiedByValidationError !== null) {
|
|
5020
5631
|
let message = 'Object doesn\'t match ManagedContentUserSummaryRepresentation (at "' + path_lastModifiedBy + '")\n';
|
|
5021
5632
|
message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -5206,14 +5817,14 @@ const getManagedContentVariantVersions_ConfigPropertyMetadata = [
|
|
|
5206
5817
|
generateParamConfigMetadata('status', false, 1 /* QueryParameter */, 0 /* String */, true),
|
|
5207
5818
|
];
|
|
5208
5819
|
const getManagedContentVariantVersions_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$k, getManagedContentVariantVersions_ConfigPropertyMetadata);
|
|
5209
|
-
const createResourceParams$k = /*#__PURE__*/ createResourceParams$
|
|
5820
|
+
const createResourceParams$k = /*#__PURE__*/ createResourceParams$B(getManagedContentVariantVersions_ConfigPropertyMetadata);
|
|
5210
5821
|
function keyBuilder$u(luvio, config) {
|
|
5211
5822
|
const resourceParams = createResourceParams$k(config);
|
|
5212
5823
|
return keyBuilder$v(luvio, resourceParams);
|
|
5213
5824
|
}
|
|
5214
5825
|
function typeCheckConfig$k(untrustedConfig) {
|
|
5215
5826
|
const config = {};
|
|
5216
|
-
typeCheckConfig$
|
|
5827
|
+
typeCheckConfig$B(untrustedConfig, config, getManagedContentVariantVersions_ConfigPropertyMetadata);
|
|
5217
5828
|
return config;
|
|
5218
5829
|
}
|
|
5219
5830
|
function validateAdapterConfig$k(untrustedConfig, configPropertyNames) {
|
|
@@ -5262,7 +5873,7 @@ function buildNetworkSnapshot$k(luvio, config, options) {
|
|
|
5262
5873
|
});
|
|
5263
5874
|
}
|
|
5264
5875
|
function buildNetworkSnapshotCachePolicy$d(context, coercedAdapterRequestContext) {
|
|
5265
|
-
return buildNetworkSnapshotCachePolicy$
|
|
5876
|
+
return buildNetworkSnapshotCachePolicy$l(context, coercedAdapterRequestContext, buildNetworkSnapshot$k, undefined, false);
|
|
5266
5877
|
}
|
|
5267
5878
|
function buildCachedSnapshotCachePolicy$d(context, storeLookup) {
|
|
5268
5879
|
const { luvio, config } = context;
|
|
@@ -5526,10 +6137,10 @@ const updateManagedContentWebUrl_ConfigPropertyMetadata = [
|
|
|
5526
6137
|
generateParamConfigMetadata('urlAlias', false, 2 /* Body */, 0 /* String */),
|
|
5527
6138
|
];
|
|
5528
6139
|
const updateManagedContentWebUrl_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$j, updateManagedContentWebUrl_ConfigPropertyMetadata);
|
|
5529
|
-
const createResourceParams$j = /*#__PURE__*/ createResourceParams$
|
|
6140
|
+
const createResourceParams$j = /*#__PURE__*/ createResourceParams$B(updateManagedContentWebUrl_ConfigPropertyMetadata);
|
|
5530
6141
|
function typeCheckConfig$j(untrustedConfig) {
|
|
5531
6142
|
const config = {};
|
|
5532
|
-
typeCheckConfig$
|
|
6143
|
+
typeCheckConfig$B(untrustedConfig, config, updateManagedContentWebUrl_ConfigPropertyMetadata);
|
|
5533
6144
|
const untrustedConfig_redirectInfo = untrustedConfig.redirectInfo;
|
|
5534
6145
|
const referenceManagedContentWebUrlRedirectInfoInputRepresentationValidationError = validate$u(untrustedConfig_redirectInfo);
|
|
5535
6146
|
if (referenceManagedContentWebUrlRedirectInfoInputRepresentationValidationError === null) {
|
|
@@ -5694,14 +6305,14 @@ const getManagedContent_ConfigPropertyMetadata = [
|
|
|
5694
6305
|
generateParamConfigMetadata('version', false, 1 /* QueryParameter */, 0 /* String */),
|
|
5695
6306
|
];
|
|
5696
6307
|
const getManagedContent_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$i, getManagedContent_ConfigPropertyMetadata);
|
|
5697
|
-
const createResourceParams$i = /*#__PURE__*/ createResourceParams$
|
|
6308
|
+
const createResourceParams$i = /*#__PURE__*/ createResourceParams$B(getManagedContent_ConfigPropertyMetadata);
|
|
5698
6309
|
function keyBuilder$r(luvio, config) {
|
|
5699
6310
|
const resourceParams = createResourceParams$i(config);
|
|
5700
6311
|
return keyBuilder$s(luvio, resourceParams);
|
|
5701
6312
|
}
|
|
5702
6313
|
function typeCheckConfig$i(untrustedConfig) {
|
|
5703
6314
|
const config = {};
|
|
5704
|
-
typeCheckConfig$
|
|
6315
|
+
typeCheckConfig$B(untrustedConfig, config, getManagedContent_ConfigPropertyMetadata);
|
|
5705
6316
|
return config;
|
|
5706
6317
|
}
|
|
5707
6318
|
function validateAdapterConfig$i(untrustedConfig, configPropertyNames) {
|
|
@@ -5750,7 +6361,7 @@ function buildNetworkSnapshot$i(luvio, config, options) {
|
|
|
5750
6361
|
});
|
|
5751
6362
|
}
|
|
5752
6363
|
function buildNetworkSnapshotCachePolicy$c(context, coercedAdapterRequestContext) {
|
|
5753
|
-
return buildNetworkSnapshotCachePolicy$
|
|
6364
|
+
return buildNetworkSnapshotCachePolicy$l(context, coercedAdapterRequestContext, buildNetworkSnapshot$i, undefined, false);
|
|
5754
6365
|
}
|
|
5755
6366
|
function buildCachedSnapshotCachePolicy$c(context, storeLookup) {
|
|
5756
6367
|
const { luvio, config } = context;
|
|
@@ -5929,14 +6540,14 @@ const getManagedContentVariantRendition_ConfigPropertyMetadata = [
|
|
|
5929
6540
|
generateParamConfigMetadata('version', false, 1 /* QueryParameter */, 0 /* String */),
|
|
5930
6541
|
];
|
|
5931
6542
|
const getManagedContentVariantRendition_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$h, getManagedContentVariantRendition_ConfigPropertyMetadata);
|
|
5932
|
-
const createResourceParams$h = /*#__PURE__*/ createResourceParams$
|
|
6543
|
+
const createResourceParams$h = /*#__PURE__*/ createResourceParams$B(getManagedContentVariantRendition_ConfigPropertyMetadata);
|
|
5933
6544
|
function keyBuilder$p(luvio, config) {
|
|
5934
6545
|
const resourceParams = createResourceParams$h(config);
|
|
5935
6546
|
return keyBuilder$q(luvio, resourceParams);
|
|
5936
6547
|
}
|
|
5937
6548
|
function typeCheckConfig$h(untrustedConfig) {
|
|
5938
6549
|
const config = {};
|
|
5939
|
-
typeCheckConfig$
|
|
6550
|
+
typeCheckConfig$B(untrustedConfig, config, getManagedContentVariantRendition_ConfigPropertyMetadata);
|
|
5940
6551
|
return config;
|
|
5941
6552
|
}
|
|
5942
6553
|
function validateAdapterConfig$h(untrustedConfig, configPropertyNames) {
|
|
@@ -5985,7 +6596,7 @@ function buildNetworkSnapshot$h(luvio, config, options) {
|
|
|
5985
6596
|
});
|
|
5986
6597
|
}
|
|
5987
6598
|
function buildNetworkSnapshotCachePolicy$b(context, coercedAdapterRequestContext) {
|
|
5988
|
-
return buildNetworkSnapshotCachePolicy$
|
|
6599
|
+
return buildNetworkSnapshotCachePolicy$l(context, coercedAdapterRequestContext, buildNetworkSnapshot$h, undefined, false);
|
|
5989
6600
|
}
|
|
5990
6601
|
function buildCachedSnapshotCachePolicy$b(context, storeLookup) {
|
|
5991
6602
|
const { luvio, config } = context;
|
|
@@ -6134,14 +6745,14 @@ const getWebUrls_ConfigPropertyMetadata = [
|
|
|
6134
6745
|
generateParamConfigMetadata('pageSize', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
6135
6746
|
];
|
|
6136
6747
|
const getWebUrls_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$g, getWebUrls_ConfigPropertyMetadata);
|
|
6137
|
-
const createResourceParams$g = /*#__PURE__*/ createResourceParams$
|
|
6748
|
+
const createResourceParams$g = /*#__PURE__*/ createResourceParams$B(getWebUrls_ConfigPropertyMetadata);
|
|
6138
6749
|
function keyBuilder$n(luvio, config) {
|
|
6139
6750
|
const resourceParams = createResourceParams$g(config);
|
|
6140
6751
|
return keyBuilder$o(luvio, resourceParams);
|
|
6141
6752
|
}
|
|
6142
6753
|
function typeCheckConfig$g(untrustedConfig) {
|
|
6143
6754
|
const config = {};
|
|
6144
|
-
typeCheckConfig$
|
|
6755
|
+
typeCheckConfig$B(untrustedConfig, config, getWebUrls_ConfigPropertyMetadata);
|
|
6145
6756
|
return config;
|
|
6146
6757
|
}
|
|
6147
6758
|
function validateAdapterConfig$g(untrustedConfig, configPropertyNames) {
|
|
@@ -6190,7 +6801,7 @@ function buildNetworkSnapshot$g(luvio, config, options) {
|
|
|
6190
6801
|
});
|
|
6191
6802
|
}
|
|
6192
6803
|
function buildNetworkSnapshotCachePolicy$a(context, coercedAdapterRequestContext) {
|
|
6193
|
-
return buildNetworkSnapshotCachePolicy$
|
|
6804
|
+
return buildNetworkSnapshotCachePolicy$l(context, coercedAdapterRequestContext, buildNetworkSnapshot$g, undefined, false);
|
|
6194
6805
|
}
|
|
6195
6806
|
function buildCachedSnapshotCachePolicy$a(context, storeLookup) {
|
|
6196
6807
|
const { luvio, config } = context;
|
|
@@ -6223,7 +6834,7 @@ function validate$n(obj, path = 'AbstractManagedContentReferencedByItemRepresent
|
|
|
6223
6834
|
if (obj.contentType !== undefined) {
|
|
6224
6835
|
const obj_contentType = obj.contentType;
|
|
6225
6836
|
const path_contentType = path + '.contentType';
|
|
6226
|
-
const referencepath_contentTypeValidationError = validate$
|
|
6837
|
+
const referencepath_contentTypeValidationError = validate$12(obj_contentType, path_contentType);
|
|
6227
6838
|
if (referencepath_contentTypeValidationError !== null) {
|
|
6228
6839
|
let message = 'Object doesn\'t match ManagedContentTypeSummaryRepresentation (at "' + path_contentType + '")\n';
|
|
6229
6840
|
message += referencepath_contentTypeValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -6444,14 +7055,14 @@ const getManagedContentReferencedBy_ConfigPropertyMetadata = [
|
|
|
6444
7055
|
generateParamConfigMetadata('referenceType', false, 1 /* QueryParameter */, 0 /* String */),
|
|
6445
7056
|
];
|
|
6446
7057
|
const getManagedContentReferencedBy_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$f, getManagedContentReferencedBy_ConfigPropertyMetadata);
|
|
6447
|
-
const createResourceParams$f = /*#__PURE__*/ createResourceParams$
|
|
7058
|
+
const createResourceParams$f = /*#__PURE__*/ createResourceParams$B(getManagedContentReferencedBy_ConfigPropertyMetadata);
|
|
6448
7059
|
function keyBuilder$l(luvio, config) {
|
|
6449
7060
|
const resourceParams = createResourceParams$f(config);
|
|
6450
7061
|
return keyBuilder$m(luvio, resourceParams);
|
|
6451
7062
|
}
|
|
6452
7063
|
function typeCheckConfig$f(untrustedConfig) {
|
|
6453
7064
|
const config = {};
|
|
6454
|
-
typeCheckConfig$
|
|
7065
|
+
typeCheckConfig$B(untrustedConfig, config, getManagedContentReferencedBy_ConfigPropertyMetadata);
|
|
6455
7066
|
return config;
|
|
6456
7067
|
}
|
|
6457
7068
|
function validateAdapterConfig$f(untrustedConfig, configPropertyNames) {
|
|
@@ -6500,7 +7111,7 @@ function buildNetworkSnapshot$f(luvio, config, options) {
|
|
|
6500
7111
|
});
|
|
6501
7112
|
}
|
|
6502
7113
|
function buildNetworkSnapshotCachePolicy$9(context, coercedAdapterRequestContext) {
|
|
6503
|
-
return buildNetworkSnapshotCachePolicy$
|
|
7114
|
+
return buildNetworkSnapshotCachePolicy$l(context, coercedAdapterRequestContext, buildNetworkSnapshot$f, undefined, false);
|
|
6504
7115
|
}
|
|
6505
7116
|
function buildCachedSnapshotCachePolicy$9(context, storeLookup) {
|
|
6506
7117
|
const { luvio, config } = context;
|
|
@@ -6556,7 +7167,7 @@ function validate$k(obj, path = 'ManagedContentVariantReferenceDetailsRepresenta
|
|
|
6556
7167
|
}
|
|
6557
7168
|
const obj_contentType = obj.contentType;
|
|
6558
7169
|
const path_contentType = path + '.contentType';
|
|
6559
|
-
const referencepath_contentTypeValidationError = validate$
|
|
7170
|
+
const referencepath_contentTypeValidationError = validate$12(obj_contentType, path_contentType);
|
|
6560
7171
|
if (referencepath_contentTypeValidationError !== null) {
|
|
6561
7172
|
let message = 'Object doesn\'t match ManagedContentTypeSummaryRepresentation (at "' + path_contentType + '")\n';
|
|
6562
7173
|
message += referencepath_contentTypeValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -6564,7 +7175,7 @@ function validate$k(obj, path = 'ManagedContentVariantReferenceDetailsRepresenta
|
|
|
6564
7175
|
}
|
|
6565
7176
|
const obj_createdBy = obj.createdBy;
|
|
6566
7177
|
const path_createdBy = path + '.createdBy';
|
|
6567
|
-
const referencepath_createdByValidationError = validate
|
|
7178
|
+
const referencepath_createdByValidationError = validate$$(obj_createdBy, path_createdBy);
|
|
6568
7179
|
if (referencepath_createdByValidationError !== null) {
|
|
6569
7180
|
let message = 'Object doesn\'t match ManagedContentUserSummaryRepresentation (at "' + path_createdBy + '")\n';
|
|
6570
7181
|
message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -6590,7 +7201,7 @@ function validate$k(obj, path = 'ManagedContentVariantReferenceDetailsRepresenta
|
|
|
6590
7201
|
}
|
|
6591
7202
|
const obj_lastModifiedBy = obj.lastModifiedBy;
|
|
6592
7203
|
const path_lastModifiedBy = path + '.lastModifiedBy';
|
|
6593
|
-
const referencepath_lastModifiedByValidationError = validate
|
|
7204
|
+
const referencepath_lastModifiedByValidationError = validate$$(obj_lastModifiedBy, path_lastModifiedBy);
|
|
6594
7205
|
if (referencepath_lastModifiedByValidationError !== null) {
|
|
6595
7206
|
let message = 'Object doesn\'t match ManagedContentUserSummaryRepresentation (at "' + path_lastModifiedBy + '")\n';
|
|
6596
7207
|
message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -6760,14 +7371,14 @@ const getManagedContentVariantReferences_ConfigPropertyMetadata = [
|
|
|
6760
7371
|
generateParamConfigMetadata('variantIds', false, 1 /* QueryParameter */, 0 /* String */, true),
|
|
6761
7372
|
];
|
|
6762
7373
|
const getManagedContentVariantReferences_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$e, getManagedContentVariantReferences_ConfigPropertyMetadata);
|
|
6763
|
-
const createResourceParams$e = /*#__PURE__*/ createResourceParams$
|
|
7374
|
+
const createResourceParams$e = /*#__PURE__*/ createResourceParams$B(getManagedContentVariantReferences_ConfigPropertyMetadata);
|
|
6764
7375
|
function keyBuilder$j(luvio, config) {
|
|
6765
7376
|
const resourceParams = createResourceParams$e(config);
|
|
6766
7377
|
return keyBuilder$k(luvio, resourceParams);
|
|
6767
7378
|
}
|
|
6768
7379
|
function typeCheckConfig$e(untrustedConfig) {
|
|
6769
7380
|
const config = {};
|
|
6770
|
-
typeCheckConfig$
|
|
7381
|
+
typeCheckConfig$B(untrustedConfig, config, getManagedContentVariantReferences_ConfigPropertyMetadata);
|
|
6771
7382
|
return config;
|
|
6772
7383
|
}
|
|
6773
7384
|
function validateAdapterConfig$e(untrustedConfig, configPropertyNames) {
|
|
@@ -6816,7 +7427,7 @@ function buildNetworkSnapshot$e(luvio, config, options) {
|
|
|
6816
7427
|
});
|
|
6817
7428
|
}
|
|
6818
7429
|
function buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext) {
|
|
6819
|
-
return buildNetworkSnapshotCachePolicy$
|
|
7430
|
+
return buildNetworkSnapshotCachePolicy$l(context, coercedAdapterRequestContext, buildNetworkSnapshot$e, undefined, false);
|
|
6820
7431
|
}
|
|
6821
7432
|
function buildCachedSnapshotCachePolicy$8(context, storeLookup) {
|
|
6822
7433
|
const { luvio, config } = context;
|
|
@@ -6992,14 +7603,14 @@ const getManagedContentSpaceFolder_ConfigPropertyMetadata = [
|
|
|
6992
7603
|
generateParamConfigMetadata('folderId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
6993
7604
|
];
|
|
6994
7605
|
const getManagedContentSpaceFolder_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$d, getManagedContentSpaceFolder_ConfigPropertyMetadata);
|
|
6995
|
-
const createResourceParams$d = /*#__PURE__*/ createResourceParams$
|
|
7606
|
+
const createResourceParams$d = /*#__PURE__*/ createResourceParams$B(getManagedContentSpaceFolder_ConfigPropertyMetadata);
|
|
6996
7607
|
function keyBuilder$h(luvio, config) {
|
|
6997
7608
|
const resourceParams = createResourceParams$d(config);
|
|
6998
7609
|
return keyBuilder$i(luvio, resourceParams);
|
|
6999
7610
|
}
|
|
7000
7611
|
function typeCheckConfig$d(untrustedConfig) {
|
|
7001
7612
|
const config = {};
|
|
7002
|
-
typeCheckConfig$
|
|
7613
|
+
typeCheckConfig$B(untrustedConfig, config, getManagedContentSpaceFolder_ConfigPropertyMetadata);
|
|
7003
7614
|
return config;
|
|
7004
7615
|
}
|
|
7005
7616
|
function validateAdapterConfig$d(untrustedConfig, configPropertyNames) {
|
|
@@ -7048,7 +7659,7 @@ function buildNetworkSnapshot$d(luvio, config, options) {
|
|
|
7048
7659
|
});
|
|
7049
7660
|
}
|
|
7050
7661
|
function buildNetworkSnapshotCachePolicy$7(context, coercedAdapterRequestContext) {
|
|
7051
|
-
return buildNetworkSnapshotCachePolicy$
|
|
7662
|
+
return buildNetworkSnapshotCachePolicy$l(context, coercedAdapterRequestContext, buildNetworkSnapshot$d, undefined, false);
|
|
7052
7663
|
}
|
|
7053
7664
|
function buildCachedSnapshotCachePolicy$7(context, storeLookup) {
|
|
7054
7665
|
const { luvio, config } = context;
|
|
@@ -7088,7 +7699,7 @@ function validate$g(obj, path = 'ManagedContentSpaceFolderItemRepresentation') {
|
|
|
7088
7699
|
if (obj.contentType !== undefined) {
|
|
7089
7700
|
const obj_contentType = obj.contentType;
|
|
7090
7701
|
const path_contentType = path + '.contentType';
|
|
7091
|
-
const referencepath_contentTypeValidationError = validate$
|
|
7702
|
+
const referencepath_contentTypeValidationError = validate$12(obj_contentType, path_contentType);
|
|
7092
7703
|
if (referencepath_contentTypeValidationError !== null) {
|
|
7093
7704
|
let message = 'Object doesn\'t match ManagedContentTypeSummaryRepresentation (at "' + path_contentType + '")\n';
|
|
7094
7705
|
message += referencepath_contentTypeValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -7342,14 +7953,14 @@ const getManagedContentByFolderId_ConfigPropertyMetadata = [
|
|
|
7342
7953
|
generateParamConfigMetadata('showPublishedOnly', false, 1 /* QueryParameter */, 1 /* Boolean */),
|
|
7343
7954
|
];
|
|
7344
7955
|
const getManagedContentByFolderId_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$c, getManagedContentByFolderId_ConfigPropertyMetadata);
|
|
7345
|
-
const createResourceParams$c = /*#__PURE__*/ createResourceParams$
|
|
7956
|
+
const createResourceParams$c = /*#__PURE__*/ createResourceParams$B(getManagedContentByFolderId_ConfigPropertyMetadata);
|
|
7346
7957
|
function keyBuilder$f(luvio, config) {
|
|
7347
7958
|
const resourceParams = createResourceParams$c(config);
|
|
7348
7959
|
return keyBuilder$g(luvio, resourceParams);
|
|
7349
7960
|
}
|
|
7350
7961
|
function typeCheckConfig$c(untrustedConfig) {
|
|
7351
7962
|
const config = {};
|
|
7352
|
-
typeCheckConfig$
|
|
7963
|
+
typeCheckConfig$B(untrustedConfig, config, getManagedContentByFolderId_ConfigPropertyMetadata);
|
|
7353
7964
|
return config;
|
|
7354
7965
|
}
|
|
7355
7966
|
function validateAdapterConfig$c(untrustedConfig, configPropertyNames) {
|
|
@@ -7398,7 +8009,7 @@ function buildNetworkSnapshot$c(luvio, config, options) {
|
|
|
7398
8009
|
});
|
|
7399
8010
|
}
|
|
7400
8011
|
function buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext) {
|
|
7401
|
-
return buildNetworkSnapshotCachePolicy$
|
|
8012
|
+
return buildNetworkSnapshotCachePolicy$l(context, coercedAdapterRequestContext, buildNetworkSnapshot$c, undefined, false);
|
|
7402
8013
|
}
|
|
7403
8014
|
function buildCachedSnapshotCachePolicy$6(context, storeLookup) {
|
|
7404
8015
|
const { luvio, config } = context;
|
|
@@ -7430,7 +8041,7 @@ function validate$e(obj, path = 'AbstractManagedContentSearchResultRepresentatio
|
|
|
7430
8041
|
}
|
|
7431
8042
|
const obj_createdBy = obj.createdBy;
|
|
7432
8043
|
const path_createdBy = path + '.createdBy';
|
|
7433
|
-
const referencepath_createdByValidationError = validate
|
|
8044
|
+
const referencepath_createdByValidationError = validate$$(obj_createdBy, path_createdBy);
|
|
7434
8045
|
if (referencepath_createdByValidationError !== null) {
|
|
7435
8046
|
let message = 'Object doesn\'t match ManagedContentUserSummaryRepresentation (at "' + path_createdBy + '")\n';
|
|
7436
8047
|
message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -7456,7 +8067,7 @@ function validate$e(obj, path = 'AbstractManagedContentSearchResultRepresentatio
|
|
|
7456
8067
|
}
|
|
7457
8068
|
const obj_lastModifiedBy = obj.lastModifiedBy;
|
|
7458
8069
|
const path_lastModifiedBy = path + '.lastModifiedBy';
|
|
7459
|
-
const referencepath_lastModifiedByValidationError = validate
|
|
8070
|
+
const referencepath_lastModifiedByValidationError = validate$$(obj_lastModifiedBy, path_lastModifiedBy);
|
|
7460
8071
|
if (referencepath_lastModifiedByValidationError !== null) {
|
|
7461
8072
|
let message = 'Object doesn\'t match ManagedContentUserSummaryRepresentation (at "' + path_lastModifiedBy + '")\n';
|
|
7462
8073
|
message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -7624,14 +8235,14 @@ const getSearchResults_ConfigPropertyMetadata = [
|
|
|
7624
8235
|
generateParamConfigMetadata('scope', false, 1 /* QueryParameter */, 0 /* String */),
|
|
7625
8236
|
];
|
|
7626
8237
|
const getSearchResults_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$b, getSearchResults_ConfigPropertyMetadata);
|
|
7627
|
-
const createResourceParams$b = /*#__PURE__*/ createResourceParams$
|
|
8238
|
+
const createResourceParams$b = /*#__PURE__*/ createResourceParams$B(getSearchResults_ConfigPropertyMetadata);
|
|
7628
8239
|
function keyBuilder$d(luvio, config) {
|
|
7629
8240
|
const resourceParams = createResourceParams$b(config);
|
|
7630
8241
|
return keyBuilder$e(luvio, resourceParams);
|
|
7631
8242
|
}
|
|
7632
8243
|
function typeCheckConfig$b(untrustedConfig) {
|
|
7633
8244
|
const config = {};
|
|
7634
|
-
typeCheckConfig$
|
|
8245
|
+
typeCheckConfig$B(untrustedConfig, config, getSearchResults_ConfigPropertyMetadata);
|
|
7635
8246
|
return config;
|
|
7636
8247
|
}
|
|
7637
8248
|
function validateAdapterConfig$b(untrustedConfig, configPropertyNames) {
|
|
@@ -7680,7 +8291,7 @@ function buildNetworkSnapshot$b(luvio, config, options) {
|
|
|
7680
8291
|
});
|
|
7681
8292
|
}
|
|
7682
8293
|
function buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext) {
|
|
7683
|
-
return buildNetworkSnapshotCachePolicy$
|
|
8294
|
+
return buildNetworkSnapshotCachePolicy$l(context, coercedAdapterRequestContext, buildNetworkSnapshot$b, undefined, false);
|
|
7684
8295
|
}
|
|
7685
8296
|
function buildCachedSnapshotCachePolicy$5(context, storeLookup) {
|
|
7686
8297
|
const { luvio, config } = context;
|
|
@@ -7706,15 +8317,15 @@ const getSearchResultsAdapterFactory = (luvio) => function CMSAuthoring__getSear
|
|
|
7706
8317
|
};
|
|
7707
8318
|
|
|
7708
8319
|
function select$h(luvio, params) {
|
|
7709
|
-
return select$
|
|
8320
|
+
return select$13();
|
|
7710
8321
|
}
|
|
7711
8322
|
function getResponseCacheKeys$a(storeKeyMap, luvio, resourceParams, response) {
|
|
7712
|
-
getTypeCacheKeys$
|
|
8323
|
+
getTypeCacheKeys$s(storeKeyMap, luvio, response);
|
|
7713
8324
|
}
|
|
7714
8325
|
function ingestSuccess$a(luvio, resourceParams, response) {
|
|
7715
8326
|
const { body } = response;
|
|
7716
|
-
const key = keyBuilderFromType$
|
|
7717
|
-
luvio.storeIngest(key, ingest$
|
|
8327
|
+
const key = keyBuilderFromType$d(luvio, body);
|
|
8328
|
+
luvio.storeIngest(key, ingest$s, body);
|
|
7718
8329
|
const snapshot = luvio.storeLookup({
|
|
7719
8330
|
recordId: key,
|
|
7720
8331
|
node: select$h(),
|
|
@@ -7755,10 +8366,10 @@ const createSchedule_ConfigPropertyMetadata = [
|
|
|
7755
8366
|
generateParamConfigMetadata('versionIds', false, 2 /* Body */, 0 /* String */, true),
|
|
7756
8367
|
];
|
|
7757
8368
|
const createSchedule_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$a, createSchedule_ConfigPropertyMetadata);
|
|
7758
|
-
const createResourceParams$a = /*#__PURE__*/ createResourceParams$
|
|
8369
|
+
const createResourceParams$a = /*#__PURE__*/ createResourceParams$B(createSchedule_ConfigPropertyMetadata);
|
|
7759
8370
|
function typeCheckConfig$a(untrustedConfig) {
|
|
7760
8371
|
const config = {};
|
|
7761
|
-
typeCheckConfig$
|
|
8372
|
+
typeCheckConfig$B(untrustedConfig, config, createSchedule_ConfigPropertyMetadata);
|
|
7762
8373
|
return config;
|
|
7763
8374
|
}
|
|
7764
8375
|
function validateAdapterConfig$a(untrustedConfig, configPropertyNames) {
|
|
@@ -7804,15 +8415,15 @@ const createScheduleAdapterFactory = (luvio) => {
|
|
|
7804
8415
|
};
|
|
7805
8416
|
|
|
7806
8417
|
function select$g(luvio, params) {
|
|
7807
|
-
return select$
|
|
8418
|
+
return select$13();
|
|
7808
8419
|
}
|
|
7809
8420
|
function getResponseCacheKeys$9(storeKeyMap, luvio, resourceParams, response) {
|
|
7810
|
-
getTypeCacheKeys$
|
|
8421
|
+
getTypeCacheKeys$s(storeKeyMap, luvio, response);
|
|
7811
8422
|
}
|
|
7812
8423
|
function ingestSuccess$9(luvio, resourceParams, response) {
|
|
7813
8424
|
const { body } = response;
|
|
7814
|
-
const key = keyBuilderFromType$
|
|
7815
|
-
luvio.storeIngest(key, ingest$
|
|
8425
|
+
const key = keyBuilderFromType$d(luvio, body);
|
|
8426
|
+
luvio.storeIngest(key, ingest$s, body);
|
|
7816
8427
|
const snapshot = luvio.storeLookup({
|
|
7817
8428
|
recordId: key,
|
|
7818
8429
|
node: select$g(),
|
|
@@ -7847,10 +8458,10 @@ const updateDeployment_ConfigPropertyMetadata = [
|
|
|
7847
8458
|
generateParamConfigMetadata('scheduleDate', false, 1 /* QueryParameter */, 0 /* String */),
|
|
7848
8459
|
];
|
|
7849
8460
|
const updateDeployment_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$9, updateDeployment_ConfigPropertyMetadata);
|
|
7850
|
-
const createResourceParams$9 = /*#__PURE__*/ createResourceParams$
|
|
8461
|
+
const createResourceParams$9 = /*#__PURE__*/ createResourceParams$B(updateDeployment_ConfigPropertyMetadata);
|
|
7851
8462
|
function typeCheckConfig$9(untrustedConfig) {
|
|
7852
8463
|
const config = {};
|
|
7853
|
-
typeCheckConfig$
|
|
8464
|
+
typeCheckConfig$B(untrustedConfig, config, updateDeployment_ConfigPropertyMetadata);
|
|
7854
8465
|
return config;
|
|
7855
8466
|
}
|
|
7856
8467
|
function validateAdapterConfig$9(untrustedConfig, configPropertyNames) {
|
|
@@ -8257,14 +8868,14 @@ const getManagedContentSpaces_ConfigPropertyMetadata = [
|
|
|
8257
8868
|
generateParamConfigMetadata('nameFragment', false, 1 /* QueryParameter */, 0 /* String */),
|
|
8258
8869
|
];
|
|
8259
8870
|
const getManagedContentSpaces_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$8, getManagedContentSpaces_ConfigPropertyMetadata);
|
|
8260
|
-
const createResourceParams$8 = /*#__PURE__*/ createResourceParams$
|
|
8871
|
+
const createResourceParams$8 = /*#__PURE__*/ createResourceParams$B(getManagedContentSpaces_ConfigPropertyMetadata);
|
|
8261
8872
|
function keyBuilder$a(luvio, config) {
|
|
8262
8873
|
const resourceParams = createResourceParams$8(config);
|
|
8263
8874
|
return keyBuilder$b(luvio, resourceParams);
|
|
8264
8875
|
}
|
|
8265
8876
|
function typeCheckConfig$8(untrustedConfig) {
|
|
8266
8877
|
const config = {};
|
|
8267
|
-
typeCheckConfig$
|
|
8878
|
+
typeCheckConfig$B(untrustedConfig, config, getManagedContentSpaces_ConfigPropertyMetadata);
|
|
8268
8879
|
return config;
|
|
8269
8880
|
}
|
|
8270
8881
|
function validateAdapterConfig$8(untrustedConfig, configPropertyNames) {
|
|
@@ -8313,7 +8924,7 @@ function buildNetworkSnapshot$8(luvio, config, options) {
|
|
|
8313
8924
|
});
|
|
8314
8925
|
}
|
|
8315
8926
|
function buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext) {
|
|
8316
|
-
return buildNetworkSnapshotCachePolicy$
|
|
8927
|
+
return buildNetworkSnapshotCachePolicy$l(context, coercedAdapterRequestContext, buildNetworkSnapshot$8, undefined, false);
|
|
8317
8928
|
}
|
|
8318
8929
|
function buildCachedSnapshotCachePolicy$4(context, storeLookup) {
|
|
8319
8930
|
const { luvio, config } = context;
|
|
@@ -8397,14 +9008,14 @@ const getManagedContentSpace_ConfigPropertyMetadata = [
|
|
|
8397
9008
|
generateParamConfigMetadata('contentSpaceId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
8398
9009
|
];
|
|
8399
9010
|
const getManagedContentSpace_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$7, getManagedContentSpace_ConfigPropertyMetadata);
|
|
8400
|
-
const createResourceParams$7 = /*#__PURE__*/ createResourceParams$
|
|
9011
|
+
const createResourceParams$7 = /*#__PURE__*/ createResourceParams$B(getManagedContentSpace_ConfigPropertyMetadata);
|
|
8401
9012
|
function keyBuilder$8(luvio, config) {
|
|
8402
9013
|
const resourceParams = createResourceParams$7(config);
|
|
8403
9014
|
return keyBuilder$9(luvio, resourceParams);
|
|
8404
9015
|
}
|
|
8405
9016
|
function typeCheckConfig$7(untrustedConfig) {
|
|
8406
9017
|
const config = {};
|
|
8407
|
-
typeCheckConfig$
|
|
9018
|
+
typeCheckConfig$B(untrustedConfig, config, getManagedContentSpace_ConfigPropertyMetadata);
|
|
8408
9019
|
return config;
|
|
8409
9020
|
}
|
|
8410
9021
|
function validateAdapterConfig$7(untrustedConfig, configPropertyNames) {
|
|
@@ -8453,7 +9064,7 @@ function buildNetworkSnapshot$7(luvio, config, options) {
|
|
|
8453
9064
|
});
|
|
8454
9065
|
}
|
|
8455
9066
|
function buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext) {
|
|
8456
|
-
return buildNetworkSnapshotCachePolicy$
|
|
9067
|
+
return buildNetworkSnapshotCachePolicy$l(context, coercedAdapterRequestContext, buildNetworkSnapshot$7, undefined, false);
|
|
8457
9068
|
}
|
|
8458
9069
|
function buildCachedSnapshotCachePolicy$3(context, storeLookup) {
|
|
8459
9070
|
const { luvio, config } = context;
|
|
@@ -8614,10 +9225,10 @@ const patchManagedContentSpace_ConfigPropertyMetadata = [
|
|
|
8614
9225
|
generateParamConfigMetadata('ManagedContentSpaceInput', true, 2 /* Body */, 4 /* Unsupported */),
|
|
8615
9226
|
];
|
|
8616
9227
|
const patchManagedContentSpace_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, patchManagedContentSpace_ConfigPropertyMetadata);
|
|
8617
|
-
const createResourceParams$6 = /*#__PURE__*/ createResourceParams$
|
|
9228
|
+
const createResourceParams$6 = /*#__PURE__*/ createResourceParams$B(patchManagedContentSpace_ConfigPropertyMetadata);
|
|
8618
9229
|
function typeCheckConfig$6(untrustedConfig) {
|
|
8619
9230
|
const config = {};
|
|
8620
|
-
typeCheckConfig$
|
|
9231
|
+
typeCheckConfig$B(untrustedConfig, config, patchManagedContentSpace_ConfigPropertyMetadata);
|
|
8621
9232
|
const untrustedConfig_ManagedContentSpaceInput = untrustedConfig.ManagedContentSpaceInput;
|
|
8622
9233
|
const referenceManagedContentSpaceInputRepresentationValidationError = validate$9(untrustedConfig_ManagedContentSpaceInput);
|
|
8623
9234
|
if (referenceManagedContentSpaceInputRepresentationValidationError === null) {
|
|
@@ -8841,14 +9452,14 @@ const getManagedContentSpaceOrchestratorConfig_ConfigPropertyMetadata = [
|
|
|
8841
9452
|
generateParamConfigMetadata('contentSpaceId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
8842
9453
|
];
|
|
8843
9454
|
const getManagedContentSpaceOrchestratorConfig_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, getManagedContentSpaceOrchestratorConfig_ConfigPropertyMetadata);
|
|
8844
|
-
const createResourceParams$5 = /*#__PURE__*/ createResourceParams$
|
|
9455
|
+
const createResourceParams$5 = /*#__PURE__*/ createResourceParams$B(getManagedContentSpaceOrchestratorConfig_ConfigPropertyMetadata);
|
|
8845
9456
|
function keyBuilder$5(luvio, config) {
|
|
8846
9457
|
const resourceParams = createResourceParams$5(config);
|
|
8847
9458
|
return keyBuilder$6(luvio, resourceParams);
|
|
8848
9459
|
}
|
|
8849
9460
|
function typeCheckConfig$5(untrustedConfig) {
|
|
8850
9461
|
const config = {};
|
|
8851
|
-
typeCheckConfig$
|
|
9462
|
+
typeCheckConfig$B(untrustedConfig, config, getManagedContentSpaceOrchestratorConfig_ConfigPropertyMetadata);
|
|
8852
9463
|
return config;
|
|
8853
9464
|
}
|
|
8854
9465
|
function validateAdapterConfig$5(untrustedConfig, configPropertyNames) {
|
|
@@ -8897,7 +9508,7 @@ function buildNetworkSnapshot$5(luvio, config, options) {
|
|
|
8897
9508
|
});
|
|
8898
9509
|
}
|
|
8899
9510
|
function buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext) {
|
|
8900
|
-
return buildNetworkSnapshotCachePolicy$
|
|
9511
|
+
return buildNetworkSnapshotCachePolicy$l(context, coercedAdapterRequestContext, buildNetworkSnapshot$5, undefined, false);
|
|
8901
9512
|
}
|
|
8902
9513
|
function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
|
|
8903
9514
|
const { luvio, config } = context;
|
|
@@ -8986,10 +9597,10 @@ const putManagedContentSpaceOrchestratorConfig_ConfigPropertyMetadata = [
|
|
|
8986
9597
|
generateParamConfigMetadata('mContentOrchConfigInput', true, 2 /* Body */, 4 /* Unsupported */),
|
|
8987
9598
|
];
|
|
8988
9599
|
const putManagedContentSpaceOrchestratorConfig_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, putManagedContentSpaceOrchestratorConfig_ConfigPropertyMetadata);
|
|
8989
|
-
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$
|
|
9600
|
+
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$B(putManagedContentSpaceOrchestratorConfig_ConfigPropertyMetadata);
|
|
8990
9601
|
function typeCheckConfig$4(untrustedConfig) {
|
|
8991
9602
|
const config = {};
|
|
8992
|
-
typeCheckConfig$
|
|
9603
|
+
typeCheckConfig$B(untrustedConfig, config, putManagedContentSpaceOrchestratorConfig_ConfigPropertyMetadata);
|
|
8993
9604
|
const untrustedConfig_mContentOrchConfigInput = untrustedConfig.mContentOrchConfigInput;
|
|
8994
9605
|
const referenceManagedContentOrchestratorConfigInputRepresentationValidationError = validate$6(untrustedConfig_mContentOrchConfigInput);
|
|
8995
9606
|
if (referenceManagedContentOrchestratorConfigInputRepresentationValidationError === null) {
|
|
@@ -9054,7 +9665,7 @@ function validate$5(obj, path = 'ManagedContentTypeSummaryCollectionRepresentati
|
|
|
9054
9665
|
for (let i = 0; i < obj_contentTypes.length; i++) {
|
|
9055
9666
|
const obj_contentTypes_item = obj_contentTypes[i];
|
|
9056
9667
|
const path_contentTypes_item = path_contentTypes + '[' + i + ']';
|
|
9057
|
-
const referencepath_contentTypes_itemValidationError = validate$
|
|
9668
|
+
const referencepath_contentTypes_itemValidationError = validate$12(obj_contentTypes_item, path_contentTypes_item);
|
|
9058
9669
|
if (referencepath_contentTypes_itemValidationError !== null) {
|
|
9059
9670
|
let message = 'Object doesn\'t match ManagedContentTypeSummaryRepresentation (at "' + path_contentTypes_item + '")\n';
|
|
9060
9671
|
message += referencepath_contentTypes_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -9074,7 +9685,7 @@ function normalize$2(input, existing, path, luvio, store, timestamp) {
|
|
|
9074
9685
|
return input;
|
|
9075
9686
|
}
|
|
9076
9687
|
const select$7 = function ManagedContentTypeSummaryCollectionRepresentationSelect() {
|
|
9077
|
-
const { selections: ManagedContentTypeSummaryRepresentation__selections, opaque: ManagedContentTypeSummaryRepresentation__opaque, } = select$
|
|
9688
|
+
const { selections: ManagedContentTypeSummaryRepresentation__selections, opaque: ManagedContentTypeSummaryRepresentation__opaque, } = select$17();
|
|
9078
9689
|
return {
|
|
9079
9690
|
kind: 'Fragment',
|
|
9080
9691
|
version: VERSION$3,
|
|
@@ -9102,7 +9713,7 @@ function equals$3(existing, incoming) {
|
|
|
9102
9713
|
const existing_contentTypes = existing.contentTypes;
|
|
9103
9714
|
const incoming_contentTypes = incoming.contentTypes;
|
|
9104
9715
|
const equals_contentTypes_items = equalsArray(existing_contentTypes, incoming_contentTypes, (existing_contentTypes_item, incoming_contentTypes_item) => {
|
|
9105
|
-
if (!(equals$
|
|
9716
|
+
if (!(equals$z(existing_contentTypes_item, incoming_contentTypes_item))) {
|
|
9106
9717
|
return false;
|
|
9107
9718
|
}
|
|
9108
9719
|
});
|
|
@@ -9191,14 +9802,14 @@ const getManagedContentTypesForMixin_ConfigPropertyMetadata = [
|
|
|
9191
9802
|
generateParamConfigMetadata('mixinFQN', false, 1 /* QueryParameter */, 0 /* String */),
|
|
9192
9803
|
];
|
|
9193
9804
|
const getManagedContentTypesForMixin_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, getManagedContentTypesForMixin_ConfigPropertyMetadata);
|
|
9194
|
-
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$
|
|
9805
|
+
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$B(getManagedContentTypesForMixin_ConfigPropertyMetadata);
|
|
9195
9806
|
function keyBuilder$3(luvio, config) {
|
|
9196
9807
|
const resourceParams = createResourceParams$3(config);
|
|
9197
9808
|
return keyBuilder$4(luvio, resourceParams);
|
|
9198
9809
|
}
|
|
9199
9810
|
function typeCheckConfig$3(untrustedConfig) {
|
|
9200
9811
|
const config = {};
|
|
9201
|
-
typeCheckConfig$
|
|
9812
|
+
typeCheckConfig$B(untrustedConfig, config, getManagedContentTypesForMixin_ConfigPropertyMetadata);
|
|
9202
9813
|
return config;
|
|
9203
9814
|
}
|
|
9204
9815
|
function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
|
|
@@ -9247,7 +9858,7 @@ function buildNetworkSnapshot$3(luvio, config, options) {
|
|
|
9247
9858
|
});
|
|
9248
9859
|
}
|
|
9249
9860
|
function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
|
|
9250
|
-
return buildNetworkSnapshotCachePolicy$
|
|
9861
|
+
return buildNetworkSnapshotCachePolicy$l(context, coercedAdapterRequestContext, buildNetworkSnapshot$3, undefined, false);
|
|
9251
9862
|
}
|
|
9252
9863
|
function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
|
|
9253
9864
|
const { luvio, config } = context;
|
|
@@ -9571,10 +10182,10 @@ const createManagedContentExportV2Job_ConfigPropertyMetadata = [
|
|
|
9571
10182
|
generateParamConfigMetadata('managedContentV2JobRequest', true, 2 /* Body */, 4 /* Unsupported */),
|
|
9572
10183
|
];
|
|
9573
10184
|
const createManagedContentExportV2Job_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, createManagedContentExportV2Job_ConfigPropertyMetadata);
|
|
9574
|
-
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$
|
|
10185
|
+
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$B(createManagedContentExportV2Job_ConfigPropertyMetadata);
|
|
9575
10186
|
function typeCheckConfig$2(untrustedConfig) {
|
|
9576
10187
|
const config = {};
|
|
9577
|
-
typeCheckConfig$
|
|
10188
|
+
typeCheckConfig$B(untrustedConfig, config, createManagedContentExportV2Job_ConfigPropertyMetadata);
|
|
9578
10189
|
const untrustedConfig_managedContentV2JobRequest = untrustedConfig.managedContentV2JobRequest;
|
|
9579
10190
|
const referenceManagedContentExportContentV2JobRequestInputRepresentationValidationError = validate$4(untrustedConfig_managedContentV2JobRequest);
|
|
9580
10191
|
if (referenceManagedContentExportContentV2JobRequestInputRepresentationValidationError === null) {
|
|
@@ -9691,10 +10302,10 @@ const createManagedContentImportV2Job_ConfigPropertyMetadata = [
|
|
|
9691
10302
|
generateParamConfigMetadata('managedContentV2JobRequest', true, 2 /* Body */, 4 /* Unsupported */),
|
|
9692
10303
|
];
|
|
9693
10304
|
const createManagedContentImportV2Job_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, createManagedContentImportV2Job_ConfigPropertyMetadata);
|
|
9694
|
-
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$
|
|
10305
|
+
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$B(createManagedContentImportV2Job_ConfigPropertyMetadata);
|
|
9695
10306
|
function typeCheckConfig$1(untrustedConfig) {
|
|
9696
10307
|
const config = {};
|
|
9697
|
-
typeCheckConfig$
|
|
10308
|
+
typeCheckConfig$B(untrustedConfig, config, createManagedContentImportV2Job_ConfigPropertyMetadata);
|
|
9698
10309
|
const untrustedConfig_managedContentV2JobRequest = untrustedConfig.managedContentV2JobRequest;
|
|
9699
10310
|
const referenceManagedContentV2JobRequestInputRepresentationValidationError = validate$2(untrustedConfig_managedContentV2JobRequest);
|
|
9700
10311
|
if (referenceManagedContentV2JobRequestInputRepresentationValidationError === null) {
|
|
@@ -9975,14 +10586,14 @@ const getManagedContentPreviews_ConfigPropertyMetadata = [
|
|
|
9975
10586
|
generateParamConfigMetadata('managedContentTypeName', false, 1 /* QueryParameter */, 0 /* String */),
|
|
9976
10587
|
];
|
|
9977
10588
|
const getManagedContentPreviews_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, getManagedContentPreviews_ConfigPropertyMetadata);
|
|
9978
|
-
const createResourceParams = /*#__PURE__*/ createResourceParams$
|
|
10589
|
+
const createResourceParams = /*#__PURE__*/ createResourceParams$B(getManagedContentPreviews_ConfigPropertyMetadata);
|
|
9979
10590
|
function keyBuilder(luvio, config) {
|
|
9980
10591
|
const resourceParams = createResourceParams(config);
|
|
9981
10592
|
return keyBuilder$1(luvio, resourceParams);
|
|
9982
10593
|
}
|
|
9983
10594
|
function typeCheckConfig(untrustedConfig) {
|
|
9984
10595
|
const config = {};
|
|
9985
|
-
typeCheckConfig$
|
|
10596
|
+
typeCheckConfig$B(untrustedConfig, config, getManagedContentPreviews_ConfigPropertyMetadata);
|
|
9986
10597
|
return config;
|
|
9987
10598
|
}
|
|
9988
10599
|
function validateAdapterConfig(untrustedConfig, configPropertyNames) {
|
|
@@ -10031,7 +10642,7 @@ function buildNetworkSnapshot(luvio, config, options) {
|
|
|
10031
10642
|
});
|
|
10032
10643
|
}
|
|
10033
10644
|
function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
|
|
10034
|
-
return buildNetworkSnapshotCachePolicy$
|
|
10645
|
+
return buildNetworkSnapshotCachePolicy$l(context, coercedAdapterRequestContext, buildNetworkSnapshot, undefined, false);
|
|
10035
10646
|
}
|
|
10036
10647
|
function buildCachedSnapshotCachePolicy(context, storeLookup) {
|
|
10037
10648
|
const { luvio, config } = context;
|
|
@@ -10056,4 +10667,4 @@ const getManagedContentPreviewsAdapterFactory = (luvio) => function CMSAuthoring
|
|
|
10056
10667
|
buildCachedSnapshotCachePolicy, buildNetworkSnapshotCachePolicy);
|
|
10057
10668
|
};
|
|
10058
10669
|
|
|
10059
|
-
export { createDeploymentAdapterFactory, createManagedContentAdapterFactory, createManagedContentExportV2JobAdapterFactory, createManagedContentImportV2JobAdapterFactory, createManagedContentVariantAdapterFactory, createScheduleAdapterFactory, createTranslationV2JobAdapterFactory, deleteManagedContentVariantAdapterFactory, getAllCMSJobsForSpaceAdapterFactory, getCMSJobForSpaceAdapterFactory, getCollectionItemsAdapterFactory, getDeploymentsAdapterFactory, getManagedContentAdapterFactory, getManagedContentByFolderIdAdapterFactory, getManagedContentPreviewsAdapterFactory, getManagedContentReferencedByAdapterFactory, getManagedContentSpaceAdapterFactory, getManagedContentSpaceFolderAdapterFactory, getManagedContentSpaceFolderItemsV1AdapterFactory, getManagedContentSpaceOrchestratorConfigAdapterFactory, getManagedContentSpacesAdapterFactory, getManagedContentTypesForMixinAdapterFactory, getManagedContentVariantAdapterFactory, getManagedContentVariantReferencesAdapterFactory, getManagedContentVariantRenditionAdapterFactory, getManagedContentVariantVersionsAdapterFactory, getSearchResultsAdapterFactory, getWebUrlsAdapterFactory, patchManagedContentSpaceAdapterFactory, publishManagedContentAdapterFactory, putManagedContentSpaceOrchestratorConfigAdapterFactory, replaceManagedContentVariantAdapterFactory, unpublishManagedContentAdapterFactory, updateDeploymentAdapterFactory, updateManagedContentWebUrlAdapterFactory };
|
|
10670
|
+
export { createDeploymentAdapterFactory, createManagedContentAdapterFactory, createManagedContentExportV2JobAdapterFactory, createManagedContentImportV2JobAdapterFactory, createManagedContentVariantAdapterFactory, createScheduleAdapterFactory, createTranslationV2JobAdapterFactory, deleteManagedContentVariantAdapterFactory, getAllCMSJobsForSpaceAdapterFactory, getCMSJobForSpaceAdapterFactory, getCollectionItemsAdapterFactory, getDeploymentsAdapterFactory, getManagedContentAdapterFactory, getManagedContentByFolderIdAdapterFactory, getManagedContentPreviewsAdapterFactory, getManagedContentReferencedByAdapterFactory, getManagedContentSpaceAdapterFactory, getManagedContentSpaceFolderAdapterFactory, getManagedContentSpaceFolderItemsV1AdapterFactory, getManagedContentSpaceOrchestratorConfigAdapterFactory, getManagedContentSpacesAdapterFactory, getManagedContentTaxonomyTermsAdapterFactory, getManagedContentTypesForMixinAdapterFactory, getManagedContentVariantAdapterFactory, getManagedContentVariantReferencesAdapterFactory, getManagedContentVariantRenditionAdapterFactory, getManagedContentVariantVersionsAdapterFactory, getSearchResultsAdapterFactory, getWebUrlsAdapterFactory, patchManagedContentSpaceAdapterFactory, publishManagedContentAdapterFactory, putManagedContentSpaceOrchestratorConfigAdapterFactory, replaceManagedContentVariantAdapterFactory, unpublishManagedContentAdapterFactory, updateDeploymentAdapterFactory, updateManagedContentTaxonomyTermsAdapterFactory, updateManagedContentWebUrlAdapterFactory };
|