@salesforce/lds-adapters-cms-authoring 1.296.1 → 1.298.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.
|
@@ -10762,7 +10762,7 @@ const patchManagedContentSpaceAdapterFactory = (luvio) => {
|
|
|
10762
10762
|
};
|
|
10763
10763
|
|
|
10764
10764
|
const TTL$4 = 100;
|
|
10765
|
-
const VERSION$5 = "
|
|
10765
|
+
const VERSION$5 = "3a5747378dc29ae71f5d09b77bed28f9";
|
|
10766
10766
|
function validate$9(obj, path = 'ManagedContentSingleItemDocumentRepresentation') {
|
|
10767
10767
|
const v_error = (() => {
|
|
10768
10768
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -10846,10 +10846,31 @@ function validate$9(obj, path = 'ManagedContentSingleItemDocumentRepresentation'
|
|
|
10846
10846
|
}
|
|
10847
10847
|
const obj_folder = obj.folder;
|
|
10848
10848
|
const path_folder = path + '.folder';
|
|
10849
|
-
|
|
10850
|
-
|
|
10851
|
-
|
|
10852
|
-
|
|
10849
|
+
let obj_folder_union0 = null;
|
|
10850
|
+
const obj_folder_union0_error = (() => {
|
|
10851
|
+
const referencepath_folderValidationError = validate$T(obj_folder, path_folder);
|
|
10852
|
+
if (referencepath_folderValidationError !== null) {
|
|
10853
|
+
let message = 'Object doesn\'t match ManagedContentFolderSummaryRepresentation (at "' + path_folder + '")\n';
|
|
10854
|
+
message += referencepath_folderValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
10855
|
+
return new TypeError(message);
|
|
10856
|
+
}
|
|
10857
|
+
})();
|
|
10858
|
+
if (obj_folder_union0_error != null) {
|
|
10859
|
+
obj_folder_union0 = obj_folder_union0_error.message;
|
|
10860
|
+
}
|
|
10861
|
+
let obj_folder_union1 = null;
|
|
10862
|
+
const obj_folder_union1_error = (() => {
|
|
10863
|
+
if (obj_folder !== null) {
|
|
10864
|
+
return new TypeError('Expected "null" but received "' + typeof obj_folder + '" (at "' + path_folder + '")');
|
|
10865
|
+
}
|
|
10866
|
+
})();
|
|
10867
|
+
if (obj_folder_union1_error != null) {
|
|
10868
|
+
obj_folder_union1 = obj_folder_union1_error.message;
|
|
10869
|
+
}
|
|
10870
|
+
if (obj_folder_union0 && obj_folder_union1) {
|
|
10871
|
+
let message = 'Object doesn\'t match union (at "' + path_folder + '")';
|
|
10872
|
+
message += '\n' + obj_folder_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
10873
|
+
message += '\n' + obj_folder_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
10853
10874
|
return new TypeError(message);
|
|
10854
10875
|
}
|
|
10855
10876
|
const obj_isPublished = obj.isPublished;
|
|
@@ -10931,11 +10952,6 @@ function validate$9(obj, path = 'ManagedContentSingleItemDocumentRepresentation'
|
|
|
10931
10952
|
if (typeof obj_urlName !== 'string') {
|
|
10932
10953
|
return new TypeError('Expected "string" but received "' + typeof obj_urlName + '" (at "' + path_urlName + '")');
|
|
10933
10954
|
}
|
|
10934
|
-
const obj_version = obj.version;
|
|
10935
|
-
const path_version = path + '.version';
|
|
10936
|
-
if (typeof obj_version !== 'string') {
|
|
10937
|
-
return new TypeError('Expected "string" but received "' + typeof obj_version + '" (at "' + path_version + '")');
|
|
10938
|
-
}
|
|
10939
10955
|
const obj_versionNumber = obj.versionNumber;
|
|
10940
10956
|
const path_versionNumber = path + '.versionNumber';
|
|
10941
10957
|
let obj_versionNumber_union0 = null;
|
package/dist/es/es2018/types/src/generated/types/ManagedContentSingleItemDocumentRepresentation.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ import { ManagedContentFolderSummaryRepresentation as ManagedContentFolderSummar
|
|
|
5
5
|
import { ManagedContentVariantStatusRepresentation as ManagedContentVariantStatusRepresentation_ManagedContentVariantStatusRepresentation } from './ManagedContentVariantStatusRepresentation';
|
|
6
6
|
import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, BaseFragment as $64$luvio_engine_BaseFragment, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
|
|
7
7
|
export declare const TTL = 100;
|
|
8
|
-
export declare const VERSION = "
|
|
8
|
+
export declare const VERSION = "3a5747378dc29ae71f5d09b77bed28f9";
|
|
9
9
|
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
10
10
|
export declare const RepresentationType: string;
|
|
11
11
|
export declare function normalize(input: ManagedContentSingleItemDocumentRepresentation, existing: ManagedContentSingleItemDocumentRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ManagedContentSingleItemDocumentRepresentationNormalized;
|
|
@@ -33,7 +33,8 @@ export interface ManagedContentSingleItemDocumentRepresentationNormalized {
|
|
|
33
33
|
createdBy: ManagedContentUserSummaryRepresentation_ManagedContentUserSummaryRepresentation;
|
|
34
34
|
/** The created date of the managed content. */
|
|
35
35
|
createdDate: string;
|
|
36
|
-
folder
|
|
36
|
+
/** The content folder of the managed content. */
|
|
37
|
+
folder: ManagedContentFolderSummaryRepresentation_ManagedContentFolderSummaryRepresentation | null;
|
|
37
38
|
/** Is managed content variant published to any channel. */
|
|
38
39
|
isPublished: boolean;
|
|
39
40
|
/** The language of the managed content. */
|
|
@@ -53,8 +54,6 @@ export interface ManagedContentSingleItemDocumentRepresentationNormalized {
|
|
|
53
54
|
title: string;
|
|
54
55
|
/** The content url name of the managed content. */
|
|
55
56
|
urlName: string;
|
|
56
|
-
/** 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. */
|
|
57
|
-
version: string;
|
|
58
57
|
/** The version number of the managed content. */
|
|
59
58
|
versionNumber: string | null;
|
|
60
59
|
}
|
|
@@ -74,7 +73,7 @@ export interface ManagedContentSingleItemDocumentRepresentation {
|
|
|
74
73
|
contentType: ManagedContentTypeSummaryRepresentation_ManagedContentTypeSummaryRepresentation;
|
|
75
74
|
createdBy: ManagedContentUserSummaryRepresentation_ManagedContentUserSummaryRepresentation;
|
|
76
75
|
createdDate: string;
|
|
77
|
-
folder: ManagedContentFolderSummaryRepresentation_ManagedContentFolderSummaryRepresentation;
|
|
76
|
+
folder: ManagedContentFolderSummaryRepresentation_ManagedContentFolderSummaryRepresentation | null;
|
|
78
77
|
isPublished: boolean;
|
|
79
78
|
language: string;
|
|
80
79
|
lastModifiedBy: ManagedContentUserSummaryRepresentation_ManagedContentUserSummaryRepresentation;
|
|
@@ -85,6 +84,5 @@ export interface ManagedContentSingleItemDocumentRepresentation {
|
|
|
85
84
|
status?: ManagedContentVariantStatusRepresentation_ManagedContentVariantStatusRepresentation | null;
|
|
86
85
|
title: string;
|
|
87
86
|
urlName: string;
|
|
88
|
-
version: string;
|
|
89
87
|
versionNumber: string | null;
|
|
90
88
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-adapters-cms-authoring",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.298.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.298.0"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
|
-
"@salesforce/lds-compiler-plugins": "^1.
|
|
51
|
-
"@salesforce/lds-karma": "^1.
|
|
50
|
+
"@salesforce/lds-compiler-plugins": "^1.298.0",
|
|
51
|
+
"@salesforce/lds-karma": "^1.298.0"
|
|
52
52
|
},
|
|
53
53
|
"nx": {
|
|
54
54
|
"targets": {
|
package/sfdc/index.js
CHANGED
|
@@ -7199,7 +7199,7 @@ const getManagedContentReferencedByAdapterFactory = (luvio) => function CMSAutho
|
|
|
7199
7199
|
};
|
|
7200
7200
|
|
|
7201
7201
|
const TTL$i = 100;
|
|
7202
|
-
const VERSION$i = "
|
|
7202
|
+
const VERSION$i = "3a5747378dc29ae71f5d09b77bed28f9";
|
|
7203
7203
|
function validate$x(obj, path = 'ManagedContentSingleItemDocumentRepresentation') {
|
|
7204
7204
|
const v_error = (() => {
|
|
7205
7205
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -7283,10 +7283,31 @@ function validate$x(obj, path = 'ManagedContentSingleItemDocumentRepresentation'
|
|
|
7283
7283
|
}
|
|
7284
7284
|
const obj_folder = obj.folder;
|
|
7285
7285
|
const path_folder = path + '.folder';
|
|
7286
|
-
|
|
7287
|
-
|
|
7288
|
-
|
|
7289
|
-
|
|
7286
|
+
let obj_folder_union0 = null;
|
|
7287
|
+
const obj_folder_union0_error = (() => {
|
|
7288
|
+
const referencepath_folderValidationError = validate$19(obj_folder, path_folder);
|
|
7289
|
+
if (referencepath_folderValidationError !== null) {
|
|
7290
|
+
let message = 'Object doesn\'t match ManagedContentFolderSummaryRepresentation (at "' + path_folder + '")\n';
|
|
7291
|
+
message += referencepath_folderValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
7292
|
+
return new TypeError(message);
|
|
7293
|
+
}
|
|
7294
|
+
})();
|
|
7295
|
+
if (obj_folder_union0_error != null) {
|
|
7296
|
+
obj_folder_union0 = obj_folder_union0_error.message;
|
|
7297
|
+
}
|
|
7298
|
+
let obj_folder_union1 = null;
|
|
7299
|
+
const obj_folder_union1_error = (() => {
|
|
7300
|
+
if (obj_folder !== null) {
|
|
7301
|
+
return new TypeError('Expected "null" but received "' + typeof obj_folder + '" (at "' + path_folder + '")');
|
|
7302
|
+
}
|
|
7303
|
+
})();
|
|
7304
|
+
if (obj_folder_union1_error != null) {
|
|
7305
|
+
obj_folder_union1 = obj_folder_union1_error.message;
|
|
7306
|
+
}
|
|
7307
|
+
if (obj_folder_union0 && obj_folder_union1) {
|
|
7308
|
+
let message = 'Object doesn\'t match union (at "' + path_folder + '")';
|
|
7309
|
+
message += '\n' + obj_folder_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
7310
|
+
message += '\n' + obj_folder_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
7290
7311
|
return new TypeError(message);
|
|
7291
7312
|
}
|
|
7292
7313
|
const obj_isPublished = obj.isPublished;
|
|
@@ -7368,11 +7389,6 @@ function validate$x(obj, path = 'ManagedContentSingleItemDocumentRepresentation'
|
|
|
7368
7389
|
if (typeof obj_urlName !== 'string') {
|
|
7369
7390
|
return new TypeError('Expected "string" but received "' + typeof obj_urlName + '" (at "' + path_urlName + '")');
|
|
7370
7391
|
}
|
|
7371
|
-
const obj_version = obj.version;
|
|
7372
|
-
const path_version = path + '.version';
|
|
7373
|
-
if (typeof obj_version !== 'string') {
|
|
7374
|
-
return new TypeError('Expected "string" but received "' + typeof obj_version + '" (at "' + path_version + '")');
|
|
7375
|
-
}
|
|
7376
7392
|
const obj_versionNumber = obj.versionNumber;
|
|
7377
7393
|
const path_versionNumber = path + '.versionNumber';
|
|
7378
7394
|
let obj_versionNumber_union0 = null;
|
|
@@ -13421,4 +13437,4 @@ withDefaultLuvio((luvio) => {
|
|
|
13421
13437
|
});
|
|
13422
13438
|
|
|
13423
13439
|
export { cloneManagedContentDocument, createDeployment, createManagedContent, createManagedContentExportV2Job, createManagedContentImportV2Job, createManagedContentVariant, createSchedule, createTranslationV2Job, deleteManagedContentVariant, getAllCMSJobsForSpace, getAllCMSJobsForSpace_imperative, getCMSJobForSpace, getCMSJobForSpaceNotifyChange, getCMSJobForSpace_imperative, getCollectionItems, getCollectionItems_imperative, getDeployments, getDeployments_imperative, getMCSFolderShareTargets, getMCSFolderShareTargets_imperative, getMCSFolderShares, getMCSFolderSharesNotifyChange, getMCSFolderShares_imperative, getManagedContent, getManagedContentByFolderId, getManagedContentByFolderId_imperative, getManagedContentFileUploadConfig, getManagedContentFileUploadConfig_imperative, getManagedContentForSite, getManagedContentForSite_imperative, getManagedContentPreviews, getManagedContentPreviews_imperative, getManagedContentReferencedBy, getManagedContentReferencedBy_imperative, getManagedContentSingleItem, getManagedContentSingleItem_imperative, getManagedContentSpace, 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, postManagedContentSpaceFolder, publishManagedContent, putManagedContentSpaceOrchestratorConfig, replaceManagedContentVariant, unpublishManagedContent, updateDeployment, updateMCSFolderShares, updateManagedContentTaxonomyTerms, updateManagedContentWebUrl };
|
|
13424
|
-
// version: 1.
|
|
13440
|
+
// version: 1.298.0-6f15dc1ec
|
package/src/raml/api.raml
CHANGED
|
@@ -1078,7 +1078,7 @@ types:
|
|
|
1078
1078
|
type: string
|
|
1079
1079
|
folder:
|
|
1080
1080
|
description: The content folder of the managed content.
|
|
1081
|
-
type: ManagedContentFolderSummaryRepresentation
|
|
1081
|
+
type: ManagedContentFolderSummaryRepresentation | nil
|
|
1082
1082
|
isPublished:
|
|
1083
1083
|
description: Is managed content variant published to any channel.
|
|
1084
1084
|
type: boolean
|
|
@@ -1109,9 +1109,6 @@ types:
|
|
|
1109
1109
|
versionNumber:
|
|
1110
1110
|
description: The version number of the managed content.
|
|
1111
1111
|
type: string | nil
|
|
1112
|
-
version:
|
|
1113
|
-
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.
|
|
1114
|
-
type: string
|
|
1115
1112
|
status:
|
|
1116
1113
|
description: The status of the managed content variant.
|
|
1117
1114
|
type: ManagedContentVariantStatusRepresentation | nil
|