@salesforce/lds-adapters-cms-authoring 1.124.0 → 1.124.2
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 +66 -50
- package/dist/types/src/generated/resources/postConnectCmsSpaces.d.ts +8 -8
- package/dist/types/src/generated/types/ManagedContentSpaceInputRepresentation.d.ts +17 -17
- package/dist/umd/es2018/cms-authoring.js +66 -50
- package/dist/umd/es5/cms-authoring.js +66 -50
- package/package.json +1 -1
- package/sfdc/index.js +67 -51
- package/src/raml/api.raml +8 -0
|
@@ -6431,39 +6431,47 @@ function validate$3(obj, path = 'ManagedContentSpaceInputRepresentation') {
|
|
|
6431
6431
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
6432
6432
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
6433
6433
|
}
|
|
6434
|
-
|
|
6435
|
-
|
|
6436
|
-
|
|
6437
|
-
|
|
6438
|
-
|
|
6439
|
-
|
|
6440
|
-
|
|
6441
|
-
|
|
6442
|
-
|
|
6443
|
-
|
|
6434
|
+
if (obj.channels !== undefined) {
|
|
6435
|
+
const obj_channels = obj.channels;
|
|
6436
|
+
const path_channels = path + '.channels';
|
|
6437
|
+
if (!ArrayIsArray(obj_channels)) {
|
|
6438
|
+
return new TypeError('Expected "array" but received "' + typeof obj_channels + '" (at "' + path_channels + '")');
|
|
6439
|
+
}
|
|
6440
|
+
for (let i = 0; i < obj_channels.length; i++) {
|
|
6441
|
+
const obj_channels_item = obj_channels[i];
|
|
6442
|
+
const path_channels_item = path_channels + '[' + i + ']';
|
|
6443
|
+
if (typeof obj_channels_item !== 'string') {
|
|
6444
|
+
return new TypeError('Expected "string" but received "' + typeof obj_channels_item + '" (at "' + path_channels_item + '")');
|
|
6445
|
+
}
|
|
6444
6446
|
}
|
|
6445
6447
|
}
|
|
6446
|
-
|
|
6447
|
-
|
|
6448
|
-
|
|
6449
|
-
|
|
6450
|
-
|
|
6451
|
-
|
|
6452
|
-
|
|
6453
|
-
|
|
6454
|
-
|
|
6455
|
-
|
|
6448
|
+
if (obj.collaborators !== undefined) {
|
|
6449
|
+
const obj_collaborators = obj.collaborators;
|
|
6450
|
+
const path_collaborators = path + '.collaborators';
|
|
6451
|
+
if (!ArrayIsArray(obj_collaborators)) {
|
|
6452
|
+
return new TypeError('Expected "array" but received "' + typeof obj_collaborators + '" (at "' + path_collaborators + '")');
|
|
6453
|
+
}
|
|
6454
|
+
for (let i = 0; i < obj_collaborators.length; i++) {
|
|
6455
|
+
const obj_collaborators_item = obj_collaborators[i];
|
|
6456
|
+
const path_collaborators_item = path_collaborators + '[' + i + ']';
|
|
6457
|
+
if (typeof obj_collaborators_item !== 'object' || ArrayIsArray(obj_collaborators_item) || obj_collaborators_item === null) {
|
|
6458
|
+
return new TypeError('Expected "object" but received "' + typeof obj_collaborators_item + '" (at "' + path_collaborators_item + '")');
|
|
6459
|
+
}
|
|
6456
6460
|
}
|
|
6457
6461
|
}
|
|
6458
|
-
|
|
6459
|
-
|
|
6460
|
-
|
|
6461
|
-
|
|
6462
|
+
if (obj.defaultLanguage !== undefined) {
|
|
6463
|
+
const obj_defaultLanguage = obj.defaultLanguage;
|
|
6464
|
+
const path_defaultLanguage = path + '.defaultLanguage';
|
|
6465
|
+
if (typeof obj_defaultLanguage !== 'string') {
|
|
6466
|
+
return new TypeError('Expected "string" but received "' + typeof obj_defaultLanguage + '" (at "' + path_defaultLanguage + '")');
|
|
6467
|
+
}
|
|
6462
6468
|
}
|
|
6463
|
-
|
|
6464
|
-
|
|
6465
|
-
|
|
6466
|
-
|
|
6469
|
+
if (obj.description !== undefined) {
|
|
6470
|
+
const obj_description = obj.description;
|
|
6471
|
+
const path_description = path + '.description';
|
|
6472
|
+
if (typeof obj_description !== 'string') {
|
|
6473
|
+
return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
|
|
6474
|
+
}
|
|
6467
6475
|
}
|
|
6468
6476
|
if (obj.isOrchestratorModuleInstalled !== undefined) {
|
|
6469
6477
|
const obj_isOrchestratorModuleInstalled = obj.isOrchestratorModuleInstalled;
|
|
@@ -6472,31 +6480,39 @@ function validate$3(obj, path = 'ManagedContentSpaceInputRepresentation') {
|
|
|
6472
6480
|
return new TypeError('Expected "boolean" but received "' + typeof obj_isOrchestratorModuleInstalled + '" (at "' + path_isOrchestratorModuleInstalled + '")');
|
|
6473
6481
|
}
|
|
6474
6482
|
}
|
|
6475
|
-
|
|
6476
|
-
|
|
6477
|
-
|
|
6478
|
-
|
|
6479
|
-
|
|
6480
|
-
|
|
6481
|
-
const path_isUndeletable = path + '.isUndeletable';
|
|
6482
|
-
if (typeof obj_isUndeletable !== 'boolean') {
|
|
6483
|
-
return new TypeError('Expected "boolean" but received "' + typeof obj_isUndeletable + '" (at "' + path_isUndeletable + '")');
|
|
6483
|
+
if (obj.isSpaceV2 !== undefined) {
|
|
6484
|
+
const obj_isSpaceV2 = obj.isSpaceV2;
|
|
6485
|
+
const path_isSpaceV2 = path + '.isSpaceV2';
|
|
6486
|
+
if (typeof obj_isSpaceV2 !== 'boolean') {
|
|
6487
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isSpaceV2 + '" (at "' + path_isSpaceV2 + '")');
|
|
6488
|
+
}
|
|
6484
6489
|
}
|
|
6485
|
-
|
|
6486
|
-
|
|
6487
|
-
|
|
6488
|
-
|
|
6490
|
+
if (obj.isUndeletable !== undefined) {
|
|
6491
|
+
const obj_isUndeletable = obj.isUndeletable;
|
|
6492
|
+
const path_isUndeletable = path + '.isUndeletable';
|
|
6493
|
+
if (typeof obj_isUndeletable !== 'boolean') {
|
|
6494
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isUndeletable + '" (at "' + path_isUndeletable + '")');
|
|
6495
|
+
}
|
|
6489
6496
|
}
|
|
6490
|
-
|
|
6491
|
-
|
|
6492
|
-
|
|
6493
|
-
|
|
6497
|
+
if (obj.name !== undefined) {
|
|
6498
|
+
const obj_name = obj.name;
|
|
6499
|
+
const path_name = path + '.name';
|
|
6500
|
+
if (typeof obj_name !== 'string') {
|
|
6501
|
+
return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
|
|
6502
|
+
}
|
|
6494
6503
|
}
|
|
6495
|
-
|
|
6496
|
-
const
|
|
6497
|
-
const
|
|
6498
|
-
if (
|
|
6499
|
-
return new TypeError('Expected "
|
|
6504
|
+
if (obj.supportedLanguages !== undefined) {
|
|
6505
|
+
const obj_supportedLanguages = obj.supportedLanguages;
|
|
6506
|
+
const path_supportedLanguages = path + '.supportedLanguages';
|
|
6507
|
+
if (!ArrayIsArray(obj_supportedLanguages)) {
|
|
6508
|
+
return new TypeError('Expected "array" but received "' + typeof obj_supportedLanguages + '" (at "' + path_supportedLanguages + '")');
|
|
6509
|
+
}
|
|
6510
|
+
for (let i = 0; i < obj_supportedLanguages.length; i++) {
|
|
6511
|
+
const obj_supportedLanguages_item = obj_supportedLanguages[i];
|
|
6512
|
+
const path_supportedLanguages_item = path_supportedLanguages + '[' + i + ']';
|
|
6513
|
+
if (typeof obj_supportedLanguages_item !== 'string') {
|
|
6514
|
+
return new TypeError('Expected "string" but received "' + typeof obj_supportedLanguages_item + '" (at "' + path_supportedLanguages_item + '")');
|
|
6515
|
+
}
|
|
6500
6516
|
}
|
|
6501
6517
|
}
|
|
6502
6518
|
})();
|
|
@@ -2,15 +2,15 @@ import { Luvio as $64$luvio_engine_Luvio, Fragment as $64$luvio_engine_Fragment,
|
|
|
2
2
|
import { ManagedContentSpaceRepresentation as types_ManagedContentSpaceRepresentation_ManagedContentSpaceRepresentation } from '../types/ManagedContentSpaceRepresentation';
|
|
3
3
|
export interface ResourceRequestConfig {
|
|
4
4
|
body: {
|
|
5
|
-
channels
|
|
6
|
-
collaborators
|
|
7
|
-
defaultLanguage
|
|
8
|
-
description
|
|
5
|
+
channels?: Array<string>;
|
|
6
|
+
collaborators?: Array<{}>;
|
|
7
|
+
defaultLanguage?: string;
|
|
8
|
+
description?: string;
|
|
9
9
|
isOrchestratorModuleInstalled?: boolean;
|
|
10
|
-
isSpaceV2
|
|
11
|
-
isUndeletable
|
|
12
|
-
name
|
|
13
|
-
supportedLanguages
|
|
10
|
+
isSpaceV2?: boolean;
|
|
11
|
+
isUndeletable?: boolean;
|
|
12
|
+
name?: string;
|
|
13
|
+
supportedLanguages?: Array<string>;
|
|
14
14
|
};
|
|
15
15
|
}
|
|
16
16
|
export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap } from '@luvio/engine';
|
|
2
|
-
export declare const VERSION = "
|
|
2
|
+
export declare const VERSION = "ce22794c47b553d8716f745489104d9a";
|
|
3
3
|
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
4
4
|
export declare const RepresentationType: string;
|
|
5
5
|
export declare function normalize(input: ManagedContentSpaceInputRepresentation, existing: ManagedContentSpaceInputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ManagedContentSpaceInputRepresentationNormalized;
|
|
@@ -16,23 +16,23 @@ export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: M
|
|
|
16
16
|
*/
|
|
17
17
|
export interface ManagedContentSpaceInputRepresentationNormalized {
|
|
18
18
|
/** List of CMS Channels to be associated with the Managed Content Space */
|
|
19
|
-
channels
|
|
19
|
+
channels?: Array<string>;
|
|
20
20
|
/** List of contributors to be associated with the Managed Content Space */
|
|
21
|
-
collaborators
|
|
21
|
+
collaborators?: Array<{}>;
|
|
22
22
|
/** Default Language of the Managed Content Space */
|
|
23
|
-
defaultLanguage
|
|
23
|
+
defaultLanguage?: string;
|
|
24
24
|
/** Description of the Managed Content Space */
|
|
25
|
-
description
|
|
25
|
+
description?: string;
|
|
26
26
|
/** Boolean flag depiciting orchestrator module installation status associated with the Managed Content Space */
|
|
27
27
|
isOrchestratorModuleInstalled?: boolean;
|
|
28
28
|
/** Boolean flag depicting space as 2.0 if set true */
|
|
29
|
-
isSpaceV2
|
|
29
|
+
isSpaceV2?: boolean;
|
|
30
30
|
/** Boolean flag depicting space as undeletable if set true */
|
|
31
|
-
isUndeletable
|
|
31
|
+
isUndeletable?: boolean;
|
|
32
32
|
/** Name of the Managed Content Space */
|
|
33
|
-
name
|
|
33
|
+
name?: string;
|
|
34
34
|
/** List of languages supported by the Managed Content Space */
|
|
35
|
-
supportedLanguages
|
|
35
|
+
supportedLanguages?: Array<string>;
|
|
36
36
|
}
|
|
37
37
|
/**
|
|
38
38
|
* The input representation for a Managed Content Space
|
|
@@ -41,13 +41,13 @@ export interface ManagedContentSpaceInputRepresentationNormalized {
|
|
|
41
41
|
* (none)
|
|
42
42
|
*/
|
|
43
43
|
export interface ManagedContentSpaceInputRepresentation {
|
|
44
|
-
channels
|
|
45
|
-
collaborators
|
|
46
|
-
defaultLanguage
|
|
47
|
-
description
|
|
44
|
+
channels?: Array<string>;
|
|
45
|
+
collaborators?: Array<{}>;
|
|
46
|
+
defaultLanguage?: string;
|
|
47
|
+
description?: string;
|
|
48
48
|
isOrchestratorModuleInstalled?: boolean;
|
|
49
|
-
isSpaceV2
|
|
50
|
-
isUndeletable
|
|
51
|
-
name
|
|
52
|
-
supportedLanguages
|
|
49
|
+
isSpaceV2?: boolean;
|
|
50
|
+
isUndeletable?: boolean;
|
|
51
|
+
name?: string;
|
|
52
|
+
supportedLanguages?: Array<string>;
|
|
53
53
|
}
|
|
@@ -6435,39 +6435,47 @@
|
|
|
6435
6435
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
6436
6436
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
6437
6437
|
}
|
|
6438
|
-
|
|
6439
|
-
|
|
6440
|
-
|
|
6441
|
-
|
|
6442
|
-
|
|
6443
|
-
|
|
6444
|
-
|
|
6445
|
-
|
|
6446
|
-
|
|
6447
|
-
|
|
6438
|
+
if (obj.channels !== undefined) {
|
|
6439
|
+
const obj_channels = obj.channels;
|
|
6440
|
+
const path_channels = path + '.channels';
|
|
6441
|
+
if (!ArrayIsArray(obj_channels)) {
|
|
6442
|
+
return new TypeError('Expected "array" but received "' + typeof obj_channels + '" (at "' + path_channels + '")');
|
|
6443
|
+
}
|
|
6444
|
+
for (let i = 0; i < obj_channels.length; i++) {
|
|
6445
|
+
const obj_channels_item = obj_channels[i];
|
|
6446
|
+
const path_channels_item = path_channels + '[' + i + ']';
|
|
6447
|
+
if (typeof obj_channels_item !== 'string') {
|
|
6448
|
+
return new TypeError('Expected "string" but received "' + typeof obj_channels_item + '" (at "' + path_channels_item + '")');
|
|
6449
|
+
}
|
|
6448
6450
|
}
|
|
6449
6451
|
}
|
|
6450
|
-
|
|
6451
|
-
|
|
6452
|
-
|
|
6453
|
-
|
|
6454
|
-
|
|
6455
|
-
|
|
6456
|
-
|
|
6457
|
-
|
|
6458
|
-
|
|
6459
|
-
|
|
6452
|
+
if (obj.collaborators !== undefined) {
|
|
6453
|
+
const obj_collaborators = obj.collaborators;
|
|
6454
|
+
const path_collaborators = path + '.collaborators';
|
|
6455
|
+
if (!ArrayIsArray(obj_collaborators)) {
|
|
6456
|
+
return new TypeError('Expected "array" but received "' + typeof obj_collaborators + '" (at "' + path_collaborators + '")');
|
|
6457
|
+
}
|
|
6458
|
+
for (let i = 0; i < obj_collaborators.length; i++) {
|
|
6459
|
+
const obj_collaborators_item = obj_collaborators[i];
|
|
6460
|
+
const path_collaborators_item = path_collaborators + '[' + i + ']';
|
|
6461
|
+
if (typeof obj_collaborators_item !== 'object' || ArrayIsArray(obj_collaborators_item) || obj_collaborators_item === null) {
|
|
6462
|
+
return new TypeError('Expected "object" but received "' + typeof obj_collaborators_item + '" (at "' + path_collaborators_item + '")');
|
|
6463
|
+
}
|
|
6460
6464
|
}
|
|
6461
6465
|
}
|
|
6462
|
-
|
|
6463
|
-
|
|
6464
|
-
|
|
6465
|
-
|
|
6466
|
+
if (obj.defaultLanguage !== undefined) {
|
|
6467
|
+
const obj_defaultLanguage = obj.defaultLanguage;
|
|
6468
|
+
const path_defaultLanguage = path + '.defaultLanguage';
|
|
6469
|
+
if (typeof obj_defaultLanguage !== 'string') {
|
|
6470
|
+
return new TypeError('Expected "string" but received "' + typeof obj_defaultLanguage + '" (at "' + path_defaultLanguage + '")');
|
|
6471
|
+
}
|
|
6466
6472
|
}
|
|
6467
|
-
|
|
6468
|
-
|
|
6469
|
-
|
|
6470
|
-
|
|
6473
|
+
if (obj.description !== undefined) {
|
|
6474
|
+
const obj_description = obj.description;
|
|
6475
|
+
const path_description = path + '.description';
|
|
6476
|
+
if (typeof obj_description !== 'string') {
|
|
6477
|
+
return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
|
|
6478
|
+
}
|
|
6471
6479
|
}
|
|
6472
6480
|
if (obj.isOrchestratorModuleInstalled !== undefined) {
|
|
6473
6481
|
const obj_isOrchestratorModuleInstalled = obj.isOrchestratorModuleInstalled;
|
|
@@ -6476,31 +6484,39 @@
|
|
|
6476
6484
|
return new TypeError('Expected "boolean" but received "' + typeof obj_isOrchestratorModuleInstalled + '" (at "' + path_isOrchestratorModuleInstalled + '")');
|
|
6477
6485
|
}
|
|
6478
6486
|
}
|
|
6479
|
-
|
|
6480
|
-
|
|
6481
|
-
|
|
6482
|
-
|
|
6483
|
-
|
|
6484
|
-
|
|
6485
|
-
const path_isUndeletable = path + '.isUndeletable';
|
|
6486
|
-
if (typeof obj_isUndeletable !== 'boolean') {
|
|
6487
|
-
return new TypeError('Expected "boolean" but received "' + typeof obj_isUndeletable + '" (at "' + path_isUndeletable + '")');
|
|
6487
|
+
if (obj.isSpaceV2 !== undefined) {
|
|
6488
|
+
const obj_isSpaceV2 = obj.isSpaceV2;
|
|
6489
|
+
const path_isSpaceV2 = path + '.isSpaceV2';
|
|
6490
|
+
if (typeof obj_isSpaceV2 !== 'boolean') {
|
|
6491
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isSpaceV2 + '" (at "' + path_isSpaceV2 + '")');
|
|
6492
|
+
}
|
|
6488
6493
|
}
|
|
6489
|
-
|
|
6490
|
-
|
|
6491
|
-
|
|
6492
|
-
|
|
6494
|
+
if (obj.isUndeletable !== undefined) {
|
|
6495
|
+
const obj_isUndeletable = obj.isUndeletable;
|
|
6496
|
+
const path_isUndeletable = path + '.isUndeletable';
|
|
6497
|
+
if (typeof obj_isUndeletable !== 'boolean') {
|
|
6498
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isUndeletable + '" (at "' + path_isUndeletable + '")');
|
|
6499
|
+
}
|
|
6493
6500
|
}
|
|
6494
|
-
|
|
6495
|
-
|
|
6496
|
-
|
|
6497
|
-
|
|
6501
|
+
if (obj.name !== undefined) {
|
|
6502
|
+
const obj_name = obj.name;
|
|
6503
|
+
const path_name = path + '.name';
|
|
6504
|
+
if (typeof obj_name !== 'string') {
|
|
6505
|
+
return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
|
|
6506
|
+
}
|
|
6498
6507
|
}
|
|
6499
|
-
|
|
6500
|
-
const
|
|
6501
|
-
const
|
|
6502
|
-
if (
|
|
6503
|
-
return new TypeError('Expected "
|
|
6508
|
+
if (obj.supportedLanguages !== undefined) {
|
|
6509
|
+
const obj_supportedLanguages = obj.supportedLanguages;
|
|
6510
|
+
const path_supportedLanguages = path + '.supportedLanguages';
|
|
6511
|
+
if (!ArrayIsArray(obj_supportedLanguages)) {
|
|
6512
|
+
return new TypeError('Expected "array" but received "' + typeof obj_supportedLanguages + '" (at "' + path_supportedLanguages + '")');
|
|
6513
|
+
}
|
|
6514
|
+
for (let i = 0; i < obj_supportedLanguages.length; i++) {
|
|
6515
|
+
const obj_supportedLanguages_item = obj_supportedLanguages[i];
|
|
6516
|
+
const path_supportedLanguages_item = path_supportedLanguages + '[' + i + ']';
|
|
6517
|
+
if (typeof obj_supportedLanguages_item !== 'string') {
|
|
6518
|
+
return new TypeError('Expected "string" but received "' + typeof obj_supportedLanguages_item + '" (at "' + path_supportedLanguages_item + '")');
|
|
6519
|
+
}
|
|
6504
6520
|
}
|
|
6505
6521
|
}
|
|
6506
6522
|
})();
|
|
@@ -6472,39 +6472,47 @@
|
|
|
6472
6472
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
6473
6473
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
6474
6474
|
}
|
|
6475
|
-
|
|
6476
|
-
|
|
6477
|
-
|
|
6478
|
-
|
|
6479
|
-
|
|
6480
|
-
|
|
6481
|
-
var
|
|
6482
|
-
|
|
6483
|
-
|
|
6484
|
-
|
|
6475
|
+
if (obj.channels !== undefined) {
|
|
6476
|
+
var obj_channels = obj.channels;
|
|
6477
|
+
var path_channels = path + '.channels';
|
|
6478
|
+
if (!ArrayIsArray(obj_channels)) {
|
|
6479
|
+
return new TypeError('Expected "array" but received "' + typeof obj_channels + '" (at "' + path_channels + '")');
|
|
6480
|
+
}
|
|
6481
|
+
for (var i = 0; i < obj_channels.length; i++) {
|
|
6482
|
+
var obj_channels_item = obj_channels[i];
|
|
6483
|
+
var path_channels_item = path_channels + '[' + i + ']';
|
|
6484
|
+
if (typeof obj_channels_item !== 'string') {
|
|
6485
|
+
return new TypeError('Expected "string" but received "' + typeof obj_channels_item + '" (at "' + path_channels_item + '")');
|
|
6486
|
+
}
|
|
6485
6487
|
}
|
|
6486
6488
|
}
|
|
6487
|
-
|
|
6488
|
-
|
|
6489
|
-
|
|
6490
|
-
|
|
6491
|
-
|
|
6492
|
-
|
|
6493
|
-
var
|
|
6494
|
-
|
|
6495
|
-
|
|
6496
|
-
|
|
6489
|
+
if (obj.collaborators !== undefined) {
|
|
6490
|
+
var obj_collaborators = obj.collaborators;
|
|
6491
|
+
var path_collaborators = path + '.collaborators';
|
|
6492
|
+
if (!ArrayIsArray(obj_collaborators)) {
|
|
6493
|
+
return new TypeError('Expected "array" but received "' + typeof obj_collaborators + '" (at "' + path_collaborators + '")');
|
|
6494
|
+
}
|
|
6495
|
+
for (var i = 0; i < obj_collaborators.length; i++) {
|
|
6496
|
+
var obj_collaborators_item = obj_collaborators[i];
|
|
6497
|
+
var path_collaborators_item = path_collaborators + '[' + i + ']';
|
|
6498
|
+
if (typeof obj_collaborators_item !== 'object' || ArrayIsArray(obj_collaborators_item) || obj_collaborators_item === null) {
|
|
6499
|
+
return new TypeError('Expected "object" but received "' + typeof obj_collaborators_item + '" (at "' + path_collaborators_item + '")');
|
|
6500
|
+
}
|
|
6497
6501
|
}
|
|
6498
6502
|
}
|
|
6499
|
-
|
|
6500
|
-
|
|
6501
|
-
|
|
6502
|
-
|
|
6503
|
+
if (obj.defaultLanguage !== undefined) {
|
|
6504
|
+
var obj_defaultLanguage = obj.defaultLanguage;
|
|
6505
|
+
var path_defaultLanguage = path + '.defaultLanguage';
|
|
6506
|
+
if (typeof obj_defaultLanguage !== 'string') {
|
|
6507
|
+
return new TypeError('Expected "string" but received "' + typeof obj_defaultLanguage + '" (at "' + path_defaultLanguage + '")');
|
|
6508
|
+
}
|
|
6503
6509
|
}
|
|
6504
|
-
|
|
6505
|
-
|
|
6506
|
-
|
|
6507
|
-
|
|
6510
|
+
if (obj.description !== undefined) {
|
|
6511
|
+
var obj_description = obj.description;
|
|
6512
|
+
var path_description = path + '.description';
|
|
6513
|
+
if (typeof obj_description !== 'string') {
|
|
6514
|
+
return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
|
|
6515
|
+
}
|
|
6508
6516
|
}
|
|
6509
6517
|
if (obj.isOrchestratorModuleInstalled !== undefined) {
|
|
6510
6518
|
var obj_isOrchestratorModuleInstalled = obj.isOrchestratorModuleInstalled;
|
|
@@ -6513,31 +6521,39 @@
|
|
|
6513
6521
|
return new TypeError('Expected "boolean" but received "' + typeof obj_isOrchestratorModuleInstalled + '" (at "' + path_isOrchestratorModuleInstalled + '")');
|
|
6514
6522
|
}
|
|
6515
6523
|
}
|
|
6516
|
-
|
|
6517
|
-
|
|
6518
|
-
|
|
6519
|
-
|
|
6520
|
-
|
|
6521
|
-
|
|
6522
|
-
var path_isUndeletable = path + '.isUndeletable';
|
|
6523
|
-
if (typeof obj_isUndeletable !== 'boolean') {
|
|
6524
|
-
return new TypeError('Expected "boolean" but received "' + typeof obj_isUndeletable + '" (at "' + path_isUndeletable + '")');
|
|
6524
|
+
if (obj.isSpaceV2 !== undefined) {
|
|
6525
|
+
var obj_isSpaceV2 = obj.isSpaceV2;
|
|
6526
|
+
var path_isSpaceV2 = path + '.isSpaceV2';
|
|
6527
|
+
if (typeof obj_isSpaceV2 !== 'boolean') {
|
|
6528
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isSpaceV2 + '" (at "' + path_isSpaceV2 + '")');
|
|
6529
|
+
}
|
|
6525
6530
|
}
|
|
6526
|
-
|
|
6527
|
-
|
|
6528
|
-
|
|
6529
|
-
|
|
6531
|
+
if (obj.isUndeletable !== undefined) {
|
|
6532
|
+
var obj_isUndeletable = obj.isUndeletable;
|
|
6533
|
+
var path_isUndeletable = path + '.isUndeletable';
|
|
6534
|
+
if (typeof obj_isUndeletable !== 'boolean') {
|
|
6535
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isUndeletable + '" (at "' + path_isUndeletable + '")');
|
|
6536
|
+
}
|
|
6530
6537
|
}
|
|
6531
|
-
|
|
6532
|
-
|
|
6533
|
-
|
|
6534
|
-
|
|
6538
|
+
if (obj.name !== undefined) {
|
|
6539
|
+
var obj_name = obj.name;
|
|
6540
|
+
var path_name = path + '.name';
|
|
6541
|
+
if (typeof obj_name !== 'string') {
|
|
6542
|
+
return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
|
|
6543
|
+
}
|
|
6535
6544
|
}
|
|
6536
|
-
|
|
6537
|
-
var
|
|
6538
|
-
var
|
|
6539
|
-
if (
|
|
6540
|
-
return new TypeError('Expected "
|
|
6545
|
+
if (obj.supportedLanguages !== undefined) {
|
|
6546
|
+
var obj_supportedLanguages = obj.supportedLanguages;
|
|
6547
|
+
var path_supportedLanguages = path + '.supportedLanguages';
|
|
6548
|
+
if (!ArrayIsArray(obj_supportedLanguages)) {
|
|
6549
|
+
return new TypeError('Expected "array" but received "' + typeof obj_supportedLanguages + '" (at "' + path_supportedLanguages + '")');
|
|
6550
|
+
}
|
|
6551
|
+
for (var i = 0; i < obj_supportedLanguages.length; i++) {
|
|
6552
|
+
var obj_supportedLanguages_item = obj_supportedLanguages[i];
|
|
6553
|
+
var path_supportedLanguages_item = path_supportedLanguages + '[' + i + ']';
|
|
6554
|
+
if (typeof obj_supportedLanguages_item !== 'string') {
|
|
6555
|
+
return new TypeError('Expected "string" but received "' + typeof obj_supportedLanguages_item + '" (at "' + path_supportedLanguages_item + '")');
|
|
6556
|
+
}
|
|
6541
6557
|
}
|
|
6542
6558
|
}
|
|
6543
6559
|
})();
|
package/package.json
CHANGED
package/sfdc/index.js
CHANGED
|
@@ -6358,39 +6358,47 @@ function validate$5(obj, path = 'ManagedContentSpaceInputRepresentation') {
|
|
|
6358
6358
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
6359
6359
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
6360
6360
|
}
|
|
6361
|
-
|
|
6362
|
-
|
|
6363
|
-
|
|
6364
|
-
|
|
6365
|
-
|
|
6366
|
-
|
|
6367
|
-
|
|
6368
|
-
|
|
6369
|
-
|
|
6370
|
-
|
|
6361
|
+
if (obj.channels !== undefined) {
|
|
6362
|
+
const obj_channels = obj.channels;
|
|
6363
|
+
const path_channels = path + '.channels';
|
|
6364
|
+
if (!ArrayIsArray(obj_channels)) {
|
|
6365
|
+
return new TypeError('Expected "array" but received "' + typeof obj_channels + '" (at "' + path_channels + '")');
|
|
6366
|
+
}
|
|
6367
|
+
for (let i = 0; i < obj_channels.length; i++) {
|
|
6368
|
+
const obj_channels_item = obj_channels[i];
|
|
6369
|
+
const path_channels_item = path_channels + '[' + i + ']';
|
|
6370
|
+
if (typeof obj_channels_item !== 'string') {
|
|
6371
|
+
return new TypeError('Expected "string" but received "' + typeof obj_channels_item + '" (at "' + path_channels_item + '")');
|
|
6372
|
+
}
|
|
6371
6373
|
}
|
|
6372
6374
|
}
|
|
6373
|
-
|
|
6374
|
-
|
|
6375
|
-
|
|
6376
|
-
|
|
6377
|
-
|
|
6378
|
-
|
|
6379
|
-
|
|
6380
|
-
|
|
6381
|
-
|
|
6382
|
-
|
|
6375
|
+
if (obj.collaborators !== undefined) {
|
|
6376
|
+
const obj_collaborators = obj.collaborators;
|
|
6377
|
+
const path_collaborators = path + '.collaborators';
|
|
6378
|
+
if (!ArrayIsArray(obj_collaborators)) {
|
|
6379
|
+
return new TypeError('Expected "array" but received "' + typeof obj_collaborators + '" (at "' + path_collaborators + '")');
|
|
6380
|
+
}
|
|
6381
|
+
for (let i = 0; i < obj_collaborators.length; i++) {
|
|
6382
|
+
const obj_collaborators_item = obj_collaborators[i];
|
|
6383
|
+
const path_collaborators_item = path_collaborators + '[' + i + ']';
|
|
6384
|
+
if (typeof obj_collaborators_item !== 'object' || ArrayIsArray(obj_collaborators_item) || obj_collaborators_item === null) {
|
|
6385
|
+
return new TypeError('Expected "object" but received "' + typeof obj_collaborators_item + '" (at "' + path_collaborators_item + '")');
|
|
6386
|
+
}
|
|
6383
6387
|
}
|
|
6384
6388
|
}
|
|
6385
|
-
|
|
6386
|
-
|
|
6387
|
-
|
|
6388
|
-
|
|
6389
|
+
if (obj.defaultLanguage !== undefined) {
|
|
6390
|
+
const obj_defaultLanguage = obj.defaultLanguage;
|
|
6391
|
+
const path_defaultLanguage = path + '.defaultLanguage';
|
|
6392
|
+
if (typeof obj_defaultLanguage !== 'string') {
|
|
6393
|
+
return new TypeError('Expected "string" but received "' + typeof obj_defaultLanguage + '" (at "' + path_defaultLanguage + '")');
|
|
6394
|
+
}
|
|
6389
6395
|
}
|
|
6390
|
-
|
|
6391
|
-
|
|
6392
|
-
|
|
6393
|
-
|
|
6396
|
+
if (obj.description !== undefined) {
|
|
6397
|
+
const obj_description = obj.description;
|
|
6398
|
+
const path_description = path + '.description';
|
|
6399
|
+
if (typeof obj_description !== 'string') {
|
|
6400
|
+
return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
|
|
6401
|
+
}
|
|
6394
6402
|
}
|
|
6395
6403
|
if (obj.isOrchestratorModuleInstalled !== undefined) {
|
|
6396
6404
|
const obj_isOrchestratorModuleInstalled = obj.isOrchestratorModuleInstalled;
|
|
@@ -6399,31 +6407,39 @@ function validate$5(obj, path = 'ManagedContentSpaceInputRepresentation') {
|
|
|
6399
6407
|
return new TypeError('Expected "boolean" but received "' + typeof obj_isOrchestratorModuleInstalled + '" (at "' + path_isOrchestratorModuleInstalled + '")');
|
|
6400
6408
|
}
|
|
6401
6409
|
}
|
|
6402
|
-
|
|
6403
|
-
|
|
6404
|
-
|
|
6405
|
-
|
|
6406
|
-
|
|
6407
|
-
|
|
6408
|
-
const path_isUndeletable = path + '.isUndeletable';
|
|
6409
|
-
if (typeof obj_isUndeletable !== 'boolean') {
|
|
6410
|
-
return new TypeError('Expected "boolean" but received "' + typeof obj_isUndeletable + '" (at "' + path_isUndeletable + '")');
|
|
6410
|
+
if (obj.isSpaceV2 !== undefined) {
|
|
6411
|
+
const obj_isSpaceV2 = obj.isSpaceV2;
|
|
6412
|
+
const path_isSpaceV2 = path + '.isSpaceV2';
|
|
6413
|
+
if (typeof obj_isSpaceV2 !== 'boolean') {
|
|
6414
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isSpaceV2 + '" (at "' + path_isSpaceV2 + '")');
|
|
6415
|
+
}
|
|
6411
6416
|
}
|
|
6412
|
-
|
|
6413
|
-
|
|
6414
|
-
|
|
6415
|
-
|
|
6417
|
+
if (obj.isUndeletable !== undefined) {
|
|
6418
|
+
const obj_isUndeletable = obj.isUndeletable;
|
|
6419
|
+
const path_isUndeletable = path + '.isUndeletable';
|
|
6420
|
+
if (typeof obj_isUndeletable !== 'boolean') {
|
|
6421
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isUndeletable + '" (at "' + path_isUndeletable + '")');
|
|
6422
|
+
}
|
|
6416
6423
|
}
|
|
6417
|
-
|
|
6418
|
-
|
|
6419
|
-
|
|
6420
|
-
|
|
6424
|
+
if (obj.name !== undefined) {
|
|
6425
|
+
const obj_name = obj.name;
|
|
6426
|
+
const path_name = path + '.name';
|
|
6427
|
+
if (typeof obj_name !== 'string') {
|
|
6428
|
+
return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
|
|
6429
|
+
}
|
|
6421
6430
|
}
|
|
6422
|
-
|
|
6423
|
-
const
|
|
6424
|
-
const
|
|
6425
|
-
if (
|
|
6426
|
-
return new TypeError('Expected "
|
|
6431
|
+
if (obj.supportedLanguages !== undefined) {
|
|
6432
|
+
const obj_supportedLanguages = obj.supportedLanguages;
|
|
6433
|
+
const path_supportedLanguages = path + '.supportedLanguages';
|
|
6434
|
+
if (!ArrayIsArray(obj_supportedLanguages)) {
|
|
6435
|
+
return new TypeError('Expected "array" but received "' + typeof obj_supportedLanguages + '" (at "' + path_supportedLanguages + '")');
|
|
6436
|
+
}
|
|
6437
|
+
for (let i = 0; i < obj_supportedLanguages.length; i++) {
|
|
6438
|
+
const obj_supportedLanguages_item = obj_supportedLanguages[i];
|
|
6439
|
+
const path_supportedLanguages_item = path_supportedLanguages + '[' + i + ']';
|
|
6440
|
+
if (typeof obj_supportedLanguages_item !== 'string') {
|
|
6441
|
+
return new TypeError('Expected "string" but received "' + typeof obj_supportedLanguages_item + '" (at "' + path_supportedLanguages_item + '")');
|
|
6442
|
+
}
|
|
6427
6443
|
}
|
|
6428
6444
|
}
|
|
6429
6445
|
})();
|
|
@@ -7391,4 +7407,4 @@ withDefaultLuvio((luvio) => {
|
|
|
7391
7407
|
});
|
|
7392
7408
|
|
|
7393
7409
|
export { createDeployment, createManagedContent, createManagedContentExportV2Job, createManagedContentImportV2Job, createManagedContentVariant, createTranslationV2Job, deleteManagedContentVariant, getCollectionItems, getCollectionItems_imperative, getManagedContent, getManagedContentByFolderId, getManagedContentByFolderId_imperative, getManagedContentReferencedBy, getManagedContentReferencedBy_imperative, getManagedContentSpace, getManagedContentSpaceNotifyChange, getManagedContentSpace_imperative, getManagedContentSpaces, getManagedContentSpaces_imperative, getManagedContentVariant, getManagedContentVariantNotifyChange, getManagedContentVariantReferences, getManagedContentVariantReferences_imperative, getManagedContentVariantRendition, getManagedContentVariantRendition_imperative, getManagedContentVariantVersions, getManagedContentVariantVersionsNotifyChange, getManagedContentVariantVersions_imperative, getManagedContentVariant_imperative, getManagedContent_imperative, getSearchResults, getSearchResults_imperative, patchManagedContentSpace, publishManagedContent, replaceManagedContentVariant, unpublishManagedContent };
|
|
7394
|
-
// version: 1.124.
|
|
7410
|
+
// version: 1.124.2-4dc3034f1
|
package/src/raml/api.raml
CHANGED
|
@@ -1582,20 +1582,24 @@ types:
|
|
|
1582
1582
|
description: List of CMS Channels to be associated with the Managed Content
|
|
1583
1583
|
Space
|
|
1584
1584
|
type: array
|
|
1585
|
+
required: false # TODO handrolled W-9314597
|
|
1585
1586
|
items:
|
|
1586
1587
|
type: string
|
|
1587
1588
|
collaborators:
|
|
1588
1589
|
description: List of contributors to be associated with the Managed Content
|
|
1589
1590
|
Space
|
|
1590
1591
|
type: array
|
|
1592
|
+
required: false # TODO handrolled W-9314597
|
|
1591
1593
|
items:
|
|
1592
1594
|
type: object
|
|
1593
1595
|
defaultLanguage:
|
|
1594
1596
|
description: Default Language of the Managed Content Space
|
|
1595
1597
|
type: string
|
|
1598
|
+
required: false # TODO handrolled W-9314597
|
|
1596
1599
|
description:
|
|
1597
1600
|
description: Description of the Managed Content Space
|
|
1598
1601
|
type: string
|
|
1602
|
+
required: false # TODO handrolled W-9314597
|
|
1599
1603
|
isOrchestratorModuleInstalled:
|
|
1600
1604
|
description: Boolean flag depiciting orchestrator module installation status
|
|
1601
1605
|
associated with the Managed Content Space
|
|
@@ -1604,15 +1608,19 @@ types:
|
|
|
1604
1608
|
isSpaceV2:
|
|
1605
1609
|
description: Boolean flag depicting space as 2.0 if set true
|
|
1606
1610
|
type: boolean
|
|
1611
|
+
required: false # TODO handrolled W-9314597
|
|
1607
1612
|
isUndeletable:
|
|
1608
1613
|
description: Boolean flag depicting space as undeletable if set true
|
|
1609
1614
|
type: boolean
|
|
1615
|
+
required: false # TODO handrolled W-9314597
|
|
1610
1616
|
name:
|
|
1611
1617
|
description: Name of the Managed Content Space
|
|
1612
1618
|
type: string
|
|
1619
|
+
required: false # TODO handrolled W-9314597
|
|
1613
1620
|
supportedLanguages:
|
|
1614
1621
|
description: List of languages supported by the Managed Content Space
|
|
1615
1622
|
type: array
|
|
1623
|
+
required: false # TODO handrolled W-9314597
|
|
1616
1624
|
items:
|
|
1617
1625
|
type: string
|
|
1618
1626
|
ManagedContentSpaceInputWrapperRepresentation: # TODO Hand-rolled W-12227033
|