@salesforce/lds-adapters-analytics-unifiedanalytics 1.288.0 → 1.290.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.
Files changed (20) hide show
  1. package/dist/es/es2018/analytics-unifiedanalytics.js +871 -155
  2. package/dist/es/es2018/types/src/generated/adapters/getListViewAnalyticsLibrary.d.ts +16 -0
  3. package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +1 -0
  4. package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +2 -1
  5. package/dist/es/es2018/types/src/generated/resources/postTuaAnalyticsAssetsQuery.d.ts +13 -0
  6. package/dist/es/es2018/types/src/generated/types/LibraryAssetsPreviewInputRepresentation.d.ts +27 -0
  7. package/dist/es/es2018/types/src/generated/types/LibraryAssetsPreviewInputWrapperRepresentation.d.ts +28 -0
  8. package/dist/es/es2018/types/src/generated/types/LibraryAssetsPreviewOutputCollectionRepresentation.d.ts +41 -0
  9. package/dist/es/es2018/types/src/generated/types/LibraryAssetsPreviewOutputRepresentation.d.ts +84 -0
  10. package/dist/es/es2018/types/src/generated/types/TuaAssetReferenceRepresentation.d.ts +26 -0
  11. package/dist/es/es2018/types/src/generated/types/TuaAssetTemplateCustomAttributesRepresentation.d.ts +31 -0
  12. package/dist/es/es2018/types/src/generated/types/TuaAssetTemplateIconsRepresentation.d.ts +27 -0
  13. package/dist/es/es2018/types/src/generated/types/TuaAssetTemplateReleaseRepresentation.d.ts +31 -0
  14. package/dist/es/es2018/types/src/generated/types/TuaBaseAssetReferenceRepresentation.d.ts +40 -0
  15. package/dist/es/es2018/types/src/generated/types/TuaImageAssetReferenceRepresentation.d.ts +29 -0
  16. package/dist/es/es2018/types/src/generated/types/TuaUserRepresentation.d.ts +27 -0
  17. package/package.json +3 -3
  18. package/sfdc/index.js +879 -160
  19. package/src/raml/api.raml +202 -1
  20. package/src/raml/luvio.raml +9 -0
@@ -4,7 +4,7 @@
4
4
  * For full license text, see the LICENSE.txt file
5
5
  */
6
6
 
7
- import { serializeStructuredKey, ingestShape, deepFreeze, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$2, typeCheckConfig as typeCheckConfig$3, StoreKeyMap, createResourceParams as createResourceParams$3 } from '@luvio/engine';
7
+ import { serializeStructuredKey, ingestShape, deepFreeze, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$2, typeCheckConfig as typeCheckConfig$4, StoreKeyMap, createResourceParams as createResourceParams$4 } from '@luvio/engine';
8
8
 
9
9
  const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
10
10
  const { keys: ObjectKeys$1, create: ObjectCreate$1 } = Object;
@@ -93,7 +93,7 @@ function createLink(ref) {
93
93
  };
94
94
  }
95
95
 
96
- function validate$b(obj, path = 'BaseAnalyticsRepresentation') {
96
+ function validate$i(obj, path = 'BaseAnalyticsRepresentation') {
97
97
  const v_error = (() => {
98
98
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
99
99
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -128,8 +128,8 @@ function validate$b(obj, path = 'BaseAnalyticsRepresentation') {
128
128
  return v_error === undefined ? null : v_error;
129
129
  }
130
130
 
131
- function validate$a(obj, path = 'AnalyticsUserRepresentation') {
132
- const validateBaseAnalyticsRepresentation_validateError = validate$b(obj, path);
131
+ function validate$h(obj, path = 'AnalyticsUserRepresentation') {
132
+ const validateBaseAnalyticsRepresentation_validateError = validate$i(obj, path);
133
133
  if (validateBaseAnalyticsRepresentation_validateError !== null) {
134
134
  return validateBaseAnalyticsRepresentation_validateError;
135
135
  }
@@ -169,8 +169,8 @@ function validate$a(obj, path = 'AnalyticsUserRepresentation') {
169
169
  return v_error === undefined ? null : v_error;
170
170
  }
171
171
 
172
- function validate$9(obj, path = 'DashboardPageWidgetRepresentation') {
173
- const validateBaseAnalyticsRepresentation_validateError = validate$b(obj, path);
172
+ function validate$g(obj, path = 'DashboardPageWidgetRepresentation') {
173
+ const validateBaseAnalyticsRepresentation_validateError = validate$i(obj, path);
174
174
  if (validateBaseAnalyticsRepresentation_validateError !== null) {
175
175
  return validateBaseAnalyticsRepresentation_validateError;
176
176
  }
@@ -202,8 +202,8 @@ function validate$9(obj, path = 'DashboardPageWidgetRepresentation') {
202
202
  return v_error === undefined ? null : v_error;
203
203
  }
204
204
 
205
- function validate$8(obj, path = 'DashboardLayoutPageRepresentation') {
206
- const validateBaseAnalyticsRepresentation_validateError = validate$b(obj, path);
205
+ function validate$f(obj, path = 'DashboardLayoutPageRepresentation') {
206
+ const validateBaseAnalyticsRepresentation_validateError = validate$i(obj, path);
207
207
  if (validateBaseAnalyticsRepresentation_validateError !== null) {
208
208
  return validateBaseAnalyticsRepresentation_validateError;
209
209
  }
@@ -226,7 +226,7 @@ function validate$8(obj, path = 'DashboardLayoutPageRepresentation') {
226
226
  for (let i = 0; i < obj_widgets.length; i++) {
227
227
  const obj_widgets_item = obj_widgets[i];
228
228
  const path_widgets_item = path_widgets + '[' + i + ']';
229
- const referencepath_widgets_itemValidationError = validate$9(obj_widgets_item, path_widgets_item);
229
+ const referencepath_widgets_itemValidationError = validate$g(obj_widgets_item, path_widgets_item);
230
230
  if (referencepath_widgets_itemValidationError !== null) {
231
231
  let message = 'Object doesn\'t match DashboardPageWidgetRepresentation (at "' + path_widgets_item + '")\n';
232
232
  message += referencepath_widgets_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -237,8 +237,8 @@ function validate$8(obj, path = 'DashboardLayoutPageRepresentation') {
237
237
  return v_error === undefined ? null : v_error;
238
238
  }
239
239
 
240
- function validate$7(obj, path = 'DashboardLayoutRepresentation') {
241
- const validateBaseAnalyticsRepresentation_validateError = validate$b(obj, path);
240
+ function validate$e(obj, path = 'DashboardLayoutRepresentation') {
241
+ const validateBaseAnalyticsRepresentation_validateError = validate$i(obj, path);
242
242
  if (validateBaseAnalyticsRepresentation_validateError !== null) {
243
243
  return validateBaseAnalyticsRepresentation_validateError;
244
244
  }
@@ -254,7 +254,7 @@ function validate$7(obj, path = 'DashboardLayoutRepresentation') {
254
254
  for (let i = 0; i < obj_pages.length; i++) {
255
255
  const obj_pages_item = obj_pages[i];
256
256
  const path_pages_item = path_pages + '[' + i + ']';
257
- const referencepath_pages_itemValidationError = validate$8(obj_pages_item, path_pages_item);
257
+ const referencepath_pages_itemValidationError = validate$f(obj_pages_item, path_pages_item);
258
258
  if (referencepath_pages_itemValidationError !== null) {
259
259
  let message = 'Object doesn\'t match DashboardLayoutPageRepresentation (at "' + path_pages_item + '")\n';
260
260
  message += referencepath_pages_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -265,8 +265,8 @@ function validate$7(obj, path = 'DashboardLayoutRepresentation') {
265
265
  return v_error === undefined ? null : v_error;
266
266
  }
267
267
 
268
- function validate$6(obj, path = 'AnalyticsWidgetRepresentation') {
269
- const validateBaseAnalyticsRepresentation_validateError = validate$b(obj, path);
268
+ function validate$d(obj, path = 'AnalyticsWidgetRepresentation') {
269
+ const validateBaseAnalyticsRepresentation_validateError = validate$i(obj, path);
270
270
  if (validateBaseAnalyticsRepresentation_validateError !== null) {
271
271
  return validateBaseAnalyticsRepresentation_validateError;
272
272
  }
@@ -288,15 +288,15 @@ function validate$6(obj, path = 'AnalyticsWidgetRepresentation') {
288
288
  return v_error === undefined ? null : v_error;
289
289
  }
290
290
 
291
- const VERSION$1 = "0f0931d08d785620d6d9fe5956fcf344";
292
- function validate$5(obj, path = 'DashboardRepresentation') {
291
+ const VERSION$2 = "0f0931d08d785620d6d9fe5956fcf344";
292
+ function validate$c(obj, path = 'DashboardRepresentation') {
293
293
  const v_error = (() => {
294
294
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
295
295
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
296
296
  }
297
297
  const obj_createdBy = obj.createdBy;
298
298
  const path_createdBy = path + '.createdBy';
299
- const referencepath_createdByValidationError = validate$a(obj_createdBy, path_createdBy);
299
+ const referencepath_createdByValidationError = validate$h(obj_createdBy, path_createdBy);
300
300
  if (referencepath_createdByValidationError !== null) {
301
301
  let message = 'Object doesn\'t match AnalyticsUserRepresentation (at "' + path_createdBy + '")\n';
302
302
  message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -327,7 +327,7 @@ function validate$5(obj, path = 'DashboardRepresentation') {
327
327
  if (obj.lastModifiedBy !== undefined) {
328
328
  const obj_lastModifiedBy = obj.lastModifiedBy;
329
329
  const path_lastModifiedBy = path + '.lastModifiedBy';
330
- const referencepath_lastModifiedByValidationError = validate$a(obj_lastModifiedBy, path_lastModifiedBy);
330
+ const referencepath_lastModifiedByValidationError = validate$h(obj_lastModifiedBy, path_lastModifiedBy);
331
331
  if (referencepath_lastModifiedByValidationError !== null) {
332
332
  let message = 'Object doesn\'t match AnalyticsUserRepresentation (at "' + path_lastModifiedBy + '")\n';
333
333
  message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -349,7 +349,7 @@ function validate$5(obj, path = 'DashboardRepresentation') {
349
349
  for (let i = 0; i < obj_layouts.length; i++) {
350
350
  const obj_layouts_item = obj_layouts[i];
351
351
  const path_layouts_item = path_layouts + '[' + i + ']';
352
- const referencepath_layouts_itemValidationError = validate$7(obj_layouts_item, path_layouts_item);
352
+ const referencepath_layouts_itemValidationError = validate$e(obj_layouts_item, path_layouts_item);
353
353
  if (referencepath_layouts_itemValidationError !== null) {
354
354
  let message = 'Object doesn\'t match DashboardLayoutRepresentation (at "' + path_layouts_item + '")\n';
355
355
  message += referencepath_layouts_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -376,7 +376,7 @@ function validate$5(obj, path = 'DashboardRepresentation') {
376
376
  const key = obj_widgets_keys[i];
377
377
  const obj_widgets_prop = obj_widgets[key];
378
378
  const path_widgets_prop = path_widgets + '["' + key + '"]';
379
- const referencepath_widgets_propValidationError = validate$6(obj_widgets_prop, path_widgets_prop);
379
+ const referencepath_widgets_propValidationError = validate$d(obj_widgets_prop, path_widgets_prop);
380
380
  if (referencepath_widgets_propValidationError !== null) {
381
381
  let message = 'Object doesn\'t match AnalyticsWidgetRepresentation (at "' + path_widgets_prop + '")\n';
382
382
  message += referencepath_widgets_propValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -386,57 +386,57 @@ function validate$5(obj, path = 'DashboardRepresentation') {
386
386
  })();
387
387
  return v_error === undefined ? null : v_error;
388
388
  }
389
- const RepresentationType$1 = 'DashboardRepresentation';
390
- function keyBuilder$4(luvio, config) {
391
- return keyPrefix + '::' + RepresentationType$1 + ':' + config.name;
389
+ const RepresentationType$2 = 'DashboardRepresentation';
390
+ function keyBuilder$5(luvio, config) {
391
+ return keyPrefix + '::' + RepresentationType$2 + ':' + config.name;
392
392
  }
393
- function keyBuilderFromType(luvio, object) {
393
+ function keyBuilderFromType$1(luvio, object) {
394
394
  const keyParams = {
395
395
  name: object.name
396
396
  };
397
- return keyBuilder$4(luvio, keyParams);
397
+ return keyBuilder$5(luvio, keyParams);
398
398
  }
399
- function normalize$1(input, existing, path, luvio, store, timestamp) {
399
+ function normalize$2(input, existing, path, luvio, store, timestamp) {
400
400
  return input;
401
401
  }
402
- const select$4 = function DashboardRepresentationSelect() {
402
+ const select$6 = function DashboardRepresentationSelect() {
403
403
  return {
404
404
  kind: 'Fragment',
405
- version: VERSION$1,
405
+ version: VERSION$2,
406
406
  private: [],
407
407
  opaque: true
408
408
  };
409
409
  };
410
- function equals$1(existing, incoming) {
410
+ function equals$2(existing, incoming) {
411
411
  if (JSONStringify(incoming) !== JSONStringify(existing)) {
412
412
  return false;
413
413
  }
414
414
  return true;
415
415
  }
416
- const ingest$1 = function DashboardRepresentationIngest(input, path, luvio, store, timestamp) {
416
+ const ingest$2 = function DashboardRepresentationIngest(input, path, luvio, store, timestamp) {
417
417
  if (process.env.NODE_ENV !== 'production') {
418
- const validateError = validate$5(input);
418
+ const validateError = validate$c(input);
419
419
  if (validateError !== null) {
420
420
  throw validateError;
421
421
  }
422
422
  }
423
- const key = keyBuilderFromType(luvio, input);
423
+ const key = keyBuilderFromType$1(luvio, input);
424
424
  const ttlToUse = path.ttl !== undefined ? path.ttl : 2592000000;
425
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$1, "UnifiedAnalytics", VERSION$1, RepresentationType$1, equals$1);
425
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$2, "UnifiedAnalytics", VERSION$2, RepresentationType$2, equals$2);
426
426
  return createLink(key);
427
427
  };
428
- function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
428
+ function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
429
429
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
430
- const rootKey = keyBuilderFromType(luvio, input);
430
+ const rootKey = keyBuilderFromType$1(luvio, input);
431
431
  rootKeySet.set(rootKey, {
432
432
  namespace: keyPrefix,
433
- representationName: RepresentationType$1,
433
+ representationName: RepresentationType$2,
434
434
  mergeable: false
435
435
  });
436
436
  }
437
437
 
438
- const VERSION = "962823130e6a9315240ef0e0f0c5f757";
439
- function validate$4(obj, path = 'DashboardCollectionRepresentation') {
438
+ const VERSION$1 = "962823130e6a9315240ef0e0f0c5f757";
439
+ function validate$b(obj, path = 'DashboardCollectionRepresentation') {
440
440
  const v_error = (() => {
441
441
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
442
442
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -456,14 +456,14 @@ function validate$4(obj, path = 'DashboardCollectionRepresentation') {
456
456
  })();
457
457
  return v_error === undefined ? null : v_error;
458
458
  }
459
- const RepresentationType = 'DashboardCollectionRepresentation';
460
- function normalize(input, existing, path, luvio, store, timestamp) {
459
+ const RepresentationType$1 = 'DashboardCollectionRepresentation';
460
+ function normalize$1(input, existing, path, luvio, store, timestamp) {
461
461
  const input_dashboards = input.dashboards;
462
462
  const input_dashboards_id = path.fullPath + '__dashboards';
463
463
  for (let i = 0; i < input_dashboards.length; i++) {
464
464
  const input_dashboards_item = input_dashboards[i];
465
465
  let input_dashboards_item_id = input_dashboards_id + '__' + i;
466
- input_dashboards[i] = ingest$1(input_dashboards_item, {
466
+ input_dashboards[i] = ingest$2(input_dashboards_item, {
467
467
  fullPath: input_dashboards_item_id,
468
468
  propertyName: i,
469
469
  parent: {
@@ -476,22 +476,22 @@ function normalize(input, existing, path, luvio, store, timestamp) {
476
476
  }
477
477
  return input;
478
478
  }
479
- const select$3 = function DashboardCollectionRepresentationSelect() {
479
+ const select$5 = function DashboardCollectionRepresentationSelect() {
480
480
  return {
481
481
  kind: 'Fragment',
482
- version: VERSION,
482
+ version: VERSION$1,
483
483
  private: [],
484
484
  selections: [
485
485
  {
486
486
  name: 'dashboards',
487
487
  kind: 'Link',
488
488
  plural: true,
489
- fragment: select$4()
489
+ fragment: select$6()
490
490
  }
491
491
  ]
492
492
  };
493
493
  };
494
- function equals(existing, incoming) {
494
+ function equals$1(existing, incoming) {
495
495
  const existing_dashboards = existing.dashboards;
496
496
  const incoming_dashboards = incoming.dashboards;
497
497
  const equals_dashboards_items = equalsArray(existing_dashboards, incoming_dashboards, (existing_dashboards_item, incoming_dashboards_item) => {
@@ -504,48 +504,48 @@ function equals(existing, incoming) {
504
504
  }
505
505
  return true;
506
506
  }
507
- const ingest = function DashboardCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
507
+ const ingest$1 = function DashboardCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
508
508
  if (process.env.NODE_ENV !== 'production') {
509
- const validateError = validate$4(input);
509
+ const validateError = validate$b(input);
510
510
  if (validateError !== null) {
511
511
  throw validateError;
512
512
  }
513
513
  }
514
514
  const key = path.fullPath;
515
515
  const ttlToUse = path.ttl !== undefined ? path.ttl : 2592000000;
516
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize, "UnifiedAnalytics", VERSION, RepresentationType, equals);
516
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$1, "UnifiedAnalytics", VERSION$1, RepresentationType$1, equals$1);
517
517
  return createLink(key);
518
518
  };
519
- function getTypeCacheKeys(rootKeySet, luvio, input, fullPathFactory) {
519
+ function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
520
520
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
521
521
  const rootKey = fullPathFactory();
522
522
  rootKeySet.set(rootKey, {
523
523
  namespace: keyPrefix,
524
- representationName: RepresentationType,
524
+ representationName: RepresentationType$1,
525
525
  mergeable: false
526
526
  });
527
527
  const input_dashboards_length = input.dashboards.length;
528
528
  for (let i = 0; i < input_dashboards_length; i++) {
529
- getTypeCacheKeys$1(rootKeySet, luvio, input.dashboards[i]);
529
+ getTypeCacheKeys$2(rootKeySet, luvio, input.dashboards[i]);
530
530
  }
531
531
  }
532
532
 
533
- function select$2(luvio, params) {
534
- return select$3();
533
+ function select$4(luvio, params) {
534
+ return select$5();
535
535
  }
536
- function keyBuilder$3(luvio, params) {
536
+ function keyBuilder$4(luvio, params) {
537
537
  return keyPrefix + '::DashboardCollectionRepresentation:(' + 'limit:' + params.queryParams.limit + ',' + 'offset:' + params.queryParams.offset + ')';
538
538
  }
539
- function getResponseCacheKeys$2(storeKeyMap, luvio, resourceParams, response) {
540
- getTypeCacheKeys(storeKeyMap, luvio, response, () => keyBuilder$3(luvio, resourceParams));
539
+ function getResponseCacheKeys$3(storeKeyMap, luvio, resourceParams, response) {
540
+ getTypeCacheKeys$1(storeKeyMap, luvio, response, () => keyBuilder$4(luvio, resourceParams));
541
541
  }
542
- function ingestSuccess$2(luvio, resourceParams, response, snapshotRefresh) {
542
+ function ingestSuccess$3(luvio, resourceParams, response, snapshotRefresh) {
543
543
  const { body } = response;
544
- const key = keyBuilder$3(luvio, resourceParams);
545
- luvio.storeIngest(key, ingest, body);
544
+ const key = keyBuilder$4(luvio, resourceParams);
545
+ luvio.storeIngest(key, ingest$1, body);
546
546
  const snapshot = luvio.storeLookup({
547
547
  recordId: key,
548
- node: select$2(),
548
+ node: select$4(),
549
549
  variables: {},
550
550
  }, snapshotRefresh);
551
551
  if (process.env.NODE_ENV !== 'production') {
@@ -557,15 +557,15 @@ function ingestSuccess$2(luvio, resourceParams, response, snapshotRefresh) {
557
557
  return snapshot;
558
558
  }
559
559
  function ingestError$1(luvio, params, error, snapshotRefresh) {
560
- const key = keyBuilder$3(luvio, params);
560
+ const key = keyBuilder$4(luvio, params);
561
561
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
562
562
  luvio.storeIngestError(key, errorSnapshot);
563
563
  return errorSnapshot;
564
564
  }
565
- function createResourceRequest$2(config) {
565
+ function createResourceRequest$3(config) {
566
566
  const headers = {};
567
567
  return {
568
- baseUri: '/services/data/v61.0',
568
+ baseUri: '/services/data/v62.0',
569
569
  basePath: '/unified-analytics/dashboards',
570
570
  method: 'get',
571
571
  body: null,
@@ -576,61 +576,61 @@ function createResourceRequest$2(config) {
576
576
  };
577
577
  }
578
578
 
579
- const adapterName$2 = 'getDashboards';
579
+ const adapterName$3 = 'getDashboards';
580
580
  const getDashboards_ConfigPropertyMetadata = [
581
581
  generateParamConfigMetadata('limit', false, 1 /* QueryParameter */, 3 /* Integer */),
582
582
  generateParamConfigMetadata('offset', false, 1 /* QueryParameter */, 3 /* Integer */),
583
583
  ];
584
- const getDashboards_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, getDashboards_ConfigPropertyMetadata);
585
- const createResourceParams$2 = /*#__PURE__*/ createResourceParams$3(getDashboards_ConfigPropertyMetadata);
586
- function keyBuilder$2(luvio, config) {
587
- const resourceParams = createResourceParams$2(config);
588
- return keyBuilder$3(luvio, resourceParams);
584
+ const getDashboards_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, getDashboards_ConfigPropertyMetadata);
585
+ const createResourceParams$3 = /*#__PURE__*/ createResourceParams$4(getDashboards_ConfigPropertyMetadata);
586
+ function keyBuilder$3(luvio, config) {
587
+ const resourceParams = createResourceParams$3(config);
588
+ return keyBuilder$4(luvio, resourceParams);
589
589
  }
590
- function typeCheckConfig$2(untrustedConfig) {
590
+ function typeCheckConfig$3(untrustedConfig) {
591
591
  const config = {};
592
- typeCheckConfig$3(untrustedConfig, config, getDashboards_ConfigPropertyMetadata);
592
+ typeCheckConfig$4(untrustedConfig, config, getDashboards_ConfigPropertyMetadata);
593
593
  return config;
594
594
  }
595
- function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
595
+ function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
596
596
  if (!untrustedIsObject(untrustedConfig)) {
597
597
  return null;
598
598
  }
599
599
  if (process.env.NODE_ENV !== 'production') {
600
600
  validateConfig(untrustedConfig, configPropertyNames);
601
601
  }
602
- const config = typeCheckConfig$2(untrustedConfig);
602
+ const config = typeCheckConfig$3(untrustedConfig);
603
603
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
604
604
  return null;
605
605
  }
606
606
  return config;
607
607
  }
608
608
  function adapterFragment$1(luvio, config) {
609
- createResourceParams$2(config);
610
- return select$2();
609
+ createResourceParams$3(config);
610
+ return select$4();
611
611
  }
612
612
  function onFetchResponseSuccess$1(luvio, config, resourceParams, response) {
613
- const snapshot = ingestSuccess$2(luvio, resourceParams, response, {
613
+ const snapshot = ingestSuccess$3(luvio, resourceParams, response, {
614
614
  config,
615
- resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
615
+ resolve: () => buildNetworkSnapshot$3(luvio, config, snapshotRefreshOptions)
616
616
  });
617
617
  return luvio.storeBroadcast().then(() => snapshot);
618
618
  }
619
619
  function onFetchResponseError$1(luvio, config, resourceParams, response) {
620
620
  const snapshot = ingestError$1(luvio, resourceParams, response, {
621
621
  config,
622
- resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
622
+ resolve: () => buildNetworkSnapshot$3(luvio, config, snapshotRefreshOptions)
623
623
  });
624
624
  return luvio.storeBroadcast().then(() => snapshot);
625
625
  }
626
- function buildNetworkSnapshot$2(luvio, config, options) {
627
- const resourceParams = createResourceParams$2(config);
628
- const request = createResourceRequest$2(resourceParams);
626
+ function buildNetworkSnapshot$3(luvio, config, options) {
627
+ const resourceParams = createResourceParams$3(config);
628
+ const request = createResourceRequest$3(resourceParams);
629
629
  return luvio.dispatchResourceRequest(request, options)
630
630
  .then((response) => {
631
631
  return luvio.handleSuccessResponse(() => onFetchResponseSuccess$1(luvio, config, resourceParams, response), () => {
632
632
  const cache = new StoreKeyMap();
633
- getResponseCacheKeys$2(cache, luvio, resourceParams, response.body);
633
+ getResponseCacheKeys$3(cache, luvio, resourceParams, response.body);
634
634
  return cache;
635
635
  });
636
636
  }, (response) => {
@@ -638,23 +638,23 @@ function buildNetworkSnapshot$2(luvio, config, options) {
638
638
  });
639
639
  }
640
640
  function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
641
- return buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext, buildNetworkSnapshot$2, undefined, false);
641
+ return buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext, buildNetworkSnapshot$3, undefined, false);
642
642
  }
643
643
  function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
644
644
  const { luvio, config } = context;
645
645
  const selector = {
646
- recordId: keyBuilder$2(luvio, config),
646
+ recordId: keyBuilder$3(luvio, config),
647
647
  node: adapterFragment$1(luvio, config),
648
648
  variables: {},
649
649
  };
650
650
  const cacheSnapshot = storeLookup(selector, {
651
651
  config,
652
- resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
652
+ resolve: () => buildNetworkSnapshot$3(luvio, config, snapshotRefreshOptions)
653
653
  });
654
654
  return cacheSnapshot;
655
655
  }
656
656
  const getDashboardsAdapterFactory = (luvio) => function UnifiedAnalytics__getDashboards(untrustedConfig, requestContext) {
657
- const config = validateAdapterConfig$2(untrustedConfig, getDashboards_ConfigPropertyNames);
657
+ const config = validateAdapterConfig$3(untrustedConfig, getDashboards_ConfigPropertyNames);
658
658
  // Invalid or incomplete config
659
659
  if (config === null) {
660
660
  return null;
@@ -663,7 +663,7 @@ const getDashboardsAdapterFactory = (luvio) => function UnifiedAnalytics__getDas
663
663
  buildCachedSnapshotCachePolicy$1, buildNetworkSnapshotCachePolicy$1);
664
664
  };
665
665
 
666
- function validate$3(obj, path = 'DashboardPageWidgetInputRepresentation') {
666
+ function validate$a(obj, path = 'DashboardPageWidgetInputRepresentation') {
667
667
  const v_error = (() => {
668
668
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
669
669
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -720,7 +720,7 @@ function validate$3(obj, path = 'DashboardPageWidgetInputRepresentation') {
720
720
  return v_error === undefined ? null : v_error;
721
721
  }
722
722
 
723
- function validate$2(obj, path = 'DashboardLayoutPageInputRepresentation') {
723
+ function validate$9(obj, path = 'DashboardLayoutPageInputRepresentation') {
724
724
  const v_error = (() => {
725
725
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
726
726
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -766,7 +766,7 @@ function validate$2(obj, path = 'DashboardLayoutPageInputRepresentation') {
766
766
  for (let i = 0; i < obj_widgets.length; i++) {
767
767
  const obj_widgets_item = obj_widgets[i];
768
768
  const path_widgets_item = path_widgets + '[' + i + ']';
769
- const referencepath_widgets_itemValidationError = validate$3(obj_widgets_item, path_widgets_item);
769
+ const referencepath_widgets_itemValidationError = validate$a(obj_widgets_item, path_widgets_item);
770
770
  if (referencepath_widgets_itemValidationError !== null) {
771
771
  let message = 'Object doesn\'t match DashboardPageWidgetInputRepresentation (at "' + path_widgets_item + '")\n';
772
772
  message += referencepath_widgets_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -777,7 +777,7 @@ function validate$2(obj, path = 'DashboardLayoutPageInputRepresentation') {
777
777
  return v_error === undefined ? null : v_error;
778
778
  }
779
779
 
780
- function validate$1(obj, path = 'DashboardLayoutInputRepresentation') {
780
+ function validate$8(obj, path = 'DashboardLayoutInputRepresentation') {
781
781
  const v_error = (() => {
782
782
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
783
783
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -818,7 +818,7 @@ function validate$1(obj, path = 'DashboardLayoutInputRepresentation') {
818
818
  for (let i = 0; i < obj_pages.length; i++) {
819
819
  const obj_pages_item = obj_pages[i];
820
820
  const path_pages_item = path_pages + '[' + i + ']';
821
- const referencepath_pages_itemValidationError = validate$2(obj_pages_item, path_pages_item);
821
+ const referencepath_pages_itemValidationError = validate$9(obj_pages_item, path_pages_item);
822
822
  if (referencepath_pages_itemValidationError !== null) {
823
823
  let message = 'Object doesn\'t match DashboardLayoutPageInputRepresentation (at "' + path_pages_item + '")\n';
824
824
  message += referencepath_pages_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -829,7 +829,7 @@ function validate$1(obj, path = 'DashboardLayoutInputRepresentation') {
829
829
  return v_error === undefined ? null : v_error;
830
830
  }
831
831
 
832
- function validate(obj, path = 'AnalyticsWidgetInputRepresentation') {
832
+ function validate$7(obj, path = 'AnalyticsWidgetInputRepresentation') {
833
833
  const v_error = (() => {
834
834
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
835
835
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -876,19 +876,19 @@ function validate(obj, path = 'AnalyticsWidgetInputRepresentation') {
876
876
  return v_error === undefined ? null : v_error;
877
877
  }
878
878
 
879
- function select$1(luvio, params) {
880
- return select$4();
879
+ function select$3(luvio, params) {
880
+ return select$6();
881
881
  }
882
- function getResponseCacheKeys$1(storeKeyMap, luvio, resourceParams, response) {
883
- getTypeCacheKeys$1(storeKeyMap, luvio, response);
882
+ function getResponseCacheKeys$2(storeKeyMap, luvio, resourceParams, response) {
883
+ getTypeCacheKeys$2(storeKeyMap, luvio, response);
884
884
  }
885
- function ingestSuccess$1(luvio, resourceParams, response) {
885
+ function ingestSuccess$2(luvio, resourceParams, response) {
886
886
  const { body } = response;
887
- const key = keyBuilderFromType(luvio, body);
888
- luvio.storeIngest(key, ingest$1, body);
887
+ const key = keyBuilderFromType$1(luvio, body);
888
+ luvio.storeIngest(key, ingest$2, body);
889
889
  const snapshot = luvio.storeLookup({
890
890
  recordId: key,
891
- node: select$1(),
891
+ node: select$3(),
892
892
  variables: {},
893
893
  });
894
894
  if (process.env.NODE_ENV !== 'production') {
@@ -899,10 +899,10 @@ function ingestSuccess$1(luvio, resourceParams, response) {
899
899
  deepFreeze(snapshot.data);
900
900
  return snapshot;
901
901
  }
902
- function createResourceRequest$1(config) {
902
+ function createResourceRequest$2(config) {
903
903
  const headers = {};
904
904
  return {
905
- baseUri: '/services/data/v61.0',
905
+ baseUri: '/services/data/v62.0',
906
906
  basePath: '/unified-analytics/dashboards',
907
907
  method: 'post',
908
908
  body: config.body,
@@ -913,7 +913,7 @@ function createResourceRequest$1(config) {
913
913
  };
914
914
  }
915
915
 
916
- const adapterName$1 = 'createDashboard';
916
+ const adapterName$2 = 'createDashboard';
917
917
  const createDashboard_ConfigPropertyMetadata = [
918
918
  generateParamConfigMetadata('description', false, 2 /* Body */, 0 /* String */),
919
919
  generateParamConfigMetadata('id', false, 2 /* Body */, 0 /* String */),
@@ -922,17 +922,17 @@ const createDashboard_ConfigPropertyMetadata = [
922
922
  generateParamConfigMetadata('layouts', true, 2 /* Body */, 4 /* Unsupported */, true),
923
923
  generateParamConfigMetadata('widgets', true, 2 /* Body */, 4 /* Unsupported */),
924
924
  ];
925
- const createDashboard_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, createDashboard_ConfigPropertyMetadata);
926
- const createResourceParams$1 = /*#__PURE__*/ createResourceParams$3(createDashboard_ConfigPropertyMetadata);
927
- function typeCheckConfig$1(untrustedConfig) {
925
+ const createDashboard_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, createDashboard_ConfigPropertyMetadata);
926
+ const createResourceParams$2 = /*#__PURE__*/ createResourceParams$4(createDashboard_ConfigPropertyMetadata);
927
+ function typeCheckConfig$2(untrustedConfig) {
928
928
  const config = {};
929
- typeCheckConfig$3(untrustedConfig, config, createDashboard_ConfigPropertyMetadata);
929
+ typeCheckConfig$4(untrustedConfig, config, createDashboard_ConfigPropertyMetadata);
930
930
  const untrustedConfig_layouts = untrustedConfig.layouts;
931
931
  if (ArrayIsArray$1(untrustedConfig_layouts)) {
932
932
  const untrustedConfig_layouts_array = [];
933
933
  for (let i = 0, arrayLength = untrustedConfig_layouts.length; i < arrayLength; i++) {
934
934
  const untrustedConfig_layouts_item = untrustedConfig_layouts[i];
935
- const referenceDashboardLayoutInputRepresentationValidationError = validate$1(untrustedConfig_layouts_item);
935
+ const referenceDashboardLayoutInputRepresentationValidationError = validate$8(untrustedConfig_layouts_item);
936
936
  if (referenceDashboardLayoutInputRepresentationValidationError === null) {
937
937
  untrustedConfig_layouts_array.push(untrustedConfig_layouts_item);
938
938
  }
@@ -946,7 +946,7 @@ function typeCheckConfig$1(untrustedConfig) {
946
946
  for (let i = 0, arrayLength = untrustedConfig_widgets_keys.length; i < arrayLength; i++) {
947
947
  const key = untrustedConfig_widgets_keys[i];
948
948
  const untrustedConfig_widgets_prop = untrustedConfig_widgets[key];
949
- const referenceAnalyticsWidgetInputRepresentationValidationError = validate(untrustedConfig_widgets_prop);
949
+ const referenceAnalyticsWidgetInputRepresentationValidationError = validate$7(untrustedConfig_widgets_prop);
950
950
  if (referenceAnalyticsWidgetInputRepresentationValidationError === null) {
951
951
  if (untrustedConfig_widgets_object !== undefined) {
952
952
  untrustedConfig_widgets_object[key] = untrustedConfig_widgets_prop;
@@ -959,30 +959,30 @@ function typeCheckConfig$1(untrustedConfig) {
959
959
  }
960
960
  return config;
961
961
  }
962
- function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
962
+ function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
963
963
  if (!untrustedIsObject(untrustedConfig)) {
964
964
  return null;
965
965
  }
966
966
  if (process.env.NODE_ENV !== 'production') {
967
967
  validateConfig(untrustedConfig, configPropertyNames);
968
968
  }
969
- const config = typeCheckConfig$1(untrustedConfig);
969
+ const config = typeCheckConfig$2(untrustedConfig);
970
970
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
971
971
  return null;
972
972
  }
973
973
  return config;
974
974
  }
975
- function buildNetworkSnapshot$1(luvio, config, options) {
976
- const resourceParams = createResourceParams$1(config);
977
- const request = createResourceRequest$1(resourceParams);
975
+ function buildNetworkSnapshot$2(luvio, config, options) {
976
+ const resourceParams = createResourceParams$2(config);
977
+ const request = createResourceRequest$2(resourceParams);
978
978
  return luvio.dispatchResourceRequest(request, options)
979
979
  .then((response) => {
980
980
  return luvio.handleSuccessResponse(() => {
981
- const snapshot = ingestSuccess$1(luvio, resourceParams, response);
981
+ const snapshot = ingestSuccess$2(luvio, resourceParams, response);
982
982
  return luvio.storeBroadcast().then(() => snapshot);
983
983
  }, () => {
984
984
  const cache = new StoreKeyMap();
985
- getResponseCacheKeys$1(cache, luvio, resourceParams, response.body);
985
+ getResponseCacheKeys$2(cache, luvio, resourceParams, response.body);
986
986
  return cache;
987
987
  });
988
988
  }, (response) => {
@@ -992,33 +992,33 @@ function buildNetworkSnapshot$1(luvio, config, options) {
992
992
  }
993
993
  const createDashboardAdapterFactory = (luvio) => {
994
994
  return function createDashboard(untrustedConfig) {
995
- const config = validateAdapterConfig$1(untrustedConfig, createDashboard_ConfigPropertyNames);
995
+ const config = validateAdapterConfig$2(untrustedConfig, createDashboard_ConfigPropertyNames);
996
996
  // Invalid or incomplete config
997
997
  if (config === null) {
998
998
  throw new Error('Invalid config for "createDashboard"');
999
999
  }
1000
- return buildNetworkSnapshot$1(luvio, config);
1000
+ return buildNetworkSnapshot$2(luvio, config);
1001
1001
  };
1002
1002
  };
1003
1003
 
1004
- function select(luvio, params) {
1005
- return select$4();
1004
+ function select$2(luvio, params) {
1005
+ return select$6();
1006
1006
  }
1007
- function keyBuilder$1(luvio, params) {
1008
- return keyBuilder$4(luvio, {
1007
+ function keyBuilder$2(luvio, params) {
1008
+ return keyBuilder$5(luvio, {
1009
1009
  name: params.urlParams.dashboardIdOrApiName
1010
1010
  });
1011
1011
  }
1012
- function getResponseCacheKeys(storeKeyMap, luvio, resourceParams, response) {
1013
- getTypeCacheKeys$1(storeKeyMap, luvio, response);
1012
+ function getResponseCacheKeys$1(storeKeyMap, luvio, resourceParams, response) {
1013
+ getTypeCacheKeys$2(storeKeyMap, luvio, response);
1014
1014
  }
1015
- function ingestSuccess(luvio, resourceParams, response, snapshotRefresh) {
1015
+ function ingestSuccess$1(luvio, resourceParams, response, snapshotRefresh) {
1016
1016
  const { body } = response;
1017
- const key = keyBuilder$1(luvio, resourceParams);
1018
- luvio.storeIngest(key, ingest$1, body);
1017
+ const key = keyBuilder$2(luvio, resourceParams);
1018
+ luvio.storeIngest(key, ingest$2, body);
1019
1019
  const snapshot = luvio.storeLookup({
1020
1020
  recordId: key,
1021
- node: select(),
1021
+ node: select$2(),
1022
1022
  variables: {},
1023
1023
  }, snapshotRefresh);
1024
1024
  if (process.env.NODE_ENV !== 'production') {
@@ -1030,15 +1030,15 @@ function ingestSuccess(luvio, resourceParams, response, snapshotRefresh) {
1030
1030
  return snapshot;
1031
1031
  }
1032
1032
  function ingestError(luvio, params, error, snapshotRefresh) {
1033
- const key = keyBuilder$1(luvio, params);
1033
+ const key = keyBuilder$2(luvio, params);
1034
1034
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
1035
1035
  luvio.storeIngestError(key, errorSnapshot);
1036
1036
  return errorSnapshot;
1037
1037
  }
1038
- function createResourceRequest(config) {
1038
+ function createResourceRequest$1(config) {
1039
1039
  const headers = {};
1040
1040
  return {
1041
- baseUri: '/services/data/v61.0',
1041
+ baseUri: '/services/data/v62.0',
1042
1042
  basePath: '/unified-analytics/dashboards/' + config.urlParams.dashboardIdOrApiName + '',
1043
1043
  method: 'get',
1044
1044
  body: null,
@@ -1049,60 +1049,60 @@ function createResourceRequest(config) {
1049
1049
  };
1050
1050
  }
1051
1051
 
1052
- const adapterName = 'getDashboardByName';
1052
+ const adapterName$1 = 'getDashboardByName';
1053
1053
  const getDashboardByName_ConfigPropertyMetadata = [
1054
1054
  generateParamConfigMetadata('dashboardIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
1055
1055
  ];
1056
- const getDashboardByName_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, getDashboardByName_ConfigPropertyMetadata);
1057
- const createResourceParams = /*#__PURE__*/ createResourceParams$3(getDashboardByName_ConfigPropertyMetadata);
1058
- function keyBuilder(luvio, config) {
1059
- const resourceParams = createResourceParams(config);
1060
- return keyBuilder$1(luvio, resourceParams);
1056
+ const getDashboardByName_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, getDashboardByName_ConfigPropertyMetadata);
1057
+ const createResourceParams$1 = /*#__PURE__*/ createResourceParams$4(getDashboardByName_ConfigPropertyMetadata);
1058
+ function keyBuilder$1(luvio, config) {
1059
+ const resourceParams = createResourceParams$1(config);
1060
+ return keyBuilder$2(luvio, resourceParams);
1061
1061
  }
1062
- function typeCheckConfig(untrustedConfig) {
1062
+ function typeCheckConfig$1(untrustedConfig) {
1063
1063
  const config = {};
1064
- typeCheckConfig$3(untrustedConfig, config, getDashboardByName_ConfigPropertyMetadata);
1064
+ typeCheckConfig$4(untrustedConfig, config, getDashboardByName_ConfigPropertyMetadata);
1065
1065
  return config;
1066
1066
  }
1067
- function validateAdapterConfig(untrustedConfig, configPropertyNames) {
1067
+ function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
1068
1068
  if (!untrustedIsObject(untrustedConfig)) {
1069
1069
  return null;
1070
1070
  }
1071
1071
  if (process.env.NODE_ENV !== 'production') {
1072
1072
  validateConfig(untrustedConfig, configPropertyNames);
1073
1073
  }
1074
- const config = typeCheckConfig(untrustedConfig);
1074
+ const config = typeCheckConfig$1(untrustedConfig);
1075
1075
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
1076
1076
  return null;
1077
1077
  }
1078
1078
  return config;
1079
1079
  }
1080
1080
  function adapterFragment(luvio, config) {
1081
- createResourceParams(config);
1082
- return select();
1081
+ createResourceParams$1(config);
1082
+ return select$2();
1083
1083
  }
1084
1084
  function onFetchResponseSuccess(luvio, config, resourceParams, response) {
1085
- const snapshot = ingestSuccess(luvio, resourceParams, response, {
1085
+ const snapshot = ingestSuccess$1(luvio, resourceParams, response, {
1086
1086
  config,
1087
- resolve: () => buildNetworkSnapshot(luvio, config, snapshotRefreshOptions)
1087
+ resolve: () => buildNetworkSnapshot$1(luvio, config, snapshotRefreshOptions)
1088
1088
  });
1089
1089
  return luvio.storeBroadcast().then(() => snapshot);
1090
1090
  }
1091
1091
  function onFetchResponseError(luvio, config, resourceParams, response) {
1092
1092
  const snapshot = ingestError(luvio, resourceParams, response, {
1093
1093
  config,
1094
- resolve: () => buildNetworkSnapshot(luvio, config, snapshotRefreshOptions)
1094
+ resolve: () => buildNetworkSnapshot$1(luvio, config, snapshotRefreshOptions)
1095
1095
  });
1096
1096
  return luvio.storeBroadcast().then(() => snapshot);
1097
1097
  }
1098
- function buildNetworkSnapshot(luvio, config, options) {
1099
- const resourceParams = createResourceParams(config);
1100
- const request = createResourceRequest(resourceParams);
1098
+ function buildNetworkSnapshot$1(luvio, config, options) {
1099
+ const resourceParams = createResourceParams$1(config);
1100
+ const request = createResourceRequest$1(resourceParams);
1101
1101
  return luvio.dispatchResourceRequest(request, options)
1102
1102
  .then((response) => {
1103
1103
  return luvio.handleSuccessResponse(() => onFetchResponseSuccess(luvio, config, resourceParams, response), () => {
1104
1104
  const cache = new StoreKeyMap();
1105
- getResponseCacheKeys(cache, luvio, resourceParams, response.body);
1105
+ getResponseCacheKeys$1(cache, luvio, resourceParams, response.body);
1106
1106
  return cache;
1107
1107
  });
1108
1108
  }, (response) => {
@@ -1110,23 +1110,23 @@ function buildNetworkSnapshot(luvio, config, options) {
1110
1110
  });
1111
1111
  }
1112
1112
  function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
1113
- return buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext, buildNetworkSnapshot, undefined, false);
1113
+ return buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext, buildNetworkSnapshot$1, undefined, false);
1114
1114
  }
1115
1115
  function buildCachedSnapshotCachePolicy(context, storeLookup) {
1116
1116
  const { luvio, config } = context;
1117
1117
  const selector = {
1118
- recordId: keyBuilder(luvio, config),
1118
+ recordId: keyBuilder$1(luvio, config),
1119
1119
  node: adapterFragment(luvio, config),
1120
1120
  variables: {},
1121
1121
  };
1122
1122
  const cacheSnapshot = storeLookup(selector, {
1123
1123
  config,
1124
- resolve: () => buildNetworkSnapshot(luvio, config, snapshotRefreshOptions)
1124
+ resolve: () => buildNetworkSnapshot$1(luvio, config, snapshotRefreshOptions)
1125
1125
  });
1126
1126
  return cacheSnapshot;
1127
1127
  }
1128
1128
  const getDashboardByNameAdapterFactory = (luvio) => function UnifiedAnalytics__getDashboardByName(untrustedConfig, requestContext) {
1129
- const config = validateAdapterConfig(untrustedConfig, getDashboardByName_ConfigPropertyNames);
1129
+ const config = validateAdapterConfig$1(untrustedConfig, getDashboardByName_ConfigPropertyNames);
1130
1130
  // Invalid or incomplete config
1131
1131
  if (config === null) {
1132
1132
  return null;
@@ -1135,4 +1135,720 @@ const getDashboardByNameAdapterFactory = (luvio) => function UnifiedAnalytics__g
1135
1135
  buildCachedSnapshotCachePolicy, buildNetworkSnapshotCachePolicy);
1136
1136
  };
1137
1137
 
1138
- export { createDashboardAdapterFactory, getDashboardByNameAdapterFactory, getDashboardsAdapterFactory };
1138
+ function validate$6(obj, path = 'LibraryAssetsPreviewInputRepresentation') {
1139
+ const v_error = (() => {
1140
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1141
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
1142
+ }
1143
+ const obj_keys = ObjectKeys(obj);
1144
+ for (let i = 0; i < obj_keys.length; i++) {
1145
+ const key = obj_keys[i];
1146
+ const obj_prop = obj[key];
1147
+ const path_prop = path + '["' + key + '"]';
1148
+ if (obj_prop === undefined) {
1149
+ return new TypeError('Expected "defined" but received "' + typeof obj_prop + '" (at "' + path_prop + '")');
1150
+ }
1151
+ }
1152
+ })();
1153
+ return v_error === undefined ? null : v_error;
1154
+ }
1155
+
1156
+ function validate$5(obj, path = 'TuaUserRepresentation') {
1157
+ const v_error = (() => {
1158
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1159
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
1160
+ }
1161
+ const obj_keys = ObjectKeys(obj);
1162
+ for (let i = 0; i < obj_keys.length; i++) {
1163
+ const key = obj_keys[i];
1164
+ const obj_prop = obj[key];
1165
+ const path_prop = path + '["' + key + '"]';
1166
+ if (obj_prop === undefined) {
1167
+ return new TypeError('Expected "defined" but received "' + typeof obj_prop + '" (at "' + path_prop + '")');
1168
+ }
1169
+ }
1170
+ })();
1171
+ return v_error === undefined ? null : v_error;
1172
+ }
1173
+
1174
+ function validate$4(obj, path = 'TuaAssetTemplateCustomAttributesRepresentation') {
1175
+ const v_error = (() => {
1176
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1177
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
1178
+ }
1179
+ const obj_label = obj.label;
1180
+ const path_label = path + '.label';
1181
+ let obj_label_union0 = null;
1182
+ const obj_label_union0_error = (() => {
1183
+ if (typeof obj_label !== 'string') {
1184
+ return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
1185
+ }
1186
+ })();
1187
+ if (obj_label_union0_error != null) {
1188
+ obj_label_union0 = obj_label_union0_error.message;
1189
+ }
1190
+ let obj_label_union1 = null;
1191
+ const obj_label_union1_error = (() => {
1192
+ if (obj_label !== null) {
1193
+ return new TypeError('Expected "null" but received "' + typeof obj_label + '" (at "' + path_label + '")');
1194
+ }
1195
+ })();
1196
+ if (obj_label_union1_error != null) {
1197
+ obj_label_union1 = obj_label_union1_error.message;
1198
+ }
1199
+ if (obj_label_union0 && obj_label_union1) {
1200
+ let message = 'Object doesn\'t match union (at "' + path_label + '")';
1201
+ message += '\n' + obj_label_union0.split('\n').map((line) => '\t' + line).join('\n');
1202
+ message += '\n' + obj_label_union1.split('\n').map((line) => '\t' + line).join('\n');
1203
+ return new TypeError(message);
1204
+ }
1205
+ const obj_values = obj.values;
1206
+ const path_values = path + '.values';
1207
+ if (!ArrayIsArray(obj_values)) {
1208
+ return new TypeError('Expected "array" but received "' + typeof obj_values + '" (at "' + path_values + '")');
1209
+ }
1210
+ for (let i = 0; i < obj_values.length; i++) {
1211
+ const obj_values_item = obj_values[i];
1212
+ const path_values_item = path_values + '[' + i + ']';
1213
+ let obj_values_item_union0 = null;
1214
+ const obj_values_item_union0_error = (() => {
1215
+ if (typeof obj_values_item !== 'string') {
1216
+ return new TypeError('Expected "string" but received "' + typeof obj_values_item + '" (at "' + path_values_item + '")');
1217
+ }
1218
+ })();
1219
+ if (obj_values_item_union0_error != null) {
1220
+ obj_values_item_union0 = obj_values_item_union0_error.message;
1221
+ }
1222
+ let obj_values_item_union1 = null;
1223
+ const obj_values_item_union1_error = (() => {
1224
+ if (obj_values_item !== null) {
1225
+ return new TypeError('Expected "null" but received "' + typeof obj_values_item + '" (at "' + path_values_item + '")');
1226
+ }
1227
+ })();
1228
+ if (obj_values_item_union1_error != null) {
1229
+ obj_values_item_union1 = obj_values_item_union1_error.message;
1230
+ }
1231
+ if (obj_values_item_union0 && obj_values_item_union1) {
1232
+ let message = 'Object doesn\'t match union (at "' + path_values_item + '")';
1233
+ message += '\n' + obj_values_item_union0.split('\n').map((line) => '\t' + line).join('\n');
1234
+ message += '\n' + obj_values_item_union1.split('\n').map((line) => '\t' + line).join('\n');
1235
+ return new TypeError(message);
1236
+ }
1237
+ }
1238
+ })();
1239
+ return v_error === undefined ? null : v_error;
1240
+ }
1241
+
1242
+ function validate$3(obj, path = 'TuaAssetTemplateIconsRepresentation') {
1243
+ const v_error = (() => {
1244
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1245
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
1246
+ }
1247
+ const obj_keys = ObjectKeys(obj);
1248
+ for (let i = 0; i < obj_keys.length; i++) {
1249
+ const key = obj_keys[i];
1250
+ const obj_prop = obj[key];
1251
+ const path_prop = path + '["' + key + '"]';
1252
+ if (obj_prop === undefined) {
1253
+ return new TypeError('Expected "defined" but received "' + typeof obj_prop + '" (at "' + path_prop + '")');
1254
+ }
1255
+ }
1256
+ })();
1257
+ return v_error === undefined ? null : v_error;
1258
+ }
1259
+
1260
+ function validate$2(obj, path = 'TuaAssetTemplateReleaseRepresentation') {
1261
+ const v_error = (() => {
1262
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1263
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
1264
+ }
1265
+ const obj_notesUrl = obj.notesUrl;
1266
+ const path_notesUrl = path + '.notesUrl';
1267
+ let obj_notesUrl_union0 = null;
1268
+ const obj_notesUrl_union0_error = (() => {
1269
+ if (typeof obj_notesUrl !== 'string') {
1270
+ return new TypeError('Expected "string" but received "' + typeof obj_notesUrl + '" (at "' + path_notesUrl + '")');
1271
+ }
1272
+ })();
1273
+ if (obj_notesUrl_union0_error != null) {
1274
+ obj_notesUrl_union0 = obj_notesUrl_union0_error.message;
1275
+ }
1276
+ let obj_notesUrl_union1 = null;
1277
+ const obj_notesUrl_union1_error = (() => {
1278
+ if (obj_notesUrl !== null) {
1279
+ return new TypeError('Expected "null" but received "' + typeof obj_notesUrl + '" (at "' + path_notesUrl + '")');
1280
+ }
1281
+ })();
1282
+ if (obj_notesUrl_union1_error != null) {
1283
+ obj_notesUrl_union1 = obj_notesUrl_union1_error.message;
1284
+ }
1285
+ if (obj_notesUrl_union0 && obj_notesUrl_union1) {
1286
+ let message = 'Object doesn\'t match union (at "' + path_notesUrl + '")';
1287
+ message += '\n' + obj_notesUrl_union0.split('\n').map((line) => '\t' + line).join('\n');
1288
+ message += '\n' + obj_notesUrl_union1.split('\n').map((line) => '\t' + line).join('\n');
1289
+ return new TypeError(message);
1290
+ }
1291
+ const obj_templateVersion = obj.templateVersion;
1292
+ const path_templateVersion = path + '.templateVersion';
1293
+ let obj_templateVersion_union0 = null;
1294
+ const obj_templateVersion_union0_error = (() => {
1295
+ if (typeof obj_templateVersion !== 'string') {
1296
+ return new TypeError('Expected "string" but received "' + typeof obj_templateVersion + '" (at "' + path_templateVersion + '")');
1297
+ }
1298
+ })();
1299
+ if (obj_templateVersion_union0_error != null) {
1300
+ obj_templateVersion_union0 = obj_templateVersion_union0_error.message;
1301
+ }
1302
+ let obj_templateVersion_union1 = null;
1303
+ const obj_templateVersion_union1_error = (() => {
1304
+ if (obj_templateVersion !== null) {
1305
+ return new TypeError('Expected "null" but received "' + typeof obj_templateVersion + '" (at "' + path_templateVersion + '")');
1306
+ }
1307
+ })();
1308
+ if (obj_templateVersion_union1_error != null) {
1309
+ obj_templateVersion_union1 = obj_templateVersion_union1_error.message;
1310
+ }
1311
+ if (obj_templateVersion_union0 && obj_templateVersion_union1) {
1312
+ let message = 'Object doesn\'t match union (at "' + path_templateVersion + '")';
1313
+ message += '\n' + obj_templateVersion_union0.split('\n').map((line) => '\t' + line).join('\n');
1314
+ message += '\n' + obj_templateVersion_union1.split('\n').map((line) => '\t' + line).join('\n');
1315
+ return new TypeError(message);
1316
+ }
1317
+ })();
1318
+ return v_error === undefined ? null : v_error;
1319
+ }
1320
+
1321
+ function validate$1(obj, path = 'LibraryAssetsPreviewOutputRepresentation') {
1322
+ const v_error = (() => {
1323
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1324
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
1325
+ }
1326
+ const obj_assetIcon = obj.assetIcon;
1327
+ const path_assetIcon = path + '.assetIcon';
1328
+ if (typeof obj_assetIcon !== 'string') {
1329
+ return new TypeError('Expected "string" but received "' + typeof obj_assetIcon + '" (at "' + path_assetIcon + '")');
1330
+ }
1331
+ obj.assetVersion;
1332
+ const obj_configurationUrl = obj.configurationUrl;
1333
+ const path_configurationUrl = path + '.configurationUrl';
1334
+ if (typeof obj_configurationUrl !== 'string') {
1335
+ return new TypeError('Expected "string" but received "' + typeof obj_configurationUrl + '" (at "' + path_configurationUrl + '")');
1336
+ }
1337
+ const obj_createdBy = obj.createdBy;
1338
+ const path_createdBy = path + '.createdBy';
1339
+ let obj_createdBy_union0 = null;
1340
+ const obj_createdBy_union0_error = (() => {
1341
+ const referencepath_createdByValidationError = validate$5(obj_createdBy, path_createdBy);
1342
+ if (referencepath_createdByValidationError !== null) {
1343
+ let message = 'Object doesn\'t match TuaUserRepresentation (at "' + path_createdBy + '")\n';
1344
+ message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1345
+ return new TypeError(message);
1346
+ }
1347
+ })();
1348
+ if (obj_createdBy_union0_error != null) {
1349
+ obj_createdBy_union0 = obj_createdBy_union0_error.message;
1350
+ }
1351
+ let obj_createdBy_union1 = null;
1352
+ const obj_createdBy_union1_error = (() => {
1353
+ if (obj_createdBy !== null) {
1354
+ return new TypeError('Expected "null" but received "' + typeof obj_createdBy + '" (at "' + path_createdBy + '")');
1355
+ }
1356
+ })();
1357
+ if (obj_createdBy_union1_error != null) {
1358
+ obj_createdBy_union1 = obj_createdBy_union1_error.message;
1359
+ }
1360
+ if (obj_createdBy_union0 && obj_createdBy_union1) {
1361
+ let message = 'Object doesn\'t match union (at "' + path_createdBy + '")';
1362
+ message += '\n' + obj_createdBy_union0.split('\n').map((line) => '\t' + line).join('\n');
1363
+ message += '\n' + obj_createdBy_union1.split('\n').map((line) => '\t' + line).join('\n');
1364
+ return new TypeError(message);
1365
+ }
1366
+ const obj_createdDate = obj.createdDate;
1367
+ const path_createdDate = path + '.createdDate';
1368
+ let obj_createdDate_union0 = null;
1369
+ const obj_createdDate_union0_error = (() => {
1370
+ if (typeof obj_createdDate !== 'string') {
1371
+ return new TypeError('Expected "string" but received "' + typeof obj_createdDate + '" (at "' + path_createdDate + '")');
1372
+ }
1373
+ })();
1374
+ if (obj_createdDate_union0_error != null) {
1375
+ obj_createdDate_union0 = obj_createdDate_union0_error.message;
1376
+ }
1377
+ let obj_createdDate_union1 = null;
1378
+ const obj_createdDate_union1_error = (() => {
1379
+ if (obj_createdDate !== null) {
1380
+ return new TypeError('Expected "null" but received "' + typeof obj_createdDate + '" (at "' + path_createdDate + '")');
1381
+ }
1382
+ })();
1383
+ if (obj_createdDate_union1_error != null) {
1384
+ obj_createdDate_union1 = obj_createdDate_union1_error.message;
1385
+ }
1386
+ if (obj_createdDate_union0 && obj_createdDate_union1) {
1387
+ let message = 'Object doesn\'t match union (at "' + path_createdDate + '")';
1388
+ message += '\n' + obj_createdDate_union0.split('\n').map((line) => '\t' + line).join('\n');
1389
+ message += '\n' + obj_createdDate_union1.split('\n').map((line) => '\t' + line).join('\n');
1390
+ return new TypeError(message);
1391
+ }
1392
+ const obj_customAttributes = obj.customAttributes;
1393
+ const path_customAttributes = path + '.customAttributes';
1394
+ if (!ArrayIsArray(obj_customAttributes)) {
1395
+ return new TypeError('Expected "array" but received "' + typeof obj_customAttributes + '" (at "' + path_customAttributes + '")');
1396
+ }
1397
+ for (let i = 0; i < obj_customAttributes.length; i++) {
1398
+ const obj_customAttributes_item = obj_customAttributes[i];
1399
+ const path_customAttributes_item = path_customAttributes + '[' + i + ']';
1400
+ const referencepath_customAttributes_itemValidationError = validate$4(obj_customAttributes_item, path_customAttributes_item);
1401
+ if (referencepath_customAttributes_itemValidationError !== null) {
1402
+ let message = 'Object doesn\'t match TuaAssetTemplateCustomAttributesRepresentation (at "' + path_customAttributes_item + '")\n';
1403
+ message += referencepath_customAttributes_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1404
+ return new TypeError(message);
1405
+ }
1406
+ }
1407
+ const obj_description = obj.description;
1408
+ const path_description = path + '.description';
1409
+ let obj_description_union0 = null;
1410
+ const obj_description_union0_error = (() => {
1411
+ if (typeof obj_description !== 'string') {
1412
+ return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
1413
+ }
1414
+ })();
1415
+ if (obj_description_union0_error != null) {
1416
+ obj_description_union0 = obj_description_union0_error.message;
1417
+ }
1418
+ let obj_description_union1 = null;
1419
+ const obj_description_union1_error = (() => {
1420
+ if (obj_description !== null) {
1421
+ return new TypeError('Expected "null" but received "' + typeof obj_description + '" (at "' + path_description + '")');
1422
+ }
1423
+ })();
1424
+ if (obj_description_union1_error != null) {
1425
+ obj_description_union1 = obj_description_union1_error.message;
1426
+ }
1427
+ if (obj_description_union0 && obj_description_union1) {
1428
+ let message = 'Object doesn\'t match union (at "' + path_description + '")';
1429
+ message += '\n' + obj_description_union0.split('\n').map((line) => '\t' + line).join('\n');
1430
+ message += '\n' + obj_description_union1.split('\n').map((line) => '\t' + line).join('\n');
1431
+ return new TypeError(message);
1432
+ }
1433
+ const obj_icons = obj.icons;
1434
+ const path_icons = path + '.icons';
1435
+ const referencepath_iconsValidationError = validate$3(obj_icons, path_icons);
1436
+ if (referencepath_iconsValidationError !== null) {
1437
+ let message = 'Object doesn\'t match TuaAssetTemplateIconsRepresentation (at "' + path_icons + '")\n';
1438
+ message += referencepath_iconsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1439
+ return new TypeError(message);
1440
+ }
1441
+ const obj_id = obj.id;
1442
+ const path_id = path + '.id';
1443
+ if (typeof obj_id !== 'string') {
1444
+ return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
1445
+ }
1446
+ const obj_label = obj.label;
1447
+ const path_label = path + '.label';
1448
+ if (typeof obj_label !== 'string') {
1449
+ return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
1450
+ }
1451
+ const obj_lastModifiedBy = obj.lastModifiedBy;
1452
+ const path_lastModifiedBy = path + '.lastModifiedBy';
1453
+ let obj_lastModifiedBy_union0 = null;
1454
+ const obj_lastModifiedBy_union0_error = (() => {
1455
+ const referencepath_lastModifiedByValidationError = validate$5(obj_lastModifiedBy, path_lastModifiedBy);
1456
+ if (referencepath_lastModifiedByValidationError !== null) {
1457
+ let message = 'Object doesn\'t match TuaUserRepresentation (at "' + path_lastModifiedBy + '")\n';
1458
+ message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1459
+ return new TypeError(message);
1460
+ }
1461
+ })();
1462
+ if (obj_lastModifiedBy_union0_error != null) {
1463
+ obj_lastModifiedBy_union0 = obj_lastModifiedBy_union0_error.message;
1464
+ }
1465
+ let obj_lastModifiedBy_union1 = null;
1466
+ const obj_lastModifiedBy_union1_error = (() => {
1467
+ if (obj_lastModifiedBy !== null) {
1468
+ return new TypeError('Expected "null" but received "' + typeof obj_lastModifiedBy + '" (at "' + path_lastModifiedBy + '")');
1469
+ }
1470
+ })();
1471
+ if (obj_lastModifiedBy_union1_error != null) {
1472
+ obj_lastModifiedBy_union1 = obj_lastModifiedBy_union1_error.message;
1473
+ }
1474
+ if (obj_lastModifiedBy_union0 && obj_lastModifiedBy_union1) {
1475
+ let message = 'Object doesn\'t match union (at "' + path_lastModifiedBy + '")';
1476
+ message += '\n' + obj_lastModifiedBy_union0.split('\n').map((line) => '\t' + line).join('\n');
1477
+ message += '\n' + obj_lastModifiedBy_union1.split('\n').map((line) => '\t' + line).join('\n');
1478
+ return new TypeError(message);
1479
+ }
1480
+ const obj_lastModifiedDate = obj.lastModifiedDate;
1481
+ const path_lastModifiedDate = path + '.lastModifiedDate';
1482
+ let obj_lastModifiedDate_union0 = null;
1483
+ const obj_lastModifiedDate_union0_error = (() => {
1484
+ if (typeof obj_lastModifiedDate !== 'string') {
1485
+ return new TypeError('Expected "string" but received "' + typeof obj_lastModifiedDate + '" (at "' + path_lastModifiedDate + '")');
1486
+ }
1487
+ })();
1488
+ if (obj_lastModifiedDate_union0_error != null) {
1489
+ obj_lastModifiedDate_union0 = obj_lastModifiedDate_union0_error.message;
1490
+ }
1491
+ let obj_lastModifiedDate_union1 = null;
1492
+ const obj_lastModifiedDate_union1_error = (() => {
1493
+ if (obj_lastModifiedDate !== null) {
1494
+ return new TypeError('Expected "null" but received "' + typeof obj_lastModifiedDate + '" (at "' + path_lastModifiedDate + '")');
1495
+ }
1496
+ })();
1497
+ if (obj_lastModifiedDate_union1_error != null) {
1498
+ obj_lastModifiedDate_union1 = obj_lastModifiedDate_union1_error.message;
1499
+ }
1500
+ if (obj_lastModifiedDate_union0 && obj_lastModifiedDate_union1) {
1501
+ let message = 'Object doesn\'t match union (at "' + path_lastModifiedDate + '")';
1502
+ message += '\n' + obj_lastModifiedDate_union0.split('\n').map((line) => '\t' + line).join('\n');
1503
+ message += '\n' + obj_lastModifiedDate_union1.split('\n').map((line) => '\t' + line).join('\n');
1504
+ return new TypeError(message);
1505
+ }
1506
+ const obj_name = obj.name;
1507
+ const path_name = path + '.name';
1508
+ let obj_name_union0 = null;
1509
+ const obj_name_union0_error = (() => {
1510
+ if (typeof obj_name !== 'string') {
1511
+ return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
1512
+ }
1513
+ })();
1514
+ if (obj_name_union0_error != null) {
1515
+ obj_name_union0 = obj_name_union0_error.message;
1516
+ }
1517
+ let obj_name_union1 = null;
1518
+ const obj_name_union1_error = (() => {
1519
+ if (obj_name !== null) {
1520
+ return new TypeError('Expected "null" but received "' + typeof obj_name + '" (at "' + path_name + '")');
1521
+ }
1522
+ })();
1523
+ if (obj_name_union1_error != null) {
1524
+ obj_name_union1 = obj_name_union1_error.message;
1525
+ }
1526
+ if (obj_name_union0 && obj_name_union1) {
1527
+ let message = 'Object doesn\'t match union (at "' + path_name + '")';
1528
+ message += '\n' + obj_name_union0.split('\n').map((line) => '\t' + line).join('\n');
1529
+ message += '\n' + obj_name_union1.split('\n').map((line) => '\t' + line).join('\n');
1530
+ return new TypeError(message);
1531
+ }
1532
+ const obj_namespace = obj.namespace;
1533
+ const path_namespace = path + '.namespace';
1534
+ let obj_namespace_union0 = null;
1535
+ const obj_namespace_union0_error = (() => {
1536
+ if (typeof obj_namespace !== 'string') {
1537
+ return new TypeError('Expected "string" but received "' + typeof obj_namespace + '" (at "' + path_namespace + '")');
1538
+ }
1539
+ })();
1540
+ if (obj_namespace_union0_error != null) {
1541
+ obj_namespace_union0 = obj_namespace_union0_error.message;
1542
+ }
1543
+ let obj_namespace_union1 = null;
1544
+ const obj_namespace_union1_error = (() => {
1545
+ if (obj_namespace !== null) {
1546
+ return new TypeError('Expected "null" but received "' + typeof obj_namespace + '" (at "' + path_namespace + '")');
1547
+ }
1548
+ })();
1549
+ if (obj_namespace_union1_error != null) {
1550
+ obj_namespace_union1 = obj_namespace_union1_error.message;
1551
+ }
1552
+ if (obj_namespace_union0 && obj_namespace_union1) {
1553
+ let message = 'Object doesn\'t match union (at "' + path_namespace + '")';
1554
+ message += '\n' + obj_namespace_union0.split('\n').map((line) => '\t' + line).join('\n');
1555
+ message += '\n' + obj_namespace_union1.split('\n').map((line) => '\t' + line).join('\n');
1556
+ return new TypeError(message);
1557
+ }
1558
+ const obj_releaseInfo = obj.releaseInfo;
1559
+ const path_releaseInfo = path + '.releaseInfo';
1560
+ const referencepath_releaseInfoValidationError = validate$2(obj_releaseInfo, path_releaseInfo);
1561
+ if (referencepath_releaseInfoValidationError !== null) {
1562
+ let message = 'Object doesn\'t match TuaAssetTemplateReleaseRepresentation (at "' + path_releaseInfo + '")\n';
1563
+ message += referencepath_releaseInfoValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1564
+ return new TypeError(message);
1565
+ }
1566
+ const obj_tags = obj.tags;
1567
+ const path_tags = path + '.tags';
1568
+ if (!ArrayIsArray(obj_tags)) {
1569
+ return new TypeError('Expected "array" but received "' + typeof obj_tags + '" (at "' + path_tags + '")');
1570
+ }
1571
+ for (let i = 0; i < obj_tags.length; i++) {
1572
+ const obj_tags_item = obj_tags[i];
1573
+ const path_tags_item = path_tags + '[' + i + ']';
1574
+ let obj_tags_item_union0 = null;
1575
+ const obj_tags_item_union0_error = (() => {
1576
+ if (typeof obj_tags_item !== 'string') {
1577
+ return new TypeError('Expected "string" but received "' + typeof obj_tags_item + '" (at "' + path_tags_item + '")');
1578
+ }
1579
+ })();
1580
+ if (obj_tags_item_union0_error != null) {
1581
+ obj_tags_item_union0 = obj_tags_item_union0_error.message;
1582
+ }
1583
+ let obj_tags_item_union1 = null;
1584
+ const obj_tags_item_union1_error = (() => {
1585
+ if (obj_tags_item !== null) {
1586
+ return new TypeError('Expected "null" but received "' + typeof obj_tags_item + '" (at "' + path_tags_item + '")');
1587
+ }
1588
+ })();
1589
+ if (obj_tags_item_union1_error != null) {
1590
+ obj_tags_item_union1 = obj_tags_item_union1_error.message;
1591
+ }
1592
+ if (obj_tags_item_union0 && obj_tags_item_union1) {
1593
+ let message = 'Object doesn\'t match union (at "' + path_tags_item + '")';
1594
+ message += '\n' + obj_tags_item_union0.split('\n').map((line) => '\t' + line).join('\n');
1595
+ message += '\n' + obj_tags_item_union1.split('\n').map((line) => '\t' + line).join('\n');
1596
+ return new TypeError(message);
1597
+ }
1598
+ }
1599
+ const obj_templateIcon = obj.templateIcon;
1600
+ const path_templateIcon = path + '.templateIcon';
1601
+ let obj_templateIcon_union0 = null;
1602
+ const obj_templateIcon_union0_error = (() => {
1603
+ if (typeof obj_templateIcon !== 'string') {
1604
+ return new TypeError('Expected "string" but received "' + typeof obj_templateIcon + '" (at "' + path_templateIcon + '")');
1605
+ }
1606
+ })();
1607
+ if (obj_templateIcon_union0_error != null) {
1608
+ obj_templateIcon_union0 = obj_templateIcon_union0_error.message;
1609
+ }
1610
+ let obj_templateIcon_union1 = null;
1611
+ const obj_templateIcon_union1_error = (() => {
1612
+ if (obj_templateIcon !== null) {
1613
+ return new TypeError('Expected "null" but received "' + typeof obj_templateIcon + '" (at "' + path_templateIcon + '")');
1614
+ }
1615
+ })();
1616
+ if (obj_templateIcon_union1_error != null) {
1617
+ obj_templateIcon_union1 = obj_templateIcon_union1_error.message;
1618
+ }
1619
+ if (obj_templateIcon_union0 && obj_templateIcon_union1) {
1620
+ let message = 'Object doesn\'t match union (at "' + path_templateIcon + '")';
1621
+ message += '\n' + obj_templateIcon_union0.split('\n').map((line) => '\t' + line).join('\n');
1622
+ message += '\n' + obj_templateIcon_union1.split('\n').map((line) => '\t' + line).join('\n');
1623
+ return new TypeError(message);
1624
+ }
1625
+ const obj_templateType = obj.templateType;
1626
+ const path_templateType = path + '.templateType';
1627
+ let obj_templateType_union0 = null;
1628
+ const obj_templateType_union0_error = (() => {
1629
+ if (typeof obj_templateType !== 'string') {
1630
+ return new TypeError('Expected "string" but received "' + typeof obj_templateType + '" (at "' + path_templateType + '")');
1631
+ }
1632
+ })();
1633
+ if (obj_templateType_union0_error != null) {
1634
+ obj_templateType_union0 = obj_templateType_union0_error.message;
1635
+ }
1636
+ let obj_templateType_union1 = null;
1637
+ const obj_templateType_union1_error = (() => {
1638
+ if (obj_templateType !== null) {
1639
+ return new TypeError('Expected "null" but received "' + typeof obj_templateType + '" (at "' + path_templateType + '")');
1640
+ }
1641
+ })();
1642
+ if (obj_templateType_union1_error != null) {
1643
+ obj_templateType_union1 = obj_templateType_union1_error.message;
1644
+ }
1645
+ if (obj_templateType_union0 && obj_templateType_union1) {
1646
+ let message = 'Object doesn\'t match union (at "' + path_templateType + '")';
1647
+ message += '\n' + obj_templateType_union0.split('\n').map((line) => '\t' + line).join('\n');
1648
+ message += '\n' + obj_templateType_union1.split('\n').map((line) => '\t' + line).join('\n');
1649
+ return new TypeError(message);
1650
+ }
1651
+ const obj_url = obj.url;
1652
+ const path_url = path + '.url';
1653
+ let obj_url_union0 = null;
1654
+ const obj_url_union0_error = (() => {
1655
+ if (typeof obj_url !== 'string') {
1656
+ return new TypeError('Expected "string" but received "' + typeof obj_url + '" (at "' + path_url + '")');
1657
+ }
1658
+ })();
1659
+ if (obj_url_union0_error != null) {
1660
+ obj_url_union0 = obj_url_union0_error.message;
1661
+ }
1662
+ let obj_url_union1 = null;
1663
+ const obj_url_union1_error = (() => {
1664
+ if (obj_url !== null) {
1665
+ return new TypeError('Expected "null" but received "' + typeof obj_url + '" (at "' + path_url + '")');
1666
+ }
1667
+ })();
1668
+ if (obj_url_union1_error != null) {
1669
+ obj_url_union1 = obj_url_union1_error.message;
1670
+ }
1671
+ if (obj_url_union0 && obj_url_union1) {
1672
+ let message = 'Object doesn\'t match union (at "' + path_url + '")';
1673
+ message += '\n' + obj_url_union0.split('\n').map((line) => '\t' + line).join('\n');
1674
+ message += '\n' + obj_url_union1.split('\n').map((line) => '\t' + line).join('\n');
1675
+ return new TypeError(message);
1676
+ }
1677
+ })();
1678
+ return v_error === undefined ? null : v_error;
1679
+ }
1680
+
1681
+ const TTL = 500;
1682
+ const VERSION = "72309d9f2b288fd243257c47590de9c1";
1683
+ function validate(obj, path = 'LibraryAssetsPreviewOutputCollectionRepresentation') {
1684
+ const v_error = (() => {
1685
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1686
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
1687
+ }
1688
+ const obj_analyticsLibraryAssetPreviewRepresentationList = obj.analyticsLibraryAssetPreviewRepresentationList;
1689
+ const path_analyticsLibraryAssetPreviewRepresentationList = path + '.analyticsLibraryAssetPreviewRepresentationList';
1690
+ if (!ArrayIsArray(obj_analyticsLibraryAssetPreviewRepresentationList)) {
1691
+ return new TypeError('Expected "array" but received "' + typeof obj_analyticsLibraryAssetPreviewRepresentationList + '" (at "' + path_analyticsLibraryAssetPreviewRepresentationList + '")');
1692
+ }
1693
+ for (let i = 0; i < obj_analyticsLibraryAssetPreviewRepresentationList.length; i++) {
1694
+ const obj_analyticsLibraryAssetPreviewRepresentationList_item = obj_analyticsLibraryAssetPreviewRepresentationList[i];
1695
+ const path_analyticsLibraryAssetPreviewRepresentationList_item = path_analyticsLibraryAssetPreviewRepresentationList + '[' + i + ']';
1696
+ const referencepath_analyticsLibraryAssetPreviewRepresentationList_itemValidationError = validate$1(obj_analyticsLibraryAssetPreviewRepresentationList_item, path_analyticsLibraryAssetPreviewRepresentationList_item);
1697
+ if (referencepath_analyticsLibraryAssetPreviewRepresentationList_itemValidationError !== null) {
1698
+ let message = 'Object doesn\'t match LibraryAssetsPreviewOutputRepresentation (at "' + path_analyticsLibraryAssetPreviewRepresentationList_item + '")\n';
1699
+ message += referencepath_analyticsLibraryAssetPreviewRepresentationList_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1700
+ return new TypeError(message);
1701
+ }
1702
+ }
1703
+ const obj_id = obj.id;
1704
+ const path_id = path + '.id';
1705
+ if (typeof obj_id !== 'string') {
1706
+ return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
1707
+ }
1708
+ })();
1709
+ return v_error === undefined ? null : v_error;
1710
+ }
1711
+ const RepresentationType = 'LibraryAssetsPreviewOutputCollectionRepresentation';
1712
+ function keyBuilder(luvio, config) {
1713
+ return keyPrefix + '::' + RepresentationType + ':' + config.id;
1714
+ }
1715
+ function keyBuilderFromType(luvio, object) {
1716
+ const keyParams = {
1717
+ id: object.id
1718
+ };
1719
+ return keyBuilder(luvio, keyParams);
1720
+ }
1721
+ function normalize(input, existing, path, luvio, store, timestamp) {
1722
+ return input;
1723
+ }
1724
+ const select$1 = function LibraryAssetsPreviewOutputCollectionRepresentationSelect() {
1725
+ return {
1726
+ kind: 'Fragment',
1727
+ version: VERSION,
1728
+ private: [],
1729
+ opaque: true
1730
+ };
1731
+ };
1732
+ function equals(existing, incoming) {
1733
+ if (JSONStringify(incoming) !== JSONStringify(existing)) {
1734
+ return false;
1735
+ }
1736
+ return true;
1737
+ }
1738
+ const ingest = function LibraryAssetsPreviewOutputCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
1739
+ if (process.env.NODE_ENV !== 'production') {
1740
+ const validateError = validate(input);
1741
+ if (validateError !== null) {
1742
+ throw validateError;
1743
+ }
1744
+ }
1745
+ const key = keyBuilderFromType(luvio, input);
1746
+ const ttlToUse = TTL;
1747
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize, "UnifiedAnalytics", VERSION, RepresentationType, equals);
1748
+ return createLink(key);
1749
+ };
1750
+ function getTypeCacheKeys(rootKeySet, luvio, input, fullPathFactory) {
1751
+ // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
1752
+ const rootKey = keyBuilderFromType(luvio, input);
1753
+ rootKeySet.set(rootKey, {
1754
+ namespace: keyPrefix,
1755
+ representationName: RepresentationType,
1756
+ mergeable: false
1757
+ });
1758
+ }
1759
+
1760
+ function select(luvio, params) {
1761
+ return select$1();
1762
+ }
1763
+ function getResponseCacheKeys(storeKeyMap, luvio, resourceParams, response) {
1764
+ getTypeCacheKeys(storeKeyMap, luvio, response);
1765
+ }
1766
+ function ingestSuccess(luvio, resourceParams, response) {
1767
+ const { body } = response;
1768
+ const key = keyBuilderFromType(luvio, body);
1769
+ luvio.storeIngest(key, ingest, body);
1770
+ const snapshot = luvio.storeLookup({
1771
+ recordId: key,
1772
+ node: select(),
1773
+ variables: {},
1774
+ });
1775
+ if (process.env.NODE_ENV !== 'production') {
1776
+ if (snapshot.state !== 'Fulfilled') {
1777
+ throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
1778
+ }
1779
+ }
1780
+ deepFreeze(snapshot.data);
1781
+ return snapshot;
1782
+ }
1783
+ function createResourceRequest(config) {
1784
+ const headers = {};
1785
+ return {
1786
+ baseUri: '/services/data/v62.0',
1787
+ basePath: '/tua-analytics/assets/query',
1788
+ method: 'post',
1789
+ body: config.body,
1790
+ urlParams: {},
1791
+ queryParams: {},
1792
+ headers,
1793
+ priority: 'normal',
1794
+ };
1795
+ }
1796
+
1797
+ const adapterName = 'getListViewAnalyticsLibrary';
1798
+ const getListViewAnalyticsLibrary_ConfigPropertyMetadata = [
1799
+ generateParamConfigMetadata('input_collection', true, 2 /* Body */, 4 /* Unsupported */),
1800
+ ];
1801
+ const getListViewAnalyticsLibrary_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, getListViewAnalyticsLibrary_ConfigPropertyMetadata);
1802
+ const createResourceParams = /*#__PURE__*/ createResourceParams$4(getListViewAnalyticsLibrary_ConfigPropertyMetadata);
1803
+ function typeCheckConfig(untrustedConfig) {
1804
+ const config = {};
1805
+ const untrustedConfig_input_collection = untrustedConfig.input_collection;
1806
+ const referenceLibraryAssetsPreviewInputRepresentationValidationError = validate$6(untrustedConfig_input_collection);
1807
+ if (referenceLibraryAssetsPreviewInputRepresentationValidationError === null) {
1808
+ config.input_collection = untrustedConfig_input_collection;
1809
+ }
1810
+ return config;
1811
+ }
1812
+ function validateAdapterConfig(untrustedConfig, configPropertyNames) {
1813
+ if (!untrustedIsObject(untrustedConfig)) {
1814
+ return null;
1815
+ }
1816
+ if (process.env.NODE_ENV !== 'production') {
1817
+ validateConfig(untrustedConfig, configPropertyNames);
1818
+ }
1819
+ const config = typeCheckConfig(untrustedConfig);
1820
+ if (!areRequiredParametersPresent(config, configPropertyNames)) {
1821
+ return null;
1822
+ }
1823
+ return config;
1824
+ }
1825
+ function buildNetworkSnapshot(luvio, config, options) {
1826
+ const resourceParams = createResourceParams(config);
1827
+ const request = createResourceRequest(resourceParams);
1828
+ return luvio.dispatchResourceRequest(request, options)
1829
+ .then((response) => {
1830
+ return luvio.handleSuccessResponse(() => {
1831
+ const snapshot = ingestSuccess(luvio, resourceParams, response);
1832
+ return luvio.storeBroadcast().then(() => snapshot);
1833
+ }, () => {
1834
+ const cache = new StoreKeyMap();
1835
+ getResponseCacheKeys(cache, luvio, resourceParams, response.body);
1836
+ return cache;
1837
+ });
1838
+ }, (response) => {
1839
+ deepFreeze(response);
1840
+ throw response;
1841
+ });
1842
+ }
1843
+ const getListViewAnalyticsLibraryAdapterFactory = (luvio) => {
1844
+ return function getListViewAnalyticsLibrary(untrustedConfig) {
1845
+ const config = validateAdapterConfig(untrustedConfig, getListViewAnalyticsLibrary_ConfigPropertyNames);
1846
+ // Invalid or incomplete config
1847
+ if (config === null) {
1848
+ throw new Error('Invalid config for "getListViewAnalyticsLibrary"');
1849
+ }
1850
+ return buildNetworkSnapshot(luvio, config);
1851
+ };
1852
+ };
1853
+
1854
+ export { createDashboardAdapterFactory, getDashboardByNameAdapterFactory, getDashboardsAdapterFactory, getListViewAnalyticsLibraryAdapterFactory };