@salesforce/lds-adapters-cms-authoring 1.385.0 → 1.387.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/es/es2018/cms-authoring.js +58 -49
- package/dist/es/es2018/types/src/generated/adapters/getManagedContent.d.ts +2 -0
- package/dist/es/es2018/types/src/generated/adapters/getManagedContentForSite.d.ts +2 -0
- package/dist/es/es2018/types/src/generated/resources/getConnectCmsContentsByContentKeyOrId.d.ts +2 -0
- package/dist/es/es2018/types/src/generated/resources/getConnectSitesCmsContentsByContentKeyOrIdAndSiteId.d.ts +2 -0
- package/dist/es/es2018/types/src/generated/types/ManagedContentDocumentRepresentation.d.ts +10 -10
- package/package.json +4 -4
- package/sfdc/index.js +59 -50
- package/src/raml/api.raml +22 -6
- package/src/raml/luvio.raml +5 -3
|
@@ -3492,7 +3492,7 @@ function validate$10(obj, path = 'ManagedContentVariantStatusRepresentation') {
|
|
|
3492
3492
|
}
|
|
3493
3493
|
|
|
3494
3494
|
const TTL$w = 100;
|
|
3495
|
-
const VERSION$A = "
|
|
3495
|
+
const VERSION$A = "6a11daeb9fe5ea23da2a7b4eb368581a";
|
|
3496
3496
|
function validate$$(obj, path = 'ManagedContentDocumentRepresentation') {
|
|
3497
3497
|
const v_error = (() => {
|
|
3498
3498
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -3561,6 +3561,32 @@ function validate$$(obj, path = 'ManagedContentDocumentRepresentation') {
|
|
|
3561
3561
|
message += referencepath_contentTypeValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
3562
3562
|
return new TypeError(message);
|
|
3563
3563
|
}
|
|
3564
|
+
const obj_contentVersion = obj.contentVersion;
|
|
3565
|
+
const path_contentVersion = path + '.contentVersion';
|
|
3566
|
+
let obj_contentVersion_union0 = null;
|
|
3567
|
+
const obj_contentVersion_union0_error = (() => {
|
|
3568
|
+
if (typeof obj_contentVersion !== 'number' || (typeof obj_contentVersion === 'number' && Math.floor(obj_contentVersion) !== obj_contentVersion)) {
|
|
3569
|
+
return new TypeError('Expected "integer" but received "' + typeof obj_contentVersion + '" (at "' + path_contentVersion + '")');
|
|
3570
|
+
}
|
|
3571
|
+
})();
|
|
3572
|
+
if (obj_contentVersion_union0_error != null) {
|
|
3573
|
+
obj_contentVersion_union0 = obj_contentVersion_union0_error.message;
|
|
3574
|
+
}
|
|
3575
|
+
let obj_contentVersion_union1 = null;
|
|
3576
|
+
const obj_contentVersion_union1_error = (() => {
|
|
3577
|
+
if (obj_contentVersion !== null) {
|
|
3578
|
+
return new TypeError('Expected "null" but received "' + typeof obj_contentVersion + '" (at "' + path_contentVersion + '")');
|
|
3579
|
+
}
|
|
3580
|
+
})();
|
|
3581
|
+
if (obj_contentVersion_union1_error != null) {
|
|
3582
|
+
obj_contentVersion_union1 = obj_contentVersion_union1_error.message;
|
|
3583
|
+
}
|
|
3584
|
+
if (obj_contentVersion_union0 && obj_contentVersion_union1) {
|
|
3585
|
+
let message = 'Object doesn\'t match union (at "' + path_contentVersion + '")';
|
|
3586
|
+
message += '\n' + obj_contentVersion_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
3587
|
+
message += '\n' + obj_contentVersion_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
3588
|
+
return new TypeError(message);
|
|
3589
|
+
}
|
|
3564
3590
|
const obj_createdBy = obj.createdBy;
|
|
3565
3591
|
const path_createdBy = path + '.createdBy';
|
|
3566
3592
|
const referencepath_createdByValidationError = validate$1i(obj_createdBy, path_createdBy);
|
|
@@ -3661,35 +3687,30 @@ function validate$$(obj, path = 'ManagedContentDocumentRepresentation') {
|
|
|
3661
3687
|
if (typeof obj_urlName !== 'string') {
|
|
3662
3688
|
return new TypeError('Expected "string" but received "' + typeof obj_urlName + '" (at "' + path_urlName + '")');
|
|
3663
3689
|
}
|
|
3664
|
-
const
|
|
3665
|
-
const
|
|
3666
|
-
|
|
3667
|
-
|
|
3668
|
-
|
|
3669
|
-
|
|
3670
|
-
const path_versionNumber = path + '.versionNumber';
|
|
3671
|
-
let obj_versionNumber_union0 = null;
|
|
3672
|
-
const obj_versionNumber_union0_error = (() => {
|
|
3673
|
-
if (typeof obj_versionNumber !== 'string') {
|
|
3674
|
-
return new TypeError('Expected "string" but received "' + typeof obj_versionNumber + '" (at "' + path_versionNumber + '")');
|
|
3690
|
+
const obj_variantVersion = obj.variantVersion;
|
|
3691
|
+
const path_variantVersion = path + '.variantVersion';
|
|
3692
|
+
let obj_variantVersion_union0 = null;
|
|
3693
|
+
const obj_variantVersion_union0_error = (() => {
|
|
3694
|
+
if (typeof obj_variantVersion !== 'string') {
|
|
3695
|
+
return new TypeError('Expected "string" but received "' + typeof obj_variantVersion + '" (at "' + path_variantVersion + '")');
|
|
3675
3696
|
}
|
|
3676
3697
|
})();
|
|
3677
|
-
if (
|
|
3678
|
-
|
|
3698
|
+
if (obj_variantVersion_union0_error != null) {
|
|
3699
|
+
obj_variantVersion_union0 = obj_variantVersion_union0_error.message;
|
|
3679
3700
|
}
|
|
3680
|
-
let
|
|
3681
|
-
const
|
|
3682
|
-
if (
|
|
3683
|
-
return new TypeError('Expected "null" but received "' + typeof
|
|
3701
|
+
let obj_variantVersion_union1 = null;
|
|
3702
|
+
const obj_variantVersion_union1_error = (() => {
|
|
3703
|
+
if (obj_variantVersion !== null) {
|
|
3704
|
+
return new TypeError('Expected "null" but received "' + typeof obj_variantVersion + '" (at "' + path_variantVersion + '")');
|
|
3684
3705
|
}
|
|
3685
3706
|
})();
|
|
3686
|
-
if (
|
|
3687
|
-
|
|
3707
|
+
if (obj_variantVersion_union1_error != null) {
|
|
3708
|
+
obj_variantVersion_union1 = obj_variantVersion_union1_error.message;
|
|
3688
3709
|
}
|
|
3689
|
-
if (
|
|
3690
|
-
let message = 'Object doesn\'t match union (at "' +
|
|
3691
|
-
message += '\n' +
|
|
3692
|
-
message += '\n' +
|
|
3710
|
+
if (obj_variantVersion_union0 && obj_variantVersion_union1) {
|
|
3711
|
+
let message = 'Object doesn\'t match union (at "' + path_variantVersion + '")';
|
|
3712
|
+
message += '\n' + obj_variantVersion_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
3713
|
+
message += '\n' + obj_variantVersion_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
3693
3714
|
return new TypeError(message);
|
|
3694
3715
|
}
|
|
3695
3716
|
})();
|
|
@@ -3697,13 +3718,13 @@ function validate$$(obj, path = 'ManagedContentDocumentRepresentation') {
|
|
|
3697
3718
|
}
|
|
3698
3719
|
const RepresentationType$w = 'ManagedContentDocumentRepresentation';
|
|
3699
3720
|
function keyBuilder$12(luvio, config) {
|
|
3700
|
-
return keyPrefix + '::' + RepresentationType$w + ':' + config.content_key + ':' + config.language + ':' + config.
|
|
3721
|
+
return keyPrefix + '::' + RepresentationType$w + ':' + config.content_key + ':' + config.language + ':' + (config.variantVersion === null ? '' : config.variantVersion);
|
|
3701
3722
|
}
|
|
3702
3723
|
function keyBuilderFromType$f(luvio, object) {
|
|
3703
3724
|
const keyParams = {
|
|
3704
3725
|
content_key: object.contentKey,
|
|
3705
3726
|
language: object.language,
|
|
3706
|
-
|
|
3727
|
+
variantVersion: object.variantVersion
|
|
3707
3728
|
};
|
|
3708
3729
|
return keyBuilder$12(luvio, keyParams);
|
|
3709
3730
|
}
|
|
@@ -3784,9 +3805,6 @@ function createResourceRequest$H(config) {
|
|
|
3784
3805
|
}
|
|
3785
3806
|
|
|
3786
3807
|
function ingestSuccess$H(luvio, resourceParams, response) {
|
|
3787
|
-
// Version can come either from versionNumber field in case of v2 content, or managedContentVersionId field in case of v1 content.
|
|
3788
|
-
response.body.version = (response.body.versionNumber ||
|
|
3789
|
-
response.body.managedContentVersionId);
|
|
3790
3808
|
return ingestSuccess$I(luvio, resourceParams, response);
|
|
3791
3809
|
}
|
|
3792
3810
|
|
|
@@ -5574,7 +5592,8 @@ function keyBuilder$T(luvio, params) {
|
|
|
5574
5592
|
return keyBuilder$12(luvio, {
|
|
5575
5593
|
content_key: params.urlParams.contentKeyOrId,
|
|
5576
5594
|
language: params.queryParams.language || '',
|
|
5577
|
-
|
|
5595
|
+
contentVersion: params.queryParams.contentVersion || '',
|
|
5596
|
+
variantVersion: params.queryParams.variantVersion || ''
|
|
5578
5597
|
});
|
|
5579
5598
|
}
|
|
5580
5599
|
function getResponseCacheKeys$y(storeKeyMap, luvio, resourceParams, response) {
|
|
@@ -5624,17 +5643,13 @@ function createResourceRequest$y(config) {
|
|
|
5624
5643
|
}
|
|
5625
5644
|
|
|
5626
5645
|
function onFetchResponseSuccess$p(luvio, config, resourceParams, response) {
|
|
5627
|
-
var _a;
|
|
5628
|
-
// Version can come either from versionNumber field in case of v2 content,
|
|
5629
|
-
// or managedContentVersionId field in case of v1 content.
|
|
5630
|
-
response.body.version = (response.body.versionNumber ||
|
|
5631
|
-
response.body.managedContentVersionId);
|
|
5632
5646
|
// If managedContentId is passed instead of a contentKey, we have to
|
|
5633
5647
|
// map the contentKey back to contentKeyOrId from the request urlParams
|
|
5634
5648
|
// so that the snapshot matches correctly, as mentioned in luvio.raml
|
|
5635
5649
|
// for ManagedContentDocumentRepresentation (content_key: contentKey).
|
|
5636
5650
|
// With this we can pass managedContentId or contentKey and the wireadapter
|
|
5637
5651
|
// would behave correctly irrespective of which field is passed.
|
|
5652
|
+
var _a;
|
|
5638
5653
|
resourceParams.urlParams.contentKeyOrId = response.body.contentKey;
|
|
5639
5654
|
// If language is not provided in the request resource params use language
|
|
5640
5655
|
// returned in the response and update resource params with that language,
|
|
@@ -5671,7 +5686,7 @@ function onFetchResponseSuccess$p(luvio, config, resourceParams, response) {
|
|
|
5671
5686
|
// returned in the response and update resource params with that version,
|
|
5672
5687
|
// since this resource params are used to build a cache key to verify that
|
|
5673
5688
|
// data was ingested into cache.
|
|
5674
|
-
(_a = resourceParams.queryParams).
|
|
5689
|
+
(_a = resourceParams.queryParams).variantVersion || (_a.variantVersion = response.body.variantVersion);
|
|
5675
5690
|
return onFetchResponseSuccess$o(luvio, config, resourceParams, response);
|
|
5676
5691
|
}
|
|
5677
5692
|
|
|
@@ -5680,6 +5695,8 @@ const getManagedContent_ConfigPropertyMetadata = [
|
|
|
5680
5695
|
generateParamConfigMetadata('contentKeyOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
5681
5696
|
generateParamConfigMetadata('language', false, 1 /* QueryParameter */, 0 /* String */),
|
|
5682
5697
|
generateParamConfigMetadata('version', false, 1 /* QueryParameter */, 0 /* String */),
|
|
5698
|
+
generateParamConfigMetadata('variantVersion', false, 1 /* QueryParameter */, 0 /* String */),
|
|
5699
|
+
generateParamConfigMetadata('contentVersion', false, 1 /* QueryParameter */, 0 /* String */),
|
|
5683
5700
|
];
|
|
5684
5701
|
const getManagedContent_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$y, getManagedContent_ConfigPropertyMetadata);
|
|
5685
5702
|
const createResourceParams$y = /*#__PURE__*/ createResourceParams$P(getManagedContent_ConfigPropertyMetadata);
|
|
@@ -8871,12 +8888,6 @@ function createResourceRequest$o(config) {
|
|
|
8871
8888
|
}
|
|
8872
8889
|
|
|
8873
8890
|
function onFetchResponseSuccess$h(luvio, config, resourceParams, response) {
|
|
8874
|
-
// Set version field for each document in the collection
|
|
8875
|
-
// Version can come either from versionNumber field in case of v2 content,
|
|
8876
|
-
// or managedContentVersionId field in case of v1 content.
|
|
8877
|
-
response.body.contents.forEach((document) => {
|
|
8878
|
-
document.version = (document.versionNumber || document.managedContentVersionId);
|
|
8879
|
-
});
|
|
8880
8891
|
return onFetchResponseSuccess$g(luvio, config, resourceParams, response);
|
|
8881
8892
|
}
|
|
8882
8893
|
|
|
@@ -14289,7 +14300,8 @@ function keyBuilder$5(luvio, params) {
|
|
|
14289
14300
|
return keyBuilder$12(luvio, {
|
|
14290
14301
|
content_key: params.urlParams.contentKeyOrId,
|
|
14291
14302
|
language: params.queryParams.language || '',
|
|
14292
|
-
|
|
14303
|
+
variantVersion: params.queryParams.variantVersion || '',
|
|
14304
|
+
contentVersion: params.queryParams.contentVersion || ''
|
|
14293
14305
|
});
|
|
14294
14306
|
}
|
|
14295
14307
|
function getResponseCacheKeys$2(storeKeyMap, luvio, resourceParams, response) {
|
|
@@ -14339,11 +14351,6 @@ function createResourceRequest$2(config) {
|
|
|
14339
14351
|
}
|
|
14340
14352
|
|
|
14341
14353
|
function onFetchResponseSuccess$3(luvio, config, resourceParams, response) {
|
|
14342
|
-
var _a;
|
|
14343
|
-
// Version can come either from versionNumber field in case of v2 content,
|
|
14344
|
-
// or managedContentVersionId field in case of v1 content.
|
|
14345
|
-
response.body.version = (response.body.versionNumber ||
|
|
14346
|
-
response.body.managedContentVersionId);
|
|
14347
14354
|
// If managedContentId is passed instead of a contentKey, we have to
|
|
14348
14355
|
// map the contentKey back to contentKeyOrId from the request urlParams
|
|
14349
14356
|
// so that the snapshot matches correctly, as mentioned in luvio.raml
|
|
@@ -14386,7 +14393,7 @@ function onFetchResponseSuccess$3(luvio, config, resourceParams, response) {
|
|
|
14386
14393
|
// returned in the response and update resource params with that version,
|
|
14387
14394
|
// since this resource params are used to build a cache key to verify that
|
|
14388
14395
|
// data was ingested into cache.
|
|
14389
|
-
|
|
14396
|
+
resourceParams.queryParams.variantVersion = response.body.variantVersion;
|
|
14390
14397
|
return onFetchResponseSuccess$2(luvio, config, resourceParams, response);
|
|
14391
14398
|
}
|
|
14392
14399
|
|
|
@@ -14396,6 +14403,8 @@ const getManagedContentForSite_ConfigPropertyMetadata = [
|
|
|
14396
14403
|
generateParamConfigMetadata('siteId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
14397
14404
|
generateParamConfigMetadata('language', false, 1 /* QueryParameter */, 0 /* String */),
|
|
14398
14405
|
generateParamConfigMetadata('version', false, 1 /* QueryParameter */, 0 /* String */),
|
|
14406
|
+
generateParamConfigMetadata('variantVersion', false, 1 /* QueryParameter */, 0 /* String */),
|
|
14407
|
+
generateParamConfigMetadata('contentVersion', false, 1 /* QueryParameter */, 0 /* String */),
|
|
14399
14408
|
];
|
|
14400
14409
|
const getManagedContentForSite_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, getManagedContentForSite_ConfigPropertyMetadata);
|
|
14401
14410
|
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$P(getManagedContentForSite_ConfigPropertyMetadata);
|
|
@@ -9,6 +9,8 @@ export interface GetManagedContentConfig {
|
|
|
9
9
|
contentKeyOrId: string;
|
|
10
10
|
language?: string;
|
|
11
11
|
version?: string;
|
|
12
|
+
variantVersion?: string;
|
|
13
|
+
contentVersion?: string;
|
|
12
14
|
}
|
|
13
15
|
export declare const createResourceParams: (config: GetManagedContentConfig) => resources_getConnectCmsContentsByContentKeyOrId_ResourceRequestConfig;
|
|
14
16
|
export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: GetManagedContentConfig): string;
|
|
@@ -10,6 +10,8 @@ export interface GetManagedContentForSiteConfig {
|
|
|
10
10
|
siteId: string;
|
|
11
11
|
language?: string;
|
|
12
12
|
version?: string;
|
|
13
|
+
variantVersion?: string;
|
|
14
|
+
contentVersion?: string;
|
|
13
15
|
}
|
|
14
16
|
export declare const createResourceParams: (config: GetManagedContentForSiteConfig) => resources_getConnectSitesCmsContentsByContentKeyOrIdAndSiteId_ResourceRequestConfig;
|
|
15
17
|
export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: GetManagedContentForSiteConfig): string;
|
package/dist/es/es2018/types/src/generated/resources/getConnectCmsContentsByContentKeyOrId.d.ts
CHANGED
|
@@ -7,6 +7,8 @@ export interface ResourceRequestConfig {
|
|
|
7
7
|
queryParams: {
|
|
8
8
|
language?: string;
|
|
9
9
|
version?: string;
|
|
10
|
+
variantVersion?: string;
|
|
11
|
+
contentVersion?: string;
|
|
10
12
|
};
|
|
11
13
|
}
|
|
12
14
|
export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
|
|
@@ -8,6 +8,8 @@ export interface ResourceRequestConfig {
|
|
|
8
8
|
queryParams: {
|
|
9
9
|
language?: string;
|
|
10
10
|
version?: string;
|
|
11
|
+
variantVersion?: string;
|
|
12
|
+
contentVersion?: string;
|
|
11
13
|
};
|
|
12
14
|
}
|
|
13
15
|
export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
|
|
@@ -5,13 +5,13 @@ import { ManagedContentFolderSummaryRepresentation as ManagedContentFolderSummar
|
|
|
5
5
|
import { ManagedContentVariantStatusRepresentation as ManagedContentVariantStatusRepresentation_ManagedContentVariantStatusRepresentation } from './ManagedContentVariantStatusRepresentation';
|
|
6
6
|
import { KeyMetadata as $64$luvio_engine_KeyMetadata, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, Luvio as $64$luvio_engine_Luvio, IngestPath as $64$luvio_engine_IngestPath, Store as $64$luvio_engine_Store, BaseFragment as $64$luvio_engine_BaseFragment, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap } from '@luvio/engine';
|
|
7
7
|
export declare const TTL = 100;
|
|
8
|
-
export declare const VERSION = "
|
|
8
|
+
export declare const VERSION = "6a11daeb9fe5ea23da2a7b4eb368581a";
|
|
9
9
|
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
10
10
|
export declare const RepresentationType: string;
|
|
11
11
|
export interface KeyParams extends $64$luvio_engine_KeyMetadata {
|
|
12
12
|
content_key: string;
|
|
13
13
|
language: string;
|
|
14
|
-
|
|
14
|
+
variantVersion: string | null;
|
|
15
15
|
}
|
|
16
16
|
export type ManagedContentDocumentRepresentationNormalizedKeyMetadata = KeyParams & $64$luvio_engine_NormalizedKeyMetadata;
|
|
17
17
|
export type PartialManagedContentDocumentRepresentationNormalizedKeyMetadata = Partial<KeyParams> & $64$luvio_engine_NormalizedKeyMetadata;
|
|
@@ -30,7 +30,7 @@ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableSto
|
|
|
30
30
|
* Keys:
|
|
31
31
|
* content_key (string): contentKey
|
|
32
32
|
* language (string): language
|
|
33
|
-
*
|
|
33
|
+
* variantVersion (string | null): variantVersion
|
|
34
34
|
*/
|
|
35
35
|
export interface ManagedContentDocumentRepresentationNormalized {
|
|
36
36
|
/** The api name of the managed content. */
|
|
@@ -43,6 +43,8 @@ export interface ManagedContentDocumentRepresentationNormalized {
|
|
|
43
43
|
contentKey: string;
|
|
44
44
|
contentSpace: ManagedContentSpaceSummaryRepresentation_ManagedContentSpaceSummaryRepresentation;
|
|
45
45
|
contentType: ManagedContentTypeSummaryRepresentation_ManagedContentTypeSummaryRepresentation;
|
|
46
|
+
/** Content version of the content */
|
|
47
|
+
contentVersion: number | null;
|
|
46
48
|
createdBy: ManagedContentUserSummaryRepresentation_ManagedContentUserSummaryRepresentation;
|
|
47
49
|
/** The created date of the managed content. */
|
|
48
50
|
createdDate: string;
|
|
@@ -66,10 +68,8 @@ export interface ManagedContentDocumentRepresentationNormalized {
|
|
|
66
68
|
title: string;
|
|
67
69
|
/** The content url name of the managed content. */
|
|
68
70
|
urlName: string;
|
|
69
|
-
/**
|
|
70
|
-
|
|
71
|
-
/** The version number of the managed content. */
|
|
72
|
-
versionNumber: string | null;
|
|
71
|
+
/** The variant version number of the managed content. */
|
|
72
|
+
variantVersion: string | null;
|
|
73
73
|
}
|
|
74
74
|
/**
|
|
75
75
|
* Information about a managed content in authoring space.
|
|
@@ -77,7 +77,7 @@ export interface ManagedContentDocumentRepresentationNormalized {
|
|
|
77
77
|
* Keys:
|
|
78
78
|
* content_key (string): contentKey
|
|
79
79
|
* language (string): language
|
|
80
|
-
*
|
|
80
|
+
* variantVersion (string | null): variantVersion
|
|
81
81
|
*/
|
|
82
82
|
export interface ManagedContentDocumentRepresentation {
|
|
83
83
|
apiName?: string | null;
|
|
@@ -87,6 +87,7 @@ export interface ManagedContentDocumentRepresentation {
|
|
|
87
87
|
contentKey: string;
|
|
88
88
|
contentSpace: ManagedContentSpaceSummaryRepresentation_ManagedContentSpaceSummaryRepresentation;
|
|
89
89
|
contentType: ManagedContentTypeSummaryRepresentation_ManagedContentTypeSummaryRepresentation;
|
|
90
|
+
contentVersion: number | null;
|
|
90
91
|
createdBy: ManagedContentUserSummaryRepresentation_ManagedContentUserSummaryRepresentation;
|
|
91
92
|
createdDate: string;
|
|
92
93
|
folder: ManagedContentFolderSummaryRepresentation_ManagedContentFolderSummaryRepresentation;
|
|
@@ -100,6 +101,5 @@ export interface ManagedContentDocumentRepresentation {
|
|
|
100
101
|
status?: ManagedContentVariantStatusRepresentation_ManagedContentVariantStatusRepresentation | null;
|
|
101
102
|
title: string;
|
|
102
103
|
urlName: string;
|
|
103
|
-
|
|
104
|
-
versionNumber: string | null;
|
|
104
|
+
variantVersion: string | null;
|
|
105
105
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-adapters-cms-authoring",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.387.0",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
5
5
|
"description": "Wire adapters for CMS authoring APIs",
|
|
6
6
|
"main": "dist/es/es2018/cms-authoring.js",
|
|
@@ -44,11 +44,11 @@
|
|
|
44
44
|
"test:unit": "jest"
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@salesforce/lds-bindings": "^1.
|
|
47
|
+
"@salesforce/lds-bindings": "^1.387.0"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
|
-
"@salesforce/lds-compiler-plugins": "^1.
|
|
51
|
-
"@salesforce/lds-karma": "^1.
|
|
50
|
+
"@salesforce/lds-compiler-plugins": "^1.387.0",
|
|
51
|
+
"@salesforce/lds-karma": "^1.387.0"
|
|
52
52
|
},
|
|
53
53
|
"nx": {
|
|
54
54
|
"targets": {
|
package/sfdc/index.js
CHANGED
|
@@ -1719,7 +1719,7 @@ function validate$18(obj, path = 'ManagedContentVariantStatusRepresentation') {
|
|
|
1719
1719
|
}
|
|
1720
1720
|
|
|
1721
1721
|
const TTL$B = 100;
|
|
1722
|
-
const VERSION$H = "
|
|
1722
|
+
const VERSION$H = "6a11daeb9fe5ea23da2a7b4eb368581a";
|
|
1723
1723
|
function validate$17(obj, path = 'ManagedContentDocumentRepresentation') {
|
|
1724
1724
|
const v_error = (() => {
|
|
1725
1725
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -1788,6 +1788,32 @@ function validate$17(obj, path = 'ManagedContentDocumentRepresentation') {
|
|
|
1788
1788
|
message += referencepath_contentTypeValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
1789
1789
|
return new TypeError(message);
|
|
1790
1790
|
}
|
|
1791
|
+
const obj_contentVersion = obj.contentVersion;
|
|
1792
|
+
const path_contentVersion = path + '.contentVersion';
|
|
1793
|
+
let obj_contentVersion_union0 = null;
|
|
1794
|
+
const obj_contentVersion_union0_error = (() => {
|
|
1795
|
+
if (typeof obj_contentVersion !== 'number' || (typeof obj_contentVersion === 'number' && Math.floor(obj_contentVersion) !== obj_contentVersion)) {
|
|
1796
|
+
return new TypeError('Expected "integer" but received "' + typeof obj_contentVersion + '" (at "' + path_contentVersion + '")');
|
|
1797
|
+
}
|
|
1798
|
+
})();
|
|
1799
|
+
if (obj_contentVersion_union0_error != null) {
|
|
1800
|
+
obj_contentVersion_union0 = obj_contentVersion_union0_error.message;
|
|
1801
|
+
}
|
|
1802
|
+
let obj_contentVersion_union1 = null;
|
|
1803
|
+
const obj_contentVersion_union1_error = (() => {
|
|
1804
|
+
if (obj_contentVersion !== null) {
|
|
1805
|
+
return new TypeError('Expected "null" but received "' + typeof obj_contentVersion + '" (at "' + path_contentVersion + '")');
|
|
1806
|
+
}
|
|
1807
|
+
})();
|
|
1808
|
+
if (obj_contentVersion_union1_error != null) {
|
|
1809
|
+
obj_contentVersion_union1 = obj_contentVersion_union1_error.message;
|
|
1810
|
+
}
|
|
1811
|
+
if (obj_contentVersion_union0 && obj_contentVersion_union1) {
|
|
1812
|
+
let message = 'Object doesn\'t match union (at "' + path_contentVersion + '")';
|
|
1813
|
+
message += '\n' + obj_contentVersion_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
1814
|
+
message += '\n' + obj_contentVersion_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
1815
|
+
return new TypeError(message);
|
|
1816
|
+
}
|
|
1791
1817
|
const obj_createdBy = obj.createdBy;
|
|
1792
1818
|
const path_createdBy = path + '.createdBy';
|
|
1793
1819
|
const referencepath_createdByValidationError = validate$1c(obj_createdBy, path_createdBy);
|
|
@@ -1888,35 +1914,30 @@ function validate$17(obj, path = 'ManagedContentDocumentRepresentation') {
|
|
|
1888
1914
|
if (typeof obj_urlName !== 'string') {
|
|
1889
1915
|
return new TypeError('Expected "string" but received "' + typeof obj_urlName + '" (at "' + path_urlName + '")');
|
|
1890
1916
|
}
|
|
1891
|
-
const
|
|
1892
|
-
const
|
|
1893
|
-
|
|
1894
|
-
|
|
1895
|
-
|
|
1896
|
-
|
|
1897
|
-
const path_versionNumber = path + '.versionNumber';
|
|
1898
|
-
let obj_versionNumber_union0 = null;
|
|
1899
|
-
const obj_versionNumber_union0_error = (() => {
|
|
1900
|
-
if (typeof obj_versionNumber !== 'string') {
|
|
1901
|
-
return new TypeError('Expected "string" but received "' + typeof obj_versionNumber + '" (at "' + path_versionNumber + '")');
|
|
1917
|
+
const obj_variantVersion = obj.variantVersion;
|
|
1918
|
+
const path_variantVersion = path + '.variantVersion';
|
|
1919
|
+
let obj_variantVersion_union0 = null;
|
|
1920
|
+
const obj_variantVersion_union0_error = (() => {
|
|
1921
|
+
if (typeof obj_variantVersion !== 'string') {
|
|
1922
|
+
return new TypeError('Expected "string" but received "' + typeof obj_variantVersion + '" (at "' + path_variantVersion + '")');
|
|
1902
1923
|
}
|
|
1903
1924
|
})();
|
|
1904
|
-
if (
|
|
1905
|
-
|
|
1925
|
+
if (obj_variantVersion_union0_error != null) {
|
|
1926
|
+
obj_variantVersion_union0 = obj_variantVersion_union0_error.message;
|
|
1906
1927
|
}
|
|
1907
|
-
let
|
|
1908
|
-
const
|
|
1909
|
-
if (
|
|
1910
|
-
return new TypeError('Expected "null" but received "' + typeof
|
|
1928
|
+
let obj_variantVersion_union1 = null;
|
|
1929
|
+
const obj_variantVersion_union1_error = (() => {
|
|
1930
|
+
if (obj_variantVersion !== null) {
|
|
1931
|
+
return new TypeError('Expected "null" but received "' + typeof obj_variantVersion + '" (at "' + path_variantVersion + '")');
|
|
1911
1932
|
}
|
|
1912
1933
|
})();
|
|
1913
|
-
if (
|
|
1914
|
-
|
|
1934
|
+
if (obj_variantVersion_union1_error != null) {
|
|
1935
|
+
obj_variantVersion_union1 = obj_variantVersion_union1_error.message;
|
|
1915
1936
|
}
|
|
1916
|
-
if (
|
|
1917
|
-
let message = 'Object doesn\'t match union (at "' +
|
|
1918
|
-
message += '\n' +
|
|
1919
|
-
message += '\n' +
|
|
1937
|
+
if (obj_variantVersion_union0 && obj_variantVersion_union1) {
|
|
1938
|
+
let message = 'Object doesn\'t match union (at "' + path_variantVersion + '")';
|
|
1939
|
+
message += '\n' + obj_variantVersion_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
1940
|
+
message += '\n' + obj_variantVersion_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
1920
1941
|
return new TypeError(message);
|
|
1921
1942
|
}
|
|
1922
1943
|
})();
|
|
@@ -1924,13 +1945,13 @@ function validate$17(obj, path = 'ManagedContentDocumentRepresentation') {
|
|
|
1924
1945
|
}
|
|
1925
1946
|
const RepresentationType$B = 'ManagedContentDocumentRepresentation';
|
|
1926
1947
|
function keyBuilder$1d(luvio, config) {
|
|
1927
|
-
return keyPrefix + '::' + RepresentationType$B + ':' + config.content_key + ':' + config.language + ':' + config.
|
|
1948
|
+
return keyPrefix + '::' + RepresentationType$B + ':' + config.content_key + ':' + config.language + ':' + (config.variantVersion === null ? '' : config.variantVersion);
|
|
1928
1949
|
}
|
|
1929
1950
|
function keyBuilderFromType$g(luvio, object) {
|
|
1930
1951
|
const keyParams = {
|
|
1931
1952
|
content_key: object.contentKey,
|
|
1932
1953
|
language: object.language,
|
|
1933
|
-
|
|
1954
|
+
variantVersion: object.variantVersion
|
|
1934
1955
|
};
|
|
1935
1956
|
return keyBuilder$1d(luvio, keyParams);
|
|
1936
1957
|
}
|
|
@@ -2011,9 +2032,6 @@ function createResourceRequest$M(config) {
|
|
|
2011
2032
|
}
|
|
2012
2033
|
|
|
2013
2034
|
function ingestSuccess$M(luvio, resourceParams, response) {
|
|
2014
|
-
// Version can come either from versionNumber field in case of v2 content, or managedContentVersionId field in case of v1 content.
|
|
2015
|
-
response.body.version = (response.body.versionNumber ||
|
|
2016
|
-
response.body.managedContentVersionId);
|
|
2017
2035
|
return ingestSuccess$N(luvio, resourceParams, response);
|
|
2018
2036
|
}
|
|
2019
2037
|
|
|
@@ -6153,7 +6171,8 @@ function keyBuilder$R(luvio, params) {
|
|
|
6153
6171
|
return keyBuilder$1d(luvio, {
|
|
6154
6172
|
content_key: params.urlParams.contentKeyOrId,
|
|
6155
6173
|
language: params.queryParams.language || '',
|
|
6156
|
-
|
|
6174
|
+
contentVersion: params.queryParams.contentVersion || '',
|
|
6175
|
+
variantVersion: params.queryParams.variantVersion || ''
|
|
6157
6176
|
});
|
|
6158
6177
|
}
|
|
6159
6178
|
function getResponseCacheKeys$w(storeKeyMap, luvio, resourceParams, response) {
|
|
@@ -6203,17 +6222,13 @@ function createResourceRequest$w(config) {
|
|
|
6203
6222
|
}
|
|
6204
6223
|
|
|
6205
6224
|
function onFetchResponseSuccess$o(luvio, config, resourceParams, response) {
|
|
6206
|
-
var _a;
|
|
6207
|
-
// Version can come either from versionNumber field in case of v2 content,
|
|
6208
|
-
// or managedContentVersionId field in case of v1 content.
|
|
6209
|
-
response.body.version = (response.body.versionNumber ||
|
|
6210
|
-
response.body.managedContentVersionId);
|
|
6211
6225
|
// If managedContentId is passed instead of a contentKey, we have to
|
|
6212
6226
|
// map the contentKey back to contentKeyOrId from the request urlParams
|
|
6213
6227
|
// so that the snapshot matches correctly, as mentioned in luvio.raml
|
|
6214
6228
|
// for ManagedContentDocumentRepresentation (content_key: contentKey).
|
|
6215
6229
|
// With this we can pass managedContentId or contentKey and the wireadapter
|
|
6216
6230
|
// would behave correctly irrespective of which field is passed.
|
|
6231
|
+
var _a;
|
|
6217
6232
|
resourceParams.urlParams.contentKeyOrId = response.body.contentKey;
|
|
6218
6233
|
// If language is not provided in the request resource params use language
|
|
6219
6234
|
// returned in the response and update resource params with that language,
|
|
@@ -6250,7 +6265,7 @@ function onFetchResponseSuccess$o(luvio, config, resourceParams, response) {
|
|
|
6250
6265
|
// returned in the response and update resource params with that version,
|
|
6251
6266
|
// since this resource params are used to build a cache key to verify that
|
|
6252
6267
|
// data was ingested into cache.
|
|
6253
|
-
(_a = resourceParams.queryParams).
|
|
6268
|
+
(_a = resourceParams.queryParams).variantVersion || (_a.variantVersion = response.body.variantVersion);
|
|
6254
6269
|
return onFetchResponseSuccess$n(luvio, config, resourceParams, response);
|
|
6255
6270
|
}
|
|
6256
6271
|
|
|
@@ -6259,6 +6274,8 @@ const getManagedContent_ConfigPropertyMetadata = [
|
|
|
6259
6274
|
generateParamConfigMetadata('contentKeyOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
6260
6275
|
generateParamConfigMetadata('language', false, 1 /* QueryParameter */, 0 /* String */),
|
|
6261
6276
|
generateParamConfigMetadata('version', false, 1 /* QueryParameter */, 0 /* String */),
|
|
6277
|
+
generateParamConfigMetadata('variantVersion', false, 1 /* QueryParameter */, 0 /* String */),
|
|
6278
|
+
generateParamConfigMetadata('contentVersion', false, 1 /* QueryParameter */, 0 /* String */),
|
|
6262
6279
|
];
|
|
6263
6280
|
const getManagedContent_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$w, getManagedContent_ConfigPropertyMetadata);
|
|
6264
6281
|
const createResourceParams$w = /*#__PURE__*/ createResourceParams$P(getManagedContent_ConfigPropertyMetadata);
|
|
@@ -6880,12 +6897,6 @@ function createResourceRequest$u(config) {
|
|
|
6880
6897
|
}
|
|
6881
6898
|
|
|
6882
6899
|
function onFetchResponseSuccess$l(luvio, config, resourceParams, response) {
|
|
6883
|
-
// Set version field for each document in the collection
|
|
6884
|
-
// Version can come either from versionNumber field in case of v2 content,
|
|
6885
|
-
// or managedContentVersionId field in case of v1 content.
|
|
6886
|
-
response.body.contents.forEach((document) => {
|
|
6887
|
-
document.version = (document.versionNumber || document.managedContentVersionId);
|
|
6888
|
-
});
|
|
6889
6900
|
return onFetchResponseSuccess$k(luvio, config, resourceParams, response);
|
|
6890
6901
|
}
|
|
6891
6902
|
|
|
@@ -6984,7 +6995,8 @@ function keyBuilder$L(luvio, params) {
|
|
|
6984
6995
|
return keyBuilder$1d(luvio, {
|
|
6985
6996
|
content_key: params.urlParams.contentKeyOrId,
|
|
6986
6997
|
language: params.queryParams.language || '',
|
|
6987
|
-
|
|
6998
|
+
variantVersion: params.queryParams.variantVersion || '',
|
|
6999
|
+
contentVersion: params.queryParams.contentVersion || ''
|
|
6988
7000
|
});
|
|
6989
7001
|
}
|
|
6990
7002
|
function getResponseCacheKeys$t(storeKeyMap, luvio, resourceParams, response) {
|
|
@@ -7034,11 +7046,6 @@ function createResourceRequest$t(config) {
|
|
|
7034
7046
|
}
|
|
7035
7047
|
|
|
7036
7048
|
function onFetchResponseSuccess$j(luvio, config, resourceParams, response) {
|
|
7037
|
-
var _a;
|
|
7038
|
-
// Version can come either from versionNumber field in case of v2 content,
|
|
7039
|
-
// or managedContentVersionId field in case of v1 content.
|
|
7040
|
-
response.body.version = (response.body.versionNumber ||
|
|
7041
|
-
response.body.managedContentVersionId);
|
|
7042
7049
|
// If managedContentId is passed instead of a contentKey, we have to
|
|
7043
7050
|
// map the contentKey back to contentKeyOrId from the request urlParams
|
|
7044
7051
|
// so that the snapshot matches correctly, as mentioned in luvio.raml
|
|
@@ -7081,7 +7088,7 @@ function onFetchResponseSuccess$j(luvio, config, resourceParams, response) {
|
|
|
7081
7088
|
// returned in the response and update resource params with that version,
|
|
7082
7089
|
// since this resource params are used to build a cache key to verify that
|
|
7083
7090
|
// data was ingested into cache.
|
|
7084
|
-
|
|
7091
|
+
resourceParams.queryParams.variantVersion = response.body.variantVersion;
|
|
7085
7092
|
return onFetchResponseSuccess$i(luvio, config, resourceParams, response);
|
|
7086
7093
|
}
|
|
7087
7094
|
|
|
@@ -7091,6 +7098,8 @@ const getManagedContentForSite_ConfigPropertyMetadata = [
|
|
|
7091
7098
|
generateParamConfigMetadata('siteId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
7092
7099
|
generateParamConfigMetadata('language', false, 1 /* QueryParameter */, 0 /* String */),
|
|
7093
7100
|
generateParamConfigMetadata('version', false, 1 /* QueryParameter */, 0 /* String */),
|
|
7101
|
+
generateParamConfigMetadata('variantVersion', false, 1 /* QueryParameter */, 0 /* String */),
|
|
7102
|
+
generateParamConfigMetadata('contentVersion', false, 1 /* QueryParameter */, 0 /* String */),
|
|
7094
7103
|
];
|
|
7095
7104
|
const getManagedContentForSite_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$t, getManagedContentForSite_ConfigPropertyMetadata);
|
|
7096
7105
|
const createResourceParams$t = /*#__PURE__*/ createResourceParams$P(getManagedContentForSite_ConfigPropertyMetadata);
|
|
@@ -15599,4 +15608,4 @@ withDefaultLuvio((luvio) => {
|
|
|
15599
15608
|
});
|
|
15600
15609
|
|
|
15601
15610
|
export { cloneManagedContentDocument, createDeployment, createManagedContent, createManagedContentExportV2Job, createManagedContentImportV2Job, createManagedContentTranslationVariants, createManagedContentVariant, createSchedule, createTranslationV2Job, deleteManagedContentVariant, getAllCMSJobsForSpace, getAllCMSJobsForSpace_imperative, getCMSJobForSpace, getCMSJobForSpaceNotifyChange, getCMSJobForSpace_imperative, getCollectionItems, getCollectionItems_imperative, getDeployments, getDeployments_imperative, getFormEmbedScript, getFormEmbedScript_imperative, getFormHandlerEmbedScript, getFormHandlerEmbedScript_imperative, getMCSFolderShareTargets, getMCSFolderShareTargets_imperative, getMCSFolderShares, getMCSFolderSharesNotifyChange, getMCSFolderShares_imperative, getManagedContent, getManagedContentByFolderId, getManagedContentByFolderId_imperative, getManagedContentDocumentCollection, getManagedContentDocumentCollection_imperative, getManagedContentForSite, getManagedContentForSite_imperative, getManagedContentPreviews, getManagedContentPreviews_imperative, getManagedContentProviders, getManagedContentProviders_imperative, getManagedContentReferencedBy, getManagedContentReferencedBy_imperative, getManagedContentSingleItem, getManagedContentSingleItem_imperative, getManagedContentSpace, getManagedContentSpaceByFullyQualifiedName, getManagedContentSpaceByFullyQualifiedName_imperative, getManagedContentSpaceFolder, getManagedContentSpaceFolderItemsV1, getManagedContentSpaceFolderItemsV1_imperative, getManagedContentSpaceFolder_imperative, getManagedContentSpaceNotifyChange, getManagedContentSpaceOrchestratorConfig, getManagedContentSpaceOrchestratorConfigNotifyChange, getManagedContentSpaceOrchestratorConfig_imperative, getManagedContentSpace_imperative, getManagedContentSpaces, getManagedContentSpaces_imperative, getManagedContentTaxonomyTerms, getManagedContentTaxonomyTerms_imperative, getManagedContentTypesForMixin, getManagedContentTypesForMixin_imperative, getManagedContentVariant, getManagedContentVariantNotifyChange, getManagedContentVariantReferences, getManagedContentVariantReferences_imperative, getManagedContentVariantRendition, getManagedContentVariantRendition_imperative, getManagedContentVariantVersions, getManagedContentVariantVersionsNotifyChange, getManagedContentVariantVersions_imperative, getManagedContentVariant_imperative, getManagedContent_imperative, getSearchResults, getSearchResults_imperative, getWebUrls, getWebUrls_imperative, patchManagedContentSpace, postManagedContentSpace, postManagedContentSpaceFolder, publishManagedContent, putManagedContentSpaceOrchestratorConfig, replaceManagedContentVariant, unpublishManagedContent, updateDeployment, updateMCSFolderShares, updateManagedContentTaxonomyTerms, updateManagedContentWebUrl };
|
|
15602
|
-
// version: 1.
|
|
15611
|
+
// version: 1.387.0-1c34f8f965
|
package/src/raml/api.raml
CHANGED
|
@@ -1068,16 +1068,16 @@ types:
|
|
|
1068
1068
|
urlName:
|
|
1069
1069
|
description: The content url name of the managed content.
|
|
1070
1070
|
type: string
|
|
1071
|
-
versionNumber:
|
|
1072
|
-
description: The version number of the managed content.
|
|
1073
|
-
type: string | nil
|
|
1074
|
-
version:
|
|
1075
|
-
description: This is computed property that contains either v1 version id or v2 version number. It is not returned from the server and computed on the client side.
|
|
1076
|
-
type: string
|
|
1077
1071
|
status:
|
|
1078
1072
|
description: The status of the managed content variant.
|
|
1079
1073
|
type: ManagedContentVariantStatusRepresentation | nil
|
|
1080
1074
|
required: false # TODO handrolled W-9314597
|
|
1075
|
+
contentVersion:
|
|
1076
|
+
description: Content version of the content
|
|
1077
|
+
type: integer | nil
|
|
1078
|
+
variantVersion:
|
|
1079
|
+
description: The variant version number of the managed content.
|
|
1080
|
+
type: string | nil
|
|
1081
1081
|
ManagedContentSingleItemDocumentRepresentation:
|
|
1082
1082
|
description: Information about a managed content in authoring space.
|
|
1083
1083
|
type: object
|
|
@@ -4903,6 +4903,14 @@ types:
|
|
|
4903
4903
|
description: An 18-character unique Salesforce identifier for the content (CMS 1.0) or version number for content, for example, 2.1 (CMS 2.0).
|
|
4904
4904
|
type: string
|
|
4905
4905
|
required: false
|
|
4906
|
+
variantVersion:
|
|
4907
|
+
description: The variant version number of the managed content.
|
|
4908
|
+
type: string
|
|
4909
|
+
required: false
|
|
4910
|
+
contentVersion:
|
|
4911
|
+
description: An 18-character unique Salesforce identifier for the content version (CMS 1.0) or Content version number for content, for example, 2 (CMS 2.0)
|
|
4912
|
+
type: string
|
|
4913
|
+
required: false
|
|
4906
4914
|
uriParameters:
|
|
4907
4915
|
contentKeyOrId:
|
|
4908
4916
|
description: A unique identifier or ID of a content.
|
|
@@ -5895,6 +5903,14 @@ types:
|
|
|
5895
5903
|
(CMS 2.0)
|
|
5896
5904
|
type: string
|
|
5897
5905
|
required: false
|
|
5906
|
+
variantVersion:
|
|
5907
|
+
description: The variant version number of the managed content.
|
|
5908
|
+
type: string
|
|
5909
|
+
required: false
|
|
5910
|
+
contentVersion:
|
|
5911
|
+
description: An 18-character unique Salesforce identifier for the content version (CMS 1.0) or Content version number for content, for example, 2 (CMS 2.0)
|
|
5912
|
+
type: string
|
|
5913
|
+
required: false
|
|
5898
5914
|
uriParameters:
|
|
5899
5915
|
contentKeyOrId:
|
|
5900
5916
|
description: A unique identifier or ID of a content.
|
package/src/raml/luvio.raml
CHANGED
|
@@ -25,7 +25,7 @@ types:
|
|
|
25
25
|
(luvio.key):
|
|
26
26
|
content_key: contentKey
|
|
27
27
|
language: language
|
|
28
|
-
|
|
28
|
+
variantVersion: variantVersion
|
|
29
29
|
ManagedContentSingleItemDocumentRepresentation:
|
|
30
30
|
(luvio.ttl): 100
|
|
31
31
|
(luvio.opaque): true
|
|
@@ -513,7 +513,8 @@ types:
|
|
|
513
513
|
(luvio.key):
|
|
514
514
|
content_key: urlParams.contentKeyOrId
|
|
515
515
|
language: queryParams.language || ''
|
|
516
|
-
|
|
516
|
+
contentVersion: queryParams.contentVersion || ''
|
|
517
|
+
variantVersion: queryParams.variantVersion || ''
|
|
517
518
|
/clone:
|
|
518
519
|
post:
|
|
519
520
|
(luvio.adapter):
|
|
@@ -878,7 +879,8 @@ types:
|
|
|
878
879
|
(luvio.key):
|
|
879
880
|
content_key: urlParams.contentKeyOrId
|
|
880
881
|
language: queryParams.language || ''
|
|
881
|
-
|
|
882
|
+
variantVersion: queryParams.variantVersion || ''
|
|
883
|
+
contentVersion: queryParams.contentVersion || ''
|
|
882
884
|
/uma/form/embedScript/{formContentKey}/{domainName}:
|
|
883
885
|
get:
|
|
884
886
|
(luvio.adapter):
|