@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.
@@ -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
- const obj_channels = obj.channels;
6435
- const path_channels = path + '.channels';
6436
- if (!ArrayIsArray(obj_channels)) {
6437
- return new TypeError('Expected "array" but received "' + typeof obj_channels + '" (at "' + path_channels + '")');
6438
- }
6439
- for (let i = 0; i < obj_channels.length; i++) {
6440
- const obj_channels_item = obj_channels[i];
6441
- const path_channels_item = path_channels + '[' + i + ']';
6442
- if (typeof obj_channels_item !== 'string') {
6443
- return new TypeError('Expected "string" but received "' + typeof obj_channels_item + '" (at "' + path_channels_item + '")');
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
- const obj_collaborators = obj.collaborators;
6447
- const path_collaborators = path + '.collaborators';
6448
- if (!ArrayIsArray(obj_collaborators)) {
6449
- return new TypeError('Expected "array" but received "' + typeof obj_collaborators + '" (at "' + path_collaborators + '")');
6450
- }
6451
- for (let i = 0; i < obj_collaborators.length; i++) {
6452
- const obj_collaborators_item = obj_collaborators[i];
6453
- const path_collaborators_item = path_collaborators + '[' + i + ']';
6454
- if (typeof obj_collaborators_item !== 'object' || ArrayIsArray(obj_collaborators_item) || obj_collaborators_item === null) {
6455
- return new TypeError('Expected "object" but received "' + typeof obj_collaborators_item + '" (at "' + path_collaborators_item + '")');
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
- const obj_defaultLanguage = obj.defaultLanguage;
6459
- const path_defaultLanguage = path + '.defaultLanguage';
6460
- if (typeof obj_defaultLanguage !== 'string') {
6461
- return new TypeError('Expected "string" but received "' + typeof obj_defaultLanguage + '" (at "' + path_defaultLanguage + '")');
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
- const obj_description = obj.description;
6464
- const path_description = path + '.description';
6465
- if (typeof obj_description !== 'string') {
6466
- return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
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
- const obj_isSpaceV2 = obj.isSpaceV2;
6476
- const path_isSpaceV2 = path + '.isSpaceV2';
6477
- if (typeof obj_isSpaceV2 !== 'boolean') {
6478
- return new TypeError('Expected "boolean" but received "' + typeof obj_isSpaceV2 + '" (at "' + path_isSpaceV2 + '")');
6479
- }
6480
- const obj_isUndeletable = obj.isUndeletable;
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
- const obj_name = obj.name;
6486
- const path_name = path + '.name';
6487
- if (typeof obj_name !== 'string') {
6488
- return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
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
- const obj_supportedLanguages = obj.supportedLanguages;
6491
- const path_supportedLanguages = path + '.supportedLanguages';
6492
- if (!ArrayIsArray(obj_supportedLanguages)) {
6493
- return new TypeError('Expected "array" but received "' + typeof obj_supportedLanguages + '" (at "' + path_supportedLanguages + '")');
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
- for (let i = 0; i < obj_supportedLanguages.length; i++) {
6496
- const obj_supportedLanguages_item = obj_supportedLanguages[i];
6497
- const path_supportedLanguages_item = path_supportedLanguages + '[' + i + ']';
6498
- if (typeof obj_supportedLanguages_item !== 'string') {
6499
- return new TypeError('Expected "string" but received "' + typeof obj_supportedLanguages_item + '" (at "' + path_supportedLanguages_item + '")');
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: Array<string>;
6
- collaborators: Array<{}>;
7
- defaultLanguage: string;
8
- description: string;
5
+ channels?: Array<string>;
6
+ collaborators?: Array<{}>;
7
+ defaultLanguage?: string;
8
+ description?: string;
9
9
  isOrchestratorModuleInstalled?: boolean;
10
- isSpaceV2: boolean;
11
- isUndeletable: boolean;
12
- name: string;
13
- supportedLanguages: Array<string>;
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 = "b90936c5f4eeabbca98a56429c84a9a4";
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: Array<string>;
19
+ channels?: Array<string>;
20
20
  /** List of contributors to be associated with the Managed Content Space */
21
- collaborators: Array<{}>;
21
+ collaborators?: Array<{}>;
22
22
  /** Default Language of the Managed Content Space */
23
- defaultLanguage: string;
23
+ defaultLanguage?: string;
24
24
  /** Description of the Managed Content Space */
25
- description: string;
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: boolean;
29
+ isSpaceV2?: boolean;
30
30
  /** Boolean flag depicting space as undeletable if set true */
31
- isUndeletable: boolean;
31
+ isUndeletable?: boolean;
32
32
  /** Name of the Managed Content Space */
33
- name: string;
33
+ name?: string;
34
34
  /** List of languages supported by the Managed Content Space */
35
- supportedLanguages: Array<string>;
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: Array<string>;
45
- collaborators: Array<{}>;
46
- defaultLanguage: string;
47
- description: string;
44
+ channels?: Array<string>;
45
+ collaborators?: Array<{}>;
46
+ defaultLanguage?: string;
47
+ description?: string;
48
48
  isOrchestratorModuleInstalled?: boolean;
49
- isSpaceV2: boolean;
50
- isUndeletable: boolean;
51
- name: string;
52
- supportedLanguages: Array<string>;
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
- const obj_channels = obj.channels;
6439
- const path_channels = path + '.channels';
6440
- if (!ArrayIsArray(obj_channels)) {
6441
- return new TypeError('Expected "array" but received "' + typeof obj_channels + '" (at "' + path_channels + '")');
6442
- }
6443
- for (let i = 0; i < obj_channels.length; i++) {
6444
- const obj_channels_item = obj_channels[i];
6445
- const path_channels_item = path_channels + '[' + i + ']';
6446
- if (typeof obj_channels_item !== 'string') {
6447
- return new TypeError('Expected "string" but received "' + typeof obj_channels_item + '" (at "' + path_channels_item + '")');
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
- const obj_collaborators = obj.collaborators;
6451
- const path_collaborators = path + '.collaborators';
6452
- if (!ArrayIsArray(obj_collaborators)) {
6453
- return new TypeError('Expected "array" but received "' + typeof obj_collaborators + '" (at "' + path_collaborators + '")');
6454
- }
6455
- for (let i = 0; i < obj_collaborators.length; i++) {
6456
- const obj_collaborators_item = obj_collaborators[i];
6457
- const path_collaborators_item = path_collaborators + '[' + i + ']';
6458
- if (typeof obj_collaborators_item !== 'object' || ArrayIsArray(obj_collaborators_item) || obj_collaborators_item === null) {
6459
- return new TypeError('Expected "object" but received "' + typeof obj_collaborators_item + '" (at "' + path_collaborators_item + '")');
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
- const obj_defaultLanguage = obj.defaultLanguage;
6463
- const path_defaultLanguage = path + '.defaultLanguage';
6464
- if (typeof obj_defaultLanguage !== 'string') {
6465
- return new TypeError('Expected "string" but received "' + typeof obj_defaultLanguage + '" (at "' + path_defaultLanguage + '")');
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
- const obj_description = obj.description;
6468
- const path_description = path + '.description';
6469
- if (typeof obj_description !== 'string') {
6470
- return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
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
- const obj_isSpaceV2 = obj.isSpaceV2;
6480
- const path_isSpaceV2 = path + '.isSpaceV2';
6481
- if (typeof obj_isSpaceV2 !== 'boolean') {
6482
- return new TypeError('Expected "boolean" but received "' + typeof obj_isSpaceV2 + '" (at "' + path_isSpaceV2 + '")');
6483
- }
6484
- const obj_isUndeletable = obj.isUndeletable;
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
- const obj_name = obj.name;
6490
- const path_name = path + '.name';
6491
- if (typeof obj_name !== 'string') {
6492
- return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
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
- const obj_supportedLanguages = obj.supportedLanguages;
6495
- const path_supportedLanguages = path + '.supportedLanguages';
6496
- if (!ArrayIsArray(obj_supportedLanguages)) {
6497
- return new TypeError('Expected "array" but received "' + typeof obj_supportedLanguages + '" (at "' + path_supportedLanguages + '")');
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
- for (let i = 0; i < obj_supportedLanguages.length; i++) {
6500
- const obj_supportedLanguages_item = obj_supportedLanguages[i];
6501
- const path_supportedLanguages_item = path_supportedLanguages + '[' + i + ']';
6502
- if (typeof obj_supportedLanguages_item !== 'string') {
6503
- return new TypeError('Expected "string" but received "' + typeof obj_supportedLanguages_item + '" (at "' + path_supportedLanguages_item + '")');
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
- var obj_channels = obj.channels;
6476
- var path_channels = path + '.channels';
6477
- if (!ArrayIsArray(obj_channels)) {
6478
- return new TypeError('Expected "array" but received "' + typeof obj_channels + '" (at "' + path_channels + '")');
6479
- }
6480
- for (var i = 0; i < obj_channels.length; i++) {
6481
- var obj_channels_item = obj_channels[i];
6482
- var path_channels_item = path_channels + '[' + i + ']';
6483
- if (typeof obj_channels_item !== 'string') {
6484
- return new TypeError('Expected "string" but received "' + typeof obj_channels_item + '" (at "' + path_channels_item + '")');
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
- var obj_collaborators = obj.collaborators;
6488
- var path_collaborators = path + '.collaborators';
6489
- if (!ArrayIsArray(obj_collaborators)) {
6490
- return new TypeError('Expected "array" but received "' + typeof obj_collaborators + '" (at "' + path_collaborators + '")');
6491
- }
6492
- for (var i = 0; i < obj_collaborators.length; i++) {
6493
- var obj_collaborators_item = obj_collaborators[i];
6494
- var path_collaborators_item = path_collaborators + '[' + i + ']';
6495
- if (typeof obj_collaborators_item !== 'object' || ArrayIsArray(obj_collaborators_item) || obj_collaborators_item === null) {
6496
- return new TypeError('Expected "object" but received "' + typeof obj_collaborators_item + '" (at "' + path_collaborators_item + '")');
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
- var obj_defaultLanguage = obj.defaultLanguage;
6500
- var path_defaultLanguage = path + '.defaultLanguage';
6501
- if (typeof obj_defaultLanguage !== 'string') {
6502
- return new TypeError('Expected "string" but received "' + typeof obj_defaultLanguage + '" (at "' + path_defaultLanguage + '")');
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
- var obj_description = obj.description;
6505
- var path_description = path + '.description';
6506
- if (typeof obj_description !== 'string') {
6507
- return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
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
- var obj_isSpaceV2 = obj.isSpaceV2;
6517
- var path_isSpaceV2 = path + '.isSpaceV2';
6518
- if (typeof obj_isSpaceV2 !== 'boolean') {
6519
- return new TypeError('Expected "boolean" but received "' + typeof obj_isSpaceV2 + '" (at "' + path_isSpaceV2 + '")');
6520
- }
6521
- var obj_isUndeletable = obj.isUndeletable;
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
- var obj_name = obj.name;
6527
- var path_name = path + '.name';
6528
- if (typeof obj_name !== 'string') {
6529
- return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
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
- var obj_supportedLanguages = obj.supportedLanguages;
6532
- var path_supportedLanguages = path + '.supportedLanguages';
6533
- if (!ArrayIsArray(obj_supportedLanguages)) {
6534
- return new TypeError('Expected "array" but received "' + typeof obj_supportedLanguages + '" (at "' + path_supportedLanguages + '")');
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
- for (var i = 0; i < obj_supportedLanguages.length; i++) {
6537
- var obj_supportedLanguages_item = obj_supportedLanguages[i];
6538
- var path_supportedLanguages_item = path_supportedLanguages + '[' + i + ']';
6539
- if (typeof obj_supportedLanguages_item !== 'string') {
6540
- return new TypeError('Expected "string" but received "' + typeof obj_supportedLanguages_item + '" (at "' + path_supportedLanguages_item + '")');
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-adapters-cms-authoring",
3
- "version": "1.124.0",
3
+ "version": "1.124.2",
4
4
  "license": "SEE LICENSE IN LICENSE.txt",
5
5
  "description": "Wire adapters for CMS authoring APIs",
6
6
  "main": "dist/umd/es2018/cms-authoring.js",
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
- const obj_channels = obj.channels;
6362
- const path_channels = path + '.channels';
6363
- if (!ArrayIsArray(obj_channels)) {
6364
- return new TypeError('Expected "array" but received "' + typeof obj_channels + '" (at "' + path_channels + '")');
6365
- }
6366
- for (let i = 0; i < obj_channels.length; i++) {
6367
- const obj_channels_item = obj_channels[i];
6368
- const path_channels_item = path_channels + '[' + i + ']';
6369
- if (typeof obj_channels_item !== 'string') {
6370
- return new TypeError('Expected "string" but received "' + typeof obj_channels_item + '" (at "' + path_channels_item + '")');
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
- const obj_collaborators = obj.collaborators;
6374
- const path_collaborators = path + '.collaborators';
6375
- if (!ArrayIsArray(obj_collaborators)) {
6376
- return new TypeError('Expected "array" but received "' + typeof obj_collaborators + '" (at "' + path_collaborators + '")');
6377
- }
6378
- for (let i = 0; i < obj_collaborators.length; i++) {
6379
- const obj_collaborators_item = obj_collaborators[i];
6380
- const path_collaborators_item = path_collaborators + '[' + i + ']';
6381
- if (typeof obj_collaborators_item !== 'object' || ArrayIsArray(obj_collaborators_item) || obj_collaborators_item === null) {
6382
- return new TypeError('Expected "object" but received "' + typeof obj_collaborators_item + '" (at "' + path_collaborators_item + '")');
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
- const obj_defaultLanguage = obj.defaultLanguage;
6386
- const path_defaultLanguage = path + '.defaultLanguage';
6387
- if (typeof obj_defaultLanguage !== 'string') {
6388
- return new TypeError('Expected "string" but received "' + typeof obj_defaultLanguage + '" (at "' + path_defaultLanguage + '")');
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
- const obj_description = obj.description;
6391
- const path_description = path + '.description';
6392
- if (typeof obj_description !== 'string') {
6393
- return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
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
- const obj_isSpaceV2 = obj.isSpaceV2;
6403
- const path_isSpaceV2 = path + '.isSpaceV2';
6404
- if (typeof obj_isSpaceV2 !== 'boolean') {
6405
- return new TypeError('Expected "boolean" but received "' + typeof obj_isSpaceV2 + '" (at "' + path_isSpaceV2 + '")');
6406
- }
6407
- const obj_isUndeletable = obj.isUndeletable;
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
- const obj_name = obj.name;
6413
- const path_name = path + '.name';
6414
- if (typeof obj_name !== 'string') {
6415
- return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
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
- const obj_supportedLanguages = obj.supportedLanguages;
6418
- const path_supportedLanguages = path + '.supportedLanguages';
6419
- if (!ArrayIsArray(obj_supportedLanguages)) {
6420
- return new TypeError('Expected "array" but received "' + typeof obj_supportedLanguages + '" (at "' + path_supportedLanguages + '")');
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
- for (let i = 0; i < obj_supportedLanguages.length; i++) {
6423
- const obj_supportedLanguages_item = obj_supportedLanguages[i];
6424
- const path_supportedLanguages_item = path_supportedLanguages + '[' + i + ']';
6425
- if (typeof obj_supportedLanguages_item !== 'string') {
6426
- return new TypeError('Expected "string" but received "' + typeof obj_supportedLanguages_item + '" (at "' + path_supportedLanguages_item + '")');
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.0-2cc971a9c
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