@salesforce/lds-adapters-cms-authoring 1.276.0 → 1.277.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.
@@ -4069,37 +4069,39 @@ function validate$L(obj, path = 'ManagedContentVariantStatusRepresentation') {
4069
4069
  }
4070
4070
 
4071
4071
  const TTL$j = 100;
4072
- const VERSION$k = "f644ed182fdec4abba2087ae85c47223";
4072
+ const VERSION$k = "32da7ab9bec2902e7f2b1d1e9aa618f1";
4073
4073
  function validate$K(obj, path = 'ManagedContentDocumentRepresentation') {
4074
4074
  const v_error = (() => {
4075
4075
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
4076
4076
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
4077
4077
  }
4078
- const obj_apiName = obj.apiName;
4079
- const path_apiName = path + '.apiName';
4080
- let obj_apiName_union0 = null;
4081
- const obj_apiName_union0_error = (() => {
4082
- if (typeof obj_apiName !== 'string') {
4083
- return new TypeError('Expected "string" but received "' + typeof obj_apiName + '" (at "' + path_apiName + '")');
4078
+ if (obj.apiName !== undefined) {
4079
+ const obj_apiName = obj.apiName;
4080
+ const path_apiName = path + '.apiName';
4081
+ let obj_apiName_union0 = null;
4082
+ const obj_apiName_union0_error = (() => {
4083
+ if (typeof obj_apiName !== 'string') {
4084
+ return new TypeError('Expected "string" but received "' + typeof obj_apiName + '" (at "' + path_apiName + '")');
4085
+ }
4086
+ })();
4087
+ if (obj_apiName_union0_error != null) {
4088
+ obj_apiName_union0 = obj_apiName_union0_error.message;
4084
4089
  }
4085
- })();
4086
- if (obj_apiName_union0_error != null) {
4087
- obj_apiName_union0 = obj_apiName_union0_error.message;
4088
- }
4089
- let obj_apiName_union1 = null;
4090
- const obj_apiName_union1_error = (() => {
4091
- if (obj_apiName !== null) {
4092
- return new TypeError('Expected "null" but received "' + typeof obj_apiName + '" (at "' + path_apiName + '")');
4090
+ let obj_apiName_union1 = null;
4091
+ const obj_apiName_union1_error = (() => {
4092
+ if (obj_apiName !== null) {
4093
+ return new TypeError('Expected "null" but received "' + typeof obj_apiName + '" (at "' + path_apiName + '")');
4094
+ }
4095
+ })();
4096
+ if (obj_apiName_union1_error != null) {
4097
+ obj_apiName_union1 = obj_apiName_union1_error.message;
4098
+ }
4099
+ if (obj_apiName_union0 && obj_apiName_union1) {
4100
+ let message = 'Object doesn\'t match union (at "' + path_apiName + '")';
4101
+ message += '\n' + obj_apiName_union0.split('\n').map((line) => '\t' + line).join('\n');
4102
+ message += '\n' + obj_apiName_union1.split('\n').map((line) => '\t' + line).join('\n');
4103
+ return new TypeError(message);
4093
4104
  }
4094
- })();
4095
- if (obj_apiName_union1_error != null) {
4096
- obj_apiName_union1 = obj_apiName_union1_error.message;
4097
- }
4098
- if (obj_apiName_union0 && obj_apiName_union1) {
4099
- let message = 'Object doesn\'t match union (at "' + path_apiName + '")';
4100
- message += '\n' + obj_apiName_union0.split('\n').map((line) => '\t' + line).join('\n');
4101
- message += '\n' + obj_apiName_union1.split('\n').map((line) => '\t' + line).join('\n');
4102
- return new TypeError(message);
4103
4105
  }
4104
4106
  const obj_contentBody = obj.contentBody;
4105
4107
  const path_contentBody = path + '.contentBody';
@@ -5,7 +5,7 @@ import { ManagedContentFolderSummaryRepresentation as ManagedContentFolderSummar
5
5
  import { ManagedContentVariantStatusRepresentation as ManagedContentVariantStatusRepresentation_ManagedContentVariantStatusRepresentation } from './ManagedContentVariantStatusRepresentation';
6
6
  import { KeyMetadata as $64$luvio_engine_KeyMetadata, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, Luvio as $64$luvio_engine_Luvio, IngestPath as $64$luvio_engine_IngestPath, Store as $64$luvio_engine_Store, BaseFragment as $64$luvio_engine_BaseFragment, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap } from '@luvio/engine';
7
7
  export declare const TTL = 100;
8
- export declare const VERSION = "f644ed182fdec4abba2087ae85c47223";
8
+ export declare const VERSION = "32da7ab9bec2902e7f2b1d1e9aa618f1";
9
9
  export declare function validate(obj: any, path?: string): TypeError | null;
10
10
  export declare const RepresentationType: string;
11
11
  export interface KeyParams extends $64$luvio_engine_KeyMetadata {
@@ -34,7 +34,7 @@ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableSto
34
34
  */
35
35
  export interface ManagedContentDocumentRepresentationNormalized {
36
36
  /** The api name of the managed content. */
37
- apiName: string | null;
37
+ apiName?: string | null;
38
38
  /** Body contains fields defined in the managed content type schema of this managed content. */
39
39
  contentBody: {
40
40
  [key: string]: unknown;
@@ -80,7 +80,7 @@ export interface ManagedContentDocumentRepresentationNormalized {
80
80
  * version (string): version
81
81
  */
82
82
  export interface ManagedContentDocumentRepresentation {
83
- apiName: string | null;
83
+ apiName?: string | null;
84
84
  contentBody: {
85
85
  [key: string]: unknown;
86
86
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-adapters-cms-authoring",
3
- "version": "1.276.0",
3
+ "version": "1.277.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.276.0"
47
+ "@salesforce/lds-bindings": "^1.277.0"
48
48
  },
49
49
  "devDependencies": {
50
- "@salesforce/lds-compiler-plugins": "^1.276.0",
51
- "@salesforce/lds-karma": "^1.276.0"
50
+ "@salesforce/lds-compiler-plugins": "^1.277.0",
51
+ "@salesforce/lds-karma": "^1.277.0"
52
52
  },
53
53
  "nx": {
54
54
  "targets": {
package/sfdc/index.js CHANGED
@@ -1754,37 +1754,39 @@ function validate$V(obj, path = 'ManagedContentVariantStatusRepresentation') {
1754
1754
  }
1755
1755
 
1756
1756
  const TTL$q = 100;
1757
- const VERSION$u = "f644ed182fdec4abba2087ae85c47223";
1757
+ const VERSION$u = "32da7ab9bec2902e7f2b1d1e9aa618f1";
1758
1758
  function validate$U(obj, path = 'ManagedContentDocumentRepresentation') {
1759
1759
  const v_error = (() => {
1760
1760
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1761
1761
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
1762
1762
  }
1763
- const obj_apiName = obj.apiName;
1764
- const path_apiName = path + '.apiName';
1765
- let obj_apiName_union0 = null;
1766
- const obj_apiName_union0_error = (() => {
1767
- if (typeof obj_apiName !== 'string') {
1768
- return new TypeError('Expected "string" but received "' + typeof obj_apiName + '" (at "' + path_apiName + '")');
1763
+ if (obj.apiName !== undefined) {
1764
+ const obj_apiName = obj.apiName;
1765
+ const path_apiName = path + '.apiName';
1766
+ let obj_apiName_union0 = null;
1767
+ const obj_apiName_union0_error = (() => {
1768
+ if (typeof obj_apiName !== 'string') {
1769
+ return new TypeError('Expected "string" but received "' + typeof obj_apiName + '" (at "' + path_apiName + '")');
1770
+ }
1771
+ })();
1772
+ if (obj_apiName_union0_error != null) {
1773
+ obj_apiName_union0 = obj_apiName_union0_error.message;
1769
1774
  }
1770
- })();
1771
- if (obj_apiName_union0_error != null) {
1772
- obj_apiName_union0 = obj_apiName_union0_error.message;
1773
- }
1774
- let obj_apiName_union1 = null;
1775
- const obj_apiName_union1_error = (() => {
1776
- if (obj_apiName !== null) {
1777
- return new TypeError('Expected "null" but received "' + typeof obj_apiName + '" (at "' + path_apiName + '")');
1775
+ let obj_apiName_union1 = null;
1776
+ const obj_apiName_union1_error = (() => {
1777
+ if (obj_apiName !== null) {
1778
+ return new TypeError('Expected "null" but received "' + typeof obj_apiName + '" (at "' + path_apiName + '")');
1779
+ }
1780
+ })();
1781
+ if (obj_apiName_union1_error != null) {
1782
+ obj_apiName_union1 = obj_apiName_union1_error.message;
1783
+ }
1784
+ if (obj_apiName_union0 && obj_apiName_union1) {
1785
+ let message = 'Object doesn\'t match union (at "' + path_apiName + '")';
1786
+ message += '\n' + obj_apiName_union0.split('\n').map((line) => '\t' + line).join('\n');
1787
+ message += '\n' + obj_apiName_union1.split('\n').map((line) => '\t' + line).join('\n');
1788
+ return new TypeError(message);
1778
1789
  }
1779
- })();
1780
- if (obj_apiName_union1_error != null) {
1781
- obj_apiName_union1 = obj_apiName_union1_error.message;
1782
- }
1783
- if (obj_apiName_union0 && obj_apiName_union1) {
1784
- let message = 'Object doesn\'t match union (at "' + path_apiName + '")';
1785
- message += '\n' + obj_apiName_union0.split('\n').map((line) => '\t' + line).join('\n');
1786
- message += '\n' + obj_apiName_union1.split('\n').map((line) => '\t' + line).join('\n');
1787
- return new TypeError(message);
1788
1790
  }
1789
1791
  const obj_contentBody = obj.contentBody;
1790
1792
  const path_contentBody = path + '.contentBody';
@@ -11746,4 +11748,4 @@ withDefaultLuvio((luvio) => {
11746
11748
  });
11747
11749
 
11748
11750
  export { cloneManagedContents, createDeployment, createManagedContent, createManagedContentExportV2Job, createManagedContentImportV2Job, createManagedContentVariant, createSchedule, createTranslationV2Job, deleteManagedContentVariant, getAllCMSJobsForSpace, getAllCMSJobsForSpace_imperative, getCMSJobForSpace, getCMSJobForSpaceNotifyChange, getCMSJobForSpace_imperative, getCollectionItems, getCollectionItems_imperative, getDeployments, getDeployments_imperative, getManagedContent, getManagedContentByFolderId, getManagedContentByFolderId_imperative, getManagedContentPreviews, getManagedContentPreviews_imperative, getManagedContentReferencedBy, getManagedContentReferencedBy_imperative, getManagedContentSpace, getManagedContentSpaceFolder, getManagedContentSpaceFolderItemsV1, getManagedContentSpaceFolderItemsV1_imperative, getManagedContentSpaceFolder_imperative, getManagedContentSpaceNotifyChange, getManagedContentSpaceOrchestratorConfig, getManagedContentSpaceOrchestratorConfigNotifyChange, getManagedContentSpaceOrchestratorConfig_imperative, getManagedContentSpace_imperative, getManagedContentSpaces, getManagedContentSpaces_imperative, getManagedContentTaxonomyTerms, getManagedContentTaxonomyTermsNotifyChange, 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, publishManagedContent, putManagedContentSpaceOrchestratorConfig, replaceManagedContentVariant, unpublishManagedContent, updateDeployment, updateManagedContentTaxonomyTerms, updateManagedContentWebUrl };
11749
- // version: 1.276.0-58fd72593
11751
+ // version: 1.277.0-02e43c524
package/src/raml/api.raml CHANGED
@@ -920,6 +920,7 @@ types:
920
920
  apiName:
921
921
  description: The api name of the managed content.
922
922
  type: string | nil
923
+ required: false
923
924
  contentBody:
924
925
  description: Body contains fields defined in the managed content type schema
925
926
  of this managed content.