@salesforce/lds-adapters-cms-authoring 1.167.0 → 1.169.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.
@@ -654,7 +654,7 @@ function validate$D(obj, path = 'ManagedContentSpaceFolderItemV1Representation')
654
654
  }
655
655
 
656
656
  const TTL$g = 100;
657
- const VERSION$h = "65ec3c1fc4ab506ab3c620f99afb6d88";
657
+ const VERSION$h = "df1370994ae2e57cdebc5f5125930e2d";
658
658
  function validate$C(obj, path = 'ManagedContentSpaceFolderItemV1CollectionRepresentation') {
659
659
  const v_error = (() => {
660
660
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -682,8 +682,29 @@ function validate$C(obj, path = 'ManagedContentSpaceFolderItemV1CollectionRepres
682
682
  }
683
683
  const obj_parentFolderId = obj.parentFolderId;
684
684
  const path_parentFolderId = path + '.parentFolderId';
685
- if (typeof obj_parentFolderId !== 'string') {
686
- return new TypeError('Expected "string" but received "' + typeof obj_parentFolderId + '" (at "' + path_parentFolderId + '")');
685
+ let obj_parentFolderId_union0 = null;
686
+ const obj_parentFolderId_union0_error = (() => {
687
+ if (typeof obj_parentFolderId !== 'string') {
688
+ return new TypeError('Expected "string" but received "' + typeof obj_parentFolderId + '" (at "' + path_parentFolderId + '")');
689
+ }
690
+ })();
691
+ if (obj_parentFolderId_union0_error != null) {
692
+ obj_parentFolderId_union0 = obj_parentFolderId_union0_error.message;
693
+ }
694
+ let obj_parentFolderId_union1 = null;
695
+ const obj_parentFolderId_union1_error = (() => {
696
+ if (obj_parentFolderId !== null) {
697
+ return new TypeError('Expected "null" but received "' + typeof obj_parentFolderId + '" (at "' + path_parentFolderId + '")');
698
+ }
699
+ })();
700
+ if (obj_parentFolderId_union1_error != null) {
701
+ obj_parentFolderId_union1 = obj_parentFolderId_union1_error.message;
702
+ }
703
+ if (obj_parentFolderId_union0 && obj_parentFolderId_union1) {
704
+ let message = 'Object doesn\'t match union (at "' + path_parentFolderId + '")';
705
+ message += '\n' + obj_parentFolderId_union0.split('\n').map((line) => '\t' + line).join('\n');
706
+ message += '\n' + obj_parentFolderId_union1.split('\n').map((line) => '\t' + line).join('\n');
707
+ return new TypeError(message);
687
708
  }
688
709
  })();
689
710
  return v_error === undefined ? null : v_error;
@@ -6797,7 +6818,7 @@ const patchManagedContentSpaceAdapterFactory = (luvio) => {
6797
6818
  };
6798
6819
  };
6799
6820
 
6800
- const TTL$1 = 12000;
6821
+ const TTL$1 = 120000;
6801
6822
  const VERSION$1 = "a722ea476134ec8addd2229742816b17";
6802
6823
  function validate$3(obj, path = 'ManagedContentTypeSummaryCollectionRepresentation') {
6803
6824
  const v_error = (() => {
@@ -1,7 +1,7 @@
1
1
  import { ManagedContentSpaceFolderItemV1Representation as ManagedContentSpaceFolderItemV1Representation_ManagedContentSpaceFolderItemV1Representation } from './ManagedContentSpaceFolderItemV1Representation';
2
2
  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, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap } from '@luvio/engine';
3
3
  export declare const TTL = 100;
4
- export declare const VERSION = "65ec3c1fc4ab506ab3c620f99afb6d88";
4
+ export declare const VERSION = "df1370994ae2e57cdebc5f5125930e2d";
5
5
  export declare function validate(obj: any, path?: string): TypeError | null;
6
6
  export declare const RepresentationType: string;
7
7
  export declare function normalize(input: ManagedContentSpaceFolderItemV1CollectionRepresentation, existing: ManagedContentSpaceFolderItemV1CollectionRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ManagedContentSpaceFolderItemV1CollectionRepresentationNormalized;
@@ -21,7 +21,7 @@ export interface ManagedContentSpaceFolderItemV1CollectionRepresentationNormaliz
21
21
  /** The list of the folder items - ManagedContent or ManagedContentSpaceFolder */
22
22
  folderItems: Array<ManagedContentSpaceFolderItemV1Representation_ManagedContentSpaceFolderItemV1Representation>;
23
23
  /** The id of the parent folder */
24
- parentFolderId: string;
24
+ parentFolderId: string | null;
25
25
  }
26
26
  /**
27
27
  * Collection Representation of folder items inside in ManagedContentSpaceFolder
@@ -32,5 +32,5 @@ export interface ManagedContentSpaceFolderItemV1CollectionRepresentationNormaliz
32
32
  export interface ManagedContentSpaceFolderItemV1CollectionRepresentation {
33
33
  folderId: string;
34
34
  folderItems: Array<ManagedContentSpaceFolderItemV1Representation_ManagedContentSpaceFolderItemV1Representation>;
35
- parentFolderId: string;
35
+ parentFolderId: string | null;
36
36
  }
@@ -1,6 +1,6 @@
1
1
  import { ManagedContentTypeSummaryRepresentation as ManagedContentTypeSummaryRepresentation_ManagedContentTypeSummaryRepresentation } from './ManagedContentTypeSummaryRepresentation';
2
2
  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';
3
- export declare const TTL = 12000;
3
+ export declare const TTL = 120000;
4
4
  export declare const VERSION = "a722ea476134ec8addd2229742816b17";
5
5
  export declare function validate(obj: any, path?: string): TypeError | null;
6
6
  export declare const RepresentationType: string;
@@ -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 TTL = 12000;
2
+ export declare const TTL = 120000;
3
3
  export declare const VERSION = "7297fb0dbfe8f664d76179a65037c290";
4
4
  export declare function validate(obj: any, path?: string): TypeError | null;
5
5
  export declare const RepresentationType: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-adapters-cms-authoring",
3
- "version": "1.167.0",
3
+ "version": "1.169.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",
package/sfdc/index.js CHANGED
@@ -4385,7 +4385,7 @@ function validate$g(obj, path = 'ManagedContentSpaceFolderItemV1Representation')
4385
4385
  }
4386
4386
 
4387
4387
  const TTL$8 = 100;
4388
- const VERSION$8 = "65ec3c1fc4ab506ab3c620f99afb6d88";
4388
+ const VERSION$8 = "df1370994ae2e57cdebc5f5125930e2d";
4389
4389
  function validate$f(obj, path = 'ManagedContentSpaceFolderItemV1CollectionRepresentation') {
4390
4390
  const v_error = (() => {
4391
4391
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -4413,8 +4413,29 @@ function validate$f(obj, path = 'ManagedContentSpaceFolderItemV1CollectionRepres
4413
4413
  }
4414
4414
  const obj_parentFolderId = obj.parentFolderId;
4415
4415
  const path_parentFolderId = path + '.parentFolderId';
4416
- if (typeof obj_parentFolderId !== 'string') {
4417
- return new TypeError('Expected "string" but received "' + typeof obj_parentFolderId + '" (at "' + path_parentFolderId + '")');
4416
+ let obj_parentFolderId_union0 = null;
4417
+ const obj_parentFolderId_union0_error = (() => {
4418
+ if (typeof obj_parentFolderId !== 'string') {
4419
+ return new TypeError('Expected "string" but received "' + typeof obj_parentFolderId + '" (at "' + path_parentFolderId + '")');
4420
+ }
4421
+ })();
4422
+ if (obj_parentFolderId_union0_error != null) {
4423
+ obj_parentFolderId_union0 = obj_parentFolderId_union0_error.message;
4424
+ }
4425
+ let obj_parentFolderId_union1 = null;
4426
+ const obj_parentFolderId_union1_error = (() => {
4427
+ if (obj_parentFolderId !== null) {
4428
+ return new TypeError('Expected "null" but received "' + typeof obj_parentFolderId + '" (at "' + path_parentFolderId + '")');
4429
+ }
4430
+ })();
4431
+ if (obj_parentFolderId_union1_error != null) {
4432
+ obj_parentFolderId_union1 = obj_parentFolderId_union1_error.message;
4433
+ }
4434
+ if (obj_parentFolderId_union0 && obj_parentFolderId_union1) {
4435
+ let message = 'Object doesn\'t match union (at "' + path_parentFolderId + '")';
4436
+ message += '\n' + obj_parentFolderId_union0.split('\n').map((line) => '\t' + line).join('\n');
4437
+ message += '\n' + obj_parentFolderId_union1.split('\n').map((line) => '\t' + line).join('\n');
4438
+ return new TypeError(message);
4418
4439
  }
4419
4440
  })();
4420
4441
  return v_error === undefined ? null : v_error;
@@ -4938,7 +4959,7 @@ const getManagedContentSpacesAdapterFactory = (luvio) => function CMSAuthoring__
4938
4959
  buildCachedSnapshotCachePolicy$6, buildNetworkSnapshotCachePolicy$6);
4939
4960
  };
4940
4961
 
4941
- const TTL$6 = 12000;
4962
+ const TTL$6 = 120000;
4942
4963
  const VERSION$6 = "a722ea476134ec8addd2229742816b17";
4943
4964
  function validate$d(obj, path = 'ManagedContentTypeSummaryCollectionRepresentation') {
4944
4965
  const v_error = (() => {
@@ -7760,7 +7781,7 @@ const getManagedContentReferencedByMetadata = { apiFamily: 'CMSAuthoring', name:
7760
7781
  const getManagedContentSpaceMetadata = { apiFamily: 'CMSAuthoring', name: 'getManagedContentSpace', ttl: 100 };
7761
7782
  const getManagedContentSpaceFolderItemsV1Metadata = { apiFamily: 'CMSAuthoring', name: 'getManagedContentSpaceFolderItemsV1', ttl: 100 };
7762
7783
  const getManagedContentSpacesMetadata = { apiFamily: 'CMSAuthoring', name: 'getManagedContentSpaces', ttl: 100 };
7763
- const getManagedContentTypesForMixinMetadata = { apiFamily: 'CMSAuthoring', name: 'getManagedContentTypesForMixin', ttl: 12000 };
7784
+ const getManagedContentTypesForMixinMetadata = { apiFamily: 'CMSAuthoring', name: 'getManagedContentTypesForMixin', ttl: 120000 };
7764
7785
  const getManagedContentVariantMetadata = { apiFamily: 'CMSAuthoring', name: 'getManagedContentVariant', ttl: 3600000 };
7765
7786
  const getManagedContentVariantReferencesMetadata = { apiFamily: 'CMSAuthoring', name: 'getManagedContentVariantReferences', ttl: 100 };
7766
7787
  const getManagedContentVariantRenditionMetadata = { apiFamily: 'CMSAuthoring', name: 'getManagedContentVariantRendition', ttl: 1000 };
@@ -7875,4 +7896,4 @@ withDefaultLuvio((luvio) => {
7875
7896
  });
7876
7897
 
7877
7898
  export { createDeployment, createManagedContent, createManagedContentExportV2Job, createManagedContentImportV2Job, createManagedContentVariant, createTranslationV2Job, deleteManagedContentVariant, getCollectionItems, getCollectionItems_imperative, getManagedContent, getManagedContentByFolderId, getManagedContentByFolderId_imperative, getManagedContentReferencedBy, getManagedContentReferencedBy_imperative, getManagedContentSpace, getManagedContentSpaceFolderItemsV1, getManagedContentSpaceFolderItemsV1_imperative, getManagedContentSpaceNotifyChange, getManagedContentSpace_imperative, getManagedContentSpaces, getManagedContentSpaces_imperative, getManagedContentTypesForMixin, getManagedContentTypesForMixin_imperative, getManagedContentVariant, getManagedContentVariantNotifyChange, getManagedContentVariantReferences, getManagedContentVariantReferences_imperative, getManagedContentVariantRendition, getManagedContentVariantRendition_imperative, getManagedContentVariantVersions, getManagedContentVariantVersionsNotifyChange, getManagedContentVariantVersions_imperative, getManagedContentVariant_imperative, getManagedContent_imperative, getSearchResults, getSearchResults_imperative, patchManagedContentSpace, publishManagedContent, replaceManagedContentVariant, unpublishManagedContent };
7878
- // version: 1.167.0-f09f91e9a
7899
+ // version: 1.169.0-0c8c3dc31
package/src/raml/api.raml CHANGED
@@ -1460,7 +1460,7 @@ types:
1460
1460
  type: ManagedContentSpaceFolderItemV1Representation
1461
1461
  parentFolderId:
1462
1462
  description: The id of the parent folder
1463
- type: string
1463
+ type: string | nil
1464
1464
  ManagedContentSpaceFolderItemV1Representation:
1465
1465
  description: Representation of a folder item inside a ManagedContentSpaceFolder
1466
1466
  type: object