@salesforce/lds-adapters-cms-delivery 1.315.0 → 1.317.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.
@@ -107,17 +107,20 @@ function validate$g(obj, path = 'ManagedContentChannelTargetSummaryRepresentatio
107
107
  return v_error === undefined ? null : v_error;
108
108
  }
109
109
 
110
- function validate$f(obj, path = 'ManagedContentChannelSummaryRepresentation') {
110
+ function validate$f(obj, path = 'ManagedContentDeliveryChannelSummaryRepresentation') {
111
111
  const v_error = (() => {
112
112
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
113
113
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
114
114
  }
115
- if (obj.domainUrl !== undefined) {
116
- const obj_domainUrl = obj.domainUrl;
117
- const path_domainUrl = path + '.domainUrl';
118
- if (typeof obj_domainUrl !== 'string') {
119
- return new TypeError('Expected "string" but received "' + typeof obj_domainUrl + '" (at "' + path_domainUrl + '")');
120
- }
115
+ const obj_domainUrl = obj.domainUrl;
116
+ const path_domainUrl = path + '.domainUrl';
117
+ if (typeof obj_domainUrl !== 'string') {
118
+ return new TypeError('Expected "string" but received "' + typeof obj_domainUrl + '" (at "' + path_domainUrl + '")');
119
+ }
120
+ const obj_id = obj.id;
121
+ const path_id = path + '.id';
122
+ if (typeof obj_id !== 'string') {
123
+ return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
121
124
  }
122
125
  const obj_name = obj.name;
123
126
  const path_name = path + '.name';
@@ -129,16 +132,21 @@ function validate$f(obj, path = 'ManagedContentChannelSummaryRepresentation') {
129
132
  if (typeof obj_resourceUrl !== 'string') {
130
133
  return new TypeError('Expected "string" but received "' + typeof obj_resourceUrl + '" (at "' + path_resourceUrl + '")');
131
134
  }
132
- if (obj.targetSummary !== undefined) {
133
- const obj_targetSummary = obj.targetSummary;
134
- const path_targetSummary = path + '.targetSummary';
135
- const referencepath_targetSummaryValidationError = validate$g(obj_targetSummary, path_targetSummary);
136
- if (referencepath_targetSummaryValidationError !== null) {
137
- let message = 'Object doesn\'t match ManagedContentChannelTargetSummaryRepresentation (at "' + path_targetSummary + '")\n';
138
- message += referencepath_targetSummaryValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
135
+ if (obj.target !== undefined) {
136
+ const obj_target = obj.target;
137
+ const path_target = path + '.target';
138
+ const referencepath_targetValidationError = validate$g(obj_target, path_target);
139
+ if (referencepath_targetValidationError !== null) {
140
+ let message = 'Object doesn\'t match ManagedContentChannelTargetSummaryRepresentation (at "' + path_target + '")\n';
141
+ message += referencepath_targetValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
139
142
  return new TypeError(message);
140
143
  }
141
144
  }
145
+ const obj_type = obj.type;
146
+ const path_type = path + '.type';
147
+ if (typeof obj_type !== 'string') {
148
+ return new TypeError('Expected "string" but received "' + typeof obj_type + '" (at "' + path_type + '")');
149
+ }
142
150
  })();
143
151
  return v_error === undefined ? null : v_error;
144
152
  }
@@ -225,18 +233,18 @@ function validate$c(obj, path = 'ManagedContentCollectionItemRepresentation') {
225
233
  }
226
234
 
227
235
  const TTL$3 = 3600000;
228
- const VERSION$4 = "8a583ba2f3c7661dc9e517fa2f9e9e60";
236
+ const VERSION$4 = "b513480693ae9012df7865f2698d2001";
229
237
  function validate$b(obj, path = 'ManagedContentCollectionItemsRepresentation') {
230
238
  const v_error = (() => {
231
239
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
232
240
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
233
241
  }
234
- const obj_channelInfo = obj.channelInfo;
235
- const path_channelInfo = path + '.channelInfo';
236
- const referencepath_channelInfoValidationError = validate$f(obj_channelInfo, path_channelInfo);
237
- if (referencepath_channelInfoValidationError !== null) {
238
- let message = 'Object doesn\'t match ManagedContentChannelSummaryRepresentation (at "' + path_channelInfo + '")\n';
239
- message += referencepath_channelInfoValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
242
+ const obj_channelSummary = obj.channelSummary;
243
+ const path_channelSummary = path + '.channelSummary';
244
+ const referencepath_channelSummaryValidationError = validate$f(obj_channelSummary, path_channelSummary);
245
+ if (referencepath_channelSummaryValidationError !== null) {
246
+ let message = 'Object doesn\'t match ManagedContentDeliveryChannelSummaryRepresentation (at "' + path_channelSummary + '")\n';
247
+ message += referencepath_channelSummaryValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
240
248
  return new TypeError(message);
241
249
  }
242
250
  const obj_collectionKey = obj.collectionKey;
@@ -365,7 +373,7 @@ function select$9(luvio, params) {
365
373
  return select$a();
366
374
  }
367
375
  function keyBuilder$b(luvio, params) {
368
- return keyPrefix + '::ManagedContentCollectionItemsRepresentation:(' + 'language:' + params.queryParams.language + ',' + 'page:' + params.queryParams.page + ',' + 'pageSize:' + params.queryParams.pageSize + ',' + 'channelId:' + params.urlParams.channelId + ',' + 'collectionKeyOrId:' + params.urlParams.collectionKeyOrId + ')';
376
+ return keyPrefix + '::ManagedContentCollectionItemsRepresentation:(' + 'language:' + params.queryParams.language + ',' + 'pageSize:' + params.queryParams.pageSize + ',' + 'pageToken:' + params.queryParams.pageToken + ',' + 'channelId:' + params.urlParams.channelId + ',' + 'collectionKeyOrId:' + params.urlParams.collectionKeyOrId + ')';
369
377
  }
370
378
  function getResponseCacheKeys$5(storeKeyMap, luvio, resourceParams, response) {
371
379
  getTypeCacheKeys$4(storeKeyMap, luvio, response, () => keyBuilder$b(luvio, resourceParams));
@@ -418,8 +426,8 @@ const getCollectionItemsForChannel_ConfigPropertyMetadata = [
418
426
  generateParamConfigMetadata('channelId', true, 0 /* UrlParameter */, 0 /* String */),
419
427
  generateParamConfigMetadata('collectionKeyOrId', true, 0 /* UrlParameter */, 0 /* String */),
420
428
  generateParamConfigMetadata('language', false, 1 /* QueryParameter */, 0 /* String */),
421
- generateParamConfigMetadata('page', false, 1 /* QueryParameter */, 3 /* Integer */),
422
429
  generateParamConfigMetadata('pageSize', false, 1 /* QueryParameter */, 3 /* Integer */),
430
+ generateParamConfigMetadata('pageToken', false, 1 /* QueryParameter */, 3 /* Integer */),
423
431
  ];
424
432
  const getCollectionItemsForChannel_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, getCollectionItemsForChannel_ConfigPropertyMetadata);
425
433
  const createResourceParams$5 = /*#__PURE__*/ createResourceParams$6(getCollectionItemsForChannel_ConfigPropertyMetadata);
@@ -504,18 +512,18 @@ const getCollectionItemsForChannelAdapterFactory = (luvio) => function CMS__getC
504
512
  };
505
513
 
506
514
  const TTL$2 = 3600000;
507
- const VERSION$3 = "181754fe91f1eab67546c9f961cedb5f";
515
+ const VERSION$3 = "04f084216502225bdb5fe939fc41b883";
508
516
  function validate$a(obj, path = 'ManagedContentCollectionMetadataRepresentation') {
509
517
  const v_error = (() => {
510
518
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
511
519
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
512
520
  }
513
- const obj_channelInfo = obj.channelInfo;
514
- const path_channelInfo = path + '.channelInfo';
515
- const referencepath_channelInfoValidationError = validate$f(obj_channelInfo, path_channelInfo);
516
- if (referencepath_channelInfoValidationError !== null) {
517
- let message = 'Object doesn\'t match ManagedContentChannelSummaryRepresentation (at "' + path_channelInfo + '")\n';
518
- message += referencepath_channelInfoValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
521
+ const obj_channelSummary = obj.channelSummary;
522
+ const path_channelSummary = path + '.channelSummary';
523
+ const referencepath_channelSummaryValidationError = validate$f(obj_channelSummary, path_channelSummary);
524
+ if (referencepath_channelSummaryValidationError !== null) {
525
+ let message = 'Object doesn\'t match ManagedContentDeliveryChannelSummaryRepresentation (at "' + path_channelSummary + '")\n';
526
+ message += referencepath_channelSummaryValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
519
527
  return new TypeError(message);
520
528
  }
521
529
  const obj_collectionKey = obj.collectionKey;
@@ -1681,7 +1689,7 @@ function select$1(luvio, params) {
1681
1689
  return select$a();
1682
1690
  }
1683
1691
  function keyBuilder$3(luvio, params) {
1684
- return keyPrefix + '::ManagedContentCollectionItemsRepresentation:(' + 'language:' + params.queryParams.language + ',' + 'page:' + params.queryParams.page + ',' + 'pageSize:' + params.queryParams.pageSize + ',' + 'collectionKeyOrId:' + params.urlParams.collectionKeyOrId + ',' + 'siteId:' + params.urlParams.siteId + ')';
1692
+ return keyPrefix + '::ManagedContentCollectionItemsRepresentation:(' + 'language:' + params.queryParams.language + ',' + 'pageSize:' + params.queryParams.pageSize + ',' + 'pageToken:' + params.queryParams.pageToken + ',' + 'collectionKeyOrId:' + params.urlParams.collectionKeyOrId + ',' + 'siteId:' + params.urlParams.siteId + ')';
1685
1693
  }
1686
1694
  function getResponseCacheKeys$1(storeKeyMap, luvio, resourceParams, response) {
1687
1695
  getTypeCacheKeys$4(storeKeyMap, luvio, response, () => keyBuilder$3(luvio, resourceParams));
@@ -1734,8 +1742,8 @@ const getCollectionItemsForSite_ConfigPropertyMetadata = [
1734
1742
  generateParamConfigMetadata('collectionKeyOrId', true, 0 /* UrlParameter */, 0 /* String */),
1735
1743
  generateParamConfigMetadata('siteId', true, 0 /* UrlParameter */, 0 /* String */),
1736
1744
  generateParamConfigMetadata('language', false, 1 /* QueryParameter */, 0 /* String */),
1737
- generateParamConfigMetadata('page', false, 1 /* QueryParameter */, 3 /* Integer */),
1738
1745
  generateParamConfigMetadata('pageSize', false, 1 /* QueryParameter */, 3 /* Integer */),
1746
+ generateParamConfigMetadata('pageToken', false, 1 /* QueryParameter */, 3 /* Integer */),
1739
1747
  ];
1740
1748
  const getCollectionItemsForSite_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, getCollectionItemsForSite_ConfigPropertyMetadata);
1741
1749
  const createResourceParams$1 = /*#__PURE__*/ createResourceParams$6(getCollectionItemsForSite_ConfigPropertyMetadata);
@@ -9,8 +9,8 @@ export interface GetCollectionItemsForChannelConfig {
9
9
  channelId: string;
10
10
  collectionKeyOrId: string;
11
11
  language?: string;
12
- page?: number;
13
12
  pageSize?: number;
13
+ pageToken?: number;
14
14
  }
15
15
  export declare const createResourceParams: (config: GetCollectionItemsForChannelConfig) => resources_getConnectCmsDeliveryChannelsCollectionsByChannelIdAndCollectionKeyOrId_ResourceRequestConfig;
16
16
  export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: GetCollectionItemsForChannelConfig): string;
@@ -9,8 +9,8 @@ export interface GetCollectionItemsForSiteConfig {
9
9
  collectionKeyOrId: string;
10
10
  siteId: string;
11
11
  language?: string;
12
- page?: number;
13
12
  pageSize?: number;
13
+ pageToken?: number;
14
14
  }
15
15
  export declare const createResourceParams: (config: GetCollectionItemsForSiteConfig) => resources_getConnectSitesCmsDeliveryCollectionsByCollectionKeyOrIdAndSiteId_ResourceRequestConfig;
16
16
  export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: GetCollectionItemsForSiteConfig): string;
@@ -7,8 +7,8 @@ export interface ResourceRequestConfig {
7
7
  };
8
8
  queryParams: {
9
9
  language?: string;
10
- page?: number;
11
10
  pageSize?: number;
11
+ pageToken?: number;
12
12
  };
13
13
  }
14
14
  export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
@@ -7,8 +7,8 @@ export interface ResourceRequestConfig {
7
7
  };
8
8
  queryParams: {
9
9
  language?: string;
10
- page?: number;
11
10
  pageSize?: number;
11
+ pageToken?: number;
12
12
  };
13
13
  }
14
14
  export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
@@ -1,9 +1,9 @@
1
- import { ManagedContentChannelSummaryRepresentation as ManagedContentChannelSummaryRepresentation_ManagedContentChannelSummaryRepresentation } from './ManagedContentChannelSummaryRepresentation';
1
+ import { ManagedContentDeliveryChannelSummaryRepresentation as ManagedContentDeliveryChannelSummaryRepresentation_ManagedContentDeliveryChannelSummaryRepresentation } from './ManagedContentDeliveryChannelSummaryRepresentation';
2
2
  import { ManagedContentTypeSummaryRepresentation as ManagedContentTypeSummaryRepresentation_ManagedContentTypeSummaryRepresentation } from './ManagedContentTypeSummaryRepresentation';
3
3
  import { ManagedContentCollectionItemRepresentation as ManagedContentCollectionItemRepresentation_ManagedContentCollectionItemRepresentation } from './ManagedContentCollectionItemRepresentation';
4
4
  import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, BaseFragment as $64$luvio_engine_BaseFragment, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
5
5
  export declare const TTL = 3600000;
6
- export declare const VERSION = "8a583ba2f3c7661dc9e517fa2f9e9e60";
6
+ export declare const VERSION = "b513480693ae9012df7865f2698d2001";
7
7
  export declare function validate(obj: any, path?: string): TypeError | null;
8
8
  export declare const RepresentationType: string;
9
9
  export declare function normalize(input: ManagedContentCollectionItemsRepresentation, existing: ManagedContentCollectionItemsRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ManagedContentCollectionItemsRepresentationNormalized;
@@ -18,8 +18,8 @@ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableSto
18
18
  * (none)
19
19
  */
20
20
  export interface ManagedContentCollectionItemsRepresentationNormalized {
21
- /** The contextual information of the managed content channel */
22
- channelInfo: ManagedContentChannelSummaryRepresentation_ManagedContentChannelSummaryRepresentation;
21
+ /** The contextual information of the delivery managed content channel */
22
+ channelSummary: ManagedContentDeliveryChannelSummaryRepresentation_ManagedContentDeliveryChannelSummaryRepresentation;
23
23
  /** The collection key */
24
24
  collectionKey: string;
25
25
  collectionType: ManagedContentTypeSummaryRepresentation_ManagedContentTypeSummaryRepresentation;
@@ -51,7 +51,7 @@ export interface ManagedContentCollectionItemsRepresentationNormalized {
51
51
  * (none)
52
52
  */
53
53
  export interface ManagedContentCollectionItemsRepresentation {
54
- channelInfo: ManagedContentChannelSummaryRepresentation_ManagedContentChannelSummaryRepresentation;
54
+ channelSummary: ManagedContentDeliveryChannelSummaryRepresentation_ManagedContentDeliveryChannelSummaryRepresentation;
55
55
  collectionKey: string;
56
56
  collectionType: ManagedContentTypeSummaryRepresentation_ManagedContentTypeSummaryRepresentation;
57
57
  currentPageUrl: string;
@@ -1,8 +1,8 @@
1
- import { ManagedContentChannelSummaryRepresentation as ManagedContentChannelSummaryRepresentation_ManagedContentChannelSummaryRepresentation } from './ManagedContentChannelSummaryRepresentation';
1
+ import { ManagedContentDeliveryChannelSummaryRepresentation as ManagedContentDeliveryChannelSummaryRepresentation_ManagedContentDeliveryChannelSummaryRepresentation } from './ManagedContentDeliveryChannelSummaryRepresentation';
2
2
  import { ManagedContentTypeSummaryRepresentation as ManagedContentTypeSummaryRepresentation_ManagedContentTypeSummaryRepresentation } from './ManagedContentTypeSummaryRepresentation';
3
3
  import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, BaseFragment as $64$luvio_engine_BaseFragment, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
4
4
  export declare const TTL = 3600000;
5
- export declare const VERSION = "181754fe91f1eab67546c9f961cedb5f";
5
+ export declare const VERSION = "04f084216502225bdb5fe939fc41b883";
6
6
  export declare function validate(obj: any, path?: string): TypeError | null;
7
7
  export declare const RepresentationType: string;
8
8
  export declare function normalize(input: ManagedContentCollectionMetadataRepresentation, existing: ManagedContentCollectionMetadataRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ManagedContentCollectionMetadataRepresentationNormalized;
@@ -17,8 +17,8 @@ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableSto
17
17
  * (none)
18
18
  */
19
19
  export interface ManagedContentCollectionMetadataRepresentationNormalized {
20
- /** The contextual information of the channel */
21
- channelInfo: ManagedContentChannelSummaryRepresentation_ManagedContentChannelSummaryRepresentation;
20
+ /** The contextual information of the delivery managed content channel */
21
+ channelSummary: ManagedContentDeliveryChannelSummaryRepresentation_ManagedContentDeliveryChannelSummaryRepresentation;
22
22
  /** Globally unique identifier of a collection and doesn't change when collection is moved between production and sandbox environments. */
23
23
  collectionKey: string;
24
24
  /** The basic metadata of the collection */
@@ -48,7 +48,7 @@ export interface ManagedContentCollectionMetadataRepresentationNormalized {
48
48
  * (none)
49
49
  */
50
50
  export interface ManagedContentCollectionMetadataRepresentation {
51
- channelInfo: ManagedContentChannelSummaryRepresentation_ManagedContentChannelSummaryRepresentation;
51
+ channelSummary: ManagedContentDeliveryChannelSummaryRepresentation_ManagedContentDeliveryChannelSummaryRepresentation;
52
52
  collectionKey: string;
53
53
  collectionMetadata: {
54
54
  [key: string]: unknown;
@@ -0,0 +1,43 @@
1
+ import { ManagedContentChannelTargetSummaryRepresentation as ManagedContentChannelTargetSummaryRepresentation_ManagedContentChannelTargetSummaryRepresentation } from './ManagedContentChannelTargetSummaryRepresentation';
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, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
3
+ export declare const VERSION = "b899e1537e70bbf01d50513be0a67e52";
4
+ export declare function validate(obj: any, path?: string): TypeError | null;
5
+ export declare const RepresentationType: string;
6
+ export declare function normalize(input: ManagedContentDeliveryChannelSummaryRepresentation, existing: ManagedContentDeliveryChannelSummaryRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ManagedContentDeliveryChannelSummaryRepresentationNormalized;
7
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
8
+ export declare function equals(existing: ManagedContentDeliveryChannelSummaryRepresentationNormalized, incoming: ManagedContentDeliveryChannelSummaryRepresentationNormalized): boolean;
9
+ export declare const ingest: $64$luvio_engine_ResourceIngest;
10
+ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: ManagedContentDeliveryChannelSummaryRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
11
+ /**
12
+ * Summary information of a CMS Delivery Channel
13
+ *
14
+ * Keys:
15
+ * (none)
16
+ */
17
+ export interface ManagedContentDeliveryChannelSummaryRepresentationNormalized {
18
+ /** Domain Url of the org */
19
+ domainUrl: string;
20
+ /** Id of the Managed Content Channel */
21
+ id: string;
22
+ /** Name of the managed content channel */
23
+ name: string;
24
+ /** Resource URL for detailed information about the ManagedContentChannel */
25
+ resourceUrl: string;
26
+ target?: ManagedContentChannelTargetSummaryRepresentation_ManagedContentChannelTargetSummaryRepresentation;
27
+ /** Type of Managed Content Channel */
28
+ type: string;
29
+ }
30
+ /**
31
+ * Summary information of a CMS Delivery Channel
32
+ *
33
+ * Keys:
34
+ * (none)
35
+ */
36
+ export interface ManagedContentDeliveryChannelSummaryRepresentation {
37
+ domainUrl: string;
38
+ id: string;
39
+ name: string;
40
+ resourceUrl: string;
41
+ target?: ManagedContentChannelTargetSummaryRepresentation_ManagedContentChannelTargetSummaryRepresentation;
42
+ type: string;
43
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-adapters-cms-delivery",
3
- "version": "1.315.0",
3
+ "version": "1.317.0",
4
4
  "license": "SEE LICENSE IN LICENSE.txt",
5
5
  "description": "Wire adapters for CMS endpoints",
6
6
  "main": "dist/es/es2018/cms-delivery.js",
@@ -29,11 +29,11 @@
29
29
  "release:core": "../../scripts/release/core.js --adapter=lds-adapters-cms-delivery"
30
30
  },
31
31
  "dependencies": {
32
- "@salesforce/lds-bindings": "^1.315.0"
32
+ "@salesforce/lds-bindings": "^1.317.0"
33
33
  },
34
34
  "devDependencies": {
35
- "@salesforce/lds-compiler-plugins": "^1.315.0",
36
- "@salesforce/lds-karma": "^1.315.0"
35
+ "@salesforce/lds-compiler-plugins": "^1.317.0",
36
+ "@salesforce/lds-karma": "^1.317.0"
37
37
  },
38
38
  "nx": {
39
39
  "targets": {
package/sfdc/index.js CHANGED
@@ -117,17 +117,20 @@ function validate$g(obj, path = 'ManagedContentChannelTargetSummaryRepresentatio
117
117
  return v_error === undefined ? null : v_error;
118
118
  }
119
119
 
120
- function validate$f(obj, path = 'ManagedContentChannelSummaryRepresentation') {
120
+ function validate$f(obj, path = 'ManagedContentDeliveryChannelSummaryRepresentation') {
121
121
  const v_error = (() => {
122
122
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
123
123
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
124
124
  }
125
- if (obj.domainUrl !== undefined) {
126
- const obj_domainUrl = obj.domainUrl;
127
- const path_domainUrl = path + '.domainUrl';
128
- if (typeof obj_domainUrl !== 'string') {
129
- return new TypeError('Expected "string" but received "' + typeof obj_domainUrl + '" (at "' + path_domainUrl + '")');
130
- }
125
+ const obj_domainUrl = obj.domainUrl;
126
+ const path_domainUrl = path + '.domainUrl';
127
+ if (typeof obj_domainUrl !== 'string') {
128
+ return new TypeError('Expected "string" but received "' + typeof obj_domainUrl + '" (at "' + path_domainUrl + '")');
129
+ }
130
+ const obj_id = obj.id;
131
+ const path_id = path + '.id';
132
+ if (typeof obj_id !== 'string') {
133
+ return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
131
134
  }
132
135
  const obj_name = obj.name;
133
136
  const path_name = path + '.name';
@@ -139,16 +142,21 @@ function validate$f(obj, path = 'ManagedContentChannelSummaryRepresentation') {
139
142
  if (typeof obj_resourceUrl !== 'string') {
140
143
  return new TypeError('Expected "string" but received "' + typeof obj_resourceUrl + '" (at "' + path_resourceUrl + '")');
141
144
  }
142
- if (obj.targetSummary !== undefined) {
143
- const obj_targetSummary = obj.targetSummary;
144
- const path_targetSummary = path + '.targetSummary';
145
- const referencepath_targetSummaryValidationError = validate$g(obj_targetSummary, path_targetSummary);
146
- if (referencepath_targetSummaryValidationError !== null) {
147
- let message = 'Object doesn\'t match ManagedContentChannelTargetSummaryRepresentation (at "' + path_targetSummary + '")\n';
148
- message += referencepath_targetSummaryValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
145
+ if (obj.target !== undefined) {
146
+ const obj_target = obj.target;
147
+ const path_target = path + '.target';
148
+ const referencepath_targetValidationError = validate$g(obj_target, path_target);
149
+ if (referencepath_targetValidationError !== null) {
150
+ let message = 'Object doesn\'t match ManagedContentChannelTargetSummaryRepresentation (at "' + path_target + '")\n';
151
+ message += referencepath_targetValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
149
152
  return new TypeError(message);
150
153
  }
151
154
  }
155
+ const obj_type = obj.type;
156
+ const path_type = path + '.type';
157
+ if (typeof obj_type !== 'string') {
158
+ return new TypeError('Expected "string" but received "' + typeof obj_type + '" (at "' + path_type + '")');
159
+ }
152
160
  })();
153
161
  return v_error === undefined ? null : v_error;
154
162
  }
@@ -235,18 +243,18 @@ function validate$c(obj, path = 'ManagedContentCollectionItemRepresentation') {
235
243
  }
236
244
 
237
245
  const TTL$3 = 3600000;
238
- const VERSION$4 = "8a583ba2f3c7661dc9e517fa2f9e9e60";
246
+ const VERSION$4 = "b513480693ae9012df7865f2698d2001";
239
247
  function validate$b(obj, path = 'ManagedContentCollectionItemsRepresentation') {
240
248
  const v_error = (() => {
241
249
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
242
250
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
243
251
  }
244
- const obj_channelInfo = obj.channelInfo;
245
- const path_channelInfo = path + '.channelInfo';
246
- const referencepath_channelInfoValidationError = validate$f(obj_channelInfo, path_channelInfo);
247
- if (referencepath_channelInfoValidationError !== null) {
248
- let message = 'Object doesn\'t match ManagedContentChannelSummaryRepresentation (at "' + path_channelInfo + '")\n';
249
- message += referencepath_channelInfoValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
252
+ const obj_channelSummary = obj.channelSummary;
253
+ const path_channelSummary = path + '.channelSummary';
254
+ const referencepath_channelSummaryValidationError = validate$f(obj_channelSummary, path_channelSummary);
255
+ if (referencepath_channelSummaryValidationError !== null) {
256
+ let message = 'Object doesn\'t match ManagedContentDeliveryChannelSummaryRepresentation (at "' + path_channelSummary + '")\n';
257
+ message += referencepath_channelSummaryValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
250
258
  return new TypeError(message);
251
259
  }
252
260
  const obj_collectionKey = obj.collectionKey;
@@ -375,7 +383,7 @@ function select$9(luvio, params) {
375
383
  return select$a();
376
384
  }
377
385
  function keyBuilder$b(luvio, params) {
378
- return keyPrefix + '::ManagedContentCollectionItemsRepresentation:(' + 'language:' + params.queryParams.language + ',' + 'page:' + params.queryParams.page + ',' + 'pageSize:' + params.queryParams.pageSize + ',' + 'channelId:' + params.urlParams.channelId + ',' + 'collectionKeyOrId:' + params.urlParams.collectionKeyOrId + ')';
386
+ return keyPrefix + '::ManagedContentCollectionItemsRepresentation:(' + 'language:' + params.queryParams.language + ',' + 'pageSize:' + params.queryParams.pageSize + ',' + 'pageToken:' + params.queryParams.pageToken + ',' + 'channelId:' + params.urlParams.channelId + ',' + 'collectionKeyOrId:' + params.urlParams.collectionKeyOrId + ')';
379
387
  }
380
388
  function getResponseCacheKeys$5(storeKeyMap, luvio, resourceParams, response) {
381
389
  getTypeCacheKeys$4(storeKeyMap, luvio, response, () => keyBuilder$b(luvio, resourceParams));
@@ -428,8 +436,8 @@ const getCollectionItemsForChannel_ConfigPropertyMetadata = [
428
436
  generateParamConfigMetadata('channelId', true, 0 /* UrlParameter */, 0 /* String */),
429
437
  generateParamConfigMetadata('collectionKeyOrId', true, 0 /* UrlParameter */, 0 /* String */),
430
438
  generateParamConfigMetadata('language', false, 1 /* QueryParameter */, 0 /* String */),
431
- generateParamConfigMetadata('page', false, 1 /* QueryParameter */, 3 /* Integer */),
432
439
  generateParamConfigMetadata('pageSize', false, 1 /* QueryParameter */, 3 /* Integer */),
440
+ generateParamConfigMetadata('pageToken', false, 1 /* QueryParameter */, 3 /* Integer */),
433
441
  ];
434
442
  const getCollectionItemsForChannel_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, getCollectionItemsForChannel_ConfigPropertyMetadata);
435
443
  const createResourceParams$5 = /*#__PURE__*/ createResourceParams$6(getCollectionItemsForChannel_ConfigPropertyMetadata);
@@ -517,7 +525,7 @@ function select$8(luvio, params) {
517
525
  return select$a();
518
526
  }
519
527
  function keyBuilder$9(luvio, params) {
520
- return keyPrefix + '::ManagedContentCollectionItemsRepresentation:(' + 'language:' + params.queryParams.language + ',' + 'page:' + params.queryParams.page + ',' + 'pageSize:' + params.queryParams.pageSize + ',' + 'collectionKeyOrId:' + params.urlParams.collectionKeyOrId + ',' + 'siteId:' + params.urlParams.siteId + ')';
528
+ return keyPrefix + '::ManagedContentCollectionItemsRepresentation:(' + 'language:' + params.queryParams.language + ',' + 'pageSize:' + params.queryParams.pageSize + ',' + 'pageToken:' + params.queryParams.pageToken + ',' + 'collectionKeyOrId:' + params.urlParams.collectionKeyOrId + ',' + 'siteId:' + params.urlParams.siteId + ')';
521
529
  }
522
530
  function getResponseCacheKeys$4(storeKeyMap, luvio, resourceParams, response) {
523
531
  getTypeCacheKeys$4(storeKeyMap, luvio, response, () => keyBuilder$9(luvio, resourceParams));
@@ -570,8 +578,8 @@ const getCollectionItemsForSite_ConfigPropertyMetadata = [
570
578
  generateParamConfigMetadata('collectionKeyOrId', true, 0 /* UrlParameter */, 0 /* String */),
571
579
  generateParamConfigMetadata('siteId', true, 0 /* UrlParameter */, 0 /* String */),
572
580
  generateParamConfigMetadata('language', false, 1 /* QueryParameter */, 0 /* String */),
573
- generateParamConfigMetadata('page', false, 1 /* QueryParameter */, 3 /* Integer */),
574
581
  generateParamConfigMetadata('pageSize', false, 1 /* QueryParameter */, 3 /* Integer */),
582
+ generateParamConfigMetadata('pageToken', false, 1 /* QueryParameter */, 3 /* Integer */),
575
583
  ];
576
584
  const getCollectionItemsForSite_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, getCollectionItemsForSite_ConfigPropertyMetadata);
577
585
  const createResourceParams$4 = /*#__PURE__*/ createResourceParams$6(getCollectionItemsForSite_ConfigPropertyMetadata);
@@ -656,18 +664,18 @@ const getCollectionItemsForSiteAdapterFactory = (luvio) => function CMS__getColl
656
664
  };
657
665
 
658
666
  const TTL$2 = 3600000;
659
- const VERSION$3 = "181754fe91f1eab67546c9f961cedb5f";
667
+ const VERSION$3 = "04f084216502225bdb5fe939fc41b883";
660
668
  function validate$a(obj, path = 'ManagedContentCollectionMetadataRepresentation') {
661
669
  const v_error = (() => {
662
670
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
663
671
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
664
672
  }
665
- const obj_channelInfo = obj.channelInfo;
666
- const path_channelInfo = path + '.channelInfo';
667
- const referencepath_channelInfoValidationError = validate$f(obj_channelInfo, path_channelInfo);
668
- if (referencepath_channelInfoValidationError !== null) {
669
- let message = 'Object doesn\'t match ManagedContentChannelSummaryRepresentation (at "' + path_channelInfo + '")\n';
670
- message += referencepath_channelInfoValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
673
+ const obj_channelSummary = obj.channelSummary;
674
+ const path_channelSummary = path + '.channelSummary';
675
+ const referencepath_channelSummaryValidationError = validate$f(obj_channelSummary, path_channelSummary);
676
+ if (referencepath_channelSummaryValidationError !== null) {
677
+ let message = 'Object doesn\'t match ManagedContentDeliveryChannelSummaryRepresentation (at "' + path_channelSummary + '")\n';
678
+ message += referencepath_channelSummaryValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
671
679
  return new TypeError(message);
672
680
  }
673
681
  const obj_collectionKey = obj.collectionKey;
@@ -2060,4 +2068,4 @@ withDefaultLuvio((luvio) => {
2060
2068
  });
2061
2069
 
2062
2070
  export { getCollectionItemsForChannel, getCollectionItemsForChannel_imperative, getCollectionItemsForSite, getCollectionItemsForSite_imperative, getCollectionMetadataForChannel, getCollectionMetadataForChannel_imperative, getCollectionMetadataForSite, getCollectionMetadataForSite_imperative, listContent, listContentInternal, listContentInternal_imperative, listContent_imperative };
2063
- // version: 1.315.0-b7eff13c6d
2071
+ // version: 1.317.0-81aed84d4b
package/src/raml/api.raml CHANGED
@@ -92,6 +92,35 @@ types:
92
92
  description: Information of the Target Entity associated with this channel
93
93
  type: ManagedContentChannelTargetSummaryRepresentation
94
94
  required: false # TODO W-8891123 Hand rolled
95
+ ManagedContentDeliveryChannelSummaryRepresentation:
96
+ description: Summary information of a CMS Delivery Channel
97
+ type: object
98
+ properties:
99
+ domainUrl:
100
+ description: Domain Url of the org
101
+ type: string
102
+ id:
103
+ description: Id of the Managed Content Channel
104
+ type: string
105
+ name:
106
+ description: Name of the managed content channel
107
+ type: string
108
+ resourceUrl:
109
+ description: Resource URL for detailed information about the ManagedContentChannel
110
+ type: string
111
+ target:
112
+ description: Information of the Target Entity associated with this channel
113
+ type: ManagedContentChannelTargetSummaryRepresentation
114
+ required: false
115
+ type:
116
+ description: Type of Managed Content Channel
117
+ type: string
118
+ enum:
119
+ - CloudToCloud
120
+ - Community
121
+ - ConnectedApp
122
+ - PublicUnauthenticated
123
+ - UserPermission
95
124
  ManagedContentChannelTargetSummaryRepresentation:
96
125
  description: Contextual Information of the channel in managed content delivery
97
126
  api
@@ -133,9 +162,9 @@ types:
133
162
  description: Information about collection Items.
134
163
  type: object
135
164
  properties:
136
- channelInfo:
137
- description: The contextual information of the managed content channel
138
- type: ManagedContentChannelSummaryRepresentation
165
+ channelSummary:
166
+ description: The contextual information of the delivery managed content channel
167
+ type: ManagedContentDeliveryChannelSummaryRepresentation
139
168
  collectionKey:
140
169
  description: The collection key
141
170
  type: string
@@ -181,9 +210,9 @@ types:
181
210
  description: Collection Metadata.
182
211
  type: object
183
212
  properties:
184
- channelInfo:
185
- description: The contextual information of the channel
186
- type: ManagedContentChannelSummaryRepresentation
213
+ channelSummary:
214
+ description: The contextual information of the delivery managed content channel
215
+ type: ManagedContentDeliveryChannelSummaryRepresentation
187
216
  collectionKey:
188
217
  description: Globally unique identifier of a collection and doesn't change
189
218
  when collection is moved between production and sandbox environments.
@@ -1477,6 +1506,7 @@ types:
1477
1506
  /channels/{channelId}:
1478
1507
  /collections/{collectionKeyOrId}:
1479
1508
  get:
1509
+ displayName: getManagedContentCollectionDelivery
1480
1510
  description: Get collection Items.
1481
1511
  responses:
1482
1512
  '200':
@@ -1486,14 +1516,17 @@ types:
1486
1516
  type: ManagedContentCollectionItemsRepresentation
1487
1517
  queryParameters:
1488
1518
  language:
1519
+ description: Language locale for the managed content collection,
1520
+ for example, en_US.
1489
1521
  type: string
1490
1522
  required: false
1491
- page:
1492
- description: The page of items to be fetched.
1523
+ pageSize:
1524
+ description: The number of items per page to be fetched. Default
1525
+ is 50.
1493
1526
  type: integer
1494
1527
  required: false
1495
- pageSize:
1496
- description: The number of items per page to be fetched.
1528
+ pageToken:
1529
+ description: The page of items to be fetched.
1497
1530
  type: integer
1498
1531
  required: false
1499
1532
  uriParameters:
@@ -2078,6 +2111,7 @@ types:
2078
2111
  # (oas-body-name): translationRequest
2079
2112
  /sites/{siteId}/cms/delivery/collections/{collectionKeyOrId}:
2080
2113
  get:
2114
+ displayName: getManagedContentCollectionDelivery
2081
2115
  description: Get collection Items.
2082
2116
  responses:
2083
2117
  '200':
@@ -2087,14 +2121,15 @@ types:
2087
2121
  type: ManagedContentCollectionItemsRepresentation
2088
2122
  queryParameters:
2089
2123
  language:
2124
+ description: Language locale for the managed content collection, for example, en_US.
2090
2125
  type: string
2091
2126
  required: false
2092
- page:
2093
- description: The page of items to be fetched.
2127
+ pageSize:
2128
+ description: The number of items per page to be fetched. Default is 50.
2094
2129
  type: integer
2095
2130
  required: false
2096
- pageSize:
2097
- description: The number of items per page to be fetched.
2131
+ pageToken:
2132
+ description: The page of items to be fetched.
2098
2133
  type: integer
2099
2134
  required: false
2100
2135
  uriParameters: