@salesforce/lds-adapters-cms-authoring 1.313.0 → 1.315.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.
@@ -841,14 +841,14 @@ function validate$1a(obj, path = 'ManagedContentDeploymentRepresentation') {
841
841
  return v_error === undefined ? null : v_error;
842
842
  }
843
843
  const RepresentationType$A = 'ManagedContentDeploymentRepresentation';
844
- function keyBuilder$19(luvio, config) {
844
+ function keyBuilder$18(luvio, config) {
845
845
  return keyPrefix + '::' + RepresentationType$A + ':' + config.id;
846
846
  }
847
- function keyBuilderFromType$i(luvio, object) {
847
+ function keyBuilderFromType$h(luvio, object) {
848
848
  const keyParams = {
849
849
  id: object.deploymentId
850
850
  };
851
- return keyBuilder$19(luvio, keyParams);
851
+ return keyBuilder$18(luvio, keyParams);
852
852
  }
853
853
  function normalize$A(input, existing, path, luvio, store, timestamp) {
854
854
  return input;
@@ -958,14 +958,14 @@ const ingest$A = function ManagedContentDeploymentRepresentationIngest(input, pa
958
958
  throw validateError;
959
959
  }
960
960
  }
961
- const key = keyBuilderFromType$i(luvio, input);
961
+ const key = keyBuilderFromType$h(luvio, input);
962
962
  const ttlToUse = TTL$A;
963
963
  ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$A, "CMSAuthoring", VERSION$E, RepresentationType$A, equals$E);
964
964
  return createLink(key);
965
965
  };
966
966
  function getTypeCacheKeys$A(rootKeySet, luvio, input, fullPathFactory) {
967
967
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
968
- const rootKey = keyBuilderFromType$i(luvio, input);
968
+ const rootKey = keyBuilderFromType$h(luvio, input);
969
969
  rootKeySet.set(rootKey, {
970
970
  namespace: keyPrefix,
971
971
  representationName: RepresentationType$A,
@@ -1156,15 +1156,15 @@ function getTypeCacheKeys$z(rootKeySet, luvio, input, fullPathFactory) {
1156
1156
  function select$1k(luvio, params) {
1157
1157
  return select$1l();
1158
1158
  }
1159
- function keyBuilder$18(luvio, params) {
1159
+ function keyBuilder$17(luvio, params) {
1160
1160
  return keyPrefix + '::ManagedContentDeploymentCollectionRepresentation:(' + 'contentSpaceId:' + params.queryParams.contentSpaceId + ',' + 'deploymentId:' + params.queryParams.deploymentId + ',' + 'deploymentStatus:' + params.queryParams.deploymentStatus + ',' + 'deploymentType:' + params.queryParams.deploymentType + ',' + 'managedContentVersionId:' + params.queryParams.managedContentVersionId + ',' + 'page:' + params.queryParams.page + ',' + 'pageSize:' + params.queryParams.pageSize + ',' + 'variantIds:' + params.queryParams.variantIds + ')';
1161
1161
  }
1162
1162
  function getResponseCacheKeys$K(storeKeyMap, luvio, resourceParams, response) {
1163
- getTypeCacheKeys$z(storeKeyMap, luvio, response, () => keyBuilder$18(luvio, resourceParams));
1163
+ getTypeCacheKeys$z(storeKeyMap, luvio, response, () => keyBuilder$17(luvio, resourceParams));
1164
1164
  }
1165
1165
  function ingestSuccess$L(luvio, resourceParams, response, snapshotRefresh) {
1166
1166
  const { body } = response;
1167
- const key = keyBuilder$18(luvio, resourceParams);
1167
+ const key = keyBuilder$17(luvio, resourceParams);
1168
1168
  luvio.storeIngest(key, ingest$z, body);
1169
1169
  const snapshot = luvio.storeLookup({
1170
1170
  recordId: key,
@@ -1180,7 +1180,7 @@ function ingestSuccess$L(luvio, resourceParams, response, snapshotRefresh) {
1180
1180
  return snapshot;
1181
1181
  }
1182
1182
  function ingestError$q(luvio, params, error, snapshotRefresh) {
1183
- const key = keyBuilder$18(luvio, params);
1183
+ const key = keyBuilder$17(luvio, params);
1184
1184
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
1185
1185
  const storeMetadataParams = {
1186
1186
  ttl: TTL$z,
@@ -1224,9 +1224,9 @@ const getDeployments_ConfigPropertyMetadata = [
1224
1224
  ];
1225
1225
  const getDeployments_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$K, getDeployments_ConfigPropertyMetadata);
1226
1226
  const createResourceParams$K = /*#__PURE__*/ createResourceParams$L(getDeployments_ConfigPropertyMetadata);
1227
- function keyBuilder$17(luvio, config) {
1227
+ function keyBuilder$16(luvio, config) {
1228
1228
  const resourceParams = createResourceParams$K(config);
1229
- return keyBuilder$18(luvio, resourceParams);
1229
+ return keyBuilder$17(luvio, resourceParams);
1230
1230
  }
1231
1231
  function typeCheckConfig$K(untrustedConfig) {
1232
1232
  const config = {};
@@ -1256,7 +1256,7 @@ function adapterFragment$q(luvio, config) {
1256
1256
  createResourceParams$K(config);
1257
1257
  return select$1k();
1258
1258
  }
1259
- function onFetchResponseSuccess$t(luvio, config, resourceParams, response) {
1259
+ function onFetchResponseSuccess$s(luvio, config, resourceParams, response) {
1260
1260
  const snapshot = ingestSuccess$L(luvio, resourceParams, response, {
1261
1261
  config,
1262
1262
  resolve: () => buildNetworkSnapshot$K(luvio, config, snapshotRefreshOptions)
@@ -1275,7 +1275,7 @@ function buildNetworkSnapshot$K(luvio, config, options) {
1275
1275
  const request = createResourceRequest$K(resourceParams);
1276
1276
  return luvio.dispatchResourceRequest(request, options)
1277
1277
  .then((response) => {
1278
- return luvio.handleSuccessResponse(() => onFetchResponseSuccess$t(luvio, config, resourceParams, response), () => {
1278
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess$s(luvio, config, resourceParams, response), () => {
1279
1279
  const cache = new StoreKeyMap();
1280
1280
  getResponseCacheKeys$K(cache, luvio, resourceParams, response.body);
1281
1281
  return cache;
@@ -1290,7 +1290,7 @@ function buildNetworkSnapshotCachePolicy$q(context, coercedAdapterRequestContext
1290
1290
  function buildCachedSnapshotCachePolicy$q(context, storeLookup) {
1291
1291
  const { luvio, config } = context;
1292
1292
  const selector = {
1293
- recordId: keyBuilder$17(luvio, config),
1293
+ recordId: keyBuilder$16(luvio, config),
1294
1294
  node: adapterFragment$q(luvio, config),
1295
1295
  variables: {},
1296
1296
  };
@@ -1402,7 +1402,7 @@ function getResponseCacheKeys$J(storeKeyMap, luvio, resourceParams, response) {
1402
1402
  }
1403
1403
  function ingestSuccess$K(luvio, resourceParams, response) {
1404
1404
  const { body } = response;
1405
- const key = keyBuilderFromType$i(luvio, body);
1405
+ const key = keyBuilderFromType$h(luvio, body);
1406
1406
  luvio.storeIngest(key, ingest$A, body);
1407
1407
  const snapshot = luvio.storeLookup({
1408
1408
  recordId: key,
@@ -1726,14 +1726,14 @@ function validate$15(obj, path = 'ManagedContentV2JobDetailRepresentation') {
1726
1726
  return v_error === undefined ? null : v_error;
1727
1727
  }
1728
1728
  const RepresentationType$y = 'ManagedContentV2JobDetailRepresentation';
1729
- function keyBuilder$16(luvio, config) {
1729
+ function keyBuilder$15(luvio, config) {
1730
1730
  return keyPrefix + '::' + RepresentationType$y + ':' + config.id;
1731
1731
  }
1732
- function keyBuilderFromType$h(luvio, object) {
1732
+ function keyBuilderFromType$g(luvio, object) {
1733
1733
  const keyParams = {
1734
1734
  id: object.id
1735
1735
  };
1736
- return keyBuilder$16(luvio, keyParams);
1736
+ return keyBuilder$15(luvio, keyParams);
1737
1737
  }
1738
1738
  function normalize$y(input, existing, path, luvio, store, timestamp) {
1739
1739
  return input;
@@ -1853,14 +1853,14 @@ const ingest$y = function ManagedContentV2JobDetailRepresentationIngest(input, p
1853
1853
  throw validateError;
1854
1854
  }
1855
1855
  }
1856
- const key = keyBuilderFromType$h(luvio, input);
1856
+ const key = keyBuilderFromType$g(luvio, input);
1857
1857
  const ttlToUse = TTL$y;
1858
1858
  ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$y, "CMSAuthoring", VERSION$A, RepresentationType$y, equals$A);
1859
1859
  return createLink(key);
1860
1860
  };
1861
1861
  function getTypeCacheKeys$y(rootKeySet, luvio, input, fullPathFactory) {
1862
1862
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
1863
- const rootKey = keyBuilderFromType$h(luvio, input);
1863
+ const rootKey = keyBuilderFromType$g(luvio, input);
1864
1864
  rootKeySet.set(rootKey, {
1865
1865
  namespace: keyPrefix,
1866
1866
  representationName: RepresentationType$y,
@@ -2051,15 +2051,15 @@ function getTypeCacheKeys$x(rootKeySet, luvio, input, fullPathFactory) {
2051
2051
  function select$1e(luvio, params) {
2052
2052
  return select$1f();
2053
2053
  }
2054
- function keyBuilder$15(luvio, params) {
2054
+ function keyBuilder$14(luvio, params) {
2055
2055
  return keyPrefix + '::ManagedContentJobCollectionRepresentation:(' + 'jobType:' + params.queryParams.jobType + ',' + 'page:' + params.queryParams.page + ',' + 'pageSize:' + params.queryParams.pageSize + ',' + 'contentSpaceId:' + params.urlParams.contentSpaceId + ')';
2056
2056
  }
2057
2057
  function getResponseCacheKeys$I(storeKeyMap, luvio, resourceParams, response) {
2058
- getTypeCacheKeys$x(storeKeyMap, luvio, response, () => keyBuilder$15(luvio, resourceParams));
2058
+ getTypeCacheKeys$x(storeKeyMap, luvio, response, () => keyBuilder$14(luvio, resourceParams));
2059
2059
  }
2060
2060
  function ingestSuccess$J(luvio, resourceParams, response, snapshotRefresh) {
2061
2061
  const { body } = response;
2062
- const key = keyBuilder$15(luvio, resourceParams);
2062
+ const key = keyBuilder$14(luvio, resourceParams);
2063
2063
  luvio.storeIngest(key, ingest$x, body);
2064
2064
  const snapshot = luvio.storeLookup({
2065
2065
  recordId: key,
@@ -2075,7 +2075,7 @@ function ingestSuccess$J(luvio, resourceParams, response, snapshotRefresh) {
2075
2075
  return snapshot;
2076
2076
  }
2077
2077
  function ingestError$p(luvio, params, error, snapshotRefresh) {
2078
- const key = keyBuilder$15(luvio, params);
2078
+ const key = keyBuilder$14(luvio, params);
2079
2079
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
2080
2080
  const storeMetadataParams = {
2081
2081
  ttl: TTL$x,
@@ -2109,9 +2109,9 @@ const getAllCMSJobsForSpace_ConfigPropertyMetadata = [
2109
2109
  ];
2110
2110
  const getAllCMSJobsForSpace_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$I, getAllCMSJobsForSpace_ConfigPropertyMetadata);
2111
2111
  const createResourceParams$I = /*#__PURE__*/ createResourceParams$L(getAllCMSJobsForSpace_ConfigPropertyMetadata);
2112
- function keyBuilder$14(luvio, config) {
2112
+ function keyBuilder$13(luvio, config) {
2113
2113
  const resourceParams = createResourceParams$I(config);
2114
- return keyBuilder$15(luvio, resourceParams);
2114
+ return keyBuilder$14(luvio, resourceParams);
2115
2115
  }
2116
2116
  function typeCheckConfig$I(untrustedConfig) {
2117
2117
  const config = {};
@@ -2135,7 +2135,7 @@ function adapterFragment$p(luvio, config) {
2135
2135
  createResourceParams$I(config);
2136
2136
  return select$1e();
2137
2137
  }
2138
- function onFetchResponseSuccess$s(luvio, config, resourceParams, response) {
2138
+ function onFetchResponseSuccess$r(luvio, config, resourceParams, response) {
2139
2139
  const snapshot = ingestSuccess$J(luvio, resourceParams, response, {
2140
2140
  config,
2141
2141
  resolve: () => buildNetworkSnapshot$I(luvio, config, snapshotRefreshOptions)
@@ -2154,7 +2154,7 @@ function buildNetworkSnapshot$I(luvio, config, options) {
2154
2154
  const request = createResourceRequest$I(resourceParams);
2155
2155
  return luvio.dispatchResourceRequest(request, options)
2156
2156
  .then((response) => {
2157
- return luvio.handleSuccessResponse(() => onFetchResponseSuccess$s(luvio, config, resourceParams, response), () => {
2157
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess$r(luvio, config, resourceParams, response), () => {
2158
2158
  const cache = new StoreKeyMap();
2159
2159
  getResponseCacheKeys$I(cache, luvio, resourceParams, response.body);
2160
2160
  return cache;
@@ -2169,7 +2169,7 @@ function buildNetworkSnapshotCachePolicy$p(context, coercedAdapterRequestContext
2169
2169
  function buildCachedSnapshotCachePolicy$p(context, storeLookup) {
2170
2170
  const { luvio, config } = context;
2171
2171
  const selector = {
2172
- recordId: keyBuilder$14(luvio, config),
2172
+ recordId: keyBuilder$13(luvio, config),
2173
2173
  node: adapterFragment$p(luvio, config),
2174
2174
  variables: {},
2175
2175
  };
@@ -2192,8 +2192,8 @@ const getAllCMSJobsForSpaceAdapterFactory = (luvio) => function CMSAuthoring__ge
2192
2192
  function select$1d(luvio, params) {
2193
2193
  return select$1g();
2194
2194
  }
2195
- function keyBuilder$13(luvio, params) {
2196
- return keyBuilder$16(luvio, {
2195
+ function keyBuilder$12(luvio, params) {
2196
+ return keyBuilder$15(luvio, {
2197
2197
  id: params.urlParams.jobId
2198
2198
  });
2199
2199
  }
@@ -2202,7 +2202,7 @@ function getResponseCacheKeys$H(storeKeyMap, luvio, resourceParams, response) {
2202
2202
  }
2203
2203
  function ingestSuccess$I(luvio, resourceParams, response, snapshotRefresh) {
2204
2204
  const { body } = response;
2205
- const key = keyBuilder$13(luvio, resourceParams);
2205
+ const key = keyBuilder$12(luvio, resourceParams);
2206
2206
  luvio.storeIngest(key, ingest$y, body);
2207
2207
  const snapshot = luvio.storeLookup({
2208
2208
  recordId: key,
@@ -2218,7 +2218,7 @@ function ingestSuccess$I(luvio, resourceParams, response, snapshotRefresh) {
2218
2218
  return snapshot;
2219
2219
  }
2220
2220
  function ingestError$o(luvio, params, error, snapshotRefresh) {
2221
- const key = keyBuilder$13(luvio, params);
2221
+ const key = keyBuilder$12(luvio, params);
2222
2222
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
2223
2223
  const storeMetadataParams = {
2224
2224
  ttl: TTL$y,
@@ -2250,9 +2250,9 @@ const getCMSJobForSpace_ConfigPropertyMetadata = [
2250
2250
  ];
2251
2251
  const getCMSJobForSpace_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$H, getCMSJobForSpace_ConfigPropertyMetadata);
2252
2252
  const createResourceParams$H = /*#__PURE__*/ createResourceParams$L(getCMSJobForSpace_ConfigPropertyMetadata);
2253
- function keyBuilder$12(luvio, config) {
2253
+ function keyBuilder$11(luvio, config) {
2254
2254
  const resourceParams = createResourceParams$H(config);
2255
- return keyBuilder$13(luvio, resourceParams);
2255
+ return keyBuilder$12(luvio, resourceParams);
2256
2256
  }
2257
2257
  function typeCheckConfig$H(untrustedConfig) {
2258
2258
  const config = {};
@@ -2276,7 +2276,7 @@ function adapterFragment$o(luvio, config) {
2276
2276
  createResourceParams$H(config);
2277
2277
  return select$1d();
2278
2278
  }
2279
- function onFetchResponseSuccess$r(luvio, config, resourceParams, response) {
2279
+ function onFetchResponseSuccess$q(luvio, config, resourceParams, response) {
2280
2280
  const snapshot = ingestSuccess$I(luvio, resourceParams, response, {
2281
2281
  config,
2282
2282
  resolve: () => buildNetworkSnapshot$H(luvio, config, snapshotRefreshOptions)
@@ -2295,7 +2295,7 @@ function buildNetworkSnapshot$H(luvio, config, options) {
2295
2295
  const request = createResourceRequest$H(resourceParams);
2296
2296
  return luvio.dispatchResourceRequest(request, options)
2297
2297
  .then((response) => {
2298
- return luvio.handleSuccessResponse(() => onFetchResponseSuccess$r(luvio, config, resourceParams, response), () => {
2298
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess$q(luvio, config, resourceParams, response), () => {
2299
2299
  const cache = new StoreKeyMap();
2300
2300
  getResponseCacheKeys$H(cache, luvio, resourceParams, response.body);
2301
2301
  return cache;
@@ -2310,7 +2310,7 @@ function buildNetworkSnapshotCachePolicy$o(context, coercedAdapterRequestContext
2310
2310
  function buildCachedSnapshotCachePolicy$o(context, storeLookup) {
2311
2311
  const { luvio, config } = context;
2312
2312
  const selector = {
2313
- recordId: keyBuilder$12(luvio, config),
2313
+ recordId: keyBuilder$11(luvio, config),
2314
2314
  node: adapterFragment$o(luvio, config),
2315
2315
  variables: {},
2316
2316
  };
@@ -2517,15 +2517,15 @@ function getTypeCacheKeys$w(rootKeySet, luvio, input, fullPathFactory) {
2517
2517
  function select$1b(luvio, params) {
2518
2518
  return select$1c();
2519
2519
  }
2520
- function keyBuilder$11(luvio, params) {
2520
+ function keyBuilder$10(luvio, params) {
2521
2521
  return keyPrefix + '::ManagedContentSpaceFolderItemV1CollectionRepresentation:(' + 'contentTypeFilter:' + params.queryParams.contentTypeFilter + ',' + 'contentTypes:' + params.queryParams.contentTypes + ',' + 'filter:' + params.queryParams.filter + ',' + 'managedContentType:' + params.queryParams.managedContentType + ',' + 'page:' + params.queryParams.page + ',' + 'pageSize:' + params.queryParams.pageSize + ',' + 'queryTerm:' + params.queryParams.queryTerm + ',' + 'showPublishedOnly:' + params.queryParams.showPublishedOnly + ',' + 'sortBy:' + params.queryParams.sortBy + ',' + 'sortOrder:' + params.queryParams.sortOrder + ',' + 'folderId:' + params.urlParams.folderId + ')';
2522
2522
  }
2523
2523
  function getResponseCacheKeys$G(storeKeyMap, luvio, resourceParams, response) {
2524
- getTypeCacheKeys$w(storeKeyMap, luvio, response, () => keyBuilder$11(luvio, resourceParams));
2524
+ getTypeCacheKeys$w(storeKeyMap, luvio, response, () => keyBuilder$10(luvio, resourceParams));
2525
2525
  }
2526
2526
  function ingestSuccess$H(luvio, resourceParams, response, snapshotRefresh) {
2527
2527
  const { body } = response;
2528
- const key = keyBuilder$11(luvio, resourceParams);
2528
+ const key = keyBuilder$10(luvio, resourceParams);
2529
2529
  luvio.storeIngest(key, ingest$w, body);
2530
2530
  const snapshot = luvio.storeLookup({
2531
2531
  recordId: key,
@@ -2541,7 +2541,7 @@ function ingestSuccess$H(luvio, resourceParams, response, snapshotRefresh) {
2541
2541
  return snapshot;
2542
2542
  }
2543
2543
  function ingestError$n(luvio, params, error, snapshotRefresh) {
2544
- const key = keyBuilder$11(luvio, params);
2544
+ const key = keyBuilder$10(luvio, params);
2545
2545
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
2546
2546
  const storeMetadataParams = {
2547
2547
  ttl: TTL$w,
@@ -2582,9 +2582,9 @@ const getManagedContentSpaceFolderItemsV1_ConfigPropertyMetadata = [
2582
2582
  ];
2583
2583
  const getManagedContentSpaceFolderItemsV1_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$G, getManagedContentSpaceFolderItemsV1_ConfigPropertyMetadata);
2584
2584
  const createResourceParams$G = /*#__PURE__*/ createResourceParams$L(getManagedContentSpaceFolderItemsV1_ConfigPropertyMetadata);
2585
- function keyBuilder$10(luvio, config) {
2585
+ function keyBuilder$$(luvio, config) {
2586
2586
  const resourceParams = createResourceParams$G(config);
2587
- return keyBuilder$11(luvio, resourceParams);
2587
+ return keyBuilder$10(luvio, resourceParams);
2588
2588
  }
2589
2589
  function typeCheckConfig$G(untrustedConfig) {
2590
2590
  const config = {};
@@ -2608,7 +2608,7 @@ function adapterFragment$n(luvio, config) {
2608
2608
  createResourceParams$G(config);
2609
2609
  return select$1b();
2610
2610
  }
2611
- function onFetchResponseSuccess$q(luvio, config, resourceParams, response) {
2611
+ function onFetchResponseSuccess$p(luvio, config, resourceParams, response) {
2612
2612
  const snapshot = ingestSuccess$H(luvio, resourceParams, response, {
2613
2613
  config,
2614
2614
  resolve: () => buildNetworkSnapshot$G(luvio, config, snapshotRefreshOptions)
@@ -2627,7 +2627,7 @@ function buildNetworkSnapshot$G(luvio, config, options) {
2627
2627
  const request = createResourceRequest$G(resourceParams);
2628
2628
  return luvio.dispatchResourceRequest(request, options)
2629
2629
  .then((response) => {
2630
- return luvio.handleSuccessResponse(() => onFetchResponseSuccess$q(luvio, config, resourceParams, response), () => {
2630
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess$p(luvio, config, resourceParams, response), () => {
2631
2631
  const cache = new StoreKeyMap();
2632
2632
  getResponseCacheKeys$G(cache, luvio, resourceParams, response.body);
2633
2633
  return cache;
@@ -2642,7 +2642,7 @@ function buildNetworkSnapshotCachePolicy$n(context, coercedAdapterRequestContext
2642
2642
  function buildCachedSnapshotCachePolicy$n(context, storeLookup) {
2643
2643
  const { luvio, config } = context;
2644
2644
  const selector = {
2645
- recordId: keyBuilder$10(luvio, config),
2645
+ recordId: keyBuilder$$(luvio, config),
2646
2646
  node: adapterFragment$n(luvio, config),
2647
2647
  variables: {},
2648
2648
  };
@@ -2723,7 +2723,7 @@ function validate$10(obj, path = 'ManagedContentCollectionItemRepresentation') {
2723
2723
  }
2724
2724
 
2725
2725
  const TTL$v = 100;
2726
- const VERSION$x = "eeea454f1268ece5c3e24c986688b876";
2726
+ const VERSION$x = "04fc59c4443f12c021c76e1603338c85";
2727
2727
  function validate$$(obj, path = 'ManagedContentCollectionDetailRepresentation') {
2728
2728
  const v_error = (() => {
2729
2729
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -2742,6 +2742,11 @@ function validate$$(obj, path = 'ManagedContentCollectionDetailRepresentation')
2742
2742
  message += referencepath_collectionTypeValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
2743
2743
  return new TypeError(message);
2744
2744
  }
2745
+ const obj_currentPageUrl = obj.currentPageUrl;
2746
+ const path_currentPageUrl = path + '.currentPageUrl';
2747
+ if (typeof obj_currentPageUrl !== 'string') {
2748
+ return new TypeError('Expected "string" but received "' + typeof obj_currentPageUrl + '" (at "' + path_currentPageUrl + '")');
2749
+ }
2745
2750
  const obj_id = obj.id;
2746
2751
  const path_id = path + '.id';
2747
2752
  if (typeof obj_id !== 'string') {
@@ -2772,15 +2777,31 @@ function validate$$(obj, path = 'ManagedContentCollectionDetailRepresentation')
2772
2777
  if (typeof obj_language !== 'string') {
2773
2778
  return new TypeError('Expected "string" but received "' + typeof obj_language + '" (at "' + path_language + '")');
2774
2779
  }
2780
+ if (obj.nextPageUrl !== undefined) {
2781
+ const obj_nextPageUrl = obj.nextPageUrl;
2782
+ const path_nextPageUrl = path + '.nextPageUrl';
2783
+ if (typeof obj_nextPageUrl !== 'string') {
2784
+ return new TypeError('Expected "string" but received "' + typeof obj_nextPageUrl + '" (at "' + path_nextPageUrl + '")');
2785
+ }
2786
+ }
2787
+ if (obj.previousPageUrl !== undefined) {
2788
+ const obj_previousPageUrl = obj.previousPageUrl;
2789
+ const path_previousPageUrl = path + '.previousPageUrl';
2790
+ if (typeof obj_previousPageUrl !== 'string') {
2791
+ return new TypeError('Expected "string" but received "' + typeof obj_previousPageUrl + '" (at "' + path_previousPageUrl + '")');
2792
+ }
2793
+ }
2775
2794
  const obj_title = obj.title;
2776
2795
  const path_title = path + '.title';
2777
2796
  if (typeof obj_title !== 'string') {
2778
2797
  return new TypeError('Expected "string" but received "' + typeof obj_title + '" (at "' + path_title + '")');
2779
2798
  }
2780
- const obj_total = obj.total;
2781
- const path_total = path + '.total';
2782
- if (typeof obj_total !== 'number' || (typeof obj_total === 'number' && Math.floor(obj_total) !== obj_total)) {
2783
- return new TypeError('Expected "integer" but received "' + typeof obj_total + '" (at "' + path_total + '")');
2799
+ if (obj.total !== undefined) {
2800
+ const obj_total = obj.total;
2801
+ const path_total = path + '.total';
2802
+ if (typeof obj_total !== 'number' || (typeof obj_total === 'number' && Math.floor(obj_total) !== obj_total)) {
2803
+ return new TypeError('Expected "integer" but received "' + typeof obj_total + '" (at "' + path_total + '")');
2804
+ }
2784
2805
  }
2785
2806
  const obj_urlName = obj.urlName;
2786
2807
  const path_urlName = path + '.urlName';
@@ -2796,17 +2817,6 @@ function validate$$(obj, path = 'ManagedContentCollectionDetailRepresentation')
2796
2817
  return v_error === undefined ? null : v_error;
2797
2818
  }
2798
2819
  const RepresentationType$v = 'ManagedContentCollectionDetailRepresentation';
2799
- function keyBuilder$$(luvio, config) {
2800
- return keyPrefix + '::' + RepresentationType$v + ':' + config.collection_key + ':' + config.language + ':' + config.version;
2801
- }
2802
- function keyBuilderFromType$g(luvio, object) {
2803
- const keyParams = {
2804
- collection_key: object.collectionKey,
2805
- language: object.language,
2806
- version: object.versionNumber
2807
- };
2808
- return keyBuilder$$(luvio, keyParams);
2809
- }
2810
2820
  function normalize$v(input, existing, path, luvio, store, timestamp) {
2811
2821
  return input;
2812
2822
  }
@@ -2831,14 +2841,14 @@ const ingest$v = function ManagedContentCollectionDetailRepresentationIngest(inp
2831
2841
  throw validateError;
2832
2842
  }
2833
2843
  }
2834
- const key = keyBuilderFromType$g(luvio, input);
2844
+ const key = path.fullPath;
2835
2845
  const ttlToUse = TTL$v;
2836
2846
  ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$v, "CMSAuthoring", VERSION$x, RepresentationType$v, equals$x);
2837
2847
  return createLink(key);
2838
2848
  };
2839
2849
  function getTypeCacheKeys$v(rootKeySet, luvio, input, fullPathFactory) {
2840
2850
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
2841
- const rootKey = keyBuilderFromType$g(luvio, input);
2851
+ const rootKey = fullPathFactory();
2842
2852
  rootKeySet.set(rootKey, {
2843
2853
  namespace: keyPrefix,
2844
2854
  representationName: RepresentationType$v,
@@ -2850,14 +2860,10 @@ function select$19(luvio, params) {
2850
2860
  return select$1a();
2851
2861
  }
2852
2862
  function keyBuilder$_(luvio, params) {
2853
- return keyBuilder$$(luvio, {
2854
- collection_key: params.urlParams.collectionKeyOrId,
2855
- language: params.queryParams.language || '',
2856
- version: params.queryParams.version || ''
2857
- });
2863
+ return keyPrefix + '::ManagedContentCollectionDetailRepresentation:(' + 'channelId:' + params.queryParams.channelId + ',' + 'language:' + params.queryParams.language + ',' + 'page:' + params.queryParams.page + ',' + 'pageSize:' + params.queryParams.pageSize + ',' + 'version:' + params.queryParams.version + ',' + 'collectionKeyOrId:' + params.urlParams.collectionKeyOrId + ')';
2858
2864
  }
2859
2865
  function getResponseCacheKeys$F(storeKeyMap, luvio, resourceParams, response) {
2860
- getTypeCacheKeys$v(storeKeyMap, luvio, response);
2866
+ getTypeCacheKeys$v(storeKeyMap, luvio, response, () => keyBuilder$_(luvio, resourceParams));
2861
2867
  }
2862
2868
  function ingestSuccess$G(luvio, resourceParams, response, snapshotRefresh) {
2863
2869
  const { body } = response;
@@ -2902,25 +2908,13 @@ function createResourceRequest$F(config) {
2902
2908
  };
2903
2909
  }
2904
2910
 
2905
- function onFetchResponseSuccess$p(luvio, config, resourceParams, response) {
2906
- let updatedResourceParams = resourceParams;
2907
- // If language is not provided in request resource params, use language from the response
2908
- // and update the response params. As this resource params will be used to build a cache key.
2909
- if (updatedResourceParams.queryParams.language === undefined) {
2910
- updatedResourceParams.queryParams.language = response.body.language;
2911
- }
2912
- // If version is not provided in request resource params, use versionNumber from the response
2913
- // and update the response params. As this resource params will be used to build a cache key.
2914
- if (updatedResourceParams.queryParams.version === undefined) {
2915
- updatedResourceParams.queryParams.version = response.body.versionNumber;
2916
- }
2917
- return onFetchResponseSuccess$o(luvio, config, updatedResourceParams, response);
2918
- }
2919
-
2920
2911
  const adapterName$F = 'getCollectionItems';
2921
2912
  const getCollectionItems_ConfigPropertyMetadata = [
2922
2913
  generateParamConfigMetadata('collectionKeyOrId', true, 0 /* UrlParameter */, 0 /* String */),
2914
+ generateParamConfigMetadata('channelId', false, 1 /* QueryParameter */, 0 /* String */),
2923
2915
  generateParamConfigMetadata('language', false, 1 /* QueryParameter */, 0 /* String */),
2916
+ generateParamConfigMetadata('page', false, 1 /* QueryParameter */, 3 /* Integer */),
2917
+ generateParamConfigMetadata('pageSize', false, 1 /* QueryParameter */, 3 /* Integer */),
2924
2918
  generateParamConfigMetadata('version', false, 1 /* QueryParameter */, 0 /* String */),
2925
2919
  ];
2926
2920
  const getCollectionItems_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$F, getCollectionItems_ConfigPropertyMetadata);
@@ -2970,7 +2964,7 @@ function buildNetworkSnapshot$F(luvio, config, options) {
2970
2964
  const request = createResourceRequest$F(resourceParams);
2971
2965
  return luvio.dispatchResourceRequest(request, options)
2972
2966
  .then((response) => {
2973
- return luvio.handleSuccessResponse(() => onFetchResponseSuccess$p(luvio, config, resourceParams, response), () => {
2967
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess$o(luvio, config, resourceParams, response), () => {
2974
2968
  const cache = new StoreKeyMap();
2975
2969
  getResponseCacheKeys$F(cache, luvio, resourceParams, response.body);
2976
2970
  return cache;
@@ -10182,7 +10176,7 @@ function getResponseCacheKeys$d(storeKeyMap, luvio, resourceParams, response) {
10182
10176
  }
10183
10177
  function ingestSuccess$d(luvio, resourceParams, response) {
10184
10178
  const { body } = response;
10185
- const key = keyBuilderFromType$i(luvio, body);
10179
+ const key = keyBuilderFromType$h(luvio, body);
10186
10180
  luvio.storeIngest(key, ingest$A, body);
10187
10181
  const snapshot = luvio.storeLookup({
10188
10182
  recordId: key,
@@ -10280,7 +10274,7 @@ function getResponseCacheKeys$c(storeKeyMap, luvio, resourceParams, response) {
10280
10274
  }
10281
10275
  function ingestSuccess$c(luvio, resourceParams, response) {
10282
10276
  const { body } = response;
10283
- const key = keyBuilderFromType$i(luvio, body);
10277
+ const key = keyBuilderFromType$h(luvio, body);
10284
10278
  luvio.storeIngest(key, ingest$A, body);
10285
10279
  const snapshot = luvio.storeLookup({
10286
10280
  recordId: key,
@@ -7,7 +7,10 @@ export declare const getCollectionItems_ConfigPropertyMetadata: $64$luvio_engine
7
7
  export declare const getCollectionItems_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
8
8
  export interface GetCollectionItemsConfig {
9
9
  collectionKeyOrId: string;
10
+ channelId?: string;
10
11
  language?: string;
12
+ page?: number;
13
+ pageSize?: number;
11
14
  version?: string;
12
15
  }
13
16
  export declare const createResourceParams: (config: GetCollectionItemsConfig) => resources_getConnectCmsCollectionsByCollectionKeyOrId_ResourceRequestConfig;
@@ -5,7 +5,10 @@ export interface ResourceRequestConfig {
5
5
  collectionKeyOrId: string;
6
6
  };
7
7
  queryParams: {
8
+ channelId?: string;
8
9
  language?: string;
10
+ page?: number;
11
+ pageSize?: number;
9
12
  version?: string;
10
13
  };
11
14
  }
@@ -1,21 +1,10 @@
1
1
  import { ManagedContentTypeSummaryRepresentation as ManagedContentTypeSummaryRepresentation_ManagedContentTypeSummaryRepresentation } from './ManagedContentTypeSummaryRepresentation';
2
2
  import { ManagedContentCollectionItemRepresentation as ManagedContentCollectionItemRepresentation_ManagedContentCollectionItemRepresentation } from './ManagedContentCollectionItemRepresentation';
3
- 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';
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 = 100;
5
- export declare const VERSION = "eeea454f1268ece5c3e24c986688b876";
5
+ export declare const VERSION = "04fc59c4443f12c021c76e1603338c85";
6
6
  export declare function validate(obj: any, path?: string): TypeError | null;
7
7
  export declare const RepresentationType: string;
8
- export interface KeyParams extends $64$luvio_engine_KeyMetadata {
9
- collection_key: string;
10
- language: string;
11
- version: string;
12
- }
13
- export type ManagedContentCollectionDetailRepresentationNormalizedKeyMetadata = KeyParams & $64$luvio_engine_NormalizedKeyMetadata;
14
- export type PartialManagedContentCollectionDetailRepresentationNormalizedKeyMetadata = Partial<KeyParams> & $64$luvio_engine_NormalizedKeyMetadata;
15
- export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: KeyParams): string;
16
- export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, config: KeyParams): ManagedContentCollectionDetailRepresentationNormalizedKeyMetadata;
17
- export declare function keyBuilderFromType(luvio: $64$luvio_engine_Luvio, object: ManagedContentCollectionDetailRepresentation): string;
18
- export declare function keyBuilderFromType_StructuredKey(luvio: $64$luvio_engine_Luvio, object: ManagedContentCollectionDetailRepresentation): $64$luvio_engine_NormalizedKeyMetadata;
19
8
  export declare function normalize(input: ManagedContentCollectionDetailRepresentation, existing: ManagedContentCollectionDetailRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ManagedContentCollectionDetailRepresentationNormalized;
20
9
  export declare const select: () => $64$luvio_engine_BaseFragment;
21
10
  export declare function equals(existing: ManagedContentCollectionDetailRepresentationNormalized, incoming: ManagedContentCollectionDetailRepresentationNormalized): boolean;
@@ -25,14 +14,14 @@ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableSto
25
14
  * Information about collection Items for authoring.
26
15
  *
27
16
  * Keys:
28
- * collection_key (string): collectionKey
29
- * language (string): language
30
- * version (string): versionNumber
17
+ * (none)
31
18
  */
32
19
  export interface ManagedContentCollectionDetailRepresentationNormalized {
33
20
  /** The collection key */
34
21
  collectionKey: string;
35
22
  collectionType: ManagedContentTypeSummaryRepresentation_ManagedContentTypeSummaryRepresentation;
23
+ /** URL to the current page of collection authoring records. */
24
+ currentPageUrl: string;
36
25
  /** The id of the collection */
37
26
  id: string;
38
27
  /** Published Date of the collection. */
@@ -41,10 +30,14 @@ export interface ManagedContentCollectionDetailRepresentationNormalized {
41
30
  items: Array<ManagedContentCollectionItemRepresentation_ManagedContentCollectionItemRepresentation>;
42
31
  /** language of the collection. */
43
32
  language: string;
33
+ /** URL to the next page of collection authoring records. */
34
+ nextPageUrl?: string;
35
+ /** URL to the previous page of collection authoring records. */
36
+ previousPageUrl?: string;
44
37
  /** Title of the collection. */
45
38
  title: string;
46
39
  /** Total number of items in current collection detail page. */
47
- total: number;
40
+ total?: number;
48
41
  /** URL Name of the collection. */
49
42
  urlName: string;
50
43
  /** The version number of the managed content collection. */
@@ -54,19 +47,20 @@ export interface ManagedContentCollectionDetailRepresentationNormalized {
54
47
  * Information about collection Items for authoring.
55
48
  *
56
49
  * Keys:
57
- * collection_key (string): collectionKey
58
- * language (string): language
59
- * version (string): versionNumber
50
+ * (none)
60
51
  */
61
52
  export interface ManagedContentCollectionDetailRepresentation {
62
53
  collectionKey: string;
63
54
  collectionType: ManagedContentTypeSummaryRepresentation_ManagedContentTypeSummaryRepresentation;
55
+ currentPageUrl: string;
64
56
  id: string;
65
57
  isPublished: boolean;
66
58
  items: Array<ManagedContentCollectionItemRepresentation_ManagedContentCollectionItemRepresentation>;
67
59
  language: string;
60
+ nextPageUrl?: string;
61
+ previousPageUrl?: string;
68
62
  title: string;
69
- total: number;
63
+ total?: number;
70
64
  urlName: string;
71
65
  versionNumber: string;
72
66
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-adapters-cms-authoring",
3
- "version": "1.313.0",
3
+ "version": "1.315.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.313.0"
47
+ "@salesforce/lds-bindings": "^1.315.0"
48
48
  },
49
49
  "devDependencies": {
50
- "@salesforce/lds-compiler-plugins": "^1.313.0",
51
- "@salesforce/lds-karma": "^1.313.0"
50
+ "@salesforce/lds-compiler-plugins": "^1.315.0",
51
+ "@salesforce/lds-karma": "^1.315.0"
52
52
  },
53
53
  "nx": {
54
54
  "targets": {