@salesforce/lds-adapters-experience-model 1.251.0 → 1.253.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.
package/sfdc/index.js CHANGED
@@ -14,7 +14,7 @@
14
14
  /* proxy-compat-disable */
15
15
  import { createInstrumentedAdapter, createLDSAdapter, createWireAdapterConstructor, createImperativeAdapter } from 'force/ldsBindings';
16
16
  import { withDefaultLuvio } from 'force/ldsEngine';
17
- import { serializeStructuredKey, ingestShape, deepFreeze, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$6, typeCheckConfig as typeCheckConfig$6, StoreKeyMap, createResourceParams as createResourceParams$6 } from 'force/luvioEngine';
17
+ import { serializeStructuredKey, ingestShape, deepFreeze, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$7, typeCheckConfig as typeCheckConfig$7, StoreKeyMap, createResourceParams as createResourceParams$7 } from 'force/luvioEngine';
18
18
 
19
19
  const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
20
20
  const { keys: ObjectKeys$1, create: ObjectCreate$1 } = Object;
@@ -90,9 +90,9 @@ function createLink(ref) {
90
90
  };
91
91
  }
92
92
 
93
- const TTL$5 = 3600000;
94
- const VERSION$5 = "5a3f5e1d42d8f0aa089e888ddac06972";
95
- function validate$8(obj, path = 'ExperienceModelBlockTypeDetailRepresentation') {
93
+ const TTL$6 = 3600000;
94
+ const VERSION$6 = "5a3f5e1d42d8f0aa089e888ddac06972";
95
+ function validate$e(obj, path = 'ExperienceModelBlockTypeDetailRepresentation') {
96
96
  const v_error = (() => {
97
97
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
98
98
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -177,62 +177,62 @@ function validate$8(obj, path = 'ExperienceModelBlockTypeDetailRepresentation')
177
177
  })();
178
178
  return v_error === undefined ? null : v_error;
179
179
  }
180
- const RepresentationType$5 = 'ExperienceModelBlockTypeDetailRepresentation';
181
- function normalize$5(input, existing, path, luvio, store, timestamp) {
180
+ const RepresentationType$6 = 'ExperienceModelBlockTypeDetailRepresentation';
181
+ function normalize$6(input, existing, path, luvio, store, timestamp) {
182
182
  return input;
183
183
  }
184
- const select$b = function ExperienceModelBlockTypeDetailRepresentationSelect() {
184
+ const select$d = function ExperienceModelBlockTypeDetailRepresentationSelect() {
185
185
  return {
186
186
  kind: 'Fragment',
187
- version: VERSION$5,
187
+ version: VERSION$6,
188
188
  private: [],
189
189
  opaque: true
190
190
  };
191
191
  };
192
- function equals$5(existing, incoming) {
192
+ function equals$6(existing, incoming) {
193
193
  if (JSONStringify(incoming) !== JSONStringify(existing)) {
194
194
  return false;
195
195
  }
196
196
  return true;
197
197
  }
198
- const ingest$5 = function ExperienceModelBlockTypeDetailRepresentationIngest(input, path, luvio, store, timestamp) {
198
+ const ingest$6 = function ExperienceModelBlockTypeDetailRepresentationIngest(input, path, luvio, store, timestamp) {
199
199
  if (process.env.NODE_ENV !== 'production') {
200
- const validateError = validate$8(input);
200
+ const validateError = validate$e(input);
201
201
  if (validateError !== null) {
202
202
  throw validateError;
203
203
  }
204
204
  }
205
205
  const key = path.fullPath;
206
- const ttlToUse = TTL$5;
207
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$5, "ExperienceType", VERSION$5, RepresentationType$5, equals$5);
206
+ const ttlToUse = TTL$6;
207
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$6, "ExperienceType", VERSION$6, RepresentationType$6, equals$6);
208
208
  return createLink(key);
209
209
  };
210
- function getTypeCacheKeys$5(rootKeySet, luvio, input, fullPathFactory) {
210
+ function getTypeCacheKeys$6(rootKeySet, luvio, input, fullPathFactory) {
211
211
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
212
212
  const rootKey = fullPathFactory();
213
213
  rootKeySet.set(rootKey, {
214
214
  namespace: keyPrefix,
215
- representationName: RepresentationType$5,
215
+ representationName: RepresentationType$6,
216
216
  mergeable: false
217
217
  });
218
218
  }
219
219
 
220
- function select$a(luvio, params) {
221
- return select$b();
220
+ function select$c(luvio, params) {
221
+ return select$d();
222
222
  }
223
- function keyBuilder$b(luvio, params) {
223
+ function keyBuilder$d(luvio, params) {
224
224
  return keyPrefix + '::ExperienceModelBlockTypeDetailRepresentation:(' + 'designConfigTarget:' + params.queryParams.designConfigTarget + ',' + 'includeSubSchemaDefinitions:' + params.queryParams.includeSubSchemaDefinitions + ',' + 'language:' + params.queryParams.language + ',' + 'renditionConfigTarget:' + params.queryParams.renditionConfigTarget + ',' + 'fullyQualifiedName:' + params.urlParams.fullyQualifiedName + ')';
225
225
  }
226
- function getResponseCacheKeys$5(storeKeyMap, luvio, resourceParams, response) {
227
- getTypeCacheKeys$5(storeKeyMap, luvio, response, () => keyBuilder$b(luvio, resourceParams));
226
+ function getResponseCacheKeys$6(storeKeyMap, luvio, resourceParams, response) {
227
+ getTypeCacheKeys$6(storeKeyMap, luvio, response, () => keyBuilder$d(luvio, resourceParams));
228
228
  }
229
- function ingestSuccess$5(luvio, resourceParams, response, snapshotRefresh) {
229
+ function ingestSuccess$6(luvio, resourceParams, response, snapshotRefresh) {
230
230
  const { body } = response;
231
- const key = keyBuilder$b(luvio, resourceParams);
232
- luvio.storeIngest(key, ingest$5, body);
231
+ const key = keyBuilder$d(luvio, resourceParams);
232
+ luvio.storeIngest(key, ingest$6, body);
233
233
  const snapshot = luvio.storeLookup({
234
234
  recordId: key,
235
- node: select$a(),
235
+ node: select$c(),
236
236
  variables: {},
237
237
  }, snapshotRefresh);
238
238
  if (process.env.NODE_ENV !== 'production') {
@@ -243,19 +243,19 @@ function ingestSuccess$5(luvio, resourceParams, response, snapshotRefresh) {
243
243
  deepFreeze(snapshot.data);
244
244
  return snapshot;
245
245
  }
246
- function ingestError$5(luvio, params, error, snapshotRefresh) {
247
- const key = keyBuilder$b(luvio, params);
246
+ function ingestError$6(luvio, params, error, snapshotRefresh) {
247
+ const key = keyBuilder$d(luvio, params);
248
248
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
249
249
  const storeMetadataParams = {
250
- ttl: TTL$5,
250
+ ttl: TTL$6,
251
251
  namespace: keyPrefix,
252
- version: VERSION$5,
253
- representationName: RepresentationType$5
252
+ version: VERSION$6,
253
+ representationName: RepresentationType$6
254
254
  };
255
255
  luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
256
256
  return errorSnapshot;
257
257
  }
258
- function createResourceRequest$5(config) {
258
+ function createResourceRequest$6(config) {
259
259
  const headers = {};
260
260
  return {
261
261
  baseUri: '/services/data/v60.0',
@@ -269,7 +269,7 @@ function createResourceRequest$5(config) {
269
269
  };
270
270
  }
271
271
 
272
- const adapterName$5 = 'getBlockType';
272
+ const adapterName$6 = 'getBlockType';
273
273
  const getBlockType_ConfigPropertyMetadata = [
274
274
  generateParamConfigMetadata('fullyQualifiedName', true, 0 /* UrlParameter */, 0 /* String */),
275
275
  generateParamConfigMetadata('designConfigTarget', false, 1 /* QueryParameter */, 0 /* String */),
@@ -277,89 +277,89 @@ const getBlockType_ConfigPropertyMetadata = [
277
277
  generateParamConfigMetadata('language', false, 1 /* QueryParameter */, 0 /* String */),
278
278
  generateParamConfigMetadata('renditionConfigTarget', false, 1 /* QueryParameter */, 0 /* String */),
279
279
  ];
280
- const getBlockType_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, getBlockType_ConfigPropertyMetadata);
281
- const createResourceParams$5 = /*#__PURE__*/ createResourceParams$6(getBlockType_ConfigPropertyMetadata);
282
- function keyBuilder$a(luvio, config) {
283
- const resourceParams = createResourceParams$5(config);
284
- return keyBuilder$b(luvio, resourceParams);
280
+ const getBlockType_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, getBlockType_ConfigPropertyMetadata);
281
+ const createResourceParams$6 = /*#__PURE__*/ createResourceParams$7(getBlockType_ConfigPropertyMetadata);
282
+ function keyBuilder$c(luvio, config) {
283
+ const resourceParams = createResourceParams$6(config);
284
+ return keyBuilder$d(luvio, resourceParams);
285
285
  }
286
- function typeCheckConfig$5(untrustedConfig) {
286
+ function typeCheckConfig$6(untrustedConfig) {
287
287
  const config = {};
288
- typeCheckConfig$6(untrustedConfig, config, getBlockType_ConfigPropertyMetadata);
288
+ typeCheckConfig$7(untrustedConfig, config, getBlockType_ConfigPropertyMetadata);
289
289
  return config;
290
290
  }
291
- function validateAdapterConfig$5(untrustedConfig, configPropertyNames) {
291
+ function validateAdapterConfig$6(untrustedConfig, configPropertyNames) {
292
292
  if (!untrustedIsObject(untrustedConfig)) {
293
293
  return null;
294
294
  }
295
295
  if (process.env.NODE_ENV !== 'production') {
296
296
  validateConfig(untrustedConfig, configPropertyNames);
297
297
  }
298
- const config = typeCheckConfig$5(untrustedConfig);
298
+ const config = typeCheckConfig$6(untrustedConfig);
299
299
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
300
300
  return null;
301
301
  }
302
302
  return config;
303
303
  }
304
- function adapterFragment$5(luvio, config) {
305
- createResourceParams$5(config);
306
- return select$a();
304
+ function adapterFragment$6(luvio, config) {
305
+ createResourceParams$6(config);
306
+ return select$c();
307
307
  }
308
- function onFetchResponseSuccess$5(luvio, config, resourceParams, response) {
309
- const snapshot = ingestSuccess$5(luvio, resourceParams, response, {
308
+ function onFetchResponseSuccess$6(luvio, config, resourceParams, response) {
309
+ const snapshot = ingestSuccess$6(luvio, resourceParams, response, {
310
310
  config,
311
- resolve: () => buildNetworkSnapshot$5(luvio, config, snapshotRefreshOptions)
311
+ resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
312
312
  });
313
313
  return luvio.storeBroadcast().then(() => snapshot);
314
314
  }
315
- function onFetchResponseError$5(luvio, config, resourceParams, response) {
316
- const snapshot = ingestError$5(luvio, resourceParams, response, {
315
+ function onFetchResponseError$6(luvio, config, resourceParams, response) {
316
+ const snapshot = ingestError$6(luvio, resourceParams, response, {
317
317
  config,
318
- resolve: () => buildNetworkSnapshot$5(luvio, config, snapshotRefreshOptions)
318
+ resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
319
319
  });
320
320
  return luvio.storeBroadcast().then(() => snapshot);
321
321
  }
322
- function buildNetworkSnapshot$5(luvio, config, options) {
323
- const resourceParams = createResourceParams$5(config);
324
- const request = createResourceRequest$5(resourceParams);
322
+ function buildNetworkSnapshot$6(luvio, config, options) {
323
+ const resourceParams = createResourceParams$6(config);
324
+ const request = createResourceRequest$6(resourceParams);
325
325
  return luvio.dispatchResourceRequest(request, options)
326
326
  .then((response) => {
327
- return luvio.handleSuccessResponse(() => onFetchResponseSuccess$5(luvio, config, resourceParams, response), () => {
327
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess$6(luvio, config, resourceParams, response), () => {
328
328
  const cache = new StoreKeyMap();
329
- getResponseCacheKeys$5(cache, luvio, resourceParams, response.body);
329
+ getResponseCacheKeys$6(cache, luvio, resourceParams, response.body);
330
330
  return cache;
331
331
  });
332
332
  }, (response) => {
333
- return luvio.handleErrorResponse(() => onFetchResponseError$5(luvio, config, resourceParams, response));
333
+ return luvio.handleErrorResponse(() => onFetchResponseError$6(luvio, config, resourceParams, response));
334
334
  });
335
335
  }
336
- function buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext) {
337
- return buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext, buildNetworkSnapshot$5, undefined, false);
336
+ function buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext) {
337
+ return buildNetworkSnapshotCachePolicy$7(context, coercedAdapterRequestContext, buildNetworkSnapshot$6, undefined, false);
338
338
  }
339
- function buildCachedSnapshotCachePolicy$5(context, storeLookup) {
339
+ function buildCachedSnapshotCachePolicy$6(context, storeLookup) {
340
340
  const { luvio, config } = context;
341
341
  const selector = {
342
- recordId: keyBuilder$a(luvio, config),
343
- node: adapterFragment$5(luvio, config),
342
+ recordId: keyBuilder$c(luvio, config),
343
+ node: adapterFragment$6(luvio, config),
344
344
  variables: {},
345
345
  };
346
346
  const cacheSnapshot = storeLookup(selector, {
347
347
  config,
348
- resolve: () => buildNetworkSnapshot$5(luvio, config, snapshotRefreshOptions)
348
+ resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
349
349
  });
350
350
  return cacheSnapshot;
351
351
  }
352
352
  const getBlockTypeAdapterFactory = (luvio) => function ExperienceType__getBlockType(untrustedConfig, requestContext) {
353
- const config = validateAdapterConfig$5(untrustedConfig, getBlockType_ConfigPropertyNames);
353
+ const config = validateAdapterConfig$6(untrustedConfig, getBlockType_ConfigPropertyNames);
354
354
  // Invalid or incomplete config
355
355
  if (config === null) {
356
356
  return null;
357
357
  }
358
358
  return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
359
- buildCachedSnapshotCachePolicy$5, buildNetworkSnapshotCachePolicy$5);
359
+ buildCachedSnapshotCachePolicy$6, buildNetworkSnapshotCachePolicy$6);
360
360
  };
361
361
 
362
- function validate$7(obj, path = 'ExperienceModelBlockTypeSummaryRepresentation') {
362
+ function validate$d(obj, path = 'ExperienceModelBlockTypeSummaryRepresentation') {
363
363
  const v_error = (() => {
364
364
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
365
365
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -416,9 +416,9 @@ function validate$7(obj, path = 'ExperienceModelBlockTypeSummaryRepresentation')
416
416
  return v_error === undefined ? null : v_error;
417
417
  }
418
418
 
419
- const TTL$4 = 3600000;
420
- const VERSION$4 = "c4cd880e972cdf9faaa6db963fe35b31";
421
- function validate$6(obj, path = 'ExperienceModelBlockTypeCollectionRepresentation') {
419
+ const TTL$5 = 3600000;
420
+ const VERSION$5 = "c4cd880e972cdf9faaa6db963fe35b31";
421
+ function validate$c(obj, path = 'ExperienceModelBlockTypeCollectionRepresentation') {
422
422
  const v_error = (() => {
423
423
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
424
424
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -431,7 +431,7 @@ function validate$6(obj, path = 'ExperienceModelBlockTypeCollectionRepresentatio
431
431
  for (let i = 0; i < obj_blockTypes.length; i++) {
432
432
  const obj_blockTypes_item = obj_blockTypes[i];
433
433
  const path_blockTypes_item = path_blockTypes + '[' + i + ']';
434
- const referencepath_blockTypes_itemValidationError = validate$7(obj_blockTypes_item, path_blockTypes_item);
434
+ const referencepath_blockTypes_itemValidationError = validate$d(obj_blockTypes_item, path_blockTypes_item);
435
435
  if (referencepath_blockTypes_itemValidationError !== null) {
436
436
  let message = 'Object doesn\'t match ExperienceModelBlockTypeSummaryRepresentation (at "' + path_blockTypes_item + '")\n';
437
437
  message += referencepath_blockTypes_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -465,62 +465,62 @@ function validate$6(obj, path = 'ExperienceModelBlockTypeCollectionRepresentatio
465
465
  })();
466
466
  return v_error === undefined ? null : v_error;
467
467
  }
468
- const RepresentationType$4 = 'ExperienceModelBlockTypeCollectionRepresentation';
469
- function normalize$4(input, existing, path, luvio, store, timestamp) {
468
+ const RepresentationType$5 = 'ExperienceModelBlockTypeCollectionRepresentation';
469
+ function normalize$5(input, existing, path, luvio, store, timestamp) {
470
470
  return input;
471
471
  }
472
- const select$9 = function ExperienceModelBlockTypeCollectionRepresentationSelect() {
472
+ const select$b = function ExperienceModelBlockTypeCollectionRepresentationSelect() {
473
473
  return {
474
474
  kind: 'Fragment',
475
- version: VERSION$4,
475
+ version: VERSION$5,
476
476
  private: [],
477
477
  opaque: true
478
478
  };
479
479
  };
480
- function equals$4(existing, incoming) {
480
+ function equals$5(existing, incoming) {
481
481
  if (JSONStringify(incoming) !== JSONStringify(existing)) {
482
482
  return false;
483
483
  }
484
484
  return true;
485
485
  }
486
- const ingest$4 = function ExperienceModelBlockTypeCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
486
+ const ingest$5 = function ExperienceModelBlockTypeCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
487
487
  if (process.env.NODE_ENV !== 'production') {
488
- const validateError = validate$6(input);
488
+ const validateError = validate$c(input);
489
489
  if (validateError !== null) {
490
490
  throw validateError;
491
491
  }
492
492
  }
493
493
  const key = path.fullPath;
494
- const ttlToUse = TTL$4;
495
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$4, "ExperienceType", VERSION$4, RepresentationType$4, equals$4);
494
+ const ttlToUse = TTL$5;
495
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$5, "ExperienceType", VERSION$5, RepresentationType$5, equals$5);
496
496
  return createLink(key);
497
497
  };
498
- function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
498
+ function getTypeCacheKeys$5(rootKeySet, luvio, input, fullPathFactory) {
499
499
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
500
500
  const rootKey = fullPathFactory();
501
501
  rootKeySet.set(rootKey, {
502
502
  namespace: keyPrefix,
503
- representationName: RepresentationType$4,
503
+ representationName: RepresentationType$5,
504
504
  mergeable: false
505
505
  });
506
506
  }
507
507
 
508
- function select$8(luvio, params) {
509
- return select$9();
508
+ function select$a(luvio, params) {
509
+ return select$b();
510
510
  }
511
- function keyBuilder$9(luvio, params) {
511
+ function keyBuilder$b(luvio, params) {
512
512
  return keyPrefix + '::ExperienceModelBlockTypeCollectionRepresentation:(' + 'contentTypeFullyQualifiedName:' + params.queryParams.contentTypeFullyQualifiedName + ',' + 'designConfigTarget:' + params.queryParams.designConfigTarget + ',' + 'fullyQualifiedNames:' + params.queryParams.fullyQualifiedNames + ',' + 'language:' + params.queryParams.language + ',' + 'mixinTypeFullyQualifiedNames:' + params.queryParams.mixinTypeFullyQualifiedNames + ',' + 'page:' + params.queryParams.page + ',' + 'pageSize:' + params.queryParams.pageSize + ',' + 'renditionConfigTarget:' + params.queryParams.renditionConfigTarget + ',' + 'typeClassFullyQualifiedNames:' + params.queryParams.typeClassFullyQualifiedNames + ')';
513
513
  }
514
- function getResponseCacheKeys$4(storeKeyMap, luvio, resourceParams, response) {
515
- getTypeCacheKeys$4(storeKeyMap, luvio, response, () => keyBuilder$9(luvio, resourceParams));
514
+ function getResponseCacheKeys$5(storeKeyMap, luvio, resourceParams, response) {
515
+ getTypeCacheKeys$5(storeKeyMap, luvio, response, () => keyBuilder$b(luvio, resourceParams));
516
516
  }
517
- function ingestSuccess$4(luvio, resourceParams, response, snapshotRefresh) {
517
+ function ingestSuccess$5(luvio, resourceParams, response, snapshotRefresh) {
518
518
  const { body } = response;
519
- const key = keyBuilder$9(luvio, resourceParams);
520
- luvio.storeIngest(key, ingest$4, body);
519
+ const key = keyBuilder$b(luvio, resourceParams);
520
+ luvio.storeIngest(key, ingest$5, body);
521
521
  const snapshot = luvio.storeLookup({
522
522
  recordId: key,
523
- node: select$8(),
523
+ node: select$a(),
524
524
  variables: {},
525
525
  }, snapshotRefresh);
526
526
  if (process.env.NODE_ENV !== 'production') {
@@ -531,19 +531,19 @@ function ingestSuccess$4(luvio, resourceParams, response, snapshotRefresh) {
531
531
  deepFreeze(snapshot.data);
532
532
  return snapshot;
533
533
  }
534
- function ingestError$4(luvio, params, error, snapshotRefresh) {
535
- const key = keyBuilder$9(luvio, params);
534
+ function ingestError$5(luvio, params, error, snapshotRefresh) {
535
+ const key = keyBuilder$b(luvio, params);
536
536
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
537
537
  const storeMetadataParams = {
538
- ttl: TTL$4,
538
+ ttl: TTL$5,
539
539
  namespace: keyPrefix,
540
- version: VERSION$4,
541
- representationName: RepresentationType$4
540
+ version: VERSION$5,
541
+ representationName: RepresentationType$5
542
542
  };
543
543
  luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
544
544
  return errorSnapshot;
545
545
  }
546
- function createResourceRequest$4(config) {
546
+ function createResourceRequest$5(config) {
547
547
  const headers = {};
548
548
  return {
549
549
  baseUri: '/services/data/v60.0',
@@ -557,7 +557,7 @@ function createResourceRequest$4(config) {
557
557
  };
558
558
  }
559
559
 
560
- const adapterName$4 = 'getBlockTypes';
560
+ const adapterName$5 = 'getBlockTypes';
561
561
  const getBlockTypes_ConfigPropertyMetadata = [
562
562
  generateParamConfigMetadata('contentTypeFullyQualifiedName', false, 1 /* QueryParameter */, 0 /* String */),
563
563
  generateParamConfigMetadata('designConfigTarget', false, 1 /* QueryParameter */, 0 /* String */),
@@ -569,91 +569,91 @@ const getBlockTypes_ConfigPropertyMetadata = [
569
569
  generateParamConfigMetadata('renditionConfigTarget', false, 1 /* QueryParameter */, 0 /* String */),
570
570
  generateParamConfigMetadata('typeClassFullyQualifiedNames', false, 1 /* QueryParameter */, 0 /* String */, true),
571
571
  ];
572
- const getBlockTypes_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, getBlockTypes_ConfigPropertyMetadata);
573
- const createResourceParams$4 = /*#__PURE__*/ createResourceParams$6(getBlockTypes_ConfigPropertyMetadata);
574
- function keyBuilder$8(luvio, config) {
575
- const resourceParams = createResourceParams$4(config);
576
- return keyBuilder$9(luvio, resourceParams);
572
+ const getBlockTypes_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, getBlockTypes_ConfigPropertyMetadata);
573
+ const createResourceParams$5 = /*#__PURE__*/ createResourceParams$7(getBlockTypes_ConfigPropertyMetadata);
574
+ function keyBuilder$a(luvio, config) {
575
+ const resourceParams = createResourceParams$5(config);
576
+ return keyBuilder$b(luvio, resourceParams);
577
577
  }
578
- function typeCheckConfig$4(untrustedConfig) {
578
+ function typeCheckConfig$5(untrustedConfig) {
579
579
  const config = {};
580
- typeCheckConfig$6(untrustedConfig, config, getBlockTypes_ConfigPropertyMetadata);
580
+ typeCheckConfig$7(untrustedConfig, config, getBlockTypes_ConfigPropertyMetadata);
581
581
  return config;
582
582
  }
583
- function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
583
+ function validateAdapterConfig$5(untrustedConfig, configPropertyNames) {
584
584
  if (!untrustedIsObject(untrustedConfig)) {
585
585
  return null;
586
586
  }
587
587
  if (process.env.NODE_ENV !== 'production') {
588
588
  validateConfig(untrustedConfig, configPropertyNames);
589
589
  }
590
- const config = typeCheckConfig$4(untrustedConfig);
590
+ const config = typeCheckConfig$5(untrustedConfig);
591
591
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
592
592
  return null;
593
593
  }
594
594
  return config;
595
595
  }
596
- function adapterFragment$4(luvio, config) {
597
- createResourceParams$4(config);
598
- return select$8();
596
+ function adapterFragment$5(luvio, config) {
597
+ createResourceParams$5(config);
598
+ return select$a();
599
599
  }
600
- function onFetchResponseSuccess$4(luvio, config, resourceParams, response) {
601
- const snapshot = ingestSuccess$4(luvio, resourceParams, response, {
600
+ function onFetchResponseSuccess$5(luvio, config, resourceParams, response) {
601
+ const snapshot = ingestSuccess$5(luvio, resourceParams, response, {
602
602
  config,
603
- resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
603
+ resolve: () => buildNetworkSnapshot$5(luvio, config, snapshotRefreshOptions)
604
604
  });
605
605
  return luvio.storeBroadcast().then(() => snapshot);
606
606
  }
607
- function onFetchResponseError$4(luvio, config, resourceParams, response) {
608
- const snapshot = ingestError$4(luvio, resourceParams, response, {
607
+ function onFetchResponseError$5(luvio, config, resourceParams, response) {
608
+ const snapshot = ingestError$5(luvio, resourceParams, response, {
609
609
  config,
610
- resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
610
+ resolve: () => buildNetworkSnapshot$5(luvio, config, snapshotRefreshOptions)
611
611
  });
612
612
  return luvio.storeBroadcast().then(() => snapshot);
613
613
  }
614
- function buildNetworkSnapshot$4(luvio, config, options) {
615
- const resourceParams = createResourceParams$4(config);
616
- const request = createResourceRequest$4(resourceParams);
614
+ function buildNetworkSnapshot$5(luvio, config, options) {
615
+ const resourceParams = createResourceParams$5(config);
616
+ const request = createResourceRequest$5(resourceParams);
617
617
  return luvio.dispatchResourceRequest(request, options)
618
618
  .then((response) => {
619
- return luvio.handleSuccessResponse(() => onFetchResponseSuccess$4(luvio, config, resourceParams, response), () => {
619
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess$5(luvio, config, resourceParams, response), () => {
620
620
  const cache = new StoreKeyMap();
621
- getResponseCacheKeys$4(cache, luvio, resourceParams, response.body);
621
+ getResponseCacheKeys$5(cache, luvio, resourceParams, response.body);
622
622
  return cache;
623
623
  });
624
624
  }, (response) => {
625
- return luvio.handleErrorResponse(() => onFetchResponseError$4(luvio, config, resourceParams, response));
625
+ return luvio.handleErrorResponse(() => onFetchResponseError$5(luvio, config, resourceParams, response));
626
626
  });
627
627
  }
628
- function buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext) {
629
- return buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext, buildNetworkSnapshot$4, undefined, false);
628
+ function buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext) {
629
+ return buildNetworkSnapshotCachePolicy$7(context, coercedAdapterRequestContext, buildNetworkSnapshot$5, undefined, false);
630
630
  }
631
- function buildCachedSnapshotCachePolicy$4(context, storeLookup) {
631
+ function buildCachedSnapshotCachePolicy$5(context, storeLookup) {
632
632
  const { luvio, config } = context;
633
633
  const selector = {
634
- recordId: keyBuilder$8(luvio, config),
635
- node: adapterFragment$4(luvio, config),
634
+ recordId: keyBuilder$a(luvio, config),
635
+ node: adapterFragment$5(luvio, config),
636
636
  variables: {},
637
637
  };
638
638
  const cacheSnapshot = storeLookup(selector, {
639
639
  config,
640
- resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
640
+ resolve: () => buildNetworkSnapshot$5(luvio, config, snapshotRefreshOptions)
641
641
  });
642
642
  return cacheSnapshot;
643
643
  }
644
644
  const getBlockTypesAdapterFactory = (luvio) => function ExperienceType__getBlockTypes(untrustedConfig, requestContext) {
645
- const config = validateAdapterConfig$4(untrustedConfig, getBlockTypes_ConfigPropertyNames);
645
+ const config = validateAdapterConfig$5(untrustedConfig, getBlockTypes_ConfigPropertyNames);
646
646
  // Invalid or incomplete config
647
647
  if (config === null) {
648
648
  return null;
649
649
  }
650
650
  return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
651
- buildCachedSnapshotCachePolicy$4, buildNetworkSnapshotCachePolicy$4);
651
+ buildCachedSnapshotCachePolicy$5, buildNetworkSnapshotCachePolicy$5);
652
652
  };
653
653
 
654
- const TTL$3 = 3600000;
655
- const VERSION$3 = "fb0265f1d37480d0821fd97a29a0f9c2";
656
- function validate$5(obj, path = 'ExperienceModelContentTypeDetailRepresentation') {
654
+ const TTL$4 = 3600000;
655
+ const VERSION$4 = "fb0265f1d37480d0821fd97a29a0f9c2";
656
+ function validate$b(obj, path = 'ExperienceModelContentTypeDetailRepresentation') {
657
657
  const v_error = (() => {
658
658
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
659
659
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -722,62 +722,62 @@ function validate$5(obj, path = 'ExperienceModelContentTypeDetailRepresentation'
722
722
  })();
723
723
  return v_error === undefined ? null : v_error;
724
724
  }
725
- const RepresentationType$3 = 'ExperienceModelContentTypeDetailRepresentation';
726
- function normalize$3(input, existing, path, luvio, store, timestamp) {
725
+ const RepresentationType$4 = 'ExperienceModelContentTypeDetailRepresentation';
726
+ function normalize$4(input, existing, path, luvio, store, timestamp) {
727
727
  return input;
728
728
  }
729
- const select$7 = function ExperienceModelContentTypeDetailRepresentationSelect() {
729
+ const select$9 = function ExperienceModelContentTypeDetailRepresentationSelect() {
730
730
  return {
731
731
  kind: 'Fragment',
732
- version: VERSION$3,
732
+ version: VERSION$4,
733
733
  private: [],
734
734
  opaque: true
735
735
  };
736
736
  };
737
- function equals$3(existing, incoming) {
737
+ function equals$4(existing, incoming) {
738
738
  if (JSONStringify(incoming) !== JSONStringify(existing)) {
739
739
  return false;
740
740
  }
741
741
  return true;
742
742
  }
743
- const ingest$3 = function ExperienceModelContentTypeDetailRepresentationIngest(input, path, luvio, store, timestamp) {
743
+ const ingest$4 = function ExperienceModelContentTypeDetailRepresentationIngest(input, path, luvio, store, timestamp) {
744
744
  if (process.env.NODE_ENV !== 'production') {
745
- const validateError = validate$5(input);
745
+ const validateError = validate$b(input);
746
746
  if (validateError !== null) {
747
747
  throw validateError;
748
748
  }
749
749
  }
750
750
  const key = path.fullPath;
751
- const ttlToUse = TTL$3;
752
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$3, "ExperienceType", VERSION$3, RepresentationType$3, equals$3);
751
+ const ttlToUse = TTL$4;
752
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$4, "ExperienceType", VERSION$4, RepresentationType$4, equals$4);
753
753
  return createLink(key);
754
754
  };
755
- function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
755
+ function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
756
756
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
757
757
  const rootKey = fullPathFactory();
758
758
  rootKeySet.set(rootKey, {
759
759
  namespace: keyPrefix,
760
- representationName: RepresentationType$3,
760
+ representationName: RepresentationType$4,
761
761
  mergeable: false
762
762
  });
763
763
  }
764
764
 
765
- function select$6(luvio, params) {
766
- return select$7();
765
+ function select$8(luvio, params) {
766
+ return select$9();
767
767
  }
768
- function keyBuilder$7(luvio, params) {
768
+ function keyBuilder$9(luvio, params) {
769
769
  return keyPrefix + '::ExperienceModelContentTypeDetailRepresentation:(' + 'designConfigTarget:' + params.queryParams.designConfigTarget + ',' + 'includeSubSchemaDefinitions:' + params.queryParams.includeSubSchemaDefinitions + ',' + 'language:' + params.queryParams.language + ',' + 'renditionConfigTarget:' + params.queryParams.renditionConfigTarget + ',' + 'fullyQualifiedName:' + params.urlParams.fullyQualifiedName + ')';
770
770
  }
771
- function getResponseCacheKeys$3(storeKeyMap, luvio, resourceParams, response) {
772
- getTypeCacheKeys$3(storeKeyMap, luvio, response, () => keyBuilder$7(luvio, resourceParams));
771
+ function getResponseCacheKeys$4(storeKeyMap, luvio, resourceParams, response) {
772
+ getTypeCacheKeys$4(storeKeyMap, luvio, response, () => keyBuilder$9(luvio, resourceParams));
773
773
  }
774
- function ingestSuccess$3(luvio, resourceParams, response, snapshotRefresh) {
774
+ function ingestSuccess$4(luvio, resourceParams, response, snapshotRefresh) {
775
775
  const { body } = response;
776
- const key = keyBuilder$7(luvio, resourceParams);
777
- luvio.storeIngest(key, ingest$3, body);
776
+ const key = keyBuilder$9(luvio, resourceParams);
777
+ luvio.storeIngest(key, ingest$4, body);
778
778
  const snapshot = luvio.storeLookup({
779
779
  recordId: key,
780
- node: select$6(),
780
+ node: select$8(),
781
781
  variables: {},
782
782
  }, snapshotRefresh);
783
783
  if (process.env.NODE_ENV !== 'production') {
@@ -788,19 +788,19 @@ function ingestSuccess$3(luvio, resourceParams, response, snapshotRefresh) {
788
788
  deepFreeze(snapshot.data);
789
789
  return snapshot;
790
790
  }
791
- function ingestError$3(luvio, params, error, snapshotRefresh) {
792
- const key = keyBuilder$7(luvio, params);
791
+ function ingestError$4(luvio, params, error, snapshotRefresh) {
792
+ const key = keyBuilder$9(luvio, params);
793
793
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
794
794
  const storeMetadataParams = {
795
- ttl: TTL$3,
795
+ ttl: TTL$4,
796
796
  namespace: keyPrefix,
797
- version: VERSION$3,
798
- representationName: RepresentationType$3
797
+ version: VERSION$4,
798
+ representationName: RepresentationType$4
799
799
  };
800
800
  luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
801
801
  return errorSnapshot;
802
802
  }
803
- function createResourceRequest$3(config) {
803
+ function createResourceRequest$4(config) {
804
804
  const headers = {};
805
805
  return {
806
806
  baseUri: '/services/data/v60.0',
@@ -814,7 +814,7 @@ function createResourceRequest$3(config) {
814
814
  };
815
815
  }
816
816
 
817
- const adapterName$3 = 'getContentType';
817
+ const adapterName$4 = 'getContentType';
818
818
  const getContentType_ConfigPropertyMetadata = [
819
819
  generateParamConfigMetadata('fullyQualifiedName', true, 0 /* UrlParameter */, 0 /* String */),
820
820
  generateParamConfigMetadata('designConfigTarget', false, 1 /* QueryParameter */, 0 /* String */),
@@ -822,89 +822,89 @@ const getContentType_ConfigPropertyMetadata = [
822
822
  generateParamConfigMetadata('language', false, 1 /* QueryParameter */, 0 /* String */),
823
823
  generateParamConfigMetadata('renditionConfigTarget', false, 1 /* QueryParameter */, 0 /* String */),
824
824
  ];
825
- const getContentType_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, getContentType_ConfigPropertyMetadata);
826
- const createResourceParams$3 = /*#__PURE__*/ createResourceParams$6(getContentType_ConfigPropertyMetadata);
827
- function keyBuilder$6(luvio, config) {
828
- const resourceParams = createResourceParams$3(config);
829
- return keyBuilder$7(luvio, resourceParams);
825
+ const getContentType_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, getContentType_ConfigPropertyMetadata);
826
+ const createResourceParams$4 = /*#__PURE__*/ createResourceParams$7(getContentType_ConfigPropertyMetadata);
827
+ function keyBuilder$8(luvio, config) {
828
+ const resourceParams = createResourceParams$4(config);
829
+ return keyBuilder$9(luvio, resourceParams);
830
830
  }
831
- function typeCheckConfig$3(untrustedConfig) {
831
+ function typeCheckConfig$4(untrustedConfig) {
832
832
  const config = {};
833
- typeCheckConfig$6(untrustedConfig, config, getContentType_ConfigPropertyMetadata);
833
+ typeCheckConfig$7(untrustedConfig, config, getContentType_ConfigPropertyMetadata);
834
834
  return config;
835
835
  }
836
- function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
836
+ function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
837
837
  if (!untrustedIsObject(untrustedConfig)) {
838
838
  return null;
839
839
  }
840
840
  if (process.env.NODE_ENV !== 'production') {
841
841
  validateConfig(untrustedConfig, configPropertyNames);
842
842
  }
843
- const config = typeCheckConfig$3(untrustedConfig);
843
+ const config = typeCheckConfig$4(untrustedConfig);
844
844
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
845
845
  return null;
846
846
  }
847
847
  return config;
848
848
  }
849
- function adapterFragment$3(luvio, config) {
850
- createResourceParams$3(config);
851
- return select$6();
849
+ function adapterFragment$4(luvio, config) {
850
+ createResourceParams$4(config);
851
+ return select$8();
852
852
  }
853
- function onFetchResponseSuccess$3(luvio, config, resourceParams, response) {
854
- const snapshot = ingestSuccess$3(luvio, resourceParams, response, {
853
+ function onFetchResponseSuccess$4(luvio, config, resourceParams, response) {
854
+ const snapshot = ingestSuccess$4(luvio, resourceParams, response, {
855
855
  config,
856
- resolve: () => buildNetworkSnapshot$3(luvio, config, snapshotRefreshOptions)
856
+ resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
857
857
  });
858
858
  return luvio.storeBroadcast().then(() => snapshot);
859
859
  }
860
- function onFetchResponseError$3(luvio, config, resourceParams, response) {
861
- const snapshot = ingestError$3(luvio, resourceParams, response, {
860
+ function onFetchResponseError$4(luvio, config, resourceParams, response) {
861
+ const snapshot = ingestError$4(luvio, resourceParams, response, {
862
862
  config,
863
- resolve: () => buildNetworkSnapshot$3(luvio, config, snapshotRefreshOptions)
863
+ resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
864
864
  });
865
865
  return luvio.storeBroadcast().then(() => snapshot);
866
866
  }
867
- function buildNetworkSnapshot$3(luvio, config, options) {
868
- const resourceParams = createResourceParams$3(config);
869
- const request = createResourceRequest$3(resourceParams);
867
+ function buildNetworkSnapshot$4(luvio, config, options) {
868
+ const resourceParams = createResourceParams$4(config);
869
+ const request = createResourceRequest$4(resourceParams);
870
870
  return luvio.dispatchResourceRequest(request, options)
871
871
  .then((response) => {
872
- return luvio.handleSuccessResponse(() => onFetchResponseSuccess$3(luvio, config, resourceParams, response), () => {
872
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess$4(luvio, config, resourceParams, response), () => {
873
873
  const cache = new StoreKeyMap();
874
- getResponseCacheKeys$3(cache, luvio, resourceParams, response.body);
874
+ getResponseCacheKeys$4(cache, luvio, resourceParams, response.body);
875
875
  return cache;
876
876
  });
877
877
  }, (response) => {
878
- return luvio.handleErrorResponse(() => onFetchResponseError$3(luvio, config, resourceParams, response));
878
+ return luvio.handleErrorResponse(() => onFetchResponseError$4(luvio, config, resourceParams, response));
879
879
  });
880
880
  }
881
- function buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext) {
882
- return buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext, buildNetworkSnapshot$3, undefined, false);
881
+ function buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext) {
882
+ return buildNetworkSnapshotCachePolicy$7(context, coercedAdapterRequestContext, buildNetworkSnapshot$4, undefined, false);
883
883
  }
884
- function buildCachedSnapshotCachePolicy$3(context, storeLookup) {
884
+ function buildCachedSnapshotCachePolicy$4(context, storeLookup) {
885
885
  const { luvio, config } = context;
886
886
  const selector = {
887
- recordId: keyBuilder$6(luvio, config),
888
- node: adapterFragment$3(luvio, config),
887
+ recordId: keyBuilder$8(luvio, config),
888
+ node: adapterFragment$4(luvio, config),
889
889
  variables: {},
890
890
  };
891
891
  const cacheSnapshot = storeLookup(selector, {
892
892
  config,
893
- resolve: () => buildNetworkSnapshot$3(luvio, config, snapshotRefreshOptions)
893
+ resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
894
894
  });
895
895
  return cacheSnapshot;
896
896
  }
897
897
  const getContentTypeAdapterFactory = (luvio) => function ExperienceType__getContentType(untrustedConfig, requestContext) {
898
- const config = validateAdapterConfig$3(untrustedConfig, getContentType_ConfigPropertyNames);
898
+ const config = validateAdapterConfig$4(untrustedConfig, getContentType_ConfigPropertyNames);
899
899
  // Invalid or incomplete config
900
900
  if (config === null) {
901
901
  return null;
902
902
  }
903
903
  return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
904
- buildCachedSnapshotCachePolicy$3, buildNetworkSnapshotCachePolicy$3);
904
+ buildCachedSnapshotCachePolicy$4, buildNetworkSnapshotCachePolicy$4);
905
905
  };
906
906
 
907
- function validate$4(obj, path = 'ExperienceModelContentTypeSummaryRepresentation') {
907
+ function validate$a(obj, path = 'ExperienceModelContentTypeSummaryRepresentation') {
908
908
  const v_error = (() => {
909
909
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
910
910
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -951,9 +951,9 @@ function validate$4(obj, path = 'ExperienceModelContentTypeSummaryRepresentation
951
951
  return v_error === undefined ? null : v_error;
952
952
  }
953
953
 
954
- const TTL$2 = 3600000;
955
- const VERSION$2 = "30f1f19149230f10ac9197e0d9769c88";
956
- function validate$3(obj, path = 'ExperienceModelContentTypeCollectionRepresentation') {
954
+ const TTL$3 = 3600000;
955
+ const VERSION$3 = "30f1f19149230f10ac9197e0d9769c88";
956
+ function validate$9(obj, path = 'ExperienceModelContentTypeCollectionRepresentation') {
957
957
  const v_error = (() => {
958
958
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
959
959
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -966,7 +966,7 @@ function validate$3(obj, path = 'ExperienceModelContentTypeCollectionRepresentat
966
966
  for (let i = 0; i < obj_contentTypes.length; i++) {
967
967
  const obj_contentTypes_item = obj_contentTypes[i];
968
968
  const path_contentTypes_item = path_contentTypes + '[' + i + ']';
969
- const referencepath_contentTypes_itemValidationError = validate$4(obj_contentTypes_item, path_contentTypes_item);
969
+ const referencepath_contentTypes_itemValidationError = validate$a(obj_contentTypes_item, path_contentTypes_item);
970
970
  if (referencepath_contentTypes_itemValidationError !== null) {
971
971
  let message = 'Object doesn\'t match ExperienceModelContentTypeSummaryRepresentation (at "' + path_contentTypes_item + '")\n';
972
972
  message += referencepath_contentTypes_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -1002,11 +1002,266 @@ function validate$3(obj, path = 'ExperienceModelContentTypeCollectionRepresentat
1002
1002
  })();
1003
1003
  return v_error === undefined ? null : v_error;
1004
1004
  }
1005
- const RepresentationType$2 = 'ExperienceModelContentTypeCollectionRepresentation';
1006
- function normalize$2(input, existing, path, luvio, store, timestamp) {
1005
+ const RepresentationType$3 = 'ExperienceModelContentTypeCollectionRepresentation';
1006
+ function normalize$3(input, existing, path, luvio, store, timestamp) {
1007
1007
  return input;
1008
1008
  }
1009
- const select$5 = function ExperienceModelContentTypeCollectionRepresentationSelect() {
1009
+ const select$7 = function ExperienceModelContentTypeCollectionRepresentationSelect() {
1010
+ return {
1011
+ kind: 'Fragment',
1012
+ version: VERSION$3,
1013
+ private: [],
1014
+ opaque: true
1015
+ };
1016
+ };
1017
+ function equals$3(existing, incoming) {
1018
+ if (JSONStringify(incoming) !== JSONStringify(existing)) {
1019
+ return false;
1020
+ }
1021
+ return true;
1022
+ }
1023
+ const ingest$3 = function ExperienceModelContentTypeCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
1024
+ if (process.env.NODE_ENV !== 'production') {
1025
+ const validateError = validate$9(input);
1026
+ if (validateError !== null) {
1027
+ throw validateError;
1028
+ }
1029
+ }
1030
+ const key = path.fullPath;
1031
+ const ttlToUse = TTL$3;
1032
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$3, "ExperienceType", VERSION$3, RepresentationType$3, equals$3);
1033
+ return createLink(key);
1034
+ };
1035
+ function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
1036
+ // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
1037
+ const rootKey = fullPathFactory();
1038
+ rootKeySet.set(rootKey, {
1039
+ namespace: keyPrefix,
1040
+ representationName: RepresentationType$3,
1041
+ mergeable: false
1042
+ });
1043
+ }
1044
+
1045
+ function select$6(luvio, params) {
1046
+ return select$7();
1047
+ }
1048
+ function keyBuilder$7(luvio, params) {
1049
+ return keyPrefix + '::ExperienceModelContentTypeCollectionRepresentation:(' + 'contextRecordId:' + params.queryParams.contextRecordId + ',' + 'designConfigTarget:' + params.queryParams.designConfigTarget + ',' + 'fullyQualifiedNames:' + params.queryParams.fullyQualifiedNames + ',' + 'language:' + params.queryParams.language + ',' + 'mixinTypeFullyQualifiedNames:' + params.queryParams.mixinTypeFullyQualifiedNames + ',' + 'page:' + params.queryParams.page + ',' + 'pageSize:' + params.queryParams.pageSize + ',' + 'renditionConfigTarget:' + params.queryParams.renditionConfigTarget + ',' + 'typeClassFullyQualifiedNames:' + params.queryParams.typeClassFullyQualifiedNames + ')';
1050
+ }
1051
+ function getResponseCacheKeys$3(storeKeyMap, luvio, resourceParams, response) {
1052
+ getTypeCacheKeys$3(storeKeyMap, luvio, response, () => keyBuilder$7(luvio, resourceParams));
1053
+ }
1054
+ function ingestSuccess$3(luvio, resourceParams, response, snapshotRefresh) {
1055
+ const { body } = response;
1056
+ const key = keyBuilder$7(luvio, resourceParams);
1057
+ luvio.storeIngest(key, ingest$3, body);
1058
+ const snapshot = luvio.storeLookup({
1059
+ recordId: key,
1060
+ node: select$6(),
1061
+ variables: {},
1062
+ }, snapshotRefresh);
1063
+ if (process.env.NODE_ENV !== 'production') {
1064
+ if (snapshot.state !== 'Fulfilled') {
1065
+ throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
1066
+ }
1067
+ }
1068
+ deepFreeze(snapshot.data);
1069
+ return snapshot;
1070
+ }
1071
+ function ingestError$3(luvio, params, error, snapshotRefresh) {
1072
+ const key = keyBuilder$7(luvio, params);
1073
+ const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
1074
+ const storeMetadataParams = {
1075
+ ttl: TTL$3,
1076
+ namespace: keyPrefix,
1077
+ version: VERSION$3,
1078
+ representationName: RepresentationType$3
1079
+ };
1080
+ luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
1081
+ return errorSnapshot;
1082
+ }
1083
+ function createResourceRequest$3(config) {
1084
+ const headers = {};
1085
+ return {
1086
+ baseUri: '/services/data/v60.0',
1087
+ basePath: '/connect/experience-model/content-types',
1088
+ method: 'get',
1089
+ body: null,
1090
+ urlParams: {},
1091
+ queryParams: config.queryParams,
1092
+ headers,
1093
+ priority: 'normal',
1094
+ };
1095
+ }
1096
+
1097
+ const adapterName$3 = 'getContentTypes';
1098
+ const getContentTypes_ConfigPropertyMetadata = [
1099
+ generateParamConfigMetadata('contextRecordId', false, 1 /* QueryParameter */, 0 /* String */),
1100
+ generateParamConfigMetadata('designConfigTarget', false, 1 /* QueryParameter */, 0 /* String */),
1101
+ generateParamConfigMetadata('fullyQualifiedNames', false, 1 /* QueryParameter */, 0 /* String */, true),
1102
+ generateParamConfigMetadata('language', false, 1 /* QueryParameter */, 0 /* String */),
1103
+ generateParamConfigMetadata('mixinTypeFullyQualifiedNames', false, 1 /* QueryParameter */, 0 /* String */, true),
1104
+ generateParamConfigMetadata('page', false, 1 /* QueryParameter */, 3 /* Integer */),
1105
+ generateParamConfigMetadata('pageSize', false, 1 /* QueryParameter */, 3 /* Integer */),
1106
+ generateParamConfigMetadata('renditionConfigTarget', false, 1 /* QueryParameter */, 0 /* String */),
1107
+ generateParamConfigMetadata('typeClassFullyQualifiedNames', false, 1 /* QueryParameter */, 0 /* String */, true),
1108
+ ];
1109
+ const getContentTypes_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, getContentTypes_ConfigPropertyMetadata);
1110
+ const createResourceParams$3 = /*#__PURE__*/ createResourceParams$7(getContentTypes_ConfigPropertyMetadata);
1111
+ function keyBuilder$6(luvio, config) {
1112
+ const resourceParams = createResourceParams$3(config);
1113
+ return keyBuilder$7(luvio, resourceParams);
1114
+ }
1115
+ function typeCheckConfig$3(untrustedConfig) {
1116
+ const config = {};
1117
+ typeCheckConfig$7(untrustedConfig, config, getContentTypes_ConfigPropertyMetadata);
1118
+ return config;
1119
+ }
1120
+ function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
1121
+ if (!untrustedIsObject(untrustedConfig)) {
1122
+ return null;
1123
+ }
1124
+ if (process.env.NODE_ENV !== 'production') {
1125
+ validateConfig(untrustedConfig, configPropertyNames);
1126
+ }
1127
+ const config = typeCheckConfig$3(untrustedConfig);
1128
+ if (!areRequiredParametersPresent(config, configPropertyNames)) {
1129
+ return null;
1130
+ }
1131
+ return config;
1132
+ }
1133
+ function adapterFragment$3(luvio, config) {
1134
+ createResourceParams$3(config);
1135
+ return select$6();
1136
+ }
1137
+ function onFetchResponseSuccess$3(luvio, config, resourceParams, response) {
1138
+ const snapshot = ingestSuccess$3(luvio, resourceParams, response, {
1139
+ config,
1140
+ resolve: () => buildNetworkSnapshot$3(luvio, config, snapshotRefreshOptions)
1141
+ });
1142
+ return luvio.storeBroadcast().then(() => snapshot);
1143
+ }
1144
+ function onFetchResponseError$3(luvio, config, resourceParams, response) {
1145
+ const snapshot = ingestError$3(luvio, resourceParams, response, {
1146
+ config,
1147
+ resolve: () => buildNetworkSnapshot$3(luvio, config, snapshotRefreshOptions)
1148
+ });
1149
+ return luvio.storeBroadcast().then(() => snapshot);
1150
+ }
1151
+ function buildNetworkSnapshot$3(luvio, config, options) {
1152
+ const resourceParams = createResourceParams$3(config);
1153
+ const request = createResourceRequest$3(resourceParams);
1154
+ return luvio.dispatchResourceRequest(request, options)
1155
+ .then((response) => {
1156
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess$3(luvio, config, resourceParams, response), () => {
1157
+ const cache = new StoreKeyMap();
1158
+ getResponseCacheKeys$3(cache, luvio, resourceParams, response.body);
1159
+ return cache;
1160
+ });
1161
+ }, (response) => {
1162
+ return luvio.handleErrorResponse(() => onFetchResponseError$3(luvio, config, resourceParams, response));
1163
+ });
1164
+ }
1165
+ function buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext) {
1166
+ return buildNetworkSnapshotCachePolicy$7(context, coercedAdapterRequestContext, buildNetworkSnapshot$3, undefined, false);
1167
+ }
1168
+ function buildCachedSnapshotCachePolicy$3(context, storeLookup) {
1169
+ const { luvio, config } = context;
1170
+ const selector = {
1171
+ recordId: keyBuilder$6(luvio, config),
1172
+ node: adapterFragment$3(luvio, config),
1173
+ variables: {},
1174
+ };
1175
+ const cacheSnapshot = storeLookup(selector, {
1176
+ config,
1177
+ resolve: () => buildNetworkSnapshot$3(luvio, config, snapshotRefreshOptions)
1178
+ });
1179
+ return cacheSnapshot;
1180
+ }
1181
+ const getContentTypesAdapterFactory = (luvio) => function ExperienceType__getContentTypes(untrustedConfig, requestContext) {
1182
+ const config = validateAdapterConfig$3(untrustedConfig, getContentTypes_ConfigPropertyNames);
1183
+ // Invalid or incomplete config
1184
+ if (config === null) {
1185
+ return null;
1186
+ }
1187
+ return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
1188
+ buildCachedSnapshotCachePolicy$3, buildNetworkSnapshotCachePolicy$3);
1189
+ };
1190
+
1191
+ const TTL$2 = 3600000;
1192
+ const VERSION$2 = "56f77a37a5711b32738bafbcb3eed520";
1193
+ function validate$8(obj, path = 'ExperienceModelPropertyTypeDetailRepresentation') {
1194
+ const v_error = (() => {
1195
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1196
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
1197
+ }
1198
+ if (obj.description !== undefined) {
1199
+ const obj_description = obj.description;
1200
+ const path_description = path + '.description';
1201
+ if (typeof obj_description !== 'string') {
1202
+ return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
1203
+ }
1204
+ }
1205
+ if (obj.designConfig !== undefined) {
1206
+ const obj_designConfig = obj.designConfig;
1207
+ const path_designConfig = path + '.designConfig';
1208
+ if (obj_designConfig === undefined) {
1209
+ return new TypeError('Expected "defined" but received "' + typeof obj_designConfig + '" (at "' + path_designConfig + '")');
1210
+ }
1211
+ }
1212
+ const obj_developerName = obj.developerName;
1213
+ const path_developerName = path + '.developerName';
1214
+ if (typeof obj_developerName !== 'string') {
1215
+ return new TypeError('Expected "string" but received "' + typeof obj_developerName + '" (at "' + path_developerName + '")');
1216
+ }
1217
+ if (obj.id !== undefined) {
1218
+ const obj_id = obj.id;
1219
+ const path_id = path + '.id';
1220
+ if (typeof obj_id !== 'string') {
1221
+ return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
1222
+ }
1223
+ }
1224
+ const obj_namespacePrefix = obj.namespacePrefix;
1225
+ const path_namespacePrefix = path + '.namespacePrefix';
1226
+ if (typeof obj_namespacePrefix !== 'string') {
1227
+ return new TypeError('Expected "string" but received "' + typeof obj_namespacePrefix + '" (at "' + path_namespacePrefix + '")');
1228
+ }
1229
+ if (obj.renditionConfig !== undefined) {
1230
+ const obj_renditionConfig = obj.renditionConfig;
1231
+ const path_renditionConfig = path + '.renditionConfig';
1232
+ if (obj_renditionConfig === undefined) {
1233
+ return new TypeError('Expected "defined" but received "' + typeof obj_renditionConfig + '" (at "' + path_renditionConfig + '")');
1234
+ }
1235
+ }
1236
+ const obj_schema = obj.schema;
1237
+ const path_schema = path + '.schema';
1238
+ if (typeof obj_schema !== 'object' || ArrayIsArray(obj_schema) || obj_schema === null) {
1239
+ return new TypeError('Expected "object" but received "' + typeof obj_schema + '" (at "' + path_schema + '")');
1240
+ }
1241
+ const obj_schema_keys = ObjectKeys(obj_schema);
1242
+ for (let i = 0; i < obj_schema_keys.length; i++) {
1243
+ const key = obj_schema_keys[i];
1244
+ const obj_schema_prop = obj_schema[key];
1245
+ const path_schema_prop = path_schema + '["' + key + '"]';
1246
+ if (obj_schema_prop === undefined) {
1247
+ return new TypeError('Expected "defined" but received "' + typeof obj_schema_prop + '" (at "' + path_schema_prop + '")');
1248
+ }
1249
+ }
1250
+ if (obj.title !== undefined) {
1251
+ const obj_title = obj.title;
1252
+ const path_title = path + '.title';
1253
+ if (typeof obj_title !== 'string') {
1254
+ return new TypeError('Expected "string" but received "' + typeof obj_title + '" (at "' + path_title + '")');
1255
+ }
1256
+ }
1257
+ })();
1258
+ return v_error === undefined ? null : v_error;
1259
+ }
1260
+ const RepresentationType$2 = 'ExperienceModelPropertyTypeDetailRepresentation';
1261
+ function normalize$2(input, existing, path, luvio, store, timestamp) {
1262
+ return input;
1263
+ }
1264
+ const select$5 = function ExperienceModelPropertyTypeDetailRepresentationSelect() {
1010
1265
  return {
1011
1266
  kind: 'Fragment',
1012
1267
  version: VERSION$2,
@@ -1020,9 +1275,9 @@ function equals$2(existing, incoming) {
1020
1275
  }
1021
1276
  return true;
1022
1277
  }
1023
- const ingest$2 = function ExperienceModelContentTypeCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
1278
+ const ingest$2 = function ExperienceModelPropertyTypeDetailRepresentationIngest(input, path, luvio, store, timestamp) {
1024
1279
  if (process.env.NODE_ENV !== 'production') {
1025
- const validateError = validate$3(input);
1280
+ const validateError = validate$8(input);
1026
1281
  if (validateError !== null) {
1027
1282
  throw validateError;
1028
1283
  }
@@ -1046,7 +1301,7 @@ function select$4(luvio, params) {
1046
1301
  return select$5();
1047
1302
  }
1048
1303
  function keyBuilder$5(luvio, params) {
1049
- return keyPrefix + '::ExperienceModelContentTypeCollectionRepresentation:(' + 'contextRecordId:' + params.queryParams.contextRecordId + ',' + 'designConfigTarget:' + params.queryParams.designConfigTarget + ',' + 'fullyQualifiedNames:' + params.queryParams.fullyQualifiedNames + ',' + 'language:' + params.queryParams.language + ',' + 'mixinTypeFullyQualifiedNames:' + params.queryParams.mixinTypeFullyQualifiedNames + ',' + 'page:' + params.queryParams.page + ',' + 'pageSize:' + params.queryParams.pageSize + ',' + 'renditionConfigTarget:' + params.queryParams.renditionConfigTarget + ',' + 'typeClassFullyQualifiedNames:' + params.queryParams.typeClassFullyQualifiedNames + ')';
1304
+ return keyPrefix + '::ExperienceModelPropertyTypeDetailRepresentation:(' + 'designConfigTarget:' + params.queryParams.designConfigTarget + ',' + 'includeSubSchemaDefinitions:' + params.queryParams.includeSubSchemaDefinitions + ',' + 'language:' + params.queryParams.language + ',' + 'renditionConfigTarget:' + params.queryParams.renditionConfigTarget + ',' + 'fullyQualifiedName:' + params.urlParams.fullyQualifiedName + ')';
1050
1305
  }
1051
1306
  function getResponseCacheKeys$2(storeKeyMap, luvio, resourceParams, response) {
1052
1307
  getTypeCacheKeys$2(storeKeyMap, luvio, response, () => keyBuilder$5(luvio, resourceParams));
@@ -1084,37 +1339,33 @@ function createResourceRequest$2(config) {
1084
1339
  const headers = {};
1085
1340
  return {
1086
1341
  baseUri: '/services/data/v60.0',
1087
- basePath: '/connect/experience-model/content-types',
1342
+ basePath: '/connect/experience-model/property-types/' + config.urlParams.fullyQualifiedName + '',
1088
1343
  method: 'get',
1089
1344
  body: null,
1090
- urlParams: {},
1345
+ urlParams: config.urlParams,
1091
1346
  queryParams: config.queryParams,
1092
1347
  headers,
1093
1348
  priority: 'normal',
1094
1349
  };
1095
1350
  }
1096
1351
 
1097
- const adapterName$2 = 'getContentTypes';
1098
- const getContentTypes_ConfigPropertyMetadata = [
1099
- generateParamConfigMetadata('contextRecordId', false, 1 /* QueryParameter */, 0 /* String */),
1352
+ const adapterName$2 = 'getPropertyType';
1353
+ const getPropertyType_ConfigPropertyMetadata = [
1354
+ generateParamConfigMetadata('fullyQualifiedName', true, 0 /* UrlParameter */, 0 /* String */),
1100
1355
  generateParamConfigMetadata('designConfigTarget', false, 1 /* QueryParameter */, 0 /* String */),
1101
- generateParamConfigMetadata('fullyQualifiedNames', false, 1 /* QueryParameter */, 0 /* String */, true),
1356
+ generateParamConfigMetadata('includeSubSchemaDefinitions', false, 1 /* QueryParameter */, 1 /* Boolean */),
1102
1357
  generateParamConfigMetadata('language', false, 1 /* QueryParameter */, 0 /* String */),
1103
- generateParamConfigMetadata('mixinTypeFullyQualifiedNames', false, 1 /* QueryParameter */, 0 /* String */, true),
1104
- generateParamConfigMetadata('page', false, 1 /* QueryParameter */, 3 /* Integer */),
1105
- generateParamConfigMetadata('pageSize', false, 1 /* QueryParameter */, 3 /* Integer */),
1106
1358
  generateParamConfigMetadata('renditionConfigTarget', false, 1 /* QueryParameter */, 0 /* String */),
1107
- generateParamConfigMetadata('typeClassFullyQualifiedNames', false, 1 /* QueryParameter */, 0 /* String */, true),
1108
1359
  ];
1109
- const getContentTypes_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, getContentTypes_ConfigPropertyMetadata);
1110
- const createResourceParams$2 = /*#__PURE__*/ createResourceParams$6(getContentTypes_ConfigPropertyMetadata);
1360
+ const getPropertyType_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, getPropertyType_ConfigPropertyMetadata);
1361
+ const createResourceParams$2 = /*#__PURE__*/ createResourceParams$7(getPropertyType_ConfigPropertyMetadata);
1111
1362
  function keyBuilder$4(luvio, config) {
1112
1363
  const resourceParams = createResourceParams$2(config);
1113
1364
  return keyBuilder$5(luvio, resourceParams);
1114
1365
  }
1115
1366
  function typeCheckConfig$2(untrustedConfig) {
1116
1367
  const config = {};
1117
- typeCheckConfig$6(untrustedConfig, config, getContentTypes_ConfigPropertyMetadata);
1368
+ typeCheckConfig$7(untrustedConfig, config, getPropertyType_ConfigPropertyMetadata);
1118
1369
  return config;
1119
1370
  }
1120
1371
  function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
@@ -1163,7 +1414,7 @@ function buildNetworkSnapshot$2(luvio, config, options) {
1163
1414
  });
1164
1415
  }
1165
1416
  function buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext) {
1166
- return buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext, buildNetworkSnapshot$2, undefined, false);
1417
+ return buildNetworkSnapshotCachePolicy$7(context, coercedAdapterRequestContext, buildNetworkSnapshot$2, undefined, false);
1167
1418
  }
1168
1419
  function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
1169
1420
  const { luvio, config } = context;
@@ -1178,8 +1429,8 @@ function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
1178
1429
  });
1179
1430
  return cacheSnapshot;
1180
1431
  }
1181
- const getContentTypesAdapterFactory = (luvio) => function ExperienceType__getContentTypes(untrustedConfig, requestContext) {
1182
- const config = validateAdapterConfig$2(untrustedConfig, getContentTypes_ConfigPropertyNames);
1432
+ const getPropertyTypeAdapterFactory = (luvio) => function ExperienceType__getPropertyType(untrustedConfig, requestContext) {
1433
+ const config = validateAdapterConfig$2(untrustedConfig, getPropertyType_ConfigPropertyNames);
1183
1434
  // Invalid or incomplete config
1184
1435
  if (config === null) {
1185
1436
  return null;
@@ -1188,9 +1439,7 @@ const getContentTypesAdapterFactory = (luvio) => function ExperienceType__getCon
1188
1439
  buildCachedSnapshotCachePolicy$2, buildNetworkSnapshotCachePolicy$2);
1189
1440
  };
1190
1441
 
1191
- const TTL$1 = 3600000;
1192
- const VERSION$1 = "56f77a37a5711b32738bafbcb3eed520";
1193
- function validate$2(obj, path = 'ExperienceModelPropertyTypeDetailRepresentation') {
1442
+ function validate$7(obj, path = 'ExperienceModelPropertyTypeSummaryRepresentation') {
1194
1443
  const v_error = (() => {
1195
1444
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1196
1445
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -1202,12 +1451,10 @@ function validate$2(obj, path = 'ExperienceModelPropertyTypeDetailRepresentation
1202
1451
  return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
1203
1452
  }
1204
1453
  }
1205
- if (obj.designConfig !== undefined) {
1206
- const obj_designConfig = obj.designConfig;
1207
- const path_designConfig = path + '.designConfig';
1208
- if (obj_designConfig === undefined) {
1209
- return new TypeError('Expected "defined" but received "' + typeof obj_designConfig + '" (at "' + path_designConfig + '")');
1210
- }
1454
+ const obj_detailUrl = obj.detailUrl;
1455
+ const path_detailUrl = path + '.detailUrl';
1456
+ if (typeof obj_detailUrl !== 'string') {
1457
+ return new TypeError('Expected "string" but received "' + typeof obj_detailUrl + '" (at "' + path_detailUrl + '")');
1211
1458
  }
1212
1459
  const obj_developerName = obj.developerName;
1213
1460
  const path_developerName = path + '.developerName';
@@ -1226,27 +1473,6 @@ function validate$2(obj, path = 'ExperienceModelPropertyTypeDetailRepresentation
1226
1473
  if (typeof obj_namespacePrefix !== 'string') {
1227
1474
  return new TypeError('Expected "string" but received "' + typeof obj_namespacePrefix + '" (at "' + path_namespacePrefix + '")');
1228
1475
  }
1229
- if (obj.renditionConfig !== undefined) {
1230
- const obj_renditionConfig = obj.renditionConfig;
1231
- const path_renditionConfig = path + '.renditionConfig';
1232
- if (obj_renditionConfig === undefined) {
1233
- return new TypeError('Expected "defined" but received "' + typeof obj_renditionConfig + '" (at "' + path_renditionConfig + '")');
1234
- }
1235
- }
1236
- const obj_schema = obj.schema;
1237
- const path_schema = path + '.schema';
1238
- if (typeof obj_schema !== 'object' || ArrayIsArray(obj_schema) || obj_schema === null) {
1239
- return new TypeError('Expected "object" but received "' + typeof obj_schema + '" (at "' + path_schema + '")');
1240
- }
1241
- const obj_schema_keys = ObjectKeys(obj_schema);
1242
- for (let i = 0; i < obj_schema_keys.length; i++) {
1243
- const key = obj_schema_keys[i];
1244
- const obj_schema_prop = obj_schema[key];
1245
- const path_schema_prop = path_schema + '["' + key + '"]';
1246
- if (obj_schema_prop === undefined) {
1247
- return new TypeError('Expected "defined" but received "' + typeof obj_schema_prop + '" (at "' + path_schema_prop + '")');
1248
- }
1249
- }
1250
1476
  if (obj.title !== undefined) {
1251
1477
  const obj_title = obj.title;
1252
1478
  const path_title = path + '.title';
@@ -1257,11 +1483,63 @@ function validate$2(obj, path = 'ExperienceModelPropertyTypeDetailRepresentation
1257
1483
  })();
1258
1484
  return v_error === undefined ? null : v_error;
1259
1485
  }
1260
- const RepresentationType$1 = 'ExperienceModelPropertyTypeDetailRepresentation';
1486
+
1487
+ const TTL$1 = 3600000;
1488
+ const VERSION$1 = "172e544645942d550fc1f07812bb85b6";
1489
+ function validate$6(obj, path = 'ExperienceModelPropertyTypeCollectionRepresentation') {
1490
+ const v_error = (() => {
1491
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1492
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
1493
+ }
1494
+ const obj_count = obj.count;
1495
+ const path_count = path + '.count';
1496
+ if (typeof obj_count !== 'number' || (typeof obj_count === 'number' && Math.floor(obj_count) !== obj_count)) {
1497
+ return new TypeError('Expected "integer" but received "' + typeof obj_count + '" (at "' + path_count + '")');
1498
+ }
1499
+ if (obj.currentPageUrl !== undefined) {
1500
+ const obj_currentPageUrl = obj.currentPageUrl;
1501
+ const path_currentPageUrl = path + '.currentPageUrl';
1502
+ if (typeof obj_currentPageUrl !== 'string') {
1503
+ return new TypeError('Expected "string" but received "' + typeof obj_currentPageUrl + '" (at "' + path_currentPageUrl + '")');
1504
+ }
1505
+ }
1506
+ if (obj.nextPageUrl !== undefined) {
1507
+ const obj_nextPageUrl = obj.nextPageUrl;
1508
+ const path_nextPageUrl = path + '.nextPageUrl';
1509
+ if (typeof obj_nextPageUrl !== 'string') {
1510
+ return new TypeError('Expected "string" but received "' + typeof obj_nextPageUrl + '" (at "' + path_nextPageUrl + '")');
1511
+ }
1512
+ }
1513
+ if (obj.previousPageUrl !== undefined) {
1514
+ const obj_previousPageUrl = obj.previousPageUrl;
1515
+ const path_previousPageUrl = path + '.previousPageUrl';
1516
+ if (typeof obj_previousPageUrl !== 'string') {
1517
+ return new TypeError('Expected "string" but received "' + typeof obj_previousPageUrl + '" (at "' + path_previousPageUrl + '")');
1518
+ }
1519
+ }
1520
+ const obj_propertyTypes = obj.propertyTypes;
1521
+ const path_propertyTypes = path + '.propertyTypes';
1522
+ if (!ArrayIsArray(obj_propertyTypes)) {
1523
+ return new TypeError('Expected "array" but received "' + typeof obj_propertyTypes + '" (at "' + path_propertyTypes + '")');
1524
+ }
1525
+ for (let i = 0; i < obj_propertyTypes.length; i++) {
1526
+ const obj_propertyTypes_item = obj_propertyTypes[i];
1527
+ const path_propertyTypes_item = path_propertyTypes + '[' + i + ']';
1528
+ const referencepath_propertyTypes_itemValidationError = validate$7(obj_propertyTypes_item, path_propertyTypes_item);
1529
+ if (referencepath_propertyTypes_itemValidationError !== null) {
1530
+ let message = 'Object doesn\'t match ExperienceModelPropertyTypeSummaryRepresentation (at "' + path_propertyTypes_item + '")\n';
1531
+ message += referencepath_propertyTypes_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1532
+ return new TypeError(message);
1533
+ }
1534
+ }
1535
+ })();
1536
+ return v_error === undefined ? null : v_error;
1537
+ }
1538
+ const RepresentationType$1 = 'ExperienceModelPropertyTypeCollectionRepresentation';
1261
1539
  function normalize$1(input, existing, path, luvio, store, timestamp) {
1262
1540
  return input;
1263
1541
  }
1264
- const select$3 = function ExperienceModelPropertyTypeDetailRepresentationSelect() {
1542
+ const select$3 = function ExperienceModelPropertyTypeCollectionRepresentationSelect() {
1265
1543
  return {
1266
1544
  kind: 'Fragment',
1267
1545
  version: VERSION$1,
@@ -1275,9 +1553,9 @@ function equals$1(existing, incoming) {
1275
1553
  }
1276
1554
  return true;
1277
1555
  }
1278
- const ingest$1 = function ExperienceModelPropertyTypeDetailRepresentationIngest(input, path, luvio, store, timestamp) {
1556
+ const ingest$1 = function ExperienceModelPropertyTypeCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
1279
1557
  if (process.env.NODE_ENV !== 'production') {
1280
- const validateError = validate$2(input);
1558
+ const validateError = validate$6(input);
1281
1559
  if (validateError !== null) {
1282
1560
  throw validateError;
1283
1561
  }
@@ -1301,7 +1579,7 @@ function select$2(luvio, params) {
1301
1579
  return select$3();
1302
1580
  }
1303
1581
  function keyBuilder$3(luvio, params) {
1304
- return keyPrefix + '::ExperienceModelPropertyTypeDetailRepresentation:(' + 'designConfigTarget:' + params.queryParams.designConfigTarget + ',' + 'includeSubSchemaDefinitions:' + params.queryParams.includeSubSchemaDefinitions + ',' + 'language:' + params.queryParams.language + ',' + 'renditionConfigTarget:' + params.queryParams.renditionConfigTarget + ',' + 'fullyQualifiedName:' + params.urlParams.fullyQualifiedName + ')';
1582
+ return keyPrefix + '::ExperienceModelPropertyTypeCollectionRepresentation:(' + 'designConfigTarget:' + params.queryParams.designConfigTarget + ',' + 'fullyQualifiedNames:' + params.queryParams.fullyQualifiedNames + ',' + 'language:' + params.queryParams.language + ',' + 'page:' + params.queryParams.page + ',' + 'pageSize:' + params.queryParams.pageSize + ',' + 'renditionConfigTarget:' + params.queryParams.renditionConfigTarget + ')';
1305
1583
  }
1306
1584
  function getResponseCacheKeys$1(storeKeyMap, luvio, resourceParams, response) {
1307
1585
  getTypeCacheKeys$1(storeKeyMap, luvio, response, () => keyBuilder$3(luvio, resourceParams));
@@ -1339,33 +1617,34 @@ function createResourceRequest$1(config) {
1339
1617
  const headers = {};
1340
1618
  return {
1341
1619
  baseUri: '/services/data/v60.0',
1342
- basePath: '/connect/experience-model/property-types/' + config.urlParams.fullyQualifiedName + '',
1620
+ basePath: '/connect/experience-model/property-types',
1343
1621
  method: 'get',
1344
1622
  body: null,
1345
- urlParams: config.urlParams,
1623
+ urlParams: {},
1346
1624
  queryParams: config.queryParams,
1347
1625
  headers,
1348
1626
  priority: 'normal',
1349
1627
  };
1350
1628
  }
1351
1629
 
1352
- const adapterName$1 = 'getPropertyType';
1353
- const getPropertyType_ConfigPropertyMetadata = [
1354
- generateParamConfigMetadata('fullyQualifiedName', true, 0 /* UrlParameter */, 0 /* String */),
1630
+ const adapterName$1 = 'getPropertyTypes';
1631
+ const getPropertyTypes_ConfigPropertyMetadata = [
1355
1632
  generateParamConfigMetadata('designConfigTarget', false, 1 /* QueryParameter */, 0 /* String */),
1356
- generateParamConfigMetadata('includeSubSchemaDefinitions', false, 1 /* QueryParameter */, 1 /* Boolean */),
1633
+ generateParamConfigMetadata('fullyQualifiedNames', false, 1 /* QueryParameter */, 0 /* String */, true),
1357
1634
  generateParamConfigMetadata('language', false, 1 /* QueryParameter */, 0 /* String */),
1635
+ generateParamConfigMetadata('page', false, 1 /* QueryParameter */, 3 /* Integer */),
1636
+ generateParamConfigMetadata('pageSize', false, 1 /* QueryParameter */, 3 /* Integer */),
1358
1637
  generateParamConfigMetadata('renditionConfigTarget', false, 1 /* QueryParameter */, 0 /* String */),
1359
1638
  ];
1360
- const getPropertyType_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, getPropertyType_ConfigPropertyMetadata);
1361
- const createResourceParams$1 = /*#__PURE__*/ createResourceParams$6(getPropertyType_ConfigPropertyMetadata);
1639
+ const getPropertyTypes_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, getPropertyTypes_ConfigPropertyMetadata);
1640
+ const createResourceParams$1 = /*#__PURE__*/ createResourceParams$7(getPropertyTypes_ConfigPropertyMetadata);
1362
1641
  function keyBuilder$2(luvio, config) {
1363
1642
  const resourceParams = createResourceParams$1(config);
1364
1643
  return keyBuilder$3(luvio, resourceParams);
1365
1644
  }
1366
1645
  function typeCheckConfig$1(untrustedConfig) {
1367
1646
  const config = {};
1368
- typeCheckConfig$6(untrustedConfig, config, getPropertyType_ConfigPropertyMetadata);
1647
+ typeCheckConfig$7(untrustedConfig, config, getPropertyTypes_ConfigPropertyMetadata);
1369
1648
  return config;
1370
1649
  }
1371
1650
  function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
@@ -1414,7 +1693,7 @@ function buildNetworkSnapshot$1(luvio, config, options) {
1414
1693
  });
1415
1694
  }
1416
1695
  function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
1417
- return buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext, buildNetworkSnapshot$1, undefined, false);
1696
+ return buildNetworkSnapshotCachePolicy$7(context, coercedAdapterRequestContext, buildNetworkSnapshot$1, undefined, false);
1418
1697
  }
1419
1698
  function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
1420
1699
  const { luvio, config } = context;
@@ -1429,8 +1708,8 @@ function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
1429
1708
  });
1430
1709
  return cacheSnapshot;
1431
1710
  }
1432
- const getPropertyTypeAdapterFactory = (luvio) => function ExperienceType__getPropertyType(untrustedConfig, requestContext) {
1433
- const config = validateAdapterConfig$1(untrustedConfig, getPropertyType_ConfigPropertyNames);
1711
+ const getPropertyTypesAdapterFactory = (luvio) => function ExperienceType__getPropertyTypes(untrustedConfig, requestContext) {
1712
+ const config = validateAdapterConfig$1(untrustedConfig, getPropertyTypes_ConfigPropertyNames);
1434
1713
  // Invalid or incomplete config
1435
1714
  if (config === null) {
1436
1715
  return null;
@@ -1439,11 +1718,115 @@ const getPropertyTypeAdapterFactory = (luvio) => function ExperienceType__getPro
1439
1718
  buildCachedSnapshotCachePolicy$1, buildNetworkSnapshotCachePolicy$1);
1440
1719
  };
1441
1720
 
1442
- function validate$1(obj, path = 'ExperienceModelPropertyTypeSummaryRepresentation') {
1721
+ function validate$5(obj, path = 'ExperienceModelDesignConfigInputRepresentation') {
1443
1722
  const v_error = (() => {
1444
1723
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1445
1724
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
1446
1725
  }
1726
+ if (obj.target !== undefined) {
1727
+ const obj_target = obj.target;
1728
+ const path_target = path + '.target';
1729
+ if (typeof obj_target !== 'string') {
1730
+ return new TypeError('Expected "string" but received "' + typeof obj_target + '" (at "' + path_target + '")');
1731
+ }
1732
+ }
1733
+ })();
1734
+ return v_error === undefined ? null : v_error;
1735
+ }
1736
+
1737
+ function validate$4(obj, path = 'ExperienceModelRenditionConfigInputRepresentation') {
1738
+ const v_error = (() => {
1739
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1740
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
1741
+ }
1742
+ if (obj.target !== undefined) {
1743
+ const obj_target = obj.target;
1744
+ const path_target = path + '.target';
1745
+ if (typeof obj_target !== 'string') {
1746
+ return new TypeError('Expected "string" but received "' + typeof obj_target + '" (at "' + path_target + '")');
1747
+ }
1748
+ }
1749
+ })();
1750
+ return v_error === undefined ? null : v_error;
1751
+ }
1752
+
1753
+ function validate$3(obj, path = 'ExperienceModelSchemaConfigInputRepresentation') {
1754
+ const v_error = (() => {
1755
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1756
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
1757
+ }
1758
+ if (obj.subSchemaDefinitions !== undefined) {
1759
+ const obj_subSchemaDefinitions = obj.subSchemaDefinitions;
1760
+ const path_subSchemaDefinitions = path + '.subSchemaDefinitions';
1761
+ if (typeof obj_subSchemaDefinitions !== 'boolean') {
1762
+ return new TypeError('Expected "boolean" but received "' + typeof obj_subSchemaDefinitions + '" (at "' + path_subSchemaDefinitions + '")');
1763
+ }
1764
+ }
1765
+ })();
1766
+ return v_error === undefined ? null : v_error;
1767
+ }
1768
+
1769
+ function validate$2(obj, path = 'ExperienceModelTypesConfigInputRepresentation') {
1770
+ const v_error = (() => {
1771
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1772
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
1773
+ }
1774
+ const obj_descriptor = obj.descriptor;
1775
+ const path_descriptor = path + '.descriptor';
1776
+ if (typeof obj_descriptor !== 'string') {
1777
+ return new TypeError('Expected "string" but received "' + typeof obj_descriptor + '" (at "' + path_descriptor + '")');
1778
+ }
1779
+ if (obj.designConfig !== undefined) {
1780
+ const obj_designConfig = obj.designConfig;
1781
+ const path_designConfig = path + '.designConfig';
1782
+ const referencepath_designConfigValidationError = validate$5(obj_designConfig, path_designConfig);
1783
+ if (referencepath_designConfigValidationError !== null) {
1784
+ let message = 'Object doesn\'t match ExperienceModelDesignConfigInputRepresentation (at "' + path_designConfig + '")\n';
1785
+ message += referencepath_designConfigValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1786
+ return new TypeError(message);
1787
+ }
1788
+ }
1789
+ if (obj.renditionConfig !== undefined) {
1790
+ const obj_renditionConfig = obj.renditionConfig;
1791
+ const path_renditionConfig = path + '.renditionConfig';
1792
+ const referencepath_renditionConfigValidationError = validate$4(obj_renditionConfig, path_renditionConfig);
1793
+ if (referencepath_renditionConfigValidationError !== null) {
1794
+ let message = 'Object doesn\'t match ExperienceModelRenditionConfigInputRepresentation (at "' + path_renditionConfig + '")\n';
1795
+ message += referencepath_renditionConfigValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1796
+ return new TypeError(message);
1797
+ }
1798
+ }
1799
+ if (obj.schemaConfig !== undefined) {
1800
+ const obj_schemaConfig = obj.schemaConfig;
1801
+ const path_schemaConfig = path + '.schemaConfig';
1802
+ const referencepath_schemaConfigValidationError = validate$3(obj_schemaConfig, path_schemaConfig);
1803
+ if (referencepath_schemaConfigValidationError !== null) {
1804
+ let message = 'Object doesn\'t match ExperienceModelSchemaConfigInputRepresentation (at "' + path_schemaConfig + '")\n';
1805
+ message += referencepath_schemaConfigValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1806
+ return new TypeError(message);
1807
+ }
1808
+ }
1809
+ if (obj.sourceDescriptor !== undefined) {
1810
+ const obj_sourceDescriptor = obj.sourceDescriptor;
1811
+ const path_sourceDescriptor = path + '.sourceDescriptor';
1812
+ if (typeof obj_sourceDescriptor !== 'string') {
1813
+ return new TypeError('Expected "string" but received "' + typeof obj_sourceDescriptor + '" (at "' + path_sourceDescriptor + '")');
1814
+ }
1815
+ }
1816
+ })();
1817
+ return v_error === undefined ? null : v_error;
1818
+ }
1819
+
1820
+ function validate$1(obj, path = 'ExperienceModelTypesRepresentation') {
1821
+ const v_error = (() => {
1822
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1823
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
1824
+ }
1825
+ const obj_bundleType = obj.bundleType;
1826
+ const path_bundleType = path + '.bundleType';
1827
+ if (typeof obj_bundleType !== 'string') {
1828
+ return new TypeError('Expected "string" but received "' + typeof obj_bundleType + '" (at "' + path_bundleType + '")');
1829
+ }
1447
1830
  if (obj.description !== undefined) {
1448
1831
  const obj_description = obj.description;
1449
1832
  const path_description = path + '.description';
@@ -1451,10 +1834,12 @@ function validate$1(obj, path = 'ExperienceModelPropertyTypeSummaryRepresentatio
1451
1834
  return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
1452
1835
  }
1453
1836
  }
1454
- const obj_detailUrl = obj.detailUrl;
1455
- const path_detailUrl = path + '.detailUrl';
1456
- if (typeof obj_detailUrl !== 'string') {
1457
- return new TypeError('Expected "string" but received "' + typeof obj_detailUrl + '" (at "' + path_detailUrl + '")');
1837
+ if (obj.designConfig !== undefined) {
1838
+ const obj_designConfig = obj.designConfig;
1839
+ const path_designConfig = path + '.designConfig';
1840
+ if (typeof obj_designConfig !== 'object' || ArrayIsArray(obj_designConfig) || obj_designConfig === null) {
1841
+ return new TypeError('Expected "object" but received "' + typeof obj_designConfig + '" (at "' + path_designConfig + '")');
1842
+ }
1458
1843
  }
1459
1844
  const obj_developerName = obj.developerName;
1460
1845
  const path_developerName = path + '.developerName';
@@ -1473,6 +1858,20 @@ function validate$1(obj, path = 'ExperienceModelPropertyTypeSummaryRepresentatio
1473
1858
  if (typeof obj_namespacePrefix !== 'string') {
1474
1859
  return new TypeError('Expected "string" but received "' + typeof obj_namespacePrefix + '" (at "' + path_namespacePrefix + '")');
1475
1860
  }
1861
+ if (obj.renditionConfig !== undefined) {
1862
+ const obj_renditionConfig = obj.renditionConfig;
1863
+ const path_renditionConfig = path + '.renditionConfig';
1864
+ if (typeof obj_renditionConfig !== 'object' || ArrayIsArray(obj_renditionConfig) || obj_renditionConfig === null) {
1865
+ return new TypeError('Expected "object" but received "' + typeof obj_renditionConfig + '" (at "' + path_renditionConfig + '")');
1866
+ }
1867
+ }
1868
+ if (obj.schema !== undefined) {
1869
+ const obj_schema = obj.schema;
1870
+ const path_schema = path + '.schema';
1871
+ if (typeof obj_schema !== 'object' || ArrayIsArray(obj_schema) || obj_schema === null) {
1872
+ return new TypeError('Expected "object" but received "' + typeof obj_schema + '" (at "' + path_schema + '")');
1873
+ }
1874
+ }
1476
1875
  if (obj.title !== undefined) {
1477
1876
  const obj_title = obj.title;
1478
1877
  const path_title = path + '.title';
@@ -1480,66 +1879,47 @@ function validate$1(obj, path = 'ExperienceModelPropertyTypeSummaryRepresentatio
1480
1879
  return new TypeError('Expected "string" but received "' + typeof obj_title + '" (at "' + path_title + '")');
1481
1880
  }
1482
1881
  }
1882
+ if (obj.typeDescriptor !== undefined) {
1883
+ const obj_typeDescriptor = obj.typeDescriptor;
1884
+ const path_typeDescriptor = path + '.typeDescriptor';
1885
+ if (typeof obj_typeDescriptor !== 'string') {
1886
+ return new TypeError('Expected "string" but received "' + typeof obj_typeDescriptor + '" (at "' + path_typeDescriptor + '")');
1887
+ }
1888
+ }
1483
1889
  })();
1484
1890
  return v_error === undefined ? null : v_error;
1485
1891
  }
1486
1892
 
1487
1893
  const TTL = 3600000;
1488
- const VERSION = "172e544645942d550fc1f07812bb85b6";
1489
- function validate(obj, path = 'ExperienceModelPropertyTypeCollectionRepresentation') {
1894
+ const VERSION = "8769e559a95e852451b82fa1610c65e0";
1895
+ function validate(obj, path = 'ExperienceModelTypesCollectionRepresentation') {
1490
1896
  const v_error = (() => {
1491
1897
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1492
1898
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
1493
1899
  }
1494
- const obj_count = obj.count;
1495
- const path_count = path + '.count';
1496
- if (typeof obj_count !== 'number' || (typeof obj_count === 'number' && Math.floor(obj_count) !== obj_count)) {
1497
- return new TypeError('Expected "integer" but received "' + typeof obj_count + '" (at "' + path_count + '")');
1498
- }
1499
- if (obj.currentPageUrl !== undefined) {
1500
- const obj_currentPageUrl = obj.currentPageUrl;
1501
- const path_currentPageUrl = path + '.currentPageUrl';
1502
- if (typeof obj_currentPageUrl !== 'string') {
1503
- return new TypeError('Expected "string" but received "' + typeof obj_currentPageUrl + '" (at "' + path_currentPageUrl + '")');
1504
- }
1505
- }
1506
- if (obj.nextPageUrl !== undefined) {
1507
- const obj_nextPageUrl = obj.nextPageUrl;
1508
- const path_nextPageUrl = path + '.nextPageUrl';
1509
- if (typeof obj_nextPageUrl !== 'string') {
1510
- return new TypeError('Expected "string" but received "' + typeof obj_nextPageUrl + '" (at "' + path_nextPageUrl + '")');
1511
- }
1512
- }
1513
- if (obj.previousPageUrl !== undefined) {
1514
- const obj_previousPageUrl = obj.previousPageUrl;
1515
- const path_previousPageUrl = path + '.previousPageUrl';
1516
- if (typeof obj_previousPageUrl !== 'string') {
1517
- return new TypeError('Expected "string" but received "' + typeof obj_previousPageUrl + '" (at "' + path_previousPageUrl + '")');
1518
- }
1519
- }
1520
- const obj_propertyTypes = obj.propertyTypes;
1521
- const path_propertyTypes = path + '.propertyTypes';
1522
- if (!ArrayIsArray(obj_propertyTypes)) {
1523
- return new TypeError('Expected "array" but received "' + typeof obj_propertyTypes + '" (at "' + path_propertyTypes + '")');
1524
- }
1525
- for (let i = 0; i < obj_propertyTypes.length; i++) {
1526
- const obj_propertyTypes_item = obj_propertyTypes[i];
1527
- const path_propertyTypes_item = path_propertyTypes + '[' + i + ']';
1528
- const referencepath_propertyTypes_itemValidationError = validate$1(obj_propertyTypes_item, path_propertyTypes_item);
1529
- if (referencepath_propertyTypes_itemValidationError !== null) {
1530
- let message = 'Object doesn\'t match ExperienceModelPropertyTypeSummaryRepresentation (at "' + path_propertyTypes_item + '")\n';
1531
- message += referencepath_propertyTypes_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1900
+ const obj_types = obj.types;
1901
+ const path_types = path + '.types';
1902
+ if (!ArrayIsArray(obj_types)) {
1903
+ return new TypeError('Expected "array" but received "' + typeof obj_types + '" (at "' + path_types + '")');
1904
+ }
1905
+ for (let i = 0; i < obj_types.length; i++) {
1906
+ const obj_types_item = obj_types[i];
1907
+ const path_types_item = path_types + '[' + i + ']';
1908
+ const referencepath_types_itemValidationError = validate$1(obj_types_item, path_types_item);
1909
+ if (referencepath_types_itemValidationError !== null) {
1910
+ let message = 'Object doesn\'t match ExperienceModelTypesRepresentation (at "' + path_types_item + '")\n';
1911
+ message += referencepath_types_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1532
1912
  return new TypeError(message);
1533
1913
  }
1534
1914
  }
1535
1915
  })();
1536
1916
  return v_error === undefined ? null : v_error;
1537
1917
  }
1538
- const RepresentationType = 'ExperienceModelPropertyTypeCollectionRepresentation';
1918
+ const RepresentationType = 'ExperienceModelTypesCollectionRepresentation';
1539
1919
  function normalize(input, existing, path, luvio, store, timestamp) {
1540
1920
  return input;
1541
1921
  }
1542
- const select$1 = function ExperienceModelPropertyTypeCollectionRepresentationSelect() {
1922
+ const select$1 = function ExperienceModelTypesCollectionRepresentationSelect() {
1543
1923
  return {
1544
1924
  kind: 'Fragment',
1545
1925
  version: VERSION,
@@ -1553,7 +1933,7 @@ function equals(existing, incoming) {
1553
1933
  }
1554
1934
  return true;
1555
1935
  }
1556
- const ingest = function ExperienceModelPropertyTypeCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
1936
+ const ingest = function ExperienceModelTypesCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
1557
1937
  if (process.env.NODE_ENV !== 'production') {
1558
1938
  const validateError = validate(input);
1559
1939
  if (validateError !== null) {
@@ -1579,7 +1959,7 @@ function select(luvio, params) {
1579
1959
  return select$1();
1580
1960
  }
1581
1961
  function keyBuilder$1(luvio, params) {
1582
- return keyPrefix + '::ExperienceModelPropertyTypeCollectionRepresentation:(' + 'designConfigTarget:' + params.queryParams.designConfigTarget + ',' + 'fullyQualifiedNames:' + params.queryParams.fullyQualifiedNames + ',' + 'language:' + params.queryParams.language + ',' + 'page:' + params.queryParams.page + ',' + 'pageSize:' + params.queryParams.pageSize + ',' + 'renditionConfigTarget:' + params.queryParams.renditionConfigTarget + ')';
1962
+ return keyPrefix + '::ExperienceModelTypesCollectionRepresentation:(' + 'language:' + params.body.language + '::' + '[' + params.body.typeConfigs.map(element => { var _a, _b, _c, _d, _e, _f; return 'typeConfigs.descriptor:' + element.descriptor + '::' + (((_a = element.designConfig) === null || _a === void 0 ? void 0 : _a.target) === undefined ? 'typeConfigs.designConfig.target' : 'typeConfigs.designConfig.target:' + ((_b = element.designConfig) === null || _b === void 0 ? void 0 : _b.target)) + '::' + (((_c = element.renditionConfig) === null || _c === void 0 ? void 0 : _c.target) === undefined ? 'typeConfigs.renditionConfig.target' : 'typeConfigs.renditionConfig.target:' + ((_d = element.renditionConfig) === null || _d === void 0 ? void 0 : _d.target)) + '::' + (((_e = element.schemaConfig) === null || _e === void 0 ? void 0 : _e.subSchemaDefinitions) === undefined ? 'typeConfigs.schemaConfig.subSchemaDefinitions' : 'typeConfigs.schemaConfig.subSchemaDefinitions:' + ((_f = element.schemaConfig) === null || _f === void 0 ? void 0 : _f.subSchemaDefinitions)) + '::' + (element.sourceDescriptor === undefined ? 'typeConfigs.sourceDescriptor' : 'typeConfigs.sourceDescriptor:' + element.sourceDescriptor); }).join(',') + ']' + ')';
1583
1963
  }
1584
1964
  function getResponseCacheKeys(storeKeyMap, luvio, resourceParams, response) {
1585
1965
  getTypeCacheKeys(storeKeyMap, luvio, response, () => keyBuilder$1(luvio, resourceParams));
@@ -1617,34 +1997,42 @@ function createResourceRequest(config) {
1617
1997
  const headers = {};
1618
1998
  return {
1619
1999
  baseUri: '/services/data/v60.0',
1620
- basePath: '/connect/experience-model/property-types',
1621
- method: 'get',
1622
- body: null,
2000
+ basePath: '/connect/experience-model/types',
2001
+ method: 'post',
2002
+ body: config.body,
1623
2003
  urlParams: {},
1624
- queryParams: config.queryParams,
2004
+ queryParams: {},
1625
2005
  headers,
1626
2006
  priority: 'normal',
1627
2007
  };
1628
2008
  }
1629
2009
 
1630
- const adapterName = 'getPropertyTypes';
1631
- const getPropertyTypes_ConfigPropertyMetadata = [
1632
- generateParamConfigMetadata('designConfigTarget', false, 1 /* QueryParameter */, 0 /* String */),
1633
- generateParamConfigMetadata('fullyQualifiedNames', false, 1 /* QueryParameter */, 0 /* String */, true),
1634
- generateParamConfigMetadata('language', false, 1 /* QueryParameter */, 0 /* String */),
1635
- generateParamConfigMetadata('page', false, 1 /* QueryParameter */, 3 /* Integer */),
1636
- generateParamConfigMetadata('pageSize', false, 1 /* QueryParameter */, 3 /* Integer */),
1637
- generateParamConfigMetadata('renditionConfigTarget', false, 1 /* QueryParameter */, 0 /* String */),
2010
+ const adapterName = 'getTypes';
2011
+ const getTypes_ConfigPropertyMetadata = [
2012
+ generateParamConfigMetadata('language', true, 2 /* Body */, 0 /* String */),
2013
+ generateParamConfigMetadata('typeConfigs', true, 2 /* Body */, 4 /* Unsupported */, true),
1638
2014
  ];
1639
- const getPropertyTypes_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, getPropertyTypes_ConfigPropertyMetadata);
1640
- const createResourceParams = /*#__PURE__*/ createResourceParams$6(getPropertyTypes_ConfigPropertyMetadata);
2015
+ const getTypes_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, getTypes_ConfigPropertyMetadata);
2016
+ const createResourceParams = /*#__PURE__*/ createResourceParams$7(getTypes_ConfigPropertyMetadata);
1641
2017
  function keyBuilder(luvio, config) {
1642
2018
  const resourceParams = createResourceParams(config);
1643
2019
  return keyBuilder$1(luvio, resourceParams);
1644
2020
  }
1645
2021
  function typeCheckConfig(untrustedConfig) {
1646
2022
  const config = {};
1647
- typeCheckConfig$6(untrustedConfig, config, getPropertyTypes_ConfigPropertyMetadata);
2023
+ typeCheckConfig$7(untrustedConfig, config, getTypes_ConfigPropertyMetadata);
2024
+ const untrustedConfig_typeConfigs = untrustedConfig.typeConfigs;
2025
+ if (ArrayIsArray$1(untrustedConfig_typeConfigs)) {
2026
+ const untrustedConfig_typeConfigs_array = [];
2027
+ for (let i = 0, arrayLength = untrustedConfig_typeConfigs.length; i < arrayLength; i++) {
2028
+ const untrustedConfig_typeConfigs_item = untrustedConfig_typeConfigs[i];
2029
+ const referenceExperienceModelTypesConfigInputRepresentationValidationError = validate$2(untrustedConfig_typeConfigs_item);
2030
+ if (referenceExperienceModelTypesConfigInputRepresentationValidationError === null) {
2031
+ untrustedConfig_typeConfigs_array.push(untrustedConfig_typeConfigs_item);
2032
+ }
2033
+ }
2034
+ config.typeConfigs = untrustedConfig_typeConfigs_array;
2035
+ }
1648
2036
  return config;
1649
2037
  }
1650
2038
  function validateAdapterConfig(untrustedConfig, configPropertyNames) {
@@ -1693,7 +2081,7 @@ function buildNetworkSnapshot(luvio, config, options) {
1693
2081
  });
1694
2082
  }
1695
2083
  function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
1696
- return buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext, buildNetworkSnapshot, undefined, false);
2084
+ return buildNetworkSnapshotCachePolicy$7(context, coercedAdapterRequestContext, buildNetworkSnapshot, 'get', false);
1697
2085
  }
1698
2086
  function buildCachedSnapshotCachePolicy(context, storeLookup) {
1699
2087
  const { luvio, config } = context;
@@ -1708,8 +2096,8 @@ function buildCachedSnapshotCachePolicy(context, storeLookup) {
1708
2096
  });
1709
2097
  return cacheSnapshot;
1710
2098
  }
1711
- const getPropertyTypesAdapterFactory = (luvio) => function ExperienceType__getPropertyTypes(untrustedConfig, requestContext) {
1712
- const config = validateAdapterConfig(untrustedConfig, getPropertyTypes_ConfigPropertyNames);
2099
+ const getTypesAdapterFactory = (luvio) => function ExperienceType__getTypes(untrustedConfig, requestContext) {
2100
+ const config = validateAdapterConfig(untrustedConfig, getTypes_ConfigPropertyNames);
1713
2101
  // Invalid or incomplete config
1714
2102
  if (config === null) {
1715
2103
  return null;
@@ -1724,6 +2112,7 @@ let getContentType;
1724
2112
  let getContentTypes;
1725
2113
  let getPropertyType;
1726
2114
  let getPropertyTypes;
2115
+ let getTypes;
1727
2116
  // Imperative GET Adapters
1728
2117
  let getBlockType_imperative;
1729
2118
  let getBlockTypes_imperative;
@@ -1731,6 +2120,7 @@ let getContentType_imperative;
1731
2120
  let getContentTypes_imperative;
1732
2121
  let getPropertyType_imperative;
1733
2122
  let getPropertyTypes_imperative;
2123
+ let getTypes_imperative;
1734
2124
  // Adapter Metadata
1735
2125
  const getBlockTypeMetadata = { apiFamily: 'ExperienceType', name: 'getBlockType', ttl: 3600000 };
1736
2126
  const getBlockTypesMetadata = { apiFamily: 'ExperienceType', name: 'getBlockTypes', ttl: 3600000 };
@@ -1738,6 +2128,7 @@ const getContentTypeMetadata = { apiFamily: 'ExperienceType', name: 'getContentT
1738
2128
  const getContentTypesMetadata = { apiFamily: 'ExperienceType', name: 'getContentTypes', ttl: 3600000 };
1739
2129
  const getPropertyTypeMetadata = { apiFamily: 'ExperienceType', name: 'getPropertyType', ttl: 3600000 };
1740
2130
  const getPropertyTypesMetadata = { apiFamily: 'ExperienceType', name: 'getPropertyTypes', ttl: 3600000 };
2131
+ const getTypesMetadata = { apiFamily: 'ExperienceType', name: 'getTypes', ttl: 3600000 };
1741
2132
  function bindExportsTo(luvio) {
1742
2133
  // LDS Adapters
1743
2134
  const getBlockType_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getBlockType', getBlockTypeAdapterFactory), getBlockTypeMetadata);
@@ -1746,6 +2137,7 @@ function bindExportsTo(luvio) {
1746
2137
  const getContentTypes_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getContentTypes', getContentTypesAdapterFactory), getContentTypesMetadata);
1747
2138
  const getPropertyType_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getPropertyType', getPropertyTypeAdapterFactory), getPropertyTypeMetadata);
1748
2139
  const getPropertyTypes_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getPropertyTypes', getPropertyTypesAdapterFactory), getPropertyTypesMetadata);
2140
+ const getTypes_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getTypes', getTypesAdapterFactory), getTypesMetadata);
1749
2141
  return {
1750
2142
  getBlockType: createWireAdapterConstructor(luvio, getBlockType_ldsAdapter, getBlockTypeMetadata),
1751
2143
  getBlockTypes: createWireAdapterConstructor(luvio, getBlockTypes_ldsAdapter, getBlockTypesMetadata),
@@ -1753,13 +2145,15 @@ function bindExportsTo(luvio) {
1753
2145
  getContentTypes: createWireAdapterConstructor(luvio, getContentTypes_ldsAdapter, getContentTypesMetadata),
1754
2146
  getPropertyType: createWireAdapterConstructor(luvio, getPropertyType_ldsAdapter, getPropertyTypeMetadata),
1755
2147
  getPropertyTypes: createWireAdapterConstructor(luvio, getPropertyTypes_ldsAdapter, getPropertyTypesMetadata),
2148
+ getTypes: createWireAdapterConstructor(luvio, getTypes_ldsAdapter, getTypesMetadata),
1756
2149
  // Imperative GET Adapters
1757
2150
  getBlockType_imperative: createImperativeAdapter(luvio, getBlockType_ldsAdapter, getBlockTypeMetadata),
1758
2151
  getBlockTypes_imperative: createImperativeAdapter(luvio, getBlockTypes_ldsAdapter, getBlockTypesMetadata),
1759
2152
  getContentType_imperative: createImperativeAdapter(luvio, getContentType_ldsAdapter, getContentTypeMetadata),
1760
2153
  getContentTypes_imperative: createImperativeAdapter(luvio, getContentTypes_ldsAdapter, getContentTypesMetadata),
1761
2154
  getPropertyType_imperative: createImperativeAdapter(luvio, getPropertyType_ldsAdapter, getPropertyTypeMetadata),
1762
- getPropertyTypes_imperative: createImperativeAdapter(luvio, getPropertyTypes_ldsAdapter, getPropertyTypesMetadata)
2155
+ getPropertyTypes_imperative: createImperativeAdapter(luvio, getPropertyTypes_ldsAdapter, getPropertyTypesMetadata),
2156
+ getTypes_imperative: createImperativeAdapter(luvio, getTypes_ldsAdapter, getTypesMetadata)
1763
2157
  };
1764
2158
  }
1765
2159
  withDefaultLuvio((luvio) => {
@@ -1770,14 +2164,16 @@ withDefaultLuvio((luvio) => {
1770
2164
  getContentTypes,
1771
2165
  getPropertyType,
1772
2166
  getPropertyTypes,
2167
+ getTypes,
1773
2168
  getBlockType_imperative,
1774
2169
  getBlockTypes_imperative,
1775
2170
  getContentType_imperative,
1776
2171
  getContentTypes_imperative,
1777
2172
  getPropertyType_imperative,
1778
- getPropertyTypes_imperative
2173
+ getPropertyTypes_imperative,
2174
+ getTypes_imperative
1779
2175
  } = bindExportsTo(luvio));
1780
2176
  });
1781
2177
 
1782
- export { getBlockType, getBlockType_imperative, getBlockTypes, getBlockTypes_imperative, getContentType, getContentType_imperative, getContentTypes, getContentTypes_imperative, getPropertyType, getPropertyType_imperative, getPropertyTypes, getPropertyTypes_imperative };
1783
- // version: 1.251.0-55b09aa76
2178
+ export { getBlockType, getBlockType_imperative, getBlockTypes, getBlockTypes_imperative, getContentType, getContentType_imperative, getContentTypes, getContentTypes_imperative, getPropertyType, getPropertyType_imperative, getPropertyTypes, getPropertyTypes_imperative, getTypes, getTypes_imperative };
2179
+ // version: 1.253.0-15fc9805a