@salesforce/lds-adapters-cms-authoring 1.102.0 → 1.103.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 +1254 -840
- package/dist/types/src/generated/adapters/getManagedContentSpace.d.ts +27 -0
- package/dist/types/src/generated/adapters/patchManagedContentSpace.d.ts +22 -0
- package/dist/types/src/generated/artifacts/main.d.ts +2 -0
- package/dist/types/src/generated/artifacts/sfdc.d.ts +5 -1
- package/dist/types/src/generated/resources/getConnectCmsSpacesByContentSpaceId.d.ts +1 -0
- package/dist/types/src/generated/resources/patchConnectCmsSpacesByContentSpaceId.d.ts +4 -1
- package/dist/types/src/generated/types/ManagedContentSpaceCollectionRepresentation.d.ts +3 -3
- package/dist/types/src/generated/types/ManagedContentSpaceRepresentation.d.ts +18 -5
- package/dist/umd/es2018/cms-authoring.js +1255 -839
- package/dist/umd/es5/cms-authoring.js +1255 -839
- package/package.json +3 -3
- package/sfdc/index.js +1106 -641
- package/src/raml/api.raml +3 -0
- package/src/raml/luvio.raml +14 -0
package/sfdc/index.js
CHANGED
|
@@ -229,8 +229,8 @@ function deepFreeze$t(input) {
|
|
|
229
229
|
ObjectFreeze(input);
|
|
230
230
|
}
|
|
231
231
|
|
|
232
|
-
const TTL$
|
|
233
|
-
const VERSION$
|
|
232
|
+
const TTL$f = 1000;
|
|
233
|
+
const VERSION$f = "ca653daea9600118e6167b9b4ff4d07c";
|
|
234
234
|
function validate$A(obj, path = 'ManagedContentDeploymentRepresentation') {
|
|
235
235
|
const v_error = (() => {
|
|
236
236
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -415,28 +415,28 @@ function validate$A(obj, path = 'ManagedContentDeploymentRepresentation') {
|
|
|
415
415
|
})();
|
|
416
416
|
return v_error === undefined ? null : v_error;
|
|
417
417
|
}
|
|
418
|
-
const RepresentationType$
|
|
419
|
-
function keyBuilder$
|
|
420
|
-
return keyPrefix + '::' + RepresentationType$
|
|
418
|
+
const RepresentationType$f = 'ManagedContentDeploymentRepresentation';
|
|
419
|
+
function keyBuilder$w(luvio, config) {
|
|
420
|
+
return keyPrefix + '::' + RepresentationType$f + ':' + config.id;
|
|
421
421
|
}
|
|
422
|
-
function keyBuilderFromType$
|
|
422
|
+
function keyBuilderFromType$9(luvio, object) {
|
|
423
423
|
const keyParams = {
|
|
424
424
|
id: object.deploymentId
|
|
425
425
|
};
|
|
426
|
-
return keyBuilder$
|
|
426
|
+
return keyBuilder$w(luvio, keyParams);
|
|
427
427
|
}
|
|
428
|
-
function normalize$
|
|
428
|
+
function normalize$f(input, existing, path, luvio, store, timestamp) {
|
|
429
429
|
return input;
|
|
430
430
|
}
|
|
431
|
-
const select$
|
|
431
|
+
const select$A = function ManagedContentDeploymentRepresentationSelect() {
|
|
432
432
|
return {
|
|
433
433
|
kind: 'Fragment',
|
|
434
|
-
version: VERSION$
|
|
434
|
+
version: VERSION$f,
|
|
435
435
|
private: [],
|
|
436
436
|
opaque: true
|
|
437
437
|
};
|
|
438
438
|
};
|
|
439
|
-
function equals$
|
|
439
|
+
function equals$f(existing, incoming) {
|
|
440
440
|
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
441
441
|
return false;
|
|
442
442
|
}
|
|
@@ -451,62 +451,62 @@ function deepFreeze$s(input) {
|
|
|
451
451
|
ObjectFreeze(input_deploymentItems);
|
|
452
452
|
ObjectFreeze(input);
|
|
453
453
|
}
|
|
454
|
-
const ingest$
|
|
454
|
+
const ingest$f = function ManagedContentDeploymentRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
455
455
|
if (process.env.NODE_ENV !== 'production') {
|
|
456
456
|
const validateError = validate$A(input);
|
|
457
457
|
if (validateError !== null) {
|
|
458
458
|
throw validateError;
|
|
459
459
|
}
|
|
460
460
|
}
|
|
461
|
-
const key = keyBuilderFromType$
|
|
461
|
+
const key = keyBuilderFromType$9(luvio, input);
|
|
462
462
|
const existingRecord = store.readEntry(key);
|
|
463
|
-
const ttlToUse = TTL$
|
|
464
|
-
let incomingRecord = normalize$
|
|
463
|
+
const ttlToUse = TTL$f;
|
|
464
|
+
let incomingRecord = normalize$f(input, store.readEntry(key), {
|
|
465
465
|
fullPath: key,
|
|
466
466
|
parent: path.parent,
|
|
467
467
|
propertyName: path.propertyName,
|
|
468
468
|
ttl: ttlToUse
|
|
469
469
|
});
|
|
470
470
|
deepFreeze$s(input);
|
|
471
|
-
if (existingRecord === undefined || equals$
|
|
471
|
+
if (existingRecord === undefined || equals$f(existingRecord, incomingRecord) === false) {
|
|
472
472
|
luvio.storePublish(key, incomingRecord);
|
|
473
473
|
}
|
|
474
474
|
{
|
|
475
475
|
const storeMetadataParams = {
|
|
476
476
|
ttl: ttlToUse,
|
|
477
477
|
namespace: "CMSAuthoring",
|
|
478
|
-
version: VERSION$
|
|
479
|
-
representationName: RepresentationType$
|
|
478
|
+
version: VERSION$f,
|
|
479
|
+
representationName: RepresentationType$f,
|
|
480
480
|
};
|
|
481
481
|
luvio.publishStoreMetadata(key, storeMetadataParams);
|
|
482
482
|
}
|
|
483
483
|
return createLink(key);
|
|
484
484
|
};
|
|
485
|
-
function getTypeCacheKeys$
|
|
485
|
+
function getTypeCacheKeys$f(luvio, input, fullPathFactory) {
|
|
486
486
|
const rootKeySet = new StoreKeyMap();
|
|
487
487
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
488
|
-
const rootKey = keyBuilderFromType$
|
|
488
|
+
const rootKey = keyBuilderFromType$9(luvio, input);
|
|
489
489
|
rootKeySet.set(rootKey, {
|
|
490
490
|
namespace: keyPrefix,
|
|
491
|
-
representationName: RepresentationType$
|
|
491
|
+
representationName: RepresentationType$f,
|
|
492
492
|
mergeable: false
|
|
493
493
|
});
|
|
494
494
|
return rootKeySet;
|
|
495
495
|
}
|
|
496
496
|
|
|
497
|
-
function select$
|
|
498
|
-
return select$
|
|
497
|
+
function select$z(luvio, params) {
|
|
498
|
+
return select$A();
|
|
499
499
|
}
|
|
500
|
-
function getResponseCacheKeys$
|
|
501
|
-
return getTypeCacheKeys$
|
|
500
|
+
function getResponseCacheKeys$l(luvio, resourceParams, response) {
|
|
501
|
+
return getTypeCacheKeys$f(luvio, response);
|
|
502
502
|
}
|
|
503
|
-
function ingestSuccess$
|
|
503
|
+
function ingestSuccess$l(luvio, resourceParams, response) {
|
|
504
504
|
const { body } = response;
|
|
505
|
-
const key = keyBuilderFromType$
|
|
506
|
-
luvio.storeIngest(key, ingest$
|
|
505
|
+
const key = keyBuilderFromType$9(luvio, body);
|
|
506
|
+
luvio.storeIngest(key, ingest$f, body);
|
|
507
507
|
const snapshot = luvio.storeLookup({
|
|
508
508
|
recordId: key,
|
|
509
|
-
node: select$
|
|
509
|
+
node: select$z(),
|
|
510
510
|
variables: {},
|
|
511
511
|
});
|
|
512
512
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -516,7 +516,7 @@ function ingestSuccess$j(luvio, resourceParams, response) {
|
|
|
516
516
|
}
|
|
517
517
|
return snapshot;
|
|
518
518
|
}
|
|
519
|
-
function createResourceRequest$
|
|
519
|
+
function createResourceRequest$l(config) {
|
|
520
520
|
const headers = {};
|
|
521
521
|
return {
|
|
522
522
|
baseUri: '/services/data/v58.0',
|
|
@@ -537,7 +537,7 @@ const createDeployment_ConfigPropertyNames = {
|
|
|
537
537
|
optional: []
|
|
538
538
|
}
|
|
539
539
|
};
|
|
540
|
-
function createResourceParams$
|
|
540
|
+
function createResourceParams$l(config) {
|
|
541
541
|
const resourceParams = {
|
|
542
542
|
body: {
|
|
543
543
|
DeploymentInput: config.DeploymentInput
|
|
@@ -545,7 +545,7 @@ function createResourceParams$j(config) {
|
|
|
545
545
|
};
|
|
546
546
|
return resourceParams;
|
|
547
547
|
}
|
|
548
|
-
function typeCheckConfig$
|
|
548
|
+
function typeCheckConfig$l(untrustedConfig) {
|
|
549
549
|
const config = {};
|
|
550
550
|
const untrustedConfig_DeploymentInput = untrustedConfig.DeploymentInput;
|
|
551
551
|
const referenceManagedContentDeploymentInputRepresentationValidationError = validate$C(untrustedConfig_DeploymentInput);
|
|
@@ -554,28 +554,28 @@ function typeCheckConfig$j(untrustedConfig) {
|
|
|
554
554
|
}
|
|
555
555
|
return config;
|
|
556
556
|
}
|
|
557
|
-
function validateAdapterConfig$
|
|
557
|
+
function validateAdapterConfig$l(untrustedConfig, configPropertyNames) {
|
|
558
558
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
559
559
|
return null;
|
|
560
560
|
}
|
|
561
561
|
if (process.env.NODE_ENV !== 'production') {
|
|
562
562
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
563
563
|
}
|
|
564
|
-
const config = typeCheckConfig$
|
|
564
|
+
const config = typeCheckConfig$l(untrustedConfig);
|
|
565
565
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
566
566
|
return null;
|
|
567
567
|
}
|
|
568
568
|
return config;
|
|
569
569
|
}
|
|
570
|
-
function buildNetworkSnapshot$
|
|
571
|
-
const resourceParams = createResourceParams$
|
|
572
|
-
const request = createResourceRequest$
|
|
570
|
+
function buildNetworkSnapshot$l(luvio, config, options) {
|
|
571
|
+
const resourceParams = createResourceParams$l(config);
|
|
572
|
+
const request = createResourceRequest$l(resourceParams);
|
|
573
573
|
return luvio.dispatchResourceRequest(request, options)
|
|
574
574
|
.then((response) => {
|
|
575
575
|
return luvio.handleSuccessResponse(() => {
|
|
576
|
-
const snapshot = ingestSuccess$
|
|
576
|
+
const snapshot = ingestSuccess$l(luvio, resourceParams, response);
|
|
577
577
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
578
|
-
}, () => getResponseCacheKeys$
|
|
578
|
+
}, () => getResponseCacheKeys$l(luvio, resourceParams, response.body));
|
|
579
579
|
}, (response) => {
|
|
580
580
|
deepFreeze$u(response);
|
|
581
581
|
throw response;
|
|
@@ -583,12 +583,12 @@ function buildNetworkSnapshot$j(luvio, config, options) {
|
|
|
583
583
|
}
|
|
584
584
|
const createDeploymentAdapterFactory = (luvio) => {
|
|
585
585
|
return function createDeployment(untrustedConfig) {
|
|
586
|
-
const config = validateAdapterConfig$
|
|
586
|
+
const config = validateAdapterConfig$l(untrustedConfig, createDeployment_ConfigPropertyNames);
|
|
587
587
|
// Invalid or incomplete config
|
|
588
588
|
if (config === null) {
|
|
589
589
|
throw new Error('Invalid config for "createDeployment"');
|
|
590
590
|
}
|
|
591
|
-
return buildNetworkSnapshot$
|
|
591
|
+
return buildNetworkSnapshot$l(luvio, config);
|
|
592
592
|
};
|
|
593
593
|
};
|
|
594
594
|
|
|
@@ -754,8 +754,8 @@ function deepFreeze$n(input) {
|
|
|
754
754
|
ObjectFreeze(input);
|
|
755
755
|
}
|
|
756
756
|
|
|
757
|
-
const TTL$
|
|
758
|
-
const VERSION$
|
|
757
|
+
const TTL$e = 100;
|
|
758
|
+
const VERSION$e = "c04d826180efa7be6ad6764b5928469e";
|
|
759
759
|
function validate$t(obj, path = 'ManagedContentDocumentRepresentation') {
|
|
760
760
|
const v_error = (() => {
|
|
761
761
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -930,30 +930,30 @@ function validate$t(obj, path = 'ManagedContentDocumentRepresentation') {
|
|
|
930
930
|
})();
|
|
931
931
|
return v_error === undefined ? null : v_error;
|
|
932
932
|
}
|
|
933
|
-
const RepresentationType$
|
|
934
|
-
function keyBuilder$
|
|
935
|
-
return keyPrefix + '::' + RepresentationType$
|
|
933
|
+
const RepresentationType$e = 'ManagedContentDocumentRepresentation';
|
|
934
|
+
function keyBuilder$v(luvio, config) {
|
|
935
|
+
return keyPrefix + '::' + RepresentationType$e + ':' + config.content_key + ':' + config.language + ':' + config.version;
|
|
936
936
|
}
|
|
937
|
-
function keyBuilderFromType$
|
|
937
|
+
function keyBuilderFromType$8(luvio, object) {
|
|
938
938
|
const keyParams = {
|
|
939
939
|
content_key: object.contentKey,
|
|
940
940
|
language: object.language,
|
|
941
941
|
version: object.version
|
|
942
942
|
};
|
|
943
|
-
return keyBuilder$
|
|
943
|
+
return keyBuilder$v(luvio, keyParams);
|
|
944
944
|
}
|
|
945
|
-
function normalize$
|
|
945
|
+
function normalize$e(input, existing, path, luvio, store, timestamp) {
|
|
946
946
|
return input;
|
|
947
947
|
}
|
|
948
|
-
const select$
|
|
948
|
+
const select$y = function ManagedContentDocumentRepresentationSelect() {
|
|
949
949
|
return {
|
|
950
950
|
kind: 'Fragment',
|
|
951
|
-
version: VERSION$
|
|
951
|
+
version: VERSION$e,
|
|
952
952
|
private: [],
|
|
953
953
|
opaque: true
|
|
954
954
|
};
|
|
955
955
|
};
|
|
956
|
-
function equals$
|
|
956
|
+
function equals$e(existing, incoming) {
|
|
957
957
|
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
958
958
|
return false;
|
|
959
959
|
}
|
|
@@ -987,62 +987,62 @@ function deepFreeze$m(input) {
|
|
|
987
987
|
}
|
|
988
988
|
ObjectFreeze(input);
|
|
989
989
|
}
|
|
990
|
-
const ingest$
|
|
990
|
+
const ingest$e = function ManagedContentDocumentRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
991
991
|
if (process.env.NODE_ENV !== 'production') {
|
|
992
992
|
const validateError = validate$t(input);
|
|
993
993
|
if (validateError !== null) {
|
|
994
994
|
throw validateError;
|
|
995
995
|
}
|
|
996
996
|
}
|
|
997
|
-
const key = keyBuilderFromType$
|
|
997
|
+
const key = keyBuilderFromType$8(luvio, input);
|
|
998
998
|
const existingRecord = store.readEntry(key);
|
|
999
|
-
const ttlToUse = TTL$
|
|
1000
|
-
let incomingRecord = normalize$
|
|
999
|
+
const ttlToUse = TTL$e;
|
|
1000
|
+
let incomingRecord = normalize$e(input, store.readEntry(key), {
|
|
1001
1001
|
fullPath: key,
|
|
1002
1002
|
parent: path.parent,
|
|
1003
1003
|
propertyName: path.propertyName,
|
|
1004
1004
|
ttl: ttlToUse
|
|
1005
1005
|
});
|
|
1006
1006
|
deepFreeze$m(input);
|
|
1007
|
-
if (existingRecord === undefined || equals$
|
|
1007
|
+
if (existingRecord === undefined || equals$e(existingRecord, incomingRecord) === false) {
|
|
1008
1008
|
luvio.storePublish(key, incomingRecord);
|
|
1009
1009
|
}
|
|
1010
1010
|
{
|
|
1011
1011
|
const storeMetadataParams = {
|
|
1012
1012
|
ttl: ttlToUse,
|
|
1013
1013
|
namespace: "CMSAuthoring",
|
|
1014
|
-
version: VERSION$
|
|
1015
|
-
representationName: RepresentationType$
|
|
1014
|
+
version: VERSION$e,
|
|
1015
|
+
representationName: RepresentationType$e,
|
|
1016
1016
|
};
|
|
1017
1017
|
luvio.publishStoreMetadata(key, storeMetadataParams);
|
|
1018
1018
|
}
|
|
1019
1019
|
return createLink(key);
|
|
1020
1020
|
};
|
|
1021
|
-
function getTypeCacheKeys$
|
|
1021
|
+
function getTypeCacheKeys$e(luvio, input, fullPathFactory) {
|
|
1022
1022
|
const rootKeySet = new StoreKeyMap();
|
|
1023
1023
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
1024
|
-
const rootKey = keyBuilderFromType$
|
|
1024
|
+
const rootKey = keyBuilderFromType$8(luvio, input);
|
|
1025
1025
|
rootKeySet.set(rootKey, {
|
|
1026
1026
|
namespace: keyPrefix,
|
|
1027
|
-
representationName: RepresentationType$
|
|
1027
|
+
representationName: RepresentationType$e,
|
|
1028
1028
|
mergeable: false
|
|
1029
1029
|
});
|
|
1030
1030
|
return rootKeySet;
|
|
1031
1031
|
}
|
|
1032
1032
|
|
|
1033
|
-
function select$
|
|
1034
|
-
return select$
|
|
1033
|
+
function select$x(luvio, params) {
|
|
1034
|
+
return select$y();
|
|
1035
1035
|
}
|
|
1036
|
-
function getResponseCacheKeys$
|
|
1037
|
-
return getTypeCacheKeys$
|
|
1036
|
+
function getResponseCacheKeys$k(luvio, resourceParams, response) {
|
|
1037
|
+
return getTypeCacheKeys$e(luvio, response);
|
|
1038
1038
|
}
|
|
1039
|
-
function ingestSuccess$
|
|
1039
|
+
function ingestSuccess$k(luvio, resourceParams, response) {
|
|
1040
1040
|
const { body } = response;
|
|
1041
|
-
const key = keyBuilderFromType$
|
|
1042
|
-
luvio.storeIngest(key, ingest$
|
|
1041
|
+
const key = keyBuilderFromType$8(luvio, body);
|
|
1042
|
+
luvio.storeIngest(key, ingest$e, body);
|
|
1043
1043
|
const snapshot = luvio.storeLookup({
|
|
1044
1044
|
recordId: key,
|
|
1045
|
-
node: select$
|
|
1045
|
+
node: select$x(),
|
|
1046
1046
|
variables: {},
|
|
1047
1047
|
});
|
|
1048
1048
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -1052,7 +1052,7 @@ function ingestSuccess$i(luvio, resourceParams, response) {
|
|
|
1052
1052
|
}
|
|
1053
1053
|
return snapshot;
|
|
1054
1054
|
}
|
|
1055
|
-
function createResourceRequest$
|
|
1055
|
+
function createResourceRequest$k(config) {
|
|
1056
1056
|
const headers = {};
|
|
1057
1057
|
return {
|
|
1058
1058
|
baseUri: '/services/data/v58.0',
|
|
@@ -1066,11 +1066,11 @@ function createResourceRequest$i(config) {
|
|
|
1066
1066
|
};
|
|
1067
1067
|
}
|
|
1068
1068
|
|
|
1069
|
-
function ingestSuccess$
|
|
1069
|
+
function ingestSuccess$j(luvio, resourceParams, response) {
|
|
1070
1070
|
// Version can come either from versionNumber field in case of v2 content, or managedContentVersionId field in case of v1 content.
|
|
1071
1071
|
response.body.version = (response.body.versionNumber ||
|
|
1072
1072
|
response.body.managedContentVersionId);
|
|
1073
|
-
return ingestSuccess$
|
|
1073
|
+
return ingestSuccess$k(luvio, resourceParams, response);
|
|
1074
1074
|
}
|
|
1075
1075
|
|
|
1076
1076
|
const createManagedContent_ConfigPropertyNames = {
|
|
@@ -1080,7 +1080,7 @@ const createManagedContent_ConfigPropertyNames = {
|
|
|
1080
1080
|
optional: []
|
|
1081
1081
|
}
|
|
1082
1082
|
};
|
|
1083
|
-
function createResourceParams$
|
|
1083
|
+
function createResourceParams$k(config) {
|
|
1084
1084
|
const resourceParams = {
|
|
1085
1085
|
body: {
|
|
1086
1086
|
ManagedContentInputParam: config.ManagedContentInputParam
|
|
@@ -1088,7 +1088,7 @@ function createResourceParams$i(config) {
|
|
|
1088
1088
|
};
|
|
1089
1089
|
return resourceParams;
|
|
1090
1090
|
}
|
|
1091
|
-
function typeCheckConfig$
|
|
1091
|
+
function typeCheckConfig$k(untrustedConfig) {
|
|
1092
1092
|
const config = {};
|
|
1093
1093
|
const untrustedConfig_ManagedContentInputParam = untrustedConfig.ManagedContentInputParam;
|
|
1094
1094
|
const referenceManagedContentInputRepresentationValidationError = validate$z(untrustedConfig_ManagedContentInputParam);
|
|
@@ -1097,28 +1097,28 @@ function typeCheckConfig$i(untrustedConfig) {
|
|
|
1097
1097
|
}
|
|
1098
1098
|
return config;
|
|
1099
1099
|
}
|
|
1100
|
-
function validateAdapterConfig$
|
|
1100
|
+
function validateAdapterConfig$k(untrustedConfig, configPropertyNames) {
|
|
1101
1101
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
1102
1102
|
return null;
|
|
1103
1103
|
}
|
|
1104
1104
|
if (process.env.NODE_ENV !== 'production') {
|
|
1105
1105
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
1106
1106
|
}
|
|
1107
|
-
const config = typeCheckConfig$
|
|
1107
|
+
const config = typeCheckConfig$k(untrustedConfig);
|
|
1108
1108
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
1109
1109
|
return null;
|
|
1110
1110
|
}
|
|
1111
1111
|
return config;
|
|
1112
1112
|
}
|
|
1113
|
-
function buildNetworkSnapshot$
|
|
1114
|
-
const resourceParams = createResourceParams$
|
|
1115
|
-
const request = createResourceRequest$
|
|
1113
|
+
function buildNetworkSnapshot$k(luvio, config, options) {
|
|
1114
|
+
const resourceParams = createResourceParams$k(config);
|
|
1115
|
+
const request = createResourceRequest$k(resourceParams);
|
|
1116
1116
|
return luvio.dispatchResourceRequest(request, options)
|
|
1117
1117
|
.then((response) => {
|
|
1118
1118
|
return luvio.handleSuccessResponse(() => {
|
|
1119
|
-
const snapshot = ingestSuccess$
|
|
1119
|
+
const snapshot = ingestSuccess$j(luvio, resourceParams, response);
|
|
1120
1120
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
1121
|
-
}, () => getResponseCacheKeys$
|
|
1121
|
+
}, () => getResponseCacheKeys$k(luvio, resourceParams, response.body));
|
|
1122
1122
|
}, (response) => {
|
|
1123
1123
|
deepFreeze$u(response);
|
|
1124
1124
|
throw response;
|
|
@@ -1126,12 +1126,12 @@ function buildNetworkSnapshot$i(luvio, config, options) {
|
|
|
1126
1126
|
}
|
|
1127
1127
|
const createManagedContentAdapterFactory = (luvio) => {
|
|
1128
1128
|
return function createManagedContent(untrustedConfig) {
|
|
1129
|
-
const config = validateAdapterConfig$
|
|
1129
|
+
const config = validateAdapterConfig$k(untrustedConfig, createManagedContent_ConfigPropertyNames);
|
|
1130
1130
|
// Invalid or incomplete config
|
|
1131
1131
|
if (config === null) {
|
|
1132
1132
|
throw new Error('Invalid config for "createManagedContent"');
|
|
1133
1133
|
}
|
|
1134
|
-
return buildNetworkSnapshot$
|
|
1134
|
+
return buildNetworkSnapshot$k(luvio, config);
|
|
1135
1135
|
};
|
|
1136
1136
|
};
|
|
1137
1137
|
|
|
@@ -1183,8 +1183,8 @@ function validate$s(obj, path = 'ManagedContentExportContentV2JobRequestInputRep
|
|
|
1183
1183
|
return v_error === undefined ? null : v_error;
|
|
1184
1184
|
}
|
|
1185
1185
|
|
|
1186
|
-
const TTL$
|
|
1187
|
-
const VERSION$
|
|
1186
|
+
const TTL$d = 100;
|
|
1187
|
+
const VERSION$d = "9ae4bb8336d074517f1c980f5f3f7d82";
|
|
1188
1188
|
function validate$r(obj, path = 'ManagedContentV2JobRepresentation') {
|
|
1189
1189
|
const v_error = (() => {
|
|
1190
1190
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -1342,28 +1342,28 @@ function validate$r(obj, path = 'ManagedContentV2JobRepresentation') {
|
|
|
1342
1342
|
})();
|
|
1343
1343
|
return v_error === undefined ? null : v_error;
|
|
1344
1344
|
}
|
|
1345
|
-
const RepresentationType$
|
|
1346
|
-
function keyBuilder$
|
|
1347
|
-
return keyPrefix + '::' + RepresentationType$
|
|
1345
|
+
const RepresentationType$d = 'ManagedContentV2JobRepresentation';
|
|
1346
|
+
function keyBuilder$u(luvio, config) {
|
|
1347
|
+
return keyPrefix + '::' + RepresentationType$d + ':' + config.id;
|
|
1348
1348
|
}
|
|
1349
|
-
function keyBuilderFromType$
|
|
1349
|
+
function keyBuilderFromType$7(luvio, object) {
|
|
1350
1350
|
const keyParams = {
|
|
1351
1351
|
id: object.id
|
|
1352
1352
|
};
|
|
1353
|
-
return keyBuilder$
|
|
1353
|
+
return keyBuilder$u(luvio, keyParams);
|
|
1354
1354
|
}
|
|
1355
|
-
function normalize$
|
|
1355
|
+
function normalize$d(input, existing, path, luvio, store, timestamp) {
|
|
1356
1356
|
return input;
|
|
1357
1357
|
}
|
|
1358
|
-
const select$
|
|
1358
|
+
const select$w = function ManagedContentV2JobRepresentationSelect() {
|
|
1359
1359
|
return {
|
|
1360
1360
|
kind: 'Fragment',
|
|
1361
|
-
version: VERSION$
|
|
1361
|
+
version: VERSION$d,
|
|
1362
1362
|
private: [],
|
|
1363
1363
|
opaque: true
|
|
1364
1364
|
};
|
|
1365
1365
|
};
|
|
1366
|
-
function equals$
|
|
1366
|
+
function equals$d(existing, incoming) {
|
|
1367
1367
|
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
1368
1368
|
return false;
|
|
1369
1369
|
}
|
|
@@ -1372,62 +1372,62 @@ function equals$c(existing, incoming) {
|
|
|
1372
1372
|
function deepFreeze$l(input) {
|
|
1373
1373
|
ObjectFreeze(input);
|
|
1374
1374
|
}
|
|
1375
|
-
const ingest$
|
|
1375
|
+
const ingest$d = function ManagedContentV2JobRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1376
1376
|
if (process.env.NODE_ENV !== 'production') {
|
|
1377
1377
|
const validateError = validate$r(input);
|
|
1378
1378
|
if (validateError !== null) {
|
|
1379
1379
|
throw validateError;
|
|
1380
1380
|
}
|
|
1381
1381
|
}
|
|
1382
|
-
const key = keyBuilderFromType$
|
|
1382
|
+
const key = keyBuilderFromType$7(luvio, input);
|
|
1383
1383
|
const existingRecord = store.readEntry(key);
|
|
1384
|
-
const ttlToUse = TTL$
|
|
1385
|
-
let incomingRecord = normalize$
|
|
1384
|
+
const ttlToUse = TTL$d;
|
|
1385
|
+
let incomingRecord = normalize$d(input, store.readEntry(key), {
|
|
1386
1386
|
fullPath: key,
|
|
1387
1387
|
parent: path.parent,
|
|
1388
1388
|
propertyName: path.propertyName,
|
|
1389
1389
|
ttl: ttlToUse
|
|
1390
1390
|
});
|
|
1391
1391
|
deepFreeze$l(input);
|
|
1392
|
-
if (existingRecord === undefined || equals$
|
|
1392
|
+
if (existingRecord === undefined || equals$d(existingRecord, incomingRecord) === false) {
|
|
1393
1393
|
luvio.storePublish(key, incomingRecord);
|
|
1394
1394
|
}
|
|
1395
1395
|
{
|
|
1396
1396
|
const storeMetadataParams = {
|
|
1397
1397
|
ttl: ttlToUse,
|
|
1398
1398
|
namespace: "CMSAuthoring",
|
|
1399
|
-
version: VERSION$
|
|
1400
|
-
representationName: RepresentationType$
|
|
1399
|
+
version: VERSION$d,
|
|
1400
|
+
representationName: RepresentationType$d,
|
|
1401
1401
|
};
|
|
1402
1402
|
luvio.publishStoreMetadata(key, storeMetadataParams);
|
|
1403
1403
|
}
|
|
1404
1404
|
return createLink(key);
|
|
1405
1405
|
};
|
|
1406
|
-
function getTypeCacheKeys$
|
|
1406
|
+
function getTypeCacheKeys$d(luvio, input, fullPathFactory) {
|
|
1407
1407
|
const rootKeySet = new StoreKeyMap();
|
|
1408
1408
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
1409
|
-
const rootKey = keyBuilderFromType$
|
|
1409
|
+
const rootKey = keyBuilderFromType$7(luvio, input);
|
|
1410
1410
|
rootKeySet.set(rootKey, {
|
|
1411
1411
|
namespace: keyPrefix,
|
|
1412
|
-
representationName: RepresentationType$
|
|
1412
|
+
representationName: RepresentationType$d,
|
|
1413
1413
|
mergeable: false
|
|
1414
1414
|
});
|
|
1415
1415
|
return rootKeySet;
|
|
1416
1416
|
}
|
|
1417
1417
|
|
|
1418
|
-
function select$
|
|
1419
|
-
return select$
|
|
1418
|
+
function select$v(luvio, params) {
|
|
1419
|
+
return select$w();
|
|
1420
1420
|
}
|
|
1421
|
-
function getResponseCacheKeys$
|
|
1422
|
-
return getTypeCacheKeys$
|
|
1421
|
+
function getResponseCacheKeys$j(luvio, resourceParams, response) {
|
|
1422
|
+
return getTypeCacheKeys$d(luvio, response);
|
|
1423
1423
|
}
|
|
1424
|
-
function ingestSuccess$
|
|
1424
|
+
function ingestSuccess$i(luvio, resourceParams, response) {
|
|
1425
1425
|
const { body } = response;
|
|
1426
|
-
const key = keyBuilderFromType$
|
|
1427
|
-
luvio.storeIngest(key, ingest$
|
|
1426
|
+
const key = keyBuilderFromType$7(luvio, body);
|
|
1427
|
+
luvio.storeIngest(key, ingest$d, body);
|
|
1428
1428
|
const snapshot = luvio.storeLookup({
|
|
1429
1429
|
recordId: key,
|
|
1430
|
-
node: select$
|
|
1430
|
+
node: select$v(),
|
|
1431
1431
|
variables: {},
|
|
1432
1432
|
});
|
|
1433
1433
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -1437,7 +1437,7 @@ function ingestSuccess$g(luvio, resourceParams, response) {
|
|
|
1437
1437
|
}
|
|
1438
1438
|
return snapshot;
|
|
1439
1439
|
}
|
|
1440
|
-
function createResourceRequest$
|
|
1440
|
+
function createResourceRequest$j(config) {
|
|
1441
1441
|
const headers = {};
|
|
1442
1442
|
return {
|
|
1443
1443
|
baseUri: '/services/data/v58.0',
|
|
@@ -1458,7 +1458,7 @@ const createManagedContentExportV2Job_ConfigPropertyNames = {
|
|
|
1458
1458
|
optional: []
|
|
1459
1459
|
}
|
|
1460
1460
|
};
|
|
1461
|
-
function createResourceParams$
|
|
1461
|
+
function createResourceParams$j(config) {
|
|
1462
1462
|
const resourceParams = {
|
|
1463
1463
|
urlParams: {
|
|
1464
1464
|
contentSpaceId: config.contentSpaceId
|
|
@@ -1469,7 +1469,7 @@ function createResourceParams$h(config) {
|
|
|
1469
1469
|
};
|
|
1470
1470
|
return resourceParams;
|
|
1471
1471
|
}
|
|
1472
|
-
function typeCheckConfig$
|
|
1472
|
+
function typeCheckConfig$j(untrustedConfig) {
|
|
1473
1473
|
const config = {};
|
|
1474
1474
|
const untrustedConfig_contentSpaceId = untrustedConfig.contentSpaceId;
|
|
1475
1475
|
if (typeof untrustedConfig_contentSpaceId === 'string') {
|
|
@@ -1482,28 +1482,28 @@ function typeCheckConfig$h(untrustedConfig) {
|
|
|
1482
1482
|
}
|
|
1483
1483
|
return config;
|
|
1484
1484
|
}
|
|
1485
|
-
function validateAdapterConfig$
|
|
1485
|
+
function validateAdapterConfig$j(untrustedConfig, configPropertyNames) {
|
|
1486
1486
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
1487
1487
|
return null;
|
|
1488
1488
|
}
|
|
1489
1489
|
if (process.env.NODE_ENV !== 'production') {
|
|
1490
1490
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
1491
1491
|
}
|
|
1492
|
-
const config = typeCheckConfig$
|
|
1492
|
+
const config = typeCheckConfig$j(untrustedConfig);
|
|
1493
1493
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
1494
1494
|
return null;
|
|
1495
1495
|
}
|
|
1496
1496
|
return config;
|
|
1497
1497
|
}
|
|
1498
|
-
function buildNetworkSnapshot$
|
|
1499
|
-
const resourceParams = createResourceParams$
|
|
1500
|
-
const request = createResourceRequest$
|
|
1498
|
+
function buildNetworkSnapshot$j(luvio, config, options) {
|
|
1499
|
+
const resourceParams = createResourceParams$j(config);
|
|
1500
|
+
const request = createResourceRequest$j(resourceParams);
|
|
1501
1501
|
return luvio.dispatchResourceRequest(request, options)
|
|
1502
1502
|
.then((response) => {
|
|
1503
1503
|
return luvio.handleSuccessResponse(() => {
|
|
1504
|
-
const snapshot = ingestSuccess$
|
|
1504
|
+
const snapshot = ingestSuccess$i(luvio, resourceParams, response);
|
|
1505
1505
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
1506
|
-
}, () => getResponseCacheKeys$
|
|
1506
|
+
}, () => getResponseCacheKeys$j(luvio, resourceParams, response.body));
|
|
1507
1507
|
}, (response) => {
|
|
1508
1508
|
deepFreeze$u(response);
|
|
1509
1509
|
throw response;
|
|
@@ -1511,12 +1511,12 @@ function buildNetworkSnapshot$h(luvio, config, options) {
|
|
|
1511
1511
|
}
|
|
1512
1512
|
const createManagedContentExportV2JobAdapterFactory = (luvio) => {
|
|
1513
1513
|
return function createManagedContentExportV2Job(untrustedConfig) {
|
|
1514
|
-
const config = validateAdapterConfig$
|
|
1514
|
+
const config = validateAdapterConfig$j(untrustedConfig, createManagedContentExportV2Job_ConfigPropertyNames);
|
|
1515
1515
|
// Invalid or incomplete config
|
|
1516
1516
|
if (config === null) {
|
|
1517
1517
|
throw new Error('Invalid config for "createManagedContentExportV2Job"');
|
|
1518
1518
|
}
|
|
1519
|
-
return buildNetworkSnapshot$
|
|
1519
|
+
return buildNetworkSnapshot$j(luvio, config);
|
|
1520
1520
|
};
|
|
1521
1521
|
};
|
|
1522
1522
|
|
|
@@ -1544,19 +1544,19 @@ function validate$q(obj, path = 'ManagedContentV2JobRequestInputRepresentation')
|
|
|
1544
1544
|
return v_error === undefined ? null : v_error;
|
|
1545
1545
|
}
|
|
1546
1546
|
|
|
1547
|
-
function select$
|
|
1548
|
-
return select$
|
|
1547
|
+
function select$u(luvio, params) {
|
|
1548
|
+
return select$w();
|
|
1549
1549
|
}
|
|
1550
|
-
function getResponseCacheKeys$
|
|
1551
|
-
return getTypeCacheKeys$
|
|
1550
|
+
function getResponseCacheKeys$i(luvio, resourceParams, response) {
|
|
1551
|
+
return getTypeCacheKeys$d(luvio, response);
|
|
1552
1552
|
}
|
|
1553
|
-
function ingestSuccess$
|
|
1553
|
+
function ingestSuccess$h(luvio, resourceParams, response) {
|
|
1554
1554
|
const { body } = response;
|
|
1555
|
-
const key = keyBuilderFromType$
|
|
1556
|
-
luvio.storeIngest(key, ingest$
|
|
1555
|
+
const key = keyBuilderFromType$7(luvio, body);
|
|
1556
|
+
luvio.storeIngest(key, ingest$d, body);
|
|
1557
1557
|
const snapshot = luvio.storeLookup({
|
|
1558
1558
|
recordId: key,
|
|
1559
|
-
node: select$
|
|
1559
|
+
node: select$u(),
|
|
1560
1560
|
variables: {},
|
|
1561
1561
|
});
|
|
1562
1562
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -1566,7 +1566,7 @@ function ingestSuccess$f(luvio, resourceParams, response) {
|
|
|
1566
1566
|
}
|
|
1567
1567
|
return snapshot;
|
|
1568
1568
|
}
|
|
1569
|
-
function createResourceRequest$
|
|
1569
|
+
function createResourceRequest$i(config) {
|
|
1570
1570
|
const headers = {};
|
|
1571
1571
|
return {
|
|
1572
1572
|
baseUri: '/services/data/v58.0',
|
|
@@ -1587,7 +1587,7 @@ const createManagedContentImportV2Job_ConfigPropertyNames = {
|
|
|
1587
1587
|
optional: []
|
|
1588
1588
|
}
|
|
1589
1589
|
};
|
|
1590
|
-
function createResourceParams$
|
|
1590
|
+
function createResourceParams$i(config) {
|
|
1591
1591
|
const resourceParams = {
|
|
1592
1592
|
urlParams: {
|
|
1593
1593
|
contentSpaceId: config.contentSpaceId
|
|
@@ -1598,7 +1598,7 @@ function createResourceParams$g(config) {
|
|
|
1598
1598
|
};
|
|
1599
1599
|
return resourceParams;
|
|
1600
1600
|
}
|
|
1601
|
-
function typeCheckConfig$
|
|
1601
|
+
function typeCheckConfig$i(untrustedConfig) {
|
|
1602
1602
|
const config = {};
|
|
1603
1603
|
const untrustedConfig_contentSpaceId = untrustedConfig.contentSpaceId;
|
|
1604
1604
|
if (typeof untrustedConfig_contentSpaceId === 'string') {
|
|
@@ -1611,28 +1611,28 @@ function typeCheckConfig$g(untrustedConfig) {
|
|
|
1611
1611
|
}
|
|
1612
1612
|
return config;
|
|
1613
1613
|
}
|
|
1614
|
-
function validateAdapterConfig$
|
|
1614
|
+
function validateAdapterConfig$i(untrustedConfig, configPropertyNames) {
|
|
1615
1615
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
1616
1616
|
return null;
|
|
1617
1617
|
}
|
|
1618
1618
|
if (process.env.NODE_ENV !== 'production') {
|
|
1619
1619
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
1620
1620
|
}
|
|
1621
|
-
const config = typeCheckConfig$
|
|
1621
|
+
const config = typeCheckConfig$i(untrustedConfig);
|
|
1622
1622
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
1623
1623
|
return null;
|
|
1624
1624
|
}
|
|
1625
1625
|
return config;
|
|
1626
1626
|
}
|
|
1627
|
-
function buildNetworkSnapshot$
|
|
1628
|
-
const resourceParams = createResourceParams$
|
|
1629
|
-
const request = createResourceRequest$
|
|
1627
|
+
function buildNetworkSnapshot$i(luvio, config, options) {
|
|
1628
|
+
const resourceParams = createResourceParams$i(config);
|
|
1629
|
+
const request = createResourceRequest$i(resourceParams);
|
|
1630
1630
|
return luvio.dispatchResourceRequest(request, options)
|
|
1631
1631
|
.then((response) => {
|
|
1632
1632
|
return luvio.handleSuccessResponse(() => {
|
|
1633
|
-
const snapshot = ingestSuccess$
|
|
1633
|
+
const snapshot = ingestSuccess$h(luvio, resourceParams, response);
|
|
1634
1634
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
1635
|
-
}, () => getResponseCacheKeys$
|
|
1635
|
+
}, () => getResponseCacheKeys$i(luvio, resourceParams, response.body));
|
|
1636
1636
|
}, (response) => {
|
|
1637
1637
|
deepFreeze$u(response);
|
|
1638
1638
|
throw response;
|
|
@@ -1640,12 +1640,12 @@ function buildNetworkSnapshot$g(luvio, config, options) {
|
|
|
1640
1640
|
}
|
|
1641
1641
|
const createManagedContentImportV2JobAdapterFactory = (luvio) => {
|
|
1642
1642
|
return function createManagedContentImportV2Job(untrustedConfig) {
|
|
1643
|
-
const config = validateAdapterConfig$
|
|
1643
|
+
const config = validateAdapterConfig$i(untrustedConfig, createManagedContentImportV2Job_ConfigPropertyNames);
|
|
1644
1644
|
// Invalid or incomplete config
|
|
1645
1645
|
if (config === null) {
|
|
1646
1646
|
throw new Error('Invalid config for "createManagedContentImportV2Job"');
|
|
1647
1647
|
}
|
|
1648
|
-
return buildNetworkSnapshot$
|
|
1648
|
+
return buildNetworkSnapshot$i(luvio, config);
|
|
1649
1649
|
};
|
|
1650
1650
|
};
|
|
1651
1651
|
|
|
@@ -1696,8 +1696,8 @@ function validate$p(obj, path = 'ManagedContentVariantInputRepresentation') {
|
|
|
1696
1696
|
return v_error === undefined ? null : v_error;
|
|
1697
1697
|
}
|
|
1698
1698
|
|
|
1699
|
-
const TTL$
|
|
1700
|
-
const VERSION$
|
|
1699
|
+
const TTL$c = 3600000;
|
|
1700
|
+
const VERSION$c = "7752c6a8bb6b113a02bfde83f39e5957";
|
|
1701
1701
|
function validate$o(obj, path = 'ManagedContentVariantRepresentation') {
|
|
1702
1702
|
const v_error = (() => {
|
|
1703
1703
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -1818,28 +1818,28 @@ function validate$o(obj, path = 'ManagedContentVariantRepresentation') {
|
|
|
1818
1818
|
})();
|
|
1819
1819
|
return v_error === undefined ? null : v_error;
|
|
1820
1820
|
}
|
|
1821
|
-
const RepresentationType$
|
|
1822
|
-
function keyBuilder$
|
|
1823
|
-
return keyPrefix + '::' + RepresentationType$
|
|
1821
|
+
const RepresentationType$c = 'ManagedContentVariantRepresentation';
|
|
1822
|
+
function keyBuilder$t(luvio, config) {
|
|
1823
|
+
return keyPrefix + '::' + RepresentationType$c + ':' + config.id;
|
|
1824
1824
|
}
|
|
1825
|
-
function keyBuilderFromType$
|
|
1825
|
+
function keyBuilderFromType$6(luvio, object) {
|
|
1826
1826
|
const keyParams = {
|
|
1827
1827
|
id: object.managedContentVariantId
|
|
1828
1828
|
};
|
|
1829
|
-
return keyBuilder$
|
|
1829
|
+
return keyBuilder$t(luvio, keyParams);
|
|
1830
1830
|
}
|
|
1831
|
-
function normalize$
|
|
1831
|
+
function normalize$c(input, existing, path, luvio, store, timestamp) {
|
|
1832
1832
|
return input;
|
|
1833
1833
|
}
|
|
1834
|
-
const select$
|
|
1834
|
+
const select$t = function ManagedContentVariantRepresentationSelect() {
|
|
1835
1835
|
return {
|
|
1836
1836
|
kind: 'Fragment',
|
|
1837
|
-
version: VERSION$
|
|
1837
|
+
version: VERSION$c,
|
|
1838
1838
|
private: [],
|
|
1839
1839
|
opaque: true
|
|
1840
1840
|
};
|
|
1841
1841
|
};
|
|
1842
|
-
function equals$
|
|
1842
|
+
function equals$c(existing, incoming) {
|
|
1843
1843
|
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
1844
1844
|
return false;
|
|
1845
1845
|
}
|
|
@@ -1869,62 +1869,62 @@ function deepFreeze$k(input) {
|
|
|
1869
1869
|
deepFreeze$n(input_status);
|
|
1870
1870
|
ObjectFreeze(input);
|
|
1871
1871
|
}
|
|
1872
|
-
const ingest$
|
|
1872
|
+
const ingest$c = function ManagedContentVariantRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1873
1873
|
if (process.env.NODE_ENV !== 'production') {
|
|
1874
1874
|
const validateError = validate$o(input);
|
|
1875
1875
|
if (validateError !== null) {
|
|
1876
1876
|
throw validateError;
|
|
1877
1877
|
}
|
|
1878
1878
|
}
|
|
1879
|
-
const key = keyBuilderFromType$
|
|
1879
|
+
const key = keyBuilderFromType$6(luvio, input);
|
|
1880
1880
|
const existingRecord = store.readEntry(key);
|
|
1881
|
-
const ttlToUse = TTL$
|
|
1882
|
-
let incomingRecord = normalize$
|
|
1881
|
+
const ttlToUse = TTL$c;
|
|
1882
|
+
let incomingRecord = normalize$c(input, store.readEntry(key), {
|
|
1883
1883
|
fullPath: key,
|
|
1884
1884
|
parent: path.parent,
|
|
1885
1885
|
propertyName: path.propertyName,
|
|
1886
1886
|
ttl: ttlToUse
|
|
1887
1887
|
});
|
|
1888
1888
|
deepFreeze$k(input);
|
|
1889
|
-
if (existingRecord === undefined || equals$
|
|
1889
|
+
if (existingRecord === undefined || equals$c(existingRecord, incomingRecord) === false) {
|
|
1890
1890
|
luvio.storePublish(key, incomingRecord);
|
|
1891
1891
|
}
|
|
1892
1892
|
{
|
|
1893
1893
|
const storeMetadataParams = {
|
|
1894
1894
|
ttl: ttlToUse,
|
|
1895
1895
|
namespace: "CMSAuthoring",
|
|
1896
|
-
version: VERSION$
|
|
1897
|
-
representationName: RepresentationType$
|
|
1896
|
+
version: VERSION$c,
|
|
1897
|
+
representationName: RepresentationType$c,
|
|
1898
1898
|
};
|
|
1899
1899
|
luvio.publishStoreMetadata(key, storeMetadataParams);
|
|
1900
1900
|
}
|
|
1901
1901
|
return createLink(key);
|
|
1902
1902
|
};
|
|
1903
|
-
function getTypeCacheKeys$
|
|
1903
|
+
function getTypeCacheKeys$c(luvio, input, fullPathFactory) {
|
|
1904
1904
|
const rootKeySet = new StoreKeyMap();
|
|
1905
1905
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
1906
|
-
const rootKey = keyBuilderFromType$
|
|
1906
|
+
const rootKey = keyBuilderFromType$6(luvio, input);
|
|
1907
1907
|
rootKeySet.set(rootKey, {
|
|
1908
1908
|
namespace: keyPrefix,
|
|
1909
|
-
representationName: RepresentationType$
|
|
1909
|
+
representationName: RepresentationType$c,
|
|
1910
1910
|
mergeable: false
|
|
1911
1911
|
});
|
|
1912
1912
|
return rootKeySet;
|
|
1913
1913
|
}
|
|
1914
1914
|
|
|
1915
|
-
function select$
|
|
1916
|
-
return select$
|
|
1915
|
+
function select$s(luvio, params) {
|
|
1916
|
+
return select$t();
|
|
1917
1917
|
}
|
|
1918
|
-
function getResponseCacheKeys$
|
|
1919
|
-
return getTypeCacheKeys$
|
|
1918
|
+
function getResponseCacheKeys$h(luvio, resourceParams, response) {
|
|
1919
|
+
return getTypeCacheKeys$c(luvio, response);
|
|
1920
1920
|
}
|
|
1921
|
-
function ingestSuccess$
|
|
1921
|
+
function ingestSuccess$g(luvio, resourceParams, response) {
|
|
1922
1922
|
const { body } = response;
|
|
1923
|
-
const key = keyBuilderFromType$
|
|
1924
|
-
luvio.storeIngest(key, ingest$
|
|
1923
|
+
const key = keyBuilderFromType$6(luvio, body);
|
|
1924
|
+
luvio.storeIngest(key, ingest$c, body);
|
|
1925
1925
|
const snapshot = luvio.storeLookup({
|
|
1926
1926
|
recordId: key,
|
|
1927
|
-
node: select$
|
|
1927
|
+
node: select$s(),
|
|
1928
1928
|
variables: {},
|
|
1929
1929
|
});
|
|
1930
1930
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -1934,7 +1934,7 @@ function ingestSuccess$e(luvio, resourceParams, response) {
|
|
|
1934
1934
|
}
|
|
1935
1935
|
return snapshot;
|
|
1936
1936
|
}
|
|
1937
|
-
function createResourceRequest$
|
|
1937
|
+
function createResourceRequest$h(config) {
|
|
1938
1938
|
const headers = {};
|
|
1939
1939
|
return {
|
|
1940
1940
|
baseUri: '/services/data/v58.0',
|
|
@@ -1955,7 +1955,7 @@ const createManagedContentVariant_ConfigPropertyNames = {
|
|
|
1955
1955
|
optional: []
|
|
1956
1956
|
}
|
|
1957
1957
|
};
|
|
1958
|
-
function createResourceParams$
|
|
1958
|
+
function createResourceParams$h(config) {
|
|
1959
1959
|
const resourceParams = {
|
|
1960
1960
|
body: {
|
|
1961
1961
|
managedContentVariantInputParam: config.managedContentVariantInputParam
|
|
@@ -1963,7 +1963,7 @@ function createResourceParams$f(config) {
|
|
|
1963
1963
|
};
|
|
1964
1964
|
return resourceParams;
|
|
1965
1965
|
}
|
|
1966
|
-
function typeCheckConfig$
|
|
1966
|
+
function typeCheckConfig$h(untrustedConfig) {
|
|
1967
1967
|
const config = {};
|
|
1968
1968
|
const untrustedConfig_managedContentVariantInputParam = untrustedConfig.managedContentVariantInputParam;
|
|
1969
1969
|
const referenceManagedContentVariantInputRepresentationValidationError = validate$p(untrustedConfig_managedContentVariantInputParam);
|
|
@@ -1972,28 +1972,28 @@ function typeCheckConfig$f(untrustedConfig) {
|
|
|
1972
1972
|
}
|
|
1973
1973
|
return config;
|
|
1974
1974
|
}
|
|
1975
|
-
function validateAdapterConfig$
|
|
1975
|
+
function validateAdapterConfig$h(untrustedConfig, configPropertyNames) {
|
|
1976
1976
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
1977
1977
|
return null;
|
|
1978
1978
|
}
|
|
1979
1979
|
if (process.env.NODE_ENV !== 'production') {
|
|
1980
1980
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
1981
1981
|
}
|
|
1982
|
-
const config = typeCheckConfig$
|
|
1982
|
+
const config = typeCheckConfig$h(untrustedConfig);
|
|
1983
1983
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
1984
1984
|
return null;
|
|
1985
1985
|
}
|
|
1986
1986
|
return config;
|
|
1987
1987
|
}
|
|
1988
|
-
function buildNetworkSnapshot$
|
|
1989
|
-
const resourceParams = createResourceParams$
|
|
1990
|
-
const request = createResourceRequest$
|
|
1988
|
+
function buildNetworkSnapshot$h(luvio, config, options) {
|
|
1989
|
+
const resourceParams = createResourceParams$h(config);
|
|
1990
|
+
const request = createResourceRequest$h(resourceParams);
|
|
1991
1991
|
return luvio.dispatchResourceRequest(request, options)
|
|
1992
1992
|
.then((response) => {
|
|
1993
1993
|
return luvio.handleSuccessResponse(() => {
|
|
1994
|
-
const snapshot = ingestSuccess$
|
|
1994
|
+
const snapshot = ingestSuccess$g(luvio, resourceParams, response);
|
|
1995
1995
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
1996
|
-
}, () => getResponseCacheKeys$
|
|
1996
|
+
}, () => getResponseCacheKeys$h(luvio, resourceParams, response.body));
|
|
1997
1997
|
}, (response) => {
|
|
1998
1998
|
deepFreeze$u(response);
|
|
1999
1999
|
throw response;
|
|
@@ -2001,12 +2001,12 @@ function buildNetworkSnapshot$f(luvio, config, options) {
|
|
|
2001
2001
|
}
|
|
2002
2002
|
const createManagedContentVariantAdapterFactory = (luvio) => {
|
|
2003
2003
|
return function createManagedContentVariant(untrustedConfig) {
|
|
2004
|
-
const config = validateAdapterConfig$
|
|
2004
|
+
const config = validateAdapterConfig$h(untrustedConfig, createManagedContentVariant_ConfigPropertyNames);
|
|
2005
2005
|
// Invalid or incomplete config
|
|
2006
2006
|
if (config === null) {
|
|
2007
2007
|
throw new Error('Invalid config for "createManagedContentVariant"');
|
|
2008
2008
|
}
|
|
2009
|
-
return buildNetworkSnapshot$
|
|
2009
|
+
return buildNetworkSnapshot$h(luvio, config);
|
|
2010
2010
|
};
|
|
2011
2011
|
};
|
|
2012
2012
|
|
|
@@ -2080,8 +2080,8 @@ function validate$n(obj, path = 'ManagedContentTranslationV2RequestInputRep') {
|
|
|
2080
2080
|
return v_error === undefined ? null : v_error;
|
|
2081
2081
|
}
|
|
2082
2082
|
|
|
2083
|
-
const TTL$
|
|
2084
|
-
const VERSION$
|
|
2083
|
+
const TTL$b = 100;
|
|
2084
|
+
const VERSION$b = "52e643b998d6763482c6d74542b38408";
|
|
2085
2085
|
function validate$m(obj, path = 'ManagedContentTranslationV2Representation') {
|
|
2086
2086
|
const v_error = (() => {
|
|
2087
2087
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -2239,28 +2239,28 @@ function validate$m(obj, path = 'ManagedContentTranslationV2Representation') {
|
|
|
2239
2239
|
})();
|
|
2240
2240
|
return v_error === undefined ? null : v_error;
|
|
2241
2241
|
}
|
|
2242
|
-
const RepresentationType$
|
|
2243
|
-
function keyBuilder$
|
|
2244
|
-
return keyPrefix + '::' + RepresentationType$
|
|
2242
|
+
const RepresentationType$b = 'ManagedContentTranslationV2Representation';
|
|
2243
|
+
function keyBuilder$s(luvio, config) {
|
|
2244
|
+
return keyPrefix + '::' + RepresentationType$b + ':' + config.id;
|
|
2245
2245
|
}
|
|
2246
|
-
function keyBuilderFromType$
|
|
2246
|
+
function keyBuilderFromType$5(luvio, object) {
|
|
2247
2247
|
const keyParams = {
|
|
2248
2248
|
id: object.id
|
|
2249
2249
|
};
|
|
2250
|
-
return keyBuilder$
|
|
2250
|
+
return keyBuilder$s(luvio, keyParams);
|
|
2251
2251
|
}
|
|
2252
|
-
function normalize$
|
|
2252
|
+
function normalize$b(input, existing, path, luvio, store, timestamp) {
|
|
2253
2253
|
return input;
|
|
2254
2254
|
}
|
|
2255
|
-
const select$
|
|
2255
|
+
const select$r = function ManagedContentTranslationV2RepresentationSelect() {
|
|
2256
2256
|
return {
|
|
2257
2257
|
kind: 'Fragment',
|
|
2258
|
-
version: VERSION$
|
|
2258
|
+
version: VERSION$b,
|
|
2259
2259
|
private: [],
|
|
2260
2260
|
opaque: true
|
|
2261
2261
|
};
|
|
2262
2262
|
};
|
|
2263
|
-
function equals$
|
|
2263
|
+
function equals$b(existing, incoming) {
|
|
2264
2264
|
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
2265
2265
|
return false;
|
|
2266
2266
|
}
|
|
@@ -2269,62 +2269,62 @@ function equals$a(existing, incoming) {
|
|
|
2269
2269
|
function deepFreeze$j(input) {
|
|
2270
2270
|
ObjectFreeze(input);
|
|
2271
2271
|
}
|
|
2272
|
-
const ingest$
|
|
2272
|
+
const ingest$b = function ManagedContentTranslationV2RepresentationIngest(input, path, luvio, store, timestamp) {
|
|
2273
2273
|
if (process.env.NODE_ENV !== 'production') {
|
|
2274
2274
|
const validateError = validate$m(input);
|
|
2275
2275
|
if (validateError !== null) {
|
|
2276
2276
|
throw validateError;
|
|
2277
2277
|
}
|
|
2278
2278
|
}
|
|
2279
|
-
const key = keyBuilderFromType$
|
|
2279
|
+
const key = keyBuilderFromType$5(luvio, input);
|
|
2280
2280
|
const existingRecord = store.readEntry(key);
|
|
2281
|
-
const ttlToUse = TTL$
|
|
2282
|
-
let incomingRecord = normalize$
|
|
2281
|
+
const ttlToUse = TTL$b;
|
|
2282
|
+
let incomingRecord = normalize$b(input, store.readEntry(key), {
|
|
2283
2283
|
fullPath: key,
|
|
2284
2284
|
parent: path.parent,
|
|
2285
2285
|
propertyName: path.propertyName,
|
|
2286
2286
|
ttl: ttlToUse
|
|
2287
2287
|
});
|
|
2288
2288
|
deepFreeze$j(input);
|
|
2289
|
-
if (existingRecord === undefined || equals$
|
|
2289
|
+
if (existingRecord === undefined || equals$b(existingRecord, incomingRecord) === false) {
|
|
2290
2290
|
luvio.storePublish(key, incomingRecord);
|
|
2291
2291
|
}
|
|
2292
2292
|
{
|
|
2293
2293
|
const storeMetadataParams = {
|
|
2294
2294
|
ttl: ttlToUse,
|
|
2295
2295
|
namespace: "CMSAuthoring",
|
|
2296
|
-
version: VERSION$
|
|
2297
|
-
representationName: RepresentationType$
|
|
2296
|
+
version: VERSION$b,
|
|
2297
|
+
representationName: RepresentationType$b,
|
|
2298
2298
|
};
|
|
2299
2299
|
luvio.publishStoreMetadata(key, storeMetadataParams);
|
|
2300
2300
|
}
|
|
2301
2301
|
return createLink(key);
|
|
2302
2302
|
};
|
|
2303
|
-
function getTypeCacheKeys$
|
|
2303
|
+
function getTypeCacheKeys$b(luvio, input, fullPathFactory) {
|
|
2304
2304
|
const rootKeySet = new StoreKeyMap();
|
|
2305
2305
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
2306
|
-
const rootKey = keyBuilderFromType$
|
|
2306
|
+
const rootKey = keyBuilderFromType$5(luvio, input);
|
|
2307
2307
|
rootKeySet.set(rootKey, {
|
|
2308
2308
|
namespace: keyPrefix,
|
|
2309
|
-
representationName: RepresentationType$
|
|
2309
|
+
representationName: RepresentationType$b,
|
|
2310
2310
|
mergeable: false
|
|
2311
2311
|
});
|
|
2312
2312
|
return rootKeySet;
|
|
2313
2313
|
}
|
|
2314
2314
|
|
|
2315
|
-
function select$
|
|
2316
|
-
return select$
|
|
2315
|
+
function select$q(luvio, params) {
|
|
2316
|
+
return select$r();
|
|
2317
2317
|
}
|
|
2318
|
-
function getResponseCacheKeys$
|
|
2319
|
-
return getTypeCacheKeys$
|
|
2318
|
+
function getResponseCacheKeys$g(luvio, resourceParams, response) {
|
|
2319
|
+
return getTypeCacheKeys$b(luvio, response);
|
|
2320
2320
|
}
|
|
2321
|
-
function ingestSuccess$
|
|
2321
|
+
function ingestSuccess$f(luvio, resourceParams, response) {
|
|
2322
2322
|
const { body } = response;
|
|
2323
|
-
const key = keyBuilderFromType$
|
|
2324
|
-
luvio.storeIngest(key, ingest$
|
|
2323
|
+
const key = keyBuilderFromType$5(luvio, body);
|
|
2324
|
+
luvio.storeIngest(key, ingest$b, body);
|
|
2325
2325
|
const snapshot = luvio.storeLookup({
|
|
2326
2326
|
recordId: key,
|
|
2327
|
-
node: select$
|
|
2327
|
+
node: select$q(),
|
|
2328
2328
|
variables: {},
|
|
2329
2329
|
});
|
|
2330
2330
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -2334,7 +2334,7 @@ function ingestSuccess$d(luvio, resourceParams, response) {
|
|
|
2334
2334
|
}
|
|
2335
2335
|
return snapshot;
|
|
2336
2336
|
}
|
|
2337
|
-
function createResourceRequest$
|
|
2337
|
+
function createResourceRequest$g(config) {
|
|
2338
2338
|
const headers = {};
|
|
2339
2339
|
return {
|
|
2340
2340
|
baseUri: '/services/data/v58.0',
|
|
@@ -2355,7 +2355,7 @@ const createTranslationV2Job_ConfigPropertyNames = {
|
|
|
2355
2355
|
optional: []
|
|
2356
2356
|
}
|
|
2357
2357
|
};
|
|
2358
|
-
function createResourceParams$
|
|
2358
|
+
function createResourceParams$g(config) {
|
|
2359
2359
|
const resourceParams = {
|
|
2360
2360
|
urlParams: {
|
|
2361
2361
|
contentSpaceId: config.contentSpaceId
|
|
@@ -2366,7 +2366,7 @@ function createResourceParams$e(config) {
|
|
|
2366
2366
|
};
|
|
2367
2367
|
return resourceParams;
|
|
2368
2368
|
}
|
|
2369
|
-
function typeCheckConfig$
|
|
2369
|
+
function typeCheckConfig$g(untrustedConfig) {
|
|
2370
2370
|
const config = {};
|
|
2371
2371
|
const untrustedConfig_contentSpaceId = untrustedConfig.contentSpaceId;
|
|
2372
2372
|
if (typeof untrustedConfig_contentSpaceId === 'string') {
|
|
@@ -2379,28 +2379,28 @@ function typeCheckConfig$e(untrustedConfig) {
|
|
|
2379
2379
|
}
|
|
2380
2380
|
return config;
|
|
2381
2381
|
}
|
|
2382
|
-
function validateAdapterConfig$
|
|
2382
|
+
function validateAdapterConfig$g(untrustedConfig, configPropertyNames) {
|
|
2383
2383
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
2384
2384
|
return null;
|
|
2385
2385
|
}
|
|
2386
2386
|
if (process.env.NODE_ENV !== 'production') {
|
|
2387
2387
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
2388
2388
|
}
|
|
2389
|
-
const config = typeCheckConfig$
|
|
2389
|
+
const config = typeCheckConfig$g(untrustedConfig);
|
|
2390
2390
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
2391
2391
|
return null;
|
|
2392
2392
|
}
|
|
2393
2393
|
return config;
|
|
2394
2394
|
}
|
|
2395
|
-
function buildNetworkSnapshot$
|
|
2396
|
-
const resourceParams = createResourceParams$
|
|
2397
|
-
const request = createResourceRequest$
|
|
2395
|
+
function buildNetworkSnapshot$g(luvio, config, options) {
|
|
2396
|
+
const resourceParams = createResourceParams$g(config);
|
|
2397
|
+
const request = createResourceRequest$g(resourceParams);
|
|
2398
2398
|
return luvio.dispatchResourceRequest(request, options)
|
|
2399
2399
|
.then((response) => {
|
|
2400
2400
|
return luvio.handleSuccessResponse(() => {
|
|
2401
|
-
const snapshot = ingestSuccess$
|
|
2401
|
+
const snapshot = ingestSuccess$f(luvio, resourceParams, response);
|
|
2402
2402
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
2403
|
-
}, () => getResponseCacheKeys$
|
|
2403
|
+
}, () => getResponseCacheKeys$g(luvio, resourceParams, response.body));
|
|
2404
2404
|
}, (response) => {
|
|
2405
2405
|
deepFreeze$u(response);
|
|
2406
2406
|
throw response;
|
|
@@ -2408,35 +2408,35 @@ function buildNetworkSnapshot$e(luvio, config, options) {
|
|
|
2408
2408
|
}
|
|
2409
2409
|
const createTranslationV2JobAdapterFactory = (luvio) => {
|
|
2410
2410
|
return function createTranslationV2Job(untrustedConfig) {
|
|
2411
|
-
const config = validateAdapterConfig$
|
|
2411
|
+
const config = validateAdapterConfig$g(untrustedConfig, createTranslationV2Job_ConfigPropertyNames);
|
|
2412
2412
|
// Invalid or incomplete config
|
|
2413
2413
|
if (config === null) {
|
|
2414
2414
|
throw new Error('Invalid config for "createTranslationV2Job"');
|
|
2415
2415
|
}
|
|
2416
|
-
return buildNetworkSnapshot$
|
|
2416
|
+
return buildNetworkSnapshot$g(luvio, config);
|
|
2417
2417
|
};
|
|
2418
2418
|
};
|
|
2419
2419
|
|
|
2420
|
-
function keyBuilder$
|
|
2421
|
-
return keyBuilder$
|
|
2420
|
+
function keyBuilder$r(luvio, params) {
|
|
2421
|
+
return keyBuilder$t(luvio, {
|
|
2422
2422
|
id: params.urlParams.variantId
|
|
2423
2423
|
});
|
|
2424
2424
|
}
|
|
2425
|
-
function getResponseCacheKeys$
|
|
2426
|
-
const key = keyBuilder$
|
|
2425
|
+
function getResponseCacheKeys$f(luvio, resourceParams) {
|
|
2426
|
+
const key = keyBuilder$r(luvio, resourceParams);
|
|
2427
2427
|
const cacheKeyMap = new StoreKeyMap();
|
|
2428
2428
|
cacheKeyMap.set(key, {
|
|
2429
2429
|
namespace: keyPrefix,
|
|
2430
|
-
representationName: RepresentationType$
|
|
2430
|
+
representationName: RepresentationType$c,
|
|
2431
2431
|
mergeable: false
|
|
2432
2432
|
});
|
|
2433
2433
|
return cacheKeyMap;
|
|
2434
2434
|
}
|
|
2435
2435
|
function evictSuccess(luvio, resourceParams) {
|
|
2436
|
-
const key = keyBuilder$
|
|
2436
|
+
const key = keyBuilder$r(luvio, resourceParams);
|
|
2437
2437
|
luvio.storeEvict(key);
|
|
2438
2438
|
}
|
|
2439
|
-
function createResourceRequest$
|
|
2439
|
+
function createResourceRequest$f(config) {
|
|
2440
2440
|
const headers = {};
|
|
2441
2441
|
return {
|
|
2442
2442
|
baseUri: '/services/data/v58.0',
|
|
@@ -2458,7 +2458,7 @@ const deleteManagedContentVariant_ConfigPropertyNames = {
|
|
|
2458
2458
|
optional: []
|
|
2459
2459
|
}
|
|
2460
2460
|
};
|
|
2461
|
-
function createResourceParams$
|
|
2461
|
+
function createResourceParams$f(config) {
|
|
2462
2462
|
const resourceParams = {
|
|
2463
2463
|
urlParams: {
|
|
2464
2464
|
variantId: config.variantId
|
|
@@ -2466,7 +2466,7 @@ function createResourceParams$d(config) {
|
|
|
2466
2466
|
};
|
|
2467
2467
|
return resourceParams;
|
|
2468
2468
|
}
|
|
2469
|
-
function typeCheckConfig$
|
|
2469
|
+
function typeCheckConfig$f(untrustedConfig) {
|
|
2470
2470
|
const config = {};
|
|
2471
2471
|
const untrustedConfig_variantId = untrustedConfig.variantId;
|
|
2472
2472
|
if (typeof untrustedConfig_variantId === 'string') {
|
|
@@ -2474,28 +2474,28 @@ function typeCheckConfig$d(untrustedConfig) {
|
|
|
2474
2474
|
}
|
|
2475
2475
|
return config;
|
|
2476
2476
|
}
|
|
2477
|
-
function validateAdapterConfig$
|
|
2477
|
+
function validateAdapterConfig$f(untrustedConfig, configPropertyNames) {
|
|
2478
2478
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
2479
2479
|
return null;
|
|
2480
2480
|
}
|
|
2481
2481
|
if (process.env.NODE_ENV !== 'production') {
|
|
2482
2482
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
2483
2483
|
}
|
|
2484
|
-
const config = typeCheckConfig$
|
|
2484
|
+
const config = typeCheckConfig$f(untrustedConfig);
|
|
2485
2485
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
2486
2486
|
return null;
|
|
2487
2487
|
}
|
|
2488
2488
|
return config;
|
|
2489
2489
|
}
|
|
2490
|
-
function buildNetworkSnapshot$
|
|
2491
|
-
const resourceParams = createResourceParams$
|
|
2492
|
-
const request = createResourceRequest$
|
|
2490
|
+
function buildNetworkSnapshot$f(luvio, config, options) {
|
|
2491
|
+
const resourceParams = createResourceParams$f(config);
|
|
2492
|
+
const request = createResourceRequest$f(resourceParams);
|
|
2493
2493
|
return luvio.dispatchResourceRequest(request, options)
|
|
2494
2494
|
.then(() => {
|
|
2495
2495
|
return luvio.handleSuccessResponse(() => {
|
|
2496
2496
|
evictSuccess(luvio, resourceParams);
|
|
2497
2497
|
return luvio.storeBroadcast();
|
|
2498
|
-
}, () => getResponseCacheKeys$
|
|
2498
|
+
}, () => getResponseCacheKeys$f(luvio, resourceParams));
|
|
2499
2499
|
}, (response) => {
|
|
2500
2500
|
deepFreeze$u(response);
|
|
2501
2501
|
throw response;
|
|
@@ -2503,12 +2503,12 @@ function buildNetworkSnapshot$d(luvio, config, options) {
|
|
|
2503
2503
|
}
|
|
2504
2504
|
const deleteManagedContentVariantAdapterFactory = (luvio) => {
|
|
2505
2505
|
return function CMSAuthoringdeleteManagedContentVariant(untrustedConfig) {
|
|
2506
|
-
const config = validateAdapterConfig$
|
|
2506
|
+
const config = validateAdapterConfig$f(untrustedConfig, deleteManagedContentVariant_ConfigPropertyNames);
|
|
2507
2507
|
// Invalid or incomplete config
|
|
2508
2508
|
if (config === null) {
|
|
2509
2509
|
throw new Error(`Invalid config for "${adapterName}"`);
|
|
2510
2510
|
}
|
|
2511
|
-
return buildNetworkSnapshot$
|
|
2511
|
+
return buildNetworkSnapshot$f(luvio, config);
|
|
2512
2512
|
};
|
|
2513
2513
|
};
|
|
2514
2514
|
|
|
@@ -2589,8 +2589,8 @@ function deepFreeze$h(input) {
|
|
|
2589
2589
|
ObjectFreeze(input);
|
|
2590
2590
|
}
|
|
2591
2591
|
|
|
2592
|
-
const TTL$
|
|
2593
|
-
const VERSION$
|
|
2592
|
+
const TTL$a = 100;
|
|
2593
|
+
const VERSION$a = "eeea454f1268ece5c3e24c986688b876";
|
|
2594
2594
|
function validate$j(obj, path = 'ManagedContentCollectionDetailRepresentation') {
|
|
2595
2595
|
const v_error = (() => {
|
|
2596
2596
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -2662,30 +2662,30 @@ function validate$j(obj, path = 'ManagedContentCollectionDetailRepresentation')
|
|
|
2662
2662
|
})();
|
|
2663
2663
|
return v_error === undefined ? null : v_error;
|
|
2664
2664
|
}
|
|
2665
|
-
const RepresentationType$
|
|
2666
|
-
function keyBuilder$
|
|
2667
|
-
return keyPrefix + '::' + RepresentationType$
|
|
2665
|
+
const RepresentationType$a = 'ManagedContentCollectionDetailRepresentation';
|
|
2666
|
+
function keyBuilder$q(luvio, config) {
|
|
2667
|
+
return keyPrefix + '::' + RepresentationType$a + ':' + config.collection_key + ':' + config.language + ':' + config.version;
|
|
2668
2668
|
}
|
|
2669
|
-
function keyBuilderFromType$
|
|
2669
|
+
function keyBuilderFromType$4(luvio, object) {
|
|
2670
2670
|
const keyParams = {
|
|
2671
2671
|
collection_key: object.collectionKey,
|
|
2672
2672
|
language: object.language,
|
|
2673
2673
|
version: object.versionNumber
|
|
2674
2674
|
};
|
|
2675
|
-
return keyBuilder$
|
|
2675
|
+
return keyBuilder$q(luvio, keyParams);
|
|
2676
2676
|
}
|
|
2677
|
-
function normalize$
|
|
2677
|
+
function normalize$a(input, existing, path, luvio, store, timestamp) {
|
|
2678
2678
|
return input;
|
|
2679
2679
|
}
|
|
2680
|
-
const select$
|
|
2680
|
+
const select$p = function ManagedContentCollectionDetailRepresentationSelect() {
|
|
2681
2681
|
return {
|
|
2682
2682
|
kind: 'Fragment',
|
|
2683
|
-
version: VERSION$
|
|
2683
|
+
version: VERSION$a,
|
|
2684
2684
|
private: [],
|
|
2685
2685
|
opaque: true
|
|
2686
2686
|
};
|
|
2687
2687
|
};
|
|
2688
|
-
function equals$
|
|
2688
|
+
function equals$a(existing, incoming) {
|
|
2689
2689
|
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
2690
2690
|
return false;
|
|
2691
2691
|
}
|
|
@@ -2702,69 +2702,69 @@ function deepFreeze$g(input) {
|
|
|
2702
2702
|
ObjectFreeze(input_items);
|
|
2703
2703
|
ObjectFreeze(input);
|
|
2704
2704
|
}
|
|
2705
|
-
const ingest$
|
|
2705
|
+
const ingest$a = function ManagedContentCollectionDetailRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
2706
2706
|
if (process.env.NODE_ENV !== 'production') {
|
|
2707
2707
|
const validateError = validate$j(input);
|
|
2708
2708
|
if (validateError !== null) {
|
|
2709
2709
|
throw validateError;
|
|
2710
2710
|
}
|
|
2711
2711
|
}
|
|
2712
|
-
const key = keyBuilderFromType$
|
|
2712
|
+
const key = keyBuilderFromType$4(luvio, input);
|
|
2713
2713
|
const existingRecord = store.readEntry(key);
|
|
2714
|
-
const ttlToUse = TTL$
|
|
2715
|
-
let incomingRecord = normalize$
|
|
2714
|
+
const ttlToUse = TTL$a;
|
|
2715
|
+
let incomingRecord = normalize$a(input, store.readEntry(key), {
|
|
2716
2716
|
fullPath: key,
|
|
2717
2717
|
parent: path.parent,
|
|
2718
2718
|
propertyName: path.propertyName,
|
|
2719
2719
|
ttl: ttlToUse
|
|
2720
2720
|
});
|
|
2721
2721
|
deepFreeze$g(input);
|
|
2722
|
-
if (existingRecord === undefined || equals$
|
|
2722
|
+
if (existingRecord === undefined || equals$a(existingRecord, incomingRecord) === false) {
|
|
2723
2723
|
luvio.storePublish(key, incomingRecord);
|
|
2724
2724
|
}
|
|
2725
2725
|
{
|
|
2726
2726
|
const storeMetadataParams = {
|
|
2727
2727
|
ttl: ttlToUse,
|
|
2728
2728
|
namespace: "CMSAuthoring",
|
|
2729
|
-
version: VERSION$
|
|
2730
|
-
representationName: RepresentationType$
|
|
2729
|
+
version: VERSION$a,
|
|
2730
|
+
representationName: RepresentationType$a,
|
|
2731
2731
|
};
|
|
2732
2732
|
luvio.publishStoreMetadata(key, storeMetadataParams);
|
|
2733
2733
|
}
|
|
2734
2734
|
return createLink(key);
|
|
2735
2735
|
};
|
|
2736
|
-
function getTypeCacheKeys$
|
|
2736
|
+
function getTypeCacheKeys$a(luvio, input, fullPathFactory) {
|
|
2737
2737
|
const rootKeySet = new StoreKeyMap();
|
|
2738
2738
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
2739
|
-
const rootKey = keyBuilderFromType$
|
|
2739
|
+
const rootKey = keyBuilderFromType$4(luvio, input);
|
|
2740
2740
|
rootKeySet.set(rootKey, {
|
|
2741
2741
|
namespace: keyPrefix,
|
|
2742
|
-
representationName: RepresentationType$
|
|
2742
|
+
representationName: RepresentationType$a,
|
|
2743
2743
|
mergeable: false
|
|
2744
2744
|
});
|
|
2745
2745
|
return rootKeySet;
|
|
2746
2746
|
}
|
|
2747
2747
|
|
|
2748
|
-
function select$
|
|
2749
|
-
return select$
|
|
2748
|
+
function select$o(luvio, params) {
|
|
2749
|
+
return select$p();
|
|
2750
2750
|
}
|
|
2751
|
-
function keyBuilder$
|
|
2752
|
-
return keyBuilder$
|
|
2751
|
+
function keyBuilder$p(luvio, params) {
|
|
2752
|
+
return keyBuilder$q(luvio, {
|
|
2753
2753
|
collection_key: params.urlParams.collectionKeyOrId,
|
|
2754
2754
|
language: params.queryParams.language || '',
|
|
2755
2755
|
version: params.queryParams.version || ''
|
|
2756
2756
|
});
|
|
2757
2757
|
}
|
|
2758
|
-
function getResponseCacheKeys$
|
|
2759
|
-
return getTypeCacheKeys$
|
|
2758
|
+
function getResponseCacheKeys$e(luvio, resourceParams, response) {
|
|
2759
|
+
return getTypeCacheKeys$a(luvio, response);
|
|
2760
2760
|
}
|
|
2761
|
-
function ingestSuccess$
|
|
2761
|
+
function ingestSuccess$e(luvio, resourceParams, response, snapshotRefresh) {
|
|
2762
2762
|
const { body } = response;
|
|
2763
|
-
const key = keyBuilder$
|
|
2764
|
-
luvio.storeIngest(key, ingest$
|
|
2763
|
+
const key = keyBuilder$p(luvio, resourceParams);
|
|
2764
|
+
luvio.storeIngest(key, ingest$a, body);
|
|
2765
2765
|
const snapshot = luvio.storeLookup({
|
|
2766
2766
|
recordId: key,
|
|
2767
|
-
node: select$
|
|
2767
|
+
node: select$o(),
|
|
2768
2768
|
variables: {},
|
|
2769
2769
|
}, snapshotRefresh);
|
|
2770
2770
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -2774,19 +2774,19 @@ function ingestSuccess$c(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
2774
2774
|
}
|
|
2775
2775
|
return snapshot;
|
|
2776
2776
|
}
|
|
2777
|
-
function ingestError$
|
|
2778
|
-
const key = keyBuilder$
|
|
2777
|
+
function ingestError$a(luvio, params, error, snapshotRefresh) {
|
|
2778
|
+
const key = keyBuilder$p(luvio, params);
|
|
2779
2779
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
2780
2780
|
const storeMetadataParams = {
|
|
2781
|
-
ttl: TTL$
|
|
2781
|
+
ttl: TTL$a,
|
|
2782
2782
|
namespace: keyPrefix,
|
|
2783
|
-
version: VERSION$
|
|
2784
|
-
representationName: RepresentationType$
|
|
2783
|
+
version: VERSION$a,
|
|
2784
|
+
representationName: RepresentationType$a
|
|
2785
2785
|
};
|
|
2786
2786
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
2787
2787
|
return errorSnapshot;
|
|
2788
2788
|
}
|
|
2789
|
-
function createResourceRequest$
|
|
2789
|
+
function createResourceRequest$e(config) {
|
|
2790
2790
|
const headers = {};
|
|
2791
2791
|
return {
|
|
2792
2792
|
baseUri: '/services/data/v58.0',
|
|
@@ -2800,7 +2800,7 @@ function createResourceRequest$c(config) {
|
|
|
2800
2800
|
};
|
|
2801
2801
|
}
|
|
2802
2802
|
|
|
2803
|
-
function onFetchResponseSuccess$
|
|
2803
|
+
function onFetchResponseSuccess$c(luvio, config, resourceParams, response) {
|
|
2804
2804
|
let updatedResourceParams = resourceParams;
|
|
2805
2805
|
// If language is not provided in request resource params, use language from the response
|
|
2806
2806
|
// and update the response params. As this resource params will be used to build a cache key.
|
|
@@ -2812,7 +2812,7 @@ function onFetchResponseSuccess$b(luvio, config, resourceParams, response) {
|
|
|
2812
2812
|
if (updatedResourceParams.queryParams.version === undefined) {
|
|
2813
2813
|
updatedResourceParams.queryParams.version = response.body.versionNumber;
|
|
2814
2814
|
}
|
|
2815
|
-
return onFetchResponseSuccess$
|
|
2815
|
+
return onFetchResponseSuccess$b(luvio, config, updatedResourceParams, response);
|
|
2816
2816
|
}
|
|
2817
2817
|
|
|
2818
2818
|
const getCollectionItems_ConfigPropertyNames = {
|
|
@@ -2822,7 +2822,7 @@ const getCollectionItems_ConfigPropertyNames = {
|
|
|
2822
2822
|
optional: ['language', 'version']
|
|
2823
2823
|
}
|
|
2824
2824
|
};
|
|
2825
|
-
function createResourceParams$
|
|
2825
|
+
function createResourceParams$e(config) {
|
|
2826
2826
|
const resourceParams = {
|
|
2827
2827
|
urlParams: {
|
|
2828
2828
|
collectionKeyOrId: config.collectionKeyOrId
|
|
@@ -2833,11 +2833,11 @@ function createResourceParams$c(config) {
|
|
|
2833
2833
|
};
|
|
2834
2834
|
return resourceParams;
|
|
2835
2835
|
}
|
|
2836
|
-
function keyBuilder$
|
|
2837
|
-
const resourceParams = createResourceParams$
|
|
2838
|
-
return keyBuilder$
|
|
2836
|
+
function keyBuilder$o(luvio, config) {
|
|
2837
|
+
const resourceParams = createResourceParams$e(config);
|
|
2838
|
+
return keyBuilder$p(luvio, resourceParams);
|
|
2839
2839
|
}
|
|
2840
|
-
function typeCheckConfig$
|
|
2840
|
+
function typeCheckConfig$e(untrustedConfig) {
|
|
2841
2841
|
const config = {};
|
|
2842
2842
|
const untrustedConfig_collectionKeyOrId = untrustedConfig.collectionKeyOrId;
|
|
2843
2843
|
if (typeof untrustedConfig_collectionKeyOrId === 'string') {
|
|
@@ -2853,48 +2853,48 @@ function typeCheckConfig$c(untrustedConfig) {
|
|
|
2853
2853
|
}
|
|
2854
2854
|
return config;
|
|
2855
2855
|
}
|
|
2856
|
-
function validateAdapterConfig$
|
|
2856
|
+
function validateAdapterConfig$e(untrustedConfig, configPropertyNames) {
|
|
2857
2857
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
2858
2858
|
return null;
|
|
2859
2859
|
}
|
|
2860
2860
|
if (process.env.NODE_ENV !== 'production') {
|
|
2861
2861
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
2862
2862
|
}
|
|
2863
|
-
const config = typeCheckConfig$
|
|
2863
|
+
const config = typeCheckConfig$e(untrustedConfig);
|
|
2864
2864
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
2865
2865
|
return null;
|
|
2866
2866
|
}
|
|
2867
2867
|
return config;
|
|
2868
2868
|
}
|
|
2869
|
-
function adapterFragment$
|
|
2870
|
-
createResourceParams$
|
|
2871
|
-
return select$
|
|
2869
|
+
function adapterFragment$a(luvio, config) {
|
|
2870
|
+
createResourceParams$e(config);
|
|
2871
|
+
return select$o();
|
|
2872
2872
|
}
|
|
2873
|
-
function onFetchResponseSuccess$
|
|
2874
|
-
const snapshot = ingestSuccess$
|
|
2873
|
+
function onFetchResponseSuccess$b(luvio, config, resourceParams, response) {
|
|
2874
|
+
const snapshot = ingestSuccess$e(luvio, resourceParams, response, {
|
|
2875
2875
|
config,
|
|
2876
|
-
resolve: () => buildNetworkSnapshot$
|
|
2876
|
+
resolve: () => buildNetworkSnapshot$e(luvio, config, snapshotRefreshOptions)
|
|
2877
2877
|
});
|
|
2878
2878
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
2879
2879
|
}
|
|
2880
|
-
function onFetchResponseError$
|
|
2881
|
-
const snapshot = ingestError$
|
|
2880
|
+
function onFetchResponseError$a(luvio, config, resourceParams, response) {
|
|
2881
|
+
const snapshot = ingestError$a(luvio, resourceParams, response, {
|
|
2882
2882
|
config,
|
|
2883
|
-
resolve: () => buildNetworkSnapshot$
|
|
2883
|
+
resolve: () => buildNetworkSnapshot$e(luvio, config, snapshotRefreshOptions)
|
|
2884
2884
|
});
|
|
2885
2885
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
2886
2886
|
}
|
|
2887
|
-
function buildNetworkSnapshot$
|
|
2888
|
-
const resourceParams = createResourceParams$
|
|
2889
|
-
const request = createResourceRequest$
|
|
2887
|
+
function buildNetworkSnapshot$e(luvio, config, options) {
|
|
2888
|
+
const resourceParams = createResourceParams$e(config);
|
|
2889
|
+
const request = createResourceRequest$e(resourceParams);
|
|
2890
2890
|
return luvio.dispatchResourceRequest(request, options)
|
|
2891
2891
|
.then((response) => {
|
|
2892
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
2892
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$c(luvio, config, resourceParams, response), () => getResponseCacheKeys$e(luvio, resourceParams, response.body));
|
|
2893
2893
|
}, (response) => {
|
|
2894
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
2894
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$a(luvio, config, resourceParams, response));
|
|
2895
2895
|
});
|
|
2896
2896
|
}
|
|
2897
|
-
function buildNetworkSnapshotCachePolicy$
|
|
2897
|
+
function buildNetworkSnapshotCachePolicy$a(context, coercedAdapterRequestContext) {
|
|
2898
2898
|
const { luvio, config } = context;
|
|
2899
2899
|
const { networkPriority, requestCorrelator, eventObservers } = coercedAdapterRequestContext;
|
|
2900
2900
|
const dispatchOptions = {
|
|
@@ -2909,51 +2909,51 @@ function buildNetworkSnapshotCachePolicy$9(context, coercedAdapterRequestContext
|
|
|
2909
2909
|
priority: networkPriority
|
|
2910
2910
|
};
|
|
2911
2911
|
}
|
|
2912
|
-
return buildNetworkSnapshot$
|
|
2912
|
+
return buildNetworkSnapshot$e(luvio, config, dispatchOptions);
|
|
2913
2913
|
}
|
|
2914
|
-
function buildCachedSnapshotCachePolicy$
|
|
2914
|
+
function buildCachedSnapshotCachePolicy$a(context, storeLookup) {
|
|
2915
2915
|
const { luvio, config } = context;
|
|
2916
2916
|
const selector = {
|
|
2917
|
-
recordId: keyBuilder$
|
|
2918
|
-
node: adapterFragment$
|
|
2917
|
+
recordId: keyBuilder$o(luvio, config),
|
|
2918
|
+
node: adapterFragment$a(luvio, config),
|
|
2919
2919
|
variables: {},
|
|
2920
2920
|
};
|
|
2921
2921
|
const cacheSnapshot = storeLookup(selector, {
|
|
2922
2922
|
config,
|
|
2923
|
-
resolve: () => buildNetworkSnapshot$
|
|
2923
|
+
resolve: () => buildNetworkSnapshot$e(luvio, config, snapshotRefreshOptions)
|
|
2924
2924
|
});
|
|
2925
2925
|
return cacheSnapshot;
|
|
2926
2926
|
}
|
|
2927
2927
|
const getCollectionItemsAdapterFactory = (luvio) => function CMSAuthoring__getCollectionItems(untrustedConfig, requestContext) {
|
|
2928
|
-
const config = validateAdapterConfig$
|
|
2928
|
+
const config = validateAdapterConfig$e(untrustedConfig, getCollectionItems_ConfigPropertyNames);
|
|
2929
2929
|
// Invalid or incomplete config
|
|
2930
2930
|
if (config === null) {
|
|
2931
2931
|
return null;
|
|
2932
2932
|
}
|
|
2933
2933
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
2934
|
-
buildCachedSnapshotCachePolicy$
|
|
2934
|
+
buildCachedSnapshotCachePolicy$a, buildNetworkSnapshotCachePolicy$a);
|
|
2935
2935
|
};
|
|
2936
2936
|
|
|
2937
|
-
function select$
|
|
2938
|
-
return select$
|
|
2937
|
+
function select$n(luvio, params) {
|
|
2938
|
+
return select$y();
|
|
2939
2939
|
}
|
|
2940
|
-
function keyBuilder$
|
|
2941
|
-
return keyBuilder$
|
|
2940
|
+
function keyBuilder$n(luvio, params) {
|
|
2941
|
+
return keyBuilder$v(luvio, {
|
|
2942
2942
|
content_key: params.urlParams.contentKeyOrId,
|
|
2943
2943
|
language: params.queryParams.language || '',
|
|
2944
2944
|
version: params.queryParams.version || ''
|
|
2945
2945
|
});
|
|
2946
2946
|
}
|
|
2947
|
-
function getResponseCacheKeys$
|
|
2948
|
-
return getTypeCacheKeys$
|
|
2947
|
+
function getResponseCacheKeys$d(luvio, resourceParams, response) {
|
|
2948
|
+
return getTypeCacheKeys$e(luvio, response);
|
|
2949
2949
|
}
|
|
2950
|
-
function ingestSuccess$
|
|
2950
|
+
function ingestSuccess$d(luvio, resourceParams, response, snapshotRefresh) {
|
|
2951
2951
|
const { body } = response;
|
|
2952
|
-
const key = keyBuilder$
|
|
2953
|
-
luvio.storeIngest(key, ingest$
|
|
2952
|
+
const key = keyBuilder$n(luvio, resourceParams);
|
|
2953
|
+
luvio.storeIngest(key, ingest$e, body);
|
|
2954
2954
|
const snapshot = luvio.storeLookup({
|
|
2955
2955
|
recordId: key,
|
|
2956
|
-
node: select$
|
|
2956
|
+
node: select$n(),
|
|
2957
2957
|
variables: {},
|
|
2958
2958
|
}, snapshotRefresh);
|
|
2959
2959
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -2963,19 +2963,19 @@ function ingestSuccess$b(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
2963
2963
|
}
|
|
2964
2964
|
return snapshot;
|
|
2965
2965
|
}
|
|
2966
|
-
function ingestError$
|
|
2967
|
-
const key = keyBuilder$
|
|
2966
|
+
function ingestError$9(luvio, params, error, snapshotRefresh) {
|
|
2967
|
+
const key = keyBuilder$n(luvio, params);
|
|
2968
2968
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
2969
2969
|
const storeMetadataParams = {
|
|
2970
|
-
ttl: TTL$
|
|
2970
|
+
ttl: TTL$e,
|
|
2971
2971
|
namespace: keyPrefix,
|
|
2972
|
-
version: VERSION$
|
|
2973
|
-
representationName: RepresentationType$
|
|
2972
|
+
version: VERSION$e,
|
|
2973
|
+
representationName: RepresentationType$e
|
|
2974
2974
|
};
|
|
2975
2975
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
2976
2976
|
return errorSnapshot;
|
|
2977
2977
|
}
|
|
2978
|
-
function createResourceRequest$
|
|
2978
|
+
function createResourceRequest$d(config) {
|
|
2979
2979
|
const headers = {};
|
|
2980
2980
|
return {
|
|
2981
2981
|
baseUri: '/services/data/v58.0',
|
|
@@ -2989,7 +2989,7 @@ function createResourceRequest$b(config) {
|
|
|
2989
2989
|
};
|
|
2990
2990
|
}
|
|
2991
2991
|
|
|
2992
|
-
function onFetchResponseSuccess$
|
|
2992
|
+
function onFetchResponseSuccess$a(luvio, config, resourceParams, response) {
|
|
2993
2993
|
var _a;
|
|
2994
2994
|
// Version can come either from versionNumber field in case of v2 content,
|
|
2995
2995
|
// or managedContentVersionId field in case of v1 content.
|
|
@@ -3038,7 +3038,7 @@ function onFetchResponseSuccess$9(luvio, config, resourceParams, response) {
|
|
|
3038
3038
|
// since this resource params are used to build a cache key to verify that
|
|
3039
3039
|
// data was ingested into cache.
|
|
3040
3040
|
(_a = resourceParams.queryParams).version || (_a.version = response.body.version);
|
|
3041
|
-
return onFetchResponseSuccess$
|
|
3041
|
+
return onFetchResponseSuccess$9(luvio, config, resourceParams, response);
|
|
3042
3042
|
}
|
|
3043
3043
|
|
|
3044
3044
|
const getManagedContent_ConfigPropertyNames = {
|
|
@@ -3048,7 +3048,7 @@ const getManagedContent_ConfigPropertyNames = {
|
|
|
3048
3048
|
optional: ['language', 'version']
|
|
3049
3049
|
}
|
|
3050
3050
|
};
|
|
3051
|
-
function createResourceParams$
|
|
3051
|
+
function createResourceParams$d(config) {
|
|
3052
3052
|
const resourceParams = {
|
|
3053
3053
|
urlParams: {
|
|
3054
3054
|
contentKeyOrId: config.contentKeyOrId
|
|
@@ -3059,11 +3059,11 @@ function createResourceParams$b(config) {
|
|
|
3059
3059
|
};
|
|
3060
3060
|
return resourceParams;
|
|
3061
3061
|
}
|
|
3062
|
-
function keyBuilder$
|
|
3063
|
-
const resourceParams = createResourceParams$
|
|
3064
|
-
return keyBuilder$
|
|
3062
|
+
function keyBuilder$m(luvio, config) {
|
|
3063
|
+
const resourceParams = createResourceParams$d(config);
|
|
3064
|
+
return keyBuilder$n(luvio, resourceParams);
|
|
3065
3065
|
}
|
|
3066
|
-
function typeCheckConfig$
|
|
3066
|
+
function typeCheckConfig$d(untrustedConfig) {
|
|
3067
3067
|
const config = {};
|
|
3068
3068
|
const untrustedConfig_contentKeyOrId = untrustedConfig.contentKeyOrId;
|
|
3069
3069
|
if (typeof untrustedConfig_contentKeyOrId === 'string') {
|
|
@@ -3079,48 +3079,48 @@ function typeCheckConfig$b(untrustedConfig) {
|
|
|
3079
3079
|
}
|
|
3080
3080
|
return config;
|
|
3081
3081
|
}
|
|
3082
|
-
function validateAdapterConfig$
|
|
3082
|
+
function validateAdapterConfig$d(untrustedConfig, configPropertyNames) {
|
|
3083
3083
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
3084
3084
|
return null;
|
|
3085
3085
|
}
|
|
3086
3086
|
if (process.env.NODE_ENV !== 'production') {
|
|
3087
3087
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
3088
3088
|
}
|
|
3089
|
-
const config = typeCheckConfig$
|
|
3089
|
+
const config = typeCheckConfig$d(untrustedConfig);
|
|
3090
3090
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
3091
3091
|
return null;
|
|
3092
3092
|
}
|
|
3093
3093
|
return config;
|
|
3094
3094
|
}
|
|
3095
|
-
function adapterFragment$
|
|
3096
|
-
createResourceParams$
|
|
3097
|
-
return select$
|
|
3095
|
+
function adapterFragment$9(luvio, config) {
|
|
3096
|
+
createResourceParams$d(config);
|
|
3097
|
+
return select$n();
|
|
3098
3098
|
}
|
|
3099
|
-
function onFetchResponseSuccess$
|
|
3100
|
-
const snapshot = ingestSuccess$
|
|
3099
|
+
function onFetchResponseSuccess$9(luvio, config, resourceParams, response) {
|
|
3100
|
+
const snapshot = ingestSuccess$d(luvio, resourceParams, response, {
|
|
3101
3101
|
config,
|
|
3102
|
-
resolve: () => buildNetworkSnapshot$
|
|
3102
|
+
resolve: () => buildNetworkSnapshot$d(luvio, config, snapshotRefreshOptions)
|
|
3103
3103
|
});
|
|
3104
3104
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
3105
3105
|
}
|
|
3106
|
-
function onFetchResponseError$
|
|
3107
|
-
const snapshot = ingestError$
|
|
3106
|
+
function onFetchResponseError$9(luvio, config, resourceParams, response) {
|
|
3107
|
+
const snapshot = ingestError$9(luvio, resourceParams, response, {
|
|
3108
3108
|
config,
|
|
3109
|
-
resolve: () => buildNetworkSnapshot$
|
|
3109
|
+
resolve: () => buildNetworkSnapshot$d(luvio, config, snapshotRefreshOptions)
|
|
3110
3110
|
});
|
|
3111
3111
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
3112
3112
|
}
|
|
3113
|
-
function buildNetworkSnapshot$
|
|
3114
|
-
const resourceParams = createResourceParams$
|
|
3115
|
-
const request = createResourceRequest$
|
|
3113
|
+
function buildNetworkSnapshot$d(luvio, config, options) {
|
|
3114
|
+
const resourceParams = createResourceParams$d(config);
|
|
3115
|
+
const request = createResourceRequest$d(resourceParams);
|
|
3116
3116
|
return luvio.dispatchResourceRequest(request, options)
|
|
3117
3117
|
.then((response) => {
|
|
3118
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
3118
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$a(luvio, config, resourceParams, response), () => getResponseCacheKeys$d(luvio, resourceParams, response.body));
|
|
3119
3119
|
}, (response) => {
|
|
3120
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
3120
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$9(luvio, config, resourceParams, response));
|
|
3121
3121
|
});
|
|
3122
3122
|
}
|
|
3123
|
-
function buildNetworkSnapshotCachePolicy$
|
|
3123
|
+
function buildNetworkSnapshotCachePolicy$9(context, coercedAdapterRequestContext) {
|
|
3124
3124
|
const { luvio, config } = context;
|
|
3125
3125
|
const { networkPriority, requestCorrelator, eventObservers } = coercedAdapterRequestContext;
|
|
3126
3126
|
const dispatchOptions = {
|
|
@@ -3135,29 +3135,29 @@ function buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext
|
|
|
3135
3135
|
priority: networkPriority
|
|
3136
3136
|
};
|
|
3137
3137
|
}
|
|
3138
|
-
return buildNetworkSnapshot$
|
|
3138
|
+
return buildNetworkSnapshot$d(luvio, config, dispatchOptions);
|
|
3139
3139
|
}
|
|
3140
|
-
function buildCachedSnapshotCachePolicy$
|
|
3140
|
+
function buildCachedSnapshotCachePolicy$9(context, storeLookup) {
|
|
3141
3141
|
const { luvio, config } = context;
|
|
3142
3142
|
const selector = {
|
|
3143
|
-
recordId: keyBuilder$
|
|
3144
|
-
node: adapterFragment$
|
|
3143
|
+
recordId: keyBuilder$m(luvio, config),
|
|
3144
|
+
node: adapterFragment$9(luvio, config),
|
|
3145
3145
|
variables: {},
|
|
3146
3146
|
};
|
|
3147
3147
|
const cacheSnapshot = storeLookup(selector, {
|
|
3148
3148
|
config,
|
|
3149
|
-
resolve: () => buildNetworkSnapshot$
|
|
3149
|
+
resolve: () => buildNetworkSnapshot$d(luvio, config, snapshotRefreshOptions)
|
|
3150
3150
|
});
|
|
3151
3151
|
return cacheSnapshot;
|
|
3152
3152
|
}
|
|
3153
3153
|
const getManagedContentAdapterFactory = (luvio) => function CMSAuthoring__getManagedContent(untrustedConfig, requestContext) {
|
|
3154
|
-
const config = validateAdapterConfig$
|
|
3154
|
+
const config = validateAdapterConfig$d(untrustedConfig, getManagedContent_ConfigPropertyNames);
|
|
3155
3155
|
// Invalid or incomplete config
|
|
3156
3156
|
if (config === null) {
|
|
3157
3157
|
return null;
|
|
3158
3158
|
}
|
|
3159
3159
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
3160
|
-
buildCachedSnapshotCachePolicy$
|
|
3160
|
+
buildCachedSnapshotCachePolicy$9, buildNetworkSnapshotCachePolicy$9);
|
|
3161
3161
|
};
|
|
3162
3162
|
|
|
3163
3163
|
function validate$i(obj, path = 'ManagedContentLanguageSummaryRepresentation') {
|
|
@@ -3302,8 +3302,8 @@ function deepFreeze$e(input) {
|
|
|
3302
3302
|
ObjectFreeze(input);
|
|
3303
3303
|
}
|
|
3304
3304
|
|
|
3305
|
-
const TTL$
|
|
3306
|
-
const VERSION$
|
|
3305
|
+
const TTL$9 = 100;
|
|
3306
|
+
const VERSION$9 = "e85b8f02eca0f2e88859e6f3a061e56b";
|
|
3307
3307
|
function validate$g(obj, path = 'ManagedContentSpaceFolderItemCollectionRepresentation') {
|
|
3308
3308
|
const v_error = (() => {
|
|
3309
3309
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -3358,19 +3358,19 @@ function validate$g(obj, path = 'ManagedContentSpaceFolderItemCollectionRepresen
|
|
|
3358
3358
|
})();
|
|
3359
3359
|
return v_error === undefined ? null : v_error;
|
|
3360
3360
|
}
|
|
3361
|
-
const RepresentationType$
|
|
3362
|
-
function normalize$
|
|
3361
|
+
const RepresentationType$9 = 'ManagedContentSpaceFolderItemCollectionRepresentation';
|
|
3362
|
+
function normalize$9(input, existing, path, luvio, store, timestamp) {
|
|
3363
3363
|
return input;
|
|
3364
3364
|
}
|
|
3365
|
-
const select$
|
|
3365
|
+
const select$m = function ManagedContentSpaceFolderItemCollectionRepresentationSelect() {
|
|
3366
3366
|
return {
|
|
3367
3367
|
kind: 'Fragment',
|
|
3368
|
-
version: VERSION$
|
|
3368
|
+
version: VERSION$9,
|
|
3369
3369
|
private: [],
|
|
3370
3370
|
opaque: true
|
|
3371
3371
|
};
|
|
3372
3372
|
};
|
|
3373
|
-
function equals$
|
|
3373
|
+
function equals$9(existing, incoming) {
|
|
3374
3374
|
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
3375
3375
|
return false;
|
|
3376
3376
|
}
|
|
@@ -3385,7 +3385,7 @@ function deepFreeze$d(input) {
|
|
|
3385
3385
|
ObjectFreeze(input_folderItems);
|
|
3386
3386
|
ObjectFreeze(input);
|
|
3387
3387
|
}
|
|
3388
|
-
const ingest$
|
|
3388
|
+
const ingest$9 = function ManagedContentSpaceFolderItemCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
3389
3389
|
if (process.env.NODE_ENV !== 'production') {
|
|
3390
3390
|
const validateError = validate$g(input);
|
|
3391
3391
|
if (validateError !== null) {
|
|
@@ -3394,56 +3394,56 @@ const ingest$8 = function ManagedContentSpaceFolderItemCollectionRepresentationI
|
|
|
3394
3394
|
}
|
|
3395
3395
|
const key = path.fullPath;
|
|
3396
3396
|
const existingRecord = store.readEntry(key);
|
|
3397
|
-
const ttlToUse = TTL$
|
|
3398
|
-
let incomingRecord = normalize$
|
|
3397
|
+
const ttlToUse = TTL$9;
|
|
3398
|
+
let incomingRecord = normalize$9(input, store.readEntry(key), {
|
|
3399
3399
|
fullPath: key,
|
|
3400
3400
|
parent: path.parent,
|
|
3401
3401
|
propertyName: path.propertyName,
|
|
3402
3402
|
ttl: ttlToUse
|
|
3403
3403
|
});
|
|
3404
3404
|
deepFreeze$d(input);
|
|
3405
|
-
if (existingRecord === undefined || equals$
|
|
3405
|
+
if (existingRecord === undefined || equals$9(existingRecord, incomingRecord) === false) {
|
|
3406
3406
|
luvio.storePublish(key, incomingRecord);
|
|
3407
3407
|
}
|
|
3408
3408
|
{
|
|
3409
3409
|
const storeMetadataParams = {
|
|
3410
3410
|
ttl: ttlToUse,
|
|
3411
3411
|
namespace: "CMSAuthoring",
|
|
3412
|
-
version: VERSION$
|
|
3413
|
-
representationName: RepresentationType$
|
|
3412
|
+
version: VERSION$9,
|
|
3413
|
+
representationName: RepresentationType$9,
|
|
3414
3414
|
};
|
|
3415
3415
|
luvio.publishStoreMetadata(key, storeMetadataParams);
|
|
3416
3416
|
}
|
|
3417
3417
|
return createLink(key);
|
|
3418
3418
|
};
|
|
3419
|
-
function getTypeCacheKeys$
|
|
3419
|
+
function getTypeCacheKeys$9(luvio, input, fullPathFactory) {
|
|
3420
3420
|
const rootKeySet = new StoreKeyMap();
|
|
3421
3421
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
3422
3422
|
const rootKey = fullPathFactory();
|
|
3423
3423
|
rootKeySet.set(rootKey, {
|
|
3424
3424
|
namespace: keyPrefix,
|
|
3425
|
-
representationName: RepresentationType$
|
|
3425
|
+
representationName: RepresentationType$9,
|
|
3426
3426
|
mergeable: false
|
|
3427
3427
|
});
|
|
3428
3428
|
return rootKeySet;
|
|
3429
3429
|
}
|
|
3430
3430
|
|
|
3431
|
-
function select$
|
|
3432
|
-
return select$
|
|
3431
|
+
function select$l(luvio, params) {
|
|
3432
|
+
return select$m();
|
|
3433
3433
|
}
|
|
3434
|
-
function keyBuilder$
|
|
3434
|
+
function keyBuilder$l(luvio, params) {
|
|
3435
3435
|
return keyPrefix + '::ManagedContentSpaceFolderItemCollectionRepresentation:(' + 'contentType:' + params.queryParams.contentType + ',' + 'contentTypeFilter:' + params.queryParams.contentTypeFilter + ',' + 'contentTypes:' + params.queryParams.contentTypes + ',' + 'filter:' + params.queryParams.filter + ',' + '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 + ')';
|
|
3436
3436
|
}
|
|
3437
|
-
function getResponseCacheKeys$
|
|
3438
|
-
return getTypeCacheKeys$
|
|
3437
|
+
function getResponseCacheKeys$c(luvio, resourceParams, response) {
|
|
3438
|
+
return getTypeCacheKeys$9(luvio, response, () => keyBuilder$l(luvio, resourceParams));
|
|
3439
3439
|
}
|
|
3440
|
-
function ingestSuccess$
|
|
3440
|
+
function ingestSuccess$c(luvio, resourceParams, response, snapshotRefresh) {
|
|
3441
3441
|
const { body } = response;
|
|
3442
|
-
const key = keyBuilder$
|
|
3443
|
-
luvio.storeIngest(key, ingest$
|
|
3442
|
+
const key = keyBuilder$l(luvio, resourceParams);
|
|
3443
|
+
luvio.storeIngest(key, ingest$9, body);
|
|
3444
3444
|
const snapshot = luvio.storeLookup({
|
|
3445
3445
|
recordId: key,
|
|
3446
|
-
node: select$
|
|
3446
|
+
node: select$l(),
|
|
3447
3447
|
variables: {},
|
|
3448
3448
|
}, snapshotRefresh);
|
|
3449
3449
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -3453,19 +3453,19 @@ function ingestSuccess$a(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
3453
3453
|
}
|
|
3454
3454
|
return snapshot;
|
|
3455
3455
|
}
|
|
3456
|
-
function ingestError$
|
|
3457
|
-
const key = keyBuilder$
|
|
3456
|
+
function ingestError$8(luvio, params, error, snapshotRefresh) {
|
|
3457
|
+
const key = keyBuilder$l(luvio, params);
|
|
3458
3458
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
3459
3459
|
const storeMetadataParams = {
|
|
3460
|
-
ttl: TTL$
|
|
3460
|
+
ttl: TTL$9,
|
|
3461
3461
|
namespace: keyPrefix,
|
|
3462
|
-
version: VERSION$
|
|
3463
|
-
representationName: RepresentationType$
|
|
3462
|
+
version: VERSION$9,
|
|
3463
|
+
representationName: RepresentationType$9
|
|
3464
3464
|
};
|
|
3465
3465
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
3466
3466
|
return errorSnapshot;
|
|
3467
3467
|
}
|
|
3468
|
-
function createResourceRequest$
|
|
3468
|
+
function createResourceRequest$c(config) {
|
|
3469
3469
|
const headers = {};
|
|
3470
3470
|
return {
|
|
3471
3471
|
baseUri: '/services/data/v58.0',
|
|
@@ -3486,7 +3486,7 @@ const getManagedContentByFolderId_ConfigPropertyNames = {
|
|
|
3486
3486
|
optional: ['contentType', 'contentTypeFilter', 'contentTypes', 'filter', 'page', 'pageSize', 'queryTerm', 'showPublishedOnly', 'sortBy', 'sortOrder']
|
|
3487
3487
|
}
|
|
3488
3488
|
};
|
|
3489
|
-
function createResourceParams$
|
|
3489
|
+
function createResourceParams$c(config) {
|
|
3490
3490
|
const resourceParams = {
|
|
3491
3491
|
urlParams: {
|
|
3492
3492
|
folderId: config.folderId
|
|
@@ -3497,11 +3497,11 @@ function createResourceParams$a(config) {
|
|
|
3497
3497
|
};
|
|
3498
3498
|
return resourceParams;
|
|
3499
3499
|
}
|
|
3500
|
-
function keyBuilder$
|
|
3501
|
-
const resourceParams = createResourceParams$
|
|
3502
|
-
return keyBuilder$
|
|
3500
|
+
function keyBuilder$k(luvio, config) {
|
|
3501
|
+
const resourceParams = createResourceParams$c(config);
|
|
3502
|
+
return keyBuilder$l(luvio, resourceParams);
|
|
3503
3503
|
}
|
|
3504
|
-
function typeCheckConfig$
|
|
3504
|
+
function typeCheckConfig$c(untrustedConfig) {
|
|
3505
3505
|
const config = {};
|
|
3506
3506
|
const untrustedConfig_folderId = untrustedConfig.folderId;
|
|
3507
3507
|
if (typeof untrustedConfig_folderId === 'string') {
|
|
@@ -3556,48 +3556,48 @@ function typeCheckConfig$a(untrustedConfig) {
|
|
|
3556
3556
|
}
|
|
3557
3557
|
return config;
|
|
3558
3558
|
}
|
|
3559
|
-
function validateAdapterConfig$
|
|
3559
|
+
function validateAdapterConfig$c(untrustedConfig, configPropertyNames) {
|
|
3560
3560
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
3561
3561
|
return null;
|
|
3562
3562
|
}
|
|
3563
3563
|
if (process.env.NODE_ENV !== 'production') {
|
|
3564
3564
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
3565
3565
|
}
|
|
3566
|
-
const config = typeCheckConfig$
|
|
3566
|
+
const config = typeCheckConfig$c(untrustedConfig);
|
|
3567
3567
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
3568
3568
|
return null;
|
|
3569
3569
|
}
|
|
3570
3570
|
return config;
|
|
3571
3571
|
}
|
|
3572
|
-
function adapterFragment$
|
|
3573
|
-
createResourceParams$
|
|
3574
|
-
return select$
|
|
3572
|
+
function adapterFragment$8(luvio, config) {
|
|
3573
|
+
createResourceParams$c(config);
|
|
3574
|
+
return select$l();
|
|
3575
3575
|
}
|
|
3576
|
-
function onFetchResponseSuccess$
|
|
3577
|
-
const snapshot = ingestSuccess$
|
|
3576
|
+
function onFetchResponseSuccess$8(luvio, config, resourceParams, response) {
|
|
3577
|
+
const snapshot = ingestSuccess$c(luvio, resourceParams, response, {
|
|
3578
3578
|
config,
|
|
3579
|
-
resolve: () => buildNetworkSnapshot$
|
|
3579
|
+
resolve: () => buildNetworkSnapshot$c(luvio, config, snapshotRefreshOptions)
|
|
3580
3580
|
});
|
|
3581
3581
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
3582
3582
|
}
|
|
3583
|
-
function onFetchResponseError$
|
|
3584
|
-
const snapshot = ingestError$
|
|
3583
|
+
function onFetchResponseError$8(luvio, config, resourceParams, response) {
|
|
3584
|
+
const snapshot = ingestError$8(luvio, resourceParams, response, {
|
|
3585
3585
|
config,
|
|
3586
|
-
resolve: () => buildNetworkSnapshot$
|
|
3586
|
+
resolve: () => buildNetworkSnapshot$c(luvio, config, snapshotRefreshOptions)
|
|
3587
3587
|
});
|
|
3588
3588
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
3589
3589
|
}
|
|
3590
|
-
function buildNetworkSnapshot$
|
|
3591
|
-
const resourceParams = createResourceParams$
|
|
3592
|
-
const request = createResourceRequest$
|
|
3590
|
+
function buildNetworkSnapshot$c(luvio, config, options) {
|
|
3591
|
+
const resourceParams = createResourceParams$c(config);
|
|
3592
|
+
const request = createResourceRequest$c(resourceParams);
|
|
3593
3593
|
return luvio.dispatchResourceRequest(request, options)
|
|
3594
3594
|
.then((response) => {
|
|
3595
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
3595
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$8(luvio, config, resourceParams, response), () => getResponseCacheKeys$c(luvio, resourceParams, response.body));
|
|
3596
3596
|
}, (response) => {
|
|
3597
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
3597
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$8(luvio, config, resourceParams, response));
|
|
3598
3598
|
});
|
|
3599
3599
|
}
|
|
3600
|
-
function buildNetworkSnapshotCachePolicy$
|
|
3600
|
+
function buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext) {
|
|
3601
3601
|
const { luvio, config } = context;
|
|
3602
3602
|
const { networkPriority, requestCorrelator, eventObservers } = coercedAdapterRequestContext;
|
|
3603
3603
|
const dispatchOptions = {
|
|
@@ -3612,29 +3612,29 @@ function buildNetworkSnapshotCachePolicy$7(context, coercedAdapterRequestContext
|
|
|
3612
3612
|
priority: networkPriority
|
|
3613
3613
|
};
|
|
3614
3614
|
}
|
|
3615
|
-
return buildNetworkSnapshot$
|
|
3615
|
+
return buildNetworkSnapshot$c(luvio, config, dispatchOptions);
|
|
3616
3616
|
}
|
|
3617
|
-
function buildCachedSnapshotCachePolicy$
|
|
3617
|
+
function buildCachedSnapshotCachePolicy$8(context, storeLookup) {
|
|
3618
3618
|
const { luvio, config } = context;
|
|
3619
3619
|
const selector = {
|
|
3620
|
-
recordId: keyBuilder$
|
|
3621
|
-
node: adapterFragment$
|
|
3620
|
+
recordId: keyBuilder$k(luvio, config),
|
|
3621
|
+
node: adapterFragment$8(luvio, config),
|
|
3622
3622
|
variables: {},
|
|
3623
3623
|
};
|
|
3624
3624
|
const cacheSnapshot = storeLookup(selector, {
|
|
3625
3625
|
config,
|
|
3626
|
-
resolve: () => buildNetworkSnapshot$
|
|
3626
|
+
resolve: () => buildNetworkSnapshot$c(luvio, config, snapshotRefreshOptions)
|
|
3627
3627
|
});
|
|
3628
3628
|
return cacheSnapshot;
|
|
3629
3629
|
}
|
|
3630
3630
|
const getManagedContentByFolderIdAdapterFactory = (luvio) => function CMSAuthoring__getManagedContentByFolderId(untrustedConfig, requestContext) {
|
|
3631
|
-
const config = validateAdapterConfig$
|
|
3631
|
+
const config = validateAdapterConfig$c(untrustedConfig, getManagedContentByFolderId_ConfigPropertyNames);
|
|
3632
3632
|
// Invalid or incomplete config
|
|
3633
3633
|
if (config === null) {
|
|
3634
3634
|
return null;
|
|
3635
3635
|
}
|
|
3636
3636
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
3637
|
-
buildCachedSnapshotCachePolicy$
|
|
3637
|
+
buildCachedSnapshotCachePolicy$8, buildNetworkSnapshotCachePolicy$8);
|
|
3638
3638
|
};
|
|
3639
3639
|
|
|
3640
3640
|
function validate$f(obj, path = 'AbstractManagedContentReferencedByItemRepresentation') {
|
|
@@ -3709,8 +3709,8 @@ function deepFreeze$c(input) {
|
|
|
3709
3709
|
ObjectFreeze(input);
|
|
3710
3710
|
}
|
|
3711
3711
|
|
|
3712
|
-
const TTL$
|
|
3713
|
-
const VERSION$
|
|
3712
|
+
const TTL$8 = 100;
|
|
3713
|
+
const VERSION$8 = "c297f5edbe1b51eadd89e68f176520ba";
|
|
3714
3714
|
function validate$e(obj, path = 'ManagedContentReferencedByCollectionRepresentation') {
|
|
3715
3715
|
const v_error = (() => {
|
|
3716
3716
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -3770,19 +3770,19 @@ function validate$e(obj, path = 'ManagedContentReferencedByCollectionRepresentat
|
|
|
3770
3770
|
})();
|
|
3771
3771
|
return v_error === undefined ? null : v_error;
|
|
3772
3772
|
}
|
|
3773
|
-
const RepresentationType$
|
|
3774
|
-
function normalize$
|
|
3773
|
+
const RepresentationType$8 = 'ManagedContentReferencedByCollectionRepresentation';
|
|
3774
|
+
function normalize$8(input, existing, path, luvio, store, timestamp) {
|
|
3775
3775
|
return input;
|
|
3776
3776
|
}
|
|
3777
|
-
const select$
|
|
3777
|
+
const select$k = function ManagedContentReferencedByCollectionRepresentationSelect() {
|
|
3778
3778
|
return {
|
|
3779
3779
|
kind: 'Fragment',
|
|
3780
|
-
version: VERSION$
|
|
3780
|
+
version: VERSION$8,
|
|
3781
3781
|
private: [],
|
|
3782
3782
|
opaque: true
|
|
3783
3783
|
};
|
|
3784
3784
|
};
|
|
3785
|
-
function equals$
|
|
3785
|
+
function equals$8(existing, incoming) {
|
|
3786
3786
|
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
3787
3787
|
return false;
|
|
3788
3788
|
}
|
|
@@ -3797,7 +3797,7 @@ function deepFreeze$b(input) {
|
|
|
3797
3797
|
ObjectFreeze(input_referencedBy);
|
|
3798
3798
|
ObjectFreeze(input);
|
|
3799
3799
|
}
|
|
3800
|
-
const ingest$
|
|
3800
|
+
const ingest$8 = function ManagedContentReferencedByCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
3801
3801
|
if (process.env.NODE_ENV !== 'production') {
|
|
3802
3802
|
const validateError = validate$e(input);
|
|
3803
3803
|
if (validateError !== null) {
|
|
@@ -3806,56 +3806,56 @@ const ingest$7 = function ManagedContentReferencedByCollectionRepresentationInge
|
|
|
3806
3806
|
}
|
|
3807
3807
|
const key = path.fullPath;
|
|
3808
3808
|
const existingRecord = store.readEntry(key);
|
|
3809
|
-
const ttlToUse = TTL$
|
|
3810
|
-
let incomingRecord = normalize$
|
|
3809
|
+
const ttlToUse = TTL$8;
|
|
3810
|
+
let incomingRecord = normalize$8(input, store.readEntry(key), {
|
|
3811
3811
|
fullPath: key,
|
|
3812
3812
|
parent: path.parent,
|
|
3813
3813
|
propertyName: path.propertyName,
|
|
3814
3814
|
ttl: ttlToUse
|
|
3815
3815
|
});
|
|
3816
3816
|
deepFreeze$b(input);
|
|
3817
|
-
if (existingRecord === undefined || equals$
|
|
3817
|
+
if (existingRecord === undefined || equals$8(existingRecord, incomingRecord) === false) {
|
|
3818
3818
|
luvio.storePublish(key, incomingRecord);
|
|
3819
3819
|
}
|
|
3820
3820
|
{
|
|
3821
3821
|
const storeMetadataParams = {
|
|
3822
3822
|
ttl: ttlToUse,
|
|
3823
3823
|
namespace: "CMSAuthoring",
|
|
3824
|
-
version: VERSION$
|
|
3825
|
-
representationName: RepresentationType$
|
|
3824
|
+
version: VERSION$8,
|
|
3825
|
+
representationName: RepresentationType$8,
|
|
3826
3826
|
};
|
|
3827
3827
|
luvio.publishStoreMetadata(key, storeMetadataParams);
|
|
3828
3828
|
}
|
|
3829
3829
|
return createLink(key);
|
|
3830
3830
|
};
|
|
3831
|
-
function getTypeCacheKeys$
|
|
3831
|
+
function getTypeCacheKeys$8(luvio, input, fullPathFactory) {
|
|
3832
3832
|
const rootKeySet = new StoreKeyMap();
|
|
3833
3833
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
3834
3834
|
const rootKey = fullPathFactory();
|
|
3835
3835
|
rootKeySet.set(rootKey, {
|
|
3836
3836
|
namespace: keyPrefix,
|
|
3837
|
-
representationName: RepresentationType$
|
|
3837
|
+
representationName: RepresentationType$8,
|
|
3838
3838
|
mergeable: false
|
|
3839
3839
|
});
|
|
3840
3840
|
return rootKeySet;
|
|
3841
3841
|
}
|
|
3842
3842
|
|
|
3843
|
-
function select$
|
|
3844
|
-
return select$
|
|
3843
|
+
function select$j(luvio, params) {
|
|
3844
|
+
return select$k();
|
|
3845
3845
|
}
|
|
3846
|
-
function keyBuilder$
|
|
3846
|
+
function keyBuilder$j(luvio, params) {
|
|
3847
3847
|
return keyPrefix + '::ManagedContentReferencedByCollectionRepresentation:(' + 'includeReferenceDetails:' + params.queryParams.includeReferenceDetails + ',' + 'page:' + params.queryParams.page + ',' + 'pageSize:' + params.queryParams.pageSize + ',' + 'referenceType:' + params.queryParams.referenceType + ',' + 'contentKeyOrId:' + params.urlParams.contentKeyOrId + ')';
|
|
3848
3848
|
}
|
|
3849
|
-
function getResponseCacheKeys$
|
|
3850
|
-
return getTypeCacheKeys$
|
|
3849
|
+
function getResponseCacheKeys$b(luvio, resourceParams, response) {
|
|
3850
|
+
return getTypeCacheKeys$8(luvio, response, () => keyBuilder$j(luvio, resourceParams));
|
|
3851
3851
|
}
|
|
3852
|
-
function ingestSuccess$
|
|
3852
|
+
function ingestSuccess$b(luvio, resourceParams, response, snapshotRefresh) {
|
|
3853
3853
|
const { body } = response;
|
|
3854
|
-
const key = keyBuilder$
|
|
3855
|
-
luvio.storeIngest(key, ingest$
|
|
3854
|
+
const key = keyBuilder$j(luvio, resourceParams);
|
|
3855
|
+
luvio.storeIngest(key, ingest$8, body);
|
|
3856
3856
|
const snapshot = luvio.storeLookup({
|
|
3857
3857
|
recordId: key,
|
|
3858
|
-
node: select$
|
|
3858
|
+
node: select$j(),
|
|
3859
3859
|
variables: {},
|
|
3860
3860
|
}, snapshotRefresh);
|
|
3861
3861
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -3865,19 +3865,19 @@ function ingestSuccess$9(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
3865
3865
|
}
|
|
3866
3866
|
return snapshot;
|
|
3867
3867
|
}
|
|
3868
|
-
function ingestError$
|
|
3869
|
-
const key = keyBuilder$
|
|
3868
|
+
function ingestError$7(luvio, params, error, snapshotRefresh) {
|
|
3869
|
+
const key = keyBuilder$j(luvio, params);
|
|
3870
3870
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
3871
3871
|
const storeMetadataParams = {
|
|
3872
|
-
ttl: TTL$
|
|
3872
|
+
ttl: TTL$8,
|
|
3873
3873
|
namespace: keyPrefix,
|
|
3874
|
-
version: VERSION$
|
|
3875
|
-
representationName: RepresentationType$
|
|
3874
|
+
version: VERSION$8,
|
|
3875
|
+
representationName: RepresentationType$8
|
|
3876
3876
|
};
|
|
3877
3877
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
3878
3878
|
return errorSnapshot;
|
|
3879
3879
|
}
|
|
3880
|
-
function createResourceRequest$
|
|
3880
|
+
function createResourceRequest$b(config) {
|
|
3881
3881
|
const headers = {};
|
|
3882
3882
|
return {
|
|
3883
3883
|
baseUri: '/services/data/v58.0',
|
|
@@ -3898,7 +3898,7 @@ const getManagedContentReferencedBy_ConfigPropertyNames = {
|
|
|
3898
3898
|
optional: ['includeReferenceDetails', 'page', 'pageSize', 'referenceType']
|
|
3899
3899
|
}
|
|
3900
3900
|
};
|
|
3901
|
-
function createResourceParams$
|
|
3901
|
+
function createResourceParams$b(config) {
|
|
3902
3902
|
const resourceParams = {
|
|
3903
3903
|
urlParams: {
|
|
3904
3904
|
contentKeyOrId: config.contentKeyOrId
|
|
@@ -3909,11 +3909,11 @@ function createResourceParams$9(config) {
|
|
|
3909
3909
|
};
|
|
3910
3910
|
return resourceParams;
|
|
3911
3911
|
}
|
|
3912
|
-
function keyBuilder$
|
|
3913
|
-
const resourceParams = createResourceParams$
|
|
3914
|
-
return keyBuilder$
|
|
3912
|
+
function keyBuilder$i(luvio, config) {
|
|
3913
|
+
const resourceParams = createResourceParams$b(config);
|
|
3914
|
+
return keyBuilder$j(luvio, resourceParams);
|
|
3915
3915
|
}
|
|
3916
|
-
function typeCheckConfig$
|
|
3916
|
+
function typeCheckConfig$b(untrustedConfig) {
|
|
3917
3917
|
const config = {};
|
|
3918
3918
|
const untrustedConfig_contentKeyOrId = untrustedConfig.contentKeyOrId;
|
|
3919
3919
|
if (typeof untrustedConfig_contentKeyOrId === 'string') {
|
|
@@ -3937,48 +3937,48 @@ function typeCheckConfig$9(untrustedConfig) {
|
|
|
3937
3937
|
}
|
|
3938
3938
|
return config;
|
|
3939
3939
|
}
|
|
3940
|
-
function validateAdapterConfig$
|
|
3940
|
+
function validateAdapterConfig$b(untrustedConfig, configPropertyNames) {
|
|
3941
3941
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
3942
3942
|
return null;
|
|
3943
3943
|
}
|
|
3944
3944
|
if (process.env.NODE_ENV !== 'production') {
|
|
3945
3945
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
3946
3946
|
}
|
|
3947
|
-
const config = typeCheckConfig$
|
|
3947
|
+
const config = typeCheckConfig$b(untrustedConfig);
|
|
3948
3948
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
3949
3949
|
return null;
|
|
3950
3950
|
}
|
|
3951
3951
|
return config;
|
|
3952
3952
|
}
|
|
3953
|
-
function adapterFragment$
|
|
3954
|
-
createResourceParams$
|
|
3955
|
-
return select$
|
|
3953
|
+
function adapterFragment$7(luvio, config) {
|
|
3954
|
+
createResourceParams$b(config);
|
|
3955
|
+
return select$j();
|
|
3956
3956
|
}
|
|
3957
|
-
function onFetchResponseSuccess$
|
|
3958
|
-
const snapshot = ingestSuccess$
|
|
3957
|
+
function onFetchResponseSuccess$7(luvio, config, resourceParams, response) {
|
|
3958
|
+
const snapshot = ingestSuccess$b(luvio, resourceParams, response, {
|
|
3959
3959
|
config,
|
|
3960
|
-
resolve: () => buildNetworkSnapshot$
|
|
3960
|
+
resolve: () => buildNetworkSnapshot$b(luvio, config, snapshotRefreshOptions)
|
|
3961
3961
|
});
|
|
3962
3962
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
3963
3963
|
}
|
|
3964
|
-
function onFetchResponseError$
|
|
3965
|
-
const snapshot = ingestError$
|
|
3964
|
+
function onFetchResponseError$7(luvio, config, resourceParams, response) {
|
|
3965
|
+
const snapshot = ingestError$7(luvio, resourceParams, response, {
|
|
3966
3966
|
config,
|
|
3967
|
-
resolve: () => buildNetworkSnapshot$
|
|
3967
|
+
resolve: () => buildNetworkSnapshot$b(luvio, config, snapshotRefreshOptions)
|
|
3968
3968
|
});
|
|
3969
3969
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
3970
3970
|
}
|
|
3971
|
-
function buildNetworkSnapshot$
|
|
3972
|
-
const resourceParams = createResourceParams$
|
|
3973
|
-
const request = createResourceRequest$
|
|
3971
|
+
function buildNetworkSnapshot$b(luvio, config, options) {
|
|
3972
|
+
const resourceParams = createResourceParams$b(config);
|
|
3973
|
+
const request = createResourceRequest$b(resourceParams);
|
|
3974
3974
|
return luvio.dispatchResourceRequest(request, options)
|
|
3975
3975
|
.then((response) => {
|
|
3976
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
3976
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$7(luvio, config, resourceParams, response), () => getResponseCacheKeys$b(luvio, resourceParams, response.body));
|
|
3977
3977
|
}, (response) => {
|
|
3978
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
3978
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$7(luvio, config, resourceParams, response));
|
|
3979
3979
|
});
|
|
3980
3980
|
}
|
|
3981
|
-
function buildNetworkSnapshotCachePolicy$
|
|
3981
|
+
function buildNetworkSnapshotCachePolicy$7(context, coercedAdapterRequestContext) {
|
|
3982
3982
|
const { luvio, config } = context;
|
|
3983
3983
|
const { networkPriority, requestCorrelator, eventObservers } = coercedAdapterRequestContext;
|
|
3984
3984
|
const dispatchOptions = {
|
|
@@ -3993,31 +3993,33 @@ function buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext
|
|
|
3993
3993
|
priority: networkPriority
|
|
3994
3994
|
};
|
|
3995
3995
|
}
|
|
3996
|
-
return buildNetworkSnapshot$
|
|
3996
|
+
return buildNetworkSnapshot$b(luvio, config, dispatchOptions);
|
|
3997
3997
|
}
|
|
3998
|
-
function buildCachedSnapshotCachePolicy$
|
|
3998
|
+
function buildCachedSnapshotCachePolicy$7(context, storeLookup) {
|
|
3999
3999
|
const { luvio, config } = context;
|
|
4000
4000
|
const selector = {
|
|
4001
|
-
recordId: keyBuilder$
|
|
4002
|
-
node: adapterFragment$
|
|
4001
|
+
recordId: keyBuilder$i(luvio, config),
|
|
4002
|
+
node: adapterFragment$7(luvio, config),
|
|
4003
4003
|
variables: {},
|
|
4004
4004
|
};
|
|
4005
4005
|
const cacheSnapshot = storeLookup(selector, {
|
|
4006
4006
|
config,
|
|
4007
|
-
resolve: () => buildNetworkSnapshot$
|
|
4007
|
+
resolve: () => buildNetworkSnapshot$b(luvio, config, snapshotRefreshOptions)
|
|
4008
4008
|
});
|
|
4009
4009
|
return cacheSnapshot;
|
|
4010
4010
|
}
|
|
4011
4011
|
const getManagedContentReferencedByAdapterFactory = (luvio) => function CMSAuthoring__getManagedContentReferencedBy(untrustedConfig, requestContext) {
|
|
4012
|
-
const config = validateAdapterConfig$
|
|
4012
|
+
const config = validateAdapterConfig$b(untrustedConfig, getManagedContentReferencedBy_ConfigPropertyNames);
|
|
4013
4013
|
// Invalid or incomplete config
|
|
4014
4014
|
if (config === null) {
|
|
4015
4015
|
return null;
|
|
4016
4016
|
}
|
|
4017
4017
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
4018
|
-
buildCachedSnapshotCachePolicy$
|
|
4018
|
+
buildCachedSnapshotCachePolicy$7, buildNetworkSnapshotCachePolicy$7);
|
|
4019
4019
|
};
|
|
4020
4020
|
|
|
4021
|
+
const TTL$7 = 100;
|
|
4022
|
+
const VERSION$7 = "72679343637cbdd587e2f087852030d7";
|
|
4021
4023
|
function validate$d(obj, path = 'ManagedContentSpaceRepresentation') {
|
|
4022
4024
|
const v_error = (() => {
|
|
4023
4025
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -4048,6 +4050,32 @@ function validate$d(obj, path = 'ManagedContentSpaceRepresentation') {
|
|
|
4048
4050
|
if (typeof obj_id !== 'string') {
|
|
4049
4051
|
return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
|
|
4050
4052
|
}
|
|
4053
|
+
const obj_isOrchestratorModuleInstalled = obj.isOrchestratorModuleInstalled;
|
|
4054
|
+
const path_isOrchestratorModuleInstalled = path + '.isOrchestratorModuleInstalled';
|
|
4055
|
+
let obj_isOrchestratorModuleInstalled_union0 = null;
|
|
4056
|
+
const obj_isOrchestratorModuleInstalled_union0_error = (() => {
|
|
4057
|
+
if (typeof obj_isOrchestratorModuleInstalled !== 'boolean') {
|
|
4058
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isOrchestratorModuleInstalled + '" (at "' + path_isOrchestratorModuleInstalled + '")');
|
|
4059
|
+
}
|
|
4060
|
+
})();
|
|
4061
|
+
if (obj_isOrchestratorModuleInstalled_union0_error != null) {
|
|
4062
|
+
obj_isOrchestratorModuleInstalled_union0 = obj_isOrchestratorModuleInstalled_union0_error.message;
|
|
4063
|
+
}
|
|
4064
|
+
let obj_isOrchestratorModuleInstalled_union1 = null;
|
|
4065
|
+
const obj_isOrchestratorModuleInstalled_union1_error = (() => {
|
|
4066
|
+
if (obj_isOrchestratorModuleInstalled !== null) {
|
|
4067
|
+
return new TypeError('Expected "null" but received "' + typeof obj_isOrchestratorModuleInstalled + '" (at "' + path_isOrchestratorModuleInstalled + '")');
|
|
4068
|
+
}
|
|
4069
|
+
})();
|
|
4070
|
+
if (obj_isOrchestratorModuleInstalled_union1_error != null) {
|
|
4071
|
+
obj_isOrchestratorModuleInstalled_union1 = obj_isOrchestratorModuleInstalled_union1_error.message;
|
|
4072
|
+
}
|
|
4073
|
+
if (obj_isOrchestratorModuleInstalled_union0 && obj_isOrchestratorModuleInstalled_union1) {
|
|
4074
|
+
let message = 'Object doesn\'t match union (at "' + path_isOrchestratorModuleInstalled + '")';
|
|
4075
|
+
message += '\n' + obj_isOrchestratorModuleInstalled_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
4076
|
+
message += '\n' + obj_isOrchestratorModuleInstalled_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
4077
|
+
return new TypeError(message);
|
|
4078
|
+
}
|
|
4051
4079
|
if (obj.isSpaceV2 !== undefined) {
|
|
4052
4080
|
const obj_isSpaceV2 = obj.isSpaceV2;
|
|
4053
4081
|
const path_isSpaceV2 = path + '.isSpaceV2';
|
|
@@ -4092,16 +4120,283 @@ function validate$d(obj, path = 'ManagedContentSpaceRepresentation') {
|
|
|
4092
4120
|
})();
|
|
4093
4121
|
return v_error === undefined ? null : v_error;
|
|
4094
4122
|
}
|
|
4123
|
+
const RepresentationType$7 = 'ManagedContentSpaceRepresentation';
|
|
4124
|
+
function keyBuilder$h(luvio, config) {
|
|
4125
|
+
return keyPrefix + '::' + RepresentationType$7 + ':' + config.id;
|
|
4126
|
+
}
|
|
4127
|
+
function keyBuilderFromType$3(luvio, object) {
|
|
4128
|
+
const keyParams = {
|
|
4129
|
+
id: object.id
|
|
4130
|
+
};
|
|
4131
|
+
return keyBuilder$h(luvio, keyParams);
|
|
4132
|
+
}
|
|
4133
|
+
function normalize$7(input, existing, path, luvio, store, timestamp) {
|
|
4134
|
+
return input;
|
|
4135
|
+
}
|
|
4136
|
+
const select$i = function ManagedContentSpaceRepresentationSelect() {
|
|
4137
|
+
return {
|
|
4138
|
+
kind: 'Fragment',
|
|
4139
|
+
version: VERSION$7,
|
|
4140
|
+
private: [],
|
|
4141
|
+
opaque: true
|
|
4142
|
+
};
|
|
4143
|
+
};
|
|
4144
|
+
function equals$7(existing, incoming) {
|
|
4145
|
+
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
4146
|
+
return false;
|
|
4147
|
+
}
|
|
4148
|
+
return true;
|
|
4149
|
+
}
|
|
4095
4150
|
function deepFreeze$a(input) {
|
|
4096
4151
|
const input_supportedLanguages = input.supportedLanguages;
|
|
4097
4152
|
if (input_supportedLanguages !== undefined) {
|
|
4098
4153
|
ObjectFreeze(input_supportedLanguages);
|
|
4099
4154
|
}
|
|
4100
4155
|
ObjectFreeze(input);
|
|
4156
|
+
}
|
|
4157
|
+
const ingest$7 = function ManagedContentSpaceRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
4158
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
4159
|
+
const validateError = validate$d(input);
|
|
4160
|
+
if (validateError !== null) {
|
|
4161
|
+
throw validateError;
|
|
4162
|
+
}
|
|
4163
|
+
}
|
|
4164
|
+
const key = keyBuilderFromType$3(luvio, input);
|
|
4165
|
+
const existingRecord = store.readEntry(key);
|
|
4166
|
+
const ttlToUse = TTL$7;
|
|
4167
|
+
let incomingRecord = normalize$7(input, store.readEntry(key), {
|
|
4168
|
+
fullPath: key,
|
|
4169
|
+
parent: path.parent,
|
|
4170
|
+
propertyName: path.propertyName,
|
|
4171
|
+
ttl: ttlToUse
|
|
4172
|
+
});
|
|
4173
|
+
deepFreeze$a(input);
|
|
4174
|
+
if (existingRecord === undefined || equals$7(existingRecord, incomingRecord) === false) {
|
|
4175
|
+
luvio.storePublish(key, incomingRecord);
|
|
4176
|
+
}
|
|
4177
|
+
{
|
|
4178
|
+
const storeMetadataParams = {
|
|
4179
|
+
ttl: ttlToUse,
|
|
4180
|
+
namespace: "CMSAuthoring",
|
|
4181
|
+
version: VERSION$7,
|
|
4182
|
+
representationName: RepresentationType$7,
|
|
4183
|
+
};
|
|
4184
|
+
luvio.publishStoreMetadata(key, storeMetadataParams);
|
|
4185
|
+
}
|
|
4186
|
+
return createLink(key);
|
|
4187
|
+
};
|
|
4188
|
+
function getTypeCacheKeys$7(luvio, input, fullPathFactory) {
|
|
4189
|
+
const rootKeySet = new StoreKeyMap();
|
|
4190
|
+
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
4191
|
+
const rootKey = keyBuilderFromType$3(luvio, input);
|
|
4192
|
+
rootKeySet.set(rootKey, {
|
|
4193
|
+
namespace: keyPrefix,
|
|
4194
|
+
representationName: RepresentationType$7,
|
|
4195
|
+
mergeable: false
|
|
4196
|
+
});
|
|
4197
|
+
return rootKeySet;
|
|
4198
|
+
}
|
|
4199
|
+
|
|
4200
|
+
function select$h(luvio, params) {
|
|
4201
|
+
return select$i();
|
|
4202
|
+
}
|
|
4203
|
+
function keyBuilder$g(luvio, params) {
|
|
4204
|
+
return keyBuilder$h(luvio, {
|
|
4205
|
+
id: params.urlParams.contentSpaceId
|
|
4206
|
+
});
|
|
4207
|
+
}
|
|
4208
|
+
function getResponseCacheKeys$a(luvio, resourceParams, response) {
|
|
4209
|
+
return getTypeCacheKeys$7(luvio, response);
|
|
4210
|
+
}
|
|
4211
|
+
function ingestSuccess$a(luvio, resourceParams, response, snapshotRefresh) {
|
|
4212
|
+
const { body } = response;
|
|
4213
|
+
const key = keyBuilder$g(luvio, resourceParams);
|
|
4214
|
+
luvio.storeIngest(key, ingest$7, body);
|
|
4215
|
+
const snapshot = luvio.storeLookup({
|
|
4216
|
+
recordId: key,
|
|
4217
|
+
node: select$h(),
|
|
4218
|
+
variables: {},
|
|
4219
|
+
}, snapshotRefresh);
|
|
4220
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
4221
|
+
if (snapshot.state !== 'Fulfilled') {
|
|
4222
|
+
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
4223
|
+
}
|
|
4224
|
+
}
|
|
4225
|
+
return snapshot;
|
|
4226
|
+
}
|
|
4227
|
+
function ingestError$6(luvio, params, error, snapshotRefresh) {
|
|
4228
|
+
const key = keyBuilder$g(luvio, params);
|
|
4229
|
+
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
4230
|
+
const storeMetadataParams = {
|
|
4231
|
+
ttl: TTL$7,
|
|
4232
|
+
namespace: keyPrefix,
|
|
4233
|
+
version: VERSION$7,
|
|
4234
|
+
representationName: RepresentationType$7
|
|
4235
|
+
};
|
|
4236
|
+
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
4237
|
+
return errorSnapshot;
|
|
4238
|
+
}
|
|
4239
|
+
function createResourceRequest$a(config) {
|
|
4240
|
+
const headers = {};
|
|
4241
|
+
return {
|
|
4242
|
+
baseUri: '/services/data/v58.0',
|
|
4243
|
+
basePath: '/connect/cms/spaces/' + config.urlParams.contentSpaceId + '',
|
|
4244
|
+
method: 'get',
|
|
4245
|
+
body: null,
|
|
4246
|
+
urlParams: config.urlParams,
|
|
4247
|
+
queryParams: {},
|
|
4248
|
+
headers,
|
|
4249
|
+
priority: 'normal',
|
|
4250
|
+
};
|
|
4251
|
+
}
|
|
4252
|
+
function createResourceRequestFromRepresentation$2(representation) {
|
|
4253
|
+
const config = {
|
|
4254
|
+
urlParams: {},
|
|
4255
|
+
};
|
|
4256
|
+
config.urlParams.contentSpaceId = representation.id;
|
|
4257
|
+
return createResourceRequest$a(config);
|
|
4101
4258
|
}
|
|
4102
4259
|
|
|
4260
|
+
const getManagedContentSpace_ConfigPropertyNames = {
|
|
4261
|
+
displayName: 'getManagedContentSpace',
|
|
4262
|
+
parameters: {
|
|
4263
|
+
required: ['contentSpaceId'],
|
|
4264
|
+
optional: []
|
|
4265
|
+
}
|
|
4266
|
+
};
|
|
4267
|
+
function createResourceParams$a(config) {
|
|
4268
|
+
const resourceParams = {
|
|
4269
|
+
urlParams: {
|
|
4270
|
+
contentSpaceId: config.contentSpaceId
|
|
4271
|
+
}
|
|
4272
|
+
};
|
|
4273
|
+
return resourceParams;
|
|
4274
|
+
}
|
|
4275
|
+
function keyBuilder$f(luvio, config) {
|
|
4276
|
+
const resourceParams = createResourceParams$a(config);
|
|
4277
|
+
return keyBuilder$g(luvio, resourceParams);
|
|
4278
|
+
}
|
|
4279
|
+
function typeCheckConfig$a(untrustedConfig) {
|
|
4280
|
+
const config = {};
|
|
4281
|
+
const untrustedConfig_contentSpaceId = untrustedConfig.contentSpaceId;
|
|
4282
|
+
if (typeof untrustedConfig_contentSpaceId === 'string') {
|
|
4283
|
+
config.contentSpaceId = untrustedConfig_contentSpaceId;
|
|
4284
|
+
}
|
|
4285
|
+
return config;
|
|
4286
|
+
}
|
|
4287
|
+
function validateAdapterConfig$a(untrustedConfig, configPropertyNames) {
|
|
4288
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
4289
|
+
return null;
|
|
4290
|
+
}
|
|
4291
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
4292
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
4293
|
+
}
|
|
4294
|
+
const config = typeCheckConfig$a(untrustedConfig);
|
|
4295
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
4296
|
+
return null;
|
|
4297
|
+
}
|
|
4298
|
+
return config;
|
|
4299
|
+
}
|
|
4300
|
+
function adapterFragment$6(luvio, config) {
|
|
4301
|
+
createResourceParams$a(config);
|
|
4302
|
+
return select$h();
|
|
4303
|
+
}
|
|
4304
|
+
function onFetchResponseSuccess$6(luvio, config, resourceParams, response) {
|
|
4305
|
+
const snapshot = ingestSuccess$a(luvio, resourceParams, response, {
|
|
4306
|
+
config,
|
|
4307
|
+
resolve: () => buildNetworkSnapshot$a(luvio, config, snapshotRefreshOptions)
|
|
4308
|
+
});
|
|
4309
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
4310
|
+
}
|
|
4311
|
+
function onFetchResponseError$6(luvio, config, resourceParams, response) {
|
|
4312
|
+
const snapshot = ingestError$6(luvio, resourceParams, response, {
|
|
4313
|
+
config,
|
|
4314
|
+
resolve: () => buildNetworkSnapshot$a(luvio, config, snapshotRefreshOptions)
|
|
4315
|
+
});
|
|
4316
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
4317
|
+
}
|
|
4318
|
+
function buildNetworkSnapshot$a(luvio, config, options) {
|
|
4319
|
+
const resourceParams = createResourceParams$a(config);
|
|
4320
|
+
const request = createResourceRequest$a(resourceParams);
|
|
4321
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
4322
|
+
.then((response) => {
|
|
4323
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$6(luvio, config, resourceParams, response), () => getResponseCacheKeys$a(luvio, resourceParams, response.body));
|
|
4324
|
+
}, (response) => {
|
|
4325
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$6(luvio, config, resourceParams, response));
|
|
4326
|
+
});
|
|
4327
|
+
}
|
|
4328
|
+
function buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext) {
|
|
4329
|
+
const { luvio, config } = context;
|
|
4330
|
+
const { networkPriority, requestCorrelator, eventObservers } = coercedAdapterRequestContext;
|
|
4331
|
+
const dispatchOptions = {
|
|
4332
|
+
resourceRequestContext: {
|
|
4333
|
+
requestCorrelator,
|
|
4334
|
+
luvioRequestMethod: undefined,
|
|
4335
|
+
},
|
|
4336
|
+
eventObservers
|
|
4337
|
+
};
|
|
4338
|
+
if (networkPriority !== 'normal') {
|
|
4339
|
+
dispatchOptions.overrides = {
|
|
4340
|
+
priority: networkPriority
|
|
4341
|
+
};
|
|
4342
|
+
}
|
|
4343
|
+
return buildNetworkSnapshot$a(luvio, config, dispatchOptions);
|
|
4344
|
+
}
|
|
4345
|
+
function buildCachedSnapshotCachePolicy$6(context, storeLookup) {
|
|
4346
|
+
const { luvio, config } = context;
|
|
4347
|
+
const selector = {
|
|
4348
|
+
recordId: keyBuilder$f(luvio, config),
|
|
4349
|
+
node: adapterFragment$6(luvio, config),
|
|
4350
|
+
variables: {},
|
|
4351
|
+
};
|
|
4352
|
+
const cacheSnapshot = storeLookup(selector, {
|
|
4353
|
+
config,
|
|
4354
|
+
resolve: () => buildNetworkSnapshot$a(luvio, config, snapshotRefreshOptions)
|
|
4355
|
+
});
|
|
4356
|
+
return cacheSnapshot;
|
|
4357
|
+
}
|
|
4358
|
+
const getManagedContentSpaceAdapterFactory = (luvio) => function CMSAuthoring__getManagedContentSpace(untrustedConfig, requestContext) {
|
|
4359
|
+
const config = validateAdapterConfig$a(untrustedConfig, getManagedContentSpace_ConfigPropertyNames);
|
|
4360
|
+
// Invalid or incomplete config
|
|
4361
|
+
if (config === null) {
|
|
4362
|
+
return null;
|
|
4363
|
+
}
|
|
4364
|
+
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
4365
|
+
buildCachedSnapshotCachePolicy$6, buildNetworkSnapshotCachePolicy$6);
|
|
4366
|
+
};
|
|
4367
|
+
const notifyChangeFactory$2 = (luvio, options) => {
|
|
4368
|
+
return function getConnectCmsSpacesByContentSpaceIdNotifyChange(configs) {
|
|
4369
|
+
const keys = configs.map(c => keyBuilder$h(luvio, c));
|
|
4370
|
+
luvio.getNotifyChangeStoreEntries(keys).then(entries => {
|
|
4371
|
+
for (let i = 0, len = entries.length; i < len; i++) {
|
|
4372
|
+
const { key, record: val } = entries[i];
|
|
4373
|
+
const refreshRequest = createResourceRequestFromRepresentation$2(val);
|
|
4374
|
+
luvio.dispatchResourceRequest(refreshRequest, options)
|
|
4375
|
+
.then((response) => {
|
|
4376
|
+
return luvio.handleSuccessResponse(() => {
|
|
4377
|
+
const { body } = response;
|
|
4378
|
+
luvio.storeIngest(key, ingest$7, body);
|
|
4379
|
+
return luvio.storeBroadcast();
|
|
4380
|
+
}, () => getTypeCacheKeys$7(luvio, response.body));
|
|
4381
|
+
}, (error) => {
|
|
4382
|
+
return luvio.handleErrorResponse(() => {
|
|
4383
|
+
const errorSnapshot = luvio.errorSnapshot(error);
|
|
4384
|
+
luvio.storeIngestError(key, errorSnapshot, {
|
|
4385
|
+
ttl: TTL$7,
|
|
4386
|
+
namespace: keyPrefix,
|
|
4387
|
+
version: VERSION$7,
|
|
4388
|
+
representationName: RepresentationType$7
|
|
4389
|
+
});
|
|
4390
|
+
return luvio.storeBroadcast().then(() => errorSnapshot);
|
|
4391
|
+
});
|
|
4392
|
+
});
|
|
4393
|
+
}
|
|
4394
|
+
});
|
|
4395
|
+
};
|
|
4396
|
+
};
|
|
4397
|
+
|
|
4103
4398
|
const TTL$6 = 100;
|
|
4104
|
-
const VERSION$6 = "
|
|
4399
|
+
const VERSION$6 = "292efba3a426b62d2af39a38fd3464b0";
|
|
4105
4400
|
function validate$c(obj, path = 'ManagedContentSpaceCollectionRepresentation') {
|
|
4106
4401
|
const v_error = (() => {
|
|
4107
4402
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -4129,7 +4424,7 @@ const RepresentationType$6 = 'ManagedContentSpaceCollectionRepresentation';
|
|
|
4129
4424
|
function normalize$6(input, existing, path, luvio, store, timestamp) {
|
|
4130
4425
|
return input;
|
|
4131
4426
|
}
|
|
4132
|
-
const select$
|
|
4427
|
+
const select$g = function ManagedContentSpaceCollectionRepresentationSelect() {
|
|
4133
4428
|
return {
|
|
4134
4429
|
kind: 'Fragment',
|
|
4135
4430
|
version: VERSION$6,
|
|
@@ -4195,22 +4490,22 @@ function getTypeCacheKeys$6(luvio, input, fullPathFactory) {
|
|
|
4195
4490
|
return rootKeySet;
|
|
4196
4491
|
}
|
|
4197
4492
|
|
|
4198
|
-
function select$
|
|
4199
|
-
return select$
|
|
4493
|
+
function select$f(luvio, params) {
|
|
4494
|
+
return select$g();
|
|
4200
4495
|
}
|
|
4201
4496
|
function keyBuilder$e(luvio, params) {
|
|
4202
4497
|
return keyPrefix + '::ManagedContentSpaceCollectionRepresentation:(' + 'page:' + params.queryParams.page + ',' + 'pageSize:' + params.queryParams.pageSize + ')';
|
|
4203
4498
|
}
|
|
4204
|
-
function getResponseCacheKeys$
|
|
4499
|
+
function getResponseCacheKeys$9(luvio, resourceParams, response) {
|
|
4205
4500
|
return getTypeCacheKeys$6(luvio, response, () => keyBuilder$e(luvio, resourceParams));
|
|
4206
4501
|
}
|
|
4207
|
-
function ingestSuccess$
|
|
4502
|
+
function ingestSuccess$9(luvio, resourceParams, response, snapshotRefresh) {
|
|
4208
4503
|
const { body } = response;
|
|
4209
4504
|
const key = keyBuilder$e(luvio, resourceParams);
|
|
4210
4505
|
luvio.storeIngest(key, ingest$6, body);
|
|
4211
4506
|
const snapshot = luvio.storeLookup({
|
|
4212
4507
|
recordId: key,
|
|
4213
|
-
node: select$
|
|
4508
|
+
node: select$f(),
|
|
4214
4509
|
variables: {},
|
|
4215
4510
|
}, snapshotRefresh);
|
|
4216
4511
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -4232,7 +4527,7 @@ function ingestError$5(luvio, params, error, snapshotRefresh) {
|
|
|
4232
4527
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
4233
4528
|
return errorSnapshot;
|
|
4234
4529
|
}
|
|
4235
|
-
function createResourceRequest$
|
|
4530
|
+
function createResourceRequest$9(config) {
|
|
4236
4531
|
const headers = {};
|
|
4237
4532
|
return {
|
|
4238
4533
|
baseUri: '/services/data/v58.0',
|
|
@@ -4253,7 +4548,7 @@ const getManagedContentSpaces_ConfigPropertyNames = {
|
|
|
4253
4548
|
optional: ['page', 'pageSize']
|
|
4254
4549
|
}
|
|
4255
4550
|
};
|
|
4256
|
-
function createResourceParams$
|
|
4551
|
+
function createResourceParams$9(config) {
|
|
4257
4552
|
const resourceParams = {
|
|
4258
4553
|
queryParams: {
|
|
4259
4554
|
page: config.page, pageSize: config.pageSize
|
|
@@ -4262,10 +4557,10 @@ function createResourceParams$8(config) {
|
|
|
4262
4557
|
return resourceParams;
|
|
4263
4558
|
}
|
|
4264
4559
|
function keyBuilder$d(luvio, config) {
|
|
4265
|
-
const resourceParams = createResourceParams$
|
|
4560
|
+
const resourceParams = createResourceParams$9(config);
|
|
4266
4561
|
return keyBuilder$e(luvio, resourceParams);
|
|
4267
4562
|
}
|
|
4268
|
-
function typeCheckConfig$
|
|
4563
|
+
function typeCheckConfig$9(untrustedConfig) {
|
|
4269
4564
|
const config = {};
|
|
4270
4565
|
const untrustedConfig_page = untrustedConfig.page;
|
|
4271
4566
|
if (typeof untrustedConfig_page === 'number' && Math.floor(untrustedConfig_page) === untrustedConfig_page) {
|
|
@@ -4277,43 +4572,43 @@ function typeCheckConfig$8(untrustedConfig) {
|
|
|
4277
4572
|
}
|
|
4278
4573
|
return config;
|
|
4279
4574
|
}
|
|
4280
|
-
function validateAdapterConfig$
|
|
4575
|
+
function validateAdapterConfig$9(untrustedConfig, configPropertyNames) {
|
|
4281
4576
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
4282
4577
|
return null;
|
|
4283
4578
|
}
|
|
4284
4579
|
if (process.env.NODE_ENV !== 'production') {
|
|
4285
4580
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
4286
4581
|
}
|
|
4287
|
-
const config = typeCheckConfig$
|
|
4582
|
+
const config = typeCheckConfig$9(untrustedConfig);
|
|
4288
4583
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
4289
4584
|
return null;
|
|
4290
4585
|
}
|
|
4291
4586
|
return config;
|
|
4292
4587
|
}
|
|
4293
4588
|
function adapterFragment$5(luvio, config) {
|
|
4294
|
-
createResourceParams$
|
|
4295
|
-
return select$
|
|
4589
|
+
createResourceParams$9(config);
|
|
4590
|
+
return select$f();
|
|
4296
4591
|
}
|
|
4297
4592
|
function onFetchResponseSuccess$5(luvio, config, resourceParams, response) {
|
|
4298
|
-
const snapshot = ingestSuccess$
|
|
4593
|
+
const snapshot = ingestSuccess$9(luvio, resourceParams, response, {
|
|
4299
4594
|
config,
|
|
4300
|
-
resolve: () => buildNetworkSnapshot$
|
|
4595
|
+
resolve: () => buildNetworkSnapshot$9(luvio, config, snapshotRefreshOptions)
|
|
4301
4596
|
});
|
|
4302
4597
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
4303
4598
|
}
|
|
4304
4599
|
function onFetchResponseError$5(luvio, config, resourceParams, response) {
|
|
4305
4600
|
const snapshot = ingestError$5(luvio, resourceParams, response, {
|
|
4306
4601
|
config,
|
|
4307
|
-
resolve: () => buildNetworkSnapshot$
|
|
4602
|
+
resolve: () => buildNetworkSnapshot$9(luvio, config, snapshotRefreshOptions)
|
|
4308
4603
|
});
|
|
4309
4604
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
4310
4605
|
}
|
|
4311
|
-
function buildNetworkSnapshot$
|
|
4312
|
-
const resourceParams = createResourceParams$
|
|
4313
|
-
const request = createResourceRequest$
|
|
4606
|
+
function buildNetworkSnapshot$9(luvio, config, options) {
|
|
4607
|
+
const resourceParams = createResourceParams$9(config);
|
|
4608
|
+
const request = createResourceRequest$9(resourceParams);
|
|
4314
4609
|
return luvio.dispatchResourceRequest(request, options)
|
|
4315
4610
|
.then((response) => {
|
|
4316
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$5(luvio, config, resourceParams, response), () => getResponseCacheKeys$
|
|
4611
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$5(luvio, config, resourceParams, response), () => getResponseCacheKeys$9(luvio, resourceParams, response.body));
|
|
4317
4612
|
}, (response) => {
|
|
4318
4613
|
return luvio.handleErrorResponse(() => onFetchResponseError$5(luvio, config, resourceParams, response));
|
|
4319
4614
|
});
|
|
@@ -4333,7 +4628,7 @@ function buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext
|
|
|
4333
4628
|
priority: networkPriority
|
|
4334
4629
|
};
|
|
4335
4630
|
}
|
|
4336
|
-
return buildNetworkSnapshot$
|
|
4631
|
+
return buildNetworkSnapshot$9(luvio, config, dispatchOptions);
|
|
4337
4632
|
}
|
|
4338
4633
|
function buildCachedSnapshotCachePolicy$5(context, storeLookup) {
|
|
4339
4634
|
const { luvio, config } = context;
|
|
@@ -4344,12 +4639,12 @@ function buildCachedSnapshotCachePolicy$5(context, storeLookup) {
|
|
|
4344
4639
|
};
|
|
4345
4640
|
const cacheSnapshot = storeLookup(selector, {
|
|
4346
4641
|
config,
|
|
4347
|
-
resolve: () => buildNetworkSnapshot$
|
|
4642
|
+
resolve: () => buildNetworkSnapshot$9(luvio, config, snapshotRefreshOptions)
|
|
4348
4643
|
});
|
|
4349
4644
|
return cacheSnapshot;
|
|
4350
4645
|
}
|
|
4351
4646
|
const getManagedContentSpacesAdapterFactory = (luvio) => function CMSAuthoring__getManagedContentSpaces(untrustedConfig, requestContext) {
|
|
4352
|
-
const config = validateAdapterConfig$
|
|
4647
|
+
const config = validateAdapterConfig$9(untrustedConfig, getManagedContentSpaces_ConfigPropertyNames);
|
|
4353
4648
|
// Invalid or incomplete config
|
|
4354
4649
|
if (config === null) {
|
|
4355
4650
|
return null;
|
|
@@ -4358,24 +4653,24 @@ const getManagedContentSpacesAdapterFactory = (luvio) => function CMSAuthoring__
|
|
|
4358
4653
|
buildCachedSnapshotCachePolicy$5, buildNetworkSnapshotCachePolicy$5);
|
|
4359
4654
|
};
|
|
4360
4655
|
|
|
4361
|
-
function select$
|
|
4362
|
-
return select$
|
|
4656
|
+
function select$e(luvio, params) {
|
|
4657
|
+
return select$t();
|
|
4363
4658
|
}
|
|
4364
4659
|
function keyBuilder$c(luvio, params) {
|
|
4365
|
-
return keyBuilder$
|
|
4660
|
+
return keyBuilder$t(luvio, {
|
|
4366
4661
|
id: params.urlParams.variantId
|
|
4367
4662
|
});
|
|
4368
4663
|
}
|
|
4369
|
-
function getResponseCacheKeys$
|
|
4370
|
-
return getTypeCacheKeys$
|
|
4664
|
+
function getResponseCacheKeys$8(luvio, resourceParams, response) {
|
|
4665
|
+
return getTypeCacheKeys$c(luvio, response);
|
|
4371
4666
|
}
|
|
4372
|
-
function ingestSuccess$
|
|
4667
|
+
function ingestSuccess$8(luvio, resourceParams, response, snapshotRefresh) {
|
|
4373
4668
|
const { body } = response;
|
|
4374
4669
|
const key = keyBuilder$c(luvio, resourceParams);
|
|
4375
|
-
luvio.storeIngest(key, ingest$
|
|
4670
|
+
luvio.storeIngest(key, ingest$c, body);
|
|
4376
4671
|
const snapshot = luvio.storeLookup({
|
|
4377
4672
|
recordId: key,
|
|
4378
|
-
node: select$
|
|
4673
|
+
node: select$e(),
|
|
4379
4674
|
variables: {},
|
|
4380
4675
|
}, snapshotRefresh);
|
|
4381
4676
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -4389,15 +4684,15 @@ function ingestError$4(luvio, params, error, snapshotRefresh) {
|
|
|
4389
4684
|
const key = keyBuilder$c(luvio, params);
|
|
4390
4685
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
4391
4686
|
const storeMetadataParams = {
|
|
4392
|
-
ttl: TTL$
|
|
4687
|
+
ttl: TTL$c,
|
|
4393
4688
|
namespace: keyPrefix,
|
|
4394
|
-
version: VERSION$
|
|
4395
|
-
representationName: RepresentationType$
|
|
4689
|
+
version: VERSION$c,
|
|
4690
|
+
representationName: RepresentationType$c
|
|
4396
4691
|
};
|
|
4397
4692
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
4398
4693
|
return errorSnapshot;
|
|
4399
4694
|
}
|
|
4400
|
-
function createResourceRequest$
|
|
4695
|
+
function createResourceRequest$8(config) {
|
|
4401
4696
|
const headers = {};
|
|
4402
4697
|
return {
|
|
4403
4698
|
baseUri: '/services/data/v58.0',
|
|
@@ -4415,7 +4710,7 @@ function createResourceRequestFromRepresentation$1(representation) {
|
|
|
4415
4710
|
urlParams: {},
|
|
4416
4711
|
};
|
|
4417
4712
|
config.urlParams.variantId = representation.managedContentVariantId;
|
|
4418
|
-
return createResourceRequest$
|
|
4713
|
+
return createResourceRequest$8(config);
|
|
4419
4714
|
}
|
|
4420
4715
|
|
|
4421
4716
|
const getManagedContentVariant_ConfigPropertyNames = {
|
|
@@ -4425,7 +4720,7 @@ const getManagedContentVariant_ConfigPropertyNames = {
|
|
|
4425
4720
|
optional: []
|
|
4426
4721
|
}
|
|
4427
4722
|
};
|
|
4428
|
-
function createResourceParams$
|
|
4723
|
+
function createResourceParams$8(config) {
|
|
4429
4724
|
const resourceParams = {
|
|
4430
4725
|
urlParams: {
|
|
4431
4726
|
variantId: config.variantId
|
|
@@ -4434,10 +4729,10 @@ function createResourceParams$7(config) {
|
|
|
4434
4729
|
return resourceParams;
|
|
4435
4730
|
}
|
|
4436
4731
|
function keyBuilder$b(luvio, config) {
|
|
4437
|
-
const resourceParams = createResourceParams$
|
|
4732
|
+
const resourceParams = createResourceParams$8(config);
|
|
4438
4733
|
return keyBuilder$c(luvio, resourceParams);
|
|
4439
4734
|
}
|
|
4440
|
-
function typeCheckConfig$
|
|
4735
|
+
function typeCheckConfig$8(untrustedConfig) {
|
|
4441
4736
|
const config = {};
|
|
4442
4737
|
const untrustedConfig_variantId = untrustedConfig.variantId;
|
|
4443
4738
|
if (typeof untrustedConfig_variantId === 'string') {
|
|
@@ -4445,43 +4740,43 @@ function typeCheckConfig$7(untrustedConfig) {
|
|
|
4445
4740
|
}
|
|
4446
4741
|
return config;
|
|
4447
4742
|
}
|
|
4448
|
-
function validateAdapterConfig$
|
|
4743
|
+
function validateAdapterConfig$8(untrustedConfig, configPropertyNames) {
|
|
4449
4744
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
4450
4745
|
return null;
|
|
4451
4746
|
}
|
|
4452
4747
|
if (process.env.NODE_ENV !== 'production') {
|
|
4453
4748
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
4454
4749
|
}
|
|
4455
|
-
const config = typeCheckConfig$
|
|
4750
|
+
const config = typeCheckConfig$8(untrustedConfig);
|
|
4456
4751
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
4457
4752
|
return null;
|
|
4458
4753
|
}
|
|
4459
4754
|
return config;
|
|
4460
4755
|
}
|
|
4461
4756
|
function adapterFragment$4(luvio, config) {
|
|
4462
|
-
createResourceParams$
|
|
4463
|
-
return select$
|
|
4757
|
+
createResourceParams$8(config);
|
|
4758
|
+
return select$e();
|
|
4464
4759
|
}
|
|
4465
4760
|
function onFetchResponseSuccess$4(luvio, config, resourceParams, response) {
|
|
4466
|
-
const snapshot = ingestSuccess$
|
|
4761
|
+
const snapshot = ingestSuccess$8(luvio, resourceParams, response, {
|
|
4467
4762
|
config,
|
|
4468
|
-
resolve: () => buildNetworkSnapshot$
|
|
4763
|
+
resolve: () => buildNetworkSnapshot$8(luvio, config, snapshotRefreshOptions)
|
|
4469
4764
|
});
|
|
4470
4765
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
4471
4766
|
}
|
|
4472
4767
|
function onFetchResponseError$4(luvio, config, resourceParams, response) {
|
|
4473
4768
|
const snapshot = ingestError$4(luvio, resourceParams, response, {
|
|
4474
4769
|
config,
|
|
4475
|
-
resolve: () => buildNetworkSnapshot$
|
|
4770
|
+
resolve: () => buildNetworkSnapshot$8(luvio, config, snapshotRefreshOptions)
|
|
4476
4771
|
});
|
|
4477
4772
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
4478
4773
|
}
|
|
4479
|
-
function buildNetworkSnapshot$
|
|
4480
|
-
const resourceParams = createResourceParams$
|
|
4481
|
-
const request = createResourceRequest$
|
|
4774
|
+
function buildNetworkSnapshot$8(luvio, config, options) {
|
|
4775
|
+
const resourceParams = createResourceParams$8(config);
|
|
4776
|
+
const request = createResourceRequest$8(resourceParams);
|
|
4482
4777
|
return luvio.dispatchResourceRequest(request, options)
|
|
4483
4778
|
.then((response) => {
|
|
4484
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$4(luvio, config, resourceParams, response), () => getResponseCacheKeys$
|
|
4779
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$4(luvio, config, resourceParams, response), () => getResponseCacheKeys$8(luvio, resourceParams, response.body));
|
|
4485
4780
|
}, (response) => {
|
|
4486
4781
|
return luvio.handleErrorResponse(() => onFetchResponseError$4(luvio, config, resourceParams, response));
|
|
4487
4782
|
});
|
|
@@ -4501,7 +4796,7 @@ function buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext
|
|
|
4501
4796
|
priority: networkPriority
|
|
4502
4797
|
};
|
|
4503
4798
|
}
|
|
4504
|
-
return buildNetworkSnapshot$
|
|
4799
|
+
return buildNetworkSnapshot$8(luvio, config, dispatchOptions);
|
|
4505
4800
|
}
|
|
4506
4801
|
function buildCachedSnapshotCachePolicy$4(context, storeLookup) {
|
|
4507
4802
|
const { luvio, config } = context;
|
|
@@ -4512,12 +4807,12 @@ function buildCachedSnapshotCachePolicy$4(context, storeLookup) {
|
|
|
4512
4807
|
};
|
|
4513
4808
|
const cacheSnapshot = storeLookup(selector, {
|
|
4514
4809
|
config,
|
|
4515
|
-
resolve: () => buildNetworkSnapshot$
|
|
4810
|
+
resolve: () => buildNetworkSnapshot$8(luvio, config, snapshotRefreshOptions)
|
|
4516
4811
|
});
|
|
4517
4812
|
return cacheSnapshot;
|
|
4518
4813
|
}
|
|
4519
4814
|
const getManagedContentVariantAdapterFactory = (luvio) => function CMSAuthoring__getManagedContentVariant(untrustedConfig, requestContext) {
|
|
4520
|
-
const config = validateAdapterConfig$
|
|
4815
|
+
const config = validateAdapterConfig$8(untrustedConfig, getManagedContentVariant_ConfigPropertyNames);
|
|
4521
4816
|
// Invalid or incomplete config
|
|
4522
4817
|
if (config === null) {
|
|
4523
4818
|
return null;
|
|
@@ -4527,7 +4822,7 @@ const getManagedContentVariantAdapterFactory = (luvio) => function CMSAuthoring_
|
|
|
4527
4822
|
};
|
|
4528
4823
|
const notifyChangeFactory$1 = (luvio, options) => {
|
|
4529
4824
|
return function getConnectCmsContentsVariantsByVariantIdNotifyChange(configs) {
|
|
4530
|
-
const keys = configs.map(c => keyBuilder$
|
|
4825
|
+
const keys = configs.map(c => keyBuilder$t(luvio, c));
|
|
4531
4826
|
luvio.getNotifyChangeStoreEntries(keys).then(entries => {
|
|
4532
4827
|
for (let i = 0, len = entries.length; i < len; i++) {
|
|
4533
4828
|
const { key, record: val } = entries[i];
|
|
@@ -4536,17 +4831,17 @@ const notifyChangeFactory$1 = (luvio, options) => {
|
|
|
4536
4831
|
.then((response) => {
|
|
4537
4832
|
return luvio.handleSuccessResponse(() => {
|
|
4538
4833
|
const { body } = response;
|
|
4539
|
-
luvio.storeIngest(key, ingest$
|
|
4834
|
+
luvio.storeIngest(key, ingest$c, body);
|
|
4540
4835
|
return luvio.storeBroadcast();
|
|
4541
|
-
}, () => getTypeCacheKeys$
|
|
4836
|
+
}, () => getTypeCacheKeys$c(luvio, response.body));
|
|
4542
4837
|
}, (error) => {
|
|
4543
4838
|
return luvio.handleErrorResponse(() => {
|
|
4544
4839
|
const errorSnapshot = luvio.errorSnapshot(error);
|
|
4545
4840
|
luvio.storeIngestError(key, errorSnapshot, {
|
|
4546
|
-
ttl: TTL$
|
|
4841
|
+
ttl: TTL$c,
|
|
4547
4842
|
namespace: keyPrefix,
|
|
4548
|
-
version: VERSION$
|
|
4549
|
-
representationName: RepresentationType$
|
|
4843
|
+
version: VERSION$c,
|
|
4844
|
+
representationName: RepresentationType$c
|
|
4550
4845
|
});
|
|
4551
4846
|
return luvio.storeBroadcast().then(() => errorSnapshot);
|
|
4552
4847
|
});
|
|
@@ -4691,7 +4986,7 @@ const RepresentationType$5 = 'ManagedContentVariantReferencesCollectionRepresent
|
|
|
4691
4986
|
function normalize$5(input, existing, path, luvio, store, timestamp) {
|
|
4692
4987
|
return input;
|
|
4693
4988
|
}
|
|
4694
|
-
const select$
|
|
4989
|
+
const select$d = function ManagedContentVariantReferencesCollectionRepresentationSelect() {
|
|
4695
4990
|
return {
|
|
4696
4991
|
kind: 'Fragment',
|
|
4697
4992
|
version: VERSION$5,
|
|
@@ -4764,22 +5059,22 @@ function getTypeCacheKeys$5(luvio, input, fullPathFactory) {
|
|
|
4764
5059
|
return rootKeySet;
|
|
4765
5060
|
}
|
|
4766
5061
|
|
|
4767
|
-
function select$
|
|
4768
|
-
return select$
|
|
5062
|
+
function select$c(luvio, params) {
|
|
5063
|
+
return select$d();
|
|
4769
5064
|
}
|
|
4770
5065
|
function keyBuilder$a(luvio, params) {
|
|
4771
5066
|
return keyPrefix + '::ManagedContentVariantReferencesCollectionRepresentation:(' + 'variantIds:' + params.queryParams.variantIds + ',' + 'contentKeyOrId:' + params.urlParams.contentKeyOrId + ')';
|
|
4772
5067
|
}
|
|
4773
|
-
function getResponseCacheKeys$
|
|
5068
|
+
function getResponseCacheKeys$7(luvio, resourceParams, response) {
|
|
4774
5069
|
return getTypeCacheKeys$5(luvio, response, () => keyBuilder$a(luvio, resourceParams));
|
|
4775
5070
|
}
|
|
4776
|
-
function ingestSuccess$
|
|
5071
|
+
function ingestSuccess$7(luvio, resourceParams, response, snapshotRefresh) {
|
|
4777
5072
|
const { body } = response;
|
|
4778
5073
|
const key = keyBuilder$a(luvio, resourceParams);
|
|
4779
5074
|
luvio.storeIngest(key, ingest$5, body);
|
|
4780
5075
|
const snapshot = luvio.storeLookup({
|
|
4781
5076
|
recordId: key,
|
|
4782
|
-
node: select$
|
|
5077
|
+
node: select$c(),
|
|
4783
5078
|
variables: {},
|
|
4784
5079
|
}, snapshotRefresh);
|
|
4785
5080
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -4801,7 +5096,7 @@ function ingestError$3(luvio, params, error, snapshotRefresh) {
|
|
|
4801
5096
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
4802
5097
|
return errorSnapshot;
|
|
4803
5098
|
}
|
|
4804
|
-
function createResourceRequest$
|
|
5099
|
+
function createResourceRequest$7(config) {
|
|
4805
5100
|
const headers = {};
|
|
4806
5101
|
return {
|
|
4807
5102
|
baseUri: '/services/data/v58.0',
|
|
@@ -4822,7 +5117,7 @@ const getManagedContentVariantReferences_ConfigPropertyNames = {
|
|
|
4822
5117
|
optional: ['variantIds']
|
|
4823
5118
|
}
|
|
4824
5119
|
};
|
|
4825
|
-
function createResourceParams$
|
|
5120
|
+
function createResourceParams$7(config) {
|
|
4826
5121
|
const resourceParams = {
|
|
4827
5122
|
urlParams: {
|
|
4828
5123
|
contentKeyOrId: config.contentKeyOrId
|
|
@@ -4834,10 +5129,10 @@ function createResourceParams$6(config) {
|
|
|
4834
5129
|
return resourceParams;
|
|
4835
5130
|
}
|
|
4836
5131
|
function keyBuilder$9(luvio, config) {
|
|
4837
|
-
const resourceParams = createResourceParams$
|
|
5132
|
+
const resourceParams = createResourceParams$7(config);
|
|
4838
5133
|
return keyBuilder$a(luvio, resourceParams);
|
|
4839
5134
|
}
|
|
4840
|
-
function typeCheckConfig$
|
|
5135
|
+
function typeCheckConfig$7(untrustedConfig) {
|
|
4841
5136
|
const config = {};
|
|
4842
5137
|
const untrustedConfig_contentKeyOrId = untrustedConfig.contentKeyOrId;
|
|
4843
5138
|
if (typeof untrustedConfig_contentKeyOrId === 'string') {
|
|
@@ -4856,43 +5151,43 @@ function typeCheckConfig$6(untrustedConfig) {
|
|
|
4856
5151
|
}
|
|
4857
5152
|
return config;
|
|
4858
5153
|
}
|
|
4859
|
-
function validateAdapterConfig$
|
|
5154
|
+
function validateAdapterConfig$7(untrustedConfig, configPropertyNames) {
|
|
4860
5155
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
4861
5156
|
return null;
|
|
4862
5157
|
}
|
|
4863
5158
|
if (process.env.NODE_ENV !== 'production') {
|
|
4864
5159
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
4865
5160
|
}
|
|
4866
|
-
const config = typeCheckConfig$
|
|
5161
|
+
const config = typeCheckConfig$7(untrustedConfig);
|
|
4867
5162
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
4868
5163
|
return null;
|
|
4869
5164
|
}
|
|
4870
5165
|
return config;
|
|
4871
5166
|
}
|
|
4872
5167
|
function adapterFragment$3(luvio, config) {
|
|
4873
|
-
createResourceParams$
|
|
4874
|
-
return select$
|
|
5168
|
+
createResourceParams$7(config);
|
|
5169
|
+
return select$c();
|
|
4875
5170
|
}
|
|
4876
5171
|
function onFetchResponseSuccess$3(luvio, config, resourceParams, response) {
|
|
4877
|
-
const snapshot = ingestSuccess$
|
|
5172
|
+
const snapshot = ingestSuccess$7(luvio, resourceParams, response, {
|
|
4878
5173
|
config,
|
|
4879
|
-
resolve: () => buildNetworkSnapshot$
|
|
5174
|
+
resolve: () => buildNetworkSnapshot$7(luvio, config, snapshotRefreshOptions)
|
|
4880
5175
|
});
|
|
4881
5176
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
4882
5177
|
}
|
|
4883
5178
|
function onFetchResponseError$3(luvio, config, resourceParams, response) {
|
|
4884
5179
|
const snapshot = ingestError$3(luvio, resourceParams, response, {
|
|
4885
5180
|
config,
|
|
4886
|
-
resolve: () => buildNetworkSnapshot$
|
|
5181
|
+
resolve: () => buildNetworkSnapshot$7(luvio, config, snapshotRefreshOptions)
|
|
4887
5182
|
});
|
|
4888
5183
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
4889
5184
|
}
|
|
4890
|
-
function buildNetworkSnapshot$
|
|
4891
|
-
const resourceParams = createResourceParams$
|
|
4892
|
-
const request = createResourceRequest$
|
|
5185
|
+
function buildNetworkSnapshot$7(luvio, config, options) {
|
|
5186
|
+
const resourceParams = createResourceParams$7(config);
|
|
5187
|
+
const request = createResourceRequest$7(resourceParams);
|
|
4893
5188
|
return luvio.dispatchResourceRequest(request, options)
|
|
4894
5189
|
.then((response) => {
|
|
4895
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$3(luvio, config, resourceParams, response), () => getResponseCacheKeys$
|
|
5190
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$3(luvio, config, resourceParams, response), () => getResponseCacheKeys$7(luvio, resourceParams, response.body));
|
|
4896
5191
|
}, (response) => {
|
|
4897
5192
|
return luvio.handleErrorResponse(() => onFetchResponseError$3(luvio, config, resourceParams, response));
|
|
4898
5193
|
});
|
|
@@ -4912,7 +5207,7 @@ function buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext
|
|
|
4912
5207
|
priority: networkPriority
|
|
4913
5208
|
};
|
|
4914
5209
|
}
|
|
4915
|
-
return buildNetworkSnapshot$
|
|
5210
|
+
return buildNetworkSnapshot$7(luvio, config, dispatchOptions);
|
|
4916
5211
|
}
|
|
4917
5212
|
function buildCachedSnapshotCachePolicy$3(context, storeLookup) {
|
|
4918
5213
|
const { luvio, config } = context;
|
|
@@ -4923,12 +5218,12 @@ function buildCachedSnapshotCachePolicy$3(context, storeLookup) {
|
|
|
4923
5218
|
};
|
|
4924
5219
|
const cacheSnapshot = storeLookup(selector, {
|
|
4925
5220
|
config,
|
|
4926
|
-
resolve: () => buildNetworkSnapshot$
|
|
5221
|
+
resolve: () => buildNetworkSnapshot$7(luvio, config, snapshotRefreshOptions)
|
|
4927
5222
|
});
|
|
4928
5223
|
return cacheSnapshot;
|
|
4929
5224
|
}
|
|
4930
5225
|
const getManagedContentVariantReferencesAdapterFactory = (luvio) => function CMSAuthoring__getManagedContentVariantReferences(untrustedConfig, requestContext) {
|
|
4931
|
-
const config = validateAdapterConfig$
|
|
5226
|
+
const config = validateAdapterConfig$7(untrustedConfig, getManagedContentVariantReferences_ConfigPropertyNames);
|
|
4932
5227
|
// Invalid or incomplete config
|
|
4933
5228
|
if (config === null) {
|
|
4934
5229
|
return null;
|
|
@@ -4994,7 +5289,7 @@ const RepresentationType$4 = 'ManagedContentRenditionRepresentation';
|
|
|
4994
5289
|
function normalize$4(input, existing, path, luvio, store, timestamp) {
|
|
4995
5290
|
return input;
|
|
4996
5291
|
}
|
|
4997
|
-
const select$
|
|
5292
|
+
const select$b = function ManagedContentRenditionRepresentationSelect() {
|
|
4998
5293
|
return {
|
|
4999
5294
|
kind: 'Fragment',
|
|
5000
5295
|
version: VERSION$4,
|
|
@@ -5072,22 +5367,22 @@ function getTypeCacheKeys$4(luvio, input, fullPathFactory) {
|
|
|
5072
5367
|
return rootKeySet;
|
|
5073
5368
|
}
|
|
5074
5369
|
|
|
5075
|
-
function select$
|
|
5076
|
-
return select$
|
|
5370
|
+
function select$a(luvio, params) {
|
|
5371
|
+
return select$b();
|
|
5077
5372
|
}
|
|
5078
5373
|
function keyBuilder$8(luvio, params) {
|
|
5079
5374
|
return keyPrefix + '::ManagedContentRenditionRepresentation:(' + 'channelIdOrApiName:' + params.queryParams.channelIdOrApiName + ',' + 'language:' + params.queryParams.language + ',' + 'version:' + params.queryParams.version + ',' + 'contentKeyOrId:' + params.urlParams.contentKeyOrId + ',' + 'renditionType:' + params.urlParams.renditionType + ')';
|
|
5080
5375
|
}
|
|
5081
|
-
function getResponseCacheKeys$
|
|
5376
|
+
function getResponseCacheKeys$6(luvio, resourceParams, response) {
|
|
5082
5377
|
return getTypeCacheKeys$4(luvio, response, () => keyBuilder$8(luvio, resourceParams));
|
|
5083
5378
|
}
|
|
5084
|
-
function ingestSuccess$
|
|
5379
|
+
function ingestSuccess$6(luvio, resourceParams, response, snapshotRefresh) {
|
|
5085
5380
|
const { body } = response;
|
|
5086
5381
|
const key = keyBuilder$8(luvio, resourceParams);
|
|
5087
5382
|
luvio.storeIngest(key, ingest$4, body);
|
|
5088
5383
|
const snapshot = luvio.storeLookup({
|
|
5089
5384
|
recordId: key,
|
|
5090
|
-
node: select$
|
|
5385
|
+
node: select$a(),
|
|
5091
5386
|
variables: {},
|
|
5092
5387
|
}, snapshotRefresh);
|
|
5093
5388
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -5109,7 +5404,7 @@ function ingestError$2(luvio, params, error, snapshotRefresh) {
|
|
|
5109
5404
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
5110
5405
|
return errorSnapshot;
|
|
5111
5406
|
}
|
|
5112
|
-
function createResourceRequest$
|
|
5407
|
+
function createResourceRequest$6(config) {
|
|
5113
5408
|
const headers = {};
|
|
5114
5409
|
return {
|
|
5115
5410
|
baseUri: '/services/data/v58.0',
|
|
@@ -5130,7 +5425,7 @@ const getManagedContentVariantRendition_ConfigPropertyNames = {
|
|
|
5130
5425
|
optional: ['channelIdOrApiName', 'language', 'version']
|
|
5131
5426
|
}
|
|
5132
5427
|
};
|
|
5133
|
-
function createResourceParams$
|
|
5428
|
+
function createResourceParams$6(config) {
|
|
5134
5429
|
const resourceParams = {
|
|
5135
5430
|
urlParams: {
|
|
5136
5431
|
contentKeyOrId: config.contentKeyOrId, renditionType: config.renditionType
|
|
@@ -5142,10 +5437,10 @@ function createResourceParams$5(config) {
|
|
|
5142
5437
|
return resourceParams;
|
|
5143
5438
|
}
|
|
5144
5439
|
function keyBuilder$7(luvio, config) {
|
|
5145
|
-
const resourceParams = createResourceParams$
|
|
5440
|
+
const resourceParams = createResourceParams$6(config);
|
|
5146
5441
|
return keyBuilder$8(luvio, resourceParams);
|
|
5147
5442
|
}
|
|
5148
|
-
function typeCheckConfig$
|
|
5443
|
+
function typeCheckConfig$6(untrustedConfig) {
|
|
5149
5444
|
const config = {};
|
|
5150
5445
|
const untrustedConfig_contentKeyOrId = untrustedConfig.contentKeyOrId;
|
|
5151
5446
|
if (typeof untrustedConfig_contentKeyOrId === 'string') {
|
|
@@ -5169,43 +5464,43 @@ function typeCheckConfig$5(untrustedConfig) {
|
|
|
5169
5464
|
}
|
|
5170
5465
|
return config;
|
|
5171
5466
|
}
|
|
5172
|
-
function validateAdapterConfig$
|
|
5467
|
+
function validateAdapterConfig$6(untrustedConfig, configPropertyNames) {
|
|
5173
5468
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
5174
5469
|
return null;
|
|
5175
5470
|
}
|
|
5176
5471
|
if (process.env.NODE_ENV !== 'production') {
|
|
5177
5472
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
5178
5473
|
}
|
|
5179
|
-
const config = typeCheckConfig$
|
|
5474
|
+
const config = typeCheckConfig$6(untrustedConfig);
|
|
5180
5475
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
5181
5476
|
return null;
|
|
5182
5477
|
}
|
|
5183
5478
|
return config;
|
|
5184
5479
|
}
|
|
5185
5480
|
function adapterFragment$2(luvio, config) {
|
|
5186
|
-
createResourceParams$
|
|
5187
|
-
return select$
|
|
5481
|
+
createResourceParams$6(config);
|
|
5482
|
+
return select$a();
|
|
5188
5483
|
}
|
|
5189
5484
|
function onFetchResponseSuccess$2(luvio, config, resourceParams, response) {
|
|
5190
|
-
const snapshot = ingestSuccess$
|
|
5485
|
+
const snapshot = ingestSuccess$6(luvio, resourceParams, response, {
|
|
5191
5486
|
config,
|
|
5192
|
-
resolve: () => buildNetworkSnapshot$
|
|
5487
|
+
resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
|
|
5193
5488
|
});
|
|
5194
5489
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
5195
5490
|
}
|
|
5196
5491
|
function onFetchResponseError$2(luvio, config, resourceParams, response) {
|
|
5197
5492
|
const snapshot = ingestError$2(luvio, resourceParams, response, {
|
|
5198
5493
|
config,
|
|
5199
|
-
resolve: () => buildNetworkSnapshot$
|
|
5494
|
+
resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
|
|
5200
5495
|
});
|
|
5201
5496
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
5202
5497
|
}
|
|
5203
|
-
function buildNetworkSnapshot$
|
|
5204
|
-
const resourceParams = createResourceParams$
|
|
5205
|
-
const request = createResourceRequest$
|
|
5498
|
+
function buildNetworkSnapshot$6(luvio, config, options) {
|
|
5499
|
+
const resourceParams = createResourceParams$6(config);
|
|
5500
|
+
const request = createResourceRequest$6(resourceParams);
|
|
5206
5501
|
return luvio.dispatchResourceRequest(request, options)
|
|
5207
5502
|
.then((response) => {
|
|
5208
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$2(luvio, config, resourceParams, response), () => getResponseCacheKeys$
|
|
5503
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$2(luvio, config, resourceParams, response), () => getResponseCacheKeys$6(luvio, resourceParams, response.body));
|
|
5209
5504
|
}, (response) => {
|
|
5210
5505
|
return luvio.handleErrorResponse(() => onFetchResponseError$2(luvio, config, resourceParams, response));
|
|
5211
5506
|
});
|
|
@@ -5225,7 +5520,7 @@ function buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext
|
|
|
5225
5520
|
priority: networkPriority
|
|
5226
5521
|
};
|
|
5227
5522
|
}
|
|
5228
|
-
return buildNetworkSnapshot$
|
|
5523
|
+
return buildNetworkSnapshot$6(luvio, config, dispatchOptions);
|
|
5229
5524
|
}
|
|
5230
5525
|
function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
|
|
5231
5526
|
const { luvio, config } = context;
|
|
@@ -5236,12 +5531,12 @@ function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
|
|
|
5236
5531
|
};
|
|
5237
5532
|
const cacheSnapshot = storeLookup(selector, {
|
|
5238
5533
|
config,
|
|
5239
|
-
resolve: () => buildNetworkSnapshot$
|
|
5534
|
+
resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
|
|
5240
5535
|
});
|
|
5241
5536
|
return cacheSnapshot;
|
|
5242
5537
|
}
|
|
5243
5538
|
const getManagedContentVariantRenditionAdapterFactory = (luvio) => function CMSAuthoring__getManagedContentVariantRendition(untrustedConfig, requestContext) {
|
|
5244
|
-
const config = validateAdapterConfig$
|
|
5539
|
+
const config = validateAdapterConfig$6(untrustedConfig, getManagedContentVariantRendition_ConfigPropertyNames);
|
|
5245
5540
|
// Invalid or incomplete config
|
|
5246
5541
|
if (config === null) {
|
|
5247
5542
|
return null;
|
|
@@ -5372,7 +5667,7 @@ function keyBuilderFromType$2(luvio, object) {
|
|
|
5372
5667
|
function normalize$3(input, existing, path, luvio, store, timestamp) {
|
|
5373
5668
|
return input;
|
|
5374
5669
|
}
|
|
5375
|
-
const select$
|
|
5670
|
+
const select$9 = function ManagedContentVariantVersionCollectionRepresentationSelect() {
|
|
5376
5671
|
return {
|
|
5377
5672
|
kind: 'Fragment',
|
|
5378
5673
|
version: VERSION$3,
|
|
@@ -5438,24 +5733,24 @@ function getTypeCacheKeys$3(luvio, input, fullPathFactory) {
|
|
|
5438
5733
|
return rootKeySet;
|
|
5439
5734
|
}
|
|
5440
5735
|
|
|
5441
|
-
function select$
|
|
5442
|
-
return select$
|
|
5736
|
+
function select$8(luvio, params) {
|
|
5737
|
+
return select$9();
|
|
5443
5738
|
}
|
|
5444
5739
|
function keyBuilder$5(luvio, params) {
|
|
5445
5740
|
return keyBuilder$6(luvio, {
|
|
5446
5741
|
variantId: params.urlParams.variantId
|
|
5447
5742
|
});
|
|
5448
5743
|
}
|
|
5449
|
-
function getResponseCacheKeys$
|
|
5744
|
+
function getResponseCacheKeys$5(luvio, resourceParams, response) {
|
|
5450
5745
|
return getTypeCacheKeys$3(luvio, response);
|
|
5451
5746
|
}
|
|
5452
|
-
function ingestSuccess$
|
|
5747
|
+
function ingestSuccess$5(luvio, resourceParams, response, snapshotRefresh) {
|
|
5453
5748
|
const { body } = response;
|
|
5454
5749
|
const key = keyBuilder$5(luvio, resourceParams);
|
|
5455
5750
|
luvio.storeIngest(key, ingest$3, body);
|
|
5456
5751
|
const snapshot = luvio.storeLookup({
|
|
5457
5752
|
recordId: key,
|
|
5458
|
-
node: select$
|
|
5753
|
+
node: select$8(),
|
|
5459
5754
|
variables: {},
|
|
5460
5755
|
}, snapshotRefresh);
|
|
5461
5756
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -5477,7 +5772,7 @@ function ingestError$1(luvio, params, error, snapshotRefresh) {
|
|
|
5477
5772
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
5478
5773
|
return errorSnapshot;
|
|
5479
5774
|
}
|
|
5480
|
-
function createResourceRequest$
|
|
5775
|
+
function createResourceRequest$5(config) {
|
|
5481
5776
|
const headers = {};
|
|
5482
5777
|
return {
|
|
5483
5778
|
baseUri: '/services/data/v58.0',
|
|
@@ -5496,7 +5791,7 @@ function createResourceRequestFromRepresentation(representation) {
|
|
|
5496
5791
|
queryParams: {},
|
|
5497
5792
|
};
|
|
5498
5793
|
config.urlParams.variantId = representation.managedContentVariantId;
|
|
5499
|
-
return createResourceRequest$
|
|
5794
|
+
return createResourceRequest$5(config);
|
|
5500
5795
|
}
|
|
5501
5796
|
|
|
5502
5797
|
const getManagedContentVariantVersions_ConfigPropertyNames = {
|
|
@@ -5506,7 +5801,7 @@ const getManagedContentVariantVersions_ConfigPropertyNames = {
|
|
|
5506
5801
|
optional: ['page', 'pageSize', 'status']
|
|
5507
5802
|
}
|
|
5508
5803
|
};
|
|
5509
|
-
function createResourceParams$
|
|
5804
|
+
function createResourceParams$5(config) {
|
|
5510
5805
|
const resourceParams = {
|
|
5511
5806
|
urlParams: {
|
|
5512
5807
|
variantId: config.variantId
|
|
@@ -5518,10 +5813,10 @@ function createResourceParams$4(config) {
|
|
|
5518
5813
|
return resourceParams;
|
|
5519
5814
|
}
|
|
5520
5815
|
function keyBuilder$4(luvio, config) {
|
|
5521
|
-
const resourceParams = createResourceParams$
|
|
5816
|
+
const resourceParams = createResourceParams$5(config);
|
|
5522
5817
|
return keyBuilder$5(luvio, resourceParams);
|
|
5523
5818
|
}
|
|
5524
|
-
function typeCheckConfig$
|
|
5819
|
+
function typeCheckConfig$5(untrustedConfig) {
|
|
5525
5820
|
const config = {};
|
|
5526
5821
|
const untrustedConfig_variantId = untrustedConfig.variantId;
|
|
5527
5822
|
if (typeof untrustedConfig_variantId === 'string') {
|
|
@@ -5548,43 +5843,43 @@ function typeCheckConfig$4(untrustedConfig) {
|
|
|
5548
5843
|
}
|
|
5549
5844
|
return config;
|
|
5550
5845
|
}
|
|
5551
|
-
function validateAdapterConfig$
|
|
5846
|
+
function validateAdapterConfig$5(untrustedConfig, configPropertyNames) {
|
|
5552
5847
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
5553
5848
|
return null;
|
|
5554
5849
|
}
|
|
5555
5850
|
if (process.env.NODE_ENV !== 'production') {
|
|
5556
5851
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
5557
5852
|
}
|
|
5558
|
-
const config = typeCheckConfig$
|
|
5853
|
+
const config = typeCheckConfig$5(untrustedConfig);
|
|
5559
5854
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
5560
5855
|
return null;
|
|
5561
5856
|
}
|
|
5562
5857
|
return config;
|
|
5563
5858
|
}
|
|
5564
5859
|
function adapterFragment$1(luvio, config) {
|
|
5565
|
-
createResourceParams$
|
|
5566
|
-
return select$
|
|
5860
|
+
createResourceParams$5(config);
|
|
5861
|
+
return select$8();
|
|
5567
5862
|
}
|
|
5568
5863
|
function onFetchResponseSuccess$1(luvio, config, resourceParams, response) {
|
|
5569
|
-
const snapshot = ingestSuccess$
|
|
5864
|
+
const snapshot = ingestSuccess$5(luvio, resourceParams, response, {
|
|
5570
5865
|
config,
|
|
5571
|
-
resolve: () => buildNetworkSnapshot$
|
|
5866
|
+
resolve: () => buildNetworkSnapshot$5(luvio, config, snapshotRefreshOptions)
|
|
5572
5867
|
});
|
|
5573
5868
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
5574
5869
|
}
|
|
5575
5870
|
function onFetchResponseError$1(luvio, config, resourceParams, response) {
|
|
5576
5871
|
const snapshot = ingestError$1(luvio, resourceParams, response, {
|
|
5577
5872
|
config,
|
|
5578
|
-
resolve: () => buildNetworkSnapshot$
|
|
5873
|
+
resolve: () => buildNetworkSnapshot$5(luvio, config, snapshotRefreshOptions)
|
|
5579
5874
|
});
|
|
5580
5875
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
5581
5876
|
}
|
|
5582
|
-
function buildNetworkSnapshot$
|
|
5583
|
-
const resourceParams = createResourceParams$
|
|
5584
|
-
const request = createResourceRequest$
|
|
5877
|
+
function buildNetworkSnapshot$5(luvio, config, options) {
|
|
5878
|
+
const resourceParams = createResourceParams$5(config);
|
|
5879
|
+
const request = createResourceRequest$5(resourceParams);
|
|
5585
5880
|
return luvio.dispatchResourceRequest(request, options)
|
|
5586
5881
|
.then((response) => {
|
|
5587
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$1(luvio, config, resourceParams, response), () => getResponseCacheKeys$
|
|
5882
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$1(luvio, config, resourceParams, response), () => getResponseCacheKeys$5(luvio, resourceParams, response.body));
|
|
5588
5883
|
}, (response) => {
|
|
5589
5884
|
return luvio.handleErrorResponse(() => onFetchResponseError$1(luvio, config, resourceParams, response));
|
|
5590
5885
|
});
|
|
@@ -5604,7 +5899,7 @@ function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext
|
|
|
5604
5899
|
priority: networkPriority
|
|
5605
5900
|
};
|
|
5606
5901
|
}
|
|
5607
|
-
return buildNetworkSnapshot$
|
|
5902
|
+
return buildNetworkSnapshot$5(luvio, config, dispatchOptions);
|
|
5608
5903
|
}
|
|
5609
5904
|
function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
|
|
5610
5905
|
const { luvio, config } = context;
|
|
@@ -5615,12 +5910,12 @@ function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
|
|
|
5615
5910
|
};
|
|
5616
5911
|
const cacheSnapshot = storeLookup(selector, {
|
|
5617
5912
|
config,
|
|
5618
|
-
resolve: () => buildNetworkSnapshot$
|
|
5913
|
+
resolve: () => buildNetworkSnapshot$5(luvio, config, snapshotRefreshOptions)
|
|
5619
5914
|
});
|
|
5620
5915
|
return cacheSnapshot;
|
|
5621
5916
|
}
|
|
5622
5917
|
const getManagedContentVariantVersionsAdapterFactory = (luvio) => function CMSAuthoring__getManagedContentVariantVersions(untrustedConfig, requestContext) {
|
|
5623
|
-
const config = validateAdapterConfig$
|
|
5918
|
+
const config = validateAdapterConfig$5(untrustedConfig, getManagedContentVariantVersions_ConfigPropertyNames);
|
|
5624
5919
|
// Invalid or incomplete config
|
|
5625
5920
|
if (config === null) {
|
|
5626
5921
|
return null;
|
|
@@ -5770,7 +6065,7 @@ const RepresentationType$2 = 'ManagedContentSearchResultItemsCollectionRepresent
|
|
|
5770
6065
|
function normalize$2(input, existing, path, luvio, store, timestamp) {
|
|
5771
6066
|
return input;
|
|
5772
6067
|
}
|
|
5773
|
-
const select$
|
|
6068
|
+
const select$7 = function ManagedContentSearchResultItemsCollectionRepresentationSelect() {
|
|
5774
6069
|
return {
|
|
5775
6070
|
kind: 'Fragment',
|
|
5776
6071
|
version: VERSION$2,
|
|
@@ -5836,22 +6131,22 @@ function getTypeCacheKeys$2(luvio, input, fullPathFactory) {
|
|
|
5836
6131
|
return rootKeySet;
|
|
5837
6132
|
}
|
|
5838
6133
|
|
|
5839
|
-
function select$
|
|
5840
|
-
return select$
|
|
6134
|
+
function select$6(luvio, params) {
|
|
6135
|
+
return select$7();
|
|
5841
6136
|
}
|
|
5842
6137
|
function keyBuilder$3(luvio, params) {
|
|
5843
6138
|
return keyPrefix + '::ManagedContentSearchResultItemsCollectionRepresentation:(' + 'contentSpaceOrFolderIds:' + params.queryParams.contentSpaceOrFolderIds + ',' + 'contentTypeFQN:' + params.queryParams.contentTypeFQN + ',' + 'languages:' + params.queryParams.languages + ',' + 'page:' + params.queryParams.page + ',' + 'pageSize:' + params.queryParams.pageSize + ',' + 'queryTerm:' + params.queryParams.queryTerm + ',' + 'scope:' + params.queryParams.scope + ')';
|
|
5844
6139
|
}
|
|
5845
|
-
function getResponseCacheKeys$
|
|
6140
|
+
function getResponseCacheKeys$4(luvio, resourceParams, response) {
|
|
5846
6141
|
return getTypeCacheKeys$2(luvio, response, () => keyBuilder$3(luvio, resourceParams));
|
|
5847
6142
|
}
|
|
5848
|
-
function ingestSuccess$
|
|
6143
|
+
function ingestSuccess$4(luvio, resourceParams, response, snapshotRefresh) {
|
|
5849
6144
|
const { body } = response;
|
|
5850
6145
|
const key = keyBuilder$3(luvio, resourceParams);
|
|
5851
6146
|
luvio.storeIngest(key, ingest$2, body);
|
|
5852
6147
|
const snapshot = luvio.storeLookup({
|
|
5853
6148
|
recordId: key,
|
|
5854
|
-
node: select$
|
|
6149
|
+
node: select$6(),
|
|
5855
6150
|
variables: {},
|
|
5856
6151
|
}, snapshotRefresh);
|
|
5857
6152
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -5873,7 +6168,7 @@ function ingestError(luvio, params, error, snapshotRefresh) {
|
|
|
5873
6168
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
5874
6169
|
return errorSnapshot;
|
|
5875
6170
|
}
|
|
5876
|
-
function createResourceRequest$
|
|
6171
|
+
function createResourceRequest$4(config) {
|
|
5877
6172
|
const headers = {};
|
|
5878
6173
|
return {
|
|
5879
6174
|
baseUri: '/services/data/v58.0',
|
|
@@ -5894,7 +6189,7 @@ const getSearchResults_ConfigPropertyNames = {
|
|
|
5894
6189
|
optional: ['contentSpaceOrFolderIds', 'contentTypeFQN', 'languages', 'page', 'pageSize', 'scope']
|
|
5895
6190
|
}
|
|
5896
6191
|
};
|
|
5897
|
-
function createResourceParams$
|
|
6192
|
+
function createResourceParams$4(config) {
|
|
5898
6193
|
const resourceParams = {
|
|
5899
6194
|
queryParams: {
|
|
5900
6195
|
contentSpaceOrFolderIds: config.contentSpaceOrFolderIds, contentTypeFQN: config.contentTypeFQN, languages: config.languages, page: config.page, pageSize: config.pageSize, queryTerm: config.queryTerm, scope: config.scope
|
|
@@ -5903,10 +6198,10 @@ function createResourceParams$3(config) {
|
|
|
5903
6198
|
return resourceParams;
|
|
5904
6199
|
}
|
|
5905
6200
|
function keyBuilder$2(luvio, config) {
|
|
5906
|
-
const resourceParams = createResourceParams$
|
|
6201
|
+
const resourceParams = createResourceParams$4(config);
|
|
5907
6202
|
return keyBuilder$3(luvio, resourceParams);
|
|
5908
6203
|
}
|
|
5909
|
-
function typeCheckConfig$
|
|
6204
|
+
function typeCheckConfig$4(untrustedConfig) {
|
|
5910
6205
|
const config = {};
|
|
5911
6206
|
const untrustedConfig_contentSpaceOrFolderIds = untrustedConfig.contentSpaceOrFolderIds;
|
|
5912
6207
|
if (ArrayIsArray$1(untrustedConfig_contentSpaceOrFolderIds)) {
|
|
@@ -5952,43 +6247,43 @@ function typeCheckConfig$3(untrustedConfig) {
|
|
|
5952
6247
|
}
|
|
5953
6248
|
return config;
|
|
5954
6249
|
}
|
|
5955
|
-
function validateAdapterConfig$
|
|
6250
|
+
function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
|
|
5956
6251
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
5957
6252
|
return null;
|
|
5958
6253
|
}
|
|
5959
6254
|
if (process.env.NODE_ENV !== 'production') {
|
|
5960
6255
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
5961
6256
|
}
|
|
5962
|
-
const config = typeCheckConfig$
|
|
6257
|
+
const config = typeCheckConfig$4(untrustedConfig);
|
|
5963
6258
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
5964
6259
|
return null;
|
|
5965
6260
|
}
|
|
5966
6261
|
return config;
|
|
5967
6262
|
}
|
|
5968
6263
|
function adapterFragment(luvio, config) {
|
|
5969
|
-
createResourceParams$
|
|
5970
|
-
return select$
|
|
6264
|
+
createResourceParams$4(config);
|
|
6265
|
+
return select$6();
|
|
5971
6266
|
}
|
|
5972
6267
|
function onFetchResponseSuccess(luvio, config, resourceParams, response) {
|
|
5973
|
-
const snapshot = ingestSuccess$
|
|
6268
|
+
const snapshot = ingestSuccess$4(luvio, resourceParams, response, {
|
|
5974
6269
|
config,
|
|
5975
|
-
resolve: () => buildNetworkSnapshot$
|
|
6270
|
+
resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
|
|
5976
6271
|
});
|
|
5977
6272
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
5978
6273
|
}
|
|
5979
6274
|
function onFetchResponseError(luvio, config, resourceParams, response) {
|
|
5980
6275
|
const snapshot = ingestError(luvio, resourceParams, response, {
|
|
5981
6276
|
config,
|
|
5982
|
-
resolve: () => buildNetworkSnapshot$
|
|
6277
|
+
resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
|
|
5983
6278
|
});
|
|
5984
6279
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
5985
6280
|
}
|
|
5986
|
-
function buildNetworkSnapshot$
|
|
5987
|
-
const resourceParams = createResourceParams$
|
|
5988
|
-
const request = createResourceRequest$
|
|
6281
|
+
function buildNetworkSnapshot$4(luvio, config, options) {
|
|
6282
|
+
const resourceParams = createResourceParams$4(config);
|
|
6283
|
+
const request = createResourceRequest$4(resourceParams);
|
|
5989
6284
|
return luvio.dispatchResourceRequest(request, options)
|
|
5990
6285
|
.then((response) => {
|
|
5991
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess(luvio, config, resourceParams, response), () => getResponseCacheKeys$
|
|
6286
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess(luvio, config, resourceParams, response), () => getResponseCacheKeys$4(luvio, resourceParams, response.body));
|
|
5992
6287
|
}, (response) => {
|
|
5993
6288
|
return luvio.handleErrorResponse(() => onFetchResponseError(luvio, config, resourceParams, response));
|
|
5994
6289
|
});
|
|
@@ -6008,7 +6303,7 @@ function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext)
|
|
|
6008
6303
|
priority: networkPriority
|
|
6009
6304
|
};
|
|
6010
6305
|
}
|
|
6011
|
-
return buildNetworkSnapshot$
|
|
6306
|
+
return buildNetworkSnapshot$4(luvio, config, dispatchOptions);
|
|
6012
6307
|
}
|
|
6013
6308
|
function buildCachedSnapshotCachePolicy(context, storeLookup) {
|
|
6014
6309
|
const { luvio, config } = context;
|
|
@@ -6019,12 +6314,12 @@ function buildCachedSnapshotCachePolicy(context, storeLookup) {
|
|
|
6019
6314
|
};
|
|
6020
6315
|
const cacheSnapshot = storeLookup(selector, {
|
|
6021
6316
|
config,
|
|
6022
|
-
resolve: () => buildNetworkSnapshot$
|
|
6317
|
+
resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
|
|
6023
6318
|
});
|
|
6024
6319
|
return cacheSnapshot;
|
|
6025
6320
|
}
|
|
6026
6321
|
const getSearchResultsAdapterFactory = (luvio) => function CMSAuthoring__getSearchResults(untrustedConfig, requestContext) {
|
|
6027
|
-
const config = validateAdapterConfig$
|
|
6322
|
+
const config = validateAdapterConfig$4(untrustedConfig, getSearchResults_ConfigPropertyNames);
|
|
6028
6323
|
// Invalid or incomplete config
|
|
6029
6324
|
if (config === null) {
|
|
6030
6325
|
return null;
|
|
@@ -6033,6 +6328,162 @@ const getSearchResultsAdapterFactory = (luvio) => function CMSAuthoring__getSear
|
|
|
6033
6328
|
buildCachedSnapshotCachePolicy, buildNetworkSnapshotCachePolicy);
|
|
6034
6329
|
};
|
|
6035
6330
|
|
|
6331
|
+
function select$5(luvio, params) {
|
|
6332
|
+
return select$i();
|
|
6333
|
+
}
|
|
6334
|
+
function getResponseCacheKeys$3(luvio, resourceParams, response) {
|
|
6335
|
+
return getTypeCacheKeys$7(luvio, response);
|
|
6336
|
+
}
|
|
6337
|
+
function ingestSuccess$3(luvio, resourceParams, response) {
|
|
6338
|
+
const { body } = response;
|
|
6339
|
+
const key = keyBuilderFromType$3(luvio, body);
|
|
6340
|
+
luvio.storeIngest(key, ingest$7, body);
|
|
6341
|
+
const snapshot = luvio.storeLookup({
|
|
6342
|
+
recordId: key,
|
|
6343
|
+
node: select$5(),
|
|
6344
|
+
variables: {},
|
|
6345
|
+
});
|
|
6346
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
6347
|
+
if (snapshot.state !== 'Fulfilled') {
|
|
6348
|
+
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
6349
|
+
}
|
|
6350
|
+
}
|
|
6351
|
+
return snapshot;
|
|
6352
|
+
}
|
|
6353
|
+
function createResourceRequest$3(config) {
|
|
6354
|
+
const headers = {};
|
|
6355
|
+
return {
|
|
6356
|
+
baseUri: '/services/data/v58.0',
|
|
6357
|
+
basePath: '/connect/cms/spaces/' + config.urlParams.contentSpaceId + '',
|
|
6358
|
+
method: 'patch',
|
|
6359
|
+
body: config.body,
|
|
6360
|
+
urlParams: config.urlParams,
|
|
6361
|
+
queryParams: {},
|
|
6362
|
+
headers,
|
|
6363
|
+
priority: 'normal',
|
|
6364
|
+
};
|
|
6365
|
+
}
|
|
6366
|
+
|
|
6367
|
+
const patchManagedContentSpace_ConfigPropertyNames = {
|
|
6368
|
+
displayName: 'patchManagedContentSpace',
|
|
6369
|
+
parameters: {
|
|
6370
|
+
required: ['contentSpaceId', 'channels', 'collaborators', 'defaultLanguage', 'description', 'isSpaceV2', 'isUndeletable', 'name', 'supportedLanguages'],
|
|
6371
|
+
optional: []
|
|
6372
|
+
}
|
|
6373
|
+
};
|
|
6374
|
+
function createResourceParams$3(config) {
|
|
6375
|
+
const resourceParams = {
|
|
6376
|
+
urlParams: {
|
|
6377
|
+
contentSpaceId: config.contentSpaceId
|
|
6378
|
+
},
|
|
6379
|
+
body: {
|
|
6380
|
+
channels: config.channels, collaborators: config.collaborators, defaultLanguage: config.defaultLanguage, description: config.description, isSpaceV2: config.isSpaceV2, isUndeletable: config.isUndeletable, name: config.name, supportedLanguages: config.supportedLanguages
|
|
6381
|
+
}
|
|
6382
|
+
};
|
|
6383
|
+
return resourceParams;
|
|
6384
|
+
}
|
|
6385
|
+
function typeCheckConfig$3(untrustedConfig) {
|
|
6386
|
+
const config = {};
|
|
6387
|
+
const untrustedConfig_contentSpaceId = untrustedConfig.contentSpaceId;
|
|
6388
|
+
if (typeof untrustedConfig_contentSpaceId === 'string') {
|
|
6389
|
+
config.contentSpaceId = untrustedConfig_contentSpaceId;
|
|
6390
|
+
}
|
|
6391
|
+
const untrustedConfig_channels = untrustedConfig.channels;
|
|
6392
|
+
if (ArrayIsArray$1(untrustedConfig_channels)) {
|
|
6393
|
+
const untrustedConfig_channels_array = [];
|
|
6394
|
+
for (let i = 0, arrayLength = untrustedConfig_channels.length; i < arrayLength; i++) {
|
|
6395
|
+
const untrustedConfig_channels_item = untrustedConfig_channels[i];
|
|
6396
|
+
if (typeof untrustedConfig_channels_item === 'string') {
|
|
6397
|
+
untrustedConfig_channels_array.push(untrustedConfig_channels_item);
|
|
6398
|
+
}
|
|
6399
|
+
}
|
|
6400
|
+
config.channels = untrustedConfig_channels_array;
|
|
6401
|
+
}
|
|
6402
|
+
const untrustedConfig_collaborators = untrustedConfig.collaborators;
|
|
6403
|
+
if (ArrayIsArray$1(untrustedConfig_collaborators)) {
|
|
6404
|
+
const untrustedConfig_collaborators_array = [];
|
|
6405
|
+
for (let i = 0, arrayLength = untrustedConfig_collaborators.length; i < arrayLength; i++) {
|
|
6406
|
+
const untrustedConfig_collaborators_item = untrustedConfig_collaborators[i];
|
|
6407
|
+
if (untrustedIsObject(untrustedConfig_collaborators_item)) {
|
|
6408
|
+
const untrustedConfig_collaborators_item_object = {};
|
|
6409
|
+
if (untrustedConfig_collaborators_item_object !== undefined && Object.keys(untrustedConfig_collaborators_item_object).length >= 0) {
|
|
6410
|
+
untrustedConfig_collaborators_array.push(untrustedConfig_collaborators_item_object);
|
|
6411
|
+
}
|
|
6412
|
+
}
|
|
6413
|
+
}
|
|
6414
|
+
config.collaborators = untrustedConfig_collaborators_array;
|
|
6415
|
+
}
|
|
6416
|
+
const untrustedConfig_defaultLanguage = untrustedConfig.defaultLanguage;
|
|
6417
|
+
if (typeof untrustedConfig_defaultLanguage === 'string') {
|
|
6418
|
+
config.defaultLanguage = untrustedConfig_defaultLanguage;
|
|
6419
|
+
}
|
|
6420
|
+
const untrustedConfig_description = untrustedConfig.description;
|
|
6421
|
+
if (typeof untrustedConfig_description === 'string') {
|
|
6422
|
+
config.description = untrustedConfig_description;
|
|
6423
|
+
}
|
|
6424
|
+
const untrustedConfig_isSpaceV2 = untrustedConfig.isSpaceV2;
|
|
6425
|
+
if (typeof untrustedConfig_isSpaceV2 === 'boolean') {
|
|
6426
|
+
config.isSpaceV2 = untrustedConfig_isSpaceV2;
|
|
6427
|
+
}
|
|
6428
|
+
const untrustedConfig_isUndeletable = untrustedConfig.isUndeletable;
|
|
6429
|
+
if (typeof untrustedConfig_isUndeletable === 'boolean') {
|
|
6430
|
+
config.isUndeletable = untrustedConfig_isUndeletable;
|
|
6431
|
+
}
|
|
6432
|
+
const untrustedConfig_name = untrustedConfig.name;
|
|
6433
|
+
if (typeof untrustedConfig_name === 'string') {
|
|
6434
|
+
config.name = untrustedConfig_name;
|
|
6435
|
+
}
|
|
6436
|
+
const untrustedConfig_supportedLanguages = untrustedConfig.supportedLanguages;
|
|
6437
|
+
if (ArrayIsArray$1(untrustedConfig_supportedLanguages)) {
|
|
6438
|
+
const untrustedConfig_supportedLanguages_array = [];
|
|
6439
|
+
for (let i = 0, arrayLength = untrustedConfig_supportedLanguages.length; i < arrayLength; i++) {
|
|
6440
|
+
const untrustedConfig_supportedLanguages_item = untrustedConfig_supportedLanguages[i];
|
|
6441
|
+
if (typeof untrustedConfig_supportedLanguages_item === 'string') {
|
|
6442
|
+
untrustedConfig_supportedLanguages_array.push(untrustedConfig_supportedLanguages_item);
|
|
6443
|
+
}
|
|
6444
|
+
}
|
|
6445
|
+
config.supportedLanguages = untrustedConfig_supportedLanguages_array;
|
|
6446
|
+
}
|
|
6447
|
+
return config;
|
|
6448
|
+
}
|
|
6449
|
+
function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
|
|
6450
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
6451
|
+
return null;
|
|
6452
|
+
}
|
|
6453
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
6454
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
6455
|
+
}
|
|
6456
|
+
const config = typeCheckConfig$3(untrustedConfig);
|
|
6457
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
6458
|
+
return null;
|
|
6459
|
+
}
|
|
6460
|
+
return config;
|
|
6461
|
+
}
|
|
6462
|
+
function buildNetworkSnapshot$3(luvio, config, options) {
|
|
6463
|
+
const resourceParams = createResourceParams$3(config);
|
|
6464
|
+
const request = createResourceRequest$3(resourceParams);
|
|
6465
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
6466
|
+
.then((response) => {
|
|
6467
|
+
return luvio.handleSuccessResponse(() => {
|
|
6468
|
+
const snapshot = ingestSuccess$3(luvio, resourceParams, response);
|
|
6469
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
6470
|
+
}, () => getResponseCacheKeys$3(luvio, resourceParams, response.body));
|
|
6471
|
+
}, (response) => {
|
|
6472
|
+
deepFreeze$u(response);
|
|
6473
|
+
throw response;
|
|
6474
|
+
});
|
|
6475
|
+
}
|
|
6476
|
+
const patchManagedContentSpaceAdapterFactory = (luvio) => {
|
|
6477
|
+
return function patchManagedContentSpace(untrustedConfig) {
|
|
6478
|
+
const config = validateAdapterConfig$3(untrustedConfig, patchManagedContentSpace_ConfigPropertyNames);
|
|
6479
|
+
// Invalid or incomplete config
|
|
6480
|
+
if (config === null) {
|
|
6481
|
+
throw new Error('Invalid config for "patchManagedContentSpace"');
|
|
6482
|
+
}
|
|
6483
|
+
return buildNetworkSnapshot$3(luvio, config);
|
|
6484
|
+
};
|
|
6485
|
+
};
|
|
6486
|
+
|
|
6036
6487
|
function validate$4(obj, path = 'ManagedContentPublishInputRepresentation') {
|
|
6037
6488
|
const v_error = (() => {
|
|
6038
6489
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -6356,15 +6807,15 @@ function validate$2(obj, path = 'ManagedContentVariantUpdateInputRepresentation'
|
|
|
6356
6807
|
}
|
|
6357
6808
|
|
|
6358
6809
|
function select$2(luvio, params) {
|
|
6359
|
-
return select$
|
|
6810
|
+
return select$t();
|
|
6360
6811
|
}
|
|
6361
6812
|
function getResponseCacheKeys$1(luvio, resourceParams, response) {
|
|
6362
|
-
return getTypeCacheKeys$
|
|
6813
|
+
return getTypeCacheKeys$c(luvio, response);
|
|
6363
6814
|
}
|
|
6364
6815
|
function ingestSuccess$1(luvio, resourceParams, response) {
|
|
6365
6816
|
const { body } = response;
|
|
6366
|
-
const key = keyBuilderFromType$
|
|
6367
|
-
luvio.storeIngest(key, ingest$
|
|
6817
|
+
const key = keyBuilderFromType$6(luvio, body);
|
|
6818
|
+
luvio.storeIngest(key, ingest$c, body);
|
|
6368
6819
|
const snapshot = luvio.storeLookup({
|
|
6369
6820
|
recordId: key,
|
|
6370
6821
|
node: select$2(),
|
|
@@ -6753,6 +7204,8 @@ let getCollectionItems;
|
|
|
6753
7204
|
let getManagedContent;
|
|
6754
7205
|
let getManagedContentByFolderId;
|
|
6755
7206
|
let getManagedContentReferencedBy;
|
|
7207
|
+
let getManagedContentSpace;
|
|
7208
|
+
let getManagedContentSpaceNotifyChange;
|
|
6756
7209
|
let getManagedContentSpaces;
|
|
6757
7210
|
let getManagedContentVariant;
|
|
6758
7211
|
let getManagedContentVariantNotifyChange;
|
|
@@ -6761,6 +7214,7 @@ let getManagedContentVariantRendition;
|
|
|
6761
7214
|
let getManagedContentVariantVersions;
|
|
6762
7215
|
let getManagedContentVariantVersionsNotifyChange;
|
|
6763
7216
|
let getSearchResults;
|
|
7217
|
+
let patchManagedContentSpace;
|
|
6764
7218
|
let publishManagedContent;
|
|
6765
7219
|
let replaceManagedContentVariant;
|
|
6766
7220
|
let unpublishManagedContent;
|
|
@@ -6769,6 +7223,7 @@ let getCollectionItems_imperative;
|
|
|
6769
7223
|
let getManagedContent_imperative;
|
|
6770
7224
|
let getManagedContentByFolderId_imperative;
|
|
6771
7225
|
let getManagedContentReferencedBy_imperative;
|
|
7226
|
+
let getManagedContentSpace_imperative;
|
|
6772
7227
|
let getManagedContentSpaces_imperative;
|
|
6773
7228
|
let getManagedContentVariant_imperative;
|
|
6774
7229
|
let getManagedContentVariantReferences_imperative;
|
|
@@ -6779,6 +7234,7 @@ const getCollectionItemsMetadata = { apiFamily: 'CMSAuthoring', name: 'getCollec
|
|
|
6779
7234
|
const getManagedContentMetadata = { apiFamily: 'CMSAuthoring', name: 'getManagedContent', ttl: 100 };
|
|
6780
7235
|
const getManagedContentByFolderIdMetadata = { apiFamily: 'CMSAuthoring', name: 'getManagedContentByFolderId', ttl: 100 };
|
|
6781
7236
|
const getManagedContentReferencedByMetadata = { apiFamily: 'CMSAuthoring', name: 'getManagedContentReferencedBy', ttl: 100 };
|
|
7237
|
+
const getManagedContentSpaceMetadata = { apiFamily: 'CMSAuthoring', name: 'getManagedContentSpace', ttl: 100 };
|
|
6782
7238
|
const getManagedContentSpacesMetadata = { apiFamily: 'CMSAuthoring', name: 'getManagedContentSpaces', ttl: 100 };
|
|
6783
7239
|
const getManagedContentVariantMetadata = { apiFamily: 'CMSAuthoring', name: 'getManagedContentVariant', ttl: 3600000 };
|
|
6784
7240
|
const getManagedContentVariantReferencesMetadata = { apiFamily: 'CMSAuthoring', name: 'getManagedContentVariantReferences', ttl: 100 };
|
|
@@ -6791,6 +7247,7 @@ function bindExportsTo(luvio) {
|
|
|
6791
7247
|
const getManagedContent_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getManagedContent', getManagedContentAdapterFactory), getManagedContentMetadata);
|
|
6792
7248
|
const getManagedContentByFolderId_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getManagedContentByFolderId', getManagedContentByFolderIdAdapterFactory), getManagedContentByFolderIdMetadata);
|
|
6793
7249
|
const getManagedContentReferencedBy_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getManagedContentReferencedBy', getManagedContentReferencedByAdapterFactory), getManagedContentReferencedByMetadata);
|
|
7250
|
+
const getManagedContentSpace_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getManagedContentSpace', getManagedContentSpaceAdapterFactory), getManagedContentSpaceMetadata);
|
|
6794
7251
|
const getManagedContentSpaces_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getManagedContentSpaces', getManagedContentSpacesAdapterFactory), getManagedContentSpacesMetadata);
|
|
6795
7252
|
const getManagedContentVariant_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getManagedContentVariant', getManagedContentVariantAdapterFactory), getManagedContentVariantMetadata);
|
|
6796
7253
|
const getManagedContentVariantReferences_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getManagedContentVariantReferences', getManagedContentVariantReferencesAdapterFactory), getManagedContentVariantReferencesMetadata);
|
|
@@ -6813,6 +7270,8 @@ function bindExportsTo(luvio) {
|
|
|
6813
7270
|
getManagedContent: createWireAdapterConstructor(luvio, getManagedContent_ldsAdapter, getManagedContentMetadata),
|
|
6814
7271
|
getManagedContentByFolderId: createWireAdapterConstructor(luvio, getManagedContentByFolderId_ldsAdapter, getManagedContentByFolderIdMetadata),
|
|
6815
7272
|
getManagedContentReferencedBy: createWireAdapterConstructor(luvio, getManagedContentReferencedBy_ldsAdapter, getManagedContentReferencedByMetadata),
|
|
7273
|
+
getManagedContentSpace: createWireAdapterConstructor(luvio, getManagedContentSpace_ldsAdapter, getManagedContentSpaceMetadata),
|
|
7274
|
+
getManagedContentSpaceNotifyChange: createLDSAdapter(luvio, 'getManagedContentSpaceNotifyChange', notifyChangeFactory$2),
|
|
6816
7275
|
getManagedContentSpaces: createWireAdapterConstructor(luvio, getManagedContentSpaces_ldsAdapter, getManagedContentSpacesMetadata),
|
|
6817
7276
|
getManagedContentVariant: createWireAdapterConstructor(luvio, getManagedContentVariant_ldsAdapter, getManagedContentVariantMetadata),
|
|
6818
7277
|
getManagedContentVariantNotifyChange: createLDSAdapter(luvio, 'getManagedContentVariantNotifyChange', notifyChangeFactory$1),
|
|
@@ -6821,6 +7280,7 @@ function bindExportsTo(luvio) {
|
|
|
6821
7280
|
getManagedContentVariantVersions: createWireAdapterConstructor(luvio, getManagedContentVariantVersions_ldsAdapter, getManagedContentVariantVersionsMetadata),
|
|
6822
7281
|
getManagedContentVariantVersionsNotifyChange: createLDSAdapter(luvio, 'getManagedContentVariantVersionsNotifyChange', notifyChangeFactory),
|
|
6823
7282
|
getSearchResults: createWireAdapterConstructor(luvio, getSearchResults_ldsAdapter, getSearchResultsMetadata),
|
|
7283
|
+
patchManagedContentSpace: unwrapSnapshotData(patchManagedContentSpaceAdapterFactory),
|
|
6824
7284
|
publishManagedContent: unwrapSnapshotData(publishManagedContentAdapterFactory),
|
|
6825
7285
|
replaceManagedContentVariant: unwrapSnapshotData(replaceManagedContentVariantAdapterFactory),
|
|
6826
7286
|
unpublishManagedContent: unwrapSnapshotData(unpublishManagedContentAdapterFactory),
|
|
@@ -6829,6 +7289,7 @@ function bindExportsTo(luvio) {
|
|
|
6829
7289
|
getManagedContent_imperative: createImperativeAdapter(luvio, getManagedContent_ldsAdapter, getManagedContentMetadata),
|
|
6830
7290
|
getManagedContentByFolderId_imperative: createImperativeAdapter(luvio, getManagedContentByFolderId_ldsAdapter, getManagedContentByFolderIdMetadata),
|
|
6831
7291
|
getManagedContentReferencedBy_imperative: createImperativeAdapter(luvio, getManagedContentReferencedBy_ldsAdapter, getManagedContentReferencedByMetadata),
|
|
7292
|
+
getManagedContentSpace_imperative: createImperativeAdapter(luvio, getManagedContentSpace_ldsAdapter, getManagedContentSpaceMetadata),
|
|
6832
7293
|
getManagedContentSpaces_imperative: createImperativeAdapter(luvio, getManagedContentSpaces_ldsAdapter, getManagedContentSpacesMetadata),
|
|
6833
7294
|
getManagedContentVariant_imperative: createImperativeAdapter(luvio, getManagedContentVariant_ldsAdapter, getManagedContentVariantMetadata),
|
|
6834
7295
|
getManagedContentVariantReferences_imperative: createImperativeAdapter(luvio, getManagedContentVariantReferences_ldsAdapter, getManagedContentVariantReferencesMetadata),
|
|
@@ -6850,6 +7311,8 @@ withDefaultLuvio((luvio) => {
|
|
|
6850
7311
|
getManagedContent,
|
|
6851
7312
|
getManagedContentByFolderId,
|
|
6852
7313
|
getManagedContentReferencedBy,
|
|
7314
|
+
getManagedContentSpace,
|
|
7315
|
+
getManagedContentSpaceNotifyChange,
|
|
6853
7316
|
getManagedContentSpaces,
|
|
6854
7317
|
getManagedContentVariant,
|
|
6855
7318
|
getManagedContentVariantNotifyChange,
|
|
@@ -6858,6 +7321,7 @@ withDefaultLuvio((luvio) => {
|
|
|
6858
7321
|
getManagedContentVariantVersions,
|
|
6859
7322
|
getManagedContentVariantVersionsNotifyChange,
|
|
6860
7323
|
getSearchResults,
|
|
7324
|
+
patchManagedContentSpace,
|
|
6861
7325
|
publishManagedContent,
|
|
6862
7326
|
replaceManagedContentVariant,
|
|
6863
7327
|
unpublishManagedContent,
|
|
@@ -6865,6 +7329,7 @@ withDefaultLuvio((luvio) => {
|
|
|
6865
7329
|
getManagedContent_imperative,
|
|
6866
7330
|
getManagedContentByFolderId_imperative,
|
|
6867
7331
|
getManagedContentReferencedBy_imperative,
|
|
7332
|
+
getManagedContentSpace_imperative,
|
|
6868
7333
|
getManagedContentSpaces_imperative,
|
|
6869
7334
|
getManagedContentVariant_imperative,
|
|
6870
7335
|
getManagedContentVariantReferences_imperative,
|
|
@@ -6874,5 +7339,5 @@ withDefaultLuvio((luvio) => {
|
|
|
6874
7339
|
} = bindExportsTo(luvio));
|
|
6875
7340
|
});
|
|
6876
7341
|
|
|
6877
|
-
export { createDeployment, createManagedContent, createManagedContentExportV2Job, createManagedContentImportV2Job, createManagedContentVariant, createTranslationV2Job, deleteManagedContentVariant, getCollectionItems, getCollectionItems_imperative, getManagedContent, getManagedContentByFolderId, getManagedContentByFolderId_imperative, getManagedContentReferencedBy, getManagedContentReferencedBy_imperative, getManagedContentSpaces, getManagedContentSpaces_imperative, getManagedContentVariant, getManagedContentVariantNotifyChange, getManagedContentVariantReferences, getManagedContentVariantReferences_imperative, getManagedContentVariantRendition, getManagedContentVariantRendition_imperative, getManagedContentVariantVersions, getManagedContentVariantVersionsNotifyChange, getManagedContentVariantVersions_imperative, getManagedContentVariant_imperative, getManagedContent_imperative, getSearchResults, getSearchResults_imperative, publishManagedContent, replaceManagedContentVariant, unpublishManagedContent };
|
|
6878
|
-
// version: 1.
|
|
7342
|
+
export { createDeployment, createManagedContent, createManagedContentExportV2Job, createManagedContentImportV2Job, createManagedContentVariant, createTranslationV2Job, deleteManagedContentVariant, getCollectionItems, getCollectionItems_imperative, getManagedContent, getManagedContentByFolderId, getManagedContentByFolderId_imperative, getManagedContentReferencedBy, getManagedContentReferencedBy_imperative, getManagedContentSpace, getManagedContentSpaceNotifyChange, getManagedContentSpace_imperative, getManagedContentSpaces, getManagedContentSpaces_imperative, getManagedContentVariant, getManagedContentVariantNotifyChange, getManagedContentVariantReferences, getManagedContentVariantReferences_imperative, getManagedContentVariantRendition, getManagedContentVariantRendition_imperative, getManagedContentVariantVersions, getManagedContentVariantVersionsNotifyChange, getManagedContentVariantVersions_imperative, getManagedContentVariant_imperative, getManagedContent_imperative, getSearchResults, getSearchResults_imperative, patchManagedContentSpace, publishManagedContent, replaceManagedContentVariant, unpublishManagedContent };
|
|
7343
|
+
// version: 1.103.0-29ed5d28b
|