@salesforce/lds-adapters-cms-authoring 1.299.0 → 1.300.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 +654 -893
- package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +0 -1
- package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +1 -3
- package/package.json +4 -4
- package/sfdc/index.js +1167 -1418
- package/src/raml/api.raml +0 -27
- package/src/raml/luvio.raml +0 -6
- package/dist/es/es2018/types/src/generated/adapters/getManagedContentFileUploadConfig.d.ts +0 -26
- package/dist/es/es2018/types/src/generated/resources/getConnectCmsContentsFileUpload.d.ts +0 -12
- package/dist/es/es2018/types/src/generated/types/ManagedContentFileUploadRepresentation.d.ts +0 -38
|
@@ -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$p, typeCheckConfig as typeCheckConfig$I, StoreKeyMap, createResourceParams as createResourceParams$I } from '@luvio/engine';
|
|
8
8
|
|
|
9
9
|
const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
|
|
10
10
|
const { keys: ObjectKeys$1, create: ObjectCreate$1 } = Object;
|
|
@@ -93,8 +93,8 @@ function createLink(ref) {
|
|
|
93
93
|
};
|
|
94
94
|
}
|
|
95
95
|
|
|
96
|
-
const VERSION$
|
|
97
|
-
function validate$
|
|
96
|
+
const VERSION$E = "7297fb0dbfe8f664d76179a65037c290";
|
|
97
|
+
function validate$1a(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$1b(obj, path = 'ManagedContentTypeSummaryRepresentation') {
|
|
|
114
114
|
})();
|
|
115
115
|
return v_error === undefined ? null : v_error;
|
|
116
116
|
}
|
|
117
|
-
const select$
|
|
117
|
+
const select$1j = function ManagedContentTypeSummaryRepresentationSelect() {
|
|
118
118
|
return {
|
|
119
119
|
kind: 'Fragment',
|
|
120
|
-
version: VERSION$
|
|
120
|
+
version: VERSION$E,
|
|
121
121
|
private: [],
|
|
122
122
|
selections: [
|
|
123
123
|
{
|
|
@@ -132,7 +132,7 @@ const select$1l = function ManagedContentTypeSummaryRepresentationSelect() {
|
|
|
132
132
|
]
|
|
133
133
|
};
|
|
134
134
|
};
|
|
135
|
-
function equals$
|
|
135
|
+
function equals$E(existing, incoming) {
|
|
136
136
|
const existing_fullyQualifiedName = existing.fullyQualifiedName;
|
|
137
137
|
const incoming_fullyQualifiedName = incoming.fullyQualifiedName;
|
|
138
138
|
if (!(existing_fullyQualifiedName === incoming_fullyQualifiedName)) {
|
|
@@ -154,8 +154,8 @@ function equals$F(existing, incoming) {
|
|
|
154
154
|
return true;
|
|
155
155
|
}
|
|
156
156
|
|
|
157
|
-
const VERSION$
|
|
158
|
-
function validate$
|
|
157
|
+
const VERSION$D = "c30d880a3dba684a405d1cf961af2b76";
|
|
158
|
+
function validate$19(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$1a(obj, path = 'ManagedContentVariantSnapshotSummaryRepresenta
|
|
|
164
164
|
const path_contentType = path + '.contentType';
|
|
165
165
|
let obj_contentType_union0 = null;
|
|
166
166
|
const obj_contentType_union0_error = (() => {
|
|
167
|
-
const referencepath_contentTypeValidationError = validate$
|
|
167
|
+
const referencepath_contentTypeValidationError = validate$1a(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$1a(obj, path = 'ManagedContentVariantSnapshotSummaryRepresenta
|
|
|
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$1i = function ManagedContentVariantSnapshotSummaryRepresentationSelect() {
|
|
326
|
+
const { selections: ManagedContentTypeSummaryRepresentation__selections, opaque: ManagedContentTypeSummaryRepresentation__opaque, } = select$1j();
|
|
327
327
|
return {
|
|
328
328
|
kind: 'Fragment',
|
|
329
|
-
version: VERSION$
|
|
329
|
+
version: VERSION$D,
|
|
330
330
|
private: [],
|
|
331
331
|
selections: [
|
|
332
332
|
{
|
|
@@ -358,13 +358,13 @@ const select$1k = function ManagedContentVariantSnapshotSummaryRepresentationSel
|
|
|
358
358
|
]
|
|
359
359
|
};
|
|
360
360
|
};
|
|
361
|
-
function equals$
|
|
361
|
+
function equals$D(existing, incoming) {
|
|
362
362
|
const existing_contentType = existing.contentType;
|
|
363
363
|
const incoming_contentType = incoming.contentType;
|
|
364
364
|
if (!(existing_contentType === incoming_contentType
|
|
365
365
|
|| (existing_contentType != null &&
|
|
366
366
|
incoming_contentType != null &&
|
|
367
|
-
equals$
|
|
367
|
+
equals$E(existing_contentType, incoming_contentType)))) {
|
|
368
368
|
return false;
|
|
369
369
|
}
|
|
370
370
|
const existing_id = existing.id;
|
|
@@ -395,8 +395,8 @@ function equals$E(existing, incoming) {
|
|
|
395
395
|
return true;
|
|
396
396
|
}
|
|
397
397
|
|
|
398
|
-
const VERSION$
|
|
399
|
-
function validate$
|
|
398
|
+
const VERSION$C = "f99d45f1e809783023bfd9dbe2fe4a6c";
|
|
399
|
+
function validate$18(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$19(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$19(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$19(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$1h = function ManagedContentDeploymentItemRepresentationSelect() {
|
|
493
|
+
const { selections: ManagedContentVariantSnapshotSummaryRepresentation__selections, opaque: ManagedContentVariantSnapshotSummaryRepresentation__opaque, } = select$1i();
|
|
494
494
|
return {
|
|
495
495
|
kind: 'Fragment',
|
|
496
|
-
version: VERSION$
|
|
496
|
+
version: VERSION$C,
|
|
497
497
|
private: [],
|
|
498
498
|
selections: [
|
|
499
499
|
{
|
|
@@ -532,7 +532,7 @@ const select$1j = function ManagedContentDeploymentItemRepresentationSelect() {
|
|
|
532
532
|
]
|
|
533
533
|
};
|
|
534
534
|
};
|
|
535
|
-
function equals$
|
|
535
|
+
function equals$C(existing, incoming) {
|
|
536
536
|
const existing_isTopLevel = existing.isTopLevel;
|
|
537
537
|
const incoming_isTopLevel = incoming.isTopLevel;
|
|
538
538
|
if (!(existing_isTopLevel === incoming_isTopLevel)) {
|
|
@@ -560,7 +560,7 @@ function equals$D(existing, incoming) {
|
|
|
560
560
|
}
|
|
561
561
|
const existing_mcvSnapshotSummary = existing.mcvSnapshotSummary;
|
|
562
562
|
const incoming_mcvSnapshotSummary = incoming.mcvSnapshotSummary;
|
|
563
|
-
if (!(equals$
|
|
563
|
+
if (!(equals$D(existing_mcvSnapshotSummary, incoming_mcvSnapshotSummary))) {
|
|
564
564
|
return false;
|
|
565
565
|
}
|
|
566
566
|
const existing_targetId = existing.targetId;
|
|
@@ -576,8 +576,8 @@ function equals$D(existing, incoming) {
|
|
|
576
576
|
return true;
|
|
577
577
|
}
|
|
578
578
|
|
|
579
|
-
const VERSION$
|
|
580
|
-
function validate$
|
|
579
|
+
const VERSION$B = "4b75ed6ff448da86412b605f7e775a62";
|
|
580
|
+
function validate$17(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$18(obj, path = 'ManagedContentUserSummaryRepresentation') {
|
|
|
602
602
|
})();
|
|
603
603
|
return v_error === undefined ? null : v_error;
|
|
604
604
|
}
|
|
605
|
-
const select$
|
|
605
|
+
const select$1g = function ManagedContentUserSummaryRepresentationSelect() {
|
|
606
606
|
return {
|
|
607
607
|
kind: 'Fragment',
|
|
608
|
-
version: VERSION$
|
|
608
|
+
version: VERSION$B,
|
|
609
609
|
private: [],
|
|
610
610
|
selections: [
|
|
611
611
|
{
|
|
@@ -624,7 +624,7 @@ const select$1i = function ManagedContentUserSummaryRepresentationSelect() {
|
|
|
624
624
|
]
|
|
625
625
|
};
|
|
626
626
|
};
|
|
627
|
-
function equals$
|
|
627
|
+
function equals$B(existing, incoming) {
|
|
628
628
|
const existing_id = existing.id;
|
|
629
629
|
const incoming_id = incoming.id;
|
|
630
630
|
if (!(existing_id === incoming_id)) {
|
|
@@ -651,9 +651,9 @@ function equals$C(existing, incoming) {
|
|
|
651
651
|
return true;
|
|
652
652
|
}
|
|
653
653
|
|
|
654
|
-
const TTL$
|
|
655
|
-
const VERSION$
|
|
656
|
-
function validate$
|
|
654
|
+
const TTL$x = 100;
|
|
655
|
+
const VERSION$A = "f7e3c655efe77a7c9968ade15a6029b1";
|
|
656
|
+
function validate$16(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$17(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$18(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$17(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$17(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$17(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$x = 'ManagedContentDeploymentRepresentation';
|
|
844
|
+
function keyBuilder$14(luvio, config) {
|
|
845
|
+
return keyPrefix + '::' + RepresentationType$x + ':' + config.id;
|
|
846
846
|
}
|
|
847
847
|
function keyBuilderFromType$h(luvio, object) {
|
|
848
848
|
const keyParams = {
|
|
849
849
|
id: object.deploymentId
|
|
850
850
|
};
|
|
851
|
-
return keyBuilder$
|
|
851
|
+
return keyBuilder$14(luvio, keyParams);
|
|
852
852
|
}
|
|
853
|
-
function normalize$
|
|
853
|
+
function normalize$x(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$1f = function ManagedContentDeploymentRepresentationSelect() {
|
|
857
|
+
const { selections: ManagedContentDeploymentItemRepresentation__selections, opaque: ManagedContentDeploymentItemRepresentation__opaque, } = select$1h();
|
|
858
|
+
const { selections: ManagedContentUserSummaryRepresentation__selections, opaque: ManagedContentUserSummaryRepresentation__opaque, } = select$1g();
|
|
859
859
|
return {
|
|
860
860
|
kind: 'Fragment',
|
|
861
|
-
version: VERSION$
|
|
861
|
+
version: VERSION$A,
|
|
862
862
|
private: [],
|
|
863
863
|
selections: [
|
|
864
864
|
{
|
|
@@ -900,7 +900,7 @@ const select$1h = function ManagedContentDeploymentRepresentationSelect() {
|
|
|
900
900
|
]
|
|
901
901
|
};
|
|
902
902
|
};
|
|
903
|
-
function equals$
|
|
903
|
+
function equals$A(existing, incoming) {
|
|
904
904
|
const existing_deploymentId = existing.deploymentId;
|
|
905
905
|
const incoming_deploymentId = incoming.deploymentId;
|
|
906
906
|
if (!(existing_deploymentId === incoming_deploymentId)) {
|
|
@@ -919,7 +919,7 @@ function equals$B(existing, incoming) {
|
|
|
919
919
|
const existing_deploymentItems = existing.deploymentItems;
|
|
920
920
|
const incoming_deploymentItems = incoming.deploymentItems;
|
|
921
921
|
const equals_deploymentItems_items = equalsArray(existing_deploymentItems, incoming_deploymentItems, (existing_deploymentItems_item, incoming_deploymentItems_item) => {
|
|
922
|
-
if (!(equals$
|
|
922
|
+
if (!(equals$C(existing_deploymentItems_item, incoming_deploymentItems_item))) {
|
|
923
923
|
return false;
|
|
924
924
|
}
|
|
925
925
|
});
|
|
@@ -941,7 +941,7 @@ function equals$B(existing, incoming) {
|
|
|
941
941
|
if (!(existing_lastModifiedBy === incoming_lastModifiedBy
|
|
942
942
|
|| (existing_lastModifiedBy != null &&
|
|
943
943
|
incoming_lastModifiedBy != null &&
|
|
944
|
-
equals$
|
|
944
|
+
equals$B(existing_lastModifiedBy, incoming_lastModifiedBy)))) {
|
|
945
945
|
return false;
|
|
946
946
|
}
|
|
947
947
|
const existing_scheduledDate = existing.scheduledDate;
|
|
@@ -951,31 +951,31 @@ function equals$B(existing, incoming) {
|
|
|
951
951
|
}
|
|
952
952
|
return true;
|
|
953
953
|
}
|
|
954
|
-
const ingest$
|
|
954
|
+
const ingest$x = function ManagedContentDeploymentRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
955
955
|
if (process.env.NODE_ENV !== 'production') {
|
|
956
|
-
const validateError = validate$
|
|
956
|
+
const validateError = validate$16(input);
|
|
957
957
|
if (validateError !== null) {
|
|
958
958
|
throw validateError;
|
|
959
959
|
}
|
|
960
960
|
}
|
|
961
961
|
const key = keyBuilderFromType$h(luvio, input);
|
|
962
|
-
const ttlToUse = TTL$
|
|
963
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
962
|
+
const ttlToUse = TTL$x;
|
|
963
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$x, "CMSAuthoring", VERSION$A, RepresentationType$x, equals$A);
|
|
964
964
|
return createLink(key);
|
|
965
965
|
};
|
|
966
|
-
function getTypeCacheKeys$
|
|
966
|
+
function getTypeCacheKeys$x(rootKeySet, luvio, input, fullPathFactory) {
|
|
967
967
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
968
968
|
const rootKey = keyBuilderFromType$h(luvio, input);
|
|
969
969
|
rootKeySet.set(rootKey, {
|
|
970
970
|
namespace: keyPrefix,
|
|
971
|
-
representationName: RepresentationType$
|
|
971
|
+
representationName: RepresentationType$x,
|
|
972
972
|
mergeable: false
|
|
973
973
|
});
|
|
974
974
|
}
|
|
975
975
|
|
|
976
|
-
const TTL$
|
|
977
|
-
const VERSION$
|
|
978
|
-
function validate$
|
|
976
|
+
const TTL$w = 100;
|
|
977
|
+
const VERSION$z = "b2c15aa80814ecd854e68bf635879e35";
|
|
978
|
+
function validate$15(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$16(obj, path = 'ManagedContentDeploymentCollectionRepresentati
|
|
|
1052
1052
|
})();
|
|
1053
1053
|
return v_error === undefined ? null : v_error;
|
|
1054
1054
|
}
|
|
1055
|
-
const RepresentationType$
|
|
1056
|
-
function normalize$
|
|
1055
|
+
const RepresentationType$w = 'ManagedContentDeploymentCollectionRepresentation';
|
|
1056
|
+
function normalize$w(input, existing, path, luvio, store, timestamp) {
|
|
1057
1057
|
const input_deployments = input.deployments;
|
|
1058
1058
|
const input_deployments_id = path.fullPath + '__deployments';
|
|
1059
1059
|
for (let i = 0; i < input_deployments.length; i++) {
|
|
1060
1060
|
const input_deployments_item = input_deployments[i];
|
|
1061
1061
|
let input_deployments_item_id = input_deployments_id + '__' + i;
|
|
1062
|
-
input_deployments[i] = ingest$
|
|
1062
|
+
input_deployments[i] = ingest$x(input_deployments_item, {
|
|
1063
1063
|
fullPath: input_deployments_item_id,
|
|
1064
1064
|
propertyName: i,
|
|
1065
1065
|
parent: {
|
|
@@ -1072,10 +1072,10 @@ function normalize$x(input, existing, path, luvio, store, timestamp) {
|
|
|
1072
1072
|
}
|
|
1073
1073
|
return input;
|
|
1074
1074
|
}
|
|
1075
|
-
const select$
|
|
1075
|
+
const select$1e = function ManagedContentDeploymentCollectionRepresentationSelect() {
|
|
1076
1076
|
return {
|
|
1077
1077
|
kind: 'Fragment',
|
|
1078
|
-
version: VERSION$
|
|
1078
|
+
version: VERSION$z,
|
|
1079
1079
|
private: [],
|
|
1080
1080
|
selections: [
|
|
1081
1081
|
{
|
|
@@ -1086,7 +1086,7 @@ const select$1g = function ManagedContentDeploymentCollectionRepresentationSelec
|
|
|
1086
1086
|
name: 'deployments',
|
|
1087
1087
|
kind: 'Link',
|
|
1088
1088
|
plural: true,
|
|
1089
|
-
fragment: select$
|
|
1089
|
+
fragment: select$1f()
|
|
1090
1090
|
},
|
|
1091
1091
|
{
|
|
1092
1092
|
name: 'nextPageUrl',
|
|
@@ -1099,7 +1099,7 @@ const select$1g = function ManagedContentDeploymentCollectionRepresentationSelec
|
|
|
1099
1099
|
]
|
|
1100
1100
|
};
|
|
1101
1101
|
};
|
|
1102
|
-
function equals$
|
|
1102
|
+
function equals$z(existing, incoming) {
|
|
1103
1103
|
const existing_currentPageUrl = existing.currentPageUrl;
|
|
1104
1104
|
const incoming_currentPageUrl = incoming.currentPageUrl;
|
|
1105
1105
|
if (!(existing_currentPageUrl === incoming_currentPageUrl)) {
|
|
@@ -1127,48 +1127,48 @@ function equals$A(existing, incoming) {
|
|
|
1127
1127
|
}
|
|
1128
1128
|
return true;
|
|
1129
1129
|
}
|
|
1130
|
-
const ingest$
|
|
1130
|
+
const ingest$w = function ManagedContentDeploymentCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1131
1131
|
if (process.env.NODE_ENV !== 'production') {
|
|
1132
|
-
const validateError = validate$
|
|
1132
|
+
const validateError = validate$15(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$w;
|
|
1139
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$w, "CMSAuthoring", VERSION$z, RepresentationType$w, equals$z);
|
|
1140
1140
|
return createLink(key);
|
|
1141
1141
|
};
|
|
1142
|
-
function getTypeCacheKeys$
|
|
1142
|
+
function getTypeCacheKeys$w(rootKeySet, luvio, input, fullPathFactory) {
|
|
1143
1143
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
1144
1144
|
const rootKey = fullPathFactory();
|
|
1145
1145
|
rootKeySet.set(rootKey, {
|
|
1146
1146
|
namespace: keyPrefix,
|
|
1147
|
-
representationName: RepresentationType$
|
|
1147
|
+
representationName: RepresentationType$w,
|
|
1148
1148
|
mergeable: false
|
|
1149
1149
|
});
|
|
1150
1150
|
const input_deployments_length = input.deployments.length;
|
|
1151
1151
|
for (let i = 0; i < input_deployments_length; i++) {
|
|
1152
|
-
getTypeCacheKeys$
|
|
1152
|
+
getTypeCacheKeys$x(rootKeySet, luvio, input.deployments[i]);
|
|
1153
1153
|
}
|
|
1154
1154
|
}
|
|
1155
1155
|
|
|
1156
|
-
function select$
|
|
1157
|
-
return select$
|
|
1156
|
+
function select$1d(luvio, params) {
|
|
1157
|
+
return select$1e();
|
|
1158
1158
|
}
|
|
1159
|
-
function keyBuilder$
|
|
1159
|
+
function keyBuilder$13(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$H(storeKeyMap, luvio, resourceParams, response) {
|
|
1163
|
+
getTypeCacheKeys$w(storeKeyMap, luvio, response, () => keyBuilder$13(luvio, resourceParams));
|
|
1164
1164
|
}
|
|
1165
|
-
function ingestSuccess$
|
|
1165
|
+
function ingestSuccess$H(luvio, resourceParams, response, snapshotRefresh) {
|
|
1166
1166
|
const { body } = response;
|
|
1167
|
-
const key = keyBuilder$
|
|
1168
|
-
luvio.storeIngest(key, ingest$
|
|
1167
|
+
const key = keyBuilder$13(luvio, resourceParams);
|
|
1168
|
+
luvio.storeIngest(key, ingest$w, body);
|
|
1169
1169
|
const snapshot = luvio.storeLookup({
|
|
1170
1170
|
recordId: key,
|
|
1171
|
-
node: select$
|
|
1171
|
+
node: select$1d(),
|
|
1172
1172
|
variables: {},
|
|
1173
1173
|
}, snapshotRefresh);
|
|
1174
1174
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -1179,19 +1179,19 @@ function ingestSuccess$I(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$o(luvio, params, error, snapshotRefresh) {
|
|
1183
|
+
const key = keyBuilder$13(luvio, params);
|
|
1184
1184
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
1185
1185
|
const storeMetadataParams = {
|
|
1186
|
-
ttl: TTL$
|
|
1186
|
+
ttl: TTL$w,
|
|
1187
1187
|
namespace: keyPrefix,
|
|
1188
|
-
version: VERSION$
|
|
1189
|
-
representationName: RepresentationType$
|
|
1188
|
+
version: VERSION$z,
|
|
1189
|
+
representationName: RepresentationType$w
|
|
1190
1190
|
};
|
|
1191
1191
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
1192
1192
|
return errorSnapshot;
|
|
1193
1193
|
}
|
|
1194
|
-
function createResourceRequest$
|
|
1194
|
+
function createResourceRequest$H(config) {
|
|
1195
1195
|
const headers = {};
|
|
1196
1196
|
return {
|
|
1197
1197
|
baseUri: '/services/data/v62.0',
|
|
@@ -1205,7 +1205,7 @@ function createResourceRequest$I(config) {
|
|
|
1205
1205
|
};
|
|
1206
1206
|
}
|
|
1207
1207
|
|
|
1208
|
-
const adapterName$
|
|
1208
|
+
const adapterName$H = 'getDeployments';
|
|
1209
1209
|
const oneOfConfigPropertiesIdentifier = [
|
|
1210
1210
|
'deploymentId',
|
|
1211
1211
|
'contentSpaceId',
|
|
@@ -1222,25 +1222,25 @@ const getDeployments_ConfigPropertyMetadata = [
|
|
|
1222
1222
|
generateParamConfigMetadata('pageSize', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
1223
1223
|
generateParamConfigMetadata('variantIds', false, 1 /* QueryParameter */, 0 /* String */, true),
|
|
1224
1224
|
];
|
|
1225
|
-
const getDeployments_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
1226
|
-
const createResourceParams$
|
|
1227
|
-
function keyBuilder$
|
|
1228
|
-
const resourceParams = createResourceParams$
|
|
1229
|
-
return keyBuilder$
|
|
1225
|
+
const getDeployments_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$H, getDeployments_ConfigPropertyMetadata);
|
|
1226
|
+
const createResourceParams$H = /*#__PURE__*/ createResourceParams$I(getDeployments_ConfigPropertyMetadata);
|
|
1227
|
+
function keyBuilder$12(luvio, config) {
|
|
1228
|
+
const resourceParams = createResourceParams$H(config);
|
|
1229
|
+
return keyBuilder$13(luvio, resourceParams);
|
|
1230
1230
|
}
|
|
1231
|
-
function typeCheckConfig$
|
|
1231
|
+
function typeCheckConfig$H(untrustedConfig) {
|
|
1232
1232
|
const config = {};
|
|
1233
|
-
typeCheckConfig$
|
|
1233
|
+
typeCheckConfig$I(untrustedConfig, config, getDeployments_ConfigPropertyMetadata);
|
|
1234
1234
|
return config;
|
|
1235
1235
|
}
|
|
1236
|
-
function validateAdapterConfig$
|
|
1236
|
+
function validateAdapterConfig$H(untrustedConfig, configPropertyNames) {
|
|
1237
1237
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
1238
1238
|
return null;
|
|
1239
1239
|
}
|
|
1240
1240
|
if (process.env.NODE_ENV !== 'production') {
|
|
1241
1241
|
validateConfig(untrustedConfig, configPropertyNames, oneOfConfigPropertiesIdentifier);
|
|
1242
1242
|
}
|
|
1243
|
-
const config = typeCheckConfig$
|
|
1243
|
+
const config = typeCheckConfig$H(untrustedConfig);
|
|
1244
1244
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
1245
1245
|
return null;
|
|
1246
1246
|
}
|
|
@@ -1252,65 +1252,65 @@ function validateAdapterConfig$I(untrustedConfig, configPropertyNames) {
|
|
|
1252
1252
|
}
|
|
1253
1253
|
return config;
|
|
1254
1254
|
}
|
|
1255
|
-
function adapterFragment$
|
|
1256
|
-
createResourceParams$
|
|
1257
|
-
return select$
|
|
1255
|
+
function adapterFragment$o(luvio, config) {
|
|
1256
|
+
createResourceParams$H(config);
|
|
1257
|
+
return select$1d();
|
|
1258
1258
|
}
|
|
1259
|
-
function onFetchResponseSuccess$
|
|
1260
|
-
const snapshot = ingestSuccess$
|
|
1259
|
+
function onFetchResponseSuccess$r(luvio, config, resourceParams, response) {
|
|
1260
|
+
const snapshot = ingestSuccess$H(luvio, resourceParams, response, {
|
|
1261
1261
|
config,
|
|
1262
|
-
resolve: () => buildNetworkSnapshot$
|
|
1262
|
+
resolve: () => buildNetworkSnapshot$H(luvio, config, snapshotRefreshOptions)
|
|
1263
1263
|
});
|
|
1264
1264
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
1265
1265
|
}
|
|
1266
|
-
function onFetchResponseError$
|
|
1267
|
-
const snapshot = ingestError$
|
|
1266
|
+
function onFetchResponseError$o(luvio, config, resourceParams, response) {
|
|
1267
|
+
const snapshot = ingestError$o(luvio, resourceParams, response, {
|
|
1268
1268
|
config,
|
|
1269
|
-
resolve: () => buildNetworkSnapshot$
|
|
1269
|
+
resolve: () => buildNetworkSnapshot$H(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$H(luvio, config, options) {
|
|
1274
|
+
const resourceParams = createResourceParams$H(config);
|
|
1275
|
+
const request = createResourceRequest$H(resourceParams);
|
|
1276
1276
|
return luvio.dispatchResourceRequest(request, options)
|
|
1277
1277
|
.then((response) => {
|
|
1278
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
1278
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$r(luvio, config, resourceParams, response), () => {
|
|
1279
1279
|
const cache = new StoreKeyMap();
|
|
1280
|
-
getResponseCacheKeys$
|
|
1280
|
+
getResponseCacheKeys$H(cache, luvio, resourceParams, response.body);
|
|
1281
1281
|
return cache;
|
|
1282
1282
|
});
|
|
1283
1283
|
}, (response) => {
|
|
1284
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
1284
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$o(luvio, config, resourceParams, response));
|
|
1285
1285
|
});
|
|
1286
1286
|
}
|
|
1287
|
-
function buildNetworkSnapshotCachePolicy$
|
|
1288
|
-
return buildNetworkSnapshotCachePolicy$
|
|
1287
|
+
function buildNetworkSnapshotCachePolicy$o(context, coercedAdapterRequestContext) {
|
|
1288
|
+
return buildNetworkSnapshotCachePolicy$p(context, coercedAdapterRequestContext, buildNetworkSnapshot$H, undefined, false);
|
|
1289
1289
|
}
|
|
1290
|
-
function buildCachedSnapshotCachePolicy$
|
|
1290
|
+
function buildCachedSnapshotCachePolicy$o(context, storeLookup) {
|
|
1291
1291
|
const { luvio, config } = context;
|
|
1292
1292
|
const selector = {
|
|
1293
|
-
recordId: keyBuilder$
|
|
1294
|
-
node: adapterFragment$
|
|
1293
|
+
recordId: keyBuilder$12(luvio, config),
|
|
1294
|
+
node: adapterFragment$o(luvio, config),
|
|
1295
1295
|
variables: {},
|
|
1296
1296
|
};
|
|
1297
1297
|
const cacheSnapshot = storeLookup(selector, {
|
|
1298
1298
|
config,
|
|
1299
|
-
resolve: () => buildNetworkSnapshot$
|
|
1299
|
+
resolve: () => buildNetworkSnapshot$H(luvio, config, snapshotRefreshOptions)
|
|
1300
1300
|
});
|
|
1301
1301
|
return cacheSnapshot;
|
|
1302
1302
|
}
|
|
1303
1303
|
const getDeploymentsAdapterFactory = (luvio) => function CMSAuthoring__getDeployments(untrustedConfig, requestContext) {
|
|
1304
|
-
const config = validateAdapterConfig$
|
|
1304
|
+
const config = validateAdapterConfig$H(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$o, buildNetworkSnapshotCachePolicy$o);
|
|
1311
1311
|
};
|
|
1312
1312
|
|
|
1313
|
-
function validate$
|
|
1313
|
+
function validate$14(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$15(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$1c(luvio, params) {
|
|
1398
|
+
return select$1f();
|
|
1399
1399
|
}
|
|
1400
|
-
function getResponseCacheKeys$
|
|
1401
|
-
getTypeCacheKeys$
|
|
1400
|
+
function getResponseCacheKeys$G(storeKeyMap, luvio, resourceParams, response) {
|
|
1401
|
+
getTypeCacheKeys$x(storeKeyMap, luvio, response);
|
|
1402
1402
|
}
|
|
1403
|
-
function ingestSuccess$
|
|
1403
|
+
function ingestSuccess$G(luvio, resourceParams, response) {
|
|
1404
1404
|
const { body } = response;
|
|
1405
1405
|
const key = keyBuilderFromType$h(luvio, body);
|
|
1406
|
-
luvio.storeIngest(key, ingest$
|
|
1406
|
+
luvio.storeIngest(key, ingest$x, body);
|
|
1407
1407
|
const snapshot = luvio.storeLookup({
|
|
1408
1408
|
recordId: key,
|
|
1409
|
-
node: select$
|
|
1409
|
+
node: select$1c(),
|
|
1410
1410
|
variables: {},
|
|
1411
1411
|
});
|
|
1412
1412
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -1417,7 +1417,7 @@ function ingestSuccess$H(luvio, resourceParams, response) {
|
|
|
1417
1417
|
deepFreeze(snapshot.data);
|
|
1418
1418
|
return snapshot;
|
|
1419
1419
|
}
|
|
1420
|
-
function createResourceRequest$
|
|
1420
|
+
function createResourceRequest$G(config) {
|
|
1421
1421
|
const headers = {};
|
|
1422
1422
|
return {
|
|
1423
1423
|
baseUri: '/services/data/v62.0',
|
|
@@ -1431,45 +1431,45 @@ function createResourceRequest$H(config) {
|
|
|
1431
1431
|
};
|
|
1432
1432
|
}
|
|
1433
1433
|
|
|
1434
|
-
const adapterName$
|
|
1434
|
+
const adapterName$G = 'createDeployment';
|
|
1435
1435
|
const createDeployment_ConfigPropertyMetadata = [
|
|
1436
1436
|
generateParamConfigMetadata('DeploymentInput', true, 2 /* Body */, 4 /* Unsupported */),
|
|
1437
1437
|
];
|
|
1438
|
-
const createDeployment_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
1439
|
-
const createResourceParams$
|
|
1440
|
-
function typeCheckConfig$
|
|
1438
|
+
const createDeployment_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$G, createDeployment_ConfigPropertyMetadata);
|
|
1439
|
+
const createResourceParams$G = /*#__PURE__*/ createResourceParams$I(createDeployment_ConfigPropertyMetadata);
|
|
1440
|
+
function typeCheckConfig$G(untrustedConfig) {
|
|
1441
1441
|
const config = {};
|
|
1442
1442
|
const untrustedConfig_DeploymentInput = untrustedConfig.DeploymentInput;
|
|
1443
|
-
const referenceManagedContentDeploymentInputRepresentationValidationError = validate$
|
|
1443
|
+
const referenceManagedContentDeploymentInputRepresentationValidationError = validate$14(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$G(untrustedConfig, configPropertyNames) {
|
|
1450
1450
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
1451
1451
|
return null;
|
|
1452
1452
|
}
|
|
1453
1453
|
if (process.env.NODE_ENV !== 'production') {
|
|
1454
1454
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
1455
1455
|
}
|
|
1456
|
-
const config = typeCheckConfig$
|
|
1456
|
+
const config = typeCheckConfig$G(untrustedConfig);
|
|
1457
1457
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
1458
1458
|
return null;
|
|
1459
1459
|
}
|
|
1460
1460
|
return config;
|
|
1461
1461
|
}
|
|
1462
|
-
function buildNetworkSnapshot$
|
|
1463
|
-
const resourceParams = createResourceParams$
|
|
1464
|
-
const request = createResourceRequest$
|
|
1462
|
+
function buildNetworkSnapshot$G(luvio, config, options) {
|
|
1463
|
+
const resourceParams = createResourceParams$G(config);
|
|
1464
|
+
const request = createResourceRequest$G(resourceParams);
|
|
1465
1465
|
return luvio.dispatchResourceRequest(request, options)
|
|
1466
1466
|
.then((response) => {
|
|
1467
1467
|
return luvio.handleSuccessResponse(() => {
|
|
1468
|
-
const snapshot = ingestSuccess$
|
|
1468
|
+
const snapshot = ingestSuccess$G(luvio, resourceParams, response);
|
|
1469
1469
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
1470
1470
|
}, () => {
|
|
1471
1471
|
const cache = new StoreKeyMap();
|
|
1472
|
-
getResponseCacheKeys$
|
|
1472
|
+
getResponseCacheKeys$G(cache, luvio, resourceParams, response.body);
|
|
1473
1473
|
return cache;
|
|
1474
1474
|
});
|
|
1475
1475
|
}, (response) => {
|
|
@@ -1479,17 +1479,17 @@ function buildNetworkSnapshot$H(luvio, config, options) {
|
|
|
1479
1479
|
}
|
|
1480
1480
|
const createDeploymentAdapterFactory = (luvio) => {
|
|
1481
1481
|
return function createDeployment(untrustedConfig) {
|
|
1482
|
-
const config = validateAdapterConfig$
|
|
1482
|
+
const config = validateAdapterConfig$G(untrustedConfig, createDeployment_ConfigPropertyNames);
|
|
1483
1483
|
// Invalid or incomplete config
|
|
1484
1484
|
if (config === null) {
|
|
1485
1485
|
throw new Error('Invalid config for "createDeployment"');
|
|
1486
1486
|
}
|
|
1487
|
-
return buildNetworkSnapshot$
|
|
1487
|
+
return buildNetworkSnapshot$G(luvio, config);
|
|
1488
1488
|
};
|
|
1489
1489
|
};
|
|
1490
1490
|
|
|
1491
|
-
const VERSION$
|
|
1492
|
-
function validate$
|
|
1491
|
+
const VERSION$y = "7e57fd77c4503be9a8822f2603a04df3";
|
|
1492
|
+
function validate$13(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$14(obj, path = 'ManagedContentJobBodyRepresentation') {
|
|
|
1517
1517
|
})();
|
|
1518
1518
|
return v_error === undefined ? null : v_error;
|
|
1519
1519
|
}
|
|
1520
|
-
const select$
|
|
1520
|
+
const select$1b = function ManagedContentJobBodyRepresentationSelect() {
|
|
1521
1521
|
return {
|
|
1522
1522
|
kind: 'Fragment',
|
|
1523
|
-
version: VERSION$
|
|
1523
|
+
version: VERSION$y,
|
|
1524
1524
|
private: [],
|
|
1525
1525
|
selections: [
|
|
1526
1526
|
{
|
|
@@ -1542,7 +1542,7 @@ const select$1d = function ManagedContentJobBodyRepresentationSelect() {
|
|
|
1542
1542
|
]
|
|
1543
1543
|
};
|
|
1544
1544
|
};
|
|
1545
|
-
function equals$
|
|
1545
|
+
function equals$y(existing, incoming) {
|
|
1546
1546
|
const existing_bodyType = existing.bodyType;
|
|
1547
1547
|
const incoming_bodyType = incoming.bodyType;
|
|
1548
1548
|
if (!(existing_bodyType === incoming_bodyType)) {
|
|
@@ -1566,8 +1566,8 @@ function equals$z(existing, incoming) {
|
|
|
1566
1566
|
return true;
|
|
1567
1567
|
}
|
|
1568
1568
|
|
|
1569
|
-
const VERSION$
|
|
1570
|
-
function validate$
|
|
1569
|
+
const VERSION$x = "eba1876bba76cb05d9cbb8a968bd6796";
|
|
1570
|
+
function validate$12(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$13(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$13(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$13(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$1a = function ManagedContentJobBodyCollectionRepresentationSelect() {
|
|
1594
|
+
const { selections: ManagedContentJobBodyRepresentation__selections, opaque: ManagedContentJobBodyRepresentation__opaque, } = select$1b();
|
|
1595
1595
|
return {
|
|
1596
1596
|
kind: 'Fragment',
|
|
1597
|
-
version: VERSION$
|
|
1597
|
+
version: VERSION$x,
|
|
1598
1598
|
private: [],
|
|
1599
1599
|
selections: [
|
|
1600
1600
|
{
|
|
@@ -1606,11 +1606,11 @@ const select$1c = function ManagedContentJobBodyCollectionRepresentationSelect()
|
|
|
1606
1606
|
]
|
|
1607
1607
|
};
|
|
1608
1608
|
};
|
|
1609
|
-
function equals$
|
|
1609
|
+
function equals$x(existing, incoming) {
|
|
1610
1610
|
const existing_jobBodies = existing.jobBodies;
|
|
1611
1611
|
const incoming_jobBodies = incoming.jobBodies;
|
|
1612
1612
|
const equals_jobBodies_items = equalsArray(existing_jobBodies, incoming_jobBodies, (existing_jobBodies_item, incoming_jobBodies_item) => {
|
|
1613
|
-
if (!(equals$
|
|
1613
|
+
if (!(equals$y(existing_jobBodies_item, incoming_jobBodies_item))) {
|
|
1614
1614
|
return false;
|
|
1615
1615
|
}
|
|
1616
1616
|
});
|
|
@@ -1620,9 +1620,9 @@ function equals$y(existing, incoming) {
|
|
|
1620
1620
|
return true;
|
|
1621
1621
|
}
|
|
1622
1622
|
|
|
1623
|
-
const TTL$
|
|
1624
|
-
const VERSION$
|
|
1625
|
-
function validate$
|
|
1623
|
+
const TTL$v = 100;
|
|
1624
|
+
const VERSION$w = "9c2de7843d4d4e7784d56c7f83c58f0e";
|
|
1625
|
+
function validate$11(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$12(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$12(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$12(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$v = 'ManagedContentV2JobDetailRepresentation';
|
|
1729
|
+
function keyBuilder$11(luvio, config) {
|
|
1730
|
+
return keyPrefix + '::' + RepresentationType$v + ':' + config.id;
|
|
1731
1731
|
}
|
|
1732
1732
|
function keyBuilderFromType$g(luvio, object) {
|
|
1733
1733
|
const keyParams = {
|
|
1734
1734
|
id: object.id
|
|
1735
1735
|
};
|
|
1736
|
-
return keyBuilder$
|
|
1736
|
+
return keyBuilder$11(luvio, keyParams);
|
|
1737
1737
|
}
|
|
1738
|
-
function normalize$
|
|
1738
|
+
function normalize$v(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$19 = function ManagedContentV2JobDetailRepresentationSelect() {
|
|
1742
|
+
const { selections: ManagedContentJobBodyCollectionRepresentation__selections, opaque: ManagedContentJobBodyCollectionRepresentation__opaque, } = select$1a();
|
|
1743
1743
|
return {
|
|
1744
1744
|
kind: 'Fragment',
|
|
1745
|
-
version: VERSION$
|
|
1745
|
+
version: VERSION$w,
|
|
1746
1746
|
private: [],
|
|
1747
1747
|
selections: [
|
|
1748
1748
|
{
|
|
@@ -1790,7 +1790,7 @@ const select$1b = function ManagedContentV2JobDetailRepresentationSelect() {
|
|
|
1790
1790
|
]
|
|
1791
1791
|
};
|
|
1792
1792
|
};
|
|
1793
|
-
function equals$
|
|
1793
|
+
function equals$w(existing, incoming) {
|
|
1794
1794
|
const existing_createdById = existing.createdById;
|
|
1795
1795
|
const incoming_createdById = incoming.createdById;
|
|
1796
1796
|
if (!(existing_createdById === incoming_createdById)) {
|
|
@@ -1836,7 +1836,7 @@ function equals$x(existing, incoming) {
|
|
|
1836
1836
|
if (!(existing_body === incoming_body
|
|
1837
1837
|
|| (existing_body != null &&
|
|
1838
1838
|
incoming_body != null &&
|
|
1839
|
-
equals$
|
|
1839
|
+
equals$x(existing_body, incoming_body)))) {
|
|
1840
1840
|
return false;
|
|
1841
1841
|
}
|
|
1842
1842
|
const existing_createdDate = existing.createdDate;
|
|
@@ -1846,31 +1846,31 @@ function equals$x(existing, incoming) {
|
|
|
1846
1846
|
}
|
|
1847
1847
|
return true;
|
|
1848
1848
|
}
|
|
1849
|
-
const ingest$
|
|
1849
|
+
const ingest$v = function ManagedContentV2JobDetailRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1850
1850
|
if (process.env.NODE_ENV !== 'production') {
|
|
1851
|
-
const validateError = validate$
|
|
1851
|
+
const validateError = validate$11(input);
|
|
1852
1852
|
if (validateError !== null) {
|
|
1853
1853
|
throw validateError;
|
|
1854
1854
|
}
|
|
1855
1855
|
}
|
|
1856
1856
|
const key = keyBuilderFromType$g(luvio, input);
|
|
1857
|
-
const ttlToUse = TTL$
|
|
1858
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
1857
|
+
const ttlToUse = TTL$v;
|
|
1858
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$v, "CMSAuthoring", VERSION$w, RepresentationType$v, equals$w);
|
|
1859
1859
|
return createLink(key);
|
|
1860
1860
|
};
|
|
1861
|
-
function getTypeCacheKeys$
|
|
1861
|
+
function getTypeCacheKeys$v(rootKeySet, luvio, input, fullPathFactory) {
|
|
1862
1862
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
1863
1863
|
const rootKey = keyBuilderFromType$g(luvio, input);
|
|
1864
1864
|
rootKeySet.set(rootKey, {
|
|
1865
1865
|
namespace: keyPrefix,
|
|
1866
|
-
representationName: RepresentationType$
|
|
1866
|
+
representationName: RepresentationType$v,
|
|
1867
1867
|
mergeable: false
|
|
1868
1868
|
});
|
|
1869
1869
|
}
|
|
1870
1870
|
|
|
1871
|
-
const TTL$
|
|
1872
|
-
const VERSION$
|
|
1873
|
-
function validate$
|
|
1871
|
+
const TTL$u = 100;
|
|
1872
|
+
const VERSION$v = "75cfd71e168144693d36fa16f7d8f4d0";
|
|
1873
|
+
function validate$10(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$11(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$u = 'ManagedContentJobCollectionRepresentation';
|
|
1951
|
+
function normalize$u(input, existing, path, luvio, store, timestamp) {
|
|
1952
1952
|
const input_jobs = input.jobs;
|
|
1953
1953
|
const input_jobs_id = path.fullPath + '__jobs';
|
|
1954
1954
|
for (let i = 0; i < input_jobs.length; i++) {
|
|
1955
1955
|
const input_jobs_item = input_jobs[i];
|
|
1956
1956
|
let input_jobs_item_id = input_jobs_id + '__' + i;
|
|
1957
|
-
input_jobs[i] = ingest$
|
|
1957
|
+
input_jobs[i] = ingest$v(input_jobs_item, {
|
|
1958
1958
|
fullPath: input_jobs_item_id,
|
|
1959
1959
|
propertyName: i,
|
|
1960
1960
|
parent: {
|
|
@@ -1967,10 +1967,10 @@ function normalize$v(input, existing, path, luvio, store, timestamp) {
|
|
|
1967
1967
|
}
|
|
1968
1968
|
return input;
|
|
1969
1969
|
}
|
|
1970
|
-
const select$
|
|
1970
|
+
const select$18 = function ManagedContentJobCollectionRepresentationSelect() {
|
|
1971
1971
|
return {
|
|
1972
1972
|
kind: 'Fragment',
|
|
1973
|
-
version: VERSION$
|
|
1973
|
+
version: VERSION$v,
|
|
1974
1974
|
private: [],
|
|
1975
1975
|
selections: [
|
|
1976
1976
|
{
|
|
@@ -1981,7 +1981,7 @@ const select$1a = function ManagedContentJobCollectionRepresentationSelect() {
|
|
|
1981
1981
|
name: 'jobs',
|
|
1982
1982
|
kind: 'Link',
|
|
1983
1983
|
plural: true,
|
|
1984
|
-
fragment: select$
|
|
1984
|
+
fragment: select$19()
|
|
1985
1985
|
},
|
|
1986
1986
|
{
|
|
1987
1987
|
name: 'nextPageUrl',
|
|
@@ -1994,7 +1994,7 @@ const select$1a = function ManagedContentJobCollectionRepresentationSelect() {
|
|
|
1994
1994
|
]
|
|
1995
1995
|
};
|
|
1996
1996
|
};
|
|
1997
|
-
function equals$
|
|
1997
|
+
function equals$v(existing, incoming) {
|
|
1998
1998
|
const existing_currentPageUrl = existing.currentPageUrl;
|
|
1999
1999
|
const incoming_currentPageUrl = incoming.currentPageUrl;
|
|
2000
2000
|
if (!(existing_currentPageUrl === incoming_currentPageUrl)) {
|
|
@@ -2022,48 +2022,48 @@ function equals$w(existing, incoming) {
|
|
|
2022
2022
|
}
|
|
2023
2023
|
return true;
|
|
2024
2024
|
}
|
|
2025
|
-
const ingest$
|
|
2025
|
+
const ingest$u = function ManagedContentJobCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
2026
2026
|
if (process.env.NODE_ENV !== 'production') {
|
|
2027
|
-
const validateError = validate$
|
|
2027
|
+
const validateError = validate$10(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$u;
|
|
2034
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$u, "CMSAuthoring", VERSION$v, RepresentationType$u, equals$v);
|
|
2035
2035
|
return createLink(key);
|
|
2036
2036
|
};
|
|
2037
|
-
function getTypeCacheKeys$
|
|
2037
|
+
function getTypeCacheKeys$u(rootKeySet, luvio, input, fullPathFactory) {
|
|
2038
2038
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
2039
2039
|
const rootKey = fullPathFactory();
|
|
2040
2040
|
rootKeySet.set(rootKey, {
|
|
2041
2041
|
namespace: keyPrefix,
|
|
2042
|
-
representationName: RepresentationType$
|
|
2042
|
+
representationName: RepresentationType$u,
|
|
2043
2043
|
mergeable: false
|
|
2044
2044
|
});
|
|
2045
2045
|
const input_jobs_length = input.jobs.length;
|
|
2046
2046
|
for (let i = 0; i < input_jobs_length; i++) {
|
|
2047
|
-
getTypeCacheKeys$
|
|
2047
|
+
getTypeCacheKeys$v(rootKeySet, luvio, input.jobs[i]);
|
|
2048
2048
|
}
|
|
2049
2049
|
}
|
|
2050
2050
|
|
|
2051
|
-
function select$
|
|
2052
|
-
return select$
|
|
2051
|
+
function select$17(luvio, params) {
|
|
2052
|
+
return select$18();
|
|
2053
2053
|
}
|
|
2054
|
-
function keyBuilder$
|
|
2054
|
+
function keyBuilder$10(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$F(storeKeyMap, luvio, resourceParams, response) {
|
|
2058
|
+
getTypeCacheKeys$u(storeKeyMap, luvio, response, () => keyBuilder$10(luvio, resourceParams));
|
|
2059
2059
|
}
|
|
2060
|
-
function ingestSuccess$
|
|
2060
|
+
function ingestSuccess$F(luvio, resourceParams, response, snapshotRefresh) {
|
|
2061
2061
|
const { body } = response;
|
|
2062
|
-
const key = keyBuilder$
|
|
2063
|
-
luvio.storeIngest(key, ingest$
|
|
2062
|
+
const key = keyBuilder$10(luvio, resourceParams);
|
|
2063
|
+
luvio.storeIngest(key, ingest$u, body);
|
|
2064
2064
|
const snapshot = luvio.storeLookup({
|
|
2065
2065
|
recordId: key,
|
|
2066
|
-
node: select$
|
|
2066
|
+
node: select$17(),
|
|
2067
2067
|
variables: {},
|
|
2068
2068
|
}, snapshotRefresh);
|
|
2069
2069
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -2074,19 +2074,19 @@ function ingestSuccess$G(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$n(luvio, params, error, snapshotRefresh) {
|
|
2078
|
+
const key = keyBuilder$10(luvio, params);
|
|
2079
2079
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
2080
2080
|
const storeMetadataParams = {
|
|
2081
|
-
ttl: TTL$
|
|
2081
|
+
ttl: TTL$u,
|
|
2082
2082
|
namespace: keyPrefix,
|
|
2083
|
-
version: VERSION$
|
|
2084
|
-
representationName: RepresentationType$
|
|
2083
|
+
version: VERSION$v,
|
|
2084
|
+
representationName: RepresentationType$u
|
|
2085
2085
|
};
|
|
2086
2086
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
2087
2087
|
return errorSnapshot;
|
|
2088
2088
|
}
|
|
2089
|
-
function createResourceRequest$
|
|
2089
|
+
function createResourceRequest$F(config) {
|
|
2090
2090
|
const headers = {};
|
|
2091
2091
|
return {
|
|
2092
2092
|
baseUri: '/services/data/v62.0',
|
|
@@ -2100,113 +2100,113 @@ function createResourceRequest$G(config) {
|
|
|
2100
2100
|
};
|
|
2101
2101
|
}
|
|
2102
2102
|
|
|
2103
|
-
const adapterName$
|
|
2103
|
+
const adapterName$F = 'getAllCMSJobsForSpace';
|
|
2104
2104
|
const getAllCMSJobsForSpace_ConfigPropertyMetadata = [
|
|
2105
2105
|
generateParamConfigMetadata('contentSpaceId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
2106
2106
|
generateParamConfigMetadata('jobType', false, 1 /* QueryParameter */, 0 /* String */),
|
|
2107
2107
|
generateParamConfigMetadata('page', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
2108
2108
|
generateParamConfigMetadata('pageSize', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
2109
2109
|
];
|
|
2110
|
-
const getAllCMSJobsForSpace_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
2111
|
-
const createResourceParams$
|
|
2112
|
-
function keyBuilder
|
|
2113
|
-
const resourceParams = createResourceParams$
|
|
2114
|
-
return keyBuilder$
|
|
2110
|
+
const getAllCMSJobsForSpace_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$F, getAllCMSJobsForSpace_ConfigPropertyMetadata);
|
|
2111
|
+
const createResourceParams$F = /*#__PURE__*/ createResourceParams$I(getAllCMSJobsForSpace_ConfigPropertyMetadata);
|
|
2112
|
+
function keyBuilder$$(luvio, config) {
|
|
2113
|
+
const resourceParams = createResourceParams$F(config);
|
|
2114
|
+
return keyBuilder$10(luvio, resourceParams);
|
|
2115
2115
|
}
|
|
2116
|
-
function typeCheckConfig$
|
|
2116
|
+
function typeCheckConfig$F(untrustedConfig) {
|
|
2117
2117
|
const config = {};
|
|
2118
|
-
typeCheckConfig$
|
|
2118
|
+
typeCheckConfig$I(untrustedConfig, config, getAllCMSJobsForSpace_ConfigPropertyMetadata);
|
|
2119
2119
|
return config;
|
|
2120
2120
|
}
|
|
2121
|
-
function validateAdapterConfig$
|
|
2121
|
+
function validateAdapterConfig$F(untrustedConfig, configPropertyNames) {
|
|
2122
2122
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
2123
2123
|
return null;
|
|
2124
2124
|
}
|
|
2125
2125
|
if (process.env.NODE_ENV !== 'production') {
|
|
2126
2126
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
2127
2127
|
}
|
|
2128
|
-
const config = typeCheckConfig$
|
|
2128
|
+
const config = typeCheckConfig$F(untrustedConfig);
|
|
2129
2129
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
2130
2130
|
return null;
|
|
2131
2131
|
}
|
|
2132
2132
|
return config;
|
|
2133
2133
|
}
|
|
2134
|
-
function adapterFragment$
|
|
2135
|
-
createResourceParams$
|
|
2136
|
-
return select$
|
|
2134
|
+
function adapterFragment$n(luvio, config) {
|
|
2135
|
+
createResourceParams$F(config);
|
|
2136
|
+
return select$17();
|
|
2137
2137
|
}
|
|
2138
|
-
function onFetchResponseSuccess$
|
|
2139
|
-
const snapshot = ingestSuccess$
|
|
2138
|
+
function onFetchResponseSuccess$q(luvio, config, resourceParams, response) {
|
|
2139
|
+
const snapshot = ingestSuccess$F(luvio, resourceParams, response, {
|
|
2140
2140
|
config,
|
|
2141
|
-
resolve: () => buildNetworkSnapshot$
|
|
2141
|
+
resolve: () => buildNetworkSnapshot$F(luvio, config, snapshotRefreshOptions)
|
|
2142
2142
|
});
|
|
2143
2143
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
2144
2144
|
}
|
|
2145
|
-
function onFetchResponseError$
|
|
2146
|
-
const snapshot = ingestError$
|
|
2145
|
+
function onFetchResponseError$n(luvio, config, resourceParams, response) {
|
|
2146
|
+
const snapshot = ingestError$n(luvio, resourceParams, response, {
|
|
2147
2147
|
config,
|
|
2148
|
-
resolve: () => buildNetworkSnapshot$
|
|
2148
|
+
resolve: () => buildNetworkSnapshot$F(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$F(luvio, config, options) {
|
|
2153
|
+
const resourceParams = createResourceParams$F(config);
|
|
2154
|
+
const request = createResourceRequest$F(resourceParams);
|
|
2155
2155
|
return luvio.dispatchResourceRequest(request, options)
|
|
2156
2156
|
.then((response) => {
|
|
2157
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
2157
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$q(luvio, config, resourceParams, response), () => {
|
|
2158
2158
|
const cache = new StoreKeyMap();
|
|
2159
|
-
getResponseCacheKeys$
|
|
2159
|
+
getResponseCacheKeys$F(cache, luvio, resourceParams, response.body);
|
|
2160
2160
|
return cache;
|
|
2161
2161
|
});
|
|
2162
2162
|
}, (response) => {
|
|
2163
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
2163
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$n(luvio, config, resourceParams, response));
|
|
2164
2164
|
});
|
|
2165
2165
|
}
|
|
2166
|
-
function buildNetworkSnapshotCachePolicy$
|
|
2167
|
-
return buildNetworkSnapshotCachePolicy$
|
|
2166
|
+
function buildNetworkSnapshotCachePolicy$n(context, coercedAdapterRequestContext) {
|
|
2167
|
+
return buildNetworkSnapshotCachePolicy$p(context, coercedAdapterRequestContext, buildNetworkSnapshot$F, undefined, false);
|
|
2168
2168
|
}
|
|
2169
|
-
function buildCachedSnapshotCachePolicy$
|
|
2169
|
+
function buildCachedSnapshotCachePolicy$n(context, storeLookup) {
|
|
2170
2170
|
const { luvio, config } = context;
|
|
2171
2171
|
const selector = {
|
|
2172
|
-
recordId: keyBuilder
|
|
2173
|
-
node: adapterFragment$
|
|
2172
|
+
recordId: keyBuilder$$(luvio, config),
|
|
2173
|
+
node: adapterFragment$n(luvio, config),
|
|
2174
2174
|
variables: {},
|
|
2175
2175
|
};
|
|
2176
2176
|
const cacheSnapshot = storeLookup(selector, {
|
|
2177
2177
|
config,
|
|
2178
|
-
resolve: () => buildNetworkSnapshot$
|
|
2178
|
+
resolve: () => buildNetworkSnapshot$F(luvio, config, snapshotRefreshOptions)
|
|
2179
2179
|
});
|
|
2180
2180
|
return cacheSnapshot;
|
|
2181
2181
|
}
|
|
2182
2182
|
const getAllCMSJobsForSpaceAdapterFactory = (luvio) => function CMSAuthoring__getAllCMSJobsForSpace(untrustedConfig, requestContext) {
|
|
2183
|
-
const config = validateAdapterConfig$
|
|
2183
|
+
const config = validateAdapterConfig$F(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$n, buildNetworkSnapshotCachePolicy$n);
|
|
2190
2190
|
};
|
|
2191
2191
|
|
|
2192
|
-
function select$
|
|
2193
|
-
return select$
|
|
2192
|
+
function select$16(luvio, params) {
|
|
2193
|
+
return select$19();
|
|
2194
2194
|
}
|
|
2195
|
-
function keyBuilder$
|
|
2196
|
-
return keyBuilder$
|
|
2195
|
+
function keyBuilder$_(luvio, params) {
|
|
2196
|
+
return keyBuilder$11(luvio, {
|
|
2197
2197
|
id: params.urlParams.jobId
|
|
2198
2198
|
});
|
|
2199
2199
|
}
|
|
2200
|
-
function getResponseCacheKeys$
|
|
2201
|
-
getTypeCacheKeys$
|
|
2200
|
+
function getResponseCacheKeys$E(storeKeyMap, luvio, resourceParams, response) {
|
|
2201
|
+
getTypeCacheKeys$v(storeKeyMap, luvio, response);
|
|
2202
2202
|
}
|
|
2203
|
-
function ingestSuccess$
|
|
2203
|
+
function ingestSuccess$E(luvio, resourceParams, response, snapshotRefresh) {
|
|
2204
2204
|
const { body } = response;
|
|
2205
|
-
const key = keyBuilder$
|
|
2206
|
-
luvio.storeIngest(key, ingest$
|
|
2205
|
+
const key = keyBuilder$_(luvio, resourceParams);
|
|
2206
|
+
luvio.storeIngest(key, ingest$v, body);
|
|
2207
2207
|
const snapshot = luvio.storeLookup({
|
|
2208
2208
|
recordId: key,
|
|
2209
|
-
node: select$
|
|
2209
|
+
node: select$16(),
|
|
2210
2210
|
variables: {},
|
|
2211
2211
|
}, snapshotRefresh);
|
|
2212
2212
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -2217,19 +2217,19 @@ function ingestSuccess$F(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$m(luvio, params, error, snapshotRefresh) {
|
|
2221
|
+
const key = keyBuilder$_(luvio, params);
|
|
2222
2222
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
2223
2223
|
const storeMetadataParams = {
|
|
2224
|
-
ttl: TTL$
|
|
2224
|
+
ttl: TTL$v,
|
|
2225
2225
|
namespace: keyPrefix,
|
|
2226
|
-
version: VERSION$
|
|
2227
|
-
representationName: RepresentationType$
|
|
2226
|
+
version: VERSION$w,
|
|
2227
|
+
representationName: RepresentationType$v
|
|
2228
2228
|
};
|
|
2229
2229
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
2230
2230
|
return errorSnapshot;
|
|
2231
2231
|
}
|
|
2232
|
-
function createResourceRequest$
|
|
2232
|
+
function createResourceRequest$E(config) {
|
|
2233
2233
|
const headers = {};
|
|
2234
2234
|
return {
|
|
2235
2235
|
baseUri: '/services/data/v62.0',
|
|
@@ -2243,94 +2243,94 @@ function createResourceRequest$F(config) {
|
|
|
2243
2243
|
};
|
|
2244
2244
|
}
|
|
2245
2245
|
|
|
2246
|
-
const adapterName$
|
|
2246
|
+
const adapterName$E = 'getCMSJobForSpace';
|
|
2247
2247
|
const getCMSJobForSpace_ConfigPropertyMetadata = [
|
|
2248
2248
|
generateParamConfigMetadata('contentSpaceId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
2249
2249
|
generateParamConfigMetadata('jobId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
2250
2250
|
];
|
|
2251
|
-
const getCMSJobForSpace_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
2252
|
-
const createResourceParams$
|
|
2253
|
-
function keyBuilder
|
|
2254
|
-
const resourceParams = createResourceParams$
|
|
2255
|
-
return keyBuilder$
|
|
2251
|
+
const getCMSJobForSpace_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$E, getCMSJobForSpace_ConfigPropertyMetadata);
|
|
2252
|
+
const createResourceParams$E = /*#__PURE__*/ createResourceParams$I(getCMSJobForSpace_ConfigPropertyMetadata);
|
|
2253
|
+
function keyBuilder$Z(luvio, config) {
|
|
2254
|
+
const resourceParams = createResourceParams$E(config);
|
|
2255
|
+
return keyBuilder$_(luvio, resourceParams);
|
|
2256
2256
|
}
|
|
2257
|
-
function typeCheckConfig$
|
|
2257
|
+
function typeCheckConfig$E(untrustedConfig) {
|
|
2258
2258
|
const config = {};
|
|
2259
|
-
typeCheckConfig$
|
|
2259
|
+
typeCheckConfig$I(untrustedConfig, config, getCMSJobForSpace_ConfigPropertyMetadata);
|
|
2260
2260
|
return config;
|
|
2261
2261
|
}
|
|
2262
|
-
function validateAdapterConfig$
|
|
2262
|
+
function validateAdapterConfig$E(untrustedConfig, configPropertyNames) {
|
|
2263
2263
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
2264
2264
|
return null;
|
|
2265
2265
|
}
|
|
2266
2266
|
if (process.env.NODE_ENV !== 'production') {
|
|
2267
2267
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
2268
2268
|
}
|
|
2269
|
-
const config = typeCheckConfig$
|
|
2269
|
+
const config = typeCheckConfig$E(untrustedConfig);
|
|
2270
2270
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
2271
2271
|
return null;
|
|
2272
2272
|
}
|
|
2273
2273
|
return config;
|
|
2274
2274
|
}
|
|
2275
|
-
function adapterFragment$
|
|
2276
|
-
createResourceParams$
|
|
2277
|
-
return select$
|
|
2275
|
+
function adapterFragment$m(luvio, config) {
|
|
2276
|
+
createResourceParams$E(config);
|
|
2277
|
+
return select$16();
|
|
2278
2278
|
}
|
|
2279
|
-
function onFetchResponseSuccess$
|
|
2280
|
-
const snapshot = ingestSuccess$
|
|
2279
|
+
function onFetchResponseSuccess$p(luvio, config, resourceParams, response) {
|
|
2280
|
+
const snapshot = ingestSuccess$E(luvio, resourceParams, response, {
|
|
2281
2281
|
config,
|
|
2282
|
-
resolve: () => buildNetworkSnapshot$
|
|
2282
|
+
resolve: () => buildNetworkSnapshot$E(luvio, config, snapshotRefreshOptions)
|
|
2283
2283
|
});
|
|
2284
2284
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
2285
2285
|
}
|
|
2286
|
-
function onFetchResponseError$
|
|
2287
|
-
const snapshot = ingestError$
|
|
2286
|
+
function onFetchResponseError$m(luvio, config, resourceParams, response) {
|
|
2287
|
+
const snapshot = ingestError$m(luvio, resourceParams, response, {
|
|
2288
2288
|
config,
|
|
2289
|
-
resolve: () => buildNetworkSnapshot$
|
|
2289
|
+
resolve: () => buildNetworkSnapshot$E(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$E(luvio, config, options) {
|
|
2294
|
+
const resourceParams = createResourceParams$E(config);
|
|
2295
|
+
const request = createResourceRequest$E(resourceParams);
|
|
2296
2296
|
return luvio.dispatchResourceRequest(request, options)
|
|
2297
2297
|
.then((response) => {
|
|
2298
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
2298
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$p(luvio, config, resourceParams, response), () => {
|
|
2299
2299
|
const cache = new StoreKeyMap();
|
|
2300
|
-
getResponseCacheKeys$
|
|
2300
|
+
getResponseCacheKeys$E(cache, luvio, resourceParams, response.body);
|
|
2301
2301
|
return cache;
|
|
2302
2302
|
});
|
|
2303
2303
|
}, (response) => {
|
|
2304
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
2304
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$m(luvio, config, resourceParams, response));
|
|
2305
2305
|
});
|
|
2306
2306
|
}
|
|
2307
|
-
function buildNetworkSnapshotCachePolicy$
|
|
2308
|
-
return buildNetworkSnapshotCachePolicy$
|
|
2307
|
+
function buildNetworkSnapshotCachePolicy$m(context, coercedAdapterRequestContext) {
|
|
2308
|
+
return buildNetworkSnapshotCachePolicy$p(context, coercedAdapterRequestContext, buildNetworkSnapshot$E, undefined, false);
|
|
2309
2309
|
}
|
|
2310
|
-
function buildCachedSnapshotCachePolicy$
|
|
2310
|
+
function buildCachedSnapshotCachePolicy$m(context, storeLookup) {
|
|
2311
2311
|
const { luvio, config } = context;
|
|
2312
2312
|
const selector = {
|
|
2313
|
-
recordId: keyBuilder
|
|
2314
|
-
node: adapterFragment$
|
|
2313
|
+
recordId: keyBuilder$Z(luvio, config),
|
|
2314
|
+
node: adapterFragment$m(luvio, config),
|
|
2315
2315
|
variables: {},
|
|
2316
2316
|
};
|
|
2317
2317
|
const cacheSnapshot = storeLookup(selector, {
|
|
2318
2318
|
config,
|
|
2319
|
-
resolve: () => buildNetworkSnapshot$
|
|
2319
|
+
resolve: () => buildNetworkSnapshot$E(luvio, config, snapshotRefreshOptions)
|
|
2320
2320
|
});
|
|
2321
2321
|
return cacheSnapshot;
|
|
2322
2322
|
}
|
|
2323
2323
|
const getCMSJobForSpaceAdapterFactory = (luvio) => function CMSAuthoring__getCMSJobForSpace(untrustedConfig, requestContext) {
|
|
2324
|
-
const config = validateAdapterConfig$
|
|
2324
|
+
const config = validateAdapterConfig$E(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$m, buildNetworkSnapshotCachePolicy$m);
|
|
2331
2331
|
};
|
|
2332
2332
|
|
|
2333
|
-
function validate
|
|
2333
|
+
function validate$$(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$10(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$t = 100;
|
|
2422
|
+
const VERSION$u = "df1370994ae2e57cdebc5f5125930e2d";
|
|
2423
|
+
function validate$_(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$$(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$$(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$$(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$t = 'ManagedContentSpaceFolderItemV1CollectionRepresentation';
|
|
2478
|
+
function normalize$t(input, existing, path, luvio, store, timestamp) {
|
|
2479
2479
|
return input;
|
|
2480
2480
|
}
|
|
2481
|
-
const select$
|
|
2481
|
+
const select$15 = function ManagedContentSpaceFolderItemV1CollectionRepresentationSelect() {
|
|
2482
2482
|
return {
|
|
2483
2483
|
kind: 'Fragment',
|
|
2484
|
-
version: VERSION$
|
|
2484
|
+
version: VERSION$u,
|
|
2485
2485
|
private: [],
|
|
2486
2486
|
opaque: true
|
|
2487
2487
|
};
|
|
2488
2488
|
};
|
|
2489
|
-
function equals$
|
|
2489
|
+
function equals$u(existing, incoming) {
|
|
2490
2490
|
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
2491
2491
|
return false;
|
|
2492
2492
|
}
|
|
2493
2493
|
return true;
|
|
2494
2494
|
}
|
|
2495
|
-
const ingest$
|
|
2495
|
+
const ingest$t = function ManagedContentSpaceFolderItemV1CollectionRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
2496
2496
|
if (process.env.NODE_ENV !== 'production') {
|
|
2497
|
-
const validateError = validate
|
|
2497
|
+
const validateError = validate$_(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$t;
|
|
2504
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$t, "CMSAuthoring", VERSION$u, RepresentationType$t, equals$u);
|
|
2505
2505
|
return createLink(key);
|
|
2506
2506
|
};
|
|
2507
|
-
function getTypeCacheKeys$
|
|
2507
|
+
function getTypeCacheKeys$t(rootKeySet, luvio, input, fullPathFactory) {
|
|
2508
2508
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
2509
2509
|
const rootKey = fullPathFactory();
|
|
2510
2510
|
rootKeySet.set(rootKey, {
|
|
2511
2511
|
namespace: keyPrefix,
|
|
2512
|
-
representationName: RepresentationType$
|
|
2512
|
+
representationName: RepresentationType$t,
|
|
2513
2513
|
mergeable: false
|
|
2514
2514
|
});
|
|
2515
2515
|
}
|
|
2516
2516
|
|
|
2517
|
-
function select$
|
|
2518
|
-
return select$
|
|
2517
|
+
function select$14(luvio, params) {
|
|
2518
|
+
return select$15();
|
|
2519
2519
|
}
|
|
2520
|
-
function keyBuilder$
|
|
2520
|
+
function keyBuilder$Y(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$D(storeKeyMap, luvio, resourceParams, response) {
|
|
2524
|
+
getTypeCacheKeys$t(storeKeyMap, luvio, response, () => keyBuilder$Y(luvio, resourceParams));
|
|
2525
2525
|
}
|
|
2526
|
-
function ingestSuccess$
|
|
2526
|
+
function ingestSuccess$D(luvio, resourceParams, response, snapshotRefresh) {
|
|
2527
2527
|
const { body } = response;
|
|
2528
|
-
const key = keyBuilder$
|
|
2529
|
-
luvio.storeIngest(key, ingest$
|
|
2528
|
+
const key = keyBuilder$Y(luvio, resourceParams);
|
|
2529
|
+
luvio.storeIngest(key, ingest$t, body);
|
|
2530
2530
|
const snapshot = luvio.storeLookup({
|
|
2531
2531
|
recordId: key,
|
|
2532
|
-
node: select$
|
|
2532
|
+
node: select$14(),
|
|
2533
2533
|
variables: {},
|
|
2534
2534
|
}, snapshotRefresh);
|
|
2535
2535
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -2540,19 +2540,19 @@ function ingestSuccess$E(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$l(luvio, params, error, snapshotRefresh) {
|
|
2544
|
+
const key = keyBuilder$Y(luvio, params);
|
|
2545
2545
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
2546
2546
|
const storeMetadataParams = {
|
|
2547
|
-
ttl: TTL$
|
|
2547
|
+
ttl: TTL$t,
|
|
2548
2548
|
namespace: keyPrefix,
|
|
2549
|
-
version: VERSION$
|
|
2550
|
-
representationName: RepresentationType$
|
|
2549
|
+
version: VERSION$u,
|
|
2550
|
+
representationName: RepresentationType$t
|
|
2551
2551
|
};
|
|
2552
2552
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
2553
2553
|
return errorSnapshot;
|
|
2554
2554
|
}
|
|
2555
|
-
function createResourceRequest$
|
|
2555
|
+
function createResourceRequest$D(config) {
|
|
2556
2556
|
const headers = {};
|
|
2557
2557
|
return {
|
|
2558
2558
|
baseUri: '/services/data/v62.0',
|
|
@@ -2566,7 +2566,7 @@ function createResourceRequest$E(config) {
|
|
|
2566
2566
|
};
|
|
2567
2567
|
}
|
|
2568
2568
|
|
|
2569
|
-
const adapterName$
|
|
2569
|
+
const adapterName$D = 'getManagedContentSpaceFolderItemsV1';
|
|
2570
2570
|
const getManagedContentSpaceFolderItemsV1_ConfigPropertyMetadata = [
|
|
2571
2571
|
generateParamConfigMetadata('folderId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
2572
2572
|
generateParamConfigMetadata('contentTypeFilter', false, 1 /* QueryParameter */, 0 /* String */),
|
|
@@ -2580,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$D, getManagedContentSpaceFolderItemsV1_ConfigPropertyMetadata);
|
|
2584
|
+
const createResourceParams$D = /*#__PURE__*/ createResourceParams$I(getManagedContentSpaceFolderItemsV1_ConfigPropertyMetadata);
|
|
2585
|
+
function keyBuilder$X(luvio, config) {
|
|
2586
|
+
const resourceParams = createResourceParams$D(config);
|
|
2587
|
+
return keyBuilder$Y(luvio, resourceParams);
|
|
2588
2588
|
}
|
|
2589
|
-
function typeCheckConfig$
|
|
2589
|
+
function typeCheckConfig$D(untrustedConfig) {
|
|
2590
2590
|
const config = {};
|
|
2591
|
-
typeCheckConfig$
|
|
2591
|
+
typeCheckConfig$I(untrustedConfig, config, getManagedContentSpaceFolderItemsV1_ConfigPropertyMetadata);
|
|
2592
2592
|
return config;
|
|
2593
2593
|
}
|
|
2594
|
-
function validateAdapterConfig$
|
|
2594
|
+
function validateAdapterConfig$D(untrustedConfig, configPropertyNames) {
|
|
2595
2595
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
2596
2596
|
return null;
|
|
2597
2597
|
}
|
|
2598
2598
|
if (process.env.NODE_ENV !== 'production') {
|
|
2599
2599
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
2600
2600
|
}
|
|
2601
|
-
const config = typeCheckConfig$
|
|
2601
|
+
const config = typeCheckConfig$D(untrustedConfig);
|
|
2602
2602
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
2603
2603
|
return null;
|
|
2604
2604
|
}
|
|
2605
2605
|
return config;
|
|
2606
2606
|
}
|
|
2607
|
-
function adapterFragment$
|
|
2608
|
-
createResourceParams$
|
|
2609
|
-
return select$
|
|
2607
|
+
function adapterFragment$l(luvio, config) {
|
|
2608
|
+
createResourceParams$D(config);
|
|
2609
|
+
return select$14();
|
|
2610
2610
|
}
|
|
2611
|
-
function onFetchResponseSuccess$
|
|
2612
|
-
const snapshot = ingestSuccess$
|
|
2611
|
+
function onFetchResponseSuccess$o(luvio, config, resourceParams, response) {
|
|
2612
|
+
const snapshot = ingestSuccess$D(luvio, resourceParams, response, {
|
|
2613
2613
|
config,
|
|
2614
|
-
resolve: () => buildNetworkSnapshot$
|
|
2614
|
+
resolve: () => buildNetworkSnapshot$D(luvio, config, snapshotRefreshOptions)
|
|
2615
2615
|
});
|
|
2616
2616
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
2617
2617
|
}
|
|
2618
|
-
function onFetchResponseError$
|
|
2619
|
-
const snapshot = ingestError$
|
|
2618
|
+
function onFetchResponseError$l(luvio, config, resourceParams, response) {
|
|
2619
|
+
const snapshot = ingestError$l(luvio, resourceParams, response, {
|
|
2620
2620
|
config,
|
|
2621
|
-
resolve: () => buildNetworkSnapshot$
|
|
2621
|
+
resolve: () => buildNetworkSnapshot$D(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$D(luvio, config, options) {
|
|
2626
|
+
const resourceParams = createResourceParams$D(config);
|
|
2627
|
+
const request = createResourceRequest$D(resourceParams);
|
|
2628
2628
|
return luvio.dispatchResourceRequest(request, options)
|
|
2629
2629
|
.then((response) => {
|
|
2630
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
2630
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$o(luvio, config, resourceParams, response), () => {
|
|
2631
2631
|
const cache = new StoreKeyMap();
|
|
2632
|
-
getResponseCacheKeys$
|
|
2632
|
+
getResponseCacheKeys$D(cache, luvio, resourceParams, response.body);
|
|
2633
2633
|
return cache;
|
|
2634
2634
|
});
|
|
2635
2635
|
}, (response) => {
|
|
2636
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
2636
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$l(luvio, config, resourceParams, response));
|
|
2637
2637
|
});
|
|
2638
2638
|
}
|
|
2639
|
-
function buildNetworkSnapshotCachePolicy$
|
|
2640
|
-
return buildNetworkSnapshotCachePolicy$
|
|
2639
|
+
function buildNetworkSnapshotCachePolicy$l(context, coercedAdapterRequestContext) {
|
|
2640
|
+
return buildNetworkSnapshotCachePolicy$p(context, coercedAdapterRequestContext, buildNetworkSnapshot$D, undefined, false);
|
|
2641
2641
|
}
|
|
2642
|
-
function buildCachedSnapshotCachePolicy$
|
|
2642
|
+
function buildCachedSnapshotCachePolicy$l(context, storeLookup) {
|
|
2643
2643
|
const { luvio, config } = context;
|
|
2644
2644
|
const selector = {
|
|
2645
|
-
recordId: keyBuilder$
|
|
2646
|
-
node: adapterFragment$
|
|
2645
|
+
recordId: keyBuilder$X(luvio, config),
|
|
2646
|
+
node: adapterFragment$l(luvio, config),
|
|
2647
2647
|
variables: {},
|
|
2648
2648
|
};
|
|
2649
2649
|
const cacheSnapshot = storeLookup(selector, {
|
|
2650
2650
|
config,
|
|
2651
|
-
resolve: () => buildNetworkSnapshot$
|
|
2651
|
+
resolve: () => buildNetworkSnapshot$D(luvio, config, snapshotRefreshOptions)
|
|
2652
2652
|
});
|
|
2653
2653
|
return cacheSnapshot;
|
|
2654
2654
|
}
|
|
2655
2655
|
const getManagedContentSpaceFolderItemsV1AdapterFactory = (luvio) => function CMSAuthoring__getManagedContentSpaceFolderItemsV1(untrustedConfig, requestContext) {
|
|
2656
|
-
const config = validateAdapterConfig$
|
|
2656
|
+
const config = validateAdapterConfig$D(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$l, buildNetworkSnapshotCachePolicy$l);
|
|
2663
2663
|
};
|
|
2664
2664
|
|
|
2665
|
-
function validate$
|
|
2665
|
+
function validate$Z(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$_(obj, path = 'ManagedContentCollectionItemTypeSummaryRepresen
|
|
|
2681
2681
|
return v_error === undefined ? null : v_error;
|
|
2682
2682
|
}
|
|
2683
2683
|
|
|
2684
|
-
function validate$
|
|
2684
|
+
function validate$Y(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$Z(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$Z(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$Z(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$s = 100;
|
|
2726
|
+
const VERSION$t = "eeea454f1268ece5c3e24c986688b876";
|
|
2727
|
+
function validate$X(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$Y(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$1a(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$Y(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$Y(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,9 +2795,9 @@ function validate$Y(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$s = 'ManagedContentCollectionDetailRepresentation';
|
|
2799
|
+
function keyBuilder$W(luvio, config) {
|
|
2800
|
+
return keyPrefix + '::' + RepresentationType$s + ':' + config.collection_key + ':' + config.language + ':' + config.version;
|
|
2801
2801
|
}
|
|
2802
2802
|
function keyBuilderFromType$f(luvio, object) {
|
|
2803
2803
|
const keyParams = {
|
|
@@ -2805,67 +2805,67 @@ function keyBuilderFromType$f(luvio, object) {
|
|
|
2805
2805
|
language: object.language,
|
|
2806
2806
|
version: object.versionNumber
|
|
2807
2807
|
};
|
|
2808
|
-
return keyBuilder$
|
|
2808
|
+
return keyBuilder$W(luvio, keyParams);
|
|
2809
2809
|
}
|
|
2810
|
-
function normalize$
|
|
2810
|
+
function normalize$s(input, existing, path, luvio, store, timestamp) {
|
|
2811
2811
|
return input;
|
|
2812
2812
|
}
|
|
2813
|
-
const select$
|
|
2813
|
+
const select$13 = function ManagedContentCollectionDetailRepresentationSelect() {
|
|
2814
2814
|
return {
|
|
2815
2815
|
kind: 'Fragment',
|
|
2816
|
-
version: VERSION$
|
|
2816
|
+
version: VERSION$t,
|
|
2817
2817
|
private: [],
|
|
2818
2818
|
opaque: true
|
|
2819
2819
|
};
|
|
2820
2820
|
};
|
|
2821
|
-
function equals$
|
|
2821
|
+
function equals$t(existing, incoming) {
|
|
2822
2822
|
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
2823
2823
|
return false;
|
|
2824
2824
|
}
|
|
2825
2825
|
return true;
|
|
2826
2826
|
}
|
|
2827
|
-
const ingest$
|
|
2827
|
+
const ingest$s = function ManagedContentCollectionDetailRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
2828
2828
|
if (process.env.NODE_ENV !== 'production') {
|
|
2829
|
-
const validateError = validate$
|
|
2829
|
+
const validateError = validate$X(input);
|
|
2830
2830
|
if (validateError !== null) {
|
|
2831
2831
|
throw validateError;
|
|
2832
2832
|
}
|
|
2833
2833
|
}
|
|
2834
2834
|
const key = keyBuilderFromType$f(luvio, input);
|
|
2835
|
-
const ttlToUse = TTL$
|
|
2836
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
2835
|
+
const ttlToUse = TTL$s;
|
|
2836
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$s, "CMSAuthoring", VERSION$t, RepresentationType$s, equals$t);
|
|
2837
2837
|
return createLink(key);
|
|
2838
2838
|
};
|
|
2839
|
-
function getTypeCacheKeys$
|
|
2839
|
+
function getTypeCacheKeys$s(rootKeySet, luvio, input, fullPathFactory) {
|
|
2840
2840
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
2841
2841
|
const rootKey = keyBuilderFromType$f(luvio, input);
|
|
2842
2842
|
rootKeySet.set(rootKey, {
|
|
2843
2843
|
namespace: keyPrefix,
|
|
2844
|
-
representationName: RepresentationType$
|
|
2844
|
+
representationName: RepresentationType$s,
|
|
2845
2845
|
mergeable: false
|
|
2846
2846
|
});
|
|
2847
2847
|
}
|
|
2848
2848
|
|
|
2849
|
-
function select$
|
|
2850
|
-
return select$
|
|
2849
|
+
function select$12(luvio, params) {
|
|
2850
|
+
return select$13();
|
|
2851
2851
|
}
|
|
2852
|
-
function keyBuilder$
|
|
2853
|
-
return keyBuilder$
|
|
2852
|
+
function keyBuilder$V(luvio, params) {
|
|
2853
|
+
return keyBuilder$W(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$C(storeKeyMap, luvio, resourceParams, response) {
|
|
2860
|
+
getTypeCacheKeys$s(storeKeyMap, luvio, response);
|
|
2861
2861
|
}
|
|
2862
|
-
function ingestSuccess$
|
|
2862
|
+
function ingestSuccess$C(luvio, resourceParams, response, snapshotRefresh) {
|
|
2863
2863
|
const { body } = response;
|
|
2864
|
-
const key = keyBuilder$
|
|
2865
|
-
luvio.storeIngest(key, ingest$
|
|
2864
|
+
const key = keyBuilder$V(luvio, resourceParams);
|
|
2865
|
+
luvio.storeIngest(key, ingest$s, body);
|
|
2866
2866
|
const snapshot = luvio.storeLookup({
|
|
2867
2867
|
recordId: key,
|
|
2868
|
-
node: select$
|
|
2868
|
+
node: select$12(),
|
|
2869
2869
|
variables: {},
|
|
2870
2870
|
}, snapshotRefresh);
|
|
2871
2871
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -2876,19 +2876,19 @@ function ingestSuccess$D(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$k(luvio, params, error, snapshotRefresh) {
|
|
2880
|
+
const key = keyBuilder$V(luvio, params);
|
|
2881
2881
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
2882
2882
|
const storeMetadataParams = {
|
|
2883
|
-
ttl: TTL$
|
|
2883
|
+
ttl: TTL$s,
|
|
2884
2884
|
namespace: keyPrefix,
|
|
2885
|
-
version: VERSION$
|
|
2886
|
-
representationName: RepresentationType$
|
|
2885
|
+
version: VERSION$t,
|
|
2886
|
+
representationName: RepresentationType$s
|
|
2887
2887
|
};
|
|
2888
2888
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
2889
2889
|
return errorSnapshot;
|
|
2890
2890
|
}
|
|
2891
|
-
function createResourceRequest$
|
|
2891
|
+
function createResourceRequest$C(config) {
|
|
2892
2892
|
const headers = {};
|
|
2893
2893
|
return {
|
|
2894
2894
|
baseUri: '/services/data/v62.0',
|
|
@@ -2902,7 +2902,7 @@ function createResourceRequest$D(config) {
|
|
|
2902
2902
|
};
|
|
2903
2903
|
}
|
|
2904
2904
|
|
|
2905
|
-
function onFetchResponseSuccess$
|
|
2905
|
+
function onFetchResponseSuccess$n(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$o(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$m(luvio, config, updatedResourceParams, response);
|
|
2918
2918
|
}
|
|
2919
2919
|
|
|
2920
|
-
const adapterName$
|
|
2920
|
+
const adapterName$C = 'getCollectionItems';
|
|
2921
2921
|
const getCollectionItems_ConfigPropertyMetadata = [
|
|
2922
2922
|
generateParamConfigMetadata('collectionKeyOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
2923
2923
|
generateParamConfigMetadata('language', false, 1 /* QueryParameter */, 0 /* String */),
|
|
2924
2924
|
generateParamConfigMetadata('version', false, 1 /* QueryParameter */, 0 /* String */),
|
|
2925
2925
|
];
|
|
2926
|
-
const getCollectionItems_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
2927
|
-
const createResourceParams$
|
|
2928
|
-
function keyBuilder$
|
|
2929
|
-
const resourceParams = createResourceParams$
|
|
2930
|
-
return keyBuilder$
|
|
2926
|
+
const getCollectionItems_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$C, getCollectionItems_ConfigPropertyMetadata);
|
|
2927
|
+
const createResourceParams$C = /*#__PURE__*/ createResourceParams$I(getCollectionItems_ConfigPropertyMetadata);
|
|
2928
|
+
function keyBuilder$U(luvio, config) {
|
|
2929
|
+
const resourceParams = createResourceParams$C(config);
|
|
2930
|
+
return keyBuilder$V(luvio, resourceParams);
|
|
2931
2931
|
}
|
|
2932
|
-
function typeCheckConfig$
|
|
2932
|
+
function typeCheckConfig$C(untrustedConfig) {
|
|
2933
2933
|
const config = {};
|
|
2934
|
-
typeCheckConfig$
|
|
2934
|
+
typeCheckConfig$I(untrustedConfig, config, getCollectionItems_ConfigPropertyMetadata);
|
|
2935
2935
|
return config;
|
|
2936
2936
|
}
|
|
2937
|
-
function validateAdapterConfig$
|
|
2937
|
+
function validateAdapterConfig$C(untrustedConfig, configPropertyNames) {
|
|
2938
2938
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
2939
2939
|
return null;
|
|
2940
2940
|
}
|
|
2941
2941
|
if (process.env.NODE_ENV !== 'production') {
|
|
2942
2942
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
2943
2943
|
}
|
|
2944
|
-
const config = typeCheckConfig$
|
|
2944
|
+
const config = typeCheckConfig$C(untrustedConfig);
|
|
2945
2945
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
2946
2946
|
return null;
|
|
2947
2947
|
}
|
|
2948
2948
|
return config;
|
|
2949
2949
|
}
|
|
2950
|
-
function adapterFragment$
|
|
2951
|
-
createResourceParams$
|
|
2952
|
-
return select$
|
|
2950
|
+
function adapterFragment$k(luvio, config) {
|
|
2951
|
+
createResourceParams$C(config);
|
|
2952
|
+
return select$12();
|
|
2953
2953
|
}
|
|
2954
|
-
function onFetchResponseSuccess$
|
|
2955
|
-
const snapshot = ingestSuccess$
|
|
2954
|
+
function onFetchResponseSuccess$m(luvio, config, resourceParams, response) {
|
|
2955
|
+
const snapshot = ingestSuccess$C(luvio, resourceParams, response, {
|
|
2956
2956
|
config,
|
|
2957
|
-
resolve: () => buildNetworkSnapshot$
|
|
2957
|
+
resolve: () => buildNetworkSnapshot$C(luvio, config, snapshotRefreshOptions)
|
|
2958
2958
|
});
|
|
2959
2959
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
2960
2960
|
}
|
|
2961
|
-
function onFetchResponseError$
|
|
2962
|
-
const snapshot = ingestError$
|
|
2961
|
+
function onFetchResponseError$k(luvio, config, resourceParams, response) {
|
|
2962
|
+
const snapshot = ingestError$k(luvio, resourceParams, response, {
|
|
2963
2963
|
config,
|
|
2964
|
-
resolve: () => buildNetworkSnapshot$
|
|
2964
|
+
resolve: () => buildNetworkSnapshot$C(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$C(luvio, config, options) {
|
|
2969
|
+
const resourceParams = createResourceParams$C(config);
|
|
2970
|
+
const request = createResourceRequest$C(resourceParams);
|
|
2971
2971
|
return luvio.dispatchResourceRequest(request, options)
|
|
2972
2972
|
.then((response) => {
|
|
2973
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
2973
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$n(luvio, config, resourceParams, response), () => {
|
|
2974
2974
|
const cache = new StoreKeyMap();
|
|
2975
|
-
getResponseCacheKeys$
|
|
2975
|
+
getResponseCacheKeys$C(cache, luvio, resourceParams, response.body);
|
|
2976
2976
|
return cache;
|
|
2977
2977
|
});
|
|
2978
2978
|
}, (response) => {
|
|
2979
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
2979
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$k(luvio, config, resourceParams, response));
|
|
2980
2980
|
});
|
|
2981
2981
|
}
|
|
2982
|
-
function buildNetworkSnapshotCachePolicy$
|
|
2983
|
-
return buildNetworkSnapshotCachePolicy$
|
|
2982
|
+
function buildNetworkSnapshotCachePolicy$k(context, coercedAdapterRequestContext) {
|
|
2983
|
+
return buildNetworkSnapshotCachePolicy$p(context, coercedAdapterRequestContext, buildNetworkSnapshot$C, undefined, false);
|
|
2984
2984
|
}
|
|
2985
|
-
function buildCachedSnapshotCachePolicy$
|
|
2985
|
+
function buildCachedSnapshotCachePolicy$k(context, storeLookup) {
|
|
2986
2986
|
const { luvio, config } = context;
|
|
2987
2987
|
const selector = {
|
|
2988
|
-
recordId: keyBuilder$
|
|
2989
|
-
node: adapterFragment$
|
|
2988
|
+
recordId: keyBuilder$U(luvio, config),
|
|
2989
|
+
node: adapterFragment$k(luvio, config),
|
|
2990
2990
|
variables: {},
|
|
2991
2991
|
};
|
|
2992
2992
|
const cacheSnapshot = storeLookup(selector, {
|
|
2993
2993
|
config,
|
|
2994
|
-
resolve: () => buildNetworkSnapshot$
|
|
2994
|
+
resolve: () => buildNetworkSnapshot$C(luvio, config, snapshotRefreshOptions)
|
|
2995
2995
|
});
|
|
2996
2996
|
return cacheSnapshot;
|
|
2997
2997
|
}
|
|
2998
2998
|
const getCollectionItemsAdapterFactory = (luvio) => function CMSAuthoring__getCollectionItems(untrustedConfig, requestContext) {
|
|
2999
|
-
const config = validateAdapterConfig$
|
|
2999
|
+
const config = validateAdapterConfig$C(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$k, buildNetworkSnapshotCachePolicy$k);
|
|
3006
3006
|
};
|
|
3007
3007
|
|
|
3008
|
-
function validate$
|
|
3008
|
+
function validate$W(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$X(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$r = 100;
|
|
3079
|
+
const VERSION$s = "52e643b998d6763482c6d74542b38408";
|
|
3080
|
+
function validate$V(obj, path = 'ManagedContentTranslationV2Representation') {
|
|
3081
3081
|
const v_error = (() => {
|
|
3082
3082
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3083
3083
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3234,68 +3234,68 @@ function validate$W(obj, path = 'ManagedContentTranslationV2Representation') {
|
|
|
3234
3234
|
})();
|
|
3235
3235
|
return v_error === undefined ? null : v_error;
|
|
3236
3236
|
}
|
|
3237
|
-
const RepresentationType$
|
|
3238
|
-
function keyBuilder$
|
|
3239
|
-
return keyPrefix + '::' + RepresentationType$
|
|
3237
|
+
const RepresentationType$r = 'ManagedContentTranslationV2Representation';
|
|
3238
|
+
function keyBuilder$T(luvio, config) {
|
|
3239
|
+
return keyPrefix + '::' + RepresentationType$r + ':' + config.id;
|
|
3240
3240
|
}
|
|
3241
3241
|
function keyBuilderFromType$e(luvio, object) {
|
|
3242
3242
|
const keyParams = {
|
|
3243
3243
|
id: object.id
|
|
3244
3244
|
};
|
|
3245
|
-
return keyBuilder$
|
|
3245
|
+
return keyBuilder$T(luvio, keyParams);
|
|
3246
3246
|
}
|
|
3247
|
-
function normalize$
|
|
3247
|
+
function normalize$r(input, existing, path, luvio, store, timestamp) {
|
|
3248
3248
|
return input;
|
|
3249
3249
|
}
|
|
3250
|
-
const select$
|
|
3250
|
+
const select$11 = function ManagedContentTranslationV2RepresentationSelect() {
|
|
3251
3251
|
return {
|
|
3252
3252
|
kind: 'Fragment',
|
|
3253
|
-
version: VERSION$
|
|
3253
|
+
version: VERSION$s,
|
|
3254
3254
|
private: [],
|
|
3255
3255
|
opaque: true
|
|
3256
3256
|
};
|
|
3257
3257
|
};
|
|
3258
|
-
function equals$
|
|
3258
|
+
function equals$s(existing, incoming) {
|
|
3259
3259
|
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
3260
3260
|
return false;
|
|
3261
3261
|
}
|
|
3262
3262
|
return true;
|
|
3263
3263
|
}
|
|
3264
|
-
const ingest$
|
|
3264
|
+
const ingest$r = function ManagedContentTranslationV2RepresentationIngest(input, path, luvio, store, timestamp) {
|
|
3265
3265
|
if (process.env.NODE_ENV !== 'production') {
|
|
3266
|
-
const validateError = validate$
|
|
3266
|
+
const validateError = validate$V(input);
|
|
3267
3267
|
if (validateError !== null) {
|
|
3268
3268
|
throw validateError;
|
|
3269
3269
|
}
|
|
3270
3270
|
}
|
|
3271
3271
|
const key = keyBuilderFromType$e(luvio, input);
|
|
3272
|
-
const ttlToUse = TTL$
|
|
3273
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
3272
|
+
const ttlToUse = TTL$r;
|
|
3273
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$r, "CMSAuthoring", VERSION$s, RepresentationType$r, equals$s);
|
|
3274
3274
|
return createLink(key);
|
|
3275
3275
|
};
|
|
3276
|
-
function getTypeCacheKeys$
|
|
3276
|
+
function getTypeCacheKeys$r(rootKeySet, luvio, input, fullPathFactory) {
|
|
3277
3277
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
3278
3278
|
const rootKey = keyBuilderFromType$e(luvio, input);
|
|
3279
3279
|
rootKeySet.set(rootKey, {
|
|
3280
3280
|
namespace: keyPrefix,
|
|
3281
|
-
representationName: RepresentationType$
|
|
3281
|
+
representationName: RepresentationType$r,
|
|
3282
3282
|
mergeable: false
|
|
3283
3283
|
});
|
|
3284
3284
|
}
|
|
3285
3285
|
|
|
3286
|
-
function select$
|
|
3287
|
-
return select$
|
|
3286
|
+
function select$10(luvio, params) {
|
|
3287
|
+
return select$11();
|
|
3288
3288
|
}
|
|
3289
|
-
function getResponseCacheKeys$
|
|
3290
|
-
getTypeCacheKeys$
|
|
3289
|
+
function getResponseCacheKeys$B(storeKeyMap, luvio, resourceParams, response) {
|
|
3290
|
+
getTypeCacheKeys$r(storeKeyMap, luvio, response);
|
|
3291
3291
|
}
|
|
3292
|
-
function ingestSuccess$
|
|
3292
|
+
function ingestSuccess$B(luvio, resourceParams, response) {
|
|
3293
3293
|
const { body } = response;
|
|
3294
3294
|
const key = keyBuilderFromType$e(luvio, body);
|
|
3295
|
-
luvio.storeIngest(key, ingest$
|
|
3295
|
+
luvio.storeIngest(key, ingest$r, body);
|
|
3296
3296
|
const snapshot = luvio.storeLookup({
|
|
3297
3297
|
recordId: key,
|
|
3298
|
-
node: select$
|
|
3298
|
+
node: select$10(),
|
|
3299
3299
|
variables: {},
|
|
3300
3300
|
});
|
|
3301
3301
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -3306,7 +3306,7 @@ function ingestSuccess$C(luvio, resourceParams, response) {
|
|
|
3306
3306
|
deepFreeze(snapshot.data);
|
|
3307
3307
|
return snapshot;
|
|
3308
3308
|
}
|
|
3309
|
-
function createResourceRequest$
|
|
3309
|
+
function createResourceRequest$B(config) {
|
|
3310
3310
|
const headers = {};
|
|
3311
3311
|
return {
|
|
3312
3312
|
baseUri: '/services/data/v62.0',
|
|
@@ -3320,47 +3320,47 @@ function createResourceRequest$C(config) {
|
|
|
3320
3320
|
};
|
|
3321
3321
|
}
|
|
3322
3322
|
|
|
3323
|
-
const adapterName$
|
|
3323
|
+
const adapterName$B = 'createTranslationV2Job';
|
|
3324
3324
|
const createTranslationV2Job_ConfigPropertyMetadata = [
|
|
3325
3325
|
generateParamConfigMetadata('contentSpaceId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
3326
3326
|
generateParamConfigMetadata('translationV2Request', true, 2 /* Body */, 4 /* Unsupported */),
|
|
3327
3327
|
];
|
|
3328
|
-
const createTranslationV2Job_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
3329
|
-
const createResourceParams$
|
|
3330
|
-
function typeCheckConfig$
|
|
3328
|
+
const createTranslationV2Job_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$B, createTranslationV2Job_ConfigPropertyMetadata);
|
|
3329
|
+
const createResourceParams$B = /*#__PURE__*/ createResourceParams$I(createTranslationV2Job_ConfigPropertyMetadata);
|
|
3330
|
+
function typeCheckConfig$B(untrustedConfig) {
|
|
3331
3331
|
const config = {};
|
|
3332
|
-
typeCheckConfig$
|
|
3332
|
+
typeCheckConfig$I(untrustedConfig, config, createTranslationV2Job_ConfigPropertyMetadata);
|
|
3333
3333
|
const untrustedConfig_translationV2Request = untrustedConfig.translationV2Request;
|
|
3334
|
-
const referenceManagedContentTranslationV2RequestInputRepValidationError = validate$
|
|
3334
|
+
const referenceManagedContentTranslationV2RequestInputRepValidationError = validate$W(untrustedConfig_translationV2Request);
|
|
3335
3335
|
if (referenceManagedContentTranslationV2RequestInputRepValidationError === null) {
|
|
3336
3336
|
config.translationV2Request = untrustedConfig_translationV2Request;
|
|
3337
3337
|
}
|
|
3338
3338
|
return config;
|
|
3339
3339
|
}
|
|
3340
|
-
function validateAdapterConfig$
|
|
3340
|
+
function validateAdapterConfig$B(untrustedConfig, configPropertyNames) {
|
|
3341
3341
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
3342
3342
|
return null;
|
|
3343
3343
|
}
|
|
3344
3344
|
if (process.env.NODE_ENV !== 'production') {
|
|
3345
3345
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
3346
3346
|
}
|
|
3347
|
-
const config = typeCheckConfig$
|
|
3347
|
+
const config = typeCheckConfig$B(untrustedConfig);
|
|
3348
3348
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
3349
3349
|
return null;
|
|
3350
3350
|
}
|
|
3351
3351
|
return config;
|
|
3352
3352
|
}
|
|
3353
|
-
function buildNetworkSnapshot$
|
|
3354
|
-
const resourceParams = createResourceParams$
|
|
3355
|
-
const request = createResourceRequest$
|
|
3353
|
+
function buildNetworkSnapshot$B(luvio, config, options) {
|
|
3354
|
+
const resourceParams = createResourceParams$B(config);
|
|
3355
|
+
const request = createResourceRequest$B(resourceParams);
|
|
3356
3356
|
return luvio.dispatchResourceRequest(request, options)
|
|
3357
3357
|
.then((response) => {
|
|
3358
3358
|
return luvio.handleSuccessResponse(() => {
|
|
3359
|
-
const snapshot = ingestSuccess$
|
|
3359
|
+
const snapshot = ingestSuccess$B(luvio, resourceParams, response);
|
|
3360
3360
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
3361
3361
|
}, () => {
|
|
3362
3362
|
const cache = new StoreKeyMap();
|
|
3363
|
-
getResponseCacheKeys$
|
|
3363
|
+
getResponseCacheKeys$B(cache, luvio, resourceParams, response.body);
|
|
3364
3364
|
return cache;
|
|
3365
3365
|
});
|
|
3366
3366
|
}, (response) => {
|
|
@@ -3370,16 +3370,16 @@ function buildNetworkSnapshot$C(luvio, config, options) {
|
|
|
3370
3370
|
}
|
|
3371
3371
|
const createTranslationV2JobAdapterFactory = (luvio) => {
|
|
3372
3372
|
return function createTranslationV2Job(untrustedConfig) {
|
|
3373
|
-
const config = validateAdapterConfig$
|
|
3373
|
+
const config = validateAdapterConfig$B(untrustedConfig, createTranslationV2Job_ConfigPropertyNames);
|
|
3374
3374
|
// Invalid or incomplete config
|
|
3375
3375
|
if (config === null) {
|
|
3376
3376
|
throw new Error('Invalid config for "createTranslationV2Job"');
|
|
3377
3377
|
}
|
|
3378
|
-
return buildNetworkSnapshot$
|
|
3378
|
+
return buildNetworkSnapshot$B(luvio, config);
|
|
3379
3379
|
};
|
|
3380
3380
|
};
|
|
3381
3381
|
|
|
3382
|
-
function validate$
|
|
3382
|
+
function validate$U(obj, path = 'ManagedContentInputRepresentation') {
|
|
3383
3383
|
const v_error = (() => {
|
|
3384
3384
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3385
3385
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3426,7 +3426,7 @@ function validate$V(obj, path = 'ManagedContentInputRepresentation') {
|
|
|
3426
3426
|
return v_error === undefined ? null : v_error;
|
|
3427
3427
|
}
|
|
3428
3428
|
|
|
3429
|
-
function validate$
|
|
3429
|
+
function validate$T(obj, path = 'ManagedContentSpaceSummaryRepresentation') {
|
|
3430
3430
|
const v_error = (() => {
|
|
3431
3431
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3432
3432
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3445,7 +3445,7 @@ function validate$U(obj, path = 'ManagedContentSpaceSummaryRepresentation') {
|
|
|
3445
3445
|
return v_error === undefined ? null : v_error;
|
|
3446
3446
|
}
|
|
3447
3447
|
|
|
3448
|
-
function validate$
|
|
3448
|
+
function validate$S(obj, path = 'ManagedContentFolderSummaryRepresentation') {
|
|
3449
3449
|
const v_error = (() => {
|
|
3450
3450
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3451
3451
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3464,7 +3464,7 @@ function validate$T(obj, path = 'ManagedContentFolderSummaryRepresentation') {
|
|
|
3464
3464
|
return v_error === undefined ? null : v_error;
|
|
3465
3465
|
}
|
|
3466
3466
|
|
|
3467
|
-
function validate$
|
|
3467
|
+
function validate$R(obj, path = 'ManagedContentVariantStatusRepresentation') {
|
|
3468
3468
|
const v_error = (() => {
|
|
3469
3469
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3470
3470
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3483,9 +3483,9 @@ function validate$S(obj, path = 'ManagedContentVariantStatusRepresentation') {
|
|
|
3483
3483
|
return v_error === undefined ? null : v_error;
|
|
3484
3484
|
}
|
|
3485
3485
|
|
|
3486
|
-
const TTL$
|
|
3487
|
-
const VERSION$
|
|
3488
|
-
function validate$
|
|
3486
|
+
const TTL$q = 100;
|
|
3487
|
+
const VERSION$r = "32da7ab9bec2902e7f2b1d1e9aa618f1";
|
|
3488
|
+
function validate$Q(obj, path = 'ManagedContentDocumentRepresentation') {
|
|
3489
3489
|
const v_error = (() => {
|
|
3490
3490
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3491
3491
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3539,7 +3539,7 @@ function validate$R(obj, path = 'ManagedContentDocumentRepresentation') {
|
|
|
3539
3539
|
}
|
|
3540
3540
|
const obj_contentSpace = obj.contentSpace;
|
|
3541
3541
|
const path_contentSpace = path + '.contentSpace';
|
|
3542
|
-
const referencepath_contentSpaceValidationError = validate$
|
|
3542
|
+
const referencepath_contentSpaceValidationError = validate$T(obj_contentSpace, path_contentSpace);
|
|
3543
3543
|
if (referencepath_contentSpaceValidationError !== null) {
|
|
3544
3544
|
let message = 'Object doesn\'t match ManagedContentSpaceSummaryRepresentation (at "' + path_contentSpace + '")\n';
|
|
3545
3545
|
message += referencepath_contentSpaceValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3547,7 +3547,7 @@ function validate$R(obj, path = 'ManagedContentDocumentRepresentation') {
|
|
|
3547
3547
|
}
|
|
3548
3548
|
const obj_contentType = obj.contentType;
|
|
3549
3549
|
const path_contentType = path + '.contentType';
|
|
3550
|
-
const referencepath_contentTypeValidationError = validate$
|
|
3550
|
+
const referencepath_contentTypeValidationError = validate$1a(obj_contentType, path_contentType);
|
|
3551
3551
|
if (referencepath_contentTypeValidationError !== null) {
|
|
3552
3552
|
let message = 'Object doesn\'t match ManagedContentTypeSummaryRepresentation (at "' + path_contentType + '")\n';
|
|
3553
3553
|
message += referencepath_contentTypeValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3555,7 +3555,7 @@ function validate$R(obj, path = 'ManagedContentDocumentRepresentation') {
|
|
|
3555
3555
|
}
|
|
3556
3556
|
const obj_createdBy = obj.createdBy;
|
|
3557
3557
|
const path_createdBy = path + '.createdBy';
|
|
3558
|
-
const referencepath_createdByValidationError = validate$
|
|
3558
|
+
const referencepath_createdByValidationError = validate$17(obj_createdBy, path_createdBy);
|
|
3559
3559
|
if (referencepath_createdByValidationError !== null) {
|
|
3560
3560
|
let message = 'Object doesn\'t match ManagedContentUserSummaryRepresentation (at "' + path_createdBy + '")\n';
|
|
3561
3561
|
message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3568,7 +3568,7 @@ function validate$R(obj, path = 'ManagedContentDocumentRepresentation') {
|
|
|
3568
3568
|
}
|
|
3569
3569
|
const obj_folder = obj.folder;
|
|
3570
3570
|
const path_folder = path + '.folder';
|
|
3571
|
-
const referencepath_folderValidationError = validate$
|
|
3571
|
+
const referencepath_folderValidationError = validate$S(obj_folder, path_folder);
|
|
3572
3572
|
if (referencepath_folderValidationError !== null) {
|
|
3573
3573
|
let message = 'Object doesn\'t match ManagedContentFolderSummaryRepresentation (at "' + path_folder + '")\n';
|
|
3574
3574
|
message += referencepath_folderValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3586,7 +3586,7 @@ function validate$R(obj, path = 'ManagedContentDocumentRepresentation') {
|
|
|
3586
3586
|
}
|
|
3587
3587
|
const obj_lastModifiedBy = obj.lastModifiedBy;
|
|
3588
3588
|
const path_lastModifiedBy = path + '.lastModifiedBy';
|
|
3589
|
-
const referencepath_lastModifiedByValidationError = validate$
|
|
3589
|
+
const referencepath_lastModifiedByValidationError = validate$17(obj_lastModifiedBy, path_lastModifiedBy);
|
|
3590
3590
|
if (referencepath_lastModifiedByValidationError !== null) {
|
|
3591
3591
|
let message = 'Object doesn\'t match ManagedContentUserSummaryRepresentation (at "' + path_lastModifiedBy + '")\n';
|
|
3592
3592
|
message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3617,7 +3617,7 @@ function validate$R(obj, path = 'ManagedContentDocumentRepresentation') {
|
|
|
3617
3617
|
const path_status = path + '.status';
|
|
3618
3618
|
let obj_status_union0 = null;
|
|
3619
3619
|
const obj_status_union0_error = (() => {
|
|
3620
|
-
const referencepath_statusValidationError = validate$
|
|
3620
|
+
const referencepath_statusValidationError = validate$R(obj_status, path_status);
|
|
3621
3621
|
if (referencepath_statusValidationError !== null) {
|
|
3622
3622
|
let message = 'Object doesn\'t match ManagedContentVariantStatusRepresentation (at "' + path_status + '")\n';
|
|
3623
3623
|
message += referencepath_statusValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3687,9 +3687,9 @@ function validate$R(obj, path = 'ManagedContentDocumentRepresentation') {
|
|
|
3687
3687
|
})();
|
|
3688
3688
|
return v_error === undefined ? null : v_error;
|
|
3689
3689
|
}
|
|
3690
|
-
const RepresentationType$
|
|
3691
|
-
function keyBuilder$
|
|
3692
|
-
return keyPrefix + '::' + RepresentationType$
|
|
3690
|
+
const RepresentationType$q = 'ManagedContentDocumentRepresentation';
|
|
3691
|
+
function keyBuilder$S(luvio, config) {
|
|
3692
|
+
return keyPrefix + '::' + RepresentationType$q + ':' + config.content_key + ':' + config.language + ':' + config.version;
|
|
3693
3693
|
}
|
|
3694
3694
|
function keyBuilderFromType$d(luvio, object) {
|
|
3695
3695
|
const keyParams = {
|
|
@@ -3697,60 +3697,60 @@ function keyBuilderFromType$d(luvio, object) {
|
|
|
3697
3697
|
language: object.language,
|
|
3698
3698
|
version: object.version
|
|
3699
3699
|
};
|
|
3700
|
-
return keyBuilder$
|
|
3700
|
+
return keyBuilder$S(luvio, keyParams);
|
|
3701
3701
|
}
|
|
3702
|
-
function normalize$
|
|
3702
|
+
function normalize$q(input, existing, path, luvio, store, timestamp) {
|
|
3703
3703
|
return input;
|
|
3704
3704
|
}
|
|
3705
|
-
const select
|
|
3705
|
+
const select$$ = function ManagedContentDocumentRepresentationSelect() {
|
|
3706
3706
|
return {
|
|
3707
3707
|
kind: 'Fragment',
|
|
3708
|
-
version: VERSION$
|
|
3708
|
+
version: VERSION$r,
|
|
3709
3709
|
private: [],
|
|
3710
3710
|
opaque: true
|
|
3711
3711
|
};
|
|
3712
3712
|
};
|
|
3713
|
-
function equals$
|
|
3713
|
+
function equals$r(existing, incoming) {
|
|
3714
3714
|
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
3715
3715
|
return false;
|
|
3716
3716
|
}
|
|
3717
3717
|
return true;
|
|
3718
3718
|
}
|
|
3719
|
-
const ingest$
|
|
3719
|
+
const ingest$q = function ManagedContentDocumentRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
3720
3720
|
if (process.env.NODE_ENV !== 'production') {
|
|
3721
|
-
const validateError = validate$
|
|
3721
|
+
const validateError = validate$Q(input);
|
|
3722
3722
|
if (validateError !== null) {
|
|
3723
3723
|
throw validateError;
|
|
3724
3724
|
}
|
|
3725
3725
|
}
|
|
3726
3726
|
const key = keyBuilderFromType$d(luvio, input);
|
|
3727
|
-
const ttlToUse = TTL$
|
|
3728
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
3727
|
+
const ttlToUse = TTL$q;
|
|
3728
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$q, "CMSAuthoring", VERSION$r, RepresentationType$q, equals$r);
|
|
3729
3729
|
return createLink(key);
|
|
3730
3730
|
};
|
|
3731
|
-
function getTypeCacheKeys$
|
|
3731
|
+
function getTypeCacheKeys$q(rootKeySet, luvio, input, fullPathFactory) {
|
|
3732
3732
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
3733
3733
|
const rootKey = keyBuilderFromType$d(luvio, input);
|
|
3734
3734
|
rootKeySet.set(rootKey, {
|
|
3735
3735
|
namespace: keyPrefix,
|
|
3736
|
-
representationName: RepresentationType$
|
|
3736
|
+
representationName: RepresentationType$q,
|
|
3737
3737
|
mergeable: false
|
|
3738
3738
|
});
|
|
3739
3739
|
}
|
|
3740
3740
|
|
|
3741
|
-
function select$
|
|
3742
|
-
return select
|
|
3741
|
+
function select$_(luvio, params) {
|
|
3742
|
+
return select$$();
|
|
3743
3743
|
}
|
|
3744
|
-
function getResponseCacheKeys$
|
|
3745
|
-
getTypeCacheKeys$
|
|
3744
|
+
function getResponseCacheKeys$A(storeKeyMap, luvio, resourceParams, response) {
|
|
3745
|
+
getTypeCacheKeys$q(storeKeyMap, luvio, response);
|
|
3746
3746
|
}
|
|
3747
|
-
function ingestSuccess$
|
|
3747
|
+
function ingestSuccess$A(luvio, resourceParams, response) {
|
|
3748
3748
|
const { body } = response;
|
|
3749
3749
|
const key = keyBuilderFromType$d(luvio, body);
|
|
3750
|
-
luvio.storeIngest(key, ingest$
|
|
3750
|
+
luvio.storeIngest(key, ingest$q, body);
|
|
3751
3751
|
const snapshot = luvio.storeLookup({
|
|
3752
3752
|
recordId: key,
|
|
3753
|
-
node: select$
|
|
3753
|
+
node: select$_(),
|
|
3754
3754
|
variables: {},
|
|
3755
3755
|
});
|
|
3756
3756
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -3761,7 +3761,7 @@ function ingestSuccess$B(luvio, resourceParams, response) {
|
|
|
3761
3761
|
deepFreeze(snapshot.data);
|
|
3762
3762
|
return snapshot;
|
|
3763
3763
|
}
|
|
3764
|
-
function createResourceRequest$
|
|
3764
|
+
function createResourceRequest$A(config) {
|
|
3765
3765
|
const headers = {};
|
|
3766
3766
|
return {
|
|
3767
3767
|
baseUri: '/services/data/v62.0',
|
|
@@ -3775,52 +3775,52 @@ function createResourceRequest$B(config) {
|
|
|
3775
3775
|
};
|
|
3776
3776
|
}
|
|
3777
3777
|
|
|
3778
|
-
function ingestSuccess$
|
|
3778
|
+
function ingestSuccess$z(luvio, resourceParams, response) {
|
|
3779
3779
|
// Version can come either from versionNumber field in case of v2 content, or managedContentVersionId field in case of v1 content.
|
|
3780
3780
|
response.body.version = (response.body.versionNumber ||
|
|
3781
3781
|
response.body.managedContentVersionId);
|
|
3782
|
-
return ingestSuccess$
|
|
3782
|
+
return ingestSuccess$A(luvio, resourceParams, response);
|
|
3783
3783
|
}
|
|
3784
3784
|
|
|
3785
|
-
const adapterName$
|
|
3785
|
+
const adapterName$A = 'createManagedContent';
|
|
3786
3786
|
const createManagedContent_ConfigPropertyMetadata = [
|
|
3787
3787
|
generateParamConfigMetadata('ManagedContentInputParam', true, 2 /* Body */, 4 /* Unsupported */),
|
|
3788
3788
|
];
|
|
3789
|
-
const createManagedContent_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
3790
|
-
const createResourceParams$
|
|
3791
|
-
function typeCheckConfig$
|
|
3789
|
+
const createManagedContent_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$A, createManagedContent_ConfigPropertyMetadata);
|
|
3790
|
+
const createResourceParams$A = /*#__PURE__*/ createResourceParams$I(createManagedContent_ConfigPropertyMetadata);
|
|
3791
|
+
function typeCheckConfig$A(untrustedConfig) {
|
|
3792
3792
|
const config = {};
|
|
3793
3793
|
const untrustedConfig_ManagedContentInputParam = untrustedConfig.ManagedContentInputParam;
|
|
3794
|
-
const referenceManagedContentInputRepresentationValidationError = validate$
|
|
3794
|
+
const referenceManagedContentInputRepresentationValidationError = validate$U(untrustedConfig_ManagedContentInputParam);
|
|
3795
3795
|
if (referenceManagedContentInputRepresentationValidationError === null) {
|
|
3796
3796
|
config.ManagedContentInputParam = untrustedConfig_ManagedContentInputParam;
|
|
3797
3797
|
}
|
|
3798
3798
|
return config;
|
|
3799
3799
|
}
|
|
3800
|
-
function validateAdapterConfig$
|
|
3800
|
+
function validateAdapterConfig$A(untrustedConfig, configPropertyNames) {
|
|
3801
3801
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
3802
3802
|
return null;
|
|
3803
3803
|
}
|
|
3804
3804
|
if (process.env.NODE_ENV !== 'production') {
|
|
3805
3805
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
3806
3806
|
}
|
|
3807
|
-
const config = typeCheckConfig$
|
|
3807
|
+
const config = typeCheckConfig$A(untrustedConfig);
|
|
3808
3808
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
3809
3809
|
return null;
|
|
3810
3810
|
}
|
|
3811
3811
|
return config;
|
|
3812
3812
|
}
|
|
3813
|
-
function buildNetworkSnapshot$
|
|
3814
|
-
const resourceParams = createResourceParams$
|
|
3815
|
-
const request = createResourceRequest$
|
|
3813
|
+
function buildNetworkSnapshot$A(luvio, config, options) {
|
|
3814
|
+
const resourceParams = createResourceParams$A(config);
|
|
3815
|
+
const request = createResourceRequest$A(resourceParams);
|
|
3816
3816
|
return luvio.dispatchResourceRequest(request, options)
|
|
3817
3817
|
.then((response) => {
|
|
3818
3818
|
return luvio.handleSuccessResponse(() => {
|
|
3819
|
-
const snapshot = ingestSuccess$
|
|
3819
|
+
const snapshot = ingestSuccess$z(luvio, resourceParams, response);
|
|
3820
3820
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
3821
3821
|
}, () => {
|
|
3822
3822
|
const cache = new StoreKeyMap();
|
|
3823
|
-
getResponseCacheKeys$
|
|
3823
|
+
getResponseCacheKeys$A(cache, luvio, resourceParams, response.body);
|
|
3824
3824
|
return cache;
|
|
3825
3825
|
});
|
|
3826
3826
|
}, (response) => {
|
|
@@ -3830,252 +3830,13 @@ function buildNetworkSnapshot$B(luvio, config, options) {
|
|
|
3830
3830
|
}
|
|
3831
3831
|
const createManagedContentAdapterFactory = (luvio) => {
|
|
3832
3832
|
return function createManagedContent(untrustedConfig) {
|
|
3833
|
-
const config = validateAdapterConfig$
|
|
3833
|
+
const config = validateAdapterConfig$A(untrustedConfig, createManagedContent_ConfigPropertyNames);
|
|
3834
3834
|
// Invalid or incomplete config
|
|
3835
3835
|
if (config === null) {
|
|
3836
3836
|
throw new Error('Invalid config for "createManagedContent"');
|
|
3837
3837
|
}
|
|
3838
|
-
return buildNetworkSnapshot$
|
|
3839
|
-
};
|
|
3840
|
-
};
|
|
3841
|
-
|
|
3842
|
-
const TTL$q = 100;
|
|
3843
|
-
const VERSION$r = "3aae2fad9020711e898a6f7dc26e76a9";
|
|
3844
|
-
function validate$Q(obj, path = 'ManagedContentFileUploadRepresentation') {
|
|
3845
|
-
const v_error = (() => {
|
|
3846
|
-
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3847
|
-
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
3848
|
-
}
|
|
3849
|
-
const obj_hasCustomRecordTypes = obj.hasCustomRecordTypes;
|
|
3850
|
-
const path_hasCustomRecordTypes = path + '.hasCustomRecordTypes';
|
|
3851
|
-
if (typeof obj_hasCustomRecordTypes !== 'boolean') {
|
|
3852
|
-
return new TypeError('Expected "boolean" but received "' + typeof obj_hasCustomRecordTypes + '" (at "' + path_hasCustomRecordTypes + '")');
|
|
3853
|
-
}
|
|
3854
|
-
const obj_maxFileAttachmentsOnFeed = obj.maxFileAttachmentsOnFeed;
|
|
3855
|
-
const path_maxFileAttachmentsOnFeed = path + '.maxFileAttachmentsOnFeed';
|
|
3856
|
-
if (typeof obj_maxFileAttachmentsOnFeed !== 'number' || (typeof obj_maxFileAttachmentsOnFeed === 'number' && Math.floor(obj_maxFileAttachmentsOnFeed) !== obj_maxFileAttachmentsOnFeed)) {
|
|
3857
|
-
return new TypeError('Expected "integer" but received "' + typeof obj_maxFileAttachmentsOnFeed + '" (at "' + path_maxFileAttachmentsOnFeed + '")');
|
|
3858
|
-
}
|
|
3859
|
-
const obj_token = obj.token;
|
|
3860
|
-
const path_token = path + '.token';
|
|
3861
|
-
if (typeof obj_token !== 'string') {
|
|
3862
|
-
return new TypeError('Expected "string" but received "' + typeof obj_token + '" (at "' + path_token + '")');
|
|
3863
|
-
}
|
|
3864
|
-
const obj_uploadUrl = obj.uploadUrl;
|
|
3865
|
-
const path_uploadUrl = path + '.uploadUrl';
|
|
3866
|
-
if (typeof obj_uploadUrl !== 'string') {
|
|
3867
|
-
return new TypeError('Expected "string" but received "' + typeof obj_uploadUrl + '" (at "' + path_uploadUrl + '")');
|
|
3868
|
-
}
|
|
3869
|
-
})();
|
|
3870
|
-
return v_error === undefined ? null : v_error;
|
|
3871
|
-
}
|
|
3872
|
-
const RepresentationType$q = 'ManagedContentFileUploadRepresentation';
|
|
3873
|
-
function normalize$q(input, existing, path, luvio, store, timestamp) {
|
|
3874
|
-
return input;
|
|
3875
|
-
}
|
|
3876
|
-
const select$$ = function ManagedContentFileUploadRepresentationSelect() {
|
|
3877
|
-
return {
|
|
3878
|
-
kind: 'Fragment',
|
|
3879
|
-
version: VERSION$r,
|
|
3880
|
-
private: [],
|
|
3881
|
-
selections: [
|
|
3882
|
-
{
|
|
3883
|
-
name: 'hasCustomRecordTypes',
|
|
3884
|
-
kind: 'Scalar'
|
|
3885
|
-
},
|
|
3886
|
-
{
|
|
3887
|
-
name: 'maxFileAttachmentsOnFeed',
|
|
3888
|
-
kind: 'Scalar'
|
|
3889
|
-
},
|
|
3890
|
-
{
|
|
3891
|
-
name: 'token',
|
|
3892
|
-
kind: 'Scalar'
|
|
3893
|
-
},
|
|
3894
|
-
{
|
|
3895
|
-
name: 'uploadUrl',
|
|
3896
|
-
kind: 'Scalar'
|
|
3897
|
-
}
|
|
3898
|
-
]
|
|
3899
|
-
};
|
|
3900
|
-
};
|
|
3901
|
-
function equals$r(existing, incoming) {
|
|
3902
|
-
const existing_hasCustomRecordTypes = existing.hasCustomRecordTypes;
|
|
3903
|
-
const incoming_hasCustomRecordTypes = incoming.hasCustomRecordTypes;
|
|
3904
|
-
if (!(existing_hasCustomRecordTypes === incoming_hasCustomRecordTypes)) {
|
|
3905
|
-
return false;
|
|
3906
|
-
}
|
|
3907
|
-
const existing_maxFileAttachmentsOnFeed = existing.maxFileAttachmentsOnFeed;
|
|
3908
|
-
const incoming_maxFileAttachmentsOnFeed = incoming.maxFileAttachmentsOnFeed;
|
|
3909
|
-
if (!(existing_maxFileAttachmentsOnFeed === incoming_maxFileAttachmentsOnFeed)) {
|
|
3910
|
-
return false;
|
|
3911
|
-
}
|
|
3912
|
-
const existing_token = existing.token;
|
|
3913
|
-
const incoming_token = incoming.token;
|
|
3914
|
-
if (!(existing_token === incoming_token)) {
|
|
3915
|
-
return false;
|
|
3916
|
-
}
|
|
3917
|
-
const existing_uploadUrl = existing.uploadUrl;
|
|
3918
|
-
const incoming_uploadUrl = incoming.uploadUrl;
|
|
3919
|
-
if (!(existing_uploadUrl === incoming_uploadUrl)) {
|
|
3920
|
-
return false;
|
|
3921
|
-
}
|
|
3922
|
-
return true;
|
|
3923
|
-
}
|
|
3924
|
-
const ingest$q = function ManagedContentFileUploadRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
3925
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
3926
|
-
const validateError = validate$Q(input);
|
|
3927
|
-
if (validateError !== null) {
|
|
3928
|
-
throw validateError;
|
|
3929
|
-
}
|
|
3930
|
-
}
|
|
3931
|
-
const key = path.fullPath;
|
|
3932
|
-
const ttlToUse = TTL$q;
|
|
3933
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$q, "CMSAuthoring", VERSION$r, RepresentationType$q, equals$r);
|
|
3934
|
-
return createLink(key);
|
|
3935
|
-
};
|
|
3936
|
-
function getTypeCacheKeys$q(rootKeySet, luvio, input, fullPathFactory) {
|
|
3937
|
-
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
3938
|
-
const rootKey = fullPathFactory();
|
|
3939
|
-
rootKeySet.set(rootKey, {
|
|
3940
|
-
namespace: keyPrefix,
|
|
3941
|
-
representationName: RepresentationType$q,
|
|
3942
|
-
mergeable: false
|
|
3943
|
-
});
|
|
3944
|
-
}
|
|
3945
|
-
|
|
3946
|
-
function select$_(luvio, params) {
|
|
3947
|
-
return select$$();
|
|
3948
|
-
}
|
|
3949
|
-
function keyBuilder$T(luvio, params) {
|
|
3950
|
-
return keyPrefix + '::ManagedContentFileUploadRepresentation:(' + ')';
|
|
3951
|
-
}
|
|
3952
|
-
function getResponseCacheKeys$A(storeKeyMap, luvio, resourceParams, response) {
|
|
3953
|
-
getTypeCacheKeys$q(storeKeyMap, luvio, response, () => keyBuilder$T());
|
|
3954
|
-
}
|
|
3955
|
-
function ingestSuccess$z(luvio, resourceParams, response, snapshotRefresh) {
|
|
3956
|
-
const { body } = response;
|
|
3957
|
-
const key = keyBuilder$T();
|
|
3958
|
-
luvio.storeIngest(key, ingest$q, body);
|
|
3959
|
-
const snapshot = luvio.storeLookup({
|
|
3960
|
-
recordId: key,
|
|
3961
|
-
node: select$_(),
|
|
3962
|
-
variables: {},
|
|
3963
|
-
}, snapshotRefresh);
|
|
3964
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
3965
|
-
if (snapshot.state !== 'Fulfilled') {
|
|
3966
|
-
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
3967
|
-
}
|
|
3968
|
-
}
|
|
3969
|
-
deepFreeze(snapshot.data);
|
|
3970
|
-
return snapshot;
|
|
3971
|
-
}
|
|
3972
|
-
function ingestError$k(luvio, params, error, snapshotRefresh) {
|
|
3973
|
-
const key = keyBuilder$T();
|
|
3974
|
-
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
3975
|
-
const storeMetadataParams = {
|
|
3976
|
-
ttl: TTL$q,
|
|
3977
|
-
namespace: keyPrefix,
|
|
3978
|
-
version: VERSION$r,
|
|
3979
|
-
representationName: RepresentationType$q
|
|
3980
|
-
};
|
|
3981
|
-
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
3982
|
-
return errorSnapshot;
|
|
3983
|
-
}
|
|
3984
|
-
function createResourceRequest$A(config) {
|
|
3985
|
-
const headers = {};
|
|
3986
|
-
return {
|
|
3987
|
-
baseUri: '/services/data/v62.0',
|
|
3988
|
-
basePath: '/connect/cms/contents/file/upload',
|
|
3989
|
-
method: 'get',
|
|
3990
|
-
body: null,
|
|
3991
|
-
urlParams: {},
|
|
3992
|
-
queryParams: {},
|
|
3993
|
-
headers,
|
|
3994
|
-
priority: 'normal',
|
|
3995
|
-
};
|
|
3996
|
-
}
|
|
3997
|
-
|
|
3998
|
-
const adapterName$A = 'getManagedContentFileUploadConfig';
|
|
3999
|
-
const getManagedContentFileUploadConfig_ConfigPropertyMetadata = [];
|
|
4000
|
-
const getManagedContentFileUploadConfig_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$A, getManagedContentFileUploadConfig_ConfigPropertyMetadata);
|
|
4001
|
-
const createResourceParams$A = /*#__PURE__*/ createResourceParams$J(getManagedContentFileUploadConfig_ConfigPropertyMetadata);
|
|
4002
|
-
function keyBuilder$S(luvio, config) {
|
|
4003
|
-
createResourceParams$A(config);
|
|
4004
|
-
return keyBuilder$T();
|
|
4005
|
-
}
|
|
4006
|
-
function typeCheckConfig$A(untrustedConfig) {
|
|
4007
|
-
const config = {};
|
|
4008
|
-
return config;
|
|
4009
|
-
}
|
|
4010
|
-
function validateAdapterConfig$A(untrustedConfig, configPropertyNames) {
|
|
4011
|
-
if (!untrustedIsObject(untrustedConfig)) {
|
|
4012
|
-
return null;
|
|
4013
|
-
}
|
|
4014
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
4015
|
-
validateConfig(untrustedConfig, configPropertyNames);
|
|
4016
|
-
}
|
|
4017
|
-
const config = typeCheckConfig$A();
|
|
4018
|
-
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
4019
|
-
return null;
|
|
4020
|
-
}
|
|
4021
|
-
return config;
|
|
4022
|
-
}
|
|
4023
|
-
function adapterFragment$k(luvio, config) {
|
|
4024
|
-
createResourceParams$A(config);
|
|
4025
|
-
return select$_();
|
|
4026
|
-
}
|
|
4027
|
-
function onFetchResponseSuccess$m(luvio, config, resourceParams, response) {
|
|
4028
|
-
const snapshot = ingestSuccess$z(luvio, resourceParams, response, {
|
|
4029
|
-
config,
|
|
4030
|
-
resolve: () => buildNetworkSnapshot$A(luvio, config, snapshotRefreshOptions)
|
|
4031
|
-
});
|
|
4032
|
-
return luvio.storeBroadcast().then(() => snapshot);
|
|
4033
|
-
}
|
|
4034
|
-
function onFetchResponseError$k(luvio, config, resourceParams, response) {
|
|
4035
|
-
const snapshot = ingestError$k(luvio, resourceParams, response, {
|
|
4036
|
-
config,
|
|
4037
|
-
resolve: () => buildNetworkSnapshot$A(luvio, config, snapshotRefreshOptions)
|
|
4038
|
-
});
|
|
4039
|
-
return luvio.storeBroadcast().then(() => snapshot);
|
|
4040
|
-
}
|
|
4041
|
-
function buildNetworkSnapshot$A(luvio, config, options) {
|
|
4042
|
-
const resourceParams = createResourceParams$A(config);
|
|
4043
|
-
const request = createResourceRequest$A();
|
|
4044
|
-
return luvio.dispatchResourceRequest(request, options)
|
|
4045
|
-
.then((response) => {
|
|
4046
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$m(luvio, config, resourceParams, response), () => {
|
|
4047
|
-
const cache = new StoreKeyMap();
|
|
4048
|
-
getResponseCacheKeys$A(cache, luvio, resourceParams, response.body);
|
|
4049
|
-
return cache;
|
|
4050
|
-
});
|
|
4051
|
-
}, (response) => {
|
|
4052
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$k(luvio, config, resourceParams, response));
|
|
4053
|
-
});
|
|
4054
|
-
}
|
|
4055
|
-
function buildNetworkSnapshotCachePolicy$k(context, coercedAdapterRequestContext) {
|
|
4056
|
-
return buildNetworkSnapshotCachePolicy$q(context, coercedAdapterRequestContext, buildNetworkSnapshot$A, undefined, false);
|
|
4057
|
-
}
|
|
4058
|
-
function buildCachedSnapshotCachePolicy$k(context, storeLookup) {
|
|
4059
|
-
const { luvio, config } = context;
|
|
4060
|
-
const selector = {
|
|
4061
|
-
recordId: keyBuilder$S(luvio, config),
|
|
4062
|
-
node: adapterFragment$k(luvio, config),
|
|
4063
|
-
variables: {},
|
|
3838
|
+
return buildNetworkSnapshot$A(luvio, config);
|
|
4064
3839
|
};
|
|
4065
|
-
const cacheSnapshot = storeLookup(selector, {
|
|
4066
|
-
config,
|
|
4067
|
-
resolve: () => buildNetworkSnapshot$A(luvio, config, snapshotRefreshOptions)
|
|
4068
|
-
});
|
|
4069
|
-
return cacheSnapshot;
|
|
4070
|
-
}
|
|
4071
|
-
const getManagedContentFileUploadConfigAdapterFactory = (luvio) => function CMSAuthoring__getManagedContentFileUploadConfig(untrustedConfig, requestContext) {
|
|
4072
|
-
const config = validateAdapterConfig$A(untrustedConfig, getManagedContentFileUploadConfig_ConfigPropertyNames);
|
|
4073
|
-
// Invalid or incomplete config
|
|
4074
|
-
if (config === null) {
|
|
4075
|
-
return null;
|
|
4076
|
-
}
|
|
4077
|
-
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
4078
|
-
buildCachedSnapshotCachePolicy$k, buildNetworkSnapshotCachePolicy$k);
|
|
4079
3840
|
};
|
|
4080
3841
|
|
|
4081
3842
|
const TTL$p = 100;
|
|
@@ -4240,10 +4001,10 @@ const publishManagedContent_ConfigPropertyMetadata = [
|
|
|
4240
4001
|
generateParamConfigMetadata('contextContentSpaceId', false, 2 /* Body */, 0 /* String */),
|
|
4241
4002
|
];
|
|
4242
4003
|
const publishManagedContent_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$z, publishManagedContent_ConfigPropertyMetadata);
|
|
4243
|
-
const createResourceParams$z = /*#__PURE__*/ createResourceParams$
|
|
4004
|
+
const createResourceParams$z = /*#__PURE__*/ createResourceParams$I(publishManagedContent_ConfigPropertyMetadata);
|
|
4244
4005
|
function typeCheckConfig$z(untrustedConfig) {
|
|
4245
4006
|
const config = {};
|
|
4246
|
-
typeCheckConfig$
|
|
4007
|
+
typeCheckConfig$I(untrustedConfig, config, publishManagedContent_ConfigPropertyMetadata);
|
|
4247
4008
|
return config;
|
|
4248
4009
|
}
|
|
4249
4010
|
function validateAdapterConfig$z(untrustedConfig, configPropertyNames) {
|
|
@@ -4448,10 +4209,10 @@ const unpublishManagedContent_ConfigPropertyMetadata = [
|
|
|
4448
4209
|
generateParamConfigMetadata('variantIds', false, 2 /* Body */, 0 /* String */, true),
|
|
4449
4210
|
];
|
|
4450
4211
|
const unpublishManagedContent_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$y, unpublishManagedContent_ConfigPropertyMetadata);
|
|
4451
|
-
const createResourceParams$y = /*#__PURE__*/ createResourceParams$
|
|
4212
|
+
const createResourceParams$y = /*#__PURE__*/ createResourceParams$I(unpublishManagedContent_ConfigPropertyMetadata);
|
|
4452
4213
|
function typeCheckConfig$y(untrustedConfig) {
|
|
4453
4214
|
const config = {};
|
|
4454
|
-
typeCheckConfig$
|
|
4215
|
+
typeCheckConfig$I(untrustedConfig, config, unpublishManagedContent_ConfigPropertyMetadata);
|
|
4455
4216
|
return config;
|
|
4456
4217
|
}
|
|
4457
4218
|
function validateAdapterConfig$y(untrustedConfig, configPropertyNames) {
|
|
@@ -4571,7 +4332,7 @@ function validate$M(obj, path = 'ManagedContentVariantRepresentation') {
|
|
|
4571
4332
|
}
|
|
4572
4333
|
const obj_contentSpace = obj.contentSpace;
|
|
4573
4334
|
const path_contentSpace = path + '.contentSpace';
|
|
4574
|
-
const referencepath_contentSpaceValidationError = validate$
|
|
4335
|
+
const referencepath_contentSpaceValidationError = validate$T(obj_contentSpace, path_contentSpace);
|
|
4575
4336
|
if (referencepath_contentSpaceValidationError !== null) {
|
|
4576
4337
|
let message = 'Object doesn\'t match ManagedContentSpaceSummaryRepresentation (at "' + path_contentSpace + '")\n';
|
|
4577
4338
|
message += referencepath_contentSpaceValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4579,7 +4340,7 @@ function validate$M(obj, path = 'ManagedContentVariantRepresentation') {
|
|
|
4579
4340
|
}
|
|
4580
4341
|
const obj_contentType = obj.contentType;
|
|
4581
4342
|
const path_contentType = path + '.contentType';
|
|
4582
|
-
const referencepath_contentTypeValidationError = validate$
|
|
4343
|
+
const referencepath_contentTypeValidationError = validate$1a(obj_contentType, path_contentType);
|
|
4583
4344
|
if (referencepath_contentTypeValidationError !== null) {
|
|
4584
4345
|
let message = 'Object doesn\'t match ManagedContentTypeSummaryRepresentation (at "' + path_contentType + '")\n';
|
|
4585
4346
|
message += referencepath_contentTypeValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4587,7 +4348,7 @@ function validate$M(obj, path = 'ManagedContentVariantRepresentation') {
|
|
|
4587
4348
|
}
|
|
4588
4349
|
const obj_createdBy = obj.createdBy;
|
|
4589
4350
|
const path_createdBy = path + '.createdBy';
|
|
4590
|
-
const referencepath_createdByValidationError = validate$
|
|
4351
|
+
const referencepath_createdByValidationError = validate$17(obj_createdBy, path_createdBy);
|
|
4591
4352
|
if (referencepath_createdByValidationError !== null) {
|
|
4592
4353
|
let message = 'Object doesn\'t match ManagedContentUserSummaryRepresentation (at "' + path_createdBy + '")\n';
|
|
4593
4354
|
message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4600,7 +4361,7 @@ function validate$M(obj, path = 'ManagedContentVariantRepresentation') {
|
|
|
4600
4361
|
}
|
|
4601
4362
|
const obj_folder = obj.folder;
|
|
4602
4363
|
const path_folder = path + '.folder';
|
|
4603
|
-
const referencepath_folderValidationError = validate$
|
|
4364
|
+
const referencepath_folderValidationError = validate$S(obj_folder, path_folder);
|
|
4604
4365
|
if (referencepath_folderValidationError !== null) {
|
|
4605
4366
|
let message = 'Object doesn\'t match ManagedContentFolderSummaryRepresentation (at "' + path_folder + '")\n';
|
|
4606
4367
|
message += referencepath_folderValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4618,7 +4379,7 @@ function validate$M(obj, path = 'ManagedContentVariantRepresentation') {
|
|
|
4618
4379
|
}
|
|
4619
4380
|
const obj_lastModifiedBy = obj.lastModifiedBy;
|
|
4620
4381
|
const path_lastModifiedBy = path + '.lastModifiedBy';
|
|
4621
|
-
const referencepath_lastModifiedByValidationError = validate$
|
|
4382
|
+
const referencepath_lastModifiedByValidationError = validate$17(obj_lastModifiedBy, path_lastModifiedBy);
|
|
4622
4383
|
if (referencepath_lastModifiedByValidationError !== null) {
|
|
4623
4384
|
let message = 'Object doesn\'t match ManagedContentUserSummaryRepresentation (at "' + path_lastModifiedBy + '")\n';
|
|
4624
4385
|
message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4646,7 +4407,7 @@ function validate$M(obj, path = 'ManagedContentVariantRepresentation') {
|
|
|
4646
4407
|
}
|
|
4647
4408
|
const obj_status = obj.status;
|
|
4648
4409
|
const path_status = path + '.status';
|
|
4649
|
-
const referencepath_statusValidationError = validate$
|
|
4410
|
+
const referencepath_statusValidationError = validate$R(obj_status, path_status);
|
|
4650
4411
|
if (referencepath_statusValidationError !== null) {
|
|
4651
4412
|
let message = 'Object doesn\'t match ManagedContentVariantStatusRepresentation (at "' + path_status + '")\n';
|
|
4652
4413
|
message += referencepath_statusValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4756,7 +4517,7 @@ const createManagedContentVariant_ConfigPropertyMetadata = [
|
|
|
4756
4517
|
generateParamConfigMetadata('managedContentVariantInputParam', true, 2 /* Body */, 4 /* Unsupported */),
|
|
4757
4518
|
];
|
|
4758
4519
|
const createManagedContentVariant_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$x, createManagedContentVariant_ConfigPropertyMetadata);
|
|
4759
|
-
const createResourceParams$x = /*#__PURE__*/ createResourceParams$
|
|
4520
|
+
const createResourceParams$x = /*#__PURE__*/ createResourceParams$I(createManagedContentVariant_ConfigPropertyMetadata);
|
|
4760
4521
|
function typeCheckConfig$x(untrustedConfig) {
|
|
4761
4522
|
const config = {};
|
|
4762
4523
|
const untrustedConfig_managedContentVariantInputParam = untrustedConfig.managedContentVariantInputParam;
|
|
@@ -4844,10 +4605,10 @@ const deleteManagedContentVariant_ConfigPropertyMetadata = [
|
|
|
4844
4605
|
generateParamConfigMetadata('variantId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
4845
4606
|
];
|
|
4846
4607
|
const deleteManagedContentVariant_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$w, deleteManagedContentVariant_ConfigPropertyMetadata);
|
|
4847
|
-
const createResourceParams$w = /*#__PURE__*/ createResourceParams$
|
|
4608
|
+
const createResourceParams$w = /*#__PURE__*/ createResourceParams$I(deleteManagedContentVariant_ConfigPropertyMetadata);
|
|
4848
4609
|
function typeCheckConfig$w(untrustedConfig) {
|
|
4849
4610
|
const config = {};
|
|
4850
|
-
typeCheckConfig$
|
|
4611
|
+
typeCheckConfig$I(untrustedConfig, config, deleteManagedContentVariant_ConfigPropertyMetadata);
|
|
4851
4612
|
return config;
|
|
4852
4613
|
}
|
|
4853
4614
|
function validateAdapterConfig$w(untrustedConfig, configPropertyNames) {
|
|
@@ -4951,14 +4712,14 @@ const getManagedContentVariant_ConfigPropertyMetadata = [
|
|
|
4951
4712
|
generateParamConfigMetadata('variantId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
4952
4713
|
];
|
|
4953
4714
|
const getManagedContentVariant_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$v, getManagedContentVariant_ConfigPropertyMetadata);
|
|
4954
|
-
const createResourceParams$v = /*#__PURE__*/ createResourceParams$
|
|
4715
|
+
const createResourceParams$v = /*#__PURE__*/ createResourceParams$I(getManagedContentVariant_ConfigPropertyMetadata);
|
|
4955
4716
|
function keyBuilder$M(luvio, config) {
|
|
4956
4717
|
const resourceParams = createResourceParams$v(config);
|
|
4957
4718
|
return keyBuilder$N(luvio, resourceParams);
|
|
4958
4719
|
}
|
|
4959
4720
|
function typeCheckConfig$v(untrustedConfig) {
|
|
4960
4721
|
const config = {};
|
|
4961
|
-
typeCheckConfig$
|
|
4722
|
+
typeCheckConfig$I(untrustedConfig, config, getManagedContentVariant_ConfigPropertyMetadata);
|
|
4962
4723
|
return config;
|
|
4963
4724
|
}
|
|
4964
4725
|
function validateAdapterConfig$v(untrustedConfig, configPropertyNames) {
|
|
@@ -5007,7 +4768,7 @@ function buildNetworkSnapshot$v(luvio, config, options) {
|
|
|
5007
4768
|
});
|
|
5008
4769
|
}
|
|
5009
4770
|
function buildNetworkSnapshotCachePolicy$j(context, coercedAdapterRequestContext) {
|
|
5010
|
-
return buildNetworkSnapshotCachePolicy$
|
|
4771
|
+
return buildNetworkSnapshotCachePolicy$p(context, coercedAdapterRequestContext, buildNetworkSnapshot$v, undefined, false);
|
|
5011
4772
|
}
|
|
5012
4773
|
function buildCachedSnapshotCachePolicy$j(context, storeLookup) {
|
|
5013
4774
|
const { luvio, config } = context;
|
|
@@ -5112,10 +4873,10 @@ const replaceManagedContentVariant_ConfigPropertyMetadata = [
|
|
|
5112
4873
|
generateParamConfigMetadata('ManagedContentVariantInputParam', true, 2 /* Body */, 4 /* Unsupported */),
|
|
5113
4874
|
];
|
|
5114
4875
|
const replaceManagedContentVariant_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$u, replaceManagedContentVariant_ConfigPropertyMetadata);
|
|
5115
|
-
const createResourceParams$u = /*#__PURE__*/ createResourceParams$
|
|
4876
|
+
const createResourceParams$u = /*#__PURE__*/ createResourceParams$I(replaceManagedContentVariant_ConfigPropertyMetadata);
|
|
5116
4877
|
function typeCheckConfig$u(untrustedConfig) {
|
|
5117
4878
|
const config = {};
|
|
5118
|
-
typeCheckConfig$
|
|
4879
|
+
typeCheckConfig$I(untrustedConfig, config, replaceManagedContentVariant_ConfigPropertyMetadata);
|
|
5119
4880
|
const untrustedConfig_ManagedContentVariantInputParam = untrustedConfig.ManagedContentVariantInputParam;
|
|
5120
4881
|
const referenceManagedContentVariantUpdateInputRepresentationValidationError = validate$L(untrustedConfig_ManagedContentVariantInputParam);
|
|
5121
4882
|
if (referenceManagedContentVariantUpdateInputRepresentationValidationError === null) {
|
|
@@ -5172,7 +4933,7 @@ function validate$K(obj, path = 'ManagedContentVariantVersionRepresentation') {
|
|
|
5172
4933
|
}
|
|
5173
4934
|
const obj_createdBy = obj.createdBy;
|
|
5174
4935
|
const path_createdBy = path + '.createdBy';
|
|
5175
|
-
const referencepath_createdByValidationError = validate$
|
|
4936
|
+
const referencepath_createdByValidationError = validate$17(obj_createdBy, path_createdBy);
|
|
5176
4937
|
if (referencepath_createdByValidationError !== null) {
|
|
5177
4938
|
let message = 'Object doesn\'t match ManagedContentUserSummaryRepresentation (at "' + path_createdBy + '")\n';
|
|
5178
4939
|
message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -5185,7 +4946,7 @@ function validate$K(obj, path = 'ManagedContentVariantVersionRepresentation') {
|
|
|
5185
4946
|
}
|
|
5186
4947
|
const obj_lastModifiedBy = obj.lastModifiedBy;
|
|
5187
4948
|
const path_lastModifiedBy = path + '.lastModifiedBy';
|
|
5188
|
-
const referencepath_lastModifiedByValidationError = validate$
|
|
4949
|
+
const referencepath_lastModifiedByValidationError = validate$17(obj_lastModifiedBy, path_lastModifiedBy);
|
|
5189
4950
|
if (referencepath_lastModifiedByValidationError !== null) {
|
|
5190
4951
|
let message = 'Object doesn\'t match ManagedContentUserSummaryRepresentation (at "' + path_lastModifiedBy + '")\n';
|
|
5191
4952
|
message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -5203,7 +4964,7 @@ function validate$K(obj, path = 'ManagedContentVariantVersionRepresentation') {
|
|
|
5203
4964
|
}
|
|
5204
4965
|
const obj_status = obj.status;
|
|
5205
4966
|
const path_status = path + '.status';
|
|
5206
|
-
const referencepath_statusValidationError = validate$
|
|
4967
|
+
const referencepath_statusValidationError = validate$R(obj_status, path_status);
|
|
5207
4968
|
if (referencepath_statusValidationError !== null) {
|
|
5208
4969
|
let message = 'Object doesn\'t match ManagedContentVariantStatusRepresentation (at "' + path_status + '")\n';
|
|
5209
4970
|
message += referencepath_statusValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -5376,14 +5137,14 @@ const getManagedContentVariantVersions_ConfigPropertyMetadata = [
|
|
|
5376
5137
|
generateParamConfigMetadata('status', false, 1 /* QueryParameter */, 0 /* String */, true),
|
|
5377
5138
|
];
|
|
5378
5139
|
const getManagedContentVariantVersions_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$t, getManagedContentVariantVersions_ConfigPropertyMetadata);
|
|
5379
|
-
const createResourceParams$t = /*#__PURE__*/ createResourceParams$
|
|
5140
|
+
const createResourceParams$t = /*#__PURE__*/ createResourceParams$I(getManagedContentVariantVersions_ConfigPropertyMetadata);
|
|
5380
5141
|
function keyBuilder$J(luvio, config) {
|
|
5381
5142
|
const resourceParams = createResourceParams$t(config);
|
|
5382
5143
|
return keyBuilder$K(luvio, resourceParams);
|
|
5383
5144
|
}
|
|
5384
5145
|
function typeCheckConfig$t(untrustedConfig) {
|
|
5385
5146
|
const config = {};
|
|
5386
|
-
typeCheckConfig$
|
|
5147
|
+
typeCheckConfig$I(untrustedConfig, config, getManagedContentVariantVersions_ConfigPropertyMetadata);
|
|
5387
5148
|
return config;
|
|
5388
5149
|
}
|
|
5389
5150
|
function validateAdapterConfig$t(untrustedConfig, configPropertyNames) {
|
|
@@ -5432,7 +5193,7 @@ function buildNetworkSnapshot$t(luvio, config, options) {
|
|
|
5432
5193
|
});
|
|
5433
5194
|
}
|
|
5434
5195
|
function buildNetworkSnapshotCachePolicy$i(context, coercedAdapterRequestContext) {
|
|
5435
|
-
return buildNetworkSnapshotCachePolicy$
|
|
5196
|
+
return buildNetworkSnapshotCachePolicy$p(context, coercedAdapterRequestContext, buildNetworkSnapshot$t, undefined, false);
|
|
5436
5197
|
}
|
|
5437
5198
|
function buildCachedSnapshotCachePolicy$i(context, storeLookup) {
|
|
5438
5199
|
const { luvio, config } = context;
|
|
@@ -5696,10 +5457,10 @@ const updateManagedContentWebUrl_ConfigPropertyMetadata = [
|
|
|
5696
5457
|
generateParamConfigMetadata('urlAlias', false, 2 /* Body */, 0 /* String */),
|
|
5697
5458
|
];
|
|
5698
5459
|
const updateManagedContentWebUrl_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$s, updateManagedContentWebUrl_ConfigPropertyMetadata);
|
|
5699
|
-
const createResourceParams$s = /*#__PURE__*/ createResourceParams$
|
|
5460
|
+
const createResourceParams$s = /*#__PURE__*/ createResourceParams$I(updateManagedContentWebUrl_ConfigPropertyMetadata);
|
|
5700
5461
|
function typeCheckConfig$s(untrustedConfig) {
|
|
5701
5462
|
const config = {};
|
|
5702
|
-
typeCheckConfig$
|
|
5463
|
+
typeCheckConfig$I(untrustedConfig, config, updateManagedContentWebUrl_ConfigPropertyMetadata);
|
|
5703
5464
|
const untrustedConfig_redirectInfo = untrustedConfig.redirectInfo;
|
|
5704
5465
|
const referenceManagedContentWebUrlRedirectInfoInputRepresentationValidationError = validate$I(untrustedConfig_redirectInfo);
|
|
5705
5466
|
if (referenceManagedContentWebUrlRedirectInfoInputRepresentationValidationError === null) {
|
|
@@ -5750,22 +5511,22 @@ const updateManagedContentWebUrlAdapterFactory = (luvio) => {
|
|
|
5750
5511
|
};
|
|
5751
5512
|
|
|
5752
5513
|
function select$N(luvio, params) {
|
|
5753
|
-
return select
|
|
5514
|
+
return select$$();
|
|
5754
5515
|
}
|
|
5755
5516
|
function keyBuilder$H(luvio, params) {
|
|
5756
|
-
return keyBuilder$
|
|
5517
|
+
return keyBuilder$S(luvio, {
|
|
5757
5518
|
content_key: params.urlParams.contentKeyOrId,
|
|
5758
5519
|
language: params.queryParams.language || '',
|
|
5759
5520
|
version: params.queryParams.version || ''
|
|
5760
5521
|
});
|
|
5761
5522
|
}
|
|
5762
5523
|
function getResponseCacheKeys$r(storeKeyMap, luvio, resourceParams, response) {
|
|
5763
|
-
getTypeCacheKeys$
|
|
5524
|
+
getTypeCacheKeys$q(storeKeyMap, luvio, response);
|
|
5764
5525
|
}
|
|
5765
5526
|
function ingestSuccess$r(luvio, resourceParams, response, snapshotRefresh) {
|
|
5766
5527
|
const { body } = response;
|
|
5767
5528
|
const key = keyBuilder$H(luvio, resourceParams);
|
|
5768
|
-
luvio.storeIngest(key, ingest$
|
|
5529
|
+
luvio.storeIngest(key, ingest$q, body);
|
|
5769
5530
|
const snapshot = luvio.storeLookup({
|
|
5770
5531
|
recordId: key,
|
|
5771
5532
|
node: select$N(),
|
|
@@ -5783,10 +5544,10 @@ function ingestError$h(luvio, params, error, snapshotRefresh) {
|
|
|
5783
5544
|
const key = keyBuilder$H(luvio, params);
|
|
5784
5545
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
5785
5546
|
const storeMetadataParams = {
|
|
5786
|
-
ttl: TTL$
|
|
5547
|
+
ttl: TTL$q,
|
|
5787
5548
|
namespace: keyPrefix,
|
|
5788
|
-
version: VERSION$
|
|
5789
|
-
representationName: RepresentationType$
|
|
5549
|
+
version: VERSION$r,
|
|
5550
|
+
representationName: RepresentationType$q
|
|
5790
5551
|
};
|
|
5791
5552
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
5792
5553
|
return errorSnapshot;
|
|
@@ -5864,14 +5625,14 @@ const getManagedContent_ConfigPropertyMetadata = [
|
|
|
5864
5625
|
generateParamConfigMetadata('version', false, 1 /* QueryParameter */, 0 /* String */),
|
|
5865
5626
|
];
|
|
5866
5627
|
const getManagedContent_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$r, getManagedContent_ConfigPropertyMetadata);
|
|
5867
|
-
const createResourceParams$r = /*#__PURE__*/ createResourceParams$
|
|
5628
|
+
const createResourceParams$r = /*#__PURE__*/ createResourceParams$I(getManagedContent_ConfigPropertyMetadata);
|
|
5868
5629
|
function keyBuilder$G(luvio, config) {
|
|
5869
5630
|
const resourceParams = createResourceParams$r(config);
|
|
5870
5631
|
return keyBuilder$H(luvio, resourceParams);
|
|
5871
5632
|
}
|
|
5872
5633
|
function typeCheckConfig$r(untrustedConfig) {
|
|
5873
5634
|
const config = {};
|
|
5874
|
-
typeCheckConfig$
|
|
5635
|
+
typeCheckConfig$I(untrustedConfig, config, getManagedContent_ConfigPropertyMetadata);
|
|
5875
5636
|
return config;
|
|
5876
5637
|
}
|
|
5877
5638
|
function validateAdapterConfig$r(untrustedConfig, configPropertyNames) {
|
|
@@ -5920,7 +5681,7 @@ function buildNetworkSnapshot$r(luvio, config, options) {
|
|
|
5920
5681
|
});
|
|
5921
5682
|
}
|
|
5922
5683
|
function buildNetworkSnapshotCachePolicy$h(context, coercedAdapterRequestContext) {
|
|
5923
|
-
return buildNetworkSnapshotCachePolicy$
|
|
5684
|
+
return buildNetworkSnapshotCachePolicy$p(context, coercedAdapterRequestContext, buildNetworkSnapshot$r, undefined, false);
|
|
5924
5685
|
}
|
|
5925
5686
|
function buildCachedSnapshotCachePolicy$h(context, storeLookup) {
|
|
5926
5687
|
const { luvio, config } = context;
|
|
@@ -6127,7 +5888,7 @@ function validate$A(obj, path = 'ManagedContentDocumentCloneRepresentation') {
|
|
|
6127
5888
|
if (obj.folder !== undefined) {
|
|
6128
5889
|
const obj_folder = obj.folder;
|
|
6129
5890
|
const path_folder = path + '.folder';
|
|
6130
|
-
const referencepath_folderValidationError = validate$
|
|
5891
|
+
const referencepath_folderValidationError = validate$S(obj_folder, path_folder);
|
|
6131
5892
|
if (referencepath_folderValidationError !== null) {
|
|
6132
5893
|
let message = 'Object doesn\'t match ManagedContentFolderSummaryRepresentation (at "' + path_folder + '")\n';
|
|
6133
5894
|
message += referencepath_folderValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -6336,10 +6097,10 @@ const cloneManagedContentDocument_ConfigPropertyMetadata = [
|
|
|
6336
6097
|
generateParamConfigMetadata('title', false, 2 /* Body */, 0 /* String */),
|
|
6337
6098
|
];
|
|
6338
6099
|
const cloneManagedContentDocument_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$q, cloneManagedContentDocument_ConfigPropertyMetadata);
|
|
6339
|
-
const createResourceParams$q = /*#__PURE__*/ createResourceParams$
|
|
6100
|
+
const createResourceParams$q = /*#__PURE__*/ createResourceParams$I(cloneManagedContentDocument_ConfigPropertyMetadata);
|
|
6340
6101
|
function typeCheckConfig$q(untrustedConfig) {
|
|
6341
6102
|
const config = {};
|
|
6342
|
-
typeCheckConfig$
|
|
6103
|
+
typeCheckConfig$I(untrustedConfig, config, cloneManagedContentDocument_ConfigPropertyMetadata);
|
|
6343
6104
|
return config;
|
|
6344
6105
|
}
|
|
6345
6106
|
function validateAdapterConfig$q(untrustedConfig, configPropertyNames) {
|
|
@@ -6538,14 +6299,14 @@ const getManagedContentVariantRendition_ConfigPropertyMetadata = [
|
|
|
6538
6299
|
generateParamConfigMetadata('version', false, 1 /* QueryParameter */, 0 /* String */),
|
|
6539
6300
|
];
|
|
6540
6301
|
const getManagedContentVariantRendition_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$p, getManagedContentVariantRendition_ConfigPropertyMetadata);
|
|
6541
|
-
const createResourceParams$p = /*#__PURE__*/ createResourceParams$
|
|
6302
|
+
const createResourceParams$p = /*#__PURE__*/ createResourceParams$I(getManagedContentVariantRendition_ConfigPropertyMetadata);
|
|
6542
6303
|
function keyBuilder$D(luvio, config) {
|
|
6543
6304
|
const resourceParams = createResourceParams$p(config);
|
|
6544
6305
|
return keyBuilder$E(luvio, resourceParams);
|
|
6545
6306
|
}
|
|
6546
6307
|
function typeCheckConfig$p(untrustedConfig) {
|
|
6547
6308
|
const config = {};
|
|
6548
|
-
typeCheckConfig$
|
|
6309
|
+
typeCheckConfig$I(untrustedConfig, config, getManagedContentVariantRendition_ConfigPropertyMetadata);
|
|
6549
6310
|
return config;
|
|
6550
6311
|
}
|
|
6551
6312
|
function validateAdapterConfig$p(untrustedConfig, configPropertyNames) {
|
|
@@ -6594,7 +6355,7 @@ function buildNetworkSnapshot$p(luvio, config, options) {
|
|
|
6594
6355
|
});
|
|
6595
6356
|
}
|
|
6596
6357
|
function buildNetworkSnapshotCachePolicy$g(context, coercedAdapterRequestContext) {
|
|
6597
|
-
return buildNetworkSnapshotCachePolicy$
|
|
6358
|
+
return buildNetworkSnapshotCachePolicy$p(context, coercedAdapterRequestContext, buildNetworkSnapshot$p, undefined, false);
|
|
6598
6359
|
}
|
|
6599
6360
|
function buildCachedSnapshotCachePolicy$g(context, storeLookup) {
|
|
6600
6361
|
const { luvio, config } = context;
|
|
@@ -7083,14 +6844,14 @@ const getManagedContentTaxonomyTerms_ConfigPropertyMetadata = [
|
|
|
7083
6844
|
generateParamConfigMetadata('contentKeyOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
7084
6845
|
];
|
|
7085
6846
|
const getManagedContentTaxonomyTerms_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$o, getManagedContentTaxonomyTerms_ConfigPropertyMetadata);
|
|
7086
|
-
const createResourceParams$o = /*#__PURE__*/ createResourceParams$
|
|
6847
|
+
const createResourceParams$o = /*#__PURE__*/ createResourceParams$I(getManagedContentTaxonomyTerms_ConfigPropertyMetadata);
|
|
7087
6848
|
function keyBuilder$z(luvio, config) {
|
|
7088
6849
|
const resourceParams = createResourceParams$o(config);
|
|
7089
6850
|
return keyBuilder$A(luvio, resourceParams);
|
|
7090
6851
|
}
|
|
7091
6852
|
function typeCheckConfig$o(untrustedConfig) {
|
|
7092
6853
|
const config = {};
|
|
7093
|
-
typeCheckConfig$
|
|
6854
|
+
typeCheckConfig$I(untrustedConfig, config, getManagedContentTaxonomyTerms_ConfigPropertyMetadata);
|
|
7094
6855
|
return config;
|
|
7095
6856
|
}
|
|
7096
6857
|
function validateAdapterConfig$o(untrustedConfig, configPropertyNames) {
|
|
@@ -7139,7 +6900,7 @@ function buildNetworkSnapshot$o(luvio, config, options) {
|
|
|
7139
6900
|
});
|
|
7140
6901
|
}
|
|
7141
6902
|
function buildNetworkSnapshotCachePolicy$f(context, coercedAdapterRequestContext) {
|
|
7142
|
-
return buildNetworkSnapshotCachePolicy$
|
|
6903
|
+
return buildNetworkSnapshotCachePolicy$p(context, coercedAdapterRequestContext, buildNetworkSnapshot$o, undefined, false);
|
|
7143
6904
|
}
|
|
7144
6905
|
function buildCachedSnapshotCachePolicy$f(context, storeLookup) {
|
|
7145
6906
|
const { luvio, config } = context;
|
|
@@ -7209,10 +6970,10 @@ const updateManagedContentTaxonomyTerms_ConfigPropertyMetadata = [
|
|
|
7209
6970
|
generateParamConfigMetadata('termsToRemove', true, 2 /* Body */, 0 /* String */, true),
|
|
7210
6971
|
];
|
|
7211
6972
|
const updateManagedContentTaxonomyTerms_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$n, updateManagedContentTaxonomyTerms_ConfigPropertyMetadata);
|
|
7212
|
-
const createResourceParams$n = /*#__PURE__*/ createResourceParams$
|
|
6973
|
+
const createResourceParams$n = /*#__PURE__*/ createResourceParams$I(updateManagedContentTaxonomyTerms_ConfigPropertyMetadata);
|
|
7213
6974
|
function typeCheckConfig$n(untrustedConfig) {
|
|
7214
6975
|
const config = {};
|
|
7215
|
-
typeCheckConfig$
|
|
6976
|
+
typeCheckConfig$I(untrustedConfig, config, updateManagedContentTaxonomyTerms_ConfigPropertyMetadata);
|
|
7216
6977
|
return config;
|
|
7217
6978
|
}
|
|
7218
6979
|
function validateAdapterConfig$n(untrustedConfig, configPropertyNames) {
|
|
@@ -7381,14 +7142,14 @@ const getWebUrls_ConfigPropertyMetadata = [
|
|
|
7381
7142
|
generateParamConfigMetadata('pageSize', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
7382
7143
|
];
|
|
7383
7144
|
const getWebUrls_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$m, getWebUrls_ConfigPropertyMetadata);
|
|
7384
|
-
const createResourceParams$m = /*#__PURE__*/ createResourceParams$
|
|
7145
|
+
const createResourceParams$m = /*#__PURE__*/ createResourceParams$I(getWebUrls_ConfigPropertyMetadata);
|
|
7385
7146
|
function keyBuilder$x(luvio, config) {
|
|
7386
7147
|
const resourceParams = createResourceParams$m(config);
|
|
7387
7148
|
return keyBuilder$y(luvio, resourceParams);
|
|
7388
7149
|
}
|
|
7389
7150
|
function typeCheckConfig$m(untrustedConfig) {
|
|
7390
7151
|
const config = {};
|
|
7391
|
-
typeCheckConfig$
|
|
7152
|
+
typeCheckConfig$I(untrustedConfig, config, getWebUrls_ConfigPropertyMetadata);
|
|
7392
7153
|
return config;
|
|
7393
7154
|
}
|
|
7394
7155
|
function validateAdapterConfig$m(untrustedConfig, configPropertyNames) {
|
|
@@ -7437,7 +7198,7 @@ function buildNetworkSnapshot$m(luvio, config, options) {
|
|
|
7437
7198
|
});
|
|
7438
7199
|
}
|
|
7439
7200
|
function buildNetworkSnapshotCachePolicy$e(context, coercedAdapterRequestContext) {
|
|
7440
|
-
return buildNetworkSnapshotCachePolicy$
|
|
7201
|
+
return buildNetworkSnapshotCachePolicy$p(context, coercedAdapterRequestContext, buildNetworkSnapshot$m, undefined, false);
|
|
7441
7202
|
}
|
|
7442
7203
|
function buildCachedSnapshotCachePolicy$e(context, storeLookup) {
|
|
7443
7204
|
const { luvio, config } = context;
|
|
@@ -7472,7 +7233,7 @@ function validate$t(obj, path = 'AbstractManagedContentReferencedByItemRepresent
|
|
|
7472
7233
|
const path_contentType = path + '.contentType';
|
|
7473
7234
|
let obj_contentType_union0 = null;
|
|
7474
7235
|
const obj_contentType_union0_error = (() => {
|
|
7475
|
-
const referencepath_contentTypeValidationError = validate$
|
|
7236
|
+
const referencepath_contentTypeValidationError = validate$1a(obj_contentType, path_contentType);
|
|
7476
7237
|
if (referencepath_contentTypeValidationError !== null) {
|
|
7477
7238
|
let message = 'Object doesn\'t match ManagedContentTypeSummaryRepresentation (at "' + path_contentType + '")\n';
|
|
7478
7239
|
message += referencepath_contentTypeValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -7735,14 +7496,14 @@ const getManagedContentReferencedBy_ConfigPropertyMetadata = [
|
|
|
7735
7496
|
generateParamConfigMetadata('referenceType', false, 1 /* QueryParameter */, 0 /* String */),
|
|
7736
7497
|
];
|
|
7737
7498
|
const getManagedContentReferencedBy_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$l, getManagedContentReferencedBy_ConfigPropertyMetadata);
|
|
7738
|
-
const createResourceParams$l = /*#__PURE__*/ createResourceParams$
|
|
7499
|
+
const createResourceParams$l = /*#__PURE__*/ createResourceParams$I(getManagedContentReferencedBy_ConfigPropertyMetadata);
|
|
7739
7500
|
function keyBuilder$v(luvio, config) {
|
|
7740
7501
|
const resourceParams = createResourceParams$l(config);
|
|
7741
7502
|
return keyBuilder$w(luvio, resourceParams);
|
|
7742
7503
|
}
|
|
7743
7504
|
function typeCheckConfig$l(untrustedConfig) {
|
|
7744
7505
|
const config = {};
|
|
7745
|
-
typeCheckConfig$
|
|
7506
|
+
typeCheckConfig$I(untrustedConfig, config, getManagedContentReferencedBy_ConfigPropertyMetadata);
|
|
7746
7507
|
return config;
|
|
7747
7508
|
}
|
|
7748
7509
|
function validateAdapterConfig$l(untrustedConfig, configPropertyNames) {
|
|
@@ -7791,7 +7552,7 @@ function buildNetworkSnapshot$l(luvio, config, options) {
|
|
|
7791
7552
|
});
|
|
7792
7553
|
}
|
|
7793
7554
|
function buildNetworkSnapshotCachePolicy$d(context, coercedAdapterRequestContext) {
|
|
7794
|
-
return buildNetworkSnapshotCachePolicy$
|
|
7555
|
+
return buildNetworkSnapshotCachePolicy$p(context, coercedAdapterRequestContext, buildNetworkSnapshot$l, undefined, false);
|
|
7795
7556
|
}
|
|
7796
7557
|
function buildCachedSnapshotCachePolicy$d(context, storeLookup) {
|
|
7797
7558
|
const { luvio, config } = context;
|
|
@@ -7852,7 +7613,7 @@ function validate$q(obj, path = 'ManagedContentVariantReferenceDetailsRepresenta
|
|
|
7852
7613
|
}
|
|
7853
7614
|
const obj_contentType = obj.contentType;
|
|
7854
7615
|
const path_contentType = path + '.contentType';
|
|
7855
|
-
const referencepath_contentTypeValidationError = validate$
|
|
7616
|
+
const referencepath_contentTypeValidationError = validate$1a(obj_contentType, path_contentType);
|
|
7856
7617
|
if (referencepath_contentTypeValidationError !== null) {
|
|
7857
7618
|
let message = 'Object doesn\'t match ManagedContentTypeSummaryRepresentation (at "' + path_contentType + '")\n';
|
|
7858
7619
|
message += referencepath_contentTypeValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -7860,7 +7621,7 @@ function validate$q(obj, path = 'ManagedContentVariantReferenceDetailsRepresenta
|
|
|
7860
7621
|
}
|
|
7861
7622
|
const obj_createdBy = obj.createdBy;
|
|
7862
7623
|
const path_createdBy = path + '.createdBy';
|
|
7863
|
-
const referencepath_createdByValidationError = validate$
|
|
7624
|
+
const referencepath_createdByValidationError = validate$17(obj_createdBy, path_createdBy);
|
|
7864
7625
|
if (referencepath_createdByValidationError !== null) {
|
|
7865
7626
|
let message = 'Object doesn\'t match ManagedContentUserSummaryRepresentation (at "' + path_createdBy + '")\n';
|
|
7866
7627
|
message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -7886,7 +7647,7 @@ function validate$q(obj, path = 'ManagedContentVariantReferenceDetailsRepresenta
|
|
|
7886
7647
|
}
|
|
7887
7648
|
const obj_lastModifiedBy = obj.lastModifiedBy;
|
|
7888
7649
|
const path_lastModifiedBy = path + '.lastModifiedBy';
|
|
7889
|
-
const referencepath_lastModifiedByValidationError = validate$
|
|
7650
|
+
const referencepath_lastModifiedByValidationError = validate$17(obj_lastModifiedBy, path_lastModifiedBy);
|
|
7890
7651
|
if (referencepath_lastModifiedByValidationError !== null) {
|
|
7891
7652
|
let message = 'Object doesn\'t match ManagedContentUserSummaryRepresentation (at "' + path_lastModifiedBy + '")\n';
|
|
7892
7653
|
message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -7919,7 +7680,7 @@ function validate$q(obj, path = 'ManagedContentVariantReferenceDetailsRepresenta
|
|
|
7919
7680
|
}
|
|
7920
7681
|
const obj_status = obj.status;
|
|
7921
7682
|
const path_status = path + '.status';
|
|
7922
|
-
const referencepath_statusValidationError = validate$
|
|
7683
|
+
const referencepath_statusValidationError = validate$R(obj_status, path_status);
|
|
7923
7684
|
if (referencepath_statusValidationError !== null) {
|
|
7924
7685
|
let message = 'Object doesn\'t match ManagedContentVariantStatusRepresentation (at "' + path_status + '")\n';
|
|
7925
7686
|
message += referencepath_statusValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -8066,14 +7827,14 @@ const getManagedContentVariantReferences_ConfigPropertyMetadata = [
|
|
|
8066
7827
|
generateParamConfigMetadata('variantIds', false, 1 /* QueryParameter */, 0 /* String */, true),
|
|
8067
7828
|
];
|
|
8068
7829
|
const getManagedContentVariantReferences_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$k, getManagedContentVariantReferences_ConfigPropertyMetadata);
|
|
8069
|
-
const createResourceParams$k = /*#__PURE__*/ createResourceParams$
|
|
7830
|
+
const createResourceParams$k = /*#__PURE__*/ createResourceParams$I(getManagedContentVariantReferences_ConfigPropertyMetadata);
|
|
8070
7831
|
function keyBuilder$t(luvio, config) {
|
|
8071
7832
|
const resourceParams = createResourceParams$k(config);
|
|
8072
7833
|
return keyBuilder$u(luvio, resourceParams);
|
|
8073
7834
|
}
|
|
8074
7835
|
function typeCheckConfig$k(untrustedConfig) {
|
|
8075
7836
|
const config = {};
|
|
8076
|
-
typeCheckConfig$
|
|
7837
|
+
typeCheckConfig$I(untrustedConfig, config, getManagedContentVariantReferences_ConfigPropertyMetadata);
|
|
8077
7838
|
return config;
|
|
8078
7839
|
}
|
|
8079
7840
|
function validateAdapterConfig$k(untrustedConfig, configPropertyNames) {
|
|
@@ -8122,7 +7883,7 @@ function buildNetworkSnapshot$k(luvio, config, options) {
|
|
|
8122
7883
|
});
|
|
8123
7884
|
}
|
|
8124
7885
|
function buildNetworkSnapshotCachePolicy$c(context, coercedAdapterRequestContext) {
|
|
8125
|
-
return buildNetworkSnapshotCachePolicy$
|
|
7886
|
+
return buildNetworkSnapshotCachePolicy$p(context, coercedAdapterRequestContext, buildNetworkSnapshot$k, undefined, false);
|
|
8126
7887
|
}
|
|
8127
7888
|
function buildCachedSnapshotCachePolicy$c(context, storeLookup) {
|
|
8128
7889
|
const { luvio, config } = context;
|
|
@@ -8285,10 +8046,10 @@ const postManagedContentSpaceFolder_ConfigPropertyMetadata = [
|
|
|
8285
8046
|
generateParamConfigMetadata('parentFolderId', true, 2 /* Body */, 0 /* String */),
|
|
8286
8047
|
];
|
|
8287
8048
|
const postManagedContentSpaceFolder_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$j, postManagedContentSpaceFolder_ConfigPropertyMetadata);
|
|
8288
|
-
const createResourceParams$j = /*#__PURE__*/ createResourceParams$
|
|
8049
|
+
const createResourceParams$j = /*#__PURE__*/ createResourceParams$I(postManagedContentSpaceFolder_ConfigPropertyMetadata);
|
|
8289
8050
|
function typeCheckConfig$j(untrustedConfig) {
|
|
8290
8051
|
const config = {};
|
|
8291
|
-
typeCheckConfig$
|
|
8052
|
+
typeCheckConfig$I(untrustedConfig, config, postManagedContentSpaceFolder_ConfigPropertyMetadata);
|
|
8292
8053
|
return config;
|
|
8293
8054
|
}
|
|
8294
8055
|
function validateAdapterConfig$j(untrustedConfig, configPropertyNames) {
|
|
@@ -8481,14 +8242,14 @@ const getManagedContentSpaceFolder_ConfigPropertyMetadata = [
|
|
|
8481
8242
|
generateParamConfigMetadata('contextContentSpaceId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
8482
8243
|
];
|
|
8483
8244
|
const getManagedContentSpaceFolder_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$i, getManagedContentSpaceFolder_ConfigPropertyMetadata);
|
|
8484
|
-
const createResourceParams$i = /*#__PURE__*/ createResourceParams$
|
|
8245
|
+
const createResourceParams$i = /*#__PURE__*/ createResourceParams$I(getManagedContentSpaceFolder_ConfigPropertyMetadata);
|
|
8485
8246
|
function keyBuilder$q(luvio, config) {
|
|
8486
8247
|
const resourceParams = createResourceParams$i(config);
|
|
8487
8248
|
return keyBuilder$r(luvio, resourceParams);
|
|
8488
8249
|
}
|
|
8489
8250
|
function typeCheckConfig$i(untrustedConfig) {
|
|
8490
8251
|
const config = {};
|
|
8491
|
-
typeCheckConfig$
|
|
8252
|
+
typeCheckConfig$I(untrustedConfig, config, getManagedContentSpaceFolder_ConfigPropertyMetadata);
|
|
8492
8253
|
return config;
|
|
8493
8254
|
}
|
|
8494
8255
|
function validateAdapterConfig$i(untrustedConfig, configPropertyNames) {
|
|
@@ -8537,7 +8298,7 @@ function buildNetworkSnapshot$i(luvio, config, options) {
|
|
|
8537
8298
|
});
|
|
8538
8299
|
}
|
|
8539
8300
|
function buildNetworkSnapshotCachePolicy$b(context, coercedAdapterRequestContext) {
|
|
8540
|
-
return buildNetworkSnapshotCachePolicy$
|
|
8301
|
+
return buildNetworkSnapshotCachePolicy$p(context, coercedAdapterRequestContext, buildNetworkSnapshot$i, undefined, false);
|
|
8541
8302
|
}
|
|
8542
8303
|
function buildCachedSnapshotCachePolicy$b(context, storeLookup) {
|
|
8543
8304
|
const { luvio, config } = context;
|
|
@@ -8577,7 +8338,7 @@ function validate$m(obj, path = 'ManagedContentSpaceFolderItemRepresentation') {
|
|
|
8577
8338
|
if (obj.contentType !== undefined) {
|
|
8578
8339
|
const obj_contentType = obj.contentType;
|
|
8579
8340
|
const path_contentType = path + '.contentType';
|
|
8580
|
-
const referencepath_contentTypeValidationError = validate$
|
|
8341
|
+
const referencepath_contentTypeValidationError = validate$1a(obj_contentType, path_contentType);
|
|
8581
8342
|
if (referencepath_contentTypeValidationError !== null) {
|
|
8582
8343
|
let message = 'Object doesn\'t match ManagedContentTypeSummaryRepresentation (at "' + path_contentType + '")\n';
|
|
8583
8344
|
message += referencepath_contentTypeValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -8846,14 +8607,14 @@ const getManagedContentByFolderId_ConfigPropertyMetadata = [
|
|
|
8846
8607
|
generateParamConfigMetadata('showSharedWithSpaceFolder', false, 1 /* QueryParameter */, 1 /* Boolean */),
|
|
8847
8608
|
];
|
|
8848
8609
|
const getManagedContentByFolderId_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$h, getManagedContentByFolderId_ConfigPropertyMetadata);
|
|
8849
|
-
const createResourceParams$h = /*#__PURE__*/ createResourceParams$
|
|
8610
|
+
const createResourceParams$h = /*#__PURE__*/ createResourceParams$I(getManagedContentByFolderId_ConfigPropertyMetadata);
|
|
8850
8611
|
function keyBuilder$o(luvio, config) {
|
|
8851
8612
|
const resourceParams = createResourceParams$h(config);
|
|
8852
8613
|
return keyBuilder$p(luvio, resourceParams);
|
|
8853
8614
|
}
|
|
8854
8615
|
function typeCheckConfig$h(untrustedConfig) {
|
|
8855
8616
|
const config = {};
|
|
8856
|
-
typeCheckConfig$
|
|
8617
|
+
typeCheckConfig$I(untrustedConfig, config, getManagedContentByFolderId_ConfigPropertyMetadata);
|
|
8857
8618
|
return config;
|
|
8858
8619
|
}
|
|
8859
8620
|
function validateAdapterConfig$h(untrustedConfig, configPropertyNames) {
|
|
@@ -8902,7 +8663,7 @@ function buildNetworkSnapshot$h(luvio, config, options) {
|
|
|
8902
8663
|
});
|
|
8903
8664
|
}
|
|
8904
8665
|
function buildNetworkSnapshotCachePolicy$a(context, coercedAdapterRequestContext) {
|
|
8905
|
-
return buildNetworkSnapshotCachePolicy$
|
|
8666
|
+
return buildNetworkSnapshotCachePolicy$p(context, coercedAdapterRequestContext, buildNetworkSnapshot$h, undefined, false);
|
|
8906
8667
|
}
|
|
8907
8668
|
function buildCachedSnapshotCachePolicy$a(context, storeLookup) {
|
|
8908
8669
|
const { luvio, config } = context;
|
|
@@ -9073,14 +8834,14 @@ const getMCSFolderShareTargets_ConfigPropertyMetadata = [
|
|
|
9073
8834
|
generateParamConfigMetadata('folderId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
9074
8835
|
];
|
|
9075
8836
|
const getMCSFolderShareTargets_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$g, getMCSFolderShareTargets_ConfigPropertyMetadata);
|
|
9076
|
-
const createResourceParams$g = /*#__PURE__*/ createResourceParams$
|
|
8837
|
+
const createResourceParams$g = /*#__PURE__*/ createResourceParams$I(getMCSFolderShareTargets_ConfigPropertyMetadata);
|
|
9077
8838
|
function keyBuilder$m(luvio, config) {
|
|
9078
8839
|
const resourceParams = createResourceParams$g(config);
|
|
9079
8840
|
return keyBuilder$n(luvio, resourceParams);
|
|
9080
8841
|
}
|
|
9081
8842
|
function typeCheckConfig$g(untrustedConfig) {
|
|
9082
8843
|
const config = {};
|
|
9083
|
-
typeCheckConfig$
|
|
8844
|
+
typeCheckConfig$I(untrustedConfig, config, getMCSFolderShareTargets_ConfigPropertyMetadata);
|
|
9084
8845
|
return config;
|
|
9085
8846
|
}
|
|
9086
8847
|
function validateAdapterConfig$g(untrustedConfig, configPropertyNames) {
|
|
@@ -9129,7 +8890,7 @@ function buildNetworkSnapshot$g(luvio, config, options) {
|
|
|
9129
8890
|
});
|
|
9130
8891
|
}
|
|
9131
8892
|
function buildNetworkSnapshotCachePolicy$9(context, coercedAdapterRequestContext) {
|
|
9132
|
-
return buildNetworkSnapshotCachePolicy$
|
|
8893
|
+
return buildNetworkSnapshotCachePolicy$p(context, coercedAdapterRequestContext, buildNetworkSnapshot$g, undefined, false);
|
|
9133
8894
|
}
|
|
9134
8895
|
function buildCachedSnapshotCachePolicy$9(context, storeLookup) {
|
|
9135
8896
|
const { luvio, config } = context;
|
|
@@ -9318,14 +9079,14 @@ const getMCSFolderShares_ConfigPropertyMetadata = [
|
|
|
9318
9079
|
generateParamConfigMetadata('folderId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
9319
9080
|
];
|
|
9320
9081
|
const getMCSFolderShares_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$f, getMCSFolderShares_ConfigPropertyMetadata);
|
|
9321
|
-
const createResourceParams$f = /*#__PURE__*/ createResourceParams$
|
|
9082
|
+
const createResourceParams$f = /*#__PURE__*/ createResourceParams$I(getMCSFolderShares_ConfigPropertyMetadata);
|
|
9322
9083
|
function keyBuilder$j(luvio, config) {
|
|
9323
9084
|
const resourceParams = createResourceParams$f(config);
|
|
9324
9085
|
return keyBuilder$k(luvio, resourceParams);
|
|
9325
9086
|
}
|
|
9326
9087
|
function typeCheckConfig$f(untrustedConfig) {
|
|
9327
9088
|
const config = {};
|
|
9328
|
-
typeCheckConfig$
|
|
9089
|
+
typeCheckConfig$I(untrustedConfig, config, getMCSFolderShares_ConfigPropertyMetadata);
|
|
9329
9090
|
return config;
|
|
9330
9091
|
}
|
|
9331
9092
|
function validateAdapterConfig$f(untrustedConfig, configPropertyNames) {
|
|
@@ -9374,7 +9135,7 @@ function buildNetworkSnapshot$f(luvio, config, options) {
|
|
|
9374
9135
|
});
|
|
9375
9136
|
}
|
|
9376
9137
|
function buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext) {
|
|
9377
|
-
return buildNetworkSnapshotCachePolicy$
|
|
9138
|
+
return buildNetworkSnapshotCachePolicy$p(context, coercedAdapterRequestContext, buildNetworkSnapshot$f, undefined, false);
|
|
9378
9139
|
}
|
|
9379
9140
|
function buildCachedSnapshotCachePolicy$8(context, storeLookup) {
|
|
9380
9141
|
const { luvio, config } = context;
|
|
@@ -9457,10 +9218,10 @@ const updateMCSFolderShares_ConfigPropertyMetadata = [
|
|
|
9457
9218
|
generateParamConfigMetadata('unshareWith', true, 2 /* Body */, 0 /* String */, true),
|
|
9458
9219
|
];
|
|
9459
9220
|
const updateMCSFolderShares_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$e, updateMCSFolderShares_ConfigPropertyMetadata);
|
|
9460
|
-
const createResourceParams$e = /*#__PURE__*/ createResourceParams$
|
|
9221
|
+
const createResourceParams$e = /*#__PURE__*/ createResourceParams$I(updateMCSFolderShares_ConfigPropertyMetadata);
|
|
9461
9222
|
function typeCheckConfig$e(untrustedConfig) {
|
|
9462
9223
|
const config = {};
|
|
9463
|
-
typeCheckConfig$
|
|
9224
|
+
typeCheckConfig$I(untrustedConfig, config, updateMCSFolderShares_ConfigPropertyMetadata);
|
|
9464
9225
|
const untrustedConfig_shareWith = untrustedConfig.shareWith;
|
|
9465
9226
|
if (ArrayIsArray$1(untrustedConfig_shareWith)) {
|
|
9466
9227
|
const untrustedConfig_shareWith_array = [];
|
|
@@ -9524,7 +9285,7 @@ function validate$f(obj, path = 'AbstractManagedContentSearchResultRepresentatio
|
|
|
9524
9285
|
}
|
|
9525
9286
|
const obj_createdBy = obj.createdBy;
|
|
9526
9287
|
const path_createdBy = path + '.createdBy';
|
|
9527
|
-
const referencepath_createdByValidationError = validate$
|
|
9288
|
+
const referencepath_createdByValidationError = validate$17(obj_createdBy, path_createdBy);
|
|
9528
9289
|
if (referencepath_createdByValidationError !== null) {
|
|
9529
9290
|
let message = 'Object doesn\'t match ManagedContentUserSummaryRepresentation (at "' + path_createdBy + '")\n';
|
|
9530
9291
|
message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -9537,7 +9298,7 @@ function validate$f(obj, path = 'AbstractManagedContentSearchResultRepresentatio
|
|
|
9537
9298
|
}
|
|
9538
9299
|
const obj_folder = obj.folder;
|
|
9539
9300
|
const path_folder = path + '.folder';
|
|
9540
|
-
const referencepath_folderValidationError = validate$
|
|
9301
|
+
const referencepath_folderValidationError = validate$S(obj_folder, path_folder);
|
|
9541
9302
|
if (referencepath_folderValidationError !== null) {
|
|
9542
9303
|
let message = 'Object doesn\'t match ManagedContentFolderSummaryRepresentation (at "' + path_folder + '")\n';
|
|
9543
9304
|
message += referencepath_folderValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -9550,7 +9311,7 @@ function validate$f(obj, path = 'AbstractManagedContentSearchResultRepresentatio
|
|
|
9550
9311
|
}
|
|
9551
9312
|
const obj_lastModifiedBy = obj.lastModifiedBy;
|
|
9552
9313
|
const path_lastModifiedBy = path + '.lastModifiedBy';
|
|
9553
|
-
const referencepath_lastModifiedByValidationError = validate$
|
|
9314
|
+
const referencepath_lastModifiedByValidationError = validate$17(obj_lastModifiedBy, path_lastModifiedBy);
|
|
9554
9315
|
if (referencepath_lastModifiedByValidationError !== null) {
|
|
9555
9316
|
let message = 'Object doesn\'t match ManagedContentUserSummaryRepresentation (at "' + path_lastModifiedBy + '")\n';
|
|
9556
9317
|
message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -9718,14 +9479,14 @@ const getSearchResults_ConfigPropertyMetadata = [
|
|
|
9718
9479
|
generateParamConfigMetadata('scope', false, 1 /* QueryParameter */, 0 /* String */),
|
|
9719
9480
|
];
|
|
9720
9481
|
const getSearchResults_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$d, getSearchResults_ConfigPropertyMetadata);
|
|
9721
|
-
const createResourceParams$d = /*#__PURE__*/ createResourceParams$
|
|
9482
|
+
const createResourceParams$d = /*#__PURE__*/ createResourceParams$I(getSearchResults_ConfigPropertyMetadata);
|
|
9722
9483
|
function keyBuilder$h(luvio, config) {
|
|
9723
9484
|
const resourceParams = createResourceParams$d(config);
|
|
9724
9485
|
return keyBuilder$i(luvio, resourceParams);
|
|
9725
9486
|
}
|
|
9726
9487
|
function typeCheckConfig$d(untrustedConfig) {
|
|
9727
9488
|
const config = {};
|
|
9728
|
-
typeCheckConfig$
|
|
9489
|
+
typeCheckConfig$I(untrustedConfig, config, getSearchResults_ConfigPropertyMetadata);
|
|
9729
9490
|
return config;
|
|
9730
9491
|
}
|
|
9731
9492
|
function validateAdapterConfig$d(untrustedConfig, configPropertyNames) {
|
|
@@ -9774,7 +9535,7 @@ function buildNetworkSnapshot$d(luvio, config, options) {
|
|
|
9774
9535
|
});
|
|
9775
9536
|
}
|
|
9776
9537
|
function buildNetworkSnapshotCachePolicy$7(context, coercedAdapterRequestContext) {
|
|
9777
|
-
return buildNetworkSnapshotCachePolicy$
|
|
9538
|
+
return buildNetworkSnapshotCachePolicy$p(context, coercedAdapterRequestContext, buildNetworkSnapshot$d, undefined, false);
|
|
9778
9539
|
}
|
|
9779
9540
|
function buildCachedSnapshotCachePolicy$7(context, storeLookup) {
|
|
9780
9541
|
const { luvio, config } = context;
|
|
@@ -9800,15 +9561,15 @@ const getSearchResultsAdapterFactory = (luvio) => function CMSAuthoring__getSear
|
|
|
9800
9561
|
};
|
|
9801
9562
|
|
|
9802
9563
|
function select$k(luvio, params) {
|
|
9803
|
-
return select$
|
|
9564
|
+
return select$1f();
|
|
9804
9565
|
}
|
|
9805
9566
|
function getResponseCacheKeys$c(storeKeyMap, luvio, resourceParams, response) {
|
|
9806
|
-
getTypeCacheKeys$
|
|
9567
|
+
getTypeCacheKeys$x(storeKeyMap, luvio, response);
|
|
9807
9568
|
}
|
|
9808
9569
|
function ingestSuccess$c(luvio, resourceParams, response) {
|
|
9809
9570
|
const { body } = response;
|
|
9810
9571
|
const key = keyBuilderFromType$h(luvio, body);
|
|
9811
|
-
luvio.storeIngest(key, ingest$
|
|
9572
|
+
luvio.storeIngest(key, ingest$x, body);
|
|
9812
9573
|
const snapshot = luvio.storeLookup({
|
|
9813
9574
|
recordId: key,
|
|
9814
9575
|
node: select$k(),
|
|
@@ -9849,10 +9610,10 @@ const createSchedule_ConfigPropertyMetadata = [
|
|
|
9849
9610
|
generateParamConfigMetadata('versionIds', false, 2 /* Body */, 0 /* String */, true),
|
|
9850
9611
|
];
|
|
9851
9612
|
const createSchedule_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$c, createSchedule_ConfigPropertyMetadata);
|
|
9852
|
-
const createResourceParams$c = /*#__PURE__*/ createResourceParams$
|
|
9613
|
+
const createResourceParams$c = /*#__PURE__*/ createResourceParams$I(createSchedule_ConfigPropertyMetadata);
|
|
9853
9614
|
function typeCheckConfig$c(untrustedConfig) {
|
|
9854
9615
|
const config = {};
|
|
9855
|
-
typeCheckConfig$
|
|
9616
|
+
typeCheckConfig$I(untrustedConfig, config, createSchedule_ConfigPropertyMetadata);
|
|
9856
9617
|
return config;
|
|
9857
9618
|
}
|
|
9858
9619
|
function validateAdapterConfig$c(untrustedConfig, configPropertyNames) {
|
|
@@ -9898,15 +9659,15 @@ const createScheduleAdapterFactory = (luvio) => {
|
|
|
9898
9659
|
};
|
|
9899
9660
|
|
|
9900
9661
|
function select$j(luvio, params) {
|
|
9901
|
-
return select$
|
|
9662
|
+
return select$1f();
|
|
9902
9663
|
}
|
|
9903
9664
|
function getResponseCacheKeys$b(storeKeyMap, luvio, resourceParams, response) {
|
|
9904
|
-
getTypeCacheKeys$
|
|
9665
|
+
getTypeCacheKeys$x(storeKeyMap, luvio, response);
|
|
9905
9666
|
}
|
|
9906
9667
|
function ingestSuccess$b(luvio, resourceParams, response) {
|
|
9907
9668
|
const { body } = response;
|
|
9908
9669
|
const key = keyBuilderFromType$h(luvio, body);
|
|
9909
|
-
luvio.storeIngest(key, ingest$
|
|
9670
|
+
luvio.storeIngest(key, ingest$x, body);
|
|
9910
9671
|
const snapshot = luvio.storeLookup({
|
|
9911
9672
|
recordId: key,
|
|
9912
9673
|
node: select$j(),
|
|
@@ -9941,10 +9702,10 @@ const updateDeployment_ConfigPropertyMetadata = [
|
|
|
9941
9702
|
generateParamConfigMetadata('scheduleDate', false, 1 /* QueryParameter */, 0 /* String */),
|
|
9942
9703
|
];
|
|
9943
9704
|
const updateDeployment_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$b, updateDeployment_ConfigPropertyMetadata);
|
|
9944
|
-
const createResourceParams$b = /*#__PURE__*/ createResourceParams$
|
|
9705
|
+
const createResourceParams$b = /*#__PURE__*/ createResourceParams$I(updateDeployment_ConfigPropertyMetadata);
|
|
9945
9706
|
function typeCheckConfig$b(untrustedConfig) {
|
|
9946
9707
|
const config = {};
|
|
9947
|
-
typeCheckConfig$
|
|
9708
|
+
typeCheckConfig$I(untrustedConfig, config, updateDeployment_ConfigPropertyMetadata);
|
|
9948
9709
|
return config;
|
|
9949
9710
|
}
|
|
9950
9711
|
function validateAdapterConfig$b(untrustedConfig, configPropertyNames) {
|
|
@@ -10351,14 +10112,14 @@ const getManagedContentSpaces_ConfigPropertyMetadata = [
|
|
|
10351
10112
|
generateParamConfigMetadata('nameFragment', false, 1 /* QueryParameter */, 0 /* String */),
|
|
10352
10113
|
];
|
|
10353
10114
|
const getManagedContentSpaces_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$a, getManagedContentSpaces_ConfigPropertyMetadata);
|
|
10354
|
-
const createResourceParams$a = /*#__PURE__*/ createResourceParams$
|
|
10115
|
+
const createResourceParams$a = /*#__PURE__*/ createResourceParams$I(getManagedContentSpaces_ConfigPropertyMetadata);
|
|
10355
10116
|
function keyBuilder$e(luvio, config) {
|
|
10356
10117
|
const resourceParams = createResourceParams$a(config);
|
|
10357
10118
|
return keyBuilder$f(luvio, resourceParams);
|
|
10358
10119
|
}
|
|
10359
10120
|
function typeCheckConfig$a(untrustedConfig) {
|
|
10360
10121
|
const config = {};
|
|
10361
|
-
typeCheckConfig$
|
|
10122
|
+
typeCheckConfig$I(untrustedConfig, config, getManagedContentSpaces_ConfigPropertyMetadata);
|
|
10362
10123
|
return config;
|
|
10363
10124
|
}
|
|
10364
10125
|
function validateAdapterConfig$a(untrustedConfig, configPropertyNames) {
|
|
@@ -10407,7 +10168,7 @@ function buildNetworkSnapshot$a(luvio, config, options) {
|
|
|
10407
10168
|
});
|
|
10408
10169
|
}
|
|
10409
10170
|
function buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext) {
|
|
10410
|
-
return buildNetworkSnapshotCachePolicy$
|
|
10171
|
+
return buildNetworkSnapshotCachePolicy$p(context, coercedAdapterRequestContext, buildNetworkSnapshot$a, undefined, false);
|
|
10411
10172
|
}
|
|
10412
10173
|
function buildCachedSnapshotCachePolicy$6(context, storeLookup) {
|
|
10413
10174
|
const { luvio, config } = context;
|
|
@@ -10491,14 +10252,14 @@ const getManagedContentSpace_ConfigPropertyMetadata = [
|
|
|
10491
10252
|
generateParamConfigMetadata('contentSpaceId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
10492
10253
|
];
|
|
10493
10254
|
const getManagedContentSpace_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$9, getManagedContentSpace_ConfigPropertyMetadata);
|
|
10494
|
-
const createResourceParams$9 = /*#__PURE__*/ createResourceParams$
|
|
10255
|
+
const createResourceParams$9 = /*#__PURE__*/ createResourceParams$I(getManagedContentSpace_ConfigPropertyMetadata);
|
|
10495
10256
|
function keyBuilder$c(luvio, config) {
|
|
10496
10257
|
const resourceParams = createResourceParams$9(config);
|
|
10497
10258
|
return keyBuilder$d(luvio, resourceParams);
|
|
10498
10259
|
}
|
|
10499
10260
|
function typeCheckConfig$9(untrustedConfig) {
|
|
10500
10261
|
const config = {};
|
|
10501
|
-
typeCheckConfig$
|
|
10262
|
+
typeCheckConfig$I(untrustedConfig, config, getManagedContentSpace_ConfigPropertyMetadata);
|
|
10502
10263
|
return config;
|
|
10503
10264
|
}
|
|
10504
10265
|
function validateAdapterConfig$9(untrustedConfig, configPropertyNames) {
|
|
@@ -10547,7 +10308,7 @@ function buildNetworkSnapshot$9(luvio, config, options) {
|
|
|
10547
10308
|
});
|
|
10548
10309
|
}
|
|
10549
10310
|
function buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext) {
|
|
10550
|
-
return buildNetworkSnapshotCachePolicy$
|
|
10311
|
+
return buildNetworkSnapshotCachePolicy$p(context, coercedAdapterRequestContext, buildNetworkSnapshot$9, undefined, false);
|
|
10551
10312
|
}
|
|
10552
10313
|
function buildCachedSnapshotCachePolicy$5(context, storeLookup) {
|
|
10553
10314
|
const { luvio, config } = context;
|
|
@@ -10708,10 +10469,10 @@ const patchManagedContentSpace_ConfigPropertyMetadata = [
|
|
|
10708
10469
|
generateParamConfigMetadata('ManagedContentSpaceInput', true, 2 /* Body */, 4 /* Unsupported */),
|
|
10709
10470
|
];
|
|
10710
10471
|
const patchManagedContentSpace_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$8, patchManagedContentSpace_ConfigPropertyMetadata);
|
|
10711
|
-
const createResourceParams$8 = /*#__PURE__*/ createResourceParams$
|
|
10472
|
+
const createResourceParams$8 = /*#__PURE__*/ createResourceParams$I(patchManagedContentSpace_ConfigPropertyMetadata);
|
|
10712
10473
|
function typeCheckConfig$8(untrustedConfig) {
|
|
10713
10474
|
const config = {};
|
|
10714
|
-
typeCheckConfig$
|
|
10475
|
+
typeCheckConfig$I(untrustedConfig, config, patchManagedContentSpace_ConfigPropertyMetadata);
|
|
10715
10476
|
const untrustedConfig_ManagedContentSpaceInput = untrustedConfig.ManagedContentSpaceInput;
|
|
10716
10477
|
const referenceManagedContentSpaceInputRepresentationValidationError = validate$a(untrustedConfig_ManagedContentSpaceInput);
|
|
10717
10478
|
if (referenceManagedContentSpaceInputRepresentationValidationError === null) {
|
|
@@ -10817,7 +10578,7 @@ function validate$9(obj, path = 'ManagedContentSingleItemDocumentRepresentation'
|
|
|
10817
10578
|
}
|
|
10818
10579
|
const obj_contentSpace = obj.contentSpace;
|
|
10819
10580
|
const path_contentSpace = path + '.contentSpace';
|
|
10820
|
-
const referencepath_contentSpaceValidationError = validate$
|
|
10581
|
+
const referencepath_contentSpaceValidationError = validate$T(obj_contentSpace, path_contentSpace);
|
|
10821
10582
|
if (referencepath_contentSpaceValidationError !== null) {
|
|
10822
10583
|
let message = 'Object doesn\'t match ManagedContentSpaceSummaryRepresentation (at "' + path_contentSpace + '")\n';
|
|
10823
10584
|
message += referencepath_contentSpaceValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -10825,7 +10586,7 @@ function validate$9(obj, path = 'ManagedContentSingleItemDocumentRepresentation'
|
|
|
10825
10586
|
}
|
|
10826
10587
|
const obj_contentType = obj.contentType;
|
|
10827
10588
|
const path_contentType = path + '.contentType';
|
|
10828
|
-
const referencepath_contentTypeValidationError = validate$
|
|
10589
|
+
const referencepath_contentTypeValidationError = validate$1a(obj_contentType, path_contentType);
|
|
10829
10590
|
if (referencepath_contentTypeValidationError !== null) {
|
|
10830
10591
|
let message = 'Object doesn\'t match ManagedContentTypeSummaryRepresentation (at "' + path_contentType + '")\n';
|
|
10831
10592
|
message += referencepath_contentTypeValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -10833,7 +10594,7 @@ function validate$9(obj, path = 'ManagedContentSingleItemDocumentRepresentation'
|
|
|
10833
10594
|
}
|
|
10834
10595
|
const obj_createdBy = obj.createdBy;
|
|
10835
10596
|
const path_createdBy = path + '.createdBy';
|
|
10836
|
-
const referencepath_createdByValidationError = validate$
|
|
10597
|
+
const referencepath_createdByValidationError = validate$17(obj_createdBy, path_createdBy);
|
|
10837
10598
|
if (referencepath_createdByValidationError !== null) {
|
|
10838
10599
|
let message = 'Object doesn\'t match ManagedContentUserSummaryRepresentation (at "' + path_createdBy + '")\n';
|
|
10839
10600
|
message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -10848,7 +10609,7 @@ function validate$9(obj, path = 'ManagedContentSingleItemDocumentRepresentation'
|
|
|
10848
10609
|
const path_folder = path + '.folder';
|
|
10849
10610
|
let obj_folder_union0 = null;
|
|
10850
10611
|
const obj_folder_union0_error = (() => {
|
|
10851
|
-
const referencepath_folderValidationError = validate$
|
|
10612
|
+
const referencepath_folderValidationError = validate$S(obj_folder, path_folder);
|
|
10852
10613
|
if (referencepath_folderValidationError !== null) {
|
|
10853
10614
|
let message = 'Object doesn\'t match ManagedContentFolderSummaryRepresentation (at "' + path_folder + '")\n';
|
|
10854
10615
|
message += referencepath_folderValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -10885,7 +10646,7 @@ function validate$9(obj, path = 'ManagedContentSingleItemDocumentRepresentation'
|
|
|
10885
10646
|
}
|
|
10886
10647
|
const obj_lastModifiedBy = obj.lastModifiedBy;
|
|
10887
10648
|
const path_lastModifiedBy = path + '.lastModifiedBy';
|
|
10888
|
-
const referencepath_lastModifiedByValidationError = validate$
|
|
10649
|
+
const referencepath_lastModifiedByValidationError = validate$17(obj_lastModifiedBy, path_lastModifiedBy);
|
|
10889
10650
|
if (referencepath_lastModifiedByValidationError !== null) {
|
|
10890
10651
|
let message = 'Object doesn\'t match ManagedContentUserSummaryRepresentation (at "' + path_lastModifiedBy + '")\n';
|
|
10891
10652
|
message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -10916,7 +10677,7 @@ function validate$9(obj, path = 'ManagedContentSingleItemDocumentRepresentation'
|
|
|
10916
10677
|
const path_status = path + '.status';
|
|
10917
10678
|
let obj_status_union0 = null;
|
|
10918
10679
|
const obj_status_union0_error = (() => {
|
|
10919
|
-
const referencepath_statusValidationError = validate$
|
|
10680
|
+
const referencepath_statusValidationError = validate$R(obj_status, path_status);
|
|
10920
10681
|
if (referencepath_statusValidationError !== null) {
|
|
10921
10682
|
let message = 'Object doesn\'t match ManagedContentVariantStatusRepresentation (at "' + path_status + '")\n';
|
|
10922
10683
|
message += referencepath_statusValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -11079,14 +10840,14 @@ const getManagedContentSingleItem_ConfigPropertyMetadata = [
|
|
|
11079
10840
|
generateParamConfigMetadata('contentTypeFQN', true, 0 /* UrlParameter */, 0 /* String */),
|
|
11080
10841
|
];
|
|
11081
10842
|
const getManagedContentSingleItem_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$7, getManagedContentSingleItem_ConfigPropertyMetadata);
|
|
11082
|
-
const createResourceParams$7 = /*#__PURE__*/ createResourceParams$
|
|
10843
|
+
const createResourceParams$7 = /*#__PURE__*/ createResourceParams$I(getManagedContentSingleItem_ConfigPropertyMetadata);
|
|
11083
10844
|
function keyBuilder$a(luvio, config) {
|
|
11084
10845
|
const resourceParams = createResourceParams$7(config);
|
|
11085
10846
|
return keyBuilder$b(luvio, resourceParams);
|
|
11086
10847
|
}
|
|
11087
10848
|
function typeCheckConfig$7(untrustedConfig) {
|
|
11088
10849
|
const config = {};
|
|
11089
|
-
typeCheckConfig$
|
|
10850
|
+
typeCheckConfig$I(untrustedConfig, config, getManagedContentSingleItem_ConfigPropertyMetadata);
|
|
11090
10851
|
return config;
|
|
11091
10852
|
}
|
|
11092
10853
|
function validateAdapterConfig$7(untrustedConfig, configPropertyNames) {
|
|
@@ -11135,7 +10896,7 @@ function buildNetworkSnapshot$7(luvio, config, options) {
|
|
|
11135
10896
|
});
|
|
11136
10897
|
}
|
|
11137
10898
|
function buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext) {
|
|
11138
|
-
return buildNetworkSnapshotCachePolicy$
|
|
10899
|
+
return buildNetworkSnapshotCachePolicy$p(context, coercedAdapterRequestContext, buildNetworkSnapshot$7, undefined, false);
|
|
11139
10900
|
}
|
|
11140
10901
|
function buildCachedSnapshotCachePolicy$4(context, storeLookup) {
|
|
11141
10902
|
const { luvio, config } = context;
|
|
@@ -11334,14 +11095,14 @@ const getManagedContentSpaceOrchestratorConfig_ConfigPropertyMetadata = [
|
|
|
11334
11095
|
generateParamConfigMetadata('contentSpaceId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
11335
11096
|
];
|
|
11336
11097
|
const getManagedContentSpaceOrchestratorConfig_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, getManagedContentSpaceOrchestratorConfig_ConfigPropertyMetadata);
|
|
11337
|
-
const createResourceParams$6 = /*#__PURE__*/ createResourceParams$
|
|
11098
|
+
const createResourceParams$6 = /*#__PURE__*/ createResourceParams$I(getManagedContentSpaceOrchestratorConfig_ConfigPropertyMetadata);
|
|
11338
11099
|
function keyBuilder$7(luvio, config) {
|
|
11339
11100
|
const resourceParams = createResourceParams$6(config);
|
|
11340
11101
|
return keyBuilder$8(luvio, resourceParams);
|
|
11341
11102
|
}
|
|
11342
11103
|
function typeCheckConfig$6(untrustedConfig) {
|
|
11343
11104
|
const config = {};
|
|
11344
|
-
typeCheckConfig$
|
|
11105
|
+
typeCheckConfig$I(untrustedConfig, config, getManagedContentSpaceOrchestratorConfig_ConfigPropertyMetadata);
|
|
11345
11106
|
return config;
|
|
11346
11107
|
}
|
|
11347
11108
|
function validateAdapterConfig$6(untrustedConfig, configPropertyNames) {
|
|
@@ -11390,7 +11151,7 @@ function buildNetworkSnapshot$6(luvio, config, options) {
|
|
|
11390
11151
|
});
|
|
11391
11152
|
}
|
|
11392
11153
|
function buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext) {
|
|
11393
|
-
return buildNetworkSnapshotCachePolicy$
|
|
11154
|
+
return buildNetworkSnapshotCachePolicy$p(context, coercedAdapterRequestContext, buildNetworkSnapshot$6, undefined, false);
|
|
11394
11155
|
}
|
|
11395
11156
|
function buildCachedSnapshotCachePolicy$3(context, storeLookup) {
|
|
11396
11157
|
const { luvio, config } = context;
|
|
@@ -11479,10 +11240,10 @@ const putManagedContentSpaceOrchestratorConfig_ConfigPropertyMetadata = [
|
|
|
11479
11240
|
generateParamConfigMetadata('mContentOrchConfigInput', true, 2 /* Body */, 4 /* Unsupported */),
|
|
11480
11241
|
];
|
|
11481
11242
|
const putManagedContentSpaceOrchestratorConfig_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, putManagedContentSpaceOrchestratorConfig_ConfigPropertyMetadata);
|
|
11482
|
-
const createResourceParams$5 = /*#__PURE__*/ createResourceParams$
|
|
11243
|
+
const createResourceParams$5 = /*#__PURE__*/ createResourceParams$I(putManagedContentSpaceOrchestratorConfig_ConfigPropertyMetadata);
|
|
11483
11244
|
function typeCheckConfig$5(untrustedConfig) {
|
|
11484
11245
|
const config = {};
|
|
11485
|
-
typeCheckConfig$
|
|
11246
|
+
typeCheckConfig$I(untrustedConfig, config, putManagedContentSpaceOrchestratorConfig_ConfigPropertyMetadata);
|
|
11486
11247
|
const untrustedConfig_mContentOrchConfigInput = untrustedConfig.mContentOrchConfigInput;
|
|
11487
11248
|
const referenceManagedContentOrchestratorConfigInputRepresentationValidationError = validate$6(untrustedConfig_mContentOrchConfigInput);
|
|
11488
11249
|
if (referenceManagedContentOrchestratorConfigInputRepresentationValidationError === null) {
|
|
@@ -11547,7 +11308,7 @@ function validate$5(obj, path = 'ManagedContentTypeSummaryCollectionRepresentati
|
|
|
11547
11308
|
for (let i = 0; i < obj_contentTypes.length; i++) {
|
|
11548
11309
|
const obj_contentTypes_item = obj_contentTypes[i];
|
|
11549
11310
|
const path_contentTypes_item = path_contentTypes + '[' + i + ']';
|
|
11550
|
-
const referencepath_contentTypes_itemValidationError = validate$
|
|
11311
|
+
const referencepath_contentTypes_itemValidationError = validate$1a(obj_contentTypes_item, path_contentTypes_item);
|
|
11551
11312
|
if (referencepath_contentTypes_itemValidationError !== null) {
|
|
11552
11313
|
let message = 'Object doesn\'t match ManagedContentTypeSummaryRepresentation (at "' + path_contentTypes_item + '")\n';
|
|
11553
11314
|
message += referencepath_contentTypes_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -11567,7 +11328,7 @@ function normalize$2(input, existing, path, luvio, store, timestamp) {
|
|
|
11567
11328
|
return input;
|
|
11568
11329
|
}
|
|
11569
11330
|
const select$8 = function ManagedContentTypeSummaryCollectionRepresentationSelect() {
|
|
11570
|
-
const { selections: ManagedContentTypeSummaryRepresentation__selections, opaque: ManagedContentTypeSummaryRepresentation__opaque, } = select$
|
|
11331
|
+
const { selections: ManagedContentTypeSummaryRepresentation__selections, opaque: ManagedContentTypeSummaryRepresentation__opaque, } = select$1j();
|
|
11571
11332
|
return {
|
|
11572
11333
|
kind: 'Fragment',
|
|
11573
11334
|
version: VERSION$3,
|
|
@@ -11595,7 +11356,7 @@ function equals$3(existing, incoming) {
|
|
|
11595
11356
|
const existing_contentTypes = existing.contentTypes;
|
|
11596
11357
|
const incoming_contentTypes = incoming.contentTypes;
|
|
11597
11358
|
const equals_contentTypes_items = equalsArray(existing_contentTypes, incoming_contentTypes, (existing_contentTypes_item, incoming_contentTypes_item) => {
|
|
11598
|
-
if (!(equals$
|
|
11359
|
+
if (!(equals$E(existing_contentTypes_item, incoming_contentTypes_item))) {
|
|
11599
11360
|
return false;
|
|
11600
11361
|
}
|
|
11601
11362
|
});
|
|
@@ -11684,14 +11445,14 @@ const getManagedContentTypesForMixin_ConfigPropertyMetadata = [
|
|
|
11684
11445
|
generateParamConfigMetadata('mixinFQN', false, 1 /* QueryParameter */, 0 /* String */),
|
|
11685
11446
|
];
|
|
11686
11447
|
const getManagedContentTypesForMixin_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, getManagedContentTypesForMixin_ConfigPropertyMetadata);
|
|
11687
|
-
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$
|
|
11448
|
+
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$I(getManagedContentTypesForMixin_ConfigPropertyMetadata);
|
|
11688
11449
|
function keyBuilder$5(luvio, config) {
|
|
11689
11450
|
const resourceParams = createResourceParams$4(config);
|
|
11690
11451
|
return keyBuilder$6(luvio, resourceParams);
|
|
11691
11452
|
}
|
|
11692
11453
|
function typeCheckConfig$4(untrustedConfig) {
|
|
11693
11454
|
const config = {};
|
|
11694
|
-
typeCheckConfig$
|
|
11455
|
+
typeCheckConfig$I(untrustedConfig, config, getManagedContentTypesForMixin_ConfigPropertyMetadata);
|
|
11695
11456
|
return config;
|
|
11696
11457
|
}
|
|
11697
11458
|
function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
|
|
@@ -11740,7 +11501,7 @@ function buildNetworkSnapshot$4(luvio, config, options) {
|
|
|
11740
11501
|
});
|
|
11741
11502
|
}
|
|
11742
11503
|
function buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext) {
|
|
11743
|
-
return buildNetworkSnapshotCachePolicy$
|
|
11504
|
+
return buildNetworkSnapshotCachePolicy$p(context, coercedAdapterRequestContext, buildNetworkSnapshot$4, undefined, false);
|
|
11744
11505
|
}
|
|
11745
11506
|
function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
|
|
11746
11507
|
const { luvio, config } = context;
|
|
@@ -12069,10 +11830,10 @@ const createManagedContentExportV2Job_ConfigPropertyMetadata = [
|
|
|
12069
11830
|
generateParamConfigMetadata('managedContentV2JobRequest', true, 2 /* Body */, 4 /* Unsupported */),
|
|
12070
11831
|
];
|
|
12071
11832
|
const createManagedContentExportV2Job_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, createManagedContentExportV2Job_ConfigPropertyMetadata);
|
|
12072
|
-
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$
|
|
11833
|
+
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$I(createManagedContentExportV2Job_ConfigPropertyMetadata);
|
|
12073
11834
|
function typeCheckConfig$3(untrustedConfig) {
|
|
12074
11835
|
const config = {};
|
|
12075
|
-
typeCheckConfig$
|
|
11836
|
+
typeCheckConfig$I(untrustedConfig, config, createManagedContentExportV2Job_ConfigPropertyMetadata);
|
|
12076
11837
|
const untrustedConfig_managedContentV2JobRequest = untrustedConfig.managedContentV2JobRequest;
|
|
12077
11838
|
const referenceManagedContentExportContentV2JobRequestInputRepresentationValidationError = validate$4(untrustedConfig_managedContentV2JobRequest);
|
|
12078
11839
|
if (referenceManagedContentExportContentV2JobRequestInputRepresentationValidationError === null) {
|
|
@@ -12189,10 +11950,10 @@ const createManagedContentImportV2Job_ConfigPropertyMetadata = [
|
|
|
12189
11950
|
generateParamConfigMetadata('managedContentV2JobRequest', true, 2 /* Body */, 4 /* Unsupported */),
|
|
12190
11951
|
];
|
|
12191
11952
|
const createManagedContentImportV2Job_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, createManagedContentImportV2Job_ConfigPropertyMetadata);
|
|
12192
|
-
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$
|
|
11953
|
+
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$I(createManagedContentImportV2Job_ConfigPropertyMetadata);
|
|
12193
11954
|
function typeCheckConfig$2(untrustedConfig) {
|
|
12194
11955
|
const config = {};
|
|
12195
|
-
typeCheckConfig$
|
|
11956
|
+
typeCheckConfig$I(untrustedConfig, config, createManagedContentImportV2Job_ConfigPropertyMetadata);
|
|
12196
11957
|
const untrustedConfig_managedContentV2JobRequest = untrustedConfig.managedContentV2JobRequest;
|
|
12197
11958
|
const referenceManagedContentV2JobRequestInputRepresentationValidationError = validate$2(untrustedConfig_managedContentV2JobRequest);
|
|
12198
11959
|
if (referenceManagedContentV2JobRequestInputRepresentationValidationError === null) {
|
|
@@ -12508,14 +12269,14 @@ const getManagedContentPreviews_ConfigPropertyMetadata = [
|
|
|
12508
12269
|
generateParamConfigMetadata('managedContentTypeName', false, 1 /* QueryParameter */, 0 /* String */),
|
|
12509
12270
|
];
|
|
12510
12271
|
const getManagedContentPreviews_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, getManagedContentPreviews_ConfigPropertyMetadata);
|
|
12511
|
-
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$
|
|
12272
|
+
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$I(getManagedContentPreviews_ConfigPropertyMetadata);
|
|
12512
12273
|
function keyBuilder$2(luvio, config) {
|
|
12513
12274
|
const resourceParams = createResourceParams$1(config);
|
|
12514
12275
|
return keyBuilder$3(luvio, resourceParams);
|
|
12515
12276
|
}
|
|
12516
12277
|
function typeCheckConfig$1(untrustedConfig) {
|
|
12517
12278
|
const config = {};
|
|
12518
|
-
typeCheckConfig$
|
|
12279
|
+
typeCheckConfig$I(untrustedConfig, config, getManagedContentPreviews_ConfigPropertyMetadata);
|
|
12519
12280
|
return config;
|
|
12520
12281
|
}
|
|
12521
12282
|
function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
|
|
@@ -12564,7 +12325,7 @@ function buildNetworkSnapshot$1(luvio, config, options) {
|
|
|
12564
12325
|
});
|
|
12565
12326
|
}
|
|
12566
12327
|
function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
|
|
12567
|
-
return buildNetworkSnapshotCachePolicy$
|
|
12328
|
+
return buildNetworkSnapshotCachePolicy$p(context, coercedAdapterRequestContext, buildNetworkSnapshot$1, undefined, false);
|
|
12568
12329
|
}
|
|
12569
12330
|
function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
|
|
12570
12331
|
const { luvio, config } = context;
|
|
@@ -12590,22 +12351,22 @@ const getManagedContentPreviewsAdapterFactory = (luvio) => function CMSAuthoring
|
|
|
12590
12351
|
};
|
|
12591
12352
|
|
|
12592
12353
|
function select(luvio, params) {
|
|
12593
|
-
return select
|
|
12354
|
+
return select$$();
|
|
12594
12355
|
}
|
|
12595
12356
|
function keyBuilder$1(luvio, params) {
|
|
12596
|
-
return keyBuilder$
|
|
12357
|
+
return keyBuilder$S(luvio, {
|
|
12597
12358
|
content_key: params.urlParams.contentKeyOrId,
|
|
12598
12359
|
language: params.queryParams.language || '',
|
|
12599
12360
|
version: params.queryParams.version || ''
|
|
12600
12361
|
});
|
|
12601
12362
|
}
|
|
12602
12363
|
function getResponseCacheKeys(storeKeyMap, luvio, resourceParams, response) {
|
|
12603
|
-
getTypeCacheKeys$
|
|
12364
|
+
getTypeCacheKeys$q(storeKeyMap, luvio, response);
|
|
12604
12365
|
}
|
|
12605
12366
|
function ingestSuccess(luvio, resourceParams, response, snapshotRefresh) {
|
|
12606
12367
|
const { body } = response;
|
|
12607
12368
|
const key = keyBuilder$1(luvio, resourceParams);
|
|
12608
|
-
luvio.storeIngest(key, ingest$
|
|
12369
|
+
luvio.storeIngest(key, ingest$q, body);
|
|
12609
12370
|
const snapshot = luvio.storeLookup({
|
|
12610
12371
|
recordId: key,
|
|
12611
12372
|
node: select(),
|
|
@@ -12623,10 +12384,10 @@ function ingestError(luvio, params, error, snapshotRefresh) {
|
|
|
12623
12384
|
const key = keyBuilder$1(luvio, params);
|
|
12624
12385
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
12625
12386
|
const storeMetadataParams = {
|
|
12626
|
-
ttl: TTL$
|
|
12387
|
+
ttl: TTL$q,
|
|
12627
12388
|
namespace: keyPrefix,
|
|
12628
|
-
version: VERSION$
|
|
12629
|
-
representationName: RepresentationType$
|
|
12389
|
+
version: VERSION$r,
|
|
12390
|
+
representationName: RepresentationType$q
|
|
12630
12391
|
};
|
|
12631
12392
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
12632
12393
|
return errorSnapshot;
|
|
@@ -12705,14 +12466,14 @@ const getManagedContentForSite_ConfigPropertyMetadata = [
|
|
|
12705
12466
|
generateParamConfigMetadata('version', false, 1 /* QueryParameter */, 0 /* String */),
|
|
12706
12467
|
];
|
|
12707
12468
|
const getManagedContentForSite_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, getManagedContentForSite_ConfigPropertyMetadata);
|
|
12708
|
-
const createResourceParams = /*#__PURE__*/ createResourceParams$
|
|
12469
|
+
const createResourceParams = /*#__PURE__*/ createResourceParams$I(getManagedContentForSite_ConfigPropertyMetadata);
|
|
12709
12470
|
function keyBuilder(luvio, config) {
|
|
12710
12471
|
const resourceParams = createResourceParams(config);
|
|
12711
12472
|
return keyBuilder$1(luvio, resourceParams);
|
|
12712
12473
|
}
|
|
12713
12474
|
function typeCheckConfig(untrustedConfig) {
|
|
12714
12475
|
const config = {};
|
|
12715
|
-
typeCheckConfig$
|
|
12476
|
+
typeCheckConfig$I(untrustedConfig, config, getManagedContentForSite_ConfigPropertyMetadata);
|
|
12716
12477
|
return config;
|
|
12717
12478
|
}
|
|
12718
12479
|
function validateAdapterConfig(untrustedConfig, configPropertyNames) {
|
|
@@ -12761,7 +12522,7 @@ function buildNetworkSnapshot(luvio, config, options) {
|
|
|
12761
12522
|
});
|
|
12762
12523
|
}
|
|
12763
12524
|
function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
|
|
12764
|
-
return buildNetworkSnapshotCachePolicy$
|
|
12525
|
+
return buildNetworkSnapshotCachePolicy$p(context, coercedAdapterRequestContext, buildNetworkSnapshot, undefined, false);
|
|
12765
12526
|
}
|
|
12766
12527
|
function buildCachedSnapshotCachePolicy(context, storeLookup) {
|
|
12767
12528
|
const { luvio, config } = context;
|
|
@@ -12786,4 +12547,4 @@ const getManagedContentForSiteAdapterFactory = (luvio) => function CMSAuthoring_
|
|
|
12786
12547
|
buildCachedSnapshotCachePolicy, buildNetworkSnapshotCachePolicy);
|
|
12787
12548
|
};
|
|
12788
12549
|
|
|
12789
|
-
export { cloneManagedContentDocumentAdapterFactory, createDeploymentAdapterFactory, createManagedContentAdapterFactory, createManagedContentExportV2JobAdapterFactory, createManagedContentImportV2JobAdapterFactory, createManagedContentVariantAdapterFactory, createScheduleAdapterFactory, createTranslationV2JobAdapterFactory, deleteManagedContentVariantAdapterFactory, getAllCMSJobsForSpaceAdapterFactory, getCMSJobForSpaceAdapterFactory, getCollectionItemsAdapterFactory, getDeploymentsAdapterFactory, getMCSFolderShareTargetsAdapterFactory, getMCSFolderSharesAdapterFactory, getManagedContentAdapterFactory, getManagedContentByFolderIdAdapterFactory,
|
|
12550
|
+
export { cloneManagedContentDocumentAdapterFactory, createDeploymentAdapterFactory, createManagedContentAdapterFactory, createManagedContentExportV2JobAdapterFactory, createManagedContentImportV2JobAdapterFactory, createManagedContentVariantAdapterFactory, createScheduleAdapterFactory, createTranslationV2JobAdapterFactory, deleteManagedContentVariantAdapterFactory, getAllCMSJobsForSpaceAdapterFactory, getCMSJobForSpaceAdapterFactory, getCollectionItemsAdapterFactory, getDeploymentsAdapterFactory, getMCSFolderShareTargetsAdapterFactory, getMCSFolderSharesAdapterFactory, getManagedContentAdapterFactory, getManagedContentByFolderIdAdapterFactory, getManagedContentForSiteAdapterFactory, getManagedContentPreviewsAdapterFactory, getManagedContentReferencedByAdapterFactory, getManagedContentSingleItemAdapterFactory, getManagedContentSpaceAdapterFactory, getManagedContentSpaceFolderAdapterFactory, getManagedContentSpaceFolderItemsV1AdapterFactory, getManagedContentSpaceOrchestratorConfigAdapterFactory, getManagedContentSpacesAdapterFactory, getManagedContentTaxonomyTermsAdapterFactory, getManagedContentTypesForMixinAdapterFactory, getManagedContentVariantAdapterFactory, getManagedContentVariantReferencesAdapterFactory, getManagedContentVariantRenditionAdapterFactory, getManagedContentVariantVersionsAdapterFactory, getSearchResultsAdapterFactory, getWebUrlsAdapterFactory, patchManagedContentSpaceAdapterFactory, postManagedContentSpaceFolderAdapterFactory, publishManagedContentAdapterFactory, putManagedContentSpaceOrchestratorConfigAdapterFactory, replaceManagedContentVariantAdapterFactory, unpublishManagedContentAdapterFactory, updateDeploymentAdapterFactory, updateMCSFolderSharesAdapterFactory, updateManagedContentTaxonomyTermsAdapterFactory, updateManagedContentWebUrlAdapterFactory };
|