@salesforce/lds-adapters-cms-authoring 1.281.0 → 1.283.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.
@@ -3379,592 +3379,7 @@ const createTranslationV2JobAdapterFactory = (luvio) => {
3379
3379
  };
3380
3380
  };
3381
3381
 
3382
- function validate$Y(obj, path = 'ManagedContentTaxonomyPathFragmentRepresentation') {
3383
- const v_error = (() => {
3384
- if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
3385
- return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
3386
- }
3387
- const obj_id = obj.id;
3388
- const path_id = path + '.id';
3389
- if (typeof obj_id !== 'string') {
3390
- return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
3391
- }
3392
- const obj_label = obj.label;
3393
- const path_label = path + '.label';
3394
- if (typeof obj_label !== 'string') {
3395
- return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
3396
- }
3397
- })();
3398
- return v_error === undefined ? null : v_error;
3399
- }
3400
-
3401
- const TTL$p = 100;
3402
- const VERSION$r = "861a01549e9c8877564cf9109fe8af72";
3403
- function validate$X(obj, path = 'ManagedContentTaxonomyPathRepresentation') {
3404
- const v_error = (() => {
3405
- if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
3406
- return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
3407
- }
3408
- const obj_label = obj.label;
3409
- const path_label = path + '.label';
3410
- if (typeof obj_label !== 'string') {
3411
- return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
3412
- }
3413
- const obj_taxonomyFragment = obj.taxonomyFragment;
3414
- const path_taxonomyFragment = path + '.taxonomyFragment';
3415
- const referencepath_taxonomyFragmentValidationError = validate$Y(obj_taxonomyFragment, path_taxonomyFragment);
3416
- if (referencepath_taxonomyFragmentValidationError !== null) {
3417
- let message = 'Object doesn\'t match ManagedContentTaxonomyPathFragmentRepresentation (at "' + path_taxonomyFragment + '")\n';
3418
- message += referencepath_taxonomyFragmentValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
3419
- return new TypeError(message);
3420
- }
3421
- const obj_termFragments = obj.termFragments;
3422
- const path_termFragments = path + '.termFragments';
3423
- if (!ArrayIsArray(obj_termFragments)) {
3424
- return new TypeError('Expected "array" but received "' + typeof obj_termFragments + '" (at "' + path_termFragments + '")');
3425
- }
3426
- for (let i = 0; i < obj_termFragments.length; i++) {
3427
- const obj_termFragments_item = obj_termFragments[i];
3428
- const path_termFragments_item = path_termFragments + '[' + i + ']';
3429
- const referencepath_termFragments_itemValidationError = validate$Y(obj_termFragments_item, path_termFragments_item);
3430
- if (referencepath_termFragments_itemValidationError !== null) {
3431
- let message = 'Object doesn\'t match ManagedContentTaxonomyPathFragmentRepresentation (at "' + path_termFragments_item + '")\n';
3432
- message += referencepath_termFragments_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
3433
- return new TypeError(message);
3434
- }
3435
- }
3436
- })();
3437
- return v_error === undefined ? null : v_error;
3438
- }
3439
- const RepresentationType$q = 'ManagedContentTaxonomyPathRepresentation';
3440
- function normalize$q(input, existing, path, luvio, store, timestamp) {
3441
- return input;
3442
- }
3443
- const select$$ = function ManagedContentTaxonomyPathRepresentationSelect() {
3444
- return {
3445
- kind: 'Fragment',
3446
- version: VERSION$r,
3447
- private: [],
3448
- opaque: true
3449
- };
3450
- };
3451
- function equals$r(existing, incoming) {
3452
- if (JSONStringify(incoming) !== JSONStringify(existing)) {
3453
- return false;
3454
- }
3455
- return true;
3456
- }
3457
- const ingest$q = function ManagedContentTaxonomyPathRepresentationIngest(input, path, luvio, store, timestamp) {
3458
- if (process.env.NODE_ENV !== 'production') {
3459
- const validateError = validate$X(input);
3460
- if (validateError !== null) {
3461
- throw validateError;
3462
- }
3463
- }
3464
- const key = path.fullPath;
3465
- const ttlToUse = TTL$p;
3466
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$q, "CMSAuthoring", VERSION$r, RepresentationType$q, equals$r);
3467
- return createLink(key);
3468
- };
3469
- function getTypeCacheKeys$q(rootKeySet, luvio, input, fullPathFactory) {
3470
- // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
3471
- const rootKey = fullPathFactory();
3472
- rootKeySet.set(rootKey, {
3473
- namespace: keyPrefix,
3474
- representationName: RepresentationType$q,
3475
- mergeable: false
3476
- });
3477
- }
3478
-
3479
- const VERSION$q = "05c4867cd20f87930367aa80db4baab5";
3480
- function validate$W(obj, path = 'ManagedContentTaxonomyTermRepresentation') {
3481
- const v_error = (() => {
3482
- if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
3483
- return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
3484
- }
3485
- const obj_id = obj.id;
3486
- const path_id = path + '.id';
3487
- if (typeof obj_id !== 'string') {
3488
- return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
3489
- }
3490
- const obj_label = obj.label;
3491
- const path_label = path + '.label';
3492
- if (typeof obj_label !== 'string') {
3493
- return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
3494
- }
3495
- const obj_pathsFromRoot = obj.pathsFromRoot;
3496
- const path_pathsFromRoot = path + '.pathsFromRoot';
3497
- if (!ArrayIsArray(obj_pathsFromRoot)) {
3498
- return new TypeError('Expected "array" but received "' + typeof obj_pathsFromRoot + '" (at "' + path_pathsFromRoot + '")');
3499
- }
3500
- for (let i = 0; i < obj_pathsFromRoot.length; i++) {
3501
- const obj_pathsFromRoot_item = obj_pathsFromRoot[i];
3502
- const path_pathsFromRoot_item = path_pathsFromRoot + '[' + i + ']';
3503
- if (typeof obj_pathsFromRoot_item !== 'object') {
3504
- return new TypeError('Expected "object" but received "' + typeof obj_pathsFromRoot_item + '" (at "' + path_pathsFromRoot_item + '")');
3505
- }
3506
- }
3507
- })();
3508
- return v_error === undefined ? null : v_error;
3509
- }
3510
- const RepresentationType$p = 'ManagedContentTaxonomyTermRepresentation';
3511
- function normalize$p(input, existing, path, luvio, store, timestamp) {
3512
- const input_pathsFromRoot = input.pathsFromRoot;
3513
- const input_pathsFromRoot_id = path.fullPath + '__pathsFromRoot';
3514
- for (let i = 0; i < input_pathsFromRoot.length; i++) {
3515
- const input_pathsFromRoot_item = input_pathsFromRoot[i];
3516
- let input_pathsFromRoot_item_id = input_pathsFromRoot_id + '__' + i;
3517
- input_pathsFromRoot[i] = ingest$q(input_pathsFromRoot_item, {
3518
- fullPath: input_pathsFromRoot_item_id,
3519
- propertyName: i,
3520
- parent: {
3521
- data: input,
3522
- key: path.fullPath,
3523
- existing: existing,
3524
- },
3525
- ttl: path.ttl
3526
- }, luvio, store, timestamp);
3527
- }
3528
- return input;
3529
- }
3530
- const select$_ = function ManagedContentTaxonomyTermRepresentationSelect() {
3531
- return {
3532
- kind: 'Fragment',
3533
- version: VERSION$q,
3534
- private: [],
3535
- selections: [
3536
- {
3537
- name: 'id',
3538
- kind: 'Scalar'
3539
- },
3540
- {
3541
- name: 'label',
3542
- kind: 'Scalar'
3543
- },
3544
- {
3545
- name: 'pathsFromRoot',
3546
- kind: 'Link',
3547
- plural: true,
3548
- fragment: select$$()
3549
- }
3550
- ]
3551
- };
3552
- };
3553
- function equals$q(existing, incoming) {
3554
- const existing_id = existing.id;
3555
- const incoming_id = incoming.id;
3556
- if (!(existing_id === incoming_id)) {
3557
- return false;
3558
- }
3559
- const existing_label = existing.label;
3560
- const incoming_label = incoming.label;
3561
- if (!(existing_label === incoming_label)) {
3562
- return false;
3563
- }
3564
- const existing_pathsFromRoot = existing.pathsFromRoot;
3565
- const incoming_pathsFromRoot = incoming.pathsFromRoot;
3566
- const equals_pathsFromRoot_items = equalsArray(existing_pathsFromRoot, incoming_pathsFromRoot, (existing_pathsFromRoot_item, incoming_pathsFromRoot_item) => {
3567
- if (!(existing_pathsFromRoot_item.__ref === incoming_pathsFromRoot_item.__ref)) {
3568
- return false;
3569
- }
3570
- });
3571
- if (equals_pathsFromRoot_items === false) {
3572
- return false;
3573
- }
3574
- return true;
3575
- }
3576
- const ingest$p = function ManagedContentTaxonomyTermRepresentationIngest(input, path, luvio, store, timestamp) {
3577
- if (process.env.NODE_ENV !== 'production') {
3578
- const validateError = validate$W(input);
3579
- if (validateError !== null) {
3580
- throw validateError;
3581
- }
3582
- }
3583
- const key = path.fullPath;
3584
- const ttlToUse = path.ttl;
3585
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$p, "CMSAuthoring", VERSION$q, RepresentationType$p, equals$q);
3586
- return createLink(key);
3587
- };
3588
- function getTypeCacheKeys$p(rootKeySet, luvio, input, fullPathFactory) {
3589
- // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
3590
- const rootKey = fullPathFactory();
3591
- rootKeySet.set(rootKey, {
3592
- namespace: keyPrefix,
3593
- representationName: RepresentationType$p,
3594
- mergeable: false
3595
- });
3596
- const input_pathsFromRoot_length = input.pathsFromRoot.length;
3597
- for (let i = 0; i < input_pathsFromRoot_length; i++) {
3598
- getTypeCacheKeys$q(rootKeySet, luvio, input.pathsFromRoot[i], () => '');
3599
- }
3600
- }
3601
-
3602
- const TTL$o = 100;
3603
- const VERSION$p = "838bc0422b420be598cab667d4031ed0";
3604
- function validate$V(obj, path = 'ManagedContentTaxonomyTermCollectionRepresentation') {
3605
- const v_error = (() => {
3606
- if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
3607
- return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
3608
- }
3609
- const obj_contentKey = obj.contentKey;
3610
- const path_contentKey = path + '.contentKey';
3611
- if (typeof obj_contentKey !== 'string') {
3612
- return new TypeError('Expected "string" but received "' + typeof obj_contentKey + '" (at "' + path_contentKey + '")');
3613
- }
3614
- const obj_managedContentId = obj.managedContentId;
3615
- const path_managedContentId = path + '.managedContentId';
3616
- if (typeof obj_managedContentId !== 'string') {
3617
- return new TypeError('Expected "string" but received "' + typeof obj_managedContentId + '" (at "' + path_managedContentId + '")');
3618
- }
3619
- const obj_taxonomyTerms = obj.taxonomyTerms;
3620
- const path_taxonomyTerms = path + '.taxonomyTerms';
3621
- if (!ArrayIsArray(obj_taxonomyTerms)) {
3622
- return new TypeError('Expected "array" but received "' + typeof obj_taxonomyTerms + '" (at "' + path_taxonomyTerms + '")');
3623
- }
3624
- for (let i = 0; i < obj_taxonomyTerms.length; i++) {
3625
- const obj_taxonomyTerms_item = obj_taxonomyTerms[i];
3626
- const path_taxonomyTerms_item = path_taxonomyTerms + '[' + i + ']';
3627
- if (typeof obj_taxonomyTerms_item !== 'object') {
3628
- return new TypeError('Expected "object" but received "' + typeof obj_taxonomyTerms_item + '" (at "' + path_taxonomyTerms_item + '")');
3629
- }
3630
- }
3631
- })();
3632
- return v_error === undefined ? null : v_error;
3633
- }
3634
- const RepresentationType$o = 'ManagedContentTaxonomyTermCollectionRepresentation';
3635
- function keyBuilder$R(luvio, config) {
3636
- return keyPrefix + '::' + RepresentationType$o + ':' + config.id;
3637
- }
3638
- function keyBuilderFromType$c(luvio, object) {
3639
- const keyParams = {
3640
- id: object.contentKey
3641
- };
3642
- return keyBuilder$R(luvio, keyParams);
3643
- }
3644
- function normalize$o(input, existing, path, luvio, store, timestamp) {
3645
- const input_taxonomyTerms = input.taxonomyTerms;
3646
- const input_taxonomyTerms_id = path.fullPath + '__taxonomyTerms';
3647
- for (let i = 0; i < input_taxonomyTerms.length; i++) {
3648
- const input_taxonomyTerms_item = input_taxonomyTerms[i];
3649
- let input_taxonomyTerms_item_id = input_taxonomyTerms_id + '__' + i;
3650
- input_taxonomyTerms[i] = ingest$p(input_taxonomyTerms_item, {
3651
- fullPath: input_taxonomyTerms_item_id,
3652
- propertyName: i,
3653
- parent: {
3654
- data: input,
3655
- key: path.fullPath,
3656
- existing: existing,
3657
- },
3658
- ttl: path.ttl
3659
- }, luvio, store, timestamp);
3660
- }
3661
- return input;
3662
- }
3663
- const select$Z = function ManagedContentTaxonomyTermCollectionRepresentationSelect() {
3664
- return {
3665
- kind: 'Fragment',
3666
- version: VERSION$p,
3667
- private: [],
3668
- selections: [
3669
- {
3670
- name: 'contentKey',
3671
- kind: 'Scalar'
3672
- },
3673
- {
3674
- name: 'managedContentId',
3675
- kind: 'Scalar'
3676
- },
3677
- {
3678
- name: 'taxonomyTerms',
3679
- kind: 'Link',
3680
- plural: true,
3681
- fragment: select$_()
3682
- }
3683
- ]
3684
- };
3685
- };
3686
- function equals$p(existing, incoming) {
3687
- const existing_contentKey = existing.contentKey;
3688
- const incoming_contentKey = incoming.contentKey;
3689
- if (!(existing_contentKey === incoming_contentKey)) {
3690
- return false;
3691
- }
3692
- const existing_managedContentId = existing.managedContentId;
3693
- const incoming_managedContentId = incoming.managedContentId;
3694
- if (!(existing_managedContentId === incoming_managedContentId)) {
3695
- return false;
3696
- }
3697
- const existing_taxonomyTerms = existing.taxonomyTerms;
3698
- const incoming_taxonomyTerms = incoming.taxonomyTerms;
3699
- const equals_taxonomyTerms_items = equalsArray(existing_taxonomyTerms, incoming_taxonomyTerms, (existing_taxonomyTerms_item, incoming_taxonomyTerms_item) => {
3700
- if (!(existing_taxonomyTerms_item.__ref === incoming_taxonomyTerms_item.__ref)) {
3701
- return false;
3702
- }
3703
- });
3704
- if (equals_taxonomyTerms_items === false) {
3705
- return false;
3706
- }
3707
- return true;
3708
- }
3709
- const ingest$o = function ManagedContentTaxonomyTermCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
3710
- if (process.env.NODE_ENV !== 'production') {
3711
- const validateError = validate$V(input);
3712
- if (validateError !== null) {
3713
- throw validateError;
3714
- }
3715
- }
3716
- const key = keyBuilderFromType$c(luvio, input);
3717
- const ttlToUse = TTL$o;
3718
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$o, "CMSAuthoring", VERSION$p, RepresentationType$o, equals$p);
3719
- return createLink(key);
3720
- };
3721
- function getTypeCacheKeys$o(rootKeySet, luvio, input, fullPathFactory) {
3722
- // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
3723
- const rootKey = keyBuilderFromType$c(luvio, input);
3724
- rootKeySet.set(rootKey, {
3725
- namespace: keyPrefix,
3726
- representationName: RepresentationType$o,
3727
- mergeable: false
3728
- });
3729
- const input_taxonomyTerms_length = input.taxonomyTerms.length;
3730
- for (let i = 0; i < input_taxonomyTerms_length; i++) {
3731
- getTypeCacheKeys$p(rootKeySet, luvio, input.taxonomyTerms[i], () => '');
3732
- }
3733
- }
3734
-
3735
- function select$Y(luvio, params) {
3736
- return select$Z();
3737
- }
3738
- function keyBuilder$Q(luvio, params) {
3739
- return keyBuilder$R(luvio, {
3740
- id: params.urlParams.contentKeyOrId
3741
- });
3742
- }
3743
- function getResponseCacheKeys$A(storeKeyMap, luvio, resourceParams, response) {
3744
- getTypeCacheKeys$o(storeKeyMap, luvio, response);
3745
- }
3746
- function ingestSuccess$A(luvio, resourceParams, response, snapshotRefresh) {
3747
- const { body } = response;
3748
- const key = keyBuilder$Q(luvio, resourceParams);
3749
- luvio.storeIngest(key, ingest$o, body);
3750
- const snapshot = luvio.storeLookup({
3751
- recordId: key,
3752
- node: select$Y(),
3753
- variables: {},
3754
- }, snapshotRefresh);
3755
- if (process.env.NODE_ENV !== 'production') {
3756
- if (snapshot.state !== 'Fulfilled') {
3757
- throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
3758
- }
3759
- }
3760
- deepFreeze(snapshot.data);
3761
- return snapshot;
3762
- }
3763
- function ingestError$j(luvio, params, error, snapshotRefresh) {
3764
- const key = keyBuilder$Q(luvio, params);
3765
- const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
3766
- const storeMetadataParams = {
3767
- ttl: TTL$o,
3768
- namespace: keyPrefix,
3769
- version: VERSION$p,
3770
- representationName: RepresentationType$o
3771
- };
3772
- luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
3773
- return errorSnapshot;
3774
- }
3775
- function createResourceRequest$A(config) {
3776
- const headers = {};
3777
- return {
3778
- baseUri: '/services/data/v61.0',
3779
- basePath: '/connect/cms/content/' + config.urlParams.contentKeyOrId + '/taxonomy-terms',
3780
- method: 'get',
3781
- body: null,
3782
- urlParams: config.urlParams,
3783
- queryParams: {},
3784
- headers,
3785
- priority: 'normal',
3786
- };
3787
- }
3788
-
3789
- const adapterName$A = 'getManagedContentTaxonomyTerms';
3790
- const getManagedContentTaxonomyTerms_ConfigPropertyMetadata = [
3791
- generateParamConfigMetadata('contentKeyOrId', true, 0 /* UrlParameter */, 0 /* String */),
3792
- ];
3793
- const getManagedContentTaxonomyTerms_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$A, getManagedContentTaxonomyTerms_ConfigPropertyMetadata);
3794
- const createResourceParams$A = /*#__PURE__*/ createResourceParams$I(getManagedContentTaxonomyTerms_ConfigPropertyMetadata);
3795
- function keyBuilder$P(luvio, config) {
3796
- const resourceParams = createResourceParams$A(config);
3797
- return keyBuilder$Q(luvio, resourceParams);
3798
- }
3799
- function typeCheckConfig$A(untrustedConfig) {
3800
- const config = {};
3801
- typeCheckConfig$I(untrustedConfig, config, getManagedContentTaxonomyTerms_ConfigPropertyMetadata);
3802
- return config;
3803
- }
3804
- function validateAdapterConfig$A(untrustedConfig, configPropertyNames) {
3805
- if (!untrustedIsObject(untrustedConfig)) {
3806
- return null;
3807
- }
3808
- if (process.env.NODE_ENV !== 'production') {
3809
- validateConfig(untrustedConfig, configPropertyNames);
3810
- }
3811
- const config = typeCheckConfig$A(untrustedConfig);
3812
- if (!areRequiredParametersPresent(config, configPropertyNames)) {
3813
- return null;
3814
- }
3815
- return config;
3816
- }
3817
- function adapterFragment$j(luvio, config) {
3818
- createResourceParams$A(config);
3819
- return select$Y();
3820
- }
3821
- function onFetchResponseSuccess$l(luvio, config, resourceParams, response) {
3822
- const snapshot = ingestSuccess$A(luvio, resourceParams, response, {
3823
- config,
3824
- resolve: () => buildNetworkSnapshot$A(luvio, config, snapshotRefreshOptions)
3825
- });
3826
- return luvio.storeBroadcast().then(() => snapshot);
3827
- }
3828
- function onFetchResponseError$j(luvio, config, resourceParams, response) {
3829
- const snapshot = ingestError$j(luvio, resourceParams, response, {
3830
- config,
3831
- resolve: () => buildNetworkSnapshot$A(luvio, config, snapshotRefreshOptions)
3832
- });
3833
- return luvio.storeBroadcast().then(() => snapshot);
3834
- }
3835
- function buildNetworkSnapshot$A(luvio, config, options) {
3836
- const resourceParams = createResourceParams$A(config);
3837
- const request = createResourceRequest$A(resourceParams);
3838
- return luvio.dispatchResourceRequest(request, options)
3839
- .then((response) => {
3840
- return luvio.handleSuccessResponse(() => onFetchResponseSuccess$l(luvio, config, resourceParams, response), () => {
3841
- const cache = new StoreKeyMap();
3842
- getResponseCacheKeys$A(cache, luvio, resourceParams, response.body);
3843
- return cache;
3844
- });
3845
- }, (response) => {
3846
- return luvio.handleErrorResponse(() => onFetchResponseError$j(luvio, config, resourceParams, response));
3847
- });
3848
- }
3849
- function buildNetworkSnapshotCachePolicy$j(context, coercedAdapterRequestContext) {
3850
- return buildNetworkSnapshotCachePolicy$p(context, coercedAdapterRequestContext, buildNetworkSnapshot$A, undefined, false);
3851
- }
3852
- function buildCachedSnapshotCachePolicy$j(context, storeLookup) {
3853
- const { luvio, config } = context;
3854
- const selector = {
3855
- recordId: keyBuilder$P(luvio, config),
3856
- node: adapterFragment$j(luvio, config),
3857
- variables: {},
3858
- };
3859
- const cacheSnapshot = storeLookup(selector, {
3860
- config,
3861
- resolve: () => buildNetworkSnapshot$A(luvio, config, snapshotRefreshOptions)
3862
- });
3863
- return cacheSnapshot;
3864
- }
3865
- const getManagedContentTaxonomyTermsAdapterFactory = (luvio) => function CMSAuthoring__getManagedContentTaxonomyTerms(untrustedConfig, requestContext) {
3866
- const config = validateAdapterConfig$A(untrustedConfig, getManagedContentTaxonomyTerms_ConfigPropertyNames);
3867
- // Invalid or incomplete config
3868
- if (config === null) {
3869
- return null;
3870
- }
3871
- return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
3872
- buildCachedSnapshotCachePolicy$j, buildNetworkSnapshotCachePolicy$j);
3873
- };
3874
-
3875
- function select$X(luvio, params) {
3876
- return select$Z();
3877
- }
3878
- function getResponseCacheKeys$z(storeKeyMap, luvio, resourceParams, response) {
3879
- getTypeCacheKeys$o(storeKeyMap, luvio, response);
3880
- }
3881
- function ingestSuccess$z(luvio, resourceParams, response) {
3882
- const { body } = response;
3883
- const key = keyBuilderFromType$c(luvio, body);
3884
- luvio.storeIngest(key, ingest$o, body);
3885
- const snapshot = luvio.storeLookup({
3886
- recordId: key,
3887
- node: select$X(),
3888
- variables: {},
3889
- });
3890
- if (process.env.NODE_ENV !== 'production') {
3891
- if (snapshot.state !== 'Fulfilled') {
3892
- throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
3893
- }
3894
- }
3895
- deepFreeze(snapshot.data);
3896
- return snapshot;
3897
- }
3898
- function createResourceRequest$z(config) {
3899
- const headers = {};
3900
- return {
3901
- baseUri: '/services/data/v61.0',
3902
- basePath: '/connect/cms/content/' + config.urlParams.contentKeyOrId + '/taxonomy-terms',
3903
- method: 'patch',
3904
- body: config.body,
3905
- urlParams: config.urlParams,
3906
- queryParams: {},
3907
- headers,
3908
- priority: 'normal',
3909
- };
3910
- }
3911
-
3912
- const adapterName$z = 'updateManagedContentTaxonomyTerms';
3913
- const updateManagedContentTaxonomyTerms_ConfigPropertyMetadata = [
3914
- generateParamConfigMetadata('contentKeyOrId', true, 0 /* UrlParameter */, 0 /* String */),
3915
- generateParamConfigMetadata('termsToAdd', true, 2 /* Body */, 0 /* String */, true),
3916
- generateParamConfigMetadata('termsToRemove', true, 2 /* Body */, 0 /* String */, true),
3917
- ];
3918
- const updateManagedContentTaxonomyTerms_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$z, updateManagedContentTaxonomyTerms_ConfigPropertyMetadata);
3919
- const createResourceParams$z = /*#__PURE__*/ createResourceParams$I(updateManagedContentTaxonomyTerms_ConfigPropertyMetadata);
3920
- function typeCheckConfig$z(untrustedConfig) {
3921
- const config = {};
3922
- typeCheckConfig$I(untrustedConfig, config, updateManagedContentTaxonomyTerms_ConfigPropertyMetadata);
3923
- return config;
3924
- }
3925
- function validateAdapterConfig$z(untrustedConfig, configPropertyNames) {
3926
- if (!untrustedIsObject(untrustedConfig)) {
3927
- return null;
3928
- }
3929
- if (process.env.NODE_ENV !== 'production') {
3930
- validateConfig(untrustedConfig, configPropertyNames);
3931
- }
3932
- const config = typeCheckConfig$z(untrustedConfig);
3933
- if (!areRequiredParametersPresent(config, configPropertyNames)) {
3934
- return null;
3935
- }
3936
- return config;
3937
- }
3938
- function buildNetworkSnapshot$z(luvio, config, options) {
3939
- const resourceParams = createResourceParams$z(config);
3940
- const request = createResourceRequest$z(resourceParams);
3941
- return luvio.dispatchResourceRequest(request, options)
3942
- .then((response) => {
3943
- return luvio.handleSuccessResponse(() => {
3944
- const snapshot = ingestSuccess$z(luvio, resourceParams, response);
3945
- return luvio.storeBroadcast().then(() => snapshot);
3946
- }, () => {
3947
- const cache = new StoreKeyMap();
3948
- getResponseCacheKeys$z(cache, luvio, resourceParams, response.body);
3949
- return cache;
3950
- });
3951
- }, (response) => {
3952
- deepFreeze(response);
3953
- throw response;
3954
- });
3955
- }
3956
- const updateManagedContentTaxonomyTermsAdapterFactory = (luvio) => {
3957
- return function updateManagedContentTaxonomyTerms(untrustedConfig) {
3958
- const config = validateAdapterConfig$z(untrustedConfig, updateManagedContentTaxonomyTerms_ConfigPropertyNames);
3959
- // Invalid or incomplete config
3960
- if (config === null) {
3961
- throw new Error('Invalid config for "updateManagedContentTaxonomyTerms"');
3962
- }
3963
- return buildNetworkSnapshot$z(luvio, config);
3964
- };
3965
- };
3966
-
3967
- function validate$U(obj, path = 'ManagedContentInputRepresentation') {
3382
+ function validate$Y(obj, path = 'ManagedContentInputRepresentation') {
3968
3383
  const v_error = (() => {
3969
3384
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
3970
3385
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -4011,7 +3426,7 @@ function validate$U(obj, path = 'ManagedContentInputRepresentation') {
4011
3426
  return v_error === undefined ? null : v_error;
4012
3427
  }
4013
3428
 
4014
- function validate$T(obj, path = 'ManagedContentSpaceSummaryRepresentation') {
3429
+ function validate$X(obj, path = 'ManagedContentSpaceSummaryRepresentation') {
4015
3430
  const v_error = (() => {
4016
3431
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
4017
3432
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -4030,7 +3445,7 @@ function validate$T(obj, path = 'ManagedContentSpaceSummaryRepresentation') {
4030
3445
  return v_error === undefined ? null : v_error;
4031
3446
  }
4032
3447
 
4033
- function validate$S(obj, path = 'ManagedContentFolderSummaryRepresentation') {
3448
+ function validate$W(obj, path = 'ManagedContentFolderSummaryRepresentation') {
4034
3449
  const v_error = (() => {
4035
3450
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
4036
3451
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -4049,7 +3464,7 @@ function validate$S(obj, path = 'ManagedContentFolderSummaryRepresentation') {
4049
3464
  return v_error === undefined ? null : v_error;
4050
3465
  }
4051
3466
 
4052
- function validate$R(obj, path = 'ManagedContentVariantStatusRepresentation') {
3467
+ function validate$V(obj, path = 'ManagedContentVariantStatusRepresentation') {
4053
3468
  const v_error = (() => {
4054
3469
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
4055
3470
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -4068,9 +3483,9 @@ function validate$R(obj, path = 'ManagedContentVariantStatusRepresentation') {
4068
3483
  return v_error === undefined ? null : v_error;
4069
3484
  }
4070
3485
 
4071
- const TTL$n = 100;
4072
- const VERSION$o = "32da7ab9bec2902e7f2b1d1e9aa618f1";
4073
- function validate$Q(obj, path = 'ManagedContentDocumentRepresentation') {
3486
+ const TTL$p = 100;
3487
+ const VERSION$r = "32da7ab9bec2902e7f2b1d1e9aa618f1";
3488
+ function validate$U(obj, path = 'ManagedContentDocumentRepresentation') {
4074
3489
  const v_error = (() => {
4075
3490
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
4076
3491
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -4124,7 +3539,7 @@ function validate$Q(obj, path = 'ManagedContentDocumentRepresentation') {
4124
3539
  }
4125
3540
  const obj_contentSpace = obj.contentSpace;
4126
3541
  const path_contentSpace = path + '.contentSpace';
4127
- const referencepath_contentSpaceValidationError = validate$T(obj_contentSpace, path_contentSpace);
3542
+ const referencepath_contentSpaceValidationError = validate$X(obj_contentSpace, path_contentSpace);
4128
3543
  if (referencepath_contentSpaceValidationError !== null) {
4129
3544
  let message = 'Object doesn\'t match ManagedContentSpaceSummaryRepresentation (at "' + path_contentSpace + '")\n';
4130
3545
  message += referencepath_contentSpaceValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -4153,7 +3568,7 @@ function validate$Q(obj, path = 'ManagedContentDocumentRepresentation') {
4153
3568
  }
4154
3569
  const obj_folder = obj.folder;
4155
3570
  const path_folder = path + '.folder';
4156
- const referencepath_folderValidationError = validate$S(obj_folder, path_folder);
3571
+ const referencepath_folderValidationError = validate$W(obj_folder, path_folder);
4157
3572
  if (referencepath_folderValidationError !== null) {
4158
3573
  let message = 'Object doesn\'t match ManagedContentFolderSummaryRepresentation (at "' + path_folder + '")\n';
4159
3574
  message += referencepath_folderValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -4202,7 +3617,7 @@ function validate$Q(obj, path = 'ManagedContentDocumentRepresentation') {
4202
3617
  const path_status = path + '.status';
4203
3618
  let obj_status_union0 = null;
4204
3619
  const obj_status_union0_error = (() => {
4205
- const referencepath_statusValidationError = validate$R(obj_status, path_status);
3620
+ const referencepath_statusValidationError = validate$V(obj_status, path_status);
4206
3621
  if (referencepath_statusValidationError !== null) {
4207
3622
  let message = 'Object doesn\'t match ManagedContentVariantStatusRepresentation (at "' + path_status + '")\n';
4208
3623
  message += referencepath_statusValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -4272,70 +3687,70 @@ function validate$Q(obj, path = 'ManagedContentDocumentRepresentation') {
4272
3687
  })();
4273
3688
  return v_error === undefined ? null : v_error;
4274
3689
  }
4275
- const RepresentationType$n = 'ManagedContentDocumentRepresentation';
4276
- function keyBuilder$O(luvio, config) {
4277
- return keyPrefix + '::' + RepresentationType$n + ':' + config.content_key + ':' + config.language + ':' + config.version;
3690
+ const RepresentationType$q = 'ManagedContentDocumentRepresentation';
3691
+ function keyBuilder$R(luvio, config) {
3692
+ return keyPrefix + '::' + RepresentationType$q + ':' + config.content_key + ':' + config.language + ':' + config.version;
4278
3693
  }
4279
- function keyBuilderFromType$b(luvio, object) {
3694
+ function keyBuilderFromType$c(luvio, object) {
4280
3695
  const keyParams = {
4281
3696
  content_key: object.contentKey,
4282
3697
  language: object.language,
4283
3698
  version: object.version
4284
3699
  };
4285
- return keyBuilder$O(luvio, keyParams);
3700
+ return keyBuilder$R(luvio, keyParams);
4286
3701
  }
4287
- function normalize$n(input, existing, path, luvio, store, timestamp) {
3702
+ function normalize$q(input, existing, path, luvio, store, timestamp) {
4288
3703
  return input;
4289
3704
  }
4290
- const select$W = function ManagedContentDocumentRepresentationSelect() {
3705
+ const select$$ = function ManagedContentDocumentRepresentationSelect() {
4291
3706
  return {
4292
3707
  kind: 'Fragment',
4293
- version: VERSION$o,
3708
+ version: VERSION$r,
4294
3709
  private: [],
4295
3710
  opaque: true
4296
3711
  };
4297
3712
  };
4298
- function equals$o(existing, incoming) {
3713
+ function equals$r(existing, incoming) {
4299
3714
  if (JSONStringify(incoming) !== JSONStringify(existing)) {
4300
3715
  return false;
4301
3716
  }
4302
3717
  return true;
4303
3718
  }
4304
- const ingest$n = function ManagedContentDocumentRepresentationIngest(input, path, luvio, store, timestamp) {
3719
+ const ingest$q = function ManagedContentDocumentRepresentationIngest(input, path, luvio, store, timestamp) {
4305
3720
  if (process.env.NODE_ENV !== 'production') {
4306
- const validateError = validate$Q(input);
3721
+ const validateError = validate$U(input);
4307
3722
  if (validateError !== null) {
4308
3723
  throw validateError;
4309
3724
  }
4310
3725
  }
4311
- const key = keyBuilderFromType$b(luvio, input);
4312
- const ttlToUse = TTL$n;
4313
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$n, "CMSAuthoring", VERSION$o, RepresentationType$n, equals$o);
3726
+ const key = keyBuilderFromType$c(luvio, input);
3727
+ const ttlToUse = TTL$p;
3728
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$q, "CMSAuthoring", VERSION$r, RepresentationType$q, equals$r);
4314
3729
  return createLink(key);
4315
3730
  };
4316
- function getTypeCacheKeys$n(rootKeySet, luvio, input, fullPathFactory) {
3731
+ function getTypeCacheKeys$q(rootKeySet, luvio, input, fullPathFactory) {
4317
3732
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
4318
- const rootKey = keyBuilderFromType$b(luvio, input);
3733
+ const rootKey = keyBuilderFromType$c(luvio, input);
4319
3734
  rootKeySet.set(rootKey, {
4320
3735
  namespace: keyPrefix,
4321
- representationName: RepresentationType$n,
3736
+ representationName: RepresentationType$q,
4322
3737
  mergeable: false
4323
3738
  });
4324
3739
  }
4325
3740
 
4326
- function select$V(luvio, params) {
4327
- return select$W();
3741
+ function select$_(luvio, params) {
3742
+ return select$$();
4328
3743
  }
4329
- function getResponseCacheKeys$y(storeKeyMap, luvio, resourceParams, response) {
4330
- getTypeCacheKeys$n(storeKeyMap, luvio, response);
3744
+ function getResponseCacheKeys$A(storeKeyMap, luvio, resourceParams, response) {
3745
+ getTypeCacheKeys$q(storeKeyMap, luvio, response);
4331
3746
  }
4332
- function ingestSuccess$y(luvio, resourceParams, response) {
3747
+ function ingestSuccess$A(luvio, resourceParams, response) {
4333
3748
  const { body } = response;
4334
- const key = keyBuilderFromType$b(luvio, body);
4335
- luvio.storeIngest(key, ingest$n, body);
3749
+ const key = keyBuilderFromType$c(luvio, body);
3750
+ luvio.storeIngest(key, ingest$q, body);
4336
3751
  const snapshot = luvio.storeLookup({
4337
3752
  recordId: key,
4338
- node: select$V(),
3753
+ node: select$_(),
4339
3754
  variables: {},
4340
3755
  });
4341
3756
  if (process.env.NODE_ENV !== 'production') {
@@ -4346,7 +3761,7 @@ function ingestSuccess$y(luvio, resourceParams, response) {
4346
3761
  deepFreeze(snapshot.data);
4347
3762
  return snapshot;
4348
3763
  }
4349
- function createResourceRequest$y(config) {
3764
+ function createResourceRequest$A(config) {
4350
3765
  const headers = {};
4351
3766
  return {
4352
3767
  baseUri: '/services/data/v61.0',
@@ -4360,52 +3775,52 @@ function createResourceRequest$y(config) {
4360
3775
  };
4361
3776
  }
4362
3777
 
4363
- function ingestSuccess$x(luvio, resourceParams, response) {
3778
+ function ingestSuccess$z(luvio, resourceParams, response) {
4364
3779
  // Version can come either from versionNumber field in case of v2 content, or managedContentVersionId field in case of v1 content.
4365
3780
  response.body.version = (response.body.versionNumber ||
4366
3781
  response.body.managedContentVersionId);
4367
- return ingestSuccess$y(luvio, resourceParams, response);
3782
+ return ingestSuccess$A(luvio, resourceParams, response);
4368
3783
  }
4369
3784
 
4370
- const adapterName$y = 'createManagedContent';
3785
+ const adapterName$A = 'createManagedContent';
4371
3786
  const createManagedContent_ConfigPropertyMetadata = [
4372
3787
  generateParamConfigMetadata('ManagedContentInputParam', true, 2 /* Body */, 4 /* Unsupported */),
4373
3788
  ];
4374
- const createManagedContent_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$y, createManagedContent_ConfigPropertyMetadata);
4375
- const createResourceParams$y = /*#__PURE__*/ createResourceParams$I(createManagedContent_ConfigPropertyMetadata);
4376
- function typeCheckConfig$y(untrustedConfig) {
3789
+ const createManagedContent_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$A, createManagedContent_ConfigPropertyMetadata);
3790
+ const createResourceParams$A = /*#__PURE__*/ createResourceParams$I(createManagedContent_ConfigPropertyMetadata);
3791
+ function typeCheckConfig$A(untrustedConfig) {
4377
3792
  const config = {};
4378
3793
  const untrustedConfig_ManagedContentInputParam = untrustedConfig.ManagedContentInputParam;
4379
- const referenceManagedContentInputRepresentationValidationError = validate$U(untrustedConfig_ManagedContentInputParam);
3794
+ const referenceManagedContentInputRepresentationValidationError = validate$Y(untrustedConfig_ManagedContentInputParam);
4380
3795
  if (referenceManagedContentInputRepresentationValidationError === null) {
4381
3796
  config.ManagedContentInputParam = untrustedConfig_ManagedContentInputParam;
4382
3797
  }
4383
3798
  return config;
4384
3799
  }
4385
- function validateAdapterConfig$y(untrustedConfig, configPropertyNames) {
3800
+ function validateAdapterConfig$A(untrustedConfig, configPropertyNames) {
4386
3801
  if (!untrustedIsObject(untrustedConfig)) {
4387
3802
  return null;
4388
3803
  }
4389
3804
  if (process.env.NODE_ENV !== 'production') {
4390
3805
  validateConfig(untrustedConfig, configPropertyNames);
4391
3806
  }
4392
- const config = typeCheckConfig$y(untrustedConfig);
3807
+ const config = typeCheckConfig$A(untrustedConfig);
4393
3808
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
4394
3809
  return null;
4395
3810
  }
4396
3811
  return config;
4397
3812
  }
4398
- function buildNetworkSnapshot$y(luvio, config, options) {
4399
- const resourceParams = createResourceParams$y(config);
4400
- const request = createResourceRequest$y(resourceParams);
3813
+ function buildNetworkSnapshot$A(luvio, config, options) {
3814
+ const resourceParams = createResourceParams$A(config);
3815
+ const request = createResourceRequest$A(resourceParams);
4401
3816
  return luvio.dispatchResourceRequest(request, options)
4402
3817
  .then((response) => {
4403
3818
  return luvio.handleSuccessResponse(() => {
4404
- const snapshot = ingestSuccess$x(luvio, resourceParams, response);
3819
+ const snapshot = ingestSuccess$z(luvio, resourceParams, response);
4405
3820
  return luvio.storeBroadcast().then(() => snapshot);
4406
3821
  }, () => {
4407
3822
  const cache = new StoreKeyMap();
4408
- getResponseCacheKeys$y(cache, luvio, resourceParams, response.body);
3823
+ getResponseCacheKeys$A(cache, luvio, resourceParams, response.body);
4409
3824
  return cache;
4410
3825
  });
4411
3826
  }, (response) => {
@@ -4415,16 +3830,16 @@ function buildNetworkSnapshot$y(luvio, config, options) {
4415
3830
  }
4416
3831
  const createManagedContentAdapterFactory = (luvio) => {
4417
3832
  return function createManagedContent(untrustedConfig) {
4418
- const config = validateAdapterConfig$y(untrustedConfig, createManagedContent_ConfigPropertyNames);
3833
+ const config = validateAdapterConfig$A(untrustedConfig, createManagedContent_ConfigPropertyNames);
4419
3834
  // Invalid or incomplete config
4420
3835
  if (config === null) {
4421
3836
  throw new Error('Invalid config for "createManagedContent"');
4422
3837
  }
4423
- return buildNetworkSnapshot$y(luvio, config);
3838
+ return buildNetworkSnapshot$A(luvio, config);
4424
3839
  };
4425
3840
  };
4426
3841
 
4427
- function validate$P(obj, path = 'ManagedContentCloneItemRepresentation') {
3842
+ function validate$T(obj, path = 'ManagedContentCloneItemRepresentation') {
4428
3843
  const v_error = (() => {
4429
3844
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
4430
3845
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -4445,7 +3860,7 @@ function validate$P(obj, path = 'ManagedContentCloneItemRepresentation') {
4445
3860
  return v_error === undefined ? null : v_error;
4446
3861
  }
4447
3862
 
4448
- function validate$O(obj, path = 'ManagedContentCloneStatusRepresentation') {
3863
+ function validate$S(obj, path = 'ManagedContentCloneStatusRepresentation') {
4449
3864
  const v_error = (() => {
4450
3865
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
4451
3866
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -4464,7 +3879,7 @@ function validate$O(obj, path = 'ManagedContentCloneStatusRepresentation') {
4464
3879
  return v_error === undefined ? null : v_error;
4465
3880
  }
4466
3881
 
4467
- function validate$N(obj, path = 'ManagedContentFailedVariantsRepresentation') {
3882
+ function validate$R(obj, path = 'ManagedContentFailedVariantsRepresentation') {
4468
3883
  const v_error = (() => {
4469
3884
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
4470
3885
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -4488,7 +3903,7 @@ function validate$N(obj, path = 'ManagedContentFailedVariantsRepresentation') {
4488
3903
  return v_error === undefined ? null : v_error;
4489
3904
  }
4490
3905
 
4491
- function validate$M(obj, path = 'ManagedContentClonedVariantRepresentation') {
3906
+ function validate$Q(obj, path = 'ManagedContentClonedVariantRepresentation') {
4492
3907
  const v_error = (() => {
4493
3908
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
4494
3909
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -4533,14 +3948,14 @@ function validate$M(obj, path = 'ManagedContentClonedVariantRepresentation') {
4533
3948
  return v_error === undefined ? null : v_error;
4534
3949
  }
4535
3950
 
4536
- function validate$L(obj, path = 'ManagedContentCloneRepresentation') {
3951
+ function validate$P(obj, path = 'ManagedContentCloneRepresentation') {
4537
3952
  const v_error = (() => {
4538
3953
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
4539
3954
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
4540
3955
  }
4541
3956
  const obj_cloneStatus = obj.cloneStatus;
4542
3957
  const path_cloneStatus = path + '.cloneStatus';
4543
- const referencepath_cloneStatusValidationError = validate$O(obj_cloneStatus, path_cloneStatus);
3958
+ const referencepath_cloneStatusValidationError = validate$S(obj_cloneStatus, path_cloneStatus);
4544
3959
  if (referencepath_cloneStatusValidationError !== null) {
4545
3960
  let message = 'Object doesn\'t match ManagedContentCloneStatusRepresentation (at "' + path_cloneStatus + '")\n';
4546
3961
  message += referencepath_cloneStatusValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -4611,7 +4026,7 @@ function validate$L(obj, path = 'ManagedContentCloneRepresentation') {
4611
4026
  for (let i = 0; i < obj_failedVariants.length; i++) {
4612
4027
  const obj_failedVariants_item = obj_failedVariants[i];
4613
4028
  const path_failedVariants_item = path_failedVariants + '[' + i + ']';
4614
- const referencepath_failedVariants_itemValidationError = validate$N(obj_failedVariants_item, path_failedVariants_item);
4029
+ const referencepath_failedVariants_itemValidationError = validate$R(obj_failedVariants_item, path_failedVariants_item);
4615
4030
  if (referencepath_failedVariants_itemValidationError !== null) {
4616
4031
  let message = 'Object doesn\'t match ManagedContentFailedVariantsRepresentation (at "' + path_failedVariants_item + '")\n';
4617
4032
  message += referencepath_failedVariants_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -4717,7 +4132,7 @@ function validate$L(obj, path = 'ManagedContentCloneRepresentation') {
4717
4132
  for (let i = 0; i < obj_variants.length; i++) {
4718
4133
  const obj_variants_item = obj_variants[i];
4719
4134
  const path_variants_item = path_variants + '[' + i + ']';
4720
- const referencepath_variants_itemValidationError = validate$M(obj_variants_item, path_variants_item);
4135
+ const referencepath_variants_itemValidationError = validate$Q(obj_variants_item, path_variants_item);
4721
4136
  if (referencepath_variants_itemValidationError !== null) {
4722
4137
  let message = 'Object doesn\'t match ManagedContentClonedVariantRepresentation (at "' + path_variants_item + '")\n';
4723
4138
  message += referencepath_variants_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -4729,9 +4144,9 @@ function validate$L(obj, path = 'ManagedContentCloneRepresentation') {
4729
4144
  return v_error === undefined ? null : v_error;
4730
4145
  }
4731
4146
 
4732
- const TTL$m = 100;
4733
- const VERSION$n = "cd2506a860c4f555d401c1c68ff97158";
4734
- function validate$K(obj, path = 'ManagedContentCloneCollectionRepresentation') {
4147
+ const TTL$o = 100;
4148
+ const VERSION$q = "cd2506a860c4f555d401c1c68ff97158";
4149
+ function validate$O(obj, path = 'ManagedContentCloneCollectionRepresentation') {
4735
4150
  const v_error = (() => {
4736
4151
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
4737
4152
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -4744,7 +4159,7 @@ function validate$K(obj, path = 'ManagedContentCloneCollectionRepresentation') {
4744
4159
  for (let i = 0; i < obj_contents.length; i++) {
4745
4160
  const obj_contents_item = obj_contents[i];
4746
4161
  const path_contents_item = path_contents + '[' + i + ']';
4747
- const referencepath_contents_itemValidationError = validate$L(obj_contents_item, path_contents_item);
4162
+ const referencepath_contents_itemValidationError = validate$P(obj_contents_item, path_contents_item);
4748
4163
  if (referencepath_contents_itemValidationError !== null) {
4749
4164
  let message = 'Object doesn\'t match ManagedContentCloneRepresentation (at "' + path_contents_item + '")\n';
4750
4165
  message += referencepath_contents_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -4759,68 +4174,68 @@ function validate$K(obj, path = 'ManagedContentCloneCollectionRepresentation') {
4759
4174
  })();
4760
4175
  return v_error === undefined ? null : v_error;
4761
4176
  }
4762
- const RepresentationType$m = 'ManagedContentCloneCollectionRepresentation';
4763
- function keyBuilder$N(luvio, config) {
4764
- return keyPrefix + '::' + RepresentationType$m + ':' + config.id;
4177
+ const RepresentationType$p = 'ManagedContentCloneCollectionRepresentation';
4178
+ function keyBuilder$Q(luvio, config) {
4179
+ return keyPrefix + '::' + RepresentationType$p + ':' + config.id;
4765
4180
  }
4766
- function keyBuilderFromType$a(luvio, object) {
4181
+ function keyBuilderFromType$b(luvio, object) {
4767
4182
  const keyParams = {
4768
4183
  id: object.id
4769
4184
  };
4770
- return keyBuilder$N(luvio, keyParams);
4185
+ return keyBuilder$Q(luvio, keyParams);
4771
4186
  }
4772
- function normalize$m(input, existing, path, luvio, store, timestamp) {
4187
+ function normalize$p(input, existing, path, luvio, store, timestamp) {
4773
4188
  return input;
4774
4189
  }
4775
- const select$U = function ManagedContentCloneCollectionRepresentationSelect() {
4190
+ const select$Z = function ManagedContentCloneCollectionRepresentationSelect() {
4776
4191
  return {
4777
4192
  kind: 'Fragment',
4778
- version: VERSION$n,
4193
+ version: VERSION$q,
4779
4194
  private: [],
4780
4195
  opaque: true
4781
4196
  };
4782
4197
  };
4783
- function equals$n(existing, incoming) {
4198
+ function equals$q(existing, incoming) {
4784
4199
  if (JSONStringify(incoming) !== JSONStringify(existing)) {
4785
4200
  return false;
4786
4201
  }
4787
4202
  return true;
4788
4203
  }
4789
- const ingest$m = function ManagedContentCloneCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
4204
+ const ingest$p = function ManagedContentCloneCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
4790
4205
  if (process.env.NODE_ENV !== 'production') {
4791
- const validateError = validate$K(input);
4206
+ const validateError = validate$O(input);
4792
4207
  if (validateError !== null) {
4793
4208
  throw validateError;
4794
4209
  }
4795
4210
  }
4796
- const key = keyBuilderFromType$a(luvio, input);
4797
- const ttlToUse = TTL$m;
4798
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$m, "CMSAuthoring", VERSION$n, RepresentationType$m, equals$n);
4211
+ const key = keyBuilderFromType$b(luvio, input);
4212
+ const ttlToUse = TTL$o;
4213
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$p, "CMSAuthoring", VERSION$q, RepresentationType$p, equals$q);
4799
4214
  return createLink(key);
4800
4215
  };
4801
- function getTypeCacheKeys$m(rootKeySet, luvio, input, fullPathFactory) {
4216
+ function getTypeCacheKeys$p(rootKeySet, luvio, input, fullPathFactory) {
4802
4217
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
4803
- const rootKey = keyBuilderFromType$a(luvio, input);
4218
+ const rootKey = keyBuilderFromType$b(luvio, input);
4804
4219
  rootKeySet.set(rootKey, {
4805
4220
  namespace: keyPrefix,
4806
- representationName: RepresentationType$m,
4221
+ representationName: RepresentationType$p,
4807
4222
  mergeable: false
4808
4223
  });
4809
4224
  }
4810
4225
 
4811
- function select$T(luvio, params) {
4812
- return select$U();
4226
+ function select$Y(luvio, params) {
4227
+ return select$Z();
4813
4228
  }
4814
- function getResponseCacheKeys$x(storeKeyMap, luvio, resourceParams, response) {
4815
- getTypeCacheKeys$m(storeKeyMap, luvio, response);
4229
+ function getResponseCacheKeys$z(storeKeyMap, luvio, resourceParams, response) {
4230
+ getTypeCacheKeys$p(storeKeyMap, luvio, response);
4816
4231
  }
4817
- function ingestSuccess$w(luvio, resourceParams, response) {
4232
+ function ingestSuccess$y(luvio, resourceParams, response) {
4818
4233
  const { body } = response;
4819
- const key = keyBuilderFromType$a(luvio, body);
4820
- luvio.storeIngest(key, ingest$m, body);
4234
+ const key = keyBuilderFromType$b(luvio, body);
4235
+ luvio.storeIngest(key, ingest$p, body);
4821
4236
  const snapshot = luvio.storeLookup({
4822
4237
  recordId: key,
4823
- node: select$T(),
4238
+ node: select$Y(),
4824
4239
  variables: {},
4825
4240
  });
4826
4241
  if (process.env.NODE_ENV !== 'production') {
@@ -4831,7 +4246,7 @@ function ingestSuccess$w(luvio, resourceParams, response) {
4831
4246
  deepFreeze(snapshot.data);
4832
4247
  return snapshot;
4833
4248
  }
4834
- function createResourceRequest$x(config) {
4249
+ function createResourceRequest$z(config) {
4835
4250
  const headers = {};
4836
4251
  return {
4837
4252
  baseUri: '/services/data/v61.0',
@@ -4845,15 +4260,15 @@ function createResourceRequest$x(config) {
4845
4260
  };
4846
4261
  }
4847
4262
 
4848
- const adapterName$x = 'cloneManagedContents';
4263
+ const adapterName$z = 'cloneManagedContents';
4849
4264
  const cloneManagedContents_ConfigPropertyMetadata = [
4850
4265
  generateParamConfigMetadata('contents', true, 2 /* Body */, 4 /* Unsupported */, true),
4851
4266
  generateParamConfigMetadata('includeVariants', false, 2 /* Body */, 1 /* Boolean */),
4852
4267
  generateParamConfigMetadata('targetContentSpaceOrFolderId', false, 2 /* Body */, 0 /* String */),
4853
4268
  ];
4854
- const cloneManagedContents_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$x, cloneManagedContents_ConfigPropertyMetadata);
4855
- const createResourceParams$x = /*#__PURE__*/ createResourceParams$I(cloneManagedContents_ConfigPropertyMetadata);
4856
- function typeCheckConfig$x(untrustedConfig) {
4269
+ const cloneManagedContents_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$z, cloneManagedContents_ConfigPropertyMetadata);
4270
+ const createResourceParams$z = /*#__PURE__*/ createResourceParams$I(cloneManagedContents_ConfigPropertyMetadata);
4271
+ function typeCheckConfig$z(untrustedConfig) {
4857
4272
  const config = {};
4858
4273
  typeCheckConfig$I(untrustedConfig, config, cloneManagedContents_ConfigPropertyMetadata);
4859
4274
  const untrustedConfig_contents = untrustedConfig.contents;
@@ -4861,7 +4276,7 @@ function typeCheckConfig$x(untrustedConfig) {
4861
4276
  const untrustedConfig_contents_array = [];
4862
4277
  for (let i = 0, arrayLength = untrustedConfig_contents.length; i < arrayLength; i++) {
4863
4278
  const untrustedConfig_contents_item = untrustedConfig_contents[i];
4864
- const referenceManagedContentCloneItemRepresentationValidationError = validate$P(untrustedConfig_contents_item);
4279
+ const referenceManagedContentCloneItemRepresentationValidationError = validate$T(untrustedConfig_contents_item);
4865
4280
  if (referenceManagedContentCloneItemRepresentationValidationError === null) {
4866
4281
  untrustedConfig_contents_array.push(untrustedConfig_contents_item);
4867
4282
  }
@@ -4870,30 +4285,30 @@ function typeCheckConfig$x(untrustedConfig) {
4870
4285
  }
4871
4286
  return config;
4872
4287
  }
4873
- function validateAdapterConfig$x(untrustedConfig, configPropertyNames) {
4288
+ function validateAdapterConfig$z(untrustedConfig, configPropertyNames) {
4874
4289
  if (!untrustedIsObject(untrustedConfig)) {
4875
4290
  return null;
4876
4291
  }
4877
4292
  if (process.env.NODE_ENV !== 'production') {
4878
4293
  validateConfig(untrustedConfig, configPropertyNames);
4879
4294
  }
4880
- const config = typeCheckConfig$x(untrustedConfig);
4295
+ const config = typeCheckConfig$z(untrustedConfig);
4881
4296
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
4882
4297
  return null;
4883
4298
  }
4884
4299
  return config;
4885
4300
  }
4886
- function buildNetworkSnapshot$x(luvio, config, options) {
4887
- const resourceParams = createResourceParams$x(config);
4888
- const request = createResourceRequest$x(resourceParams);
4301
+ function buildNetworkSnapshot$z(luvio, config, options) {
4302
+ const resourceParams = createResourceParams$z(config);
4303
+ const request = createResourceRequest$z(resourceParams);
4889
4304
  return luvio.dispatchResourceRequest(request, options)
4890
4305
  .then((response) => {
4891
4306
  return luvio.handleSuccessResponse(() => {
4892
- const snapshot = ingestSuccess$w(luvio, resourceParams, response);
4307
+ const snapshot = ingestSuccess$y(luvio, resourceParams, response);
4893
4308
  return luvio.storeBroadcast().then(() => snapshot);
4894
4309
  }, () => {
4895
4310
  const cache = new StoreKeyMap();
4896
- getResponseCacheKeys$x(cache, luvio, resourceParams, response.body);
4311
+ getResponseCacheKeys$z(cache, luvio, resourceParams, response.body);
4897
4312
  return cache;
4898
4313
  });
4899
4314
  }, (response) => {
@@ -4903,18 +4318,18 @@ function buildNetworkSnapshot$x(luvio, config, options) {
4903
4318
  }
4904
4319
  const cloneManagedContentsAdapterFactory = (luvio) => {
4905
4320
  return function cloneManagedContents(untrustedConfig) {
4906
- const config = validateAdapterConfig$x(untrustedConfig, cloneManagedContents_ConfigPropertyNames);
4321
+ const config = validateAdapterConfig$z(untrustedConfig, cloneManagedContents_ConfigPropertyNames);
4907
4322
  // Invalid or incomplete config
4908
4323
  if (config === null) {
4909
4324
  throw new Error('Invalid config for "cloneManagedContents"');
4910
4325
  }
4911
- return buildNetworkSnapshot$x(luvio, config);
4326
+ return buildNetworkSnapshot$z(luvio, config);
4912
4327
  };
4913
4328
  };
4914
4329
 
4915
- const TTL$l = 100;
4916
- const VERSION$m = "17d0c7553970a191d9ac970ac0cd8666";
4917
- function validate$J(obj, path = 'ManagedContentFileUploadRepresentation') {
4330
+ const TTL$n = 100;
4331
+ const VERSION$p = "17d0c7553970a191d9ac970ac0cd8666";
4332
+ function validate$N(obj, path = 'ManagedContentFileUploadRepresentation') {
4918
4333
  const v_error = (() => {
4919
4334
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
4920
4335
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -4932,14 +4347,14 @@ function validate$J(obj, path = 'ManagedContentFileUploadRepresentation') {
4932
4347
  })();
4933
4348
  return v_error === undefined ? null : v_error;
4934
4349
  }
4935
- const RepresentationType$l = 'ManagedContentFileUploadRepresentation';
4936
- function normalize$l(input, existing, path, luvio, store, timestamp) {
4350
+ const RepresentationType$o = 'ManagedContentFileUploadRepresentation';
4351
+ function normalize$o(input, existing, path, luvio, store, timestamp) {
4937
4352
  return input;
4938
4353
  }
4939
- const select$S = function ManagedContentFileUploadRepresentationSelect() {
4354
+ const select$X = function ManagedContentFileUploadRepresentationSelect() {
4940
4355
  return {
4941
4356
  kind: 'Fragment',
4942
- version: VERSION$m,
4357
+ version: VERSION$p,
4943
4358
  private: [],
4944
4359
  selections: [
4945
4360
  {
@@ -4953,7 +4368,7 @@ const select$S = function ManagedContentFileUploadRepresentationSelect() {
4953
4368
  ]
4954
4369
  };
4955
4370
  };
4956
- function equals$m(existing, incoming) {
4371
+ function equals$p(existing, incoming) {
4957
4372
  const existing_token = existing.token;
4958
4373
  const incoming_token = incoming.token;
4959
4374
  if (!(existing_token === incoming_token)) {
@@ -4966,44 +4381,44 @@ function equals$m(existing, incoming) {
4966
4381
  }
4967
4382
  return true;
4968
4383
  }
4969
- const ingest$l = function ManagedContentFileUploadRepresentationIngest(input, path, luvio, store, timestamp) {
4384
+ const ingest$o = function ManagedContentFileUploadRepresentationIngest(input, path, luvio, store, timestamp) {
4970
4385
  if (process.env.NODE_ENV !== 'production') {
4971
- const validateError = validate$J(input);
4386
+ const validateError = validate$N(input);
4972
4387
  if (validateError !== null) {
4973
4388
  throw validateError;
4974
4389
  }
4975
4390
  }
4976
4391
  const key = path.fullPath;
4977
- const ttlToUse = TTL$l;
4978
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$l, "CMSAuthoring", VERSION$m, RepresentationType$l, equals$m);
4392
+ const ttlToUse = TTL$n;
4393
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$o, "CMSAuthoring", VERSION$p, RepresentationType$o, equals$p);
4979
4394
  return createLink(key);
4980
4395
  };
4981
- function getTypeCacheKeys$l(rootKeySet, luvio, input, fullPathFactory) {
4396
+ function getTypeCacheKeys$o(rootKeySet, luvio, input, fullPathFactory) {
4982
4397
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
4983
4398
  const rootKey = fullPathFactory();
4984
4399
  rootKeySet.set(rootKey, {
4985
4400
  namespace: keyPrefix,
4986
- representationName: RepresentationType$l,
4401
+ representationName: RepresentationType$o,
4987
4402
  mergeable: false
4988
4403
  });
4989
4404
  }
4990
4405
 
4991
- function select$R(luvio, params) {
4992
- return select$S();
4406
+ function select$W(luvio, params) {
4407
+ return select$X();
4993
4408
  }
4994
- function keyBuilder$M(luvio, params) {
4409
+ function keyBuilder$P(luvio, params) {
4995
4410
  return keyPrefix + '::ManagedContentFileUploadRepresentation:(' + ')';
4996
4411
  }
4997
- function getResponseCacheKeys$w(storeKeyMap, luvio, resourceParams, response) {
4998
- getTypeCacheKeys$l(storeKeyMap, luvio, response, () => keyBuilder$M());
4412
+ function getResponseCacheKeys$y(storeKeyMap, luvio, resourceParams, response) {
4413
+ getTypeCacheKeys$o(storeKeyMap, luvio, response, () => keyBuilder$P());
4999
4414
  }
5000
- function ingestSuccess$v(luvio, resourceParams, response, snapshotRefresh) {
4415
+ function ingestSuccess$x(luvio, resourceParams, response, snapshotRefresh) {
5001
4416
  const { body } = response;
5002
- const key = keyBuilder$M();
5003
- luvio.storeIngest(key, ingest$l, body);
4417
+ const key = keyBuilder$P();
4418
+ luvio.storeIngest(key, ingest$o, body);
5004
4419
  const snapshot = luvio.storeLookup({
5005
4420
  recordId: key,
5006
- node: select$R(),
4421
+ node: select$W(),
5007
4422
  variables: {},
5008
4423
  }, snapshotRefresh);
5009
4424
  if (process.env.NODE_ENV !== 'production') {
@@ -5014,19 +4429,19 @@ function ingestSuccess$v(luvio, resourceParams, response, snapshotRefresh) {
5014
4429
  deepFreeze(snapshot.data);
5015
4430
  return snapshot;
5016
4431
  }
5017
- function ingestError$i(luvio, params, error, snapshotRefresh) {
5018
- const key = keyBuilder$M();
4432
+ function ingestError$j(luvio, params, error, snapshotRefresh) {
4433
+ const key = keyBuilder$P();
5019
4434
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
5020
4435
  const storeMetadataParams = {
5021
- ttl: TTL$l,
4436
+ ttl: TTL$n,
5022
4437
  namespace: keyPrefix,
5023
- version: VERSION$m,
5024
- representationName: RepresentationType$l
4438
+ version: VERSION$p,
4439
+ representationName: RepresentationType$o
5025
4440
  };
5026
4441
  luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
5027
4442
  return errorSnapshot;
5028
4443
  }
5029
- function createResourceRequest$w(config) {
4444
+ function createResourceRequest$y(config) {
5030
4445
  const headers = {};
5031
4446
  return {
5032
4447
  baseUri: '/services/data/v61.0',
@@ -5040,90 +4455,90 @@ function createResourceRequest$w(config) {
5040
4455
  };
5041
4456
  }
5042
4457
 
5043
- const adapterName$w = 'getManagedContentFileUploadConfig';
4458
+ const adapterName$y = 'getManagedContentFileUploadConfig';
5044
4459
  const getManagedContentFileUploadConfig_ConfigPropertyMetadata = [];
5045
- const getManagedContentFileUploadConfig_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$w, getManagedContentFileUploadConfig_ConfigPropertyMetadata);
5046
- const createResourceParams$w = /*#__PURE__*/ createResourceParams$I(getManagedContentFileUploadConfig_ConfigPropertyMetadata);
5047
- function keyBuilder$L(luvio, config) {
5048
- createResourceParams$w(config);
5049
- return keyBuilder$M();
4460
+ const getManagedContentFileUploadConfig_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$y, getManagedContentFileUploadConfig_ConfigPropertyMetadata);
4461
+ const createResourceParams$y = /*#__PURE__*/ createResourceParams$I(getManagedContentFileUploadConfig_ConfigPropertyMetadata);
4462
+ function keyBuilder$O(luvio, config) {
4463
+ createResourceParams$y(config);
4464
+ return keyBuilder$P();
5050
4465
  }
5051
- function typeCheckConfig$w(untrustedConfig) {
4466
+ function typeCheckConfig$y(untrustedConfig) {
5052
4467
  const config = {};
5053
4468
  return config;
5054
4469
  }
5055
- function validateAdapterConfig$w(untrustedConfig, configPropertyNames) {
4470
+ function validateAdapterConfig$y(untrustedConfig, configPropertyNames) {
5056
4471
  if (!untrustedIsObject(untrustedConfig)) {
5057
4472
  return null;
5058
4473
  }
5059
4474
  if (process.env.NODE_ENV !== 'production') {
5060
4475
  validateConfig(untrustedConfig, configPropertyNames);
5061
4476
  }
5062
- const config = typeCheckConfig$w();
4477
+ const config = typeCheckConfig$y();
5063
4478
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
5064
4479
  return null;
5065
4480
  }
5066
4481
  return config;
5067
4482
  }
5068
- function adapterFragment$i(luvio, config) {
5069
- createResourceParams$w(config);
5070
- return select$R();
4483
+ function adapterFragment$j(luvio, config) {
4484
+ createResourceParams$y(config);
4485
+ return select$W();
5071
4486
  }
5072
- function onFetchResponseSuccess$k(luvio, config, resourceParams, response) {
5073
- const snapshot = ingestSuccess$v(luvio, resourceParams, response, {
4487
+ function onFetchResponseSuccess$l(luvio, config, resourceParams, response) {
4488
+ const snapshot = ingestSuccess$x(luvio, resourceParams, response, {
5074
4489
  config,
5075
- resolve: () => buildNetworkSnapshot$w(luvio, config, snapshotRefreshOptions)
4490
+ resolve: () => buildNetworkSnapshot$y(luvio, config, snapshotRefreshOptions)
5076
4491
  });
5077
4492
  return luvio.storeBroadcast().then(() => snapshot);
5078
4493
  }
5079
- function onFetchResponseError$i(luvio, config, resourceParams, response) {
5080
- const snapshot = ingestError$i(luvio, resourceParams, response, {
4494
+ function onFetchResponseError$j(luvio, config, resourceParams, response) {
4495
+ const snapshot = ingestError$j(luvio, resourceParams, response, {
5081
4496
  config,
5082
- resolve: () => buildNetworkSnapshot$w(luvio, config, snapshotRefreshOptions)
4497
+ resolve: () => buildNetworkSnapshot$y(luvio, config, snapshotRefreshOptions)
5083
4498
  });
5084
4499
  return luvio.storeBroadcast().then(() => snapshot);
5085
4500
  }
5086
- function buildNetworkSnapshot$w(luvio, config, options) {
5087
- const resourceParams = createResourceParams$w(config);
5088
- const request = createResourceRequest$w();
4501
+ function buildNetworkSnapshot$y(luvio, config, options) {
4502
+ const resourceParams = createResourceParams$y(config);
4503
+ const request = createResourceRequest$y();
5089
4504
  return luvio.dispatchResourceRequest(request, options)
5090
4505
  .then((response) => {
5091
- return luvio.handleSuccessResponse(() => onFetchResponseSuccess$k(luvio, config, resourceParams, response), () => {
4506
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess$l(luvio, config, resourceParams, response), () => {
5092
4507
  const cache = new StoreKeyMap();
5093
- getResponseCacheKeys$w(cache, luvio, resourceParams, response.body);
4508
+ getResponseCacheKeys$y(cache, luvio, resourceParams, response.body);
5094
4509
  return cache;
5095
4510
  });
5096
4511
  }, (response) => {
5097
- return luvio.handleErrorResponse(() => onFetchResponseError$i(luvio, config, resourceParams, response));
4512
+ return luvio.handleErrorResponse(() => onFetchResponseError$j(luvio, config, resourceParams, response));
5098
4513
  });
5099
4514
  }
5100
- function buildNetworkSnapshotCachePolicy$i(context, coercedAdapterRequestContext) {
5101
- return buildNetworkSnapshotCachePolicy$p(context, coercedAdapterRequestContext, buildNetworkSnapshot$w, undefined, false);
4515
+ function buildNetworkSnapshotCachePolicy$j(context, coercedAdapterRequestContext) {
4516
+ return buildNetworkSnapshotCachePolicy$p(context, coercedAdapterRequestContext, buildNetworkSnapshot$y, undefined, false);
5102
4517
  }
5103
- function buildCachedSnapshotCachePolicy$i(context, storeLookup) {
4518
+ function buildCachedSnapshotCachePolicy$j(context, storeLookup) {
5104
4519
  const { luvio, config } = context;
5105
4520
  const selector = {
5106
- recordId: keyBuilder$L(luvio, config),
5107
- node: adapterFragment$i(luvio, config),
4521
+ recordId: keyBuilder$O(luvio, config),
4522
+ node: adapterFragment$j(luvio, config),
5108
4523
  variables: {},
5109
4524
  };
5110
4525
  const cacheSnapshot = storeLookup(selector, {
5111
4526
  config,
5112
- resolve: () => buildNetworkSnapshot$w(luvio, config, snapshotRefreshOptions)
4527
+ resolve: () => buildNetworkSnapshot$y(luvio, config, snapshotRefreshOptions)
5113
4528
  });
5114
4529
  return cacheSnapshot;
5115
4530
  }
5116
4531
  const getManagedContentFileUploadConfigAdapterFactory = (luvio) => function CMSAuthoring__getManagedContentFileUploadConfig(untrustedConfig, requestContext) {
5117
- const config = validateAdapterConfig$w(untrustedConfig, getManagedContentFileUploadConfig_ConfigPropertyNames);
4532
+ const config = validateAdapterConfig$y(untrustedConfig, getManagedContentFileUploadConfig_ConfigPropertyNames);
5118
4533
  // Invalid or incomplete config
5119
4534
  if (config === null) {
5120
4535
  return null;
5121
4536
  }
5122
4537
  return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
5123
- buildCachedSnapshotCachePolicy$i, buildNetworkSnapshotCachePolicy$i);
4538
+ buildCachedSnapshotCachePolicy$j, buildNetworkSnapshotCachePolicy$j);
5124
4539
  };
5125
4540
 
5126
- function validate$I(obj, path = 'ManagedContentPublishInputRepresentation') {
4541
+ function validate$M(obj, path = 'ManagedContentPublishInputRepresentation') {
5127
4542
  const v_error = (() => {
5128
4543
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
5129
4544
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -5181,9 +4596,9 @@ function validate$I(obj, path = 'ManagedContentPublishInputRepresentation') {
5181
4596
  return v_error === undefined ? null : v_error;
5182
4597
  }
5183
4598
 
5184
- const TTL$k = 100;
5185
- const VERSION$l = "789bce2e581ff7969982fbf2ffbfd9a5";
5186
- function validate$H(obj, path = 'ManagedContentPublishOutputRepresentation') {
4599
+ const TTL$m = 100;
4600
+ const VERSION$o = "789bce2e581ff7969982fbf2ffbfd9a5";
4601
+ function validate$L(obj, path = 'ManagedContentPublishOutputRepresentation') {
5187
4602
  const v_error = (() => {
5188
4603
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
5189
4604
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -5248,68 +4663,68 @@ function validate$H(obj, path = 'ManagedContentPublishOutputRepresentation') {
5248
4663
  })();
5249
4664
  return v_error === undefined ? null : v_error;
5250
4665
  }
5251
- const RepresentationType$k = 'ManagedContentPublishOutputRepresentation';
5252
- function keyBuilder$K(luvio, config) {
5253
- return keyPrefix + '::' + RepresentationType$k + ':' + config.id;
4666
+ const RepresentationType$n = 'ManagedContentPublishOutputRepresentation';
4667
+ function keyBuilder$N(luvio, config) {
4668
+ return keyPrefix + '::' + RepresentationType$n + ':' + config.id;
5254
4669
  }
5255
- function keyBuilderFromType$9(luvio, object) {
4670
+ function keyBuilderFromType$a(luvio, object) {
5256
4671
  const keyParams = {
5257
4672
  id: object.deploymentId
5258
4673
  };
5259
- return keyBuilder$K(luvio, keyParams);
4674
+ return keyBuilder$N(luvio, keyParams);
5260
4675
  }
5261
- function normalize$k(input, existing, path, luvio, store, timestamp) {
4676
+ function normalize$n(input, existing, path, luvio, store, timestamp) {
5262
4677
  return input;
5263
4678
  }
5264
- const select$Q = function ManagedContentPublishOutputRepresentationSelect() {
4679
+ const select$V = function ManagedContentPublishOutputRepresentationSelect() {
5265
4680
  return {
5266
4681
  kind: 'Fragment',
5267
- version: VERSION$l,
4682
+ version: VERSION$o,
5268
4683
  private: [],
5269
4684
  opaque: true
5270
4685
  };
5271
4686
  };
5272
- function equals$l(existing, incoming) {
4687
+ function equals$o(existing, incoming) {
5273
4688
  if (JSONStringify(incoming) !== JSONStringify(existing)) {
5274
4689
  return false;
5275
4690
  }
5276
4691
  return true;
5277
4692
  }
5278
- const ingest$k = function ManagedContentPublishOutputRepresentationIngest(input, path, luvio, store, timestamp) {
4693
+ const ingest$n = function ManagedContentPublishOutputRepresentationIngest(input, path, luvio, store, timestamp) {
5279
4694
  if (process.env.NODE_ENV !== 'production') {
5280
- const validateError = validate$H(input);
4695
+ const validateError = validate$L(input);
5281
4696
  if (validateError !== null) {
5282
4697
  throw validateError;
5283
4698
  }
5284
4699
  }
5285
- const key = keyBuilderFromType$9(luvio, input);
5286
- const ttlToUse = TTL$k;
5287
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$k, "CMSAuthoring", VERSION$l, RepresentationType$k, equals$l);
4700
+ const key = keyBuilderFromType$a(luvio, input);
4701
+ const ttlToUse = TTL$m;
4702
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$n, "CMSAuthoring", VERSION$o, RepresentationType$n, equals$o);
5288
4703
  return createLink(key);
5289
4704
  };
5290
- function getTypeCacheKeys$k(rootKeySet, luvio, input, fullPathFactory) {
4705
+ function getTypeCacheKeys$n(rootKeySet, luvio, input, fullPathFactory) {
5291
4706
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
5292
- const rootKey = keyBuilderFromType$9(luvio, input);
4707
+ const rootKey = keyBuilderFromType$a(luvio, input);
5293
4708
  rootKeySet.set(rootKey, {
5294
4709
  namespace: keyPrefix,
5295
- representationName: RepresentationType$k,
4710
+ representationName: RepresentationType$n,
5296
4711
  mergeable: false
5297
4712
  });
5298
4713
  }
5299
4714
 
5300
- function select$P(luvio, params) {
5301
- return select$Q();
4715
+ function select$U(luvio, params) {
4716
+ return select$V();
5302
4717
  }
5303
- function getResponseCacheKeys$v(storeKeyMap, luvio, resourceParams, response) {
5304
- getTypeCacheKeys$k(storeKeyMap, luvio, response);
4718
+ function getResponseCacheKeys$x(storeKeyMap, luvio, resourceParams, response) {
4719
+ getTypeCacheKeys$n(storeKeyMap, luvio, response);
5305
4720
  }
5306
- function ingestSuccess$u(luvio, resourceParams, response) {
4721
+ function ingestSuccess$w(luvio, resourceParams, response) {
5307
4722
  const { body } = response;
5308
- const key = keyBuilderFromType$9(luvio, body);
5309
- luvio.storeIngest(key, ingest$k, body);
4723
+ const key = keyBuilderFromType$a(luvio, body);
4724
+ luvio.storeIngest(key, ingest$n, body);
5310
4725
  const snapshot = luvio.storeLookup({
5311
4726
  recordId: key,
5312
- node: select$P(),
4727
+ node: select$U(),
5313
4728
  variables: {},
5314
4729
  });
5315
4730
  if (process.env.NODE_ENV !== 'production') {
@@ -5320,7 +4735,7 @@ function ingestSuccess$u(luvio, resourceParams, response) {
5320
4735
  deepFreeze(snapshot.data);
5321
4736
  return snapshot;
5322
4737
  }
5323
- function createResourceRequest$v(config) {
4738
+ function createResourceRequest$x(config) {
5324
4739
  const headers = {};
5325
4740
  return {
5326
4741
  baseUri: '/services/data/v61.0',
@@ -5334,45 +4749,45 @@ function createResourceRequest$v(config) {
5334
4749
  };
5335
4750
  }
5336
4751
 
5337
- const adapterName$v = 'publishManagedContent';
4752
+ const adapterName$x = 'publishManagedContent';
5338
4753
  const publishManagedContent_ConfigPropertyMetadata = [
5339
4754
  generateParamConfigMetadata('publishInput', true, 2 /* Body */, 4 /* Unsupported */),
5340
4755
  ];
5341
- const publishManagedContent_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$v, publishManagedContent_ConfigPropertyMetadata);
5342
- const createResourceParams$v = /*#__PURE__*/ createResourceParams$I(publishManagedContent_ConfigPropertyMetadata);
5343
- function typeCheckConfig$v(untrustedConfig) {
4756
+ const publishManagedContent_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$x, publishManagedContent_ConfigPropertyMetadata);
4757
+ const createResourceParams$x = /*#__PURE__*/ createResourceParams$I(publishManagedContent_ConfigPropertyMetadata);
4758
+ function typeCheckConfig$x(untrustedConfig) {
5344
4759
  const config = {};
5345
4760
  const untrustedConfig_publishInput = untrustedConfig.publishInput;
5346
- const referenceManagedContentPublishInputRepresentationValidationError = validate$I(untrustedConfig_publishInput);
4761
+ const referenceManagedContentPublishInputRepresentationValidationError = validate$M(untrustedConfig_publishInput);
5347
4762
  if (referenceManagedContentPublishInputRepresentationValidationError === null) {
5348
4763
  config.publishInput = untrustedConfig_publishInput;
5349
4764
  }
5350
4765
  return config;
5351
4766
  }
5352
- function validateAdapterConfig$v(untrustedConfig, configPropertyNames) {
4767
+ function validateAdapterConfig$x(untrustedConfig, configPropertyNames) {
5353
4768
  if (!untrustedIsObject(untrustedConfig)) {
5354
4769
  return null;
5355
4770
  }
5356
4771
  if (process.env.NODE_ENV !== 'production') {
5357
4772
  validateConfig(untrustedConfig, configPropertyNames);
5358
4773
  }
5359
- const config = typeCheckConfig$v(untrustedConfig);
4774
+ const config = typeCheckConfig$x(untrustedConfig);
5360
4775
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
5361
4776
  return null;
5362
4777
  }
5363
4778
  return config;
5364
4779
  }
5365
- function buildNetworkSnapshot$v(luvio, config, options) {
5366
- const resourceParams = createResourceParams$v(config);
5367
- const request = createResourceRequest$v(resourceParams);
4780
+ function buildNetworkSnapshot$x(luvio, config, options) {
4781
+ const resourceParams = createResourceParams$x(config);
4782
+ const request = createResourceRequest$x(resourceParams);
5368
4783
  return luvio.dispatchResourceRequest(request, options)
5369
4784
  .then((response) => {
5370
4785
  return luvio.handleSuccessResponse(() => {
5371
- const snapshot = ingestSuccess$u(luvio, resourceParams, response);
4786
+ const snapshot = ingestSuccess$w(luvio, resourceParams, response);
5372
4787
  return luvio.storeBroadcast().then(() => snapshot);
5373
4788
  }, () => {
5374
4789
  const cache = new StoreKeyMap();
5375
- getResponseCacheKeys$v(cache, luvio, resourceParams, response.body);
4790
+ getResponseCacheKeys$x(cache, luvio, resourceParams, response.body);
5376
4791
  return cache;
5377
4792
  });
5378
4793
  }, (response) => {
@@ -5382,16 +4797,16 @@ function buildNetworkSnapshot$v(luvio, config, options) {
5382
4797
  }
5383
4798
  const publishManagedContentAdapterFactory = (luvio) => {
5384
4799
  return function publishManagedContent(untrustedConfig) {
5385
- const config = validateAdapterConfig$v(untrustedConfig, publishManagedContent_ConfigPropertyNames);
4800
+ const config = validateAdapterConfig$x(untrustedConfig, publishManagedContent_ConfigPropertyNames);
5386
4801
  // Invalid or incomplete config
5387
4802
  if (config === null) {
5388
4803
  throw new Error('Invalid config for "publishManagedContent"');
5389
4804
  }
5390
- return buildNetworkSnapshot$v(luvio, config);
4805
+ return buildNetworkSnapshot$x(luvio, config);
5391
4806
  };
5392
4807
  };
5393
4808
 
5394
- function validate$G(obj, path = 'ManagedContentUnpublishInputRepresentation') {
4809
+ function validate$K(obj, path = 'ManagedContentUnpublishInputRepresentation') {
5395
4810
  const v_error = (() => {
5396
4811
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
5397
4812
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -5435,9 +4850,9 @@ function validate$G(obj, path = 'ManagedContentUnpublishInputRepresentation') {
5435
4850
  return v_error === undefined ? null : v_error;
5436
4851
  }
5437
4852
 
5438
- const TTL$j = 100;
5439
- const VERSION$k = "2f473ff12e87a4fc2336695104ab8567";
5440
- function validate$F(obj, path = 'ManagedContentUnpublishOutputRepresentation') {
4853
+ const TTL$l = 100;
4854
+ const VERSION$n = "2f473ff12e87a4fc2336695104ab8567";
4855
+ function validate$J(obj, path = 'ManagedContentUnpublishOutputRepresentation') {
5441
4856
  const v_error = (() => {
5442
4857
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
5443
4858
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -5502,68 +4917,68 @@ function validate$F(obj, path = 'ManagedContentUnpublishOutputRepresentation') {
5502
4917
  })();
5503
4918
  return v_error === undefined ? null : v_error;
5504
4919
  }
5505
- const RepresentationType$j = 'ManagedContentUnpublishOutputRepresentation';
5506
- function keyBuilder$J(luvio, config) {
5507
- return keyPrefix + '::' + RepresentationType$j + ':' + config.id;
4920
+ const RepresentationType$m = 'ManagedContentUnpublishOutputRepresentation';
4921
+ function keyBuilder$M(luvio, config) {
4922
+ return keyPrefix + '::' + RepresentationType$m + ':' + config.id;
5508
4923
  }
5509
- function keyBuilderFromType$8(luvio, object) {
4924
+ function keyBuilderFromType$9(luvio, object) {
5510
4925
  const keyParams = {
5511
4926
  id: object.deploymentId
5512
4927
  };
5513
- return keyBuilder$J(luvio, keyParams);
4928
+ return keyBuilder$M(luvio, keyParams);
5514
4929
  }
5515
- function normalize$j(input, existing, path, luvio, store, timestamp) {
4930
+ function normalize$m(input, existing, path, luvio, store, timestamp) {
5516
4931
  return input;
5517
4932
  }
5518
- const select$O = function ManagedContentUnpublishOutputRepresentationSelect() {
4933
+ const select$T = function ManagedContentUnpublishOutputRepresentationSelect() {
5519
4934
  return {
5520
4935
  kind: 'Fragment',
5521
- version: VERSION$k,
4936
+ version: VERSION$n,
5522
4937
  private: [],
5523
4938
  opaque: true
5524
4939
  };
5525
4940
  };
5526
- function equals$k(existing, incoming) {
4941
+ function equals$n(existing, incoming) {
5527
4942
  if (JSONStringify(incoming) !== JSONStringify(existing)) {
5528
4943
  return false;
5529
4944
  }
5530
4945
  return true;
5531
4946
  }
5532
- const ingest$j = function ManagedContentUnpublishOutputRepresentationIngest(input, path, luvio, store, timestamp) {
4947
+ const ingest$m = function ManagedContentUnpublishOutputRepresentationIngest(input, path, luvio, store, timestamp) {
5533
4948
  if (process.env.NODE_ENV !== 'production') {
5534
- const validateError = validate$F(input);
4949
+ const validateError = validate$J(input);
5535
4950
  if (validateError !== null) {
5536
4951
  throw validateError;
5537
4952
  }
5538
4953
  }
5539
- const key = keyBuilderFromType$8(luvio, input);
5540
- const ttlToUse = TTL$j;
5541
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$j, "CMSAuthoring", VERSION$k, RepresentationType$j, equals$k);
4954
+ const key = keyBuilderFromType$9(luvio, input);
4955
+ const ttlToUse = TTL$l;
4956
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$m, "CMSAuthoring", VERSION$n, RepresentationType$m, equals$n);
5542
4957
  return createLink(key);
5543
4958
  };
5544
- function getTypeCacheKeys$j(rootKeySet, luvio, input, fullPathFactory) {
4959
+ function getTypeCacheKeys$m(rootKeySet, luvio, input, fullPathFactory) {
5545
4960
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
5546
- const rootKey = keyBuilderFromType$8(luvio, input);
4961
+ const rootKey = keyBuilderFromType$9(luvio, input);
5547
4962
  rootKeySet.set(rootKey, {
5548
4963
  namespace: keyPrefix,
5549
- representationName: RepresentationType$j,
4964
+ representationName: RepresentationType$m,
5550
4965
  mergeable: false
5551
4966
  });
5552
4967
  }
5553
4968
 
5554
- function select$N(luvio, params) {
5555
- return select$O();
4969
+ function select$S(luvio, params) {
4970
+ return select$T();
5556
4971
  }
5557
- function getResponseCacheKeys$u(storeKeyMap, luvio, resourceParams, response) {
5558
- getTypeCacheKeys$j(storeKeyMap, luvio, response);
4972
+ function getResponseCacheKeys$w(storeKeyMap, luvio, resourceParams, response) {
4973
+ getTypeCacheKeys$m(storeKeyMap, luvio, response);
5559
4974
  }
5560
- function ingestSuccess$t(luvio, resourceParams, response) {
4975
+ function ingestSuccess$v(luvio, resourceParams, response) {
5561
4976
  const { body } = response;
5562
- const key = keyBuilderFromType$8(luvio, body);
5563
- luvio.storeIngest(key, ingest$j, body);
4977
+ const key = keyBuilderFromType$9(luvio, body);
4978
+ luvio.storeIngest(key, ingest$m, body);
5564
4979
  const snapshot = luvio.storeLookup({
5565
4980
  recordId: key,
5566
- node: select$N(),
4981
+ node: select$S(),
5567
4982
  variables: {},
5568
4983
  });
5569
4984
  if (process.env.NODE_ENV !== 'production') {
@@ -5574,7 +4989,7 @@ function ingestSuccess$t(luvio, resourceParams, response) {
5574
4989
  deepFreeze(snapshot.data);
5575
4990
  return snapshot;
5576
4991
  }
5577
- function createResourceRequest$u(config) {
4992
+ function createResourceRequest$w(config) {
5578
4993
  const headers = {};
5579
4994
  return {
5580
4995
  baseUri: '/services/data/v61.0',
@@ -5588,45 +5003,45 @@ function createResourceRequest$u(config) {
5588
5003
  };
5589
5004
  }
5590
5005
 
5591
- const adapterName$u = 'unpublishManagedContent';
5006
+ const adapterName$w = 'unpublishManagedContent';
5592
5007
  const unpublishManagedContent_ConfigPropertyMetadata = [
5593
5008
  generateParamConfigMetadata('unpublishInput', true, 2 /* Body */, 4 /* Unsupported */),
5594
5009
  ];
5595
- const unpublishManagedContent_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$u, unpublishManagedContent_ConfigPropertyMetadata);
5596
- const createResourceParams$u = /*#__PURE__*/ createResourceParams$I(unpublishManagedContent_ConfigPropertyMetadata);
5597
- function typeCheckConfig$u(untrustedConfig) {
5010
+ const unpublishManagedContent_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$w, unpublishManagedContent_ConfigPropertyMetadata);
5011
+ const createResourceParams$w = /*#__PURE__*/ createResourceParams$I(unpublishManagedContent_ConfigPropertyMetadata);
5012
+ function typeCheckConfig$w(untrustedConfig) {
5598
5013
  const config = {};
5599
5014
  const untrustedConfig_unpublishInput = untrustedConfig.unpublishInput;
5600
- const referenceManagedContentUnpublishInputRepresentationValidationError = validate$G(untrustedConfig_unpublishInput);
5015
+ const referenceManagedContentUnpublishInputRepresentationValidationError = validate$K(untrustedConfig_unpublishInput);
5601
5016
  if (referenceManagedContentUnpublishInputRepresentationValidationError === null) {
5602
5017
  config.unpublishInput = untrustedConfig_unpublishInput;
5603
5018
  }
5604
5019
  return config;
5605
5020
  }
5606
- function validateAdapterConfig$u(untrustedConfig, configPropertyNames) {
5021
+ function validateAdapterConfig$w(untrustedConfig, configPropertyNames) {
5607
5022
  if (!untrustedIsObject(untrustedConfig)) {
5608
5023
  return null;
5609
5024
  }
5610
5025
  if (process.env.NODE_ENV !== 'production') {
5611
5026
  validateConfig(untrustedConfig, configPropertyNames);
5612
5027
  }
5613
- const config = typeCheckConfig$u(untrustedConfig);
5028
+ const config = typeCheckConfig$w(untrustedConfig);
5614
5029
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
5615
5030
  return null;
5616
5031
  }
5617
5032
  return config;
5618
5033
  }
5619
- function buildNetworkSnapshot$u(luvio, config, options) {
5620
- const resourceParams = createResourceParams$u(config);
5621
- const request = createResourceRequest$u(resourceParams);
5034
+ function buildNetworkSnapshot$w(luvio, config, options) {
5035
+ const resourceParams = createResourceParams$w(config);
5036
+ const request = createResourceRequest$w(resourceParams);
5622
5037
  return luvio.dispatchResourceRequest(request, options)
5623
5038
  .then((response) => {
5624
5039
  return luvio.handleSuccessResponse(() => {
5625
- const snapshot = ingestSuccess$t(luvio, resourceParams, response);
5040
+ const snapshot = ingestSuccess$v(luvio, resourceParams, response);
5626
5041
  return luvio.storeBroadcast().then(() => snapshot);
5627
5042
  }, () => {
5628
5043
  const cache = new StoreKeyMap();
5629
- getResponseCacheKeys$u(cache, luvio, resourceParams, response.body);
5044
+ getResponseCacheKeys$w(cache, luvio, resourceParams, response.body);
5630
5045
  return cache;
5631
5046
  });
5632
5047
  }, (response) => {
@@ -5636,16 +5051,16 @@ function buildNetworkSnapshot$u(luvio, config, options) {
5636
5051
  }
5637
5052
  const unpublishManagedContentAdapterFactory = (luvio) => {
5638
5053
  return function unpublishManagedContent(untrustedConfig) {
5639
- const config = validateAdapterConfig$u(untrustedConfig, unpublishManagedContent_ConfigPropertyNames);
5054
+ const config = validateAdapterConfig$w(untrustedConfig, unpublishManagedContent_ConfigPropertyNames);
5640
5055
  // Invalid or incomplete config
5641
5056
  if (config === null) {
5642
5057
  throw new Error('Invalid config for "unpublishManagedContent"');
5643
5058
  }
5644
- return buildNetworkSnapshot$u(luvio, config);
5059
+ return buildNetworkSnapshot$w(luvio, config);
5645
5060
  };
5646
5061
  };
5647
5062
 
5648
- function validate$E(obj, path = 'ManagedContentVariantInputRepresentation') {
5063
+ function validate$I(obj, path = 'ManagedContentVariantInputRepresentation') {
5649
5064
  const v_error = (() => {
5650
5065
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
5651
5066
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -5692,9 +5107,9 @@ function validate$E(obj, path = 'ManagedContentVariantInputRepresentation') {
5692
5107
  return v_error === undefined ? null : v_error;
5693
5108
  }
5694
5109
 
5695
- const TTL$i = 3600000;
5696
- const VERSION$j = "7752c6a8bb6b113a02bfde83f39e5957";
5697
- function validate$D(obj, path = 'ManagedContentVariantRepresentation') {
5110
+ const TTL$k = 3600000;
5111
+ const VERSION$m = "7752c6a8bb6b113a02bfde83f39e5957";
5112
+ function validate$H(obj, path = 'ManagedContentVariantRepresentation') {
5698
5113
  const v_error = (() => {
5699
5114
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
5700
5115
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -5720,7 +5135,7 @@ function validate$D(obj, path = 'ManagedContentVariantRepresentation') {
5720
5135
  }
5721
5136
  const obj_contentSpace = obj.contentSpace;
5722
5137
  const path_contentSpace = path + '.contentSpace';
5723
- const referencepath_contentSpaceValidationError = validate$T(obj_contentSpace, path_contentSpace);
5138
+ const referencepath_contentSpaceValidationError = validate$X(obj_contentSpace, path_contentSpace);
5724
5139
  if (referencepath_contentSpaceValidationError !== null) {
5725
5140
  let message = 'Object doesn\'t match ManagedContentSpaceSummaryRepresentation (at "' + path_contentSpace + '")\n';
5726
5141
  message += referencepath_contentSpaceValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -5749,7 +5164,7 @@ function validate$D(obj, path = 'ManagedContentVariantRepresentation') {
5749
5164
  }
5750
5165
  const obj_folder = obj.folder;
5751
5166
  const path_folder = path + '.folder';
5752
- const referencepath_folderValidationError = validate$S(obj_folder, path_folder);
5167
+ const referencepath_folderValidationError = validate$W(obj_folder, path_folder);
5753
5168
  if (referencepath_folderValidationError !== null) {
5754
5169
  let message = 'Object doesn\'t match ManagedContentFolderSummaryRepresentation (at "' + path_folder + '")\n';
5755
5170
  message += referencepath_folderValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -5795,7 +5210,7 @@ function validate$D(obj, path = 'ManagedContentVariantRepresentation') {
5795
5210
  }
5796
5211
  const obj_status = obj.status;
5797
5212
  const path_status = path + '.status';
5798
- const referencepath_statusValidationError = validate$R(obj_status, path_status);
5213
+ const referencepath_statusValidationError = validate$V(obj_status, path_status);
5799
5214
  if (referencepath_statusValidationError !== null) {
5800
5215
  let message = 'Object doesn\'t match ManagedContentVariantStatusRepresentation (at "' + path_status + '")\n';
5801
5216
  message += referencepath_statusValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -5814,68 +5229,68 @@ function validate$D(obj, path = 'ManagedContentVariantRepresentation') {
5814
5229
  })();
5815
5230
  return v_error === undefined ? null : v_error;
5816
5231
  }
5817
- const RepresentationType$i = 'ManagedContentVariantRepresentation';
5818
- function keyBuilder$I(luvio, config) {
5819
- return keyPrefix + '::' + RepresentationType$i + ':' + config.id;
5232
+ const RepresentationType$l = 'ManagedContentVariantRepresentation';
5233
+ function keyBuilder$L(luvio, config) {
5234
+ return keyPrefix + '::' + RepresentationType$l + ':' + config.id;
5820
5235
  }
5821
- function keyBuilderFromType$7(luvio, object) {
5236
+ function keyBuilderFromType$8(luvio, object) {
5822
5237
  const keyParams = {
5823
5238
  id: object.managedContentVariantId
5824
5239
  };
5825
- return keyBuilder$I(luvio, keyParams);
5240
+ return keyBuilder$L(luvio, keyParams);
5826
5241
  }
5827
- function normalize$i(input, existing, path, luvio, store, timestamp) {
5242
+ function normalize$l(input, existing, path, luvio, store, timestamp) {
5828
5243
  return input;
5829
5244
  }
5830
- const select$M = function ManagedContentVariantRepresentationSelect() {
5245
+ const select$R = function ManagedContentVariantRepresentationSelect() {
5831
5246
  return {
5832
5247
  kind: 'Fragment',
5833
- version: VERSION$j,
5248
+ version: VERSION$m,
5834
5249
  private: [],
5835
5250
  opaque: true
5836
5251
  };
5837
5252
  };
5838
- function equals$j(existing, incoming) {
5253
+ function equals$m(existing, incoming) {
5839
5254
  if (JSONStringify(incoming) !== JSONStringify(existing)) {
5840
5255
  return false;
5841
5256
  }
5842
5257
  return true;
5843
5258
  }
5844
- const ingest$i = function ManagedContentVariantRepresentationIngest(input, path, luvio, store, timestamp) {
5259
+ const ingest$l = function ManagedContentVariantRepresentationIngest(input, path, luvio, store, timestamp) {
5845
5260
  if (process.env.NODE_ENV !== 'production') {
5846
- const validateError = validate$D(input);
5261
+ const validateError = validate$H(input);
5847
5262
  if (validateError !== null) {
5848
5263
  throw validateError;
5849
5264
  }
5850
5265
  }
5851
- const key = keyBuilderFromType$7(luvio, input);
5852
- const ttlToUse = TTL$i;
5853
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$i, "CMSAuthoring", VERSION$j, RepresentationType$i, equals$j);
5266
+ const key = keyBuilderFromType$8(luvio, input);
5267
+ const ttlToUse = TTL$k;
5268
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$l, "CMSAuthoring", VERSION$m, RepresentationType$l, equals$m);
5854
5269
  return createLink(key);
5855
5270
  };
5856
- function getTypeCacheKeys$i(rootKeySet, luvio, input, fullPathFactory) {
5271
+ function getTypeCacheKeys$l(rootKeySet, luvio, input, fullPathFactory) {
5857
5272
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
5858
- const rootKey = keyBuilderFromType$7(luvio, input);
5273
+ const rootKey = keyBuilderFromType$8(luvio, input);
5859
5274
  rootKeySet.set(rootKey, {
5860
5275
  namespace: keyPrefix,
5861
- representationName: RepresentationType$i,
5276
+ representationName: RepresentationType$l,
5862
5277
  mergeable: false
5863
5278
  });
5864
5279
  }
5865
5280
 
5866
- function select$L(luvio, params) {
5867
- return select$M();
5281
+ function select$Q(luvio, params) {
5282
+ return select$R();
5868
5283
  }
5869
- function getResponseCacheKeys$t(storeKeyMap, luvio, resourceParams, response) {
5870
- getTypeCacheKeys$i(storeKeyMap, luvio, response);
5284
+ function getResponseCacheKeys$v(storeKeyMap, luvio, resourceParams, response) {
5285
+ getTypeCacheKeys$l(storeKeyMap, luvio, response);
5871
5286
  }
5872
- function ingestSuccess$s(luvio, resourceParams, response) {
5287
+ function ingestSuccess$u(luvio, resourceParams, response) {
5873
5288
  const { body } = response;
5874
- const key = keyBuilderFromType$7(luvio, body);
5875
- luvio.storeIngest(key, ingest$i, body);
5289
+ const key = keyBuilderFromType$8(luvio, body);
5290
+ luvio.storeIngest(key, ingest$l, body);
5876
5291
  const snapshot = luvio.storeLookup({
5877
5292
  recordId: key,
5878
- node: select$L(),
5293
+ node: select$Q(),
5879
5294
  variables: {},
5880
5295
  });
5881
5296
  if (process.env.NODE_ENV !== 'production') {
@@ -5886,7 +5301,7 @@ function ingestSuccess$s(luvio, resourceParams, response) {
5886
5301
  deepFreeze(snapshot.data);
5887
5302
  return snapshot;
5888
5303
  }
5889
- function createResourceRequest$t(config) {
5304
+ function createResourceRequest$v(config) {
5890
5305
  const headers = {};
5891
5306
  return {
5892
5307
  baseUri: '/services/data/v61.0',
@@ -5900,45 +5315,45 @@ function createResourceRequest$t(config) {
5900
5315
  };
5901
5316
  }
5902
5317
 
5903
- const adapterName$t = 'createManagedContentVariant';
5318
+ const adapterName$v = 'createManagedContentVariant';
5904
5319
  const createManagedContentVariant_ConfigPropertyMetadata = [
5905
5320
  generateParamConfigMetadata('managedContentVariantInputParam', true, 2 /* Body */, 4 /* Unsupported */),
5906
5321
  ];
5907
- const createManagedContentVariant_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$t, createManagedContentVariant_ConfigPropertyMetadata);
5908
- const createResourceParams$t = /*#__PURE__*/ createResourceParams$I(createManagedContentVariant_ConfigPropertyMetadata);
5909
- function typeCheckConfig$t(untrustedConfig) {
5322
+ const createManagedContentVariant_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$v, createManagedContentVariant_ConfigPropertyMetadata);
5323
+ const createResourceParams$v = /*#__PURE__*/ createResourceParams$I(createManagedContentVariant_ConfigPropertyMetadata);
5324
+ function typeCheckConfig$v(untrustedConfig) {
5910
5325
  const config = {};
5911
5326
  const untrustedConfig_managedContentVariantInputParam = untrustedConfig.managedContentVariantInputParam;
5912
- const referenceManagedContentVariantInputRepresentationValidationError = validate$E(untrustedConfig_managedContentVariantInputParam);
5327
+ const referenceManagedContentVariantInputRepresentationValidationError = validate$I(untrustedConfig_managedContentVariantInputParam);
5913
5328
  if (referenceManagedContentVariantInputRepresentationValidationError === null) {
5914
5329
  config.managedContentVariantInputParam = untrustedConfig_managedContentVariantInputParam;
5915
5330
  }
5916
5331
  return config;
5917
5332
  }
5918
- function validateAdapterConfig$t(untrustedConfig, configPropertyNames) {
5333
+ function validateAdapterConfig$v(untrustedConfig, configPropertyNames) {
5919
5334
  if (!untrustedIsObject(untrustedConfig)) {
5920
5335
  return null;
5921
5336
  }
5922
5337
  if (process.env.NODE_ENV !== 'production') {
5923
5338
  validateConfig(untrustedConfig, configPropertyNames);
5924
5339
  }
5925
- const config = typeCheckConfig$t(untrustedConfig);
5340
+ const config = typeCheckConfig$v(untrustedConfig);
5926
5341
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
5927
5342
  return null;
5928
5343
  }
5929
5344
  return config;
5930
5345
  }
5931
- function buildNetworkSnapshot$t(luvio, config, options) {
5932
- const resourceParams = createResourceParams$t(config);
5933
- const request = createResourceRequest$t(resourceParams);
5346
+ function buildNetworkSnapshot$v(luvio, config, options) {
5347
+ const resourceParams = createResourceParams$v(config);
5348
+ const request = createResourceRequest$v(resourceParams);
5934
5349
  return luvio.dispatchResourceRequest(request, options)
5935
5350
  .then((response) => {
5936
5351
  return luvio.handleSuccessResponse(() => {
5937
- const snapshot = ingestSuccess$s(luvio, resourceParams, response);
5352
+ const snapshot = ingestSuccess$u(luvio, resourceParams, response);
5938
5353
  return luvio.storeBroadcast().then(() => snapshot);
5939
5354
  }, () => {
5940
5355
  const cache = new StoreKeyMap();
5941
- getResponseCacheKeys$t(cache, luvio, resourceParams, response.body);
5356
+ getResponseCacheKeys$v(cache, luvio, resourceParams, response.body);
5942
5357
  return cache;
5943
5358
  });
5944
5359
  }, (response) => {
@@ -5948,33 +5363,33 @@ function buildNetworkSnapshot$t(luvio, config, options) {
5948
5363
  }
5949
5364
  const createManagedContentVariantAdapterFactory = (luvio) => {
5950
5365
  return function createManagedContentVariant(untrustedConfig) {
5951
- const config = validateAdapterConfig$t(untrustedConfig, createManagedContentVariant_ConfigPropertyNames);
5366
+ const config = validateAdapterConfig$v(untrustedConfig, createManagedContentVariant_ConfigPropertyNames);
5952
5367
  // Invalid or incomplete config
5953
5368
  if (config === null) {
5954
5369
  throw new Error('Invalid config for "createManagedContentVariant"');
5955
5370
  }
5956
- return buildNetworkSnapshot$t(luvio, config);
5371
+ return buildNetworkSnapshot$v(luvio, config);
5957
5372
  };
5958
5373
  };
5959
5374
 
5960
- function keyBuilder$H(luvio, params) {
5961
- return keyBuilder$I(luvio, {
5375
+ function keyBuilder$K(luvio, params) {
5376
+ return keyBuilder$L(luvio, {
5962
5377
  id: params.urlParams.variantId
5963
5378
  });
5964
5379
  }
5965
- function getResponseCacheKeys$s(cacheKeyMap, luvio, resourceParams) {
5966
- const key = keyBuilder$H(luvio, resourceParams);
5380
+ function getResponseCacheKeys$u(cacheKeyMap, luvio, resourceParams) {
5381
+ const key = keyBuilder$K(luvio, resourceParams);
5967
5382
  cacheKeyMap.set(key, {
5968
5383
  namespace: keyPrefix,
5969
- representationName: RepresentationType$i,
5384
+ representationName: RepresentationType$l,
5970
5385
  mergeable: false
5971
5386
  });
5972
5387
  }
5973
5388
  function evictSuccess(luvio, resourceParams) {
5974
- const key = keyBuilder$H(luvio, resourceParams);
5389
+ const key = keyBuilder$K(luvio, resourceParams);
5975
5390
  luvio.storeEvict(key);
5976
5391
  }
5977
- function createResourceRequest$s(config) {
5392
+ function createResourceRequest$u(config) {
5978
5393
  const headers = {};
5979
5394
  return {
5980
5395
  baseUri: '/services/data/v61.0',
@@ -5988,33 +5403,33 @@ function createResourceRequest$s(config) {
5988
5403
  };
5989
5404
  }
5990
5405
 
5991
- const adapterName$s = 'deleteManagedContentVariant';
5406
+ const adapterName$u = 'deleteManagedContentVariant';
5992
5407
  const deleteManagedContentVariant_ConfigPropertyMetadata = [
5993
5408
  generateParamConfigMetadata('variantId', true, 0 /* UrlParameter */, 0 /* String */),
5994
5409
  ];
5995
- const deleteManagedContentVariant_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$s, deleteManagedContentVariant_ConfigPropertyMetadata);
5996
- const createResourceParams$s = /*#__PURE__*/ createResourceParams$I(deleteManagedContentVariant_ConfigPropertyMetadata);
5997
- function typeCheckConfig$s(untrustedConfig) {
5410
+ const deleteManagedContentVariant_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$u, deleteManagedContentVariant_ConfigPropertyMetadata);
5411
+ const createResourceParams$u = /*#__PURE__*/ createResourceParams$I(deleteManagedContentVariant_ConfigPropertyMetadata);
5412
+ function typeCheckConfig$u(untrustedConfig) {
5998
5413
  const config = {};
5999
5414
  typeCheckConfig$I(untrustedConfig, config, deleteManagedContentVariant_ConfigPropertyMetadata);
6000
5415
  return config;
6001
5416
  }
6002
- function validateAdapterConfig$s(untrustedConfig, configPropertyNames) {
5417
+ function validateAdapterConfig$u(untrustedConfig, configPropertyNames) {
6003
5418
  if (!untrustedIsObject(untrustedConfig)) {
6004
5419
  return null;
6005
5420
  }
6006
5421
  if (process.env.NODE_ENV !== 'production') {
6007
5422
  validateConfig(untrustedConfig, configPropertyNames);
6008
5423
  }
6009
- const config = typeCheckConfig$s(untrustedConfig);
5424
+ const config = typeCheckConfig$u(untrustedConfig);
6010
5425
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
6011
5426
  return null;
6012
5427
  }
6013
5428
  return config;
6014
5429
  }
6015
- function buildNetworkSnapshot$s(luvio, config, options) {
6016
- const resourceParams = createResourceParams$s(config);
6017
- const request = createResourceRequest$s(resourceParams);
5430
+ function buildNetworkSnapshot$u(luvio, config, options) {
5431
+ const resourceParams = createResourceParams$u(config);
5432
+ const request = createResourceRequest$u(resourceParams);
6018
5433
  return luvio.dispatchResourceRequest(request, options)
6019
5434
  .then(() => {
6020
5435
  return luvio.handleSuccessResponse(() => {
@@ -6022,7 +5437,7 @@ function buildNetworkSnapshot$s(luvio, config, options) {
6022
5437
  return luvio.storeBroadcast();
6023
5438
  }, () => {
6024
5439
  const cache = new StoreKeyMap();
6025
- getResponseCacheKeys$s(cache, luvio, resourceParams);
5440
+ getResponseCacheKeys$u(cache, luvio, resourceParams);
6026
5441
  return cache;
6027
5442
  });
6028
5443
  }, (response) => {
@@ -6032,33 +5447,33 @@ function buildNetworkSnapshot$s(luvio, config, options) {
6032
5447
  }
6033
5448
  const deleteManagedContentVariantAdapterFactory = (luvio) => {
6034
5449
  return function CMSAuthoringdeleteManagedContentVariant(untrustedConfig) {
6035
- const config = validateAdapterConfig$s(untrustedConfig, deleteManagedContentVariant_ConfigPropertyNames);
5450
+ const config = validateAdapterConfig$u(untrustedConfig, deleteManagedContentVariant_ConfigPropertyNames);
6036
5451
  // Invalid or incomplete config
6037
5452
  if (config === null) {
6038
- throw new Error(`Invalid config for "${adapterName$s}"`);
5453
+ throw new Error(`Invalid config for "${adapterName$u}"`);
6039
5454
  }
6040
- return buildNetworkSnapshot$s(luvio, config);
5455
+ return buildNetworkSnapshot$u(luvio, config);
6041
5456
  };
6042
5457
  };
6043
5458
 
6044
- function select$K(luvio, params) {
6045
- return select$M();
5459
+ function select$P(luvio, params) {
5460
+ return select$R();
6046
5461
  }
6047
- function keyBuilder$G(luvio, params) {
6048
- return keyBuilder$I(luvio, {
5462
+ function keyBuilder$J(luvio, params) {
5463
+ return keyBuilder$L(luvio, {
6049
5464
  id: params.urlParams.variantId
6050
5465
  });
6051
5466
  }
6052
- function getResponseCacheKeys$r(storeKeyMap, luvio, resourceParams, response) {
6053
- getTypeCacheKeys$i(storeKeyMap, luvio, response);
5467
+ function getResponseCacheKeys$t(storeKeyMap, luvio, resourceParams, response) {
5468
+ getTypeCacheKeys$l(storeKeyMap, luvio, response);
6054
5469
  }
6055
- function ingestSuccess$r(luvio, resourceParams, response, snapshotRefresh) {
5470
+ function ingestSuccess$t(luvio, resourceParams, response, snapshotRefresh) {
6056
5471
  const { body } = response;
6057
- const key = keyBuilder$G(luvio, resourceParams);
6058
- luvio.storeIngest(key, ingest$i, body);
5472
+ const key = keyBuilder$J(luvio, resourceParams);
5473
+ luvio.storeIngest(key, ingest$l, body);
6059
5474
  const snapshot = luvio.storeLookup({
6060
5475
  recordId: key,
6061
- node: select$K(),
5476
+ node: select$P(),
6062
5477
  variables: {},
6063
5478
  }, snapshotRefresh);
6064
5479
  if (process.env.NODE_ENV !== 'production') {
@@ -6069,19 +5484,19 @@ function ingestSuccess$r(luvio, resourceParams, response, snapshotRefresh) {
6069
5484
  deepFreeze(snapshot.data);
6070
5485
  return snapshot;
6071
5486
  }
6072
- function ingestError$h(luvio, params, error, snapshotRefresh) {
6073
- const key = keyBuilder$G(luvio, params);
5487
+ function ingestError$i(luvio, params, error, snapshotRefresh) {
5488
+ const key = keyBuilder$J(luvio, params);
6074
5489
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
6075
5490
  const storeMetadataParams = {
6076
- ttl: TTL$i,
5491
+ ttl: TTL$k,
6077
5492
  namespace: keyPrefix,
6078
- version: VERSION$j,
6079
- representationName: RepresentationType$i
5493
+ version: VERSION$m,
5494
+ representationName: RepresentationType$l
6080
5495
  };
6081
5496
  luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
6082
5497
  return errorSnapshot;
6083
5498
  }
6084
- function createResourceRequest$r(config) {
5499
+ function createResourceRequest$t(config) {
6085
5500
  const headers = {};
6086
5501
  return {
6087
5502
  baseUri: '/services/data/v61.0',
@@ -6095,93 +5510,93 @@ function createResourceRequest$r(config) {
6095
5510
  };
6096
5511
  }
6097
5512
 
6098
- const adapterName$r = 'getManagedContentVariant';
5513
+ const adapterName$t = 'getManagedContentVariant';
6099
5514
  const getManagedContentVariant_ConfigPropertyMetadata = [
6100
5515
  generateParamConfigMetadata('variantId', true, 0 /* UrlParameter */, 0 /* String */),
6101
5516
  ];
6102
- const getManagedContentVariant_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$r, getManagedContentVariant_ConfigPropertyMetadata);
6103
- const createResourceParams$r = /*#__PURE__*/ createResourceParams$I(getManagedContentVariant_ConfigPropertyMetadata);
6104
- function keyBuilder$F(luvio, config) {
6105
- const resourceParams = createResourceParams$r(config);
6106
- return keyBuilder$G(luvio, resourceParams);
5517
+ const getManagedContentVariant_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$t, getManagedContentVariant_ConfigPropertyMetadata);
5518
+ const createResourceParams$t = /*#__PURE__*/ createResourceParams$I(getManagedContentVariant_ConfigPropertyMetadata);
5519
+ function keyBuilder$I(luvio, config) {
5520
+ const resourceParams = createResourceParams$t(config);
5521
+ return keyBuilder$J(luvio, resourceParams);
6107
5522
  }
6108
- function typeCheckConfig$r(untrustedConfig) {
5523
+ function typeCheckConfig$t(untrustedConfig) {
6109
5524
  const config = {};
6110
5525
  typeCheckConfig$I(untrustedConfig, config, getManagedContentVariant_ConfigPropertyMetadata);
6111
5526
  return config;
6112
5527
  }
6113
- function validateAdapterConfig$r(untrustedConfig, configPropertyNames) {
5528
+ function validateAdapterConfig$t(untrustedConfig, configPropertyNames) {
6114
5529
  if (!untrustedIsObject(untrustedConfig)) {
6115
5530
  return null;
6116
5531
  }
6117
5532
  if (process.env.NODE_ENV !== 'production') {
6118
5533
  validateConfig(untrustedConfig, configPropertyNames);
6119
5534
  }
6120
- const config = typeCheckConfig$r(untrustedConfig);
5535
+ const config = typeCheckConfig$t(untrustedConfig);
6121
5536
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
6122
5537
  return null;
6123
5538
  }
6124
5539
  return config;
6125
5540
  }
6126
- function adapterFragment$h(luvio, config) {
6127
- createResourceParams$r(config);
6128
- return select$K();
5541
+ function adapterFragment$i(luvio, config) {
5542
+ createResourceParams$t(config);
5543
+ return select$P();
6129
5544
  }
6130
- function onFetchResponseSuccess$j(luvio, config, resourceParams, response) {
6131
- const snapshot = ingestSuccess$r(luvio, resourceParams, response, {
5545
+ function onFetchResponseSuccess$k(luvio, config, resourceParams, response) {
5546
+ const snapshot = ingestSuccess$t(luvio, resourceParams, response, {
6132
5547
  config,
6133
- resolve: () => buildNetworkSnapshot$r(luvio, config, snapshotRefreshOptions)
5548
+ resolve: () => buildNetworkSnapshot$t(luvio, config, snapshotRefreshOptions)
6134
5549
  });
6135
5550
  return luvio.storeBroadcast().then(() => snapshot);
6136
5551
  }
6137
- function onFetchResponseError$h(luvio, config, resourceParams, response) {
6138
- const snapshot = ingestError$h(luvio, resourceParams, response, {
5552
+ function onFetchResponseError$i(luvio, config, resourceParams, response) {
5553
+ const snapshot = ingestError$i(luvio, resourceParams, response, {
6139
5554
  config,
6140
- resolve: () => buildNetworkSnapshot$r(luvio, config, snapshotRefreshOptions)
5555
+ resolve: () => buildNetworkSnapshot$t(luvio, config, snapshotRefreshOptions)
6141
5556
  });
6142
5557
  return luvio.storeBroadcast().then(() => snapshot);
6143
5558
  }
6144
- function buildNetworkSnapshot$r(luvio, config, options) {
6145
- const resourceParams = createResourceParams$r(config);
6146
- const request = createResourceRequest$r(resourceParams);
5559
+ function buildNetworkSnapshot$t(luvio, config, options) {
5560
+ const resourceParams = createResourceParams$t(config);
5561
+ const request = createResourceRequest$t(resourceParams);
6147
5562
  return luvio.dispatchResourceRequest(request, options)
6148
5563
  .then((response) => {
6149
- return luvio.handleSuccessResponse(() => onFetchResponseSuccess$j(luvio, config, resourceParams, response), () => {
5564
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess$k(luvio, config, resourceParams, response), () => {
6150
5565
  const cache = new StoreKeyMap();
6151
- getResponseCacheKeys$r(cache, luvio, resourceParams, response.body);
5566
+ getResponseCacheKeys$t(cache, luvio, resourceParams, response.body);
6152
5567
  return cache;
6153
5568
  });
6154
5569
  }, (response) => {
6155
- return luvio.handleErrorResponse(() => onFetchResponseError$h(luvio, config, resourceParams, response));
5570
+ return luvio.handleErrorResponse(() => onFetchResponseError$i(luvio, config, resourceParams, response));
6156
5571
  });
6157
5572
  }
6158
- function buildNetworkSnapshotCachePolicy$h(context, coercedAdapterRequestContext) {
6159
- return buildNetworkSnapshotCachePolicy$p(context, coercedAdapterRequestContext, buildNetworkSnapshot$r, undefined, false);
5573
+ function buildNetworkSnapshotCachePolicy$i(context, coercedAdapterRequestContext) {
5574
+ return buildNetworkSnapshotCachePolicy$p(context, coercedAdapterRequestContext, buildNetworkSnapshot$t, undefined, false);
6160
5575
  }
6161
- function buildCachedSnapshotCachePolicy$h(context, storeLookup) {
5576
+ function buildCachedSnapshotCachePolicy$i(context, storeLookup) {
6162
5577
  const { luvio, config } = context;
6163
5578
  const selector = {
6164
- recordId: keyBuilder$F(luvio, config),
6165
- node: adapterFragment$h(luvio, config),
5579
+ recordId: keyBuilder$I(luvio, config),
5580
+ node: adapterFragment$i(luvio, config),
6166
5581
  variables: {},
6167
5582
  };
6168
5583
  const cacheSnapshot = storeLookup(selector, {
6169
5584
  config,
6170
- resolve: () => buildNetworkSnapshot$r(luvio, config, snapshotRefreshOptions)
5585
+ resolve: () => buildNetworkSnapshot$t(luvio, config, snapshotRefreshOptions)
6171
5586
  });
6172
5587
  return cacheSnapshot;
6173
5588
  }
6174
5589
  const getManagedContentVariantAdapterFactory = (luvio) => function CMSAuthoring__getManagedContentVariant(untrustedConfig, requestContext) {
6175
- const config = validateAdapterConfig$r(untrustedConfig, getManagedContentVariant_ConfigPropertyNames);
5590
+ const config = validateAdapterConfig$t(untrustedConfig, getManagedContentVariant_ConfigPropertyNames);
6176
5591
  // Invalid or incomplete config
6177
5592
  if (config === null) {
6178
5593
  return null;
6179
5594
  }
6180
5595
  return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
6181
- buildCachedSnapshotCachePolicy$h, buildNetworkSnapshotCachePolicy$h);
5596
+ buildCachedSnapshotCachePolicy$i, buildNetworkSnapshotCachePolicy$i);
6182
5597
  };
6183
5598
 
6184
- function validate$C(obj, path = 'ManagedContentVariantUpdateInputRepresentation') {
5599
+ function validate$G(obj, path = 'ManagedContentVariantUpdateInputRepresentation') {
6185
5600
  const v_error = (() => {
6186
5601
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
6187
5602
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -6218,19 +5633,19 @@ function validate$C(obj, path = 'ManagedContentVariantUpdateInputRepresentation'
6218
5633
  return v_error === undefined ? null : v_error;
6219
5634
  }
6220
5635
 
6221
- function select$J(luvio, params) {
6222
- return select$M();
5636
+ function select$O(luvio, params) {
5637
+ return select$R();
6223
5638
  }
6224
- function getResponseCacheKeys$q(storeKeyMap, luvio, resourceParams, response) {
6225
- getTypeCacheKeys$i(storeKeyMap, luvio, response);
5639
+ function getResponseCacheKeys$s(storeKeyMap, luvio, resourceParams, response) {
5640
+ getTypeCacheKeys$l(storeKeyMap, luvio, response);
6226
5641
  }
6227
- function ingestSuccess$q(luvio, resourceParams, response) {
5642
+ function ingestSuccess$s(luvio, resourceParams, response) {
6228
5643
  const { body } = response;
6229
- const key = keyBuilderFromType$7(luvio, body);
6230
- luvio.storeIngest(key, ingest$i, body);
5644
+ const key = keyBuilderFromType$8(luvio, body);
5645
+ luvio.storeIngest(key, ingest$l, body);
6231
5646
  const snapshot = luvio.storeLookup({
6232
5647
  recordId: key,
6233
- node: select$J(),
5648
+ node: select$O(),
6234
5649
  variables: {},
6235
5650
  });
6236
5651
  if (process.env.NODE_ENV !== 'production') {
@@ -6241,7 +5656,7 @@ function ingestSuccess$q(luvio, resourceParams, response) {
6241
5656
  deepFreeze(snapshot.data);
6242
5657
  return snapshot;
6243
5658
  }
6244
- function createResourceRequest$q(config) {
5659
+ function createResourceRequest$s(config) {
6245
5660
  const headers = {};
6246
5661
  return {
6247
5662
  baseUri: '/services/data/v61.0',
@@ -6255,47 +5670,47 @@ function createResourceRequest$q(config) {
6255
5670
  };
6256
5671
  }
6257
5672
 
6258
- const adapterName$q = 'replaceManagedContentVariant';
5673
+ const adapterName$s = 'replaceManagedContentVariant';
6259
5674
  const replaceManagedContentVariant_ConfigPropertyMetadata = [
6260
5675
  generateParamConfigMetadata('variantId', true, 0 /* UrlParameter */, 0 /* String */),
6261
5676
  generateParamConfigMetadata('ManagedContentVariantInputParam', true, 2 /* Body */, 4 /* Unsupported */),
6262
5677
  ];
6263
- const replaceManagedContentVariant_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$q, replaceManagedContentVariant_ConfigPropertyMetadata);
6264
- const createResourceParams$q = /*#__PURE__*/ createResourceParams$I(replaceManagedContentVariant_ConfigPropertyMetadata);
6265
- function typeCheckConfig$q(untrustedConfig) {
5678
+ const replaceManagedContentVariant_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$s, replaceManagedContentVariant_ConfigPropertyMetadata);
5679
+ const createResourceParams$s = /*#__PURE__*/ createResourceParams$I(replaceManagedContentVariant_ConfigPropertyMetadata);
5680
+ function typeCheckConfig$s(untrustedConfig) {
6266
5681
  const config = {};
6267
5682
  typeCheckConfig$I(untrustedConfig, config, replaceManagedContentVariant_ConfigPropertyMetadata);
6268
5683
  const untrustedConfig_ManagedContentVariantInputParam = untrustedConfig.ManagedContentVariantInputParam;
6269
- const referenceManagedContentVariantUpdateInputRepresentationValidationError = validate$C(untrustedConfig_ManagedContentVariantInputParam);
5684
+ const referenceManagedContentVariantUpdateInputRepresentationValidationError = validate$G(untrustedConfig_ManagedContentVariantInputParam);
6270
5685
  if (referenceManagedContentVariantUpdateInputRepresentationValidationError === null) {
6271
5686
  config.ManagedContentVariantInputParam = untrustedConfig_ManagedContentVariantInputParam;
6272
5687
  }
6273
5688
  return config;
6274
5689
  }
6275
- function validateAdapterConfig$q(untrustedConfig, configPropertyNames) {
5690
+ function validateAdapterConfig$s(untrustedConfig, configPropertyNames) {
6276
5691
  if (!untrustedIsObject(untrustedConfig)) {
6277
5692
  return null;
6278
5693
  }
6279
5694
  if (process.env.NODE_ENV !== 'production') {
6280
5695
  validateConfig(untrustedConfig, configPropertyNames);
6281
5696
  }
6282
- const config = typeCheckConfig$q(untrustedConfig);
5697
+ const config = typeCheckConfig$s(untrustedConfig);
6283
5698
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
6284
5699
  return null;
6285
5700
  }
6286
5701
  return config;
6287
5702
  }
6288
- function buildNetworkSnapshot$q(luvio, config, options) {
6289
- const resourceParams = createResourceParams$q(config);
6290
- const request = createResourceRequest$q(resourceParams);
5703
+ function buildNetworkSnapshot$s(luvio, config, options) {
5704
+ const resourceParams = createResourceParams$s(config);
5705
+ const request = createResourceRequest$s(resourceParams);
6291
5706
  return luvio.dispatchResourceRequest(request, options)
6292
5707
  .then((response) => {
6293
5708
  return luvio.handleSuccessResponse(() => {
6294
- const snapshot = ingestSuccess$q(luvio, resourceParams, response);
5709
+ const snapshot = ingestSuccess$s(luvio, resourceParams, response);
6295
5710
  return luvio.storeBroadcast().then(() => snapshot);
6296
5711
  }, () => {
6297
5712
  const cache = new StoreKeyMap();
6298
- getResponseCacheKeys$q(cache, luvio, resourceParams, response.body);
5713
+ getResponseCacheKeys$s(cache, luvio, resourceParams, response.body);
6299
5714
  return cache;
6300
5715
  });
6301
5716
  }, (response) => {
@@ -6305,16 +5720,16 @@ function buildNetworkSnapshot$q(luvio, config, options) {
6305
5720
  }
6306
5721
  const replaceManagedContentVariantAdapterFactory = (luvio) => {
6307
5722
  return function replaceManagedContentVariant(untrustedConfig) {
6308
- const config = validateAdapterConfig$q(untrustedConfig, replaceManagedContentVariant_ConfigPropertyNames);
5723
+ const config = validateAdapterConfig$s(untrustedConfig, replaceManagedContentVariant_ConfigPropertyNames);
6309
5724
  // Invalid or incomplete config
6310
5725
  if (config === null) {
6311
5726
  throw new Error('Invalid config for "replaceManagedContentVariant"');
6312
5727
  }
6313
- return buildNetworkSnapshot$q(luvio, config);
5728
+ return buildNetworkSnapshot$s(luvio, config);
6314
5729
  };
6315
5730
  };
6316
5731
 
6317
- function validate$B(obj, path = 'ManagedContentVariantVersionRepresentation') {
5732
+ function validate$F(obj, path = 'ManagedContentVariantVersionRepresentation') {
6318
5733
  const v_error = (() => {
6319
5734
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
6320
5735
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -6352,7 +5767,7 @@ function validate$B(obj, path = 'ManagedContentVariantVersionRepresentation') {
6352
5767
  }
6353
5768
  const obj_status = obj.status;
6354
5769
  const path_status = path + '.status';
6355
- const referencepath_statusValidationError = validate$R(obj_status, path_status);
5770
+ const referencepath_statusValidationError = validate$V(obj_status, path_status);
6356
5771
  if (referencepath_statusValidationError !== null) {
6357
5772
  let message = 'Object doesn\'t match ManagedContentVariantStatusRepresentation (at "' + path_status + '")\n';
6358
5773
  message += referencepath_statusValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -6372,9 +5787,9 @@ function validate$B(obj, path = 'ManagedContentVariantVersionRepresentation') {
6372
5787
  return v_error === undefined ? null : v_error;
6373
5788
  }
6374
5789
 
6375
- const TTL$h = 100;
6376
- const VERSION$i = "993f4fe3a5b12699f037079dbe30610b";
6377
- function validate$A(obj, path = 'ManagedContentVariantVersionCollectionRepresentation') {
5790
+ const TTL$j = 100;
5791
+ const VERSION$l = "993f4fe3a5b12699f037079dbe30610b";
5792
+ function validate$E(obj, path = 'ManagedContentVariantVersionCollectionRepresentation') {
6378
5793
  const v_error = (() => {
6379
5794
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
6380
5795
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -6404,7 +5819,7 @@ function validate$A(obj, path = 'ManagedContentVariantVersionCollectionRepresent
6404
5819
  for (let i = 0; i < obj_versions.length; i++) {
6405
5820
  const obj_versions_item = obj_versions[i];
6406
5821
  const path_versions_item = path_versions + '[' + i + ']';
6407
- const referencepath_versions_itemValidationError = validate$B(obj_versions_item, path_versions_item);
5822
+ const referencepath_versions_itemValidationError = validate$F(obj_versions_item, path_versions_item);
6408
5823
  if (referencepath_versions_itemValidationError !== null) {
6409
5824
  let message = 'Object doesn\'t match ManagedContentVariantVersionRepresentation (at "' + path_versions_item + '")\n';
6410
5825
  message += referencepath_versions_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -6414,73 +5829,73 @@ function validate$A(obj, path = 'ManagedContentVariantVersionCollectionRepresent
6414
5829
  })();
6415
5830
  return v_error === undefined ? null : v_error;
6416
5831
  }
6417
- const RepresentationType$h = 'ManagedContentVariantVersionCollectionRepresentation';
6418
- function keyBuilder$E(luvio, config) {
6419
- return keyPrefix + '::' + RepresentationType$h + ':' + config.variantId;
5832
+ const RepresentationType$k = 'ManagedContentVariantVersionCollectionRepresentation';
5833
+ function keyBuilder$H(luvio, config) {
5834
+ return keyPrefix + '::' + RepresentationType$k + ':' + config.variantId;
6420
5835
  }
6421
- function keyBuilderFromType$6(luvio, object) {
5836
+ function keyBuilderFromType$7(luvio, object) {
6422
5837
  const keyParams = {
6423
5838
  variantId: object.managedContentVariantId
6424
5839
  };
6425
- return keyBuilder$E(luvio, keyParams);
5840
+ return keyBuilder$H(luvio, keyParams);
6426
5841
  }
6427
- function normalize$h(input, existing, path, luvio, store, timestamp) {
5842
+ function normalize$k(input, existing, path, luvio, store, timestamp) {
6428
5843
  return input;
6429
5844
  }
6430
- const select$I = function ManagedContentVariantVersionCollectionRepresentationSelect() {
5845
+ const select$N = function ManagedContentVariantVersionCollectionRepresentationSelect() {
6431
5846
  return {
6432
5847
  kind: 'Fragment',
6433
- version: VERSION$i,
5848
+ version: VERSION$l,
6434
5849
  private: [],
6435
5850
  opaque: true
6436
5851
  };
6437
5852
  };
6438
- function equals$i(existing, incoming) {
5853
+ function equals$l(existing, incoming) {
6439
5854
  if (JSONStringify(incoming) !== JSONStringify(existing)) {
6440
5855
  return false;
6441
5856
  }
6442
5857
  return true;
6443
5858
  }
6444
- const ingest$h = function ManagedContentVariantVersionCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
5859
+ const ingest$k = function ManagedContentVariantVersionCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
6445
5860
  if (process.env.NODE_ENV !== 'production') {
6446
- const validateError = validate$A(input);
5861
+ const validateError = validate$E(input);
6447
5862
  if (validateError !== null) {
6448
5863
  throw validateError;
6449
5864
  }
6450
5865
  }
6451
- const key = keyBuilderFromType$6(luvio, input);
6452
- const ttlToUse = TTL$h;
6453
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$h, "CMSAuthoring", VERSION$i, RepresentationType$h, equals$i);
5866
+ const key = keyBuilderFromType$7(luvio, input);
5867
+ const ttlToUse = TTL$j;
5868
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$k, "CMSAuthoring", VERSION$l, RepresentationType$k, equals$l);
6454
5869
  return createLink(key);
6455
5870
  };
6456
- function getTypeCacheKeys$h(rootKeySet, luvio, input, fullPathFactory) {
5871
+ function getTypeCacheKeys$k(rootKeySet, luvio, input, fullPathFactory) {
6457
5872
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
6458
- const rootKey = keyBuilderFromType$6(luvio, input);
5873
+ const rootKey = keyBuilderFromType$7(luvio, input);
6459
5874
  rootKeySet.set(rootKey, {
6460
5875
  namespace: keyPrefix,
6461
- representationName: RepresentationType$h,
5876
+ representationName: RepresentationType$k,
6462
5877
  mergeable: false
6463
5878
  });
6464
5879
  }
6465
5880
 
6466
- function select$H(luvio, params) {
6467
- return select$I();
5881
+ function select$M(luvio, params) {
5882
+ return select$N();
6468
5883
  }
6469
- function keyBuilder$D(luvio, params) {
6470
- return keyBuilder$E(luvio, {
5884
+ function keyBuilder$G(luvio, params) {
5885
+ return keyBuilder$H(luvio, {
6471
5886
  variantId: params.urlParams.variantId
6472
5887
  });
6473
5888
  }
6474
- function getResponseCacheKeys$p(storeKeyMap, luvio, resourceParams, response) {
6475
- getTypeCacheKeys$h(storeKeyMap, luvio, response);
5889
+ function getResponseCacheKeys$r(storeKeyMap, luvio, resourceParams, response) {
5890
+ getTypeCacheKeys$k(storeKeyMap, luvio, response);
6476
5891
  }
6477
- function ingestSuccess$p(luvio, resourceParams, response, snapshotRefresh) {
5892
+ function ingestSuccess$r(luvio, resourceParams, response, snapshotRefresh) {
6478
5893
  const { body } = response;
6479
- const key = keyBuilder$D(luvio, resourceParams);
6480
- luvio.storeIngest(key, ingest$h, body);
5894
+ const key = keyBuilder$G(luvio, resourceParams);
5895
+ luvio.storeIngest(key, ingest$k, body);
6481
5896
  const snapshot = luvio.storeLookup({
6482
5897
  recordId: key,
6483
- node: select$H(),
5898
+ node: select$M(),
6484
5899
  variables: {},
6485
5900
  }, snapshotRefresh);
6486
5901
  if (process.env.NODE_ENV !== 'production') {
@@ -6491,19 +5906,19 @@ function ingestSuccess$p(luvio, resourceParams, response, snapshotRefresh) {
6491
5906
  deepFreeze(snapshot.data);
6492
5907
  return snapshot;
6493
5908
  }
6494
- function ingestError$g(luvio, params, error, snapshotRefresh) {
6495
- const key = keyBuilder$D(luvio, params);
5909
+ function ingestError$h(luvio, params, error, snapshotRefresh) {
5910
+ const key = keyBuilder$G(luvio, params);
6496
5911
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
6497
5912
  const storeMetadataParams = {
6498
- ttl: TTL$h,
5913
+ ttl: TTL$j,
6499
5914
  namespace: keyPrefix,
6500
- version: VERSION$i,
6501
- representationName: RepresentationType$h
5915
+ version: VERSION$l,
5916
+ representationName: RepresentationType$k
6502
5917
  };
6503
5918
  luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
6504
5919
  return errorSnapshot;
6505
5920
  }
6506
- function createResourceRequest$p(config) {
5921
+ function createResourceRequest$r(config) {
6507
5922
  const headers = {};
6508
5923
  return {
6509
5924
  baseUri: '/services/data/v61.0',
@@ -6517,96 +5932,96 @@ function createResourceRequest$p(config) {
6517
5932
  };
6518
5933
  }
6519
5934
 
6520
- const adapterName$p = 'getManagedContentVariantVersions';
5935
+ const adapterName$r = 'getManagedContentVariantVersions';
6521
5936
  const getManagedContentVariantVersions_ConfigPropertyMetadata = [
6522
5937
  generateParamConfigMetadata('variantId', true, 0 /* UrlParameter */, 0 /* String */),
6523
5938
  generateParamConfigMetadata('page', false, 1 /* QueryParameter */, 3 /* Integer */),
6524
5939
  generateParamConfigMetadata('pageSize', false, 1 /* QueryParameter */, 3 /* Integer */),
6525
5940
  generateParamConfigMetadata('status', false, 1 /* QueryParameter */, 0 /* String */, true),
6526
5941
  ];
6527
- const getManagedContentVariantVersions_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$p, getManagedContentVariantVersions_ConfigPropertyMetadata);
6528
- const createResourceParams$p = /*#__PURE__*/ createResourceParams$I(getManagedContentVariantVersions_ConfigPropertyMetadata);
6529
- function keyBuilder$C(luvio, config) {
6530
- const resourceParams = createResourceParams$p(config);
6531
- return keyBuilder$D(luvio, resourceParams);
5942
+ const getManagedContentVariantVersions_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$r, getManagedContentVariantVersions_ConfigPropertyMetadata);
5943
+ const createResourceParams$r = /*#__PURE__*/ createResourceParams$I(getManagedContentVariantVersions_ConfigPropertyMetadata);
5944
+ function keyBuilder$F(luvio, config) {
5945
+ const resourceParams = createResourceParams$r(config);
5946
+ return keyBuilder$G(luvio, resourceParams);
6532
5947
  }
6533
- function typeCheckConfig$p(untrustedConfig) {
5948
+ function typeCheckConfig$r(untrustedConfig) {
6534
5949
  const config = {};
6535
5950
  typeCheckConfig$I(untrustedConfig, config, getManagedContentVariantVersions_ConfigPropertyMetadata);
6536
5951
  return config;
6537
5952
  }
6538
- function validateAdapterConfig$p(untrustedConfig, configPropertyNames) {
5953
+ function validateAdapterConfig$r(untrustedConfig, configPropertyNames) {
6539
5954
  if (!untrustedIsObject(untrustedConfig)) {
6540
5955
  return null;
6541
5956
  }
6542
5957
  if (process.env.NODE_ENV !== 'production') {
6543
5958
  validateConfig(untrustedConfig, configPropertyNames);
6544
5959
  }
6545
- const config = typeCheckConfig$p(untrustedConfig);
5960
+ const config = typeCheckConfig$r(untrustedConfig);
6546
5961
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
6547
5962
  return null;
6548
5963
  }
6549
5964
  return config;
6550
5965
  }
6551
- function adapterFragment$g(luvio, config) {
6552
- createResourceParams$p(config);
6553
- return select$H();
5966
+ function adapterFragment$h(luvio, config) {
5967
+ createResourceParams$r(config);
5968
+ return select$M();
6554
5969
  }
6555
- function onFetchResponseSuccess$i(luvio, config, resourceParams, response) {
6556
- const snapshot = ingestSuccess$p(luvio, resourceParams, response, {
5970
+ function onFetchResponseSuccess$j(luvio, config, resourceParams, response) {
5971
+ const snapshot = ingestSuccess$r(luvio, resourceParams, response, {
6557
5972
  config,
6558
- resolve: () => buildNetworkSnapshot$p(luvio, config, snapshotRefreshOptions)
5973
+ resolve: () => buildNetworkSnapshot$r(luvio, config, snapshotRefreshOptions)
6559
5974
  });
6560
5975
  return luvio.storeBroadcast().then(() => snapshot);
6561
5976
  }
6562
- function onFetchResponseError$g(luvio, config, resourceParams, response) {
6563
- const snapshot = ingestError$g(luvio, resourceParams, response, {
5977
+ function onFetchResponseError$h(luvio, config, resourceParams, response) {
5978
+ const snapshot = ingestError$h(luvio, resourceParams, response, {
6564
5979
  config,
6565
- resolve: () => buildNetworkSnapshot$p(luvio, config, snapshotRefreshOptions)
5980
+ resolve: () => buildNetworkSnapshot$r(luvio, config, snapshotRefreshOptions)
6566
5981
  });
6567
5982
  return luvio.storeBroadcast().then(() => snapshot);
6568
5983
  }
6569
- function buildNetworkSnapshot$p(luvio, config, options) {
6570
- const resourceParams = createResourceParams$p(config);
6571
- const request = createResourceRequest$p(resourceParams);
5984
+ function buildNetworkSnapshot$r(luvio, config, options) {
5985
+ const resourceParams = createResourceParams$r(config);
5986
+ const request = createResourceRequest$r(resourceParams);
6572
5987
  return luvio.dispatchResourceRequest(request, options)
6573
5988
  .then((response) => {
6574
- return luvio.handleSuccessResponse(() => onFetchResponseSuccess$i(luvio, config, resourceParams, response), () => {
5989
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess$j(luvio, config, resourceParams, response), () => {
6575
5990
  const cache = new StoreKeyMap();
6576
- getResponseCacheKeys$p(cache, luvio, resourceParams, response.body);
5991
+ getResponseCacheKeys$r(cache, luvio, resourceParams, response.body);
6577
5992
  return cache;
6578
5993
  });
6579
5994
  }, (response) => {
6580
- return luvio.handleErrorResponse(() => onFetchResponseError$g(luvio, config, resourceParams, response));
5995
+ return luvio.handleErrorResponse(() => onFetchResponseError$h(luvio, config, resourceParams, response));
6581
5996
  });
6582
5997
  }
6583
- function buildNetworkSnapshotCachePolicy$g(context, coercedAdapterRequestContext) {
6584
- return buildNetworkSnapshotCachePolicy$p(context, coercedAdapterRequestContext, buildNetworkSnapshot$p, undefined, false);
5998
+ function buildNetworkSnapshotCachePolicy$h(context, coercedAdapterRequestContext) {
5999
+ return buildNetworkSnapshotCachePolicy$p(context, coercedAdapterRequestContext, buildNetworkSnapshot$r, undefined, false);
6585
6000
  }
6586
- function buildCachedSnapshotCachePolicy$g(context, storeLookup) {
6001
+ function buildCachedSnapshotCachePolicy$h(context, storeLookup) {
6587
6002
  const { luvio, config } = context;
6588
6003
  const selector = {
6589
- recordId: keyBuilder$C(luvio, config),
6590
- node: adapterFragment$g(luvio, config),
6004
+ recordId: keyBuilder$F(luvio, config),
6005
+ node: adapterFragment$h(luvio, config),
6591
6006
  variables: {},
6592
6007
  };
6593
6008
  const cacheSnapshot = storeLookup(selector, {
6594
6009
  config,
6595
- resolve: () => buildNetworkSnapshot$p(luvio, config, snapshotRefreshOptions)
6010
+ resolve: () => buildNetworkSnapshot$r(luvio, config, snapshotRefreshOptions)
6596
6011
  });
6597
6012
  return cacheSnapshot;
6598
6013
  }
6599
6014
  const getManagedContentVariantVersionsAdapterFactory = (luvio) => function CMSAuthoring__getManagedContentVariantVersions(untrustedConfig, requestContext) {
6600
- const config = validateAdapterConfig$p(untrustedConfig, getManagedContentVariantVersions_ConfigPropertyNames);
6015
+ const config = validateAdapterConfig$r(untrustedConfig, getManagedContentVariantVersions_ConfigPropertyNames);
6601
6016
  // Invalid or incomplete config
6602
6017
  if (config === null) {
6603
6018
  return null;
6604
6019
  }
6605
6020
  return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
6606
- buildCachedSnapshotCachePolicy$g, buildNetworkSnapshotCachePolicy$g);
6021
+ buildCachedSnapshotCachePolicy$h, buildNetworkSnapshotCachePolicy$h);
6607
6022
  };
6608
6023
 
6609
- function validate$z(obj, path = 'ManagedContentWebUrlRedirectInfoInputRepresentation') {
6024
+ function validate$D(obj, path = 'ManagedContentWebUrlRedirectInfoInputRepresentation') {
6610
6025
  const v_error = (() => {
6611
6026
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
6612
6027
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -6620,7 +6035,7 @@ function validate$z(obj, path = 'ManagedContentWebUrlRedirectInfoInputRepresenta
6620
6035
  return v_error === undefined ? null : v_error;
6621
6036
  }
6622
6037
 
6623
- function validate$y(obj, path = 'ManagedContentWebUrlRedirectInfoOutputRepresentation') {
6038
+ function validate$C(obj, path = 'ManagedContentWebUrlRedirectInfoOutputRepresentation') {
6624
6039
  const v_error = (() => {
6625
6040
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
6626
6041
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -6655,7 +6070,7 @@ function validate$y(obj, path = 'ManagedContentWebUrlRedirectInfoOutputRepresent
6655
6070
  return v_error === undefined ? null : v_error;
6656
6071
  }
6657
6072
 
6658
- function validate$x(obj, path = 'ManagedContentSiteInfoRepresentation') {
6073
+ function validate$B(obj, path = 'ManagedContentSiteInfoRepresentation') {
6659
6074
  const v_error = (() => {
6660
6075
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
6661
6076
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -6674,7 +6089,7 @@ function validate$x(obj, path = 'ManagedContentSiteInfoRepresentation') {
6674
6089
  return v_error === undefined ? null : v_error;
6675
6090
  }
6676
6091
 
6677
- function validate$w(obj, path = 'ManagedContentWebUrlInfoRepresentation') {
6092
+ function validate$A(obj, path = 'ManagedContentWebUrlInfoRepresentation') {
6678
6093
  const v_error = (() => {
6679
6094
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
6680
6095
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -6682,7 +6097,7 @@ function validate$w(obj, path = 'ManagedContentWebUrlInfoRepresentation') {
6682
6097
  if (obj.siteInfo !== undefined) {
6683
6098
  const obj_siteInfo = obj.siteInfo;
6684
6099
  const path_siteInfo = path + '.siteInfo';
6685
- const referencepath_siteInfoValidationError = validate$x(obj_siteInfo, path_siteInfo);
6100
+ const referencepath_siteInfoValidationError = validate$B(obj_siteInfo, path_siteInfo);
6686
6101
  if (referencepath_siteInfoValidationError !== null) {
6687
6102
  let message = 'Object doesn\'t match ManagedContentSiteInfoRepresentation (at "' + path_siteInfo + '")\n';
6688
6103
  message += referencepath_siteInfoValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -6698,9 +6113,9 @@ function validate$w(obj, path = 'ManagedContentWebUrlInfoRepresentation') {
6698
6113
  return v_error === undefined ? null : v_error;
6699
6114
  }
6700
6115
 
6701
- const TTL$g = 100;
6702
- const VERSION$h = "e55a316362ca4e75b43fa6c9c1b8a065";
6703
- function validate$v(obj, path = 'ManagedContentWebUrlRepresentation') {
6116
+ const TTL$i = 100;
6117
+ const VERSION$k = "e55a316362ca4e75b43fa6c9c1b8a065";
6118
+ function validate$z(obj, path = 'ManagedContentWebUrlRepresentation') {
6704
6119
  const v_error = (() => {
6705
6120
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
6706
6121
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -6717,7 +6132,7 @@ function validate$v(obj, path = 'ManagedContentWebUrlRepresentation') {
6717
6132
  }
6718
6133
  const obj_redirectInfo = obj.redirectInfo;
6719
6134
  const path_redirectInfo = path + '.redirectInfo';
6720
- const referencepath_redirectInfoValidationError = validate$y(obj_redirectInfo, path_redirectInfo);
6135
+ const referencepath_redirectInfoValidationError = validate$C(obj_redirectInfo, path_redirectInfo);
6721
6136
  if (referencepath_redirectInfoValidationError !== null) {
6722
6137
  let message = 'Object doesn\'t match ManagedContentWebUrlRedirectInfoOutputRepresentation (at "' + path_redirectInfo + '")\n';
6723
6138
  message += referencepath_redirectInfoValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -6741,7 +6156,7 @@ function validate$v(obj, path = 'ManagedContentWebUrlRepresentation') {
6741
6156
  for (let i = 0; i < obj_urls.length; i++) {
6742
6157
  const obj_urls_item = obj_urls[i];
6743
6158
  const path_urls_item = path_urls + '[' + i + ']';
6744
- const referencepath_urls_itemValidationError = validate$w(obj_urls_item, path_urls_item);
6159
+ const referencepath_urls_itemValidationError = validate$A(obj_urls_item, path_urls_item);
6745
6160
  if (referencepath_urls_itemValidationError !== null) {
6746
6161
  let message = 'Object doesn\'t match ManagedContentWebUrlInfoRepresentation (at "' + path_urls_item + '")\n';
6747
6162
  message += referencepath_urls_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -6751,68 +6166,68 @@ function validate$v(obj, path = 'ManagedContentWebUrlRepresentation') {
6751
6166
  })();
6752
6167
  return v_error === undefined ? null : v_error;
6753
6168
  }
6754
- const RepresentationType$g = 'ManagedContentWebUrlRepresentation';
6755
- function keyBuilder$B(luvio, config) {
6756
- return keyPrefix + '::' + RepresentationType$g + ':' + config.managedContentWebUrlId;
6169
+ const RepresentationType$j = 'ManagedContentWebUrlRepresentation';
6170
+ function keyBuilder$E(luvio, config) {
6171
+ return keyPrefix + '::' + RepresentationType$j + ':' + config.managedContentWebUrlId;
6757
6172
  }
6758
- function keyBuilderFromType$5(luvio, object) {
6173
+ function keyBuilderFromType$6(luvio, object) {
6759
6174
  const keyParams = {
6760
6175
  managedContentWebUrlId: object.id
6761
6176
  };
6762
- return keyBuilder$B(luvio, keyParams);
6177
+ return keyBuilder$E(luvio, keyParams);
6763
6178
  }
6764
- function normalize$g(input, existing, path, luvio, store, timestamp) {
6179
+ function normalize$j(input, existing, path, luvio, store, timestamp) {
6765
6180
  return input;
6766
6181
  }
6767
- const select$G = function ManagedContentWebUrlRepresentationSelect() {
6182
+ const select$L = function ManagedContentWebUrlRepresentationSelect() {
6768
6183
  return {
6769
6184
  kind: 'Fragment',
6770
- version: VERSION$h,
6185
+ version: VERSION$k,
6771
6186
  private: [],
6772
6187
  opaque: true
6773
6188
  };
6774
6189
  };
6775
- function equals$h(existing, incoming) {
6190
+ function equals$k(existing, incoming) {
6776
6191
  if (JSONStringify(incoming) !== JSONStringify(existing)) {
6777
6192
  return false;
6778
6193
  }
6779
6194
  return true;
6780
6195
  }
6781
- const ingest$g = function ManagedContentWebUrlRepresentationIngest(input, path, luvio, store, timestamp) {
6196
+ const ingest$j = function ManagedContentWebUrlRepresentationIngest(input, path, luvio, store, timestamp) {
6782
6197
  if (process.env.NODE_ENV !== 'production') {
6783
- const validateError = validate$v(input);
6198
+ const validateError = validate$z(input);
6784
6199
  if (validateError !== null) {
6785
6200
  throw validateError;
6786
6201
  }
6787
6202
  }
6788
- const key = keyBuilderFromType$5(luvio, input);
6789
- const ttlToUse = TTL$g;
6790
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$g, "CMSAuthoring", VERSION$h, RepresentationType$g, equals$h);
6203
+ const key = keyBuilderFromType$6(luvio, input);
6204
+ const ttlToUse = TTL$i;
6205
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$j, "CMSAuthoring", VERSION$k, RepresentationType$j, equals$k);
6791
6206
  return createLink(key);
6792
6207
  };
6793
- function getTypeCacheKeys$g(rootKeySet, luvio, input, fullPathFactory) {
6208
+ function getTypeCacheKeys$j(rootKeySet, luvio, input, fullPathFactory) {
6794
6209
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
6795
- const rootKey = keyBuilderFromType$5(luvio, input);
6210
+ const rootKey = keyBuilderFromType$6(luvio, input);
6796
6211
  rootKeySet.set(rootKey, {
6797
6212
  namespace: keyPrefix,
6798
- representationName: RepresentationType$g,
6213
+ representationName: RepresentationType$j,
6799
6214
  mergeable: false
6800
6215
  });
6801
6216
  }
6802
6217
 
6803
- function select$F(luvio, params) {
6804
- return select$G();
6218
+ function select$K(luvio, params) {
6219
+ return select$L();
6805
6220
  }
6806
- function getResponseCacheKeys$o(storeKeyMap, luvio, resourceParams, response) {
6807
- getTypeCacheKeys$g(storeKeyMap, luvio, response);
6221
+ function getResponseCacheKeys$q(storeKeyMap, luvio, resourceParams, response) {
6222
+ getTypeCacheKeys$j(storeKeyMap, luvio, response);
6808
6223
  }
6809
- function ingestSuccess$o(luvio, resourceParams, response) {
6224
+ function ingestSuccess$q(luvio, resourceParams, response) {
6810
6225
  const { body } = response;
6811
- const key = keyBuilderFromType$5(luvio, body);
6812
- luvio.storeIngest(key, ingest$g, body);
6226
+ const key = keyBuilderFromType$6(luvio, body);
6227
+ luvio.storeIngest(key, ingest$j, body);
6813
6228
  const snapshot = luvio.storeLookup({
6814
6229
  recordId: key,
6815
- node: select$F(),
6230
+ node: select$K(),
6816
6231
  variables: {},
6817
6232
  });
6818
6233
  if (process.env.NODE_ENV !== 'production') {
@@ -6823,7 +6238,7 @@ function ingestSuccess$o(luvio, resourceParams, response) {
6823
6238
  deepFreeze(snapshot.data);
6824
6239
  return snapshot;
6825
6240
  }
6826
- function createResourceRequest$o(config) {
6241
+ function createResourceRequest$q(config) {
6827
6242
  const headers = {};
6828
6243
  return {
6829
6244
  baseUri: '/services/data/v61.0',
@@ -6837,49 +6252,49 @@ function createResourceRequest$o(config) {
6837
6252
  };
6838
6253
  }
6839
6254
 
6840
- const adapterName$o = 'updateManagedContentWebUrl';
6255
+ const adapterName$q = 'updateManagedContentWebUrl';
6841
6256
  const updateManagedContentWebUrl_ConfigPropertyMetadata = [
6842
6257
  generateParamConfigMetadata('managedContentWebUrlId', true, 0 /* UrlParameter */, 0 /* String */),
6843
6258
  generateParamConfigMetadata('redirectInfo', false, 2 /* Body */, 4 /* Unsupported */),
6844
6259
  generateParamConfigMetadata('status', false, 2 /* Body */, 0 /* String */),
6845
6260
  generateParamConfigMetadata('urlAlias', false, 2 /* Body */, 0 /* String */),
6846
6261
  ];
6847
- const updateManagedContentWebUrl_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$o, updateManagedContentWebUrl_ConfigPropertyMetadata);
6848
- const createResourceParams$o = /*#__PURE__*/ createResourceParams$I(updateManagedContentWebUrl_ConfigPropertyMetadata);
6849
- function typeCheckConfig$o(untrustedConfig) {
6262
+ const updateManagedContentWebUrl_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$q, updateManagedContentWebUrl_ConfigPropertyMetadata);
6263
+ const createResourceParams$q = /*#__PURE__*/ createResourceParams$I(updateManagedContentWebUrl_ConfigPropertyMetadata);
6264
+ function typeCheckConfig$q(untrustedConfig) {
6850
6265
  const config = {};
6851
6266
  typeCheckConfig$I(untrustedConfig, config, updateManagedContentWebUrl_ConfigPropertyMetadata);
6852
6267
  const untrustedConfig_redirectInfo = untrustedConfig.redirectInfo;
6853
- const referenceManagedContentWebUrlRedirectInfoInputRepresentationValidationError = validate$z(untrustedConfig_redirectInfo);
6268
+ const referenceManagedContentWebUrlRedirectInfoInputRepresentationValidationError = validate$D(untrustedConfig_redirectInfo);
6854
6269
  if (referenceManagedContentWebUrlRedirectInfoInputRepresentationValidationError === null) {
6855
6270
  config.redirectInfo = untrustedConfig_redirectInfo;
6856
6271
  }
6857
6272
  return config;
6858
6273
  }
6859
- function validateAdapterConfig$o(untrustedConfig, configPropertyNames) {
6274
+ function validateAdapterConfig$q(untrustedConfig, configPropertyNames) {
6860
6275
  if (!untrustedIsObject(untrustedConfig)) {
6861
6276
  return null;
6862
6277
  }
6863
6278
  if (process.env.NODE_ENV !== 'production') {
6864
6279
  validateConfig(untrustedConfig, configPropertyNames);
6865
6280
  }
6866
- const config = typeCheckConfig$o(untrustedConfig);
6281
+ const config = typeCheckConfig$q(untrustedConfig);
6867
6282
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
6868
6283
  return null;
6869
6284
  }
6870
6285
  return config;
6871
6286
  }
6872
- function buildNetworkSnapshot$o(luvio, config, options) {
6873
- const resourceParams = createResourceParams$o(config);
6874
- const request = createResourceRequest$o(resourceParams);
6287
+ function buildNetworkSnapshot$q(luvio, config, options) {
6288
+ const resourceParams = createResourceParams$q(config);
6289
+ const request = createResourceRequest$q(resourceParams);
6875
6290
  return luvio.dispatchResourceRequest(request, options)
6876
6291
  .then((response) => {
6877
6292
  return luvio.handleSuccessResponse(() => {
6878
- const snapshot = ingestSuccess$o(luvio, resourceParams, response);
6293
+ const snapshot = ingestSuccess$q(luvio, resourceParams, response);
6879
6294
  return luvio.storeBroadcast().then(() => snapshot);
6880
6295
  }, () => {
6881
6296
  const cache = new StoreKeyMap();
6882
- getResponseCacheKeys$o(cache, luvio, resourceParams, response.body);
6297
+ getResponseCacheKeys$q(cache, luvio, resourceParams, response.body);
6883
6298
  return cache;
6884
6299
  });
6885
6300
  }, (response) => {
@@ -6889,35 +6304,35 @@ function buildNetworkSnapshot$o(luvio, config, options) {
6889
6304
  }
6890
6305
  const updateManagedContentWebUrlAdapterFactory = (luvio) => {
6891
6306
  return function updateManagedContentWebUrl(untrustedConfig) {
6892
- const config = validateAdapterConfig$o(untrustedConfig, updateManagedContentWebUrl_ConfigPropertyNames);
6307
+ const config = validateAdapterConfig$q(untrustedConfig, updateManagedContentWebUrl_ConfigPropertyNames);
6893
6308
  // Invalid or incomplete config
6894
6309
  if (config === null) {
6895
6310
  throw new Error('Invalid config for "updateManagedContentWebUrl"');
6896
6311
  }
6897
- return buildNetworkSnapshot$o(luvio, config);
6312
+ return buildNetworkSnapshot$q(luvio, config);
6898
6313
  };
6899
6314
  };
6900
6315
 
6901
- function select$E(luvio, params) {
6902
- return select$W();
6316
+ function select$J(luvio, params) {
6317
+ return select$$();
6903
6318
  }
6904
- function keyBuilder$A(luvio, params) {
6905
- return keyBuilder$O(luvio, {
6319
+ function keyBuilder$D(luvio, params) {
6320
+ return keyBuilder$R(luvio, {
6906
6321
  content_key: params.urlParams.contentKeyOrId,
6907
6322
  language: params.queryParams.language || '',
6908
6323
  version: params.queryParams.version || ''
6909
6324
  });
6910
6325
  }
6911
- function getResponseCacheKeys$n(storeKeyMap, luvio, resourceParams, response) {
6912
- getTypeCacheKeys$n(storeKeyMap, luvio, response);
6326
+ function getResponseCacheKeys$p(storeKeyMap, luvio, resourceParams, response) {
6327
+ getTypeCacheKeys$q(storeKeyMap, luvio, response);
6913
6328
  }
6914
- function ingestSuccess$n(luvio, resourceParams, response, snapshotRefresh) {
6329
+ function ingestSuccess$p(luvio, resourceParams, response, snapshotRefresh) {
6915
6330
  const { body } = response;
6916
- const key = keyBuilder$A(luvio, resourceParams);
6917
- luvio.storeIngest(key, ingest$n, body);
6331
+ const key = keyBuilder$D(luvio, resourceParams);
6332
+ luvio.storeIngest(key, ingest$q, body);
6918
6333
  const snapshot = luvio.storeLookup({
6919
6334
  recordId: key,
6920
- node: select$E(),
6335
+ node: select$J(),
6921
6336
  variables: {},
6922
6337
  }, snapshotRefresh);
6923
6338
  if (process.env.NODE_ENV !== 'production') {
@@ -6928,19 +6343,19 @@ function ingestSuccess$n(luvio, resourceParams, response, snapshotRefresh) {
6928
6343
  deepFreeze(snapshot.data);
6929
6344
  return snapshot;
6930
6345
  }
6931
- function ingestError$f(luvio, params, error, snapshotRefresh) {
6932
- const key = keyBuilder$A(luvio, params);
6346
+ function ingestError$g(luvio, params, error, snapshotRefresh) {
6347
+ const key = keyBuilder$D(luvio, params);
6933
6348
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
6934
6349
  const storeMetadataParams = {
6935
- ttl: TTL$n,
6350
+ ttl: TTL$p,
6936
6351
  namespace: keyPrefix,
6937
- version: VERSION$o,
6938
- representationName: RepresentationType$n
6352
+ version: VERSION$r,
6353
+ representationName: RepresentationType$q
6939
6354
  };
6940
6355
  luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
6941
6356
  return errorSnapshot;
6942
6357
  }
6943
- function createResourceRequest$n(config) {
6358
+ function createResourceRequest$p(config) {
6944
6359
  const headers = {};
6945
6360
  return {
6946
6361
  baseUri: '/services/data/v61.0',
@@ -6954,7 +6369,7 @@ function createResourceRequest$n(config) {
6954
6369
  };
6955
6370
  }
6956
6371
 
6957
- function onFetchResponseSuccess$h(luvio, config, resourceParams, response) {
6372
+ function onFetchResponseSuccess$i(luvio, config, resourceParams, response) {
6958
6373
  var _a;
6959
6374
  // Version can come either from versionNumber field in case of v2 content,
6960
6375
  // or managedContentVersionId field in case of v1 content.
@@ -7003,65 +6418,300 @@ function onFetchResponseSuccess$h(luvio, config, resourceParams, response) {
7003
6418
  // since this resource params are used to build a cache key to verify that
7004
6419
  // data was ingested into cache.
7005
6420
  (_a = resourceParams.queryParams).version || (_a.version = response.body.version);
7006
- return onFetchResponseSuccess$g(luvio, config, resourceParams, response);
6421
+ return onFetchResponseSuccess$h(luvio, config, resourceParams, response);
6422
+ }
6423
+
6424
+ const adapterName$p = 'getManagedContent';
6425
+ const getManagedContent_ConfigPropertyMetadata = [
6426
+ generateParamConfigMetadata('contentKeyOrId', true, 0 /* UrlParameter */, 0 /* String */),
6427
+ generateParamConfigMetadata('language', false, 1 /* QueryParameter */, 0 /* String */),
6428
+ generateParamConfigMetadata('version', false, 1 /* QueryParameter */, 0 /* String */),
6429
+ ];
6430
+ const getManagedContent_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$p, getManagedContent_ConfigPropertyMetadata);
6431
+ const createResourceParams$p = /*#__PURE__*/ createResourceParams$I(getManagedContent_ConfigPropertyMetadata);
6432
+ function keyBuilder$C(luvio, config) {
6433
+ const resourceParams = createResourceParams$p(config);
6434
+ return keyBuilder$D(luvio, resourceParams);
6435
+ }
6436
+ function typeCheckConfig$p(untrustedConfig) {
6437
+ const config = {};
6438
+ typeCheckConfig$I(untrustedConfig, config, getManagedContent_ConfigPropertyMetadata);
6439
+ return config;
6440
+ }
6441
+ function validateAdapterConfig$p(untrustedConfig, configPropertyNames) {
6442
+ if (!untrustedIsObject(untrustedConfig)) {
6443
+ return null;
6444
+ }
6445
+ if (process.env.NODE_ENV !== 'production') {
6446
+ validateConfig(untrustedConfig, configPropertyNames);
6447
+ }
6448
+ const config = typeCheckConfig$p(untrustedConfig);
6449
+ if (!areRequiredParametersPresent(config, configPropertyNames)) {
6450
+ return null;
6451
+ }
6452
+ return config;
6453
+ }
6454
+ function adapterFragment$g(luvio, config) {
6455
+ createResourceParams$p(config);
6456
+ return select$J();
6457
+ }
6458
+ function onFetchResponseSuccess$h(luvio, config, resourceParams, response) {
6459
+ const snapshot = ingestSuccess$p(luvio, resourceParams, response, {
6460
+ config,
6461
+ resolve: () => buildNetworkSnapshot$p(luvio, config, snapshotRefreshOptions)
6462
+ });
6463
+ return luvio.storeBroadcast().then(() => snapshot);
6464
+ }
6465
+ function onFetchResponseError$g(luvio, config, resourceParams, response) {
6466
+ const snapshot = ingestError$g(luvio, resourceParams, response, {
6467
+ config,
6468
+ resolve: () => buildNetworkSnapshot$p(luvio, config, snapshotRefreshOptions)
6469
+ });
6470
+ return luvio.storeBroadcast().then(() => snapshot);
6471
+ }
6472
+ function buildNetworkSnapshot$p(luvio, config, options) {
6473
+ const resourceParams = createResourceParams$p(config);
6474
+ const request = createResourceRequest$p(resourceParams);
6475
+ return luvio.dispatchResourceRequest(request, options)
6476
+ .then((response) => {
6477
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess$i(luvio, config, resourceParams, response), () => {
6478
+ const cache = new StoreKeyMap();
6479
+ getResponseCacheKeys$p(cache, luvio, resourceParams, response.body);
6480
+ return cache;
6481
+ });
6482
+ }, (response) => {
6483
+ return luvio.handleErrorResponse(() => onFetchResponseError$g(luvio, config, resourceParams, response));
6484
+ });
6485
+ }
6486
+ function buildNetworkSnapshotCachePolicy$g(context, coercedAdapterRequestContext) {
6487
+ return buildNetworkSnapshotCachePolicy$p(context, coercedAdapterRequestContext, buildNetworkSnapshot$p, undefined, false);
6488
+ }
6489
+ function buildCachedSnapshotCachePolicy$g(context, storeLookup) {
6490
+ const { luvio, config } = context;
6491
+ const selector = {
6492
+ recordId: keyBuilder$C(luvio, config),
6493
+ node: adapterFragment$g(luvio, config),
6494
+ variables: {},
6495
+ };
6496
+ const cacheSnapshot = storeLookup(selector, {
6497
+ config,
6498
+ resolve: () => buildNetworkSnapshot$p(luvio, config, snapshotRefreshOptions)
6499
+ });
6500
+ return cacheSnapshot;
6501
+ }
6502
+ const getManagedContentAdapterFactory = (luvio) => function CMSAuthoring__getManagedContent(untrustedConfig, requestContext) {
6503
+ const config = validateAdapterConfig$p(untrustedConfig, getManagedContent_ConfigPropertyNames);
6504
+ // Invalid or incomplete config
6505
+ if (config === null) {
6506
+ return null;
6507
+ }
6508
+ return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
6509
+ buildCachedSnapshotCachePolicy$g, buildNetworkSnapshotCachePolicy$g);
6510
+ };
6511
+
6512
+ const TTL$h = 1000;
6513
+ const VERSION$j = "98edee4f058ced93570a7b0ce2293672";
6514
+ function validate$y(obj, path = 'ManagedContentRenditionRepresentation') {
6515
+ const v_error = (() => {
6516
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
6517
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
6518
+ }
6519
+ const obj_contentKey = obj.contentKey;
6520
+ const path_contentKey = path + '.contentKey';
6521
+ if (typeof obj_contentKey !== 'string') {
6522
+ return new TypeError('Expected "string" but received "' + typeof obj_contentKey + '" (at "' + path_contentKey + '")');
6523
+ }
6524
+ const obj_language = obj.language;
6525
+ const path_language = path + '.language';
6526
+ if (typeof obj_language !== 'string') {
6527
+ return new TypeError('Expected "string" but received "' + typeof obj_language + '" (at "' + path_language + '")');
6528
+ }
6529
+ const obj_managedContentId = obj.managedContentId;
6530
+ const path_managedContentId = path + '.managedContentId';
6531
+ if (typeof obj_managedContentId !== 'string') {
6532
+ return new TypeError('Expected "string" but received "' + typeof obj_managedContentId + '" (at "' + path_managedContentId + '")');
6533
+ }
6534
+ const obj_renditionBody = obj.renditionBody;
6535
+ const path_renditionBody = path + '.renditionBody';
6536
+ if (typeof obj_renditionBody !== 'object' || ArrayIsArray(obj_renditionBody) || obj_renditionBody === null) {
6537
+ return new TypeError('Expected "object" but received "' + typeof obj_renditionBody + '" (at "' + path_renditionBody + '")');
6538
+ }
6539
+ const obj_renditionBody_keys = ObjectKeys(obj_renditionBody);
6540
+ for (let i = 0; i < obj_renditionBody_keys.length; i++) {
6541
+ const key = obj_renditionBody_keys[i];
6542
+ const obj_renditionBody_prop = obj_renditionBody[key];
6543
+ const path_renditionBody_prop = path_renditionBody + '["' + key + '"]';
6544
+ if (obj_renditionBody_prop === undefined) {
6545
+ return new TypeError('Expected "defined" but received "' + typeof obj_renditionBody_prop + '" (at "' + path_renditionBody_prop + '")');
6546
+ }
6547
+ }
6548
+ const obj_renditionSchema = obj.renditionSchema;
6549
+ const path_renditionSchema = path + '.renditionSchema';
6550
+ if (typeof obj_renditionSchema !== 'object' || ArrayIsArray(obj_renditionSchema) || obj_renditionSchema === null) {
6551
+ return new TypeError('Expected "object" but received "' + typeof obj_renditionSchema + '" (at "' + path_renditionSchema + '")');
6552
+ }
6553
+ const obj_renditionSchema_keys = ObjectKeys(obj_renditionSchema);
6554
+ for (let i = 0; i < obj_renditionSchema_keys.length; i++) {
6555
+ const key = obj_renditionSchema_keys[i];
6556
+ const obj_renditionSchema_prop = obj_renditionSchema[key];
6557
+ const path_renditionSchema_prop = path_renditionSchema + '["' + key + '"]';
6558
+ if (obj_renditionSchema_prop === undefined) {
6559
+ return new TypeError('Expected "defined" but received "' + typeof obj_renditionSchema_prop + '" (at "' + path_renditionSchema_prop + '")');
6560
+ }
6561
+ }
6562
+ })();
6563
+ return v_error === undefined ? null : v_error;
6564
+ }
6565
+ const RepresentationType$i = 'ManagedContentRenditionRepresentation';
6566
+ function normalize$i(input, existing, path, luvio, store, timestamp) {
6567
+ return input;
6568
+ }
6569
+ const select$I = function ManagedContentRenditionRepresentationSelect() {
6570
+ return {
6571
+ kind: 'Fragment',
6572
+ version: VERSION$j,
6573
+ private: [],
6574
+ opaque: true
6575
+ };
6576
+ };
6577
+ function equals$j(existing, incoming) {
6578
+ if (JSONStringify(incoming) !== JSONStringify(existing)) {
6579
+ return false;
6580
+ }
6581
+ return true;
6582
+ }
6583
+ const ingest$i = function ManagedContentRenditionRepresentationIngest(input, path, luvio, store, timestamp) {
6584
+ if (process.env.NODE_ENV !== 'production') {
6585
+ const validateError = validate$y(input);
6586
+ if (validateError !== null) {
6587
+ throw validateError;
6588
+ }
6589
+ }
6590
+ const key = path.fullPath;
6591
+ const ttlToUse = TTL$h;
6592
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$i, "CMSAuthoring", VERSION$j, RepresentationType$i, equals$j);
6593
+ return createLink(key);
6594
+ };
6595
+ function getTypeCacheKeys$i(rootKeySet, luvio, input, fullPathFactory) {
6596
+ // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
6597
+ const rootKey = fullPathFactory();
6598
+ rootKeySet.set(rootKey, {
6599
+ namespace: keyPrefix,
6600
+ representationName: RepresentationType$i,
6601
+ mergeable: false
6602
+ });
6603
+ }
6604
+
6605
+ function select$H(luvio, params) {
6606
+ return select$I();
6607
+ }
6608
+ function keyBuilder$B(luvio, params) {
6609
+ return keyPrefix + '::ManagedContentRenditionRepresentation:(' + 'channelIdOrApiName:' + params.queryParams.channelIdOrApiName + ',' + 'language:' + params.queryParams.language + ',' + 'version:' + params.queryParams.version + ',' + 'contentKeyOrId:' + params.urlParams.contentKeyOrId + ',' + 'renditionType:' + params.urlParams.renditionType + ')';
6610
+ }
6611
+ function getResponseCacheKeys$o(storeKeyMap, luvio, resourceParams, response) {
6612
+ getTypeCacheKeys$i(storeKeyMap, luvio, response, () => keyBuilder$B(luvio, resourceParams));
6613
+ }
6614
+ function ingestSuccess$o(luvio, resourceParams, response, snapshotRefresh) {
6615
+ const { body } = response;
6616
+ const key = keyBuilder$B(luvio, resourceParams);
6617
+ luvio.storeIngest(key, ingest$i, body);
6618
+ const snapshot = luvio.storeLookup({
6619
+ recordId: key,
6620
+ node: select$H(),
6621
+ variables: {},
6622
+ }, snapshotRefresh);
6623
+ if (process.env.NODE_ENV !== 'production') {
6624
+ if (snapshot.state !== 'Fulfilled') {
6625
+ throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
6626
+ }
6627
+ }
6628
+ deepFreeze(snapshot.data);
6629
+ return snapshot;
6630
+ }
6631
+ function ingestError$f(luvio, params, error, snapshotRefresh) {
6632
+ const key = keyBuilder$B(luvio, params);
6633
+ const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
6634
+ const storeMetadataParams = {
6635
+ ttl: TTL$h,
6636
+ namespace: keyPrefix,
6637
+ version: VERSION$j,
6638
+ representationName: RepresentationType$i
6639
+ };
6640
+ luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
6641
+ return errorSnapshot;
6642
+ }
6643
+ function createResourceRequest$o(config) {
6644
+ const headers = {};
6645
+ return {
6646
+ baseUri: '/services/data/v61.0',
6647
+ basePath: '/connect/cms/contents/' + config.urlParams.contentKeyOrId + '/renditions/' + config.urlParams.renditionType + '',
6648
+ method: 'get',
6649
+ body: null,
6650
+ urlParams: config.urlParams,
6651
+ queryParams: config.queryParams,
6652
+ headers,
6653
+ priority: 'normal',
6654
+ };
7007
6655
  }
7008
6656
 
7009
- const adapterName$n = 'getManagedContent';
7010
- const getManagedContent_ConfigPropertyMetadata = [
6657
+ const adapterName$o = 'getManagedContentVariantRendition';
6658
+ const getManagedContentVariantRendition_ConfigPropertyMetadata = [
7011
6659
  generateParamConfigMetadata('contentKeyOrId', true, 0 /* UrlParameter */, 0 /* String */),
6660
+ generateParamConfigMetadata('renditionType', true, 0 /* UrlParameter */, 0 /* String */),
6661
+ generateParamConfigMetadata('channelIdOrApiName', false, 1 /* QueryParameter */, 0 /* String */),
7012
6662
  generateParamConfigMetadata('language', false, 1 /* QueryParameter */, 0 /* String */),
7013
6663
  generateParamConfigMetadata('version', false, 1 /* QueryParameter */, 0 /* String */),
7014
6664
  ];
7015
- const getManagedContent_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$n, getManagedContent_ConfigPropertyMetadata);
7016
- const createResourceParams$n = /*#__PURE__*/ createResourceParams$I(getManagedContent_ConfigPropertyMetadata);
7017
- function keyBuilder$z(luvio, config) {
7018
- const resourceParams = createResourceParams$n(config);
7019
- return keyBuilder$A(luvio, resourceParams);
6665
+ const getManagedContentVariantRendition_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$o, getManagedContentVariantRendition_ConfigPropertyMetadata);
6666
+ const createResourceParams$o = /*#__PURE__*/ createResourceParams$I(getManagedContentVariantRendition_ConfigPropertyMetadata);
6667
+ function keyBuilder$A(luvio, config) {
6668
+ const resourceParams = createResourceParams$o(config);
6669
+ return keyBuilder$B(luvio, resourceParams);
7020
6670
  }
7021
- function typeCheckConfig$n(untrustedConfig) {
6671
+ function typeCheckConfig$o(untrustedConfig) {
7022
6672
  const config = {};
7023
- typeCheckConfig$I(untrustedConfig, config, getManagedContent_ConfigPropertyMetadata);
6673
+ typeCheckConfig$I(untrustedConfig, config, getManagedContentVariantRendition_ConfigPropertyMetadata);
7024
6674
  return config;
7025
6675
  }
7026
- function validateAdapterConfig$n(untrustedConfig, configPropertyNames) {
6676
+ function validateAdapterConfig$o(untrustedConfig, configPropertyNames) {
7027
6677
  if (!untrustedIsObject(untrustedConfig)) {
7028
6678
  return null;
7029
6679
  }
7030
6680
  if (process.env.NODE_ENV !== 'production') {
7031
6681
  validateConfig(untrustedConfig, configPropertyNames);
7032
6682
  }
7033
- const config = typeCheckConfig$n(untrustedConfig);
6683
+ const config = typeCheckConfig$o(untrustedConfig);
7034
6684
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
7035
6685
  return null;
7036
6686
  }
7037
6687
  return config;
7038
6688
  }
7039
6689
  function adapterFragment$f(luvio, config) {
7040
- createResourceParams$n(config);
7041
- return select$E();
6690
+ createResourceParams$o(config);
6691
+ return select$H();
7042
6692
  }
7043
6693
  function onFetchResponseSuccess$g(luvio, config, resourceParams, response) {
7044
- const snapshot = ingestSuccess$n(luvio, resourceParams, response, {
6694
+ const snapshot = ingestSuccess$o(luvio, resourceParams, response, {
7045
6695
  config,
7046
- resolve: () => buildNetworkSnapshot$n(luvio, config, snapshotRefreshOptions)
6696
+ resolve: () => buildNetworkSnapshot$o(luvio, config, snapshotRefreshOptions)
7047
6697
  });
7048
6698
  return luvio.storeBroadcast().then(() => snapshot);
7049
6699
  }
7050
6700
  function onFetchResponseError$f(luvio, config, resourceParams, response) {
7051
6701
  const snapshot = ingestError$f(luvio, resourceParams, response, {
7052
6702
  config,
7053
- resolve: () => buildNetworkSnapshot$n(luvio, config, snapshotRefreshOptions)
6703
+ resolve: () => buildNetworkSnapshot$o(luvio, config, snapshotRefreshOptions)
7054
6704
  });
7055
6705
  return luvio.storeBroadcast().then(() => snapshot);
7056
6706
  }
7057
- function buildNetworkSnapshot$n(luvio, config, options) {
7058
- const resourceParams = createResourceParams$n(config);
7059
- const request = createResourceRequest$n(resourceParams);
6707
+ function buildNetworkSnapshot$o(luvio, config, options) {
6708
+ const resourceParams = createResourceParams$o(config);
6709
+ const request = createResourceRequest$o(resourceParams);
7060
6710
  return luvio.dispatchResourceRequest(request, options)
7061
6711
  .then((response) => {
7062
- return luvio.handleSuccessResponse(() => onFetchResponseSuccess$h(luvio, config, resourceParams, response), () => {
6712
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess$g(luvio, config, resourceParams, response), () => {
7063
6713
  const cache = new StoreKeyMap();
7064
- getResponseCacheKeys$n(cache, luvio, resourceParams, response.body);
6714
+ getResponseCacheKeys$o(cache, luvio, resourceParams, response.body);
7065
6715
  return cache;
7066
6716
  });
7067
6717
  }, (response) => {
@@ -7069,23 +6719,23 @@ function buildNetworkSnapshot$n(luvio, config, options) {
7069
6719
  });
7070
6720
  }
7071
6721
  function buildNetworkSnapshotCachePolicy$f(context, coercedAdapterRequestContext) {
7072
- return buildNetworkSnapshotCachePolicy$p(context, coercedAdapterRequestContext, buildNetworkSnapshot$n, undefined, false);
6722
+ return buildNetworkSnapshotCachePolicy$p(context, coercedAdapterRequestContext, buildNetworkSnapshot$o, undefined, false);
7073
6723
  }
7074
6724
  function buildCachedSnapshotCachePolicy$f(context, storeLookup) {
7075
6725
  const { luvio, config } = context;
7076
6726
  const selector = {
7077
- recordId: keyBuilder$z(luvio, config),
6727
+ recordId: keyBuilder$A(luvio, config),
7078
6728
  node: adapterFragment$f(luvio, config),
7079
6729
  variables: {},
7080
6730
  };
7081
6731
  const cacheSnapshot = storeLookup(selector, {
7082
6732
  config,
7083
- resolve: () => buildNetworkSnapshot$n(luvio, config, snapshotRefreshOptions)
6733
+ resolve: () => buildNetworkSnapshot$o(luvio, config, snapshotRefreshOptions)
7084
6734
  });
7085
6735
  return cacheSnapshot;
7086
6736
  }
7087
- const getManagedContentAdapterFactory = (luvio) => function CMSAuthoring__getManagedContent(untrustedConfig, requestContext) {
7088
- const config = validateAdapterConfig$n(untrustedConfig, getManagedContent_ConfigPropertyNames);
6737
+ const getManagedContentVariantRenditionAdapterFactory = (luvio) => function CMSAuthoring__getManagedContentVariantRendition(untrustedConfig, requestContext) {
6738
+ const config = validateAdapterConfig$o(untrustedConfig, getManagedContentVariantRendition_ConfigPropertyNames);
7089
6739
  // Invalid or incomplete config
7090
6740
  if (config === null) {
7091
6741
  return null;
@@ -7094,115 +6744,419 @@ const getManagedContentAdapterFactory = (luvio) => function CMSAuthoring__getMan
7094
6744
  buildCachedSnapshotCachePolicy$f, buildNetworkSnapshotCachePolicy$f);
7095
6745
  };
7096
6746
 
7097
- const TTL$f = 1000;
7098
- const VERSION$g = "98edee4f058ced93570a7b0ce2293672";
7099
- function validate$u(obj, path = 'ManagedContentRenditionRepresentation') {
6747
+ function validate$x(obj, path = 'ManagedContentTaxonomyPathFragmentRepresentation') {
6748
+ const v_error = (() => {
6749
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
6750
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
6751
+ }
6752
+ const obj_id = obj.id;
6753
+ const path_id = path + '.id';
6754
+ if (typeof obj_id !== 'string') {
6755
+ return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
6756
+ }
6757
+ const obj_label = obj.label;
6758
+ const path_label = path + '.label';
6759
+ if (typeof obj_label !== 'string') {
6760
+ return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
6761
+ }
6762
+ })();
6763
+ return v_error === undefined ? null : v_error;
6764
+ }
6765
+
6766
+ const TTL$g = 100;
6767
+ const VERSION$i = "861a01549e9c8877564cf9109fe8af72";
6768
+ function validate$w(obj, path = 'ManagedContentTaxonomyPathRepresentation') {
6769
+ const v_error = (() => {
6770
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
6771
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
6772
+ }
6773
+ const obj_label = obj.label;
6774
+ const path_label = path + '.label';
6775
+ if (typeof obj_label !== 'string') {
6776
+ return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
6777
+ }
6778
+ const obj_taxonomyFragment = obj.taxonomyFragment;
6779
+ const path_taxonomyFragment = path + '.taxonomyFragment';
6780
+ const referencepath_taxonomyFragmentValidationError = validate$x(obj_taxonomyFragment, path_taxonomyFragment);
6781
+ if (referencepath_taxonomyFragmentValidationError !== null) {
6782
+ let message = 'Object doesn\'t match ManagedContentTaxonomyPathFragmentRepresentation (at "' + path_taxonomyFragment + '")\n';
6783
+ message += referencepath_taxonomyFragmentValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
6784
+ return new TypeError(message);
6785
+ }
6786
+ const obj_termFragments = obj.termFragments;
6787
+ const path_termFragments = path + '.termFragments';
6788
+ if (!ArrayIsArray(obj_termFragments)) {
6789
+ return new TypeError('Expected "array" but received "' + typeof obj_termFragments + '" (at "' + path_termFragments + '")');
6790
+ }
6791
+ for (let i = 0; i < obj_termFragments.length; i++) {
6792
+ const obj_termFragments_item = obj_termFragments[i];
6793
+ const path_termFragments_item = path_termFragments + '[' + i + ']';
6794
+ const referencepath_termFragments_itemValidationError = validate$x(obj_termFragments_item, path_termFragments_item);
6795
+ if (referencepath_termFragments_itemValidationError !== null) {
6796
+ let message = 'Object doesn\'t match ManagedContentTaxonomyPathFragmentRepresentation (at "' + path_termFragments_item + '")\n';
6797
+ message += referencepath_termFragments_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
6798
+ return new TypeError(message);
6799
+ }
6800
+ }
6801
+ })();
6802
+ return v_error === undefined ? null : v_error;
6803
+ }
6804
+ const RepresentationType$h = 'ManagedContentTaxonomyPathRepresentation';
6805
+ function normalize$h(input, existing, path, luvio, store, timestamp) {
6806
+ return input;
6807
+ }
6808
+ const select$G = function ManagedContentTaxonomyPathRepresentationSelect() {
6809
+ return {
6810
+ kind: 'Fragment',
6811
+ version: VERSION$i,
6812
+ private: [],
6813
+ opaque: true
6814
+ };
6815
+ };
6816
+ function equals$i(existing, incoming) {
6817
+ if (JSONStringify(incoming) !== JSONStringify(existing)) {
6818
+ return false;
6819
+ }
6820
+ return true;
6821
+ }
6822
+ const ingest$h = function ManagedContentTaxonomyPathRepresentationIngest(input, path, luvio, store, timestamp) {
6823
+ if (process.env.NODE_ENV !== 'production') {
6824
+ const validateError = validate$w(input);
6825
+ if (validateError !== null) {
6826
+ throw validateError;
6827
+ }
6828
+ }
6829
+ const key = path.fullPath;
6830
+ const ttlToUse = TTL$g;
6831
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$h, "CMSAuthoring", VERSION$i, RepresentationType$h, equals$i);
6832
+ return createLink(key);
6833
+ };
6834
+ function getTypeCacheKeys$h(rootKeySet, luvio, input, fullPathFactory) {
6835
+ // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
6836
+ const rootKey = fullPathFactory();
6837
+ rootKeySet.set(rootKey, {
6838
+ namespace: keyPrefix,
6839
+ representationName: RepresentationType$h,
6840
+ mergeable: false
6841
+ });
6842
+ }
6843
+
6844
+ const VERSION$h = "05c4867cd20f87930367aa80db4baab5";
6845
+ function validate$v(obj, path = 'ManagedContentTaxonomyTermRepresentation') {
6846
+ const v_error = (() => {
6847
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
6848
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
6849
+ }
6850
+ const obj_id = obj.id;
6851
+ const path_id = path + '.id';
6852
+ if (typeof obj_id !== 'string') {
6853
+ return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
6854
+ }
6855
+ const obj_label = obj.label;
6856
+ const path_label = path + '.label';
6857
+ if (typeof obj_label !== 'string') {
6858
+ return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
6859
+ }
6860
+ const obj_pathsFromRoot = obj.pathsFromRoot;
6861
+ const path_pathsFromRoot = path + '.pathsFromRoot';
6862
+ if (!ArrayIsArray(obj_pathsFromRoot)) {
6863
+ return new TypeError('Expected "array" but received "' + typeof obj_pathsFromRoot + '" (at "' + path_pathsFromRoot + '")');
6864
+ }
6865
+ for (let i = 0; i < obj_pathsFromRoot.length; i++) {
6866
+ const obj_pathsFromRoot_item = obj_pathsFromRoot[i];
6867
+ const path_pathsFromRoot_item = path_pathsFromRoot + '[' + i + ']';
6868
+ if (typeof obj_pathsFromRoot_item !== 'object') {
6869
+ return new TypeError('Expected "object" but received "' + typeof obj_pathsFromRoot_item + '" (at "' + path_pathsFromRoot_item + '")');
6870
+ }
6871
+ }
6872
+ })();
6873
+ return v_error === undefined ? null : v_error;
6874
+ }
6875
+ const RepresentationType$g = 'ManagedContentTaxonomyTermRepresentation';
6876
+ function normalize$g(input, existing, path, luvio, store, timestamp) {
6877
+ const input_pathsFromRoot = input.pathsFromRoot;
6878
+ const input_pathsFromRoot_id = path.fullPath + '__pathsFromRoot';
6879
+ for (let i = 0; i < input_pathsFromRoot.length; i++) {
6880
+ const input_pathsFromRoot_item = input_pathsFromRoot[i];
6881
+ let input_pathsFromRoot_item_id = input_pathsFromRoot_id + '__' + i;
6882
+ input_pathsFromRoot[i] = ingest$h(input_pathsFromRoot_item, {
6883
+ fullPath: input_pathsFromRoot_item_id,
6884
+ propertyName: i,
6885
+ parent: {
6886
+ data: input,
6887
+ key: path.fullPath,
6888
+ existing: existing,
6889
+ },
6890
+ ttl: path.ttl
6891
+ }, luvio, store, timestamp);
6892
+ }
6893
+ return input;
6894
+ }
6895
+ const select$F = function ManagedContentTaxonomyTermRepresentationSelect() {
6896
+ return {
6897
+ kind: 'Fragment',
6898
+ version: VERSION$h,
6899
+ private: [],
6900
+ selections: [
6901
+ {
6902
+ name: 'id',
6903
+ kind: 'Scalar'
6904
+ },
6905
+ {
6906
+ name: 'label',
6907
+ kind: 'Scalar'
6908
+ },
6909
+ {
6910
+ name: 'pathsFromRoot',
6911
+ kind: 'Link',
6912
+ plural: true,
6913
+ fragment: select$G()
6914
+ }
6915
+ ]
6916
+ };
6917
+ };
6918
+ function equals$h(existing, incoming) {
6919
+ const existing_id = existing.id;
6920
+ const incoming_id = incoming.id;
6921
+ if (!(existing_id === incoming_id)) {
6922
+ return false;
6923
+ }
6924
+ const existing_label = existing.label;
6925
+ const incoming_label = incoming.label;
6926
+ if (!(existing_label === incoming_label)) {
6927
+ return false;
6928
+ }
6929
+ const existing_pathsFromRoot = existing.pathsFromRoot;
6930
+ const incoming_pathsFromRoot = incoming.pathsFromRoot;
6931
+ const equals_pathsFromRoot_items = equalsArray(existing_pathsFromRoot, incoming_pathsFromRoot, (existing_pathsFromRoot_item, incoming_pathsFromRoot_item) => {
6932
+ if (!(existing_pathsFromRoot_item.__ref === incoming_pathsFromRoot_item.__ref)) {
6933
+ return false;
6934
+ }
6935
+ });
6936
+ if (equals_pathsFromRoot_items === false) {
6937
+ return false;
6938
+ }
6939
+ return true;
6940
+ }
6941
+ const ingest$g = function ManagedContentTaxonomyTermRepresentationIngest(input, path, luvio, store, timestamp) {
6942
+ if (process.env.NODE_ENV !== 'production') {
6943
+ const validateError = validate$v(input);
6944
+ if (validateError !== null) {
6945
+ throw validateError;
6946
+ }
6947
+ }
6948
+ const key = path.fullPath;
6949
+ const ttlToUse = path.ttl;
6950
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$g, "CMSAuthoring", VERSION$h, RepresentationType$g, equals$h);
6951
+ return createLink(key);
6952
+ };
6953
+ function getTypeCacheKeys$g(rootKeySet, luvio, input, fullPathFactory) {
6954
+ // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
6955
+ const rootKey = fullPathFactory();
6956
+ rootKeySet.set(rootKey, {
6957
+ namespace: keyPrefix,
6958
+ representationName: RepresentationType$g,
6959
+ mergeable: false
6960
+ });
6961
+ const input_pathsFromRoot_length = input.pathsFromRoot.length;
6962
+ for (let i = 0; i < input_pathsFromRoot_length; i++) {
6963
+ getTypeCacheKeys$h(rootKeySet, luvio, input.pathsFromRoot[i], () => '');
6964
+ }
6965
+ }
6966
+
6967
+ const TTL$f = 100;
6968
+ const VERSION$g = "8ab64b2a71caa7cbdb25a65e8081196c";
6969
+ function validate$u(obj, path = 'ManagedContentTaxonomyTermCollectionRepresentation') {
7100
6970
  const v_error = (() => {
7101
6971
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
7102
6972
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
7103
6973
  }
7104
6974
  const obj_contentKey = obj.contentKey;
7105
6975
  const path_contentKey = path + '.contentKey';
7106
- if (typeof obj_contentKey !== 'string') {
7107
- return new TypeError('Expected "string" but received "' + typeof obj_contentKey + '" (at "' + path_contentKey + '")');
6976
+ let obj_contentKey_union0 = null;
6977
+ const obj_contentKey_union0_error = (() => {
6978
+ if (typeof obj_contentKey !== 'string') {
6979
+ return new TypeError('Expected "string" but received "' + typeof obj_contentKey + '" (at "' + path_contentKey + '")');
6980
+ }
6981
+ })();
6982
+ if (obj_contentKey_union0_error != null) {
6983
+ obj_contentKey_union0 = obj_contentKey_union0_error.message;
7108
6984
  }
7109
- const obj_language = obj.language;
7110
- const path_language = path + '.language';
7111
- if (typeof obj_language !== 'string') {
7112
- return new TypeError('Expected "string" but received "' + typeof obj_language + '" (at "' + path_language + '")');
6985
+ let obj_contentKey_union1 = null;
6986
+ const obj_contentKey_union1_error = (() => {
6987
+ if (obj_contentKey !== null) {
6988
+ return new TypeError('Expected "null" but received "' + typeof obj_contentKey + '" (at "' + path_contentKey + '")');
6989
+ }
6990
+ })();
6991
+ if (obj_contentKey_union1_error != null) {
6992
+ obj_contentKey_union1 = obj_contentKey_union1_error.message;
6993
+ }
6994
+ if (obj_contentKey_union0 && obj_contentKey_union1) {
6995
+ let message = 'Object doesn\'t match union (at "' + path_contentKey + '")';
6996
+ message += '\n' + obj_contentKey_union0.split('\n').map((line) => '\t' + line).join('\n');
6997
+ message += '\n' + obj_contentKey_union1.split('\n').map((line) => '\t' + line).join('\n');
6998
+ return new TypeError(message);
7113
6999
  }
7114
7000
  const obj_managedContentId = obj.managedContentId;
7115
7001
  const path_managedContentId = path + '.managedContentId';
7116
- if (typeof obj_managedContentId !== 'string') {
7117
- return new TypeError('Expected "string" but received "' + typeof obj_managedContentId + '" (at "' + path_managedContentId + '")');
7118
- }
7119
- const obj_renditionBody = obj.renditionBody;
7120
- const path_renditionBody = path + '.renditionBody';
7121
- if (typeof obj_renditionBody !== 'object' || ArrayIsArray(obj_renditionBody) || obj_renditionBody === null) {
7122
- return new TypeError('Expected "object" but received "' + typeof obj_renditionBody + '" (at "' + path_renditionBody + '")');
7002
+ let obj_managedContentId_union0 = null;
7003
+ const obj_managedContentId_union0_error = (() => {
7004
+ if (typeof obj_managedContentId !== 'string') {
7005
+ return new TypeError('Expected "string" but received "' + typeof obj_managedContentId + '" (at "' + path_managedContentId + '")');
7006
+ }
7007
+ })();
7008
+ if (obj_managedContentId_union0_error != null) {
7009
+ obj_managedContentId_union0 = obj_managedContentId_union0_error.message;
7123
7010
  }
7124
- const obj_renditionBody_keys = ObjectKeys(obj_renditionBody);
7125
- for (let i = 0; i < obj_renditionBody_keys.length; i++) {
7126
- const key = obj_renditionBody_keys[i];
7127
- const obj_renditionBody_prop = obj_renditionBody[key];
7128
- const path_renditionBody_prop = path_renditionBody + '["' + key + '"]';
7129
- if (obj_renditionBody_prop === undefined) {
7130
- return new TypeError('Expected "defined" but received "' + typeof obj_renditionBody_prop + '" (at "' + path_renditionBody_prop + '")');
7011
+ let obj_managedContentId_union1 = null;
7012
+ const obj_managedContentId_union1_error = (() => {
7013
+ if (obj_managedContentId !== null) {
7014
+ return new TypeError('Expected "null" but received "' + typeof obj_managedContentId + '" (at "' + path_managedContentId + '")');
7131
7015
  }
7016
+ })();
7017
+ if (obj_managedContentId_union1_error != null) {
7018
+ obj_managedContentId_union1 = obj_managedContentId_union1_error.message;
7132
7019
  }
7133
- const obj_renditionSchema = obj.renditionSchema;
7134
- const path_renditionSchema = path + '.renditionSchema';
7135
- if (typeof obj_renditionSchema !== 'object' || ArrayIsArray(obj_renditionSchema) || obj_renditionSchema === null) {
7136
- return new TypeError('Expected "object" but received "' + typeof obj_renditionSchema + '" (at "' + path_renditionSchema + '")');
7020
+ if (obj_managedContentId_union0 && obj_managedContentId_union1) {
7021
+ let message = 'Object doesn\'t match union (at "' + path_managedContentId + '")';
7022
+ message += '\n' + obj_managedContentId_union0.split('\n').map((line) => '\t' + line).join('\n');
7023
+ message += '\n' + obj_managedContentId_union1.split('\n').map((line) => '\t' + line).join('\n');
7024
+ return new TypeError(message);
7137
7025
  }
7138
- const obj_renditionSchema_keys = ObjectKeys(obj_renditionSchema);
7139
- for (let i = 0; i < obj_renditionSchema_keys.length; i++) {
7140
- const key = obj_renditionSchema_keys[i];
7141
- const obj_renditionSchema_prop = obj_renditionSchema[key];
7142
- const path_renditionSchema_prop = path_renditionSchema + '["' + key + '"]';
7143
- if (obj_renditionSchema_prop === undefined) {
7144
- return new TypeError('Expected "defined" but received "' + typeof obj_renditionSchema_prop + '" (at "' + path_renditionSchema_prop + '")');
7026
+ const obj_taxonomyTerms = obj.taxonomyTerms;
7027
+ const path_taxonomyTerms = path + '.taxonomyTerms';
7028
+ if (!ArrayIsArray(obj_taxonomyTerms)) {
7029
+ return new TypeError('Expected "array" but received "' + typeof obj_taxonomyTerms + '" (at "' + path_taxonomyTerms + '")');
7030
+ }
7031
+ for (let i = 0; i < obj_taxonomyTerms.length; i++) {
7032
+ const obj_taxonomyTerms_item = obj_taxonomyTerms[i];
7033
+ const path_taxonomyTerms_item = path_taxonomyTerms + '[' + i + ']';
7034
+ if (typeof obj_taxonomyTerms_item !== 'object') {
7035
+ return new TypeError('Expected "object" but received "' + typeof obj_taxonomyTerms_item + '" (at "' + path_taxonomyTerms_item + '")');
7145
7036
  }
7146
7037
  }
7147
7038
  })();
7148
7039
  return v_error === undefined ? null : v_error;
7149
7040
  }
7150
- const RepresentationType$f = 'ManagedContentRenditionRepresentation';
7041
+ const RepresentationType$f = 'ManagedContentTaxonomyTermCollectionRepresentation';
7042
+ function keyBuilder$z(luvio, config) {
7043
+ return keyPrefix + '::' + RepresentationType$f + ':' + (config.id === null ? '' : config.id);
7044
+ }
7045
+ function keyBuilderFromType$5(luvio, object) {
7046
+ const keyParams = {
7047
+ id: object.managedContentId
7048
+ };
7049
+ return keyBuilder$z(luvio, keyParams);
7050
+ }
7151
7051
  function normalize$f(input, existing, path, luvio, store, timestamp) {
7052
+ const input_taxonomyTerms = input.taxonomyTerms;
7053
+ const input_taxonomyTerms_id = path.fullPath + '__taxonomyTerms';
7054
+ for (let i = 0; i < input_taxonomyTerms.length; i++) {
7055
+ const input_taxonomyTerms_item = input_taxonomyTerms[i];
7056
+ let input_taxonomyTerms_item_id = input_taxonomyTerms_id + '__' + i;
7057
+ input_taxonomyTerms[i] = ingest$g(input_taxonomyTerms_item, {
7058
+ fullPath: input_taxonomyTerms_item_id,
7059
+ propertyName: i,
7060
+ parent: {
7061
+ data: input,
7062
+ key: path.fullPath,
7063
+ existing: existing,
7064
+ },
7065
+ ttl: path.ttl
7066
+ }, luvio, store, timestamp);
7067
+ }
7152
7068
  return input;
7153
7069
  }
7154
- const select$D = function ManagedContentRenditionRepresentationSelect() {
7070
+ const select$E = function ManagedContentTaxonomyTermCollectionRepresentationSelect() {
7155
7071
  return {
7156
7072
  kind: 'Fragment',
7157
7073
  version: VERSION$g,
7158
7074
  private: [],
7159
- opaque: true
7075
+ selections: [
7076
+ {
7077
+ name: 'contentKey',
7078
+ kind: 'Scalar'
7079
+ },
7080
+ {
7081
+ name: 'managedContentId',
7082
+ kind: 'Scalar'
7083
+ },
7084
+ {
7085
+ name: 'taxonomyTerms',
7086
+ kind: 'Link',
7087
+ plural: true,
7088
+ fragment: select$F()
7089
+ }
7090
+ ]
7160
7091
  };
7161
7092
  };
7162
7093
  function equals$g(existing, incoming) {
7163
- if (JSONStringify(incoming) !== JSONStringify(existing)) {
7094
+ const existing_contentKey = existing.contentKey;
7095
+ const incoming_contentKey = incoming.contentKey;
7096
+ if (!(existing_contentKey === incoming_contentKey)) {
7097
+ return false;
7098
+ }
7099
+ const existing_managedContentId = existing.managedContentId;
7100
+ const incoming_managedContentId = incoming.managedContentId;
7101
+ if (!(existing_managedContentId === incoming_managedContentId)) {
7102
+ return false;
7103
+ }
7104
+ const existing_taxonomyTerms = existing.taxonomyTerms;
7105
+ const incoming_taxonomyTerms = incoming.taxonomyTerms;
7106
+ const equals_taxonomyTerms_items = equalsArray(existing_taxonomyTerms, incoming_taxonomyTerms, (existing_taxonomyTerms_item, incoming_taxonomyTerms_item) => {
7107
+ if (!(existing_taxonomyTerms_item.__ref === incoming_taxonomyTerms_item.__ref)) {
7108
+ return false;
7109
+ }
7110
+ });
7111
+ if (equals_taxonomyTerms_items === false) {
7164
7112
  return false;
7165
7113
  }
7166
7114
  return true;
7167
7115
  }
7168
- const ingest$f = function ManagedContentRenditionRepresentationIngest(input, path, luvio, store, timestamp) {
7116
+ const ingest$f = function ManagedContentTaxonomyTermCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
7169
7117
  if (process.env.NODE_ENV !== 'production') {
7170
7118
  const validateError = validate$u(input);
7171
7119
  if (validateError !== null) {
7172
7120
  throw validateError;
7173
7121
  }
7174
7122
  }
7175
- const key = path.fullPath;
7123
+ const key = keyBuilderFromType$5(luvio, input);
7176
7124
  const ttlToUse = TTL$f;
7177
7125
  ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$f, "CMSAuthoring", VERSION$g, RepresentationType$f, equals$g);
7178
7126
  return createLink(key);
7179
7127
  };
7180
7128
  function getTypeCacheKeys$f(rootKeySet, luvio, input, fullPathFactory) {
7181
7129
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
7182
- const rootKey = fullPathFactory();
7130
+ const rootKey = keyBuilderFromType$5(luvio, input);
7183
7131
  rootKeySet.set(rootKey, {
7184
7132
  namespace: keyPrefix,
7185
7133
  representationName: RepresentationType$f,
7186
7134
  mergeable: false
7187
7135
  });
7136
+ const input_taxonomyTerms_length = input.taxonomyTerms.length;
7137
+ for (let i = 0; i < input_taxonomyTerms_length; i++) {
7138
+ getTypeCacheKeys$g(rootKeySet, luvio, input.taxonomyTerms[i], () => '');
7139
+ }
7188
7140
  }
7189
7141
 
7190
- function select$C(luvio, params) {
7191
- return select$D();
7142
+ function select$D(luvio, params) {
7143
+ return select$E();
7192
7144
  }
7193
7145
  function keyBuilder$y(luvio, params) {
7194
- return keyPrefix + '::ManagedContentRenditionRepresentation:(' + 'channelIdOrApiName:' + params.queryParams.channelIdOrApiName + ',' + 'language:' + params.queryParams.language + ',' + 'version:' + params.queryParams.version + ',' + 'contentKeyOrId:' + params.urlParams.contentKeyOrId + ',' + 'renditionType:' + params.urlParams.renditionType + ')';
7146
+ return keyBuilder$z(luvio, {
7147
+ id: params.urlParams.contentKeyOrId
7148
+ });
7195
7149
  }
7196
- function getResponseCacheKeys$m(storeKeyMap, luvio, resourceParams, response) {
7197
- getTypeCacheKeys$f(storeKeyMap, luvio, response, () => keyBuilder$y(luvio, resourceParams));
7150
+ function getResponseCacheKeys$n(storeKeyMap, luvio, resourceParams, response) {
7151
+ getTypeCacheKeys$f(storeKeyMap, luvio, response);
7198
7152
  }
7199
- function ingestSuccess$m(luvio, resourceParams, response, snapshotRefresh) {
7153
+ function ingestSuccess$n(luvio, resourceParams, response, snapshotRefresh) {
7200
7154
  const { body } = response;
7201
7155
  const key = keyBuilder$y(luvio, resourceParams);
7202
7156
  luvio.storeIngest(key, ingest$f, body);
7203
7157
  const snapshot = luvio.storeLookup({
7204
7158
  recordId: key,
7205
- node: select$C(),
7159
+ node: select$D(),
7206
7160
  variables: {},
7207
7161
  }, snapshotRefresh);
7208
7162
  if (process.env.NODE_ENV !== 'production') {
@@ -7225,78 +7179,74 @@ function ingestError$e(luvio, params, error, snapshotRefresh) {
7225
7179
  luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
7226
7180
  return errorSnapshot;
7227
7181
  }
7228
- function createResourceRequest$m(config) {
7182
+ function createResourceRequest$n(config) {
7229
7183
  const headers = {};
7230
7184
  return {
7231
7185
  baseUri: '/services/data/v61.0',
7232
- basePath: '/connect/cms/contents/' + config.urlParams.contentKeyOrId + '/renditions/' + config.urlParams.renditionType + '',
7186
+ basePath: '/connect/cms/contents/' + config.urlParams.contentKeyOrId + '/taxonomy-terms',
7233
7187
  method: 'get',
7234
7188
  body: null,
7235
7189
  urlParams: config.urlParams,
7236
- queryParams: config.queryParams,
7190
+ queryParams: {},
7237
7191
  headers,
7238
7192
  priority: 'normal',
7239
7193
  };
7240
7194
  }
7241
7195
 
7242
- const adapterName$m = 'getManagedContentVariantRendition';
7243
- const getManagedContentVariantRendition_ConfigPropertyMetadata = [
7196
+ const adapterName$n = 'getManagedContentTaxonomyTerms';
7197
+ const getManagedContentTaxonomyTerms_ConfigPropertyMetadata = [
7244
7198
  generateParamConfigMetadata('contentKeyOrId', true, 0 /* UrlParameter */, 0 /* String */),
7245
- generateParamConfigMetadata('renditionType', true, 0 /* UrlParameter */, 0 /* String */),
7246
- generateParamConfigMetadata('channelIdOrApiName', false, 1 /* QueryParameter */, 0 /* String */),
7247
- generateParamConfigMetadata('language', false, 1 /* QueryParameter */, 0 /* String */),
7248
- generateParamConfigMetadata('version', false, 1 /* QueryParameter */, 0 /* String */),
7249
7199
  ];
7250
- const getManagedContentVariantRendition_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$m, getManagedContentVariantRendition_ConfigPropertyMetadata);
7251
- const createResourceParams$m = /*#__PURE__*/ createResourceParams$I(getManagedContentVariantRendition_ConfigPropertyMetadata);
7200
+ const getManagedContentTaxonomyTerms_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$n, getManagedContentTaxonomyTerms_ConfigPropertyMetadata);
7201
+ const createResourceParams$n = /*#__PURE__*/ createResourceParams$I(getManagedContentTaxonomyTerms_ConfigPropertyMetadata);
7252
7202
  function keyBuilder$x(luvio, config) {
7253
- const resourceParams = createResourceParams$m(config);
7203
+ const resourceParams = createResourceParams$n(config);
7254
7204
  return keyBuilder$y(luvio, resourceParams);
7255
7205
  }
7256
- function typeCheckConfig$m(untrustedConfig) {
7206
+ function typeCheckConfig$n(untrustedConfig) {
7257
7207
  const config = {};
7258
- typeCheckConfig$I(untrustedConfig, config, getManagedContentVariantRendition_ConfigPropertyMetadata);
7208
+ typeCheckConfig$I(untrustedConfig, config, getManagedContentTaxonomyTerms_ConfigPropertyMetadata);
7259
7209
  return config;
7260
7210
  }
7261
- function validateAdapterConfig$m(untrustedConfig, configPropertyNames) {
7211
+ function validateAdapterConfig$n(untrustedConfig, configPropertyNames) {
7262
7212
  if (!untrustedIsObject(untrustedConfig)) {
7263
7213
  return null;
7264
7214
  }
7265
7215
  if (process.env.NODE_ENV !== 'production') {
7266
7216
  validateConfig(untrustedConfig, configPropertyNames);
7267
7217
  }
7268
- const config = typeCheckConfig$m(untrustedConfig);
7218
+ const config = typeCheckConfig$n(untrustedConfig);
7269
7219
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
7270
7220
  return null;
7271
7221
  }
7272
7222
  return config;
7273
7223
  }
7274
7224
  function adapterFragment$e(luvio, config) {
7275
- createResourceParams$m(config);
7276
- return select$C();
7225
+ createResourceParams$n(config);
7226
+ return select$D();
7277
7227
  }
7278
7228
  function onFetchResponseSuccess$f(luvio, config, resourceParams, response) {
7279
- const snapshot = ingestSuccess$m(luvio, resourceParams, response, {
7229
+ const snapshot = ingestSuccess$n(luvio, resourceParams, response, {
7280
7230
  config,
7281
- resolve: () => buildNetworkSnapshot$m(luvio, config, snapshotRefreshOptions)
7231
+ resolve: () => buildNetworkSnapshot$n(luvio, config, snapshotRefreshOptions)
7282
7232
  });
7283
7233
  return luvio.storeBroadcast().then(() => snapshot);
7284
7234
  }
7285
7235
  function onFetchResponseError$e(luvio, config, resourceParams, response) {
7286
7236
  const snapshot = ingestError$e(luvio, resourceParams, response, {
7287
7237
  config,
7288
- resolve: () => buildNetworkSnapshot$m(luvio, config, snapshotRefreshOptions)
7238
+ resolve: () => buildNetworkSnapshot$n(luvio, config, snapshotRefreshOptions)
7289
7239
  });
7290
7240
  return luvio.storeBroadcast().then(() => snapshot);
7291
7241
  }
7292
- function buildNetworkSnapshot$m(luvio, config, options) {
7293
- const resourceParams = createResourceParams$m(config);
7294
- const request = createResourceRequest$m(resourceParams);
7242
+ function buildNetworkSnapshot$n(luvio, config, options) {
7243
+ const resourceParams = createResourceParams$n(config);
7244
+ const request = createResourceRequest$n(resourceParams);
7295
7245
  return luvio.dispatchResourceRequest(request, options)
7296
7246
  .then((response) => {
7297
7247
  return luvio.handleSuccessResponse(() => onFetchResponseSuccess$f(luvio, config, resourceParams, response), () => {
7298
7248
  const cache = new StoreKeyMap();
7299
- getResponseCacheKeys$m(cache, luvio, resourceParams, response.body);
7249
+ getResponseCacheKeys$n(cache, luvio, resourceParams, response.body);
7300
7250
  return cache;
7301
7251
  });
7302
7252
  }, (response) => {
@@ -7304,7 +7254,7 @@ function buildNetworkSnapshot$m(luvio, config, options) {
7304
7254
  });
7305
7255
  }
7306
7256
  function buildNetworkSnapshotCachePolicy$e(context, coercedAdapterRequestContext) {
7307
- return buildNetworkSnapshotCachePolicy$p(context, coercedAdapterRequestContext, buildNetworkSnapshot$m, undefined, false);
7257
+ return buildNetworkSnapshotCachePolicy$p(context, coercedAdapterRequestContext, buildNetworkSnapshot$n, undefined, false);
7308
7258
  }
7309
7259
  function buildCachedSnapshotCachePolicy$e(context, storeLookup) {
7310
7260
  const { luvio, config } = context;
@@ -7315,12 +7265,12 @@ function buildCachedSnapshotCachePolicy$e(context, storeLookup) {
7315
7265
  };
7316
7266
  const cacheSnapshot = storeLookup(selector, {
7317
7267
  config,
7318
- resolve: () => buildNetworkSnapshot$m(luvio, config, snapshotRefreshOptions)
7268
+ resolve: () => buildNetworkSnapshot$n(luvio, config, snapshotRefreshOptions)
7319
7269
  });
7320
7270
  return cacheSnapshot;
7321
7271
  }
7322
- const getManagedContentVariantRenditionAdapterFactory = (luvio) => function CMSAuthoring__getManagedContentVariantRendition(untrustedConfig, requestContext) {
7323
- const config = validateAdapterConfig$m(untrustedConfig, getManagedContentVariantRendition_ConfigPropertyNames);
7272
+ const getManagedContentTaxonomyTermsAdapterFactory = (luvio) => function CMSAuthoring__getManagedContentTaxonomyTerms(untrustedConfig, requestContext) {
7273
+ const config = validateAdapterConfig$n(untrustedConfig, getManagedContentTaxonomyTerms_ConfigPropertyNames);
7324
7274
  // Invalid or incomplete config
7325
7275
  if (config === null) {
7326
7276
  return null;
@@ -7329,6 +7279,99 @@ const getManagedContentVariantRenditionAdapterFactory = (luvio) => function CMSA
7329
7279
  buildCachedSnapshotCachePolicy$e, buildNetworkSnapshotCachePolicy$e);
7330
7280
  };
7331
7281
 
7282
+ function select$C(luvio, params) {
7283
+ return select$E();
7284
+ }
7285
+ function getResponseCacheKeys$m(storeKeyMap, luvio, resourceParams, response) {
7286
+ getTypeCacheKeys$f(storeKeyMap, luvio, response);
7287
+ }
7288
+ function ingestSuccess$m(luvio, resourceParams, response) {
7289
+ const { body } = response;
7290
+ const key = keyBuilderFromType$5(luvio, body);
7291
+ luvio.storeIngest(key, ingest$f, body);
7292
+ const snapshot = luvio.storeLookup({
7293
+ recordId: key,
7294
+ node: select$C(),
7295
+ variables: {},
7296
+ });
7297
+ if (process.env.NODE_ENV !== 'production') {
7298
+ if (snapshot.state !== 'Fulfilled') {
7299
+ throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
7300
+ }
7301
+ }
7302
+ deepFreeze(snapshot.data);
7303
+ return snapshot;
7304
+ }
7305
+ function createResourceRequest$m(config) {
7306
+ const headers = {};
7307
+ return {
7308
+ baseUri: '/services/data/v61.0',
7309
+ basePath: '/connect/cms/contents/' + config.urlParams.contentKeyOrId + '/taxonomy-terms',
7310
+ method: 'patch',
7311
+ body: config.body,
7312
+ urlParams: config.urlParams,
7313
+ queryParams: config.queryParams,
7314
+ headers,
7315
+ priority: 'normal',
7316
+ };
7317
+ }
7318
+
7319
+ const adapterName$m = 'updateManagedContentTaxonomyTerms';
7320
+ const updateManagedContentTaxonomyTerms_ConfigPropertyMetadata = [
7321
+ generateParamConfigMetadata('contentKeyOrId', true, 0 /* UrlParameter */, 0 /* String */),
7322
+ generateParamConfigMetadata('publish', true, 1 /* QueryParameter */, 1 /* Boolean */),
7323
+ generateParamConfigMetadata('termsToAdd', true, 2 /* Body */, 0 /* String */, true),
7324
+ generateParamConfigMetadata('termsToRemove', true, 2 /* Body */, 0 /* String */, true),
7325
+ ];
7326
+ const updateManagedContentTaxonomyTerms_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$m, updateManagedContentTaxonomyTerms_ConfigPropertyMetadata);
7327
+ const createResourceParams$m = /*#__PURE__*/ createResourceParams$I(updateManagedContentTaxonomyTerms_ConfigPropertyMetadata);
7328
+ function typeCheckConfig$m(untrustedConfig) {
7329
+ const config = {};
7330
+ typeCheckConfig$I(untrustedConfig, config, updateManagedContentTaxonomyTerms_ConfigPropertyMetadata);
7331
+ return config;
7332
+ }
7333
+ function validateAdapterConfig$m(untrustedConfig, configPropertyNames) {
7334
+ if (!untrustedIsObject(untrustedConfig)) {
7335
+ return null;
7336
+ }
7337
+ if (process.env.NODE_ENV !== 'production') {
7338
+ validateConfig(untrustedConfig, configPropertyNames);
7339
+ }
7340
+ const config = typeCheckConfig$m(untrustedConfig);
7341
+ if (!areRequiredParametersPresent(config, configPropertyNames)) {
7342
+ return null;
7343
+ }
7344
+ return config;
7345
+ }
7346
+ function buildNetworkSnapshot$m(luvio, config, options) {
7347
+ const resourceParams = createResourceParams$m(config);
7348
+ const request = createResourceRequest$m(resourceParams);
7349
+ return luvio.dispatchResourceRequest(request, options)
7350
+ .then((response) => {
7351
+ return luvio.handleSuccessResponse(() => {
7352
+ const snapshot = ingestSuccess$m(luvio, resourceParams, response);
7353
+ return luvio.storeBroadcast().then(() => snapshot);
7354
+ }, () => {
7355
+ const cache = new StoreKeyMap();
7356
+ getResponseCacheKeys$m(cache, luvio, resourceParams, response.body);
7357
+ return cache;
7358
+ });
7359
+ }, (response) => {
7360
+ deepFreeze(response);
7361
+ throw response;
7362
+ });
7363
+ }
7364
+ const updateManagedContentTaxonomyTermsAdapterFactory = (luvio) => {
7365
+ return function updateManagedContentTaxonomyTerms(untrustedConfig) {
7366
+ const config = validateAdapterConfig$m(untrustedConfig, updateManagedContentTaxonomyTerms_ConfigPropertyNames);
7367
+ // Invalid or incomplete config
7368
+ if (config === null) {
7369
+ throw new Error('Invalid config for "updateManagedContentTaxonomyTerms"');
7370
+ }
7371
+ return buildNetworkSnapshot$m(luvio, config);
7372
+ };
7373
+ };
7374
+
7332
7375
  const TTL$e = 100;
7333
7376
  const VERSION$f = "361f66b21b2d3b6832c42c67fac4f448";
7334
7377
  function validate$t(obj, path = 'ManagedContentWebUrlsRepresentation') {
@@ -7344,7 +7387,7 @@ function validate$t(obj, path = 'ManagedContentWebUrlsRepresentation') {
7344
7387
  for (let i = 0; i < obj_urlAliases.length; i++) {
7345
7388
  const obj_urlAliases_item = obj_urlAliases[i];
7346
7389
  const path_urlAliases_item = path_urlAliases + '[' + i + ']';
7347
- const referencepath_urlAliases_itemValidationError = validate$v(obj_urlAliases_item, path_urlAliases_item);
7390
+ const referencepath_urlAliases_itemValidationError = validate$z(obj_urlAliases_item, path_urlAliases_item);
7348
7391
  if (referencepath_urlAliases_itemValidationError !== null) {
7349
7392
  let message = 'Object doesn\'t match ManagedContentWebUrlRepresentation (at "' + path_urlAliases_item + '")\n';
7350
7393
  message += referencepath_urlAliases_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -7947,7 +7990,7 @@ function validate$p(obj, path = 'ManagedContentVariantReferenceDetailsRepresenta
7947
7990
  }
7948
7991
  const obj_status = obj.status;
7949
7992
  const path_status = path + '.status';
7950
- const referencepath_statusValidationError = validate$R(obj_status, path_status);
7993
+ const referencepath_statusValidationError = validate$V(obj_status, path_status);
7951
7994
  if (referencepath_statusValidationError !== null) {
7952
7995
  let message = 'Object doesn\'t match ManagedContentVariantStatusRepresentation (at "' + path_status + '")\n';
7953
7996
  message += referencepath_statusValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -9565,7 +9608,7 @@ function validate$e(obj, path = 'AbstractManagedContentSearchResultRepresentatio
9565
9608
  }
9566
9609
  const obj_folder = obj.folder;
9567
9610
  const path_folder = path + '.folder';
9568
- const referencepath_folderValidationError = validate$S(obj_folder, path_folder);
9611
+ const referencepath_folderValidationError = validate$W(obj_folder, path_folder);
9569
9612
  if (referencepath_folderValidationError !== null) {
9570
9613
  let message = 'Object doesn\'t match ManagedContentFolderSummaryRepresentation (at "' + path_folder + '")\n';
9571
9614
  message += referencepath_folderValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -12214,22 +12257,22 @@ const getManagedContentPreviewsAdapterFactory = (luvio) => function CMSAuthoring
12214
12257
  };
12215
12258
 
12216
12259
  function select(luvio, params) {
12217
- return select$W();
12260
+ return select$$();
12218
12261
  }
12219
12262
  function keyBuilder$1(luvio, params) {
12220
- return keyBuilder$O(luvio, {
12263
+ return keyBuilder$R(luvio, {
12221
12264
  content_key: params.urlParams.contentKeyOrId,
12222
12265
  language: params.queryParams.language || '',
12223
12266
  version: params.queryParams.version || ''
12224
12267
  });
12225
12268
  }
12226
12269
  function getResponseCacheKeys(storeKeyMap, luvio, resourceParams, response) {
12227
- getTypeCacheKeys$n(storeKeyMap, luvio, response);
12270
+ getTypeCacheKeys$q(storeKeyMap, luvio, response);
12228
12271
  }
12229
12272
  function ingestSuccess(luvio, resourceParams, response, snapshotRefresh) {
12230
12273
  const { body } = response;
12231
12274
  const key = keyBuilder$1(luvio, resourceParams);
12232
- luvio.storeIngest(key, ingest$n, body);
12275
+ luvio.storeIngest(key, ingest$q, body);
12233
12276
  const snapshot = luvio.storeLookup({
12234
12277
  recordId: key,
12235
12278
  node: select(),
@@ -12247,10 +12290,10 @@ function ingestError(luvio, params, error, snapshotRefresh) {
12247
12290
  const key = keyBuilder$1(luvio, params);
12248
12291
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
12249
12292
  const storeMetadataParams = {
12250
- ttl: TTL$n,
12293
+ ttl: TTL$p,
12251
12294
  namespace: keyPrefix,
12252
- version: VERSION$o,
12253
- representationName: RepresentationType$n
12295
+ version: VERSION$r,
12296
+ representationName: RepresentationType$q
12254
12297
  };
12255
12298
  luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
12256
12299
  return errorSnapshot;