@salesforce/lds-adapters-analytics-unifiedanalytics 1.297.0 → 1.298.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 (36) hide show
  1. package/dist/es/es2018/analytics-unifiedanalytics.js +1030 -1146
  2. package/dist/es/es2018/types/src/generated/adapters/createWorkspaceAsset.d.ts +18 -0
  3. package/dist/es/es2018/types/src/generated/adapters/deleteWorkspace.d.ts +14 -0
  4. package/dist/es/es2018/types/src/generated/adapters/deleteWorkspaceAsset.d.ts +15 -0
  5. package/dist/es/es2018/types/src/generated/adapters/getWorkspaceByIdOrName.d.ts +28 -0
  6. package/dist/es/es2018/types/src/generated/adapters/updateWorkspace.d.ts +19 -0
  7. package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +5 -1
  8. package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +8 -2
  9. package/dist/es/es2018/types/src/generated/resources/deleteUnifiedAnalyticsWorkspacesAssetsByAssetIdAndWorkspaceIdOrApiName.d.ts +13 -0
  10. package/dist/es/es2018/types/src/generated/resources/deleteUnifiedAnalyticsWorkspacesByWorkspaceIdOrApiName.d.ts +12 -0
  11. package/dist/es/es2018/types/src/generated/resources/getUnifiedAnalyticsWorkspacesAssetsByAssetIdAndWorkspaceIdOrApiName.d.ts +16 -0
  12. package/dist/es/es2018/types/src/generated/resources/getUnifiedAnalyticsWorkspacesAssetsByWorkspaceIdOrApiName.d.ts +20 -0
  13. package/dist/es/es2018/types/src/generated/resources/getUnifiedAnalyticsWorkspacesByWorkspaceIdOrApiName.d.ts +1 -0
  14. package/dist/es/es2018/types/src/generated/resources/patchUnifiedAnalyticsWorkspacesByWorkspaceIdOrApiName.d.ts +18 -0
  15. package/dist/es/es2018/types/src/generated/resources/postUnifiedAnalyticsWorkspacesAssetsByWorkspaceIdOrApiName.d.ts +17 -0
  16. package/dist/es/es2018/types/src/generated/types/WorkspaceAssetCollectionRepresentation.d.ts +38 -0
  17. package/dist/es/es2018/types/src/generated/types/WorkspaceAssetInputRepresentation.d.ts +34 -0
  18. package/dist/es/es2018/types/src/generated/types/WorkspaceAssetRepresentation.d.ts +53 -0
  19. package/dist/es/es2018/types/src/generated/types/WorkspaceRepresentation.d.ts +12 -3
  20. package/package.json +3 -3
  21. package/sfdc/index.js +1148 -1205
  22. package/src/raml/api.raml +153 -200
  23. package/src/raml/luvio.raml +32 -6
  24. package/dist/es/es2018/types/src/generated/adapters/getListViewAnalyticsLibrary.d.ts +0 -16
  25. package/dist/es/es2018/types/src/generated/resources/postTuaAnalyticsAssetsQuery.d.ts +0 -13
  26. package/dist/es/es2018/types/src/generated/types/LibraryAssetsPreviewInputRepresentation.d.ts +0 -27
  27. package/dist/es/es2018/types/src/generated/types/LibraryAssetsPreviewInputWrapperRepresentation.d.ts +0 -28
  28. package/dist/es/es2018/types/src/generated/types/LibraryAssetsPreviewOutputCollectionRepresentation.d.ts +0 -41
  29. package/dist/es/es2018/types/src/generated/types/LibraryAssetsPreviewOutputRepresentation.d.ts +0 -84
  30. package/dist/es/es2018/types/src/generated/types/TuaAssetReferenceRepresentation.d.ts +0 -26
  31. package/dist/es/es2018/types/src/generated/types/TuaAssetTemplateCustomAttributesRepresentation.d.ts +0 -31
  32. package/dist/es/es2018/types/src/generated/types/TuaAssetTemplateIconsRepresentation.d.ts +0 -27
  33. package/dist/es/es2018/types/src/generated/types/TuaAssetTemplateReleaseRepresentation.d.ts +0 -31
  34. package/dist/es/es2018/types/src/generated/types/TuaBaseAssetReferenceRepresentation.d.ts +0 -40
  35. package/dist/es/es2018/types/src/generated/types/TuaImageAssetReferenceRepresentation.d.ts +0 -29
  36. package/dist/es/es2018/types/src/generated/types/TuaUserRepresentation.d.ts +0 -27
@@ -4,7 +4,7 @@
4
4
  * For full license text, see the LICENSE.txt file
5
5
  */
6
6
 
7
- import { serializeStructuredKey, ingestShape, deepFreeze, StoreKeyMap, createResourceParams as createResourceParams$f, typeCheckConfig as typeCheckConfig$f, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$6 } from '@luvio/engine';
7
+ import { serializeStructuredKey, ingestShape, deepFreeze, StoreKeyMap, createResourceParams as createResourceParams$j, typeCheckConfig as typeCheckConfig$j, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$7 } 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$k(obj, path = 'BaseAnalyticsRepresentation') {
96
+ function validate$e(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$k(obj, path = 'BaseAnalyticsRepresentation') {
128
128
  return v_error === undefined ? null : v_error;
129
129
  }
130
130
 
131
- function validate$j(obj, path = 'AnalyticsUserRepresentation') {
132
- const validateBaseAnalyticsRepresentation_validateError = validate$k(obj, path);
131
+ function validate$d(obj, path = 'AnalyticsUserRepresentation') {
132
+ const validateBaseAnalyticsRepresentation_validateError = validate$e(obj, path);
133
133
  if (validateBaseAnalyticsRepresentation_validateError !== null) {
134
134
  return validateBaseAnalyticsRepresentation_validateError;
135
135
  }
@@ -169,8 +169,8 @@ function validate$j(obj, path = 'AnalyticsUserRepresentation') {
169
169
  return v_error === undefined ? null : v_error;
170
170
  }
171
171
 
172
- function validate$i(obj, path = 'AnalyticsAssetsQueryResultsWorkspaceRepresentation') {
173
- const validateBaseAnalyticsRepresentation_validateError = validate$k(obj, path);
172
+ function validate$c(obj, path = 'AnalyticsAssetsQueryResultsWorkspaceRepresentation') {
173
+ const validateBaseAnalyticsRepresentation_validateError = validate$e(obj, path);
174
174
  if (validateBaseAnalyticsRepresentation_validateError !== null) {
175
175
  return validateBaseAnalyticsRepresentation_validateError;
176
176
  }
@@ -182,8 +182,8 @@ function validate$i(obj, path = 'AnalyticsAssetsQueryResultsWorkspaceRepresentat
182
182
  return v_error === undefined ? null : v_error;
183
183
  }
184
184
 
185
- function validate$h(obj, path = 'AnalyticsAssetsQueryResultsItemRepresentation') {
186
- const validateBaseAnalyticsRepresentation_validateError = validate$k(obj, path);
185
+ function validate$b(obj, path = 'AnalyticsAssetsQueryResultsItemRepresentation') {
186
+ const validateBaseAnalyticsRepresentation_validateError = validate$e(obj, path);
187
187
  if (validateBaseAnalyticsRepresentation_validateError !== null) {
188
188
  return validateBaseAnalyticsRepresentation_validateError;
189
189
  }
@@ -198,7 +198,7 @@ function validate$h(obj, path = 'AnalyticsAssetsQueryResultsItemRepresentation')
198
198
  }
199
199
  const obj_createdBy = obj.createdBy;
200
200
  const path_createdBy = path + '.createdBy';
201
- const referencepath_createdByValidationError = validate$j(obj_createdBy, path_createdBy);
201
+ const referencepath_createdByValidationError = validate$d(obj_createdBy, path_createdBy);
202
202
  if (referencepath_createdByValidationError !== null) {
203
203
  let message = 'Object doesn\'t match AnalyticsUserRepresentation (at "' + path_createdBy + '")\n';
204
204
  message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -211,7 +211,7 @@ function validate$h(obj, path = 'AnalyticsAssetsQueryResultsItemRepresentation')
211
211
  }
212
212
  const obj_lastModifiedBy = obj.lastModifiedBy;
213
213
  const path_lastModifiedBy = path + '.lastModifiedBy';
214
- const referencepath_lastModifiedByValidationError = validate$j(obj_lastModifiedBy, path_lastModifiedBy);
214
+ const referencepath_lastModifiedByValidationError = validate$d(obj_lastModifiedBy, path_lastModifiedBy);
215
215
  if (referencepath_lastModifiedByValidationError !== null) {
216
216
  let message = 'Object doesn\'t match AnalyticsUserRepresentation (at "' + path_lastModifiedBy + '")\n';
217
217
  message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -224,7 +224,7 @@ function validate$h(obj, path = 'AnalyticsAssetsQueryResultsItemRepresentation')
224
224
  }
225
225
  const obj_owner = obj.owner;
226
226
  const path_owner = path + '.owner';
227
- const referencepath_ownerValidationError = validate$j(obj_owner, path_owner);
227
+ const referencepath_ownerValidationError = validate$d(obj_owner, path_owner);
228
228
  if (referencepath_ownerValidationError !== null) {
229
229
  let message = 'Object doesn\'t match AnalyticsUserRepresentation (at "' + path_owner + '")\n';
230
230
  message += referencepath_ownerValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -232,7 +232,7 @@ function validate$h(obj, path = 'AnalyticsAssetsQueryResultsItemRepresentation')
232
232
  }
233
233
  const obj_workspace = obj.workspace;
234
234
  const path_workspace = path + '.workspace';
235
- const referencepath_workspaceValidationError = validate$i(obj_workspace, path_workspace);
235
+ const referencepath_workspaceValidationError = validate$c(obj_workspace, path_workspace);
236
236
  if (referencepath_workspaceValidationError !== null) {
237
237
  let message = 'Object doesn\'t match AnalyticsAssetsQueryResultsWorkspaceRepresentation (at "' + path_workspace + '")\n';
238
238
  message += referencepath_workspaceValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -242,9 +242,9 @@ function validate$h(obj, path = 'AnalyticsAssetsQueryResultsItemRepresentation')
242
242
  return v_error === undefined ? null : v_error;
243
243
  }
244
244
 
245
- const TTL$3 = 500;
245
+ const TTL$2 = 500;
246
246
  const VERSION$9 = "ed60d9cca169a3e5ed897c67d11a23db";
247
- function validate$g(obj, path = 'AnalyticsAssetsQueryResultsRepresentation') {
247
+ function validate$a(obj, path = 'AnalyticsAssetsQueryResultsRepresentation') {
248
248
  const v_error = (() => {
249
249
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
250
250
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -257,7 +257,7 @@ function validate$g(obj, path = 'AnalyticsAssetsQueryResultsRepresentation') {
257
257
  for (let i = 0; i < obj_items.length; i++) {
258
258
  const obj_items_item = obj_items[i];
259
259
  const path_items_item = path_items + '[' + i + ']';
260
- const referencepath_items_itemValidationError = validate$h(obj_items_item, path_items_item);
260
+ const referencepath_items_itemValidationError = validate$b(obj_items_item, path_items_item);
261
261
  if (referencepath_items_itemValidationError !== null) {
262
262
  let message = 'Object doesn\'t match AnalyticsAssetsQueryResultsItemRepresentation (at "' + path_items_item + '")\n';
263
263
  message += referencepath_items_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -283,19 +283,19 @@ function validate$g(obj, path = 'AnalyticsAssetsQueryResultsRepresentation') {
283
283
  return v_error === undefined ? null : v_error;
284
284
  }
285
285
  const RepresentationType$9 = 'AnalyticsAssetsQueryResultsRepresentation';
286
- function keyBuilder$k(luvio, config) {
286
+ function keyBuilder$o(luvio, config) {
287
287
  return keyPrefix + '::' + RepresentationType$9 + ':' + config.searchId;
288
288
  }
289
289
  function keyBuilderFromType$6(luvio, object) {
290
290
  const keyParams = {
291
291
  searchId: object.queryKey
292
292
  };
293
- return keyBuilder$k(luvio, keyParams);
293
+ return keyBuilder$o(luvio, keyParams);
294
294
  }
295
295
  function normalize$9(input, existing, path, luvio, store, timestamp) {
296
296
  return input;
297
297
  }
298
- const select$m = function AnalyticsAssetsQueryResultsRepresentationSelect() {
298
+ const select$o = function AnalyticsAssetsQueryResultsRepresentationSelect() {
299
299
  return {
300
300
  kind: 'Fragment',
301
301
  version: VERSION$9,
@@ -311,13 +311,13 @@ function equals$9(existing, incoming) {
311
311
  }
312
312
  const ingest$9 = function AnalyticsAssetsQueryResultsRepresentationIngest(input, path, luvio, store, timestamp) {
313
313
  if (process.env.NODE_ENV !== 'production') {
314
- const validateError = validate$g(input);
314
+ const validateError = validate$a(input);
315
315
  if (validateError !== null) {
316
316
  throw validateError;
317
317
  }
318
318
  }
319
319
  const key = keyBuilderFromType$6(luvio, input);
320
- const ttlToUse = TTL$3;
320
+ const ttlToUse = TTL$2;
321
321
  ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$9, "UnifiedAnalytics", VERSION$9, RepresentationType$9, equals$9);
322
322
  return createLink(key);
323
323
  };
@@ -331,19 +331,19 @@ function getTypeCacheKeys$9(rootKeySet, luvio, input, fullPathFactory) {
331
331
  });
332
332
  }
333
333
 
334
- function select$l(luvio, params) {
335
- return select$m();
334
+ function select$n(luvio, params) {
335
+ return select$o();
336
336
  }
337
- function getResponseCacheKeys$e(storeKeyMap, luvio, resourceParams, response) {
337
+ function getResponseCacheKeys$i(storeKeyMap, luvio, resourceParams, response) {
338
338
  getTypeCacheKeys$9(storeKeyMap, luvio, response);
339
339
  }
340
- function ingestSuccess$c(luvio, resourceParams, response) {
340
+ function ingestSuccess$e(luvio, resourceParams, response) {
341
341
  const { body } = response;
342
342
  const key = keyBuilderFromType$6(luvio, body);
343
343
  luvio.storeIngest(key, ingest$9, body);
344
344
  const snapshot = luvio.storeLookup({
345
345
  recordId: key,
346
- node: select$l(),
346
+ node: select$n(),
347
347
  variables: {},
348
348
  });
349
349
  if (process.env.NODE_ENV !== 'production') {
@@ -354,7 +354,7 @@ function ingestSuccess$c(luvio, resourceParams, response) {
354
354
  deepFreeze(snapshot.data);
355
355
  return snapshot;
356
356
  }
357
- function createResourceRequest$e(config) {
357
+ function createResourceRequest$i(config) {
358
358
  const headers = {};
359
359
  return {
360
360
  baseUri: '/services/data/v62.0',
@@ -368,7 +368,7 @@ function createResourceRequest$e(config) {
368
368
  };
369
369
  }
370
370
 
371
- const adapterName$e = 'queryAssets';
371
+ const adapterName$i = 'queryAssets';
372
372
  const queryAssets_ConfigPropertyMetadata = [
373
373
  generateParamConfigMetadata('filters', true, 2 /* Body */, 4 /* Unsupported */),
374
374
  generateParamConfigMetadata('limit', true, 2 /* Body */, 3 /* Integer */),
@@ -377,11 +377,11 @@ const queryAssets_ConfigPropertyMetadata = [
377
377
  generateParamConfigMetadata('searchTerm', true, 2 /* Body */, 0 /* String */),
378
378
  generateParamConfigMetadata('sortDirection', true, 2 /* Body */, 0 /* String */),
379
379
  ];
380
- const queryAssets_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$e, queryAssets_ConfigPropertyMetadata);
381
- const createResourceParams$e = /*#__PURE__*/ createResourceParams$f(queryAssets_ConfigPropertyMetadata);
382
- function typeCheckConfig$e(untrustedConfig) {
380
+ const queryAssets_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$i, queryAssets_ConfigPropertyMetadata);
381
+ const createResourceParams$i = /*#__PURE__*/ createResourceParams$j(queryAssets_ConfigPropertyMetadata);
382
+ function typeCheckConfig$i(untrustedConfig) {
383
383
  const config = {};
384
- typeCheckConfig$f(untrustedConfig, config, queryAssets_ConfigPropertyMetadata);
384
+ typeCheckConfig$j(untrustedConfig, config, queryAssets_ConfigPropertyMetadata);
385
385
  const untrustedConfig_filters = untrustedConfig.filters;
386
386
  if (untrustedIsObject(untrustedConfig_filters)) {
387
387
  const untrustedConfig_filters_object = {};
@@ -391,30 +391,30 @@ function typeCheckConfig$e(untrustedConfig) {
391
391
  }
392
392
  return config;
393
393
  }
394
- function validateAdapterConfig$e(untrustedConfig, configPropertyNames) {
394
+ function validateAdapterConfig$i(untrustedConfig, configPropertyNames) {
395
395
  if (!untrustedIsObject(untrustedConfig)) {
396
396
  return null;
397
397
  }
398
398
  if (process.env.NODE_ENV !== 'production') {
399
399
  validateConfig(untrustedConfig, configPropertyNames);
400
400
  }
401
- const config = typeCheckConfig$e(untrustedConfig);
401
+ const config = typeCheckConfig$i(untrustedConfig);
402
402
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
403
403
  return null;
404
404
  }
405
405
  return config;
406
406
  }
407
- function buildNetworkSnapshot$e(luvio, config, options) {
408
- const resourceParams = createResourceParams$e(config);
409
- const request = createResourceRequest$e(resourceParams);
407
+ function buildNetworkSnapshot$i(luvio, config, options) {
408
+ const resourceParams = createResourceParams$i(config);
409
+ const request = createResourceRequest$i(resourceParams);
410
410
  return luvio.dispatchResourceRequest(request, options)
411
411
  .then((response) => {
412
412
  return luvio.handleSuccessResponse(() => {
413
- const snapshot = ingestSuccess$c(luvio, resourceParams, response);
413
+ const snapshot = ingestSuccess$e(luvio, resourceParams, response);
414
414
  return luvio.storeBroadcast().then(() => snapshot);
415
415
  }, () => {
416
416
  const cache = new StoreKeyMap();
417
- getResponseCacheKeys$e(cache, luvio, resourceParams, response.body);
417
+ getResponseCacheKeys$i(cache, luvio, resourceParams, response.body);
418
418
  return cache;
419
419
  });
420
420
  }, (response) => {
@@ -424,17 +424,17 @@ function buildNetworkSnapshot$e(luvio, config, options) {
424
424
  }
425
425
  const queryAssetsAdapterFactory = (luvio) => {
426
426
  return function queryAssets(untrustedConfig) {
427
- const config = validateAdapterConfig$e(untrustedConfig, queryAssets_ConfigPropertyNames);
427
+ const config = validateAdapterConfig$i(untrustedConfig, queryAssets_ConfigPropertyNames);
428
428
  // Invalid or incomplete config
429
429
  if (config === null) {
430
430
  throw new Error('Invalid config for "queryAssets"');
431
431
  }
432
- return buildNetworkSnapshot$e(luvio, config);
432
+ return buildNetworkSnapshot$i(luvio, config);
433
433
  };
434
434
  };
435
435
 
436
436
  const VERSION$8 = "d2ae5ba5bf518760e6df8195c528fdee";
437
- function validate$f(obj, path = 'DashboardRepresentation') {
437
+ function validate$9(obj, path = 'DashboardRepresentation') {
438
438
  const v_error = (() => {
439
439
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
440
440
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -525,19 +525,19 @@ function validate$f(obj, path = 'DashboardRepresentation') {
525
525
  return v_error === undefined ? null : v_error;
526
526
  }
527
527
  const RepresentationType$8 = 'DashboardRepresentation';
528
- function keyBuilder$j(luvio, config) {
528
+ function keyBuilder$n(luvio, config) {
529
529
  return keyPrefix + '::' + RepresentationType$8 + ':' + config.name;
530
530
  }
531
531
  function keyBuilderFromType$5(luvio, object) {
532
532
  const keyParams = {
533
533
  name: object.cacheableKey
534
534
  };
535
- return keyBuilder$j(luvio, keyParams);
535
+ return keyBuilder$n(luvio, keyParams);
536
536
  }
537
537
  function normalize$8(input, existing, path, luvio, store, timestamp) {
538
538
  return input;
539
539
  }
540
- const select$k = function DashboardRepresentationSelect() {
540
+ const select$m = function DashboardRepresentationSelect() {
541
541
  return {
542
542
  kind: 'Fragment',
543
543
  version: VERSION$8,
@@ -553,7 +553,7 @@ function equals$8(existing, incoming) {
553
553
  }
554
554
  const ingest$8 = function DashboardRepresentationIngest(input, path, luvio, store, timestamp) {
555
555
  if (process.env.NODE_ENV !== 'production') {
556
- const validateError = validate$f(input);
556
+ const validateError = validate$9(input);
557
557
  if (validateError !== null) {
558
558
  throw validateError;
559
559
  }
@@ -574,7 +574,7 @@ function getTypeCacheKeys$8(rootKeySet, luvio, input, fullPathFactory) {
574
574
  }
575
575
 
576
576
  const VERSION$7 = "962823130e6a9315240ef0e0f0c5f757";
577
- function validate$e(obj, path = 'DashboardCollectionRepresentation') {
577
+ function validate$8(obj, path = 'DashboardCollectionRepresentation') {
578
578
  const v_error = (() => {
579
579
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
580
580
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -614,7 +614,7 @@ function normalize$7(input, existing, path, luvio, store, timestamp) {
614
614
  }
615
615
  return input;
616
616
  }
617
- const select$j = function DashboardCollectionRepresentationSelect() {
617
+ const select$l = function DashboardCollectionRepresentationSelect() {
618
618
  return {
619
619
  kind: 'Fragment',
620
620
  version: VERSION$7,
@@ -624,7 +624,7 @@ const select$j = function DashboardCollectionRepresentationSelect() {
624
624
  name: 'dashboards',
625
625
  kind: 'Link',
626
626
  plural: true,
627
- fragment: select$k()
627
+ fragment: select$m()
628
628
  }
629
629
  ]
630
630
  };
@@ -644,7 +644,7 @@ function equals$7(existing, incoming) {
644
644
  }
645
645
  const ingest$7 = function DashboardCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
646
646
  if (process.env.NODE_ENV !== 'production') {
647
- const validateError = validate$e(input);
647
+ const validateError = validate$8(input);
648
648
  if (validateError !== null) {
649
649
  throw validateError;
650
650
  }
@@ -668,22 +668,22 @@ function getTypeCacheKeys$7(rootKeySet, luvio, input, fullPathFactory) {
668
668
  }
669
669
  }
670
670
 
671
- function select$i(luvio, params) {
672
- return select$j();
671
+ function select$k(luvio, params) {
672
+ return select$l();
673
673
  }
674
- function keyBuilder$i(luvio, params) {
674
+ function keyBuilder$m(luvio, params) {
675
675
  return keyPrefix + '::DashboardCollectionRepresentation:(' + 'limit:' + params.queryParams.limit + ',' + 'offset:' + params.queryParams.offset + ')';
676
676
  }
677
- function getResponseCacheKeys$d(storeKeyMap, luvio, resourceParams, response) {
678
- getTypeCacheKeys$7(storeKeyMap, luvio, response, () => keyBuilder$i(luvio, resourceParams));
677
+ function getResponseCacheKeys$h(storeKeyMap, luvio, resourceParams, response) {
678
+ getTypeCacheKeys$7(storeKeyMap, luvio, response, () => keyBuilder$m(luvio, resourceParams));
679
679
  }
680
- function ingestSuccess$b(luvio, resourceParams, response, snapshotRefresh) {
680
+ function ingestSuccess$d(luvio, resourceParams, response, snapshotRefresh) {
681
681
  const { body } = response;
682
- const key = keyBuilder$i(luvio, resourceParams);
682
+ const key = keyBuilder$m(luvio, resourceParams);
683
683
  luvio.storeIngest(key, ingest$7, body);
684
684
  const snapshot = luvio.storeLookup({
685
685
  recordId: key,
686
- node: select$i(),
686
+ node: select$k(),
687
687
  variables: {},
688
688
  }, snapshotRefresh);
689
689
  if (process.env.NODE_ENV !== 'production') {
@@ -694,13 +694,13 @@ function ingestSuccess$b(luvio, resourceParams, response, snapshotRefresh) {
694
694
  deepFreeze(snapshot.data);
695
695
  return snapshot;
696
696
  }
697
- function ingestError$5(luvio, params, error, snapshotRefresh) {
698
- const key = keyBuilder$i(luvio, params);
697
+ function ingestError$6(luvio, params, error, snapshotRefresh) {
698
+ const key = keyBuilder$m(luvio, params);
699
699
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
700
700
  luvio.storeIngestError(key, errorSnapshot);
701
701
  return errorSnapshot;
702
702
  }
703
- function createResourceRequest$d(config) {
703
+ function createResourceRequest$h(config) {
704
704
  const headers = {};
705
705
  return {
706
706
  baseUri: '/services/data/v62.0',
@@ -714,106 +714,106 @@ function createResourceRequest$d(config) {
714
714
  };
715
715
  }
716
716
 
717
- const adapterName$d = 'getDashboards';
717
+ const adapterName$h = 'getDashboards';
718
718
  const getDashboards_ConfigPropertyMetadata = [
719
719
  generateParamConfigMetadata('limit', false, 1 /* QueryParameter */, 3 /* Integer */),
720
720
  generateParamConfigMetadata('offset', false, 1 /* QueryParameter */, 3 /* Integer */),
721
721
  ];
722
- const getDashboards_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$d, getDashboards_ConfigPropertyMetadata);
723
- const createResourceParams$d = /*#__PURE__*/ createResourceParams$f(getDashboards_ConfigPropertyMetadata);
724
- function keyBuilder$h(luvio, config) {
725
- const resourceParams = createResourceParams$d(config);
726
- return keyBuilder$i(luvio, resourceParams);
722
+ const getDashboards_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$h, getDashboards_ConfigPropertyMetadata);
723
+ const createResourceParams$h = /*#__PURE__*/ createResourceParams$j(getDashboards_ConfigPropertyMetadata);
724
+ function keyBuilder$l(luvio, config) {
725
+ const resourceParams = createResourceParams$h(config);
726
+ return keyBuilder$m(luvio, resourceParams);
727
727
  }
728
- function typeCheckConfig$d(untrustedConfig) {
728
+ function typeCheckConfig$h(untrustedConfig) {
729
729
  const config = {};
730
- typeCheckConfig$f(untrustedConfig, config, getDashboards_ConfigPropertyMetadata);
730
+ typeCheckConfig$j(untrustedConfig, config, getDashboards_ConfigPropertyMetadata);
731
731
  return config;
732
732
  }
733
- function validateAdapterConfig$d(untrustedConfig, configPropertyNames) {
733
+ function validateAdapterConfig$h(untrustedConfig, configPropertyNames) {
734
734
  if (!untrustedIsObject(untrustedConfig)) {
735
735
  return null;
736
736
  }
737
737
  if (process.env.NODE_ENV !== 'production') {
738
738
  validateConfig(untrustedConfig, configPropertyNames);
739
739
  }
740
- const config = typeCheckConfig$d(untrustedConfig);
740
+ const config = typeCheckConfig$h(untrustedConfig);
741
741
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
742
742
  return null;
743
743
  }
744
744
  return config;
745
745
  }
746
- function adapterFragment$5(luvio, config) {
747
- createResourceParams$d(config);
748
- return select$i();
746
+ function adapterFragment$6(luvio, config) {
747
+ createResourceParams$h(config);
748
+ return select$k();
749
749
  }
750
- function onFetchResponseSuccess$5(luvio, config, resourceParams, response) {
751
- const snapshot = ingestSuccess$b(luvio, resourceParams, response, {
750
+ function onFetchResponseSuccess$6(luvio, config, resourceParams, response) {
751
+ const snapshot = ingestSuccess$d(luvio, resourceParams, response, {
752
752
  config,
753
- resolve: () => buildNetworkSnapshot$d(luvio, config, snapshotRefreshOptions)
753
+ resolve: () => buildNetworkSnapshot$h(luvio, config, snapshotRefreshOptions)
754
754
  });
755
755
  return luvio.storeBroadcast().then(() => snapshot);
756
756
  }
757
- function onFetchResponseError$5(luvio, config, resourceParams, response) {
758
- const snapshot = ingestError$5(luvio, resourceParams, response, {
757
+ function onFetchResponseError$6(luvio, config, resourceParams, response) {
758
+ const snapshot = ingestError$6(luvio, resourceParams, response, {
759
759
  config,
760
- resolve: () => buildNetworkSnapshot$d(luvio, config, snapshotRefreshOptions)
760
+ resolve: () => buildNetworkSnapshot$h(luvio, config, snapshotRefreshOptions)
761
761
  });
762
762
  return luvio.storeBroadcast().then(() => snapshot);
763
763
  }
764
- function buildNetworkSnapshot$d(luvio, config, options) {
765
- const resourceParams = createResourceParams$d(config);
766
- const request = createResourceRequest$d(resourceParams);
764
+ function buildNetworkSnapshot$h(luvio, config, options) {
765
+ const resourceParams = createResourceParams$h(config);
766
+ const request = createResourceRequest$h(resourceParams);
767
767
  return luvio.dispatchResourceRequest(request, options)
768
768
  .then((response) => {
769
- return luvio.handleSuccessResponse(() => onFetchResponseSuccess$5(luvio, config, resourceParams, response), () => {
769
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess$6(luvio, config, resourceParams, response), () => {
770
770
  const cache = new StoreKeyMap();
771
- getResponseCacheKeys$d(cache, luvio, resourceParams, response.body);
771
+ getResponseCacheKeys$h(cache, luvio, resourceParams, response.body);
772
772
  return cache;
773
773
  });
774
774
  }, (response) => {
775
- return luvio.handleErrorResponse(() => onFetchResponseError$5(luvio, config, resourceParams, response));
775
+ return luvio.handleErrorResponse(() => onFetchResponseError$6(luvio, config, resourceParams, response));
776
776
  });
777
777
  }
778
- function buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext) {
779
- return buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext, buildNetworkSnapshot$d, undefined, false);
778
+ function buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext) {
779
+ return buildNetworkSnapshotCachePolicy$7(context, coercedAdapterRequestContext, buildNetworkSnapshot$h, undefined, false);
780
780
  }
781
- function buildCachedSnapshotCachePolicy$5(context, storeLookup) {
781
+ function buildCachedSnapshotCachePolicy$6(context, storeLookup) {
782
782
  const { luvio, config } = context;
783
783
  const selector = {
784
- recordId: keyBuilder$h(luvio, config),
785
- node: adapterFragment$5(luvio, config),
784
+ recordId: keyBuilder$l(luvio, config),
785
+ node: adapterFragment$6(luvio, config),
786
786
  variables: {},
787
787
  };
788
788
  const cacheSnapshot = storeLookup(selector, {
789
789
  config,
790
- resolve: () => buildNetworkSnapshot$d(luvio, config, snapshotRefreshOptions)
790
+ resolve: () => buildNetworkSnapshot$h(luvio, config, snapshotRefreshOptions)
791
791
  });
792
792
  return cacheSnapshot;
793
793
  }
794
794
  const getDashboardsAdapterFactory = (luvio) => function UnifiedAnalytics__getDashboards(untrustedConfig, requestContext) {
795
- const config = validateAdapterConfig$d(untrustedConfig, getDashboards_ConfigPropertyNames);
795
+ const config = validateAdapterConfig$h(untrustedConfig, getDashboards_ConfigPropertyNames);
796
796
  // Invalid or incomplete config
797
797
  if (config === null) {
798
798
  return null;
799
799
  }
800
800
  return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
801
- buildCachedSnapshotCachePolicy$5, buildNetworkSnapshotCachePolicy$5);
801
+ buildCachedSnapshotCachePolicy$6, buildNetworkSnapshotCachePolicy$6);
802
802
  };
803
803
 
804
- function select$h(luvio, params) {
805
- return select$k();
804
+ function select$j(luvio, params) {
805
+ return select$m();
806
806
  }
807
- function getResponseCacheKeys$c(storeKeyMap, luvio, resourceParams, response) {
807
+ function getResponseCacheKeys$g(storeKeyMap, luvio, resourceParams, response) {
808
808
  getTypeCacheKeys$8(storeKeyMap, luvio, response);
809
809
  }
810
- function ingestSuccess$a(luvio, resourceParams, response) {
810
+ function ingestSuccess$c(luvio, resourceParams, response) {
811
811
  const { body } = response;
812
812
  const key = keyBuilderFromType$5(luvio, body);
813
813
  luvio.storeIngest(key, ingest$8, body);
814
814
  const snapshot = luvio.storeLookup({
815
815
  recordId: key,
816
- node: select$h(),
816
+ node: select$j(),
817
817
  variables: {},
818
818
  });
819
819
  if (process.env.NODE_ENV !== 'production') {
@@ -824,7 +824,7 @@ function ingestSuccess$a(luvio, resourceParams, response) {
824
824
  deepFreeze(snapshot.data);
825
825
  return snapshot;
826
826
  }
827
- function createResourceRequest$c(config) {
827
+ function createResourceRequest$g(config) {
828
828
  const headers = {};
829
829
  return {
830
830
  baseUri: '/services/data/v62.0',
@@ -838,7 +838,7 @@ function createResourceRequest$c(config) {
838
838
  };
839
839
  }
840
840
 
841
- const adapterName$c = 'createDashboard';
841
+ const adapterName$g = 'createDashboard';
842
842
  const createDashboard_ConfigPropertyMetadata = [
843
843
  generateParamConfigMetadata('description', false, 2 /* Body */, 0 /* String */),
844
844
  generateParamConfigMetadata('id', false, 2 /* Body */, 0 /* String */),
@@ -847,11 +847,11 @@ const createDashboard_ConfigPropertyMetadata = [
847
847
  generateParamConfigMetadata('layouts', true, 2 /* Body */, 4 /* Unsupported */, true),
848
848
  generateParamConfigMetadata('widgets', true, 2 /* Body */, 4 /* Unsupported */),
849
849
  ];
850
- const createDashboard_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$c, createDashboard_ConfigPropertyMetadata);
851
- const createResourceParams$c = /*#__PURE__*/ createResourceParams$f(createDashboard_ConfigPropertyMetadata);
852
- function typeCheckConfig$c(untrustedConfig) {
850
+ const createDashboard_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$g, createDashboard_ConfigPropertyMetadata);
851
+ const createResourceParams$g = /*#__PURE__*/ createResourceParams$j(createDashboard_ConfigPropertyMetadata);
852
+ function typeCheckConfig$g(untrustedConfig) {
853
853
  const config = {};
854
- typeCheckConfig$f(untrustedConfig, config, createDashboard_ConfigPropertyMetadata);
854
+ typeCheckConfig$j(untrustedConfig, config, createDashboard_ConfigPropertyMetadata);
855
855
  const untrustedConfig_layouts = untrustedConfig.layouts;
856
856
  if (ArrayIsArray$1(untrustedConfig_layouts)) {
857
857
  const untrustedConfig_layouts_array = [];
@@ -878,30 +878,30 @@ function typeCheckConfig$c(untrustedConfig) {
878
878
  }
879
879
  return config;
880
880
  }
881
- function validateAdapterConfig$c(untrustedConfig, configPropertyNames) {
881
+ function validateAdapterConfig$g(untrustedConfig, configPropertyNames) {
882
882
  if (!untrustedIsObject(untrustedConfig)) {
883
883
  return null;
884
884
  }
885
885
  if (process.env.NODE_ENV !== 'production') {
886
886
  validateConfig(untrustedConfig, configPropertyNames);
887
887
  }
888
- const config = typeCheckConfig$c(untrustedConfig);
888
+ const config = typeCheckConfig$g(untrustedConfig);
889
889
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
890
890
  return null;
891
891
  }
892
892
  return config;
893
893
  }
894
- function buildNetworkSnapshot$c(luvio, config, options) {
895
- const resourceParams = createResourceParams$c(config);
896
- const request = createResourceRequest$c(resourceParams);
894
+ function buildNetworkSnapshot$g(luvio, config, options) {
895
+ const resourceParams = createResourceParams$g(config);
896
+ const request = createResourceRequest$g(resourceParams);
897
897
  return luvio.dispatchResourceRequest(request, options)
898
898
  .then((response) => {
899
899
  return luvio.handleSuccessResponse(() => {
900
- const snapshot = ingestSuccess$a(luvio, resourceParams, response);
900
+ const snapshot = ingestSuccess$c(luvio, resourceParams, response);
901
901
  return luvio.storeBroadcast().then(() => snapshot);
902
902
  }, () => {
903
903
  const cache = new StoreKeyMap();
904
- getResponseCacheKeys$c(cache, luvio, resourceParams, response.body);
904
+ getResponseCacheKeys$g(cache, luvio, resourceParams, response.body);
905
905
  return cache;
906
906
  });
907
907
  }, (response) => {
@@ -911,33 +911,33 @@ function buildNetworkSnapshot$c(luvio, config, options) {
911
911
  }
912
912
  const createDashboardAdapterFactory = (luvio) => {
913
913
  return function createDashboard(untrustedConfig) {
914
- const config = validateAdapterConfig$c(untrustedConfig, createDashboard_ConfigPropertyNames);
914
+ const config = validateAdapterConfig$g(untrustedConfig, createDashboard_ConfigPropertyNames);
915
915
  // Invalid or incomplete config
916
916
  if (config === null) {
917
917
  throw new Error('Invalid config for "createDashboard"');
918
918
  }
919
- return buildNetworkSnapshot$c(luvio, config);
919
+ return buildNetworkSnapshot$g(luvio, config);
920
920
  };
921
921
  };
922
922
 
923
- function keyBuilder$g(luvio, params) {
924
- return keyBuilder$j(luvio, {
923
+ function keyBuilder$k(luvio, params) {
924
+ return keyBuilder$n(luvio, {
925
925
  name: params.urlParams.dashboardIdOrApiName
926
926
  });
927
927
  }
928
- function getResponseCacheKeys$b(cacheKeyMap, luvio, resourceParams) {
929
- const key = keyBuilder$g(luvio, resourceParams);
928
+ function getResponseCacheKeys$f(cacheKeyMap, luvio, resourceParams) {
929
+ const key = keyBuilder$k(luvio, resourceParams);
930
930
  cacheKeyMap.set(key, {
931
931
  namespace: keyPrefix,
932
932
  representationName: RepresentationType$8,
933
933
  mergeable: false
934
934
  });
935
935
  }
936
- function evictSuccess$1(luvio, resourceParams) {
937
- const key = keyBuilder$g(luvio, resourceParams);
936
+ function evictSuccess$3(luvio, resourceParams) {
937
+ const key = keyBuilder$k(luvio, resourceParams);
938
938
  luvio.storeEvict(key);
939
939
  }
940
- function createResourceRequest$b(config) {
940
+ function createResourceRequest$f(config) {
941
941
  const headers = {};
942
942
  return {
943
943
  baseUri: '/services/data/v62.0',
@@ -951,41 +951,41 @@ function createResourceRequest$b(config) {
951
951
  };
952
952
  }
953
953
 
954
- const adapterName$b = 'deleteDashboard';
954
+ const adapterName$f = 'deleteDashboard';
955
955
  const deleteDashboard_ConfigPropertyMetadata = [
956
956
  generateParamConfigMetadata('dashboardIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
957
957
  ];
958
- const deleteDashboard_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$b, deleteDashboard_ConfigPropertyMetadata);
959
- const createResourceParams$b = /*#__PURE__*/ createResourceParams$f(deleteDashboard_ConfigPropertyMetadata);
960
- function typeCheckConfig$b(untrustedConfig) {
958
+ const deleteDashboard_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$f, deleteDashboard_ConfigPropertyMetadata);
959
+ const createResourceParams$f = /*#__PURE__*/ createResourceParams$j(deleteDashboard_ConfigPropertyMetadata);
960
+ function typeCheckConfig$f(untrustedConfig) {
961
961
  const config = {};
962
- typeCheckConfig$f(untrustedConfig, config, deleteDashboard_ConfigPropertyMetadata);
962
+ typeCheckConfig$j(untrustedConfig, config, deleteDashboard_ConfigPropertyMetadata);
963
963
  return config;
964
964
  }
965
- function validateAdapterConfig$b(untrustedConfig, configPropertyNames) {
965
+ function validateAdapterConfig$f(untrustedConfig, configPropertyNames) {
966
966
  if (!untrustedIsObject(untrustedConfig)) {
967
967
  return null;
968
968
  }
969
969
  if (process.env.NODE_ENV !== 'production') {
970
970
  validateConfig(untrustedConfig, configPropertyNames);
971
971
  }
972
- const config = typeCheckConfig$b(untrustedConfig);
972
+ const config = typeCheckConfig$f(untrustedConfig);
973
973
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
974
974
  return null;
975
975
  }
976
976
  return config;
977
977
  }
978
- function buildNetworkSnapshot$b(luvio, config, options) {
979
- const resourceParams = createResourceParams$b(config);
980
- const request = createResourceRequest$b(resourceParams);
978
+ function buildNetworkSnapshot$f(luvio, config, options) {
979
+ const resourceParams = createResourceParams$f(config);
980
+ const request = createResourceRequest$f(resourceParams);
981
981
  return luvio.dispatchResourceRequest(request, options)
982
982
  .then(() => {
983
983
  return luvio.handleSuccessResponse(() => {
984
- evictSuccess$1(luvio, resourceParams);
984
+ evictSuccess$3(luvio, resourceParams);
985
985
  return luvio.storeBroadcast();
986
986
  }, () => {
987
987
  const cache = new StoreKeyMap();
988
- getResponseCacheKeys$b(cache, luvio, resourceParams);
988
+ getResponseCacheKeys$f(cache, luvio, resourceParams);
989
989
  return cache;
990
990
  });
991
991
  }, (response) => {
@@ -995,33 +995,33 @@ function buildNetworkSnapshot$b(luvio, config, options) {
995
995
  }
996
996
  const deleteDashboardAdapterFactory = (luvio) => {
997
997
  return function UnifiedAnalyticsdeleteDashboard(untrustedConfig) {
998
- const config = validateAdapterConfig$b(untrustedConfig, deleteDashboard_ConfigPropertyNames);
998
+ const config = validateAdapterConfig$f(untrustedConfig, deleteDashboard_ConfigPropertyNames);
999
999
  // Invalid or incomplete config
1000
1000
  if (config === null) {
1001
- throw new Error(`Invalid config for "${adapterName$b}"`);
1001
+ throw new Error(`Invalid config for "${adapterName$f}"`);
1002
1002
  }
1003
- return buildNetworkSnapshot$b(luvio, config);
1003
+ return buildNetworkSnapshot$f(luvio, config);
1004
1004
  };
1005
1005
  };
1006
1006
 
1007
- function select$g(luvio, params) {
1008
- return select$k();
1007
+ function select$i(luvio, params) {
1008
+ return select$m();
1009
1009
  }
1010
- function keyBuilder$f(luvio, params) {
1011
- return keyBuilder$j(luvio, {
1010
+ function keyBuilder$j(luvio, params) {
1011
+ return keyBuilder$n(luvio, {
1012
1012
  name: params.urlParams.dashboardIdOrApiName
1013
1013
  });
1014
1014
  }
1015
- function getResponseCacheKeys$a(storeKeyMap, luvio, resourceParams, response) {
1015
+ function getResponseCacheKeys$e(storeKeyMap, luvio, resourceParams, response) {
1016
1016
  getTypeCacheKeys$8(storeKeyMap, luvio, response);
1017
1017
  }
1018
- function ingestSuccess$9(luvio, resourceParams, response, snapshotRefresh) {
1018
+ function ingestSuccess$b(luvio, resourceParams, response, snapshotRefresh) {
1019
1019
  const { body } = response;
1020
- const key = keyBuilder$f(luvio, resourceParams);
1020
+ const key = keyBuilder$j(luvio, resourceParams);
1021
1021
  luvio.storeIngest(key, ingest$8, body);
1022
1022
  const snapshot = luvio.storeLookup({
1023
1023
  recordId: key,
1024
- node: select$g(),
1024
+ node: select$i(),
1025
1025
  variables: {},
1026
1026
  }, snapshotRefresh);
1027
1027
  if (process.env.NODE_ENV !== 'production') {
@@ -1032,13 +1032,13 @@ function ingestSuccess$9(luvio, resourceParams, response, snapshotRefresh) {
1032
1032
  deepFreeze(snapshot.data);
1033
1033
  return snapshot;
1034
1034
  }
1035
- function ingestError$4(luvio, params, error, snapshotRefresh) {
1036
- const key = keyBuilder$f(luvio, params);
1035
+ function ingestError$5(luvio, params, error, snapshotRefresh) {
1036
+ const key = keyBuilder$j(luvio, params);
1037
1037
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
1038
1038
  luvio.storeIngestError(key, errorSnapshot);
1039
1039
  return errorSnapshot;
1040
1040
  }
1041
- function createResourceRequest$a(config) {
1041
+ function createResourceRequest$e(config) {
1042
1042
  const headers = {};
1043
1043
  return {
1044
1044
  baseUri: '/services/data/v62.0',
@@ -1052,105 +1052,105 @@ function createResourceRequest$a(config) {
1052
1052
  };
1053
1053
  }
1054
1054
 
1055
- const adapterName$a = 'getDashboardByName';
1055
+ const adapterName$e = 'getDashboardByName';
1056
1056
  const getDashboardByName_ConfigPropertyMetadata = [
1057
1057
  generateParamConfigMetadata('dashboardIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
1058
1058
  ];
1059
- const getDashboardByName_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$a, getDashboardByName_ConfigPropertyMetadata);
1060
- const createResourceParams$a = /*#__PURE__*/ createResourceParams$f(getDashboardByName_ConfigPropertyMetadata);
1061
- function keyBuilder$e(luvio, config) {
1062
- const resourceParams = createResourceParams$a(config);
1063
- return keyBuilder$f(luvio, resourceParams);
1059
+ const getDashboardByName_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$e, getDashboardByName_ConfigPropertyMetadata);
1060
+ const createResourceParams$e = /*#__PURE__*/ createResourceParams$j(getDashboardByName_ConfigPropertyMetadata);
1061
+ function keyBuilder$i(luvio, config) {
1062
+ const resourceParams = createResourceParams$e(config);
1063
+ return keyBuilder$j(luvio, resourceParams);
1064
1064
  }
1065
- function typeCheckConfig$a(untrustedConfig) {
1065
+ function typeCheckConfig$e(untrustedConfig) {
1066
1066
  const config = {};
1067
- typeCheckConfig$f(untrustedConfig, config, getDashboardByName_ConfigPropertyMetadata);
1067
+ typeCheckConfig$j(untrustedConfig, config, getDashboardByName_ConfigPropertyMetadata);
1068
1068
  return config;
1069
1069
  }
1070
- function validateAdapterConfig$a(untrustedConfig, configPropertyNames) {
1070
+ function validateAdapterConfig$e(untrustedConfig, configPropertyNames) {
1071
1071
  if (!untrustedIsObject(untrustedConfig)) {
1072
1072
  return null;
1073
1073
  }
1074
1074
  if (process.env.NODE_ENV !== 'production') {
1075
1075
  validateConfig(untrustedConfig, configPropertyNames);
1076
1076
  }
1077
- const config = typeCheckConfig$a(untrustedConfig);
1077
+ const config = typeCheckConfig$e(untrustedConfig);
1078
1078
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
1079
1079
  return null;
1080
1080
  }
1081
1081
  return config;
1082
1082
  }
1083
- function adapterFragment$4(luvio, config) {
1084
- createResourceParams$a(config);
1085
- return select$g();
1083
+ function adapterFragment$5(luvio, config) {
1084
+ createResourceParams$e(config);
1085
+ return select$i();
1086
1086
  }
1087
- function onFetchResponseSuccess$4(luvio, config, resourceParams, response) {
1088
- const snapshot = ingestSuccess$9(luvio, resourceParams, response, {
1087
+ function onFetchResponseSuccess$5(luvio, config, resourceParams, response) {
1088
+ const snapshot = ingestSuccess$b(luvio, resourceParams, response, {
1089
1089
  config,
1090
- resolve: () => buildNetworkSnapshot$a(luvio, config, snapshotRefreshOptions)
1090
+ resolve: () => buildNetworkSnapshot$e(luvio, config, snapshotRefreshOptions)
1091
1091
  });
1092
1092
  return luvio.storeBroadcast().then(() => snapshot);
1093
1093
  }
1094
- function onFetchResponseError$4(luvio, config, resourceParams, response) {
1095
- const snapshot = ingestError$4(luvio, resourceParams, response, {
1094
+ function onFetchResponseError$5(luvio, config, resourceParams, response) {
1095
+ const snapshot = ingestError$5(luvio, resourceParams, response, {
1096
1096
  config,
1097
- resolve: () => buildNetworkSnapshot$a(luvio, config, snapshotRefreshOptions)
1097
+ resolve: () => buildNetworkSnapshot$e(luvio, config, snapshotRefreshOptions)
1098
1098
  });
1099
1099
  return luvio.storeBroadcast().then(() => snapshot);
1100
1100
  }
1101
- function buildNetworkSnapshot$a(luvio, config, options) {
1102
- const resourceParams = createResourceParams$a(config);
1103
- const request = createResourceRequest$a(resourceParams);
1101
+ function buildNetworkSnapshot$e(luvio, config, options) {
1102
+ const resourceParams = createResourceParams$e(config);
1103
+ const request = createResourceRequest$e(resourceParams);
1104
1104
  return luvio.dispatchResourceRequest(request, options)
1105
1105
  .then((response) => {
1106
- return luvio.handleSuccessResponse(() => onFetchResponseSuccess$4(luvio, config, resourceParams, response), () => {
1106
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess$5(luvio, config, resourceParams, response), () => {
1107
1107
  const cache = new StoreKeyMap();
1108
- getResponseCacheKeys$a(cache, luvio, resourceParams, response.body);
1108
+ getResponseCacheKeys$e(cache, luvio, resourceParams, response.body);
1109
1109
  return cache;
1110
1110
  });
1111
1111
  }, (response) => {
1112
- return luvio.handleErrorResponse(() => onFetchResponseError$4(luvio, config, resourceParams, response));
1112
+ return luvio.handleErrorResponse(() => onFetchResponseError$5(luvio, config, resourceParams, response));
1113
1113
  });
1114
1114
  }
1115
- function buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext) {
1116
- return buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext, buildNetworkSnapshot$a, undefined, false);
1115
+ function buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext) {
1116
+ return buildNetworkSnapshotCachePolicy$7(context, coercedAdapterRequestContext, buildNetworkSnapshot$e, undefined, false);
1117
1117
  }
1118
- function buildCachedSnapshotCachePolicy$4(context, storeLookup) {
1118
+ function buildCachedSnapshotCachePolicy$5(context, storeLookup) {
1119
1119
  const { luvio, config } = context;
1120
1120
  const selector = {
1121
- recordId: keyBuilder$e(luvio, config),
1122
- node: adapterFragment$4(luvio, config),
1121
+ recordId: keyBuilder$i(luvio, config),
1122
+ node: adapterFragment$5(luvio, config),
1123
1123
  variables: {},
1124
1124
  };
1125
1125
  const cacheSnapshot = storeLookup(selector, {
1126
1126
  config,
1127
- resolve: () => buildNetworkSnapshot$a(luvio, config, snapshotRefreshOptions)
1127
+ resolve: () => buildNetworkSnapshot$e(luvio, config, snapshotRefreshOptions)
1128
1128
  });
1129
1129
  return cacheSnapshot;
1130
1130
  }
1131
1131
  const getDashboardByNameAdapterFactory = (luvio) => function UnifiedAnalytics__getDashboardByName(untrustedConfig, requestContext) {
1132
- const config = validateAdapterConfig$a(untrustedConfig, getDashboardByName_ConfigPropertyNames);
1132
+ const config = validateAdapterConfig$e(untrustedConfig, getDashboardByName_ConfigPropertyNames);
1133
1133
  // Invalid or incomplete config
1134
1134
  if (config === null) {
1135
1135
  return null;
1136
1136
  }
1137
1137
  return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
1138
- buildCachedSnapshotCachePolicy$4, buildNetworkSnapshotCachePolicy$4);
1138
+ buildCachedSnapshotCachePolicy$5, buildNetworkSnapshotCachePolicy$5);
1139
1139
  };
1140
1140
 
1141
- function select$f(luvio, params) {
1142
- return select$k();
1141
+ function select$h(luvio, params) {
1142
+ return select$m();
1143
1143
  }
1144
- function getResponseCacheKeys$9(storeKeyMap, luvio, resourceParams, response) {
1144
+ function getResponseCacheKeys$d(storeKeyMap, luvio, resourceParams, response) {
1145
1145
  getTypeCacheKeys$8(storeKeyMap, luvio, response);
1146
1146
  }
1147
- function ingestSuccess$8(luvio, resourceParams, response) {
1147
+ function ingestSuccess$a(luvio, resourceParams, response) {
1148
1148
  const { body } = response;
1149
1149
  const key = keyBuilderFromType$5(luvio, body);
1150
1150
  luvio.storeIngest(key, ingest$8, body);
1151
1151
  const snapshot = luvio.storeLookup({
1152
1152
  recordId: key,
1153
- node: select$f(),
1153
+ node: select$h(),
1154
1154
  variables: {},
1155
1155
  });
1156
1156
  if (process.env.NODE_ENV !== 'production') {
@@ -1161,7 +1161,7 @@ function ingestSuccess$8(luvio, resourceParams, response) {
1161
1161
  deepFreeze(snapshot.data);
1162
1162
  return snapshot;
1163
1163
  }
1164
- function createResourceRequest$9(config) {
1164
+ function createResourceRequest$d(config) {
1165
1165
  const headers = {};
1166
1166
  return {
1167
1167
  baseUri: '/services/data/v62.0',
@@ -1175,7 +1175,7 @@ function createResourceRequest$9(config) {
1175
1175
  };
1176
1176
  }
1177
1177
 
1178
- const adapterName$9 = 'updateDashboard';
1178
+ const adapterName$d = 'updateDashboard';
1179
1179
  const updateDashboard_ConfigPropertyMetadata = [
1180
1180
  generateParamConfigMetadata('dashboardIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
1181
1181
  generateParamConfigMetadata('description', false, 2 /* Body */, 0 /* String */),
@@ -1185,11 +1185,11 @@ const updateDashboard_ConfigPropertyMetadata = [
1185
1185
  generateParamConfigMetadata('layouts', true, 2 /* Body */, 4 /* Unsupported */, true),
1186
1186
  generateParamConfigMetadata('widgets', true, 2 /* Body */, 4 /* Unsupported */),
1187
1187
  ];
1188
- const updateDashboard_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$9, updateDashboard_ConfigPropertyMetadata);
1189
- const createResourceParams$9 = /*#__PURE__*/ createResourceParams$f(updateDashboard_ConfigPropertyMetadata);
1190
- function typeCheckConfig$9(untrustedConfig) {
1188
+ const updateDashboard_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$d, updateDashboard_ConfigPropertyMetadata);
1189
+ const createResourceParams$d = /*#__PURE__*/ createResourceParams$j(updateDashboard_ConfigPropertyMetadata);
1190
+ function typeCheckConfig$d(untrustedConfig) {
1191
1191
  const config = {};
1192
- typeCheckConfig$f(untrustedConfig, config, updateDashboard_ConfigPropertyMetadata);
1192
+ typeCheckConfig$j(untrustedConfig, config, updateDashboard_ConfigPropertyMetadata);
1193
1193
  const untrustedConfig_layouts = untrustedConfig.layouts;
1194
1194
  if (ArrayIsArray$1(untrustedConfig_layouts)) {
1195
1195
  const untrustedConfig_layouts_array = [];
@@ -1216,30 +1216,30 @@ function typeCheckConfig$9(untrustedConfig) {
1216
1216
  }
1217
1217
  return config;
1218
1218
  }
1219
- function validateAdapterConfig$9(untrustedConfig, configPropertyNames) {
1219
+ function validateAdapterConfig$d(untrustedConfig, configPropertyNames) {
1220
1220
  if (!untrustedIsObject(untrustedConfig)) {
1221
1221
  return null;
1222
1222
  }
1223
1223
  if (process.env.NODE_ENV !== 'production') {
1224
1224
  validateConfig(untrustedConfig, configPropertyNames);
1225
1225
  }
1226
- const config = typeCheckConfig$9(untrustedConfig);
1226
+ const config = typeCheckConfig$d(untrustedConfig);
1227
1227
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
1228
1228
  return null;
1229
1229
  }
1230
1230
  return config;
1231
1231
  }
1232
- function buildNetworkSnapshot$9(luvio, config, options) {
1233
- const resourceParams = createResourceParams$9(config);
1234
- const request = createResourceRequest$9(resourceParams);
1232
+ function buildNetworkSnapshot$d(luvio, config, options) {
1233
+ const resourceParams = createResourceParams$d(config);
1234
+ const request = createResourceRequest$d(resourceParams);
1235
1235
  return luvio.dispatchResourceRequest(request, options)
1236
1236
  .then((response) => {
1237
1237
  return luvio.handleSuccessResponse(() => {
1238
- const snapshot = ingestSuccess$8(luvio, resourceParams, response);
1238
+ const snapshot = ingestSuccess$a(luvio, resourceParams, response);
1239
1239
  return luvio.storeBroadcast().then(() => snapshot);
1240
1240
  }, () => {
1241
1241
  const cache = new StoreKeyMap();
1242
- getResponseCacheKeys$9(cache, luvio, resourceParams, response.body);
1242
+ getResponseCacheKeys$d(cache, luvio, resourceParams, response.body);
1243
1243
  return cache;
1244
1244
  });
1245
1245
  }, (response) => {
@@ -1249,24 +1249,24 @@ function buildNetworkSnapshot$9(luvio, config, options) {
1249
1249
  }
1250
1250
  const updateDashboardAdapterFactory = (luvio) => {
1251
1251
  return function updateDashboard(untrustedConfig) {
1252
- const config = validateAdapterConfig$9(untrustedConfig, updateDashboard_ConfigPropertyNames);
1252
+ const config = validateAdapterConfig$d(untrustedConfig, updateDashboard_ConfigPropertyNames);
1253
1253
  // Invalid or incomplete config
1254
1254
  if (config === null) {
1255
1255
  throw new Error('Invalid config for "updateDashboard"');
1256
1256
  }
1257
- return buildNetworkSnapshot$9(luvio, config);
1257
+ return buildNetworkSnapshot$d(luvio, config);
1258
1258
  };
1259
1259
  };
1260
1260
 
1261
1261
  const VERSION$6 = "13e8e39beeffee6e3f13ac9a24b8e8be";
1262
- function validate$d(obj, path = 'AnalyticsVisualizationRepresentation') {
1262
+ function validate$7(obj, path = 'AnalyticsVisualizationRepresentation') {
1263
1263
  const v_error = (() => {
1264
1264
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1265
1265
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
1266
1266
  }
1267
1267
  const obj_createdBy = obj.createdBy;
1268
1268
  const path_createdBy = path + '.createdBy';
1269
- const referencepath_createdByValidationError = validate$j(obj_createdBy, path_createdBy);
1269
+ const referencepath_createdByValidationError = validate$d(obj_createdBy, path_createdBy);
1270
1270
  if (referencepath_createdByValidationError !== null) {
1271
1271
  let message = 'Object doesn\'t match AnalyticsUserRepresentation (at "' + path_createdBy + '")\n';
1272
1272
  message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -1302,7 +1302,7 @@ function validate$d(obj, path = 'AnalyticsVisualizationRepresentation') {
1302
1302
  if (obj.lastModifiedBy !== undefined) {
1303
1303
  const obj_lastModifiedBy = obj.lastModifiedBy;
1304
1304
  const path_lastModifiedBy = path + '.lastModifiedBy';
1305
- const referencepath_lastModifiedByValidationError = validate$j(obj_lastModifiedBy, path_lastModifiedBy);
1305
+ const referencepath_lastModifiedByValidationError = validate$d(obj_lastModifiedBy, path_lastModifiedBy);
1306
1306
  if (referencepath_lastModifiedByValidationError !== null) {
1307
1307
  let message = 'Object doesn\'t match AnalyticsUserRepresentation (at "' + path_lastModifiedBy + '")\n';
1308
1308
  message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -1325,19 +1325,19 @@ function validate$d(obj, path = 'AnalyticsVisualizationRepresentation') {
1325
1325
  return v_error === undefined ? null : v_error;
1326
1326
  }
1327
1327
  const RepresentationType$6 = 'AnalyticsVisualizationRepresentation';
1328
- function keyBuilder$d(luvio, config) {
1328
+ function keyBuilder$h(luvio, config) {
1329
1329
  return keyPrefix + '::' + RepresentationType$6 + ':' + config.name;
1330
1330
  }
1331
1331
  function keyBuilderFromType$4(luvio, object) {
1332
1332
  const keyParams = {
1333
1333
  name: object.name
1334
1334
  };
1335
- return keyBuilder$d(luvio, keyParams);
1335
+ return keyBuilder$h(luvio, keyParams);
1336
1336
  }
1337
1337
  function normalize$6(input, existing, path, luvio, store, timestamp) {
1338
1338
  return input;
1339
1339
  }
1340
- const select$e = function AnalyticsVisualizationRepresentationSelect() {
1340
+ const select$g = function AnalyticsVisualizationRepresentationSelect() {
1341
1341
  return {
1342
1342
  kind: 'Fragment',
1343
1343
  version: VERSION$6,
@@ -1353,7 +1353,7 @@ function equals$6(existing, incoming) {
1353
1353
  }
1354
1354
  const ingest$6 = function AnalyticsVisualizationRepresentationIngest(input, path, luvio, store, timestamp) {
1355
1355
  if (process.env.NODE_ENV !== 'production') {
1356
- const validateError = validate$d(input);
1356
+ const validateError = validate$7(input);
1357
1357
  if (validateError !== null) {
1358
1358
  throw validateError;
1359
1359
  }
@@ -1374,7 +1374,7 @@ function getTypeCacheKeys$6(rootKeySet, luvio, input, fullPathFactory) {
1374
1374
  }
1375
1375
 
1376
1376
  const VERSION$5 = "342da25bfe5e13c7f4ccbc8aa0980a4f";
1377
- function validate$c(obj, path = 'AnalyticsVisualizationCollectionRepresentation') {
1377
+ function validate$6(obj, path = 'AnalyticsVisualizationCollectionRepresentation') {
1378
1378
  const v_error = (() => {
1379
1379
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1380
1380
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -1414,7 +1414,7 @@ function normalize$5(input, existing, path, luvio, store, timestamp) {
1414
1414
  }
1415
1415
  return input;
1416
1416
  }
1417
- const select$d = function AnalyticsVisualizationCollectionRepresentationSelect() {
1417
+ const select$f = function AnalyticsVisualizationCollectionRepresentationSelect() {
1418
1418
  return {
1419
1419
  kind: 'Fragment',
1420
1420
  version: VERSION$5,
@@ -1424,7 +1424,7 @@ const select$d = function AnalyticsVisualizationCollectionRepresentationSelect()
1424
1424
  name: 'visualizations',
1425
1425
  kind: 'Link',
1426
1426
  plural: true,
1427
- fragment: select$e()
1427
+ fragment: select$g()
1428
1428
  }
1429
1429
  ]
1430
1430
  };
@@ -1444,7 +1444,7 @@ function equals$5(existing, incoming) {
1444
1444
  }
1445
1445
  const ingest$5 = function AnalyticsVisualizationCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
1446
1446
  if (process.env.NODE_ENV !== 'production') {
1447
- const validateError = validate$c(input);
1447
+ const validateError = validate$6(input);
1448
1448
  if (validateError !== null) {
1449
1449
  throw validateError;
1450
1450
  }
@@ -1468,22 +1468,22 @@ function getTypeCacheKeys$5(rootKeySet, luvio, input, fullPathFactory) {
1468
1468
  }
1469
1469
  }
1470
1470
 
1471
- function select$c(luvio, params) {
1472
- return select$d();
1471
+ function select$e(luvio, params) {
1472
+ return select$f();
1473
1473
  }
1474
- function keyBuilder$c(luvio, params) {
1474
+ function keyBuilder$g(luvio, params) {
1475
1475
  return keyPrefix + '::AnalyticsVisualizationCollectionRepresentation:(' + 'limit:' + params.queryParams.limit + ',' + 'offset:' + params.queryParams.offset + ')';
1476
1476
  }
1477
- function getResponseCacheKeys$8(storeKeyMap, luvio, resourceParams, response) {
1478
- getTypeCacheKeys$5(storeKeyMap, luvio, response, () => keyBuilder$c(luvio, resourceParams));
1477
+ function getResponseCacheKeys$c(storeKeyMap, luvio, resourceParams, response) {
1478
+ getTypeCacheKeys$5(storeKeyMap, luvio, response, () => keyBuilder$g(luvio, resourceParams));
1479
1479
  }
1480
- function ingestSuccess$7(luvio, resourceParams, response, snapshotRefresh) {
1480
+ function ingestSuccess$9(luvio, resourceParams, response, snapshotRefresh) {
1481
1481
  const { body } = response;
1482
- const key = keyBuilder$c(luvio, resourceParams);
1482
+ const key = keyBuilder$g(luvio, resourceParams);
1483
1483
  luvio.storeIngest(key, ingest$5, body);
1484
1484
  const snapshot = luvio.storeLookup({
1485
1485
  recordId: key,
1486
- node: select$c(),
1486
+ node: select$e(),
1487
1487
  variables: {},
1488
1488
  }, snapshotRefresh);
1489
1489
  if (process.env.NODE_ENV !== 'production') {
@@ -1494,13 +1494,13 @@ function ingestSuccess$7(luvio, resourceParams, response, snapshotRefresh) {
1494
1494
  deepFreeze(snapshot.data);
1495
1495
  return snapshot;
1496
1496
  }
1497
- function ingestError$3(luvio, params, error, snapshotRefresh) {
1498
- const key = keyBuilder$c(luvio, params);
1497
+ function ingestError$4(luvio, params, error, snapshotRefresh) {
1498
+ const key = keyBuilder$g(luvio, params);
1499
1499
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
1500
1500
  luvio.storeIngestError(key, errorSnapshot);
1501
1501
  return errorSnapshot;
1502
1502
  }
1503
- function createResourceRequest$8(config) {
1503
+ function createResourceRequest$c(config) {
1504
1504
  const headers = {};
1505
1505
  return {
1506
1506
  baseUri: '/services/data/v62.0',
@@ -1514,111 +1514,111 @@ function createResourceRequest$8(config) {
1514
1514
  };
1515
1515
  }
1516
1516
 
1517
- const adapterName$8 = 'getVisualizations';
1517
+ const adapterName$c = 'getVisualizations';
1518
1518
  const getVisualizations_ConfigPropertyMetadata = [
1519
1519
  generateParamConfigMetadata('limit', false, 1 /* QueryParameter */, 3 /* Integer */),
1520
1520
  generateParamConfigMetadata('offset', false, 1 /* QueryParameter */, 3 /* Integer */),
1521
1521
  ];
1522
- const getVisualizations_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$8, getVisualizations_ConfigPropertyMetadata);
1523
- const createResourceParams$8 = /*#__PURE__*/ createResourceParams$f(getVisualizations_ConfigPropertyMetadata);
1524
- function keyBuilder$b(luvio, config) {
1525
- const resourceParams = createResourceParams$8(config);
1526
- return keyBuilder$c(luvio, resourceParams);
1522
+ const getVisualizations_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$c, getVisualizations_ConfigPropertyMetadata);
1523
+ const createResourceParams$c = /*#__PURE__*/ createResourceParams$j(getVisualizations_ConfigPropertyMetadata);
1524
+ function keyBuilder$f(luvio, config) {
1525
+ const resourceParams = createResourceParams$c(config);
1526
+ return keyBuilder$g(luvio, resourceParams);
1527
1527
  }
1528
- function typeCheckConfig$8(untrustedConfig) {
1528
+ function typeCheckConfig$c(untrustedConfig) {
1529
1529
  const config = {};
1530
- typeCheckConfig$f(untrustedConfig, config, getVisualizations_ConfigPropertyMetadata);
1530
+ typeCheckConfig$j(untrustedConfig, config, getVisualizations_ConfigPropertyMetadata);
1531
1531
  return config;
1532
1532
  }
1533
- function validateAdapterConfig$8(untrustedConfig, configPropertyNames) {
1533
+ function validateAdapterConfig$c(untrustedConfig, configPropertyNames) {
1534
1534
  if (!untrustedIsObject(untrustedConfig)) {
1535
1535
  return null;
1536
1536
  }
1537
1537
  if (process.env.NODE_ENV !== 'production') {
1538
1538
  validateConfig(untrustedConfig, configPropertyNames);
1539
1539
  }
1540
- const config = typeCheckConfig$8(untrustedConfig);
1540
+ const config = typeCheckConfig$c(untrustedConfig);
1541
1541
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
1542
1542
  return null;
1543
1543
  }
1544
1544
  return config;
1545
1545
  }
1546
- function adapterFragment$3(luvio, config) {
1547
- createResourceParams$8(config);
1548
- return select$c();
1546
+ function adapterFragment$4(luvio, config) {
1547
+ createResourceParams$c(config);
1548
+ return select$e();
1549
1549
  }
1550
- function onFetchResponseSuccess$3(luvio, config, resourceParams, response) {
1551
- const snapshot = ingestSuccess$7(luvio, resourceParams, response, {
1550
+ function onFetchResponseSuccess$4(luvio, config, resourceParams, response) {
1551
+ const snapshot = ingestSuccess$9(luvio, resourceParams, response, {
1552
1552
  config,
1553
- resolve: () => buildNetworkSnapshot$8(luvio, config, snapshotRefreshOptions)
1553
+ resolve: () => buildNetworkSnapshot$c(luvio, config, snapshotRefreshOptions)
1554
1554
  });
1555
1555
  return luvio.storeBroadcast().then(() => snapshot);
1556
1556
  }
1557
- function onFetchResponseError$3(luvio, config, resourceParams, response) {
1558
- const snapshot = ingestError$3(luvio, resourceParams, response, {
1557
+ function onFetchResponseError$4(luvio, config, resourceParams, response) {
1558
+ const snapshot = ingestError$4(luvio, resourceParams, response, {
1559
1559
  config,
1560
- resolve: () => buildNetworkSnapshot$8(luvio, config, snapshotRefreshOptions)
1560
+ resolve: () => buildNetworkSnapshot$c(luvio, config, snapshotRefreshOptions)
1561
1561
  });
1562
1562
  return luvio.storeBroadcast().then(() => snapshot);
1563
1563
  }
1564
- function buildNetworkSnapshot$8(luvio, config, options) {
1565
- const resourceParams = createResourceParams$8(config);
1566
- const request = createResourceRequest$8(resourceParams);
1564
+ function buildNetworkSnapshot$c(luvio, config, options) {
1565
+ const resourceParams = createResourceParams$c(config);
1566
+ const request = createResourceRequest$c(resourceParams);
1567
1567
  return luvio.dispatchResourceRequest(request, options)
1568
1568
  .then((response) => {
1569
- return luvio.handleSuccessResponse(() => onFetchResponseSuccess$3(luvio, config, resourceParams, response), () => {
1569
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess$4(luvio, config, resourceParams, response), () => {
1570
1570
  const cache = new StoreKeyMap();
1571
- getResponseCacheKeys$8(cache, luvio, resourceParams, response.body);
1571
+ getResponseCacheKeys$c(cache, luvio, resourceParams, response.body);
1572
1572
  return cache;
1573
1573
  });
1574
1574
  }, (response) => {
1575
- return luvio.handleErrorResponse(() => onFetchResponseError$3(luvio, config, resourceParams, response));
1575
+ return luvio.handleErrorResponse(() => onFetchResponseError$4(luvio, config, resourceParams, response));
1576
1576
  });
1577
1577
  }
1578
- function buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext) {
1579
- return buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext, buildNetworkSnapshot$8, undefined, false);
1578
+ function buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext) {
1579
+ return buildNetworkSnapshotCachePolicy$7(context, coercedAdapterRequestContext, buildNetworkSnapshot$c, undefined, false);
1580
1580
  }
1581
- function buildCachedSnapshotCachePolicy$3(context, storeLookup) {
1581
+ function buildCachedSnapshotCachePolicy$4(context, storeLookup) {
1582
1582
  const { luvio, config } = context;
1583
1583
  const selector = {
1584
- recordId: keyBuilder$b(luvio, config),
1585
- node: adapterFragment$3(luvio, config),
1584
+ recordId: keyBuilder$f(luvio, config),
1585
+ node: adapterFragment$4(luvio, config),
1586
1586
  variables: {},
1587
1587
  };
1588
1588
  const cacheSnapshot = storeLookup(selector, {
1589
1589
  config,
1590
- resolve: () => buildNetworkSnapshot$8(luvio, config, snapshotRefreshOptions)
1590
+ resolve: () => buildNetworkSnapshot$c(luvio, config, snapshotRefreshOptions)
1591
1591
  });
1592
1592
  return cacheSnapshot;
1593
1593
  }
1594
1594
  const getVisualizationsAdapterFactory = (luvio) => function UnifiedAnalytics__getVisualizations(untrustedConfig, requestContext) {
1595
- const config = validateAdapterConfig$8(untrustedConfig, getVisualizations_ConfigPropertyNames);
1595
+ const config = validateAdapterConfig$c(untrustedConfig, getVisualizations_ConfigPropertyNames);
1596
1596
  // Invalid or incomplete config
1597
1597
  if (config === null) {
1598
1598
  return null;
1599
1599
  }
1600
1600
  return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
1601
- buildCachedSnapshotCachePolicy$3, buildNetworkSnapshotCachePolicy$3);
1601
+ buildCachedSnapshotCachePolicy$4, buildNetworkSnapshotCachePolicy$4);
1602
1602
  };
1603
1603
 
1604
- function keyBuilder$a(luvio, params) {
1605
- return keyBuilder$d(luvio, {
1604
+ function keyBuilder$e(luvio, params) {
1605
+ return keyBuilder$h(luvio, {
1606
1606
  name: params.urlParams.visualizationIdOrApiName
1607
1607
  });
1608
1608
  }
1609
- function getResponseCacheKeys$7(cacheKeyMap, luvio, resourceParams) {
1610
- const key = keyBuilder$a(luvio, resourceParams);
1609
+ function getResponseCacheKeys$b(cacheKeyMap, luvio, resourceParams) {
1610
+ const key = keyBuilder$e(luvio, resourceParams);
1611
1611
  cacheKeyMap.set(key, {
1612
1612
  namespace: keyPrefix,
1613
1613
  representationName: RepresentationType$6,
1614
1614
  mergeable: false
1615
1615
  });
1616
1616
  }
1617
- function evictSuccess(luvio, resourceParams) {
1618
- const key = keyBuilder$a(luvio, resourceParams);
1617
+ function evictSuccess$2(luvio, resourceParams) {
1618
+ const key = keyBuilder$e(luvio, resourceParams);
1619
1619
  luvio.storeEvict(key);
1620
1620
  }
1621
- function createResourceRequest$7(config) {
1621
+ function createResourceRequest$b(config) {
1622
1622
  const headers = {};
1623
1623
  return {
1624
1624
  baseUri: '/services/data/v62.0',
@@ -1632,41 +1632,41 @@ function createResourceRequest$7(config) {
1632
1632
  };
1633
1633
  }
1634
1634
 
1635
- const adapterName$7 = 'deleteVisualization';
1635
+ const adapterName$b = 'deleteVisualization';
1636
1636
  const deleteVisualization_ConfigPropertyMetadata = [
1637
1637
  generateParamConfigMetadata('visualizationIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
1638
1638
  ];
1639
- const deleteVisualization_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$7, deleteVisualization_ConfigPropertyMetadata);
1640
- const createResourceParams$7 = /*#__PURE__*/ createResourceParams$f(deleteVisualization_ConfigPropertyMetadata);
1641
- function typeCheckConfig$7(untrustedConfig) {
1639
+ const deleteVisualization_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$b, deleteVisualization_ConfigPropertyMetadata);
1640
+ const createResourceParams$b = /*#__PURE__*/ createResourceParams$j(deleteVisualization_ConfigPropertyMetadata);
1641
+ function typeCheckConfig$b(untrustedConfig) {
1642
1642
  const config = {};
1643
- typeCheckConfig$f(untrustedConfig, config, deleteVisualization_ConfigPropertyMetadata);
1643
+ typeCheckConfig$j(untrustedConfig, config, deleteVisualization_ConfigPropertyMetadata);
1644
1644
  return config;
1645
1645
  }
1646
- function validateAdapterConfig$7(untrustedConfig, configPropertyNames) {
1646
+ function validateAdapterConfig$b(untrustedConfig, configPropertyNames) {
1647
1647
  if (!untrustedIsObject(untrustedConfig)) {
1648
1648
  return null;
1649
1649
  }
1650
1650
  if (process.env.NODE_ENV !== 'production') {
1651
1651
  validateConfig(untrustedConfig, configPropertyNames);
1652
1652
  }
1653
- const config = typeCheckConfig$7(untrustedConfig);
1653
+ const config = typeCheckConfig$b(untrustedConfig);
1654
1654
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
1655
1655
  return null;
1656
1656
  }
1657
1657
  return config;
1658
1658
  }
1659
- function buildNetworkSnapshot$7(luvio, config, options) {
1660
- const resourceParams = createResourceParams$7(config);
1661
- const request = createResourceRequest$7(resourceParams);
1659
+ function buildNetworkSnapshot$b(luvio, config, options) {
1660
+ const resourceParams = createResourceParams$b(config);
1661
+ const request = createResourceRequest$b(resourceParams);
1662
1662
  return luvio.dispatchResourceRequest(request, options)
1663
1663
  .then(() => {
1664
1664
  return luvio.handleSuccessResponse(() => {
1665
- evictSuccess(luvio, resourceParams);
1665
+ evictSuccess$2(luvio, resourceParams);
1666
1666
  return luvio.storeBroadcast();
1667
1667
  }, () => {
1668
1668
  const cache = new StoreKeyMap();
1669
- getResponseCacheKeys$7(cache, luvio, resourceParams);
1669
+ getResponseCacheKeys$b(cache, luvio, resourceParams);
1670
1670
  return cache;
1671
1671
  });
1672
1672
  }, (response) => {
@@ -1676,33 +1676,33 @@ function buildNetworkSnapshot$7(luvio, config, options) {
1676
1676
  }
1677
1677
  const deleteVisualizationAdapterFactory = (luvio) => {
1678
1678
  return function UnifiedAnalyticsdeleteVisualization(untrustedConfig) {
1679
- const config = validateAdapterConfig$7(untrustedConfig, deleteVisualization_ConfigPropertyNames);
1679
+ const config = validateAdapterConfig$b(untrustedConfig, deleteVisualization_ConfigPropertyNames);
1680
1680
  // Invalid or incomplete config
1681
1681
  if (config === null) {
1682
- throw new Error(`Invalid config for "${adapterName$7}"`);
1682
+ throw new Error(`Invalid config for "${adapterName$b}"`);
1683
1683
  }
1684
- return buildNetworkSnapshot$7(luvio, config);
1684
+ return buildNetworkSnapshot$b(luvio, config);
1685
1685
  };
1686
1686
  };
1687
1687
 
1688
- function select$b(luvio, params) {
1689
- return select$e();
1688
+ function select$d(luvio, params) {
1689
+ return select$g();
1690
1690
  }
1691
- function keyBuilder$9(luvio, params) {
1692
- return keyBuilder$d(luvio, {
1691
+ function keyBuilder$d(luvio, params) {
1692
+ return keyBuilder$h(luvio, {
1693
1693
  name: params.urlParams.visualizationIdOrApiName
1694
1694
  });
1695
1695
  }
1696
- function getResponseCacheKeys$6(storeKeyMap, luvio, resourceParams, response) {
1696
+ function getResponseCacheKeys$a(storeKeyMap, luvio, resourceParams, response) {
1697
1697
  getTypeCacheKeys$6(storeKeyMap, luvio, response);
1698
1698
  }
1699
- function ingestSuccess$6(luvio, resourceParams, response, snapshotRefresh) {
1699
+ function ingestSuccess$8(luvio, resourceParams, response, snapshotRefresh) {
1700
1700
  const { body } = response;
1701
- const key = keyBuilder$9(luvio, resourceParams);
1701
+ const key = keyBuilder$d(luvio, resourceParams);
1702
1702
  luvio.storeIngest(key, ingest$6, body);
1703
1703
  const snapshot = luvio.storeLookup({
1704
1704
  recordId: key,
1705
- node: select$b(),
1705
+ node: select$d(),
1706
1706
  variables: {},
1707
1707
  }, snapshotRefresh);
1708
1708
  if (process.env.NODE_ENV !== 'production') {
@@ -1713,13 +1713,13 @@ function ingestSuccess$6(luvio, resourceParams, response, snapshotRefresh) {
1713
1713
  deepFreeze(snapshot.data);
1714
1714
  return snapshot;
1715
1715
  }
1716
- function ingestError$2(luvio, params, error, snapshotRefresh) {
1717
- const key = keyBuilder$9(luvio, params);
1716
+ function ingestError$3(luvio, params, error, snapshotRefresh) {
1717
+ const key = keyBuilder$d(luvio, params);
1718
1718
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
1719
1719
  luvio.storeIngestError(key, errorSnapshot);
1720
1720
  return errorSnapshot;
1721
1721
  }
1722
- function createResourceRequest$6(config) {
1722
+ function createResourceRequest$a(config) {
1723
1723
  const headers = {};
1724
1724
  return {
1725
1725
  baseUri: '/services/data/v62.0',
@@ -1733,101 +1733,106 @@ function createResourceRequest$6(config) {
1733
1733
  };
1734
1734
  }
1735
1735
 
1736
- const adapterName$6 = 'getVisualization';
1736
+ const adapterName$a = 'getVisualization';
1737
1737
  const getVisualization_ConfigPropertyMetadata = [
1738
1738
  generateParamConfigMetadata('visualizationIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
1739
1739
  ];
1740
- const getVisualization_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, getVisualization_ConfigPropertyMetadata);
1741
- const createResourceParams$6 = /*#__PURE__*/ createResourceParams$f(getVisualization_ConfigPropertyMetadata);
1742
- function keyBuilder$8(luvio, config) {
1743
- const resourceParams = createResourceParams$6(config);
1744
- return keyBuilder$9(luvio, resourceParams);
1740
+ const getVisualization_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$a, getVisualization_ConfigPropertyMetadata);
1741
+ const createResourceParams$a = /*#__PURE__*/ createResourceParams$j(getVisualization_ConfigPropertyMetadata);
1742
+ function keyBuilder$c(luvio, config) {
1743
+ const resourceParams = createResourceParams$a(config);
1744
+ return keyBuilder$d(luvio, resourceParams);
1745
1745
  }
1746
- function typeCheckConfig$6(untrustedConfig) {
1746
+ function typeCheckConfig$a(untrustedConfig) {
1747
1747
  const config = {};
1748
- typeCheckConfig$f(untrustedConfig, config, getVisualization_ConfigPropertyMetadata);
1748
+ typeCheckConfig$j(untrustedConfig, config, getVisualization_ConfigPropertyMetadata);
1749
1749
  return config;
1750
1750
  }
1751
- function validateAdapterConfig$6(untrustedConfig, configPropertyNames) {
1751
+ function validateAdapterConfig$a(untrustedConfig, configPropertyNames) {
1752
1752
  if (!untrustedIsObject(untrustedConfig)) {
1753
1753
  return null;
1754
1754
  }
1755
1755
  if (process.env.NODE_ENV !== 'production') {
1756
1756
  validateConfig(untrustedConfig, configPropertyNames);
1757
1757
  }
1758
- const config = typeCheckConfig$6(untrustedConfig);
1758
+ const config = typeCheckConfig$a(untrustedConfig);
1759
1759
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
1760
1760
  return null;
1761
1761
  }
1762
1762
  return config;
1763
1763
  }
1764
- function adapterFragment$2(luvio, config) {
1765
- createResourceParams$6(config);
1766
- return select$b();
1764
+ function adapterFragment$3(luvio, config) {
1765
+ createResourceParams$a(config);
1766
+ return select$d();
1767
1767
  }
1768
- function onFetchResponseSuccess$2(luvio, config, resourceParams, response) {
1769
- const snapshot = ingestSuccess$6(luvio, resourceParams, response, {
1768
+ function onFetchResponseSuccess$3(luvio, config, resourceParams, response) {
1769
+ const snapshot = ingestSuccess$8(luvio, resourceParams, response, {
1770
1770
  config,
1771
- resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
1771
+ resolve: () => buildNetworkSnapshot$a(luvio, config, snapshotRefreshOptions)
1772
1772
  });
1773
1773
  return luvio.storeBroadcast().then(() => snapshot);
1774
1774
  }
1775
- function onFetchResponseError$2(luvio, config, resourceParams, response) {
1776
- const snapshot = ingestError$2(luvio, resourceParams, response, {
1775
+ function onFetchResponseError$3(luvio, config, resourceParams, response) {
1776
+ const snapshot = ingestError$3(luvio, resourceParams, response, {
1777
1777
  config,
1778
- resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
1778
+ resolve: () => buildNetworkSnapshot$a(luvio, config, snapshotRefreshOptions)
1779
1779
  });
1780
1780
  return luvio.storeBroadcast().then(() => snapshot);
1781
1781
  }
1782
- function buildNetworkSnapshot$6(luvio, config, options) {
1783
- const resourceParams = createResourceParams$6(config);
1784
- const request = createResourceRequest$6(resourceParams);
1782
+ function buildNetworkSnapshot$a(luvio, config, options) {
1783
+ const resourceParams = createResourceParams$a(config);
1784
+ const request = createResourceRequest$a(resourceParams);
1785
1785
  return luvio.dispatchResourceRequest(request, options)
1786
1786
  .then((response) => {
1787
- return luvio.handleSuccessResponse(() => onFetchResponseSuccess$2(luvio, config, resourceParams, response), () => {
1787
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess$3(luvio, config, resourceParams, response), () => {
1788
1788
  const cache = new StoreKeyMap();
1789
- getResponseCacheKeys$6(cache, luvio, resourceParams, response.body);
1789
+ getResponseCacheKeys$a(cache, luvio, resourceParams, response.body);
1790
1790
  return cache;
1791
1791
  });
1792
1792
  }, (response) => {
1793
- return luvio.handleErrorResponse(() => onFetchResponseError$2(luvio, config, resourceParams, response));
1793
+ return luvio.handleErrorResponse(() => onFetchResponseError$3(luvio, config, resourceParams, response));
1794
1794
  });
1795
1795
  }
1796
- function buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext) {
1797
- return buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext, buildNetworkSnapshot$6, undefined, false);
1796
+ function buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext) {
1797
+ return buildNetworkSnapshotCachePolicy$7(context, coercedAdapterRequestContext, buildNetworkSnapshot$a, undefined, false);
1798
1798
  }
1799
- function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
1799
+ function buildCachedSnapshotCachePolicy$3(context, storeLookup) {
1800
1800
  const { luvio, config } = context;
1801
1801
  const selector = {
1802
- recordId: keyBuilder$8(luvio, config),
1803
- node: adapterFragment$2(luvio, config),
1802
+ recordId: keyBuilder$c(luvio, config),
1803
+ node: adapterFragment$3(luvio, config),
1804
1804
  variables: {},
1805
1805
  };
1806
1806
  const cacheSnapshot = storeLookup(selector, {
1807
1807
  config,
1808
- resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
1808
+ resolve: () => buildNetworkSnapshot$a(luvio, config, snapshotRefreshOptions)
1809
1809
  });
1810
1810
  return cacheSnapshot;
1811
1811
  }
1812
1812
  const getVisualizationAdapterFactory = (luvio) => function UnifiedAnalytics__getVisualization(untrustedConfig, requestContext) {
1813
- const config = validateAdapterConfig$6(untrustedConfig, getVisualization_ConfigPropertyNames);
1813
+ const config = validateAdapterConfig$a(untrustedConfig, getVisualization_ConfigPropertyNames);
1814
1814
  // Invalid or incomplete config
1815
1815
  if (config === null) {
1816
1816
  return null;
1817
1817
  }
1818
1818
  return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
1819
- buildCachedSnapshotCachePolicy$2, buildNetworkSnapshotCachePolicy$2);
1819
+ buildCachedSnapshotCachePolicy$3, buildNetworkSnapshotCachePolicy$3);
1820
1820
  };
1821
1821
 
1822
- const VERSION$4 = "bb71c0bf5563bfa6de1fe757209f3722";
1823
- function validate$b(obj, path = 'WorkspaceRepresentation') {
1822
+ const VERSION$4 = "cd4ffaf2332ab8ec006033f2e4339ad7";
1823
+ function validate$5(obj, path = 'WorkspaceRepresentation') {
1824
1824
  const v_error = (() => {
1825
1825
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1826
1826
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
1827
1827
  }
1828
+ const obj_cacheableKey = obj.cacheableKey;
1829
+ const path_cacheableKey = path + '.cacheableKey';
1830
+ if (typeof obj_cacheableKey !== 'string') {
1831
+ return new TypeError('Expected "string" but received "' + typeof obj_cacheableKey + '" (at "' + path_cacheableKey + '")');
1832
+ }
1828
1833
  const obj_createdBy = obj.createdBy;
1829
1834
  const path_createdBy = path + '.createdBy';
1830
- const referencepath_createdByValidationError = validate$j(obj_createdBy, path_createdBy);
1835
+ const referencepath_createdByValidationError = validate$d(obj_createdBy, path_createdBy);
1831
1836
  if (referencepath_createdByValidationError !== null) {
1832
1837
  let message = 'Object doesn\'t match AnalyticsUserRepresentation (at "' + path_createdBy + '")\n';
1833
1838
  message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -1853,6 +1858,20 @@ function validate$b(obj, path = 'WorkspaceRepresentation') {
1853
1858
  if (typeof obj_label !== 'string') {
1854
1859
  return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
1855
1860
  }
1861
+ if (obj.lastModifiedBy !== undefined) {
1862
+ const obj_lastModifiedBy = obj.lastModifiedBy;
1863
+ const path_lastModifiedBy = path + '.lastModifiedBy';
1864
+ if (obj_lastModifiedBy === undefined) {
1865
+ return new TypeError('Expected "defined" but received "' + typeof obj_lastModifiedBy + '" (at "' + path_lastModifiedBy + '")');
1866
+ }
1867
+ }
1868
+ if (obj.lastModifiedDate !== undefined) {
1869
+ const obj_lastModifiedDate = obj.lastModifiedDate;
1870
+ const path_lastModifiedDate = path + '.lastModifiedDate';
1871
+ if (typeof obj_lastModifiedDate !== 'string') {
1872
+ return new TypeError('Expected "string" but received "' + typeof obj_lastModifiedDate + '" (at "' + path_lastModifiedDate + '")');
1873
+ }
1874
+ }
1856
1875
  const obj_name = obj.name;
1857
1876
  const path_name = path + '.name';
1858
1877
  if (typeof obj_name !== 'string') {
@@ -1867,19 +1886,19 @@ function validate$b(obj, path = 'WorkspaceRepresentation') {
1867
1886
  return v_error === undefined ? null : v_error;
1868
1887
  }
1869
1888
  const RepresentationType$4 = 'WorkspaceRepresentation';
1870
- function keyBuilder$7(luvio, config) {
1889
+ function keyBuilder$b(luvio, config) {
1871
1890
  return keyPrefix + '::' + RepresentationType$4 + ':' + config.name;
1872
1891
  }
1873
1892
  function keyBuilderFromType$3(luvio, object) {
1874
1893
  const keyParams = {
1875
- name: object.name
1894
+ name: object.cacheableKey
1876
1895
  };
1877
- return keyBuilder$7(luvio, keyParams);
1896
+ return keyBuilder$b(luvio, keyParams);
1878
1897
  }
1879
1898
  function normalize$4(input, existing, path, luvio, store, timestamp) {
1880
1899
  return input;
1881
1900
  }
1882
- const select$a = function WorkspaceRepresentationSelect() {
1901
+ const select$c = function WorkspaceRepresentationSelect() {
1883
1902
  return {
1884
1903
  kind: 'Fragment',
1885
1904
  version: VERSION$4,
@@ -1895,7 +1914,7 @@ function equals$4(existing, incoming) {
1895
1914
  }
1896
1915
  const ingest$4 = function WorkspaceRepresentationIngest(input, path, luvio, store, timestamp) {
1897
1916
  if (process.env.NODE_ENV !== 'production') {
1898
- const validateError = validate$b(input);
1917
+ const validateError = validate$5(input);
1899
1918
  if (validateError !== null) {
1900
1919
  throw validateError;
1901
1920
  }
@@ -1916,7 +1935,7 @@ function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
1916
1935
  }
1917
1936
 
1918
1937
  const VERSION$3 = "25327d65bf7ad14ee671ec5a1642b193";
1919
- function validate$a(obj, path = 'WorkspaceCollectionRepresentation') {
1938
+ function validate$4(obj, path = 'WorkspaceCollectionRepresentation') {
1920
1939
  const v_error = (() => {
1921
1940
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1922
1941
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -1956,7 +1975,7 @@ function normalize$3(input, existing, path, luvio, store, timestamp) {
1956
1975
  }
1957
1976
  return input;
1958
1977
  }
1959
- const select$9 = function WorkspaceCollectionRepresentationSelect() {
1978
+ const select$b = function WorkspaceCollectionRepresentationSelect() {
1960
1979
  return {
1961
1980
  kind: 'Fragment',
1962
1981
  version: VERSION$3,
@@ -1966,7 +1985,7 @@ const select$9 = function WorkspaceCollectionRepresentationSelect() {
1966
1985
  name: 'workspaces',
1967
1986
  kind: 'Link',
1968
1987
  plural: true,
1969
- fragment: select$a()
1988
+ fragment: select$c()
1970
1989
  }
1971
1990
  ]
1972
1991
  };
@@ -1986,7 +2005,7 @@ function equals$3(existing, incoming) {
1986
2005
  }
1987
2006
  const ingest$3 = function WorkspaceCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
1988
2007
  if (process.env.NODE_ENV !== 'production') {
1989
- const validateError = validate$a(input);
2008
+ const validateError = validate$4(input);
1990
2009
  if (validateError !== null) {
1991
2010
  throw validateError;
1992
2011
  }
@@ -2010,22 +2029,22 @@ function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
2010
2029
  }
2011
2030
  }
2012
2031
 
2013
- function select$8(luvio, params) {
2014
- return select$9();
2032
+ function select$a(luvio, params) {
2033
+ return select$b();
2015
2034
  }
2016
- function keyBuilder$6(luvio, params) {
2035
+ function keyBuilder$a(luvio, params) {
2017
2036
  return keyPrefix + '::WorkspaceCollectionRepresentation:(' + 'limit:' + params.queryParams.limit + ',' + 'offset:' + params.queryParams.offset + ')';
2018
2037
  }
2019
- function getResponseCacheKeys$5(storeKeyMap, luvio, resourceParams, response) {
2020
- getTypeCacheKeys$3(storeKeyMap, luvio, response, () => keyBuilder$6(luvio, resourceParams));
2038
+ function getResponseCacheKeys$9(storeKeyMap, luvio, resourceParams, response) {
2039
+ getTypeCacheKeys$3(storeKeyMap, luvio, response, () => keyBuilder$a(luvio, resourceParams));
2021
2040
  }
2022
- function ingestSuccess$5(luvio, resourceParams, response, snapshotRefresh) {
2041
+ function ingestSuccess$7(luvio, resourceParams, response, snapshotRefresh) {
2023
2042
  const { body } = response;
2024
- const key = keyBuilder$6(luvio, resourceParams);
2043
+ const key = keyBuilder$a(luvio, resourceParams);
2025
2044
  luvio.storeIngest(key, ingest$3, body);
2026
2045
  const snapshot = luvio.storeLookup({
2027
2046
  recordId: key,
2028
- node: select$8(),
2047
+ node: select$a(),
2029
2048
  variables: {},
2030
2049
  }, snapshotRefresh);
2031
2050
  if (process.env.NODE_ENV !== 'production') {
@@ -2036,13 +2055,13 @@ function ingestSuccess$5(luvio, resourceParams, response, snapshotRefresh) {
2036
2055
  deepFreeze(snapshot.data);
2037
2056
  return snapshot;
2038
2057
  }
2039
- function ingestError$1(luvio, params, error, snapshotRefresh) {
2040
- const key = keyBuilder$6(luvio, params);
2058
+ function ingestError$2(luvio, params, error, snapshotRefresh) {
2059
+ const key = keyBuilder$a(luvio, params);
2041
2060
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
2042
2061
  luvio.storeIngestError(key, errorSnapshot);
2043
2062
  return errorSnapshot;
2044
2063
  }
2045
- function createResourceRequest$5(config) {
2064
+ function createResourceRequest$9(config) {
2046
2065
  const headers = {};
2047
2066
  return {
2048
2067
  baseUri: '/services/data/v62.0',
@@ -2056,106 +2075,106 @@ function createResourceRequest$5(config) {
2056
2075
  };
2057
2076
  }
2058
2077
 
2059
- const adapterName$5 = 'getWorkspaces';
2078
+ const adapterName$9 = 'getWorkspaces';
2060
2079
  const getWorkspaces_ConfigPropertyMetadata = [
2061
2080
  generateParamConfigMetadata('limit', false, 1 /* QueryParameter */, 3 /* Integer */),
2062
2081
  generateParamConfigMetadata('offset', false, 1 /* QueryParameter */, 3 /* Integer */),
2063
2082
  ];
2064
- const getWorkspaces_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, getWorkspaces_ConfigPropertyMetadata);
2065
- const createResourceParams$5 = /*#__PURE__*/ createResourceParams$f(getWorkspaces_ConfigPropertyMetadata);
2066
- function keyBuilder$5(luvio, config) {
2067
- const resourceParams = createResourceParams$5(config);
2068
- return keyBuilder$6(luvio, resourceParams);
2083
+ const getWorkspaces_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$9, getWorkspaces_ConfigPropertyMetadata);
2084
+ const createResourceParams$9 = /*#__PURE__*/ createResourceParams$j(getWorkspaces_ConfigPropertyMetadata);
2085
+ function keyBuilder$9(luvio, config) {
2086
+ const resourceParams = createResourceParams$9(config);
2087
+ return keyBuilder$a(luvio, resourceParams);
2069
2088
  }
2070
- function typeCheckConfig$5(untrustedConfig) {
2089
+ function typeCheckConfig$9(untrustedConfig) {
2071
2090
  const config = {};
2072
- typeCheckConfig$f(untrustedConfig, config, getWorkspaces_ConfigPropertyMetadata);
2091
+ typeCheckConfig$j(untrustedConfig, config, getWorkspaces_ConfigPropertyMetadata);
2073
2092
  return config;
2074
2093
  }
2075
- function validateAdapterConfig$5(untrustedConfig, configPropertyNames) {
2094
+ function validateAdapterConfig$9(untrustedConfig, configPropertyNames) {
2076
2095
  if (!untrustedIsObject(untrustedConfig)) {
2077
2096
  return null;
2078
2097
  }
2079
2098
  if (process.env.NODE_ENV !== 'production') {
2080
2099
  validateConfig(untrustedConfig, configPropertyNames);
2081
2100
  }
2082
- const config = typeCheckConfig$5(untrustedConfig);
2101
+ const config = typeCheckConfig$9(untrustedConfig);
2083
2102
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
2084
2103
  return null;
2085
2104
  }
2086
2105
  return config;
2087
2106
  }
2088
- function adapterFragment$1(luvio, config) {
2089
- createResourceParams$5(config);
2090
- return select$8();
2107
+ function adapterFragment$2(luvio, config) {
2108
+ createResourceParams$9(config);
2109
+ return select$a();
2091
2110
  }
2092
- function onFetchResponseSuccess$1(luvio, config, resourceParams, response) {
2093
- const snapshot = ingestSuccess$5(luvio, resourceParams, response, {
2111
+ function onFetchResponseSuccess$2(luvio, config, resourceParams, response) {
2112
+ const snapshot = ingestSuccess$7(luvio, resourceParams, response, {
2094
2113
  config,
2095
- resolve: () => buildNetworkSnapshot$5(luvio, config, snapshotRefreshOptions)
2114
+ resolve: () => buildNetworkSnapshot$9(luvio, config, snapshotRefreshOptions)
2096
2115
  });
2097
2116
  return luvio.storeBroadcast().then(() => snapshot);
2098
2117
  }
2099
- function onFetchResponseError$1(luvio, config, resourceParams, response) {
2100
- const snapshot = ingestError$1(luvio, resourceParams, response, {
2118
+ function onFetchResponseError$2(luvio, config, resourceParams, response) {
2119
+ const snapshot = ingestError$2(luvio, resourceParams, response, {
2101
2120
  config,
2102
- resolve: () => buildNetworkSnapshot$5(luvio, config, snapshotRefreshOptions)
2121
+ resolve: () => buildNetworkSnapshot$9(luvio, config, snapshotRefreshOptions)
2103
2122
  });
2104
2123
  return luvio.storeBroadcast().then(() => snapshot);
2105
2124
  }
2106
- function buildNetworkSnapshot$5(luvio, config, options) {
2107
- const resourceParams = createResourceParams$5(config);
2108
- const request = createResourceRequest$5(resourceParams);
2125
+ function buildNetworkSnapshot$9(luvio, config, options) {
2126
+ const resourceParams = createResourceParams$9(config);
2127
+ const request = createResourceRequest$9(resourceParams);
2109
2128
  return luvio.dispatchResourceRequest(request, options)
2110
2129
  .then((response) => {
2111
- return luvio.handleSuccessResponse(() => onFetchResponseSuccess$1(luvio, config, resourceParams, response), () => {
2130
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess$2(luvio, config, resourceParams, response), () => {
2112
2131
  const cache = new StoreKeyMap();
2113
- getResponseCacheKeys$5(cache, luvio, resourceParams, response.body);
2132
+ getResponseCacheKeys$9(cache, luvio, resourceParams, response.body);
2114
2133
  return cache;
2115
2134
  });
2116
2135
  }, (response) => {
2117
- return luvio.handleErrorResponse(() => onFetchResponseError$1(luvio, config, resourceParams, response));
2136
+ return luvio.handleErrorResponse(() => onFetchResponseError$2(luvio, config, resourceParams, response));
2118
2137
  });
2119
2138
  }
2120
- function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
2121
- return buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext, buildNetworkSnapshot$5, undefined, false);
2139
+ function buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext) {
2140
+ return buildNetworkSnapshotCachePolicy$7(context, coercedAdapterRequestContext, buildNetworkSnapshot$9, undefined, false);
2122
2141
  }
2123
- function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
2142
+ function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
2124
2143
  const { luvio, config } = context;
2125
2144
  const selector = {
2126
- recordId: keyBuilder$5(luvio, config),
2127
- node: adapterFragment$1(luvio, config),
2145
+ recordId: keyBuilder$9(luvio, config),
2146
+ node: adapterFragment$2(luvio, config),
2128
2147
  variables: {},
2129
2148
  };
2130
2149
  const cacheSnapshot = storeLookup(selector, {
2131
2150
  config,
2132
- resolve: () => buildNetworkSnapshot$5(luvio, config, snapshotRefreshOptions)
2151
+ resolve: () => buildNetworkSnapshot$9(luvio, config, snapshotRefreshOptions)
2133
2152
  });
2134
2153
  return cacheSnapshot;
2135
2154
  }
2136
2155
  const getWorkspacesAdapterFactory = (luvio) => function UnifiedAnalytics__getWorkspaces(untrustedConfig, requestContext) {
2137
- const config = validateAdapterConfig$5(untrustedConfig, getWorkspaces_ConfigPropertyNames);
2156
+ const config = validateAdapterConfig$9(untrustedConfig, getWorkspaces_ConfigPropertyNames);
2138
2157
  // Invalid or incomplete config
2139
2158
  if (config === null) {
2140
2159
  return null;
2141
2160
  }
2142
2161
  return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
2143
- buildCachedSnapshotCachePolicy$1, buildNetworkSnapshotCachePolicy$1);
2162
+ buildCachedSnapshotCachePolicy$2, buildNetworkSnapshotCachePolicy$2);
2144
2163
  };
2145
2164
 
2146
- function select$7(luvio, params) {
2147
- return select$a();
2165
+ function select$9(luvio, params) {
2166
+ return select$c();
2148
2167
  }
2149
- function getResponseCacheKeys$4(storeKeyMap, luvio, resourceParams, response) {
2168
+ function getResponseCacheKeys$8(storeKeyMap, luvio, resourceParams, response) {
2150
2169
  getTypeCacheKeys$4(storeKeyMap, luvio, response);
2151
2170
  }
2152
- function ingestSuccess$4(luvio, resourceParams, response) {
2171
+ function ingestSuccess$6(luvio, resourceParams, response) {
2153
2172
  const { body } = response;
2154
2173
  const key = keyBuilderFromType$3(luvio, body);
2155
2174
  luvio.storeIngest(key, ingest$4, body);
2156
2175
  const snapshot = luvio.storeLookup({
2157
2176
  recordId: key,
2158
- node: select$7(),
2177
+ node: select$9(),
2159
2178
  variables: {},
2160
2179
  });
2161
2180
  if (process.env.NODE_ENV !== 'production') {
@@ -2166,7 +2185,7 @@ function ingestSuccess$4(luvio, resourceParams, response) {
2166
2185
  deepFreeze(snapshot.data);
2167
2186
  return snapshot;
2168
2187
  }
2169
- function createResourceRequest$4(config) {
2188
+ function createResourceRequest$8(config) {
2170
2189
  const headers = {};
2171
2190
  return {
2172
2191
  baseUri: '/services/data/v62.0',
@@ -2180,44 +2199,44 @@ function createResourceRequest$4(config) {
2180
2199
  };
2181
2200
  }
2182
2201
 
2183
- const adapterName$4 = 'createWorkspace';
2202
+ const adapterName$8 = 'createWorkspace';
2184
2203
  const createWorkspace_ConfigPropertyMetadata = [
2185
2204
  generateParamConfigMetadata('description', false, 2 /* Body */, 0 /* String */),
2186
2205
  generateParamConfigMetadata('id', false, 2 /* Body */, 0 /* String */),
2187
2206
  generateParamConfigMetadata('label', true, 2 /* Body */, 0 /* String */),
2188
2207
  generateParamConfigMetadata('name', false, 2 /* Body */, 0 /* String */),
2189
2208
  ];
2190
- const createWorkspace_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, createWorkspace_ConfigPropertyMetadata);
2191
- const createResourceParams$4 = /*#__PURE__*/ createResourceParams$f(createWorkspace_ConfigPropertyMetadata);
2192
- function typeCheckConfig$4(untrustedConfig) {
2209
+ const createWorkspace_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$8, createWorkspace_ConfigPropertyMetadata);
2210
+ const createResourceParams$8 = /*#__PURE__*/ createResourceParams$j(createWorkspace_ConfigPropertyMetadata);
2211
+ function typeCheckConfig$8(untrustedConfig) {
2193
2212
  const config = {};
2194
- typeCheckConfig$f(untrustedConfig, config, createWorkspace_ConfigPropertyMetadata);
2213
+ typeCheckConfig$j(untrustedConfig, config, createWorkspace_ConfigPropertyMetadata);
2195
2214
  return config;
2196
2215
  }
2197
- function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
2216
+ function validateAdapterConfig$8(untrustedConfig, configPropertyNames) {
2198
2217
  if (!untrustedIsObject(untrustedConfig)) {
2199
2218
  return null;
2200
2219
  }
2201
2220
  if (process.env.NODE_ENV !== 'production') {
2202
2221
  validateConfig(untrustedConfig, configPropertyNames);
2203
2222
  }
2204
- const config = typeCheckConfig$4(untrustedConfig);
2223
+ const config = typeCheckConfig$8(untrustedConfig);
2205
2224
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
2206
2225
  return null;
2207
2226
  }
2208
2227
  return config;
2209
2228
  }
2210
- function buildNetworkSnapshot$4(luvio, config, options) {
2211
- const resourceParams = createResourceParams$4(config);
2212
- const request = createResourceRequest$4(resourceParams);
2229
+ function buildNetworkSnapshot$8(luvio, config, options) {
2230
+ const resourceParams = createResourceParams$8(config);
2231
+ const request = createResourceRequest$8(resourceParams);
2213
2232
  return luvio.dispatchResourceRequest(request, options)
2214
2233
  .then((response) => {
2215
2234
  return luvio.handleSuccessResponse(() => {
2216
- const snapshot = ingestSuccess$4(luvio, resourceParams, response);
2235
+ const snapshot = ingestSuccess$6(luvio, resourceParams, response);
2217
2236
  return luvio.storeBroadcast().then(() => snapshot);
2218
2237
  }, () => {
2219
2238
  const cache = new StoreKeyMap();
2220
- getResponseCacheKeys$4(cache, luvio, resourceParams, response.body);
2239
+ getResponseCacheKeys$8(cache, luvio, resourceParams, response.body);
2221
2240
  return cache;
2222
2241
  });
2223
2242
  }, (response) => {
@@ -2227,135 +2246,38 @@ function buildNetworkSnapshot$4(luvio, config, options) {
2227
2246
  }
2228
2247
  const createWorkspaceAdapterFactory = (luvio) => {
2229
2248
  return function createWorkspace(untrustedConfig) {
2230
- const config = validateAdapterConfig$4(untrustedConfig, createWorkspace_ConfigPropertyNames);
2249
+ const config = validateAdapterConfig$8(untrustedConfig, createWorkspace_ConfigPropertyNames);
2231
2250
  // Invalid or incomplete config
2232
2251
  if (config === null) {
2233
2252
  throw new Error('Invalid config for "createWorkspace"');
2234
2253
  }
2235
- return buildNetworkSnapshot$4(luvio, config);
2254
+ return buildNetworkSnapshot$8(luvio, config);
2236
2255
  };
2237
2256
  };
2238
2257
 
2239
- const TTL$2 = 500;
2240
- const VERSION$2 = "9cc9d397fbf7728f812bb0c66c128f4b";
2241
- function validate$9(obj, path = 'SubscriptionDigestConfigOutputRepresentation') {
2242
- const v_error = (() => {
2243
- if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2244
- return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
2245
- }
2246
- const obj_isEnabled = obj.isEnabled;
2247
- const path_isEnabled = path + '.isEnabled';
2248
- if (typeof obj_isEnabled !== 'boolean') {
2249
- return new TypeError('Expected "boolean" but received "' + typeof obj_isEnabled + '" (at "' + path_isEnabled + '")');
2250
- }
2251
- const obj_scheduleType = obj.scheduleType;
2252
- const path_scheduleType = path + '.scheduleType';
2253
- if (typeof obj_scheduleType !== 'string') {
2254
- return new TypeError('Expected "string" but received "' + typeof obj_scheduleType + '" (at "' + path_scheduleType + '")');
2255
- }
2256
- const obj_userId = obj.userId;
2257
- const path_userId = path + '.userId';
2258
- if (typeof obj_userId !== 'string') {
2259
- return new TypeError('Expected "string" but received "' + typeof obj_userId + '" (at "' + path_userId + '")');
2260
- }
2261
- })();
2262
- return v_error === undefined ? null : v_error;
2263
- }
2264
- const RepresentationType$2 = 'SubscriptionDigestConfigOutputRepresentation';
2265
- function keyBuilder$4(luvio, config) {
2266
- return keyPrefix + '::' + RepresentationType$2 + ':' + config.userId;
2267
- }
2268
- function keyBuilderFromType$2(luvio, object) {
2269
- const keyParams = {
2270
- userId: object.userId
2271
- };
2272
- return keyBuilder$4(luvio, keyParams);
2273
- }
2274
- function normalize$2(input, existing, path, luvio, store, timestamp) {
2275
- return input;
2276
- }
2277
- const select$6 = function SubscriptionDigestConfigOutputRepresentationSelect() {
2278
- return {
2279
- kind: 'Fragment',
2280
- version: VERSION$2,
2281
- private: [],
2282
- opaque: true
2283
- };
2284
- };
2285
- function equals$2(existing, incoming) {
2286
- if (JSONStringify(incoming) !== JSONStringify(existing)) {
2287
- return false;
2288
- }
2289
- return true;
2258
+ function keyBuilder$8(luvio, params) {
2259
+ return keyBuilder$b(luvio, {
2260
+ name: params.urlParams.workspaceIdOrApiName
2261
+ });
2290
2262
  }
2291
- const ingest$2 = function SubscriptionDigestConfigOutputRepresentationIngest(input, path, luvio, store, timestamp) {
2292
- if (process.env.NODE_ENV !== 'production') {
2293
- const validateError = validate$9(input);
2294
- if (validateError !== null) {
2295
- throw validateError;
2296
- }
2297
- }
2298
- const key = keyBuilderFromType$2(luvio, input);
2299
- const ttlToUse = TTL$2;
2300
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$2, "UnifiedAnalytics", VERSION$2, RepresentationType$2, equals$2);
2301
- return createLink(key);
2302
- };
2303
- function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
2304
- // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
2305
- const rootKey = keyBuilderFromType$2(luvio, input);
2306
- rootKeySet.set(rootKey, {
2263
+ function getResponseCacheKeys$7(cacheKeyMap, luvio, resourceParams) {
2264
+ const key = keyBuilder$8(luvio, resourceParams);
2265
+ cacheKeyMap.set(key, {
2307
2266
  namespace: keyPrefix,
2308
- representationName: RepresentationType$2,
2267
+ representationName: RepresentationType$4,
2309
2268
  mergeable: false
2310
2269
  });
2311
2270
  }
2312
-
2313
- function select$5(luvio, params) {
2314
- return select$6();
2315
- }
2316
- function keyBuilder$3(luvio, params) {
2317
- return keyBuilder$4(luvio, {
2318
- userId: params.urlParams.digestConfigOwner
2319
- });
2320
- }
2321
- function getResponseCacheKeys$3(storeKeyMap, luvio, resourceParams, response) {
2322
- getTypeCacheKeys$2(storeKeyMap, luvio, response);
2323
- }
2324
- function ingestSuccess$3(luvio, resourceParams, response, snapshotRefresh) {
2325
- const { body } = response;
2326
- const key = keyBuilder$3(luvio, resourceParams);
2327
- luvio.storeIngest(key, ingest$2, body);
2328
- const snapshot = luvio.storeLookup({
2329
- recordId: key,
2330
- node: select$5(),
2331
- variables: {},
2332
- }, snapshotRefresh);
2333
- if (process.env.NODE_ENV !== 'production') {
2334
- if (snapshot.state !== 'Fulfilled') {
2335
- throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
2336
- }
2337
- }
2338
- deepFreeze(snapshot.data);
2339
- return snapshot;
2340
- }
2341
- function ingestError(luvio, params, error, snapshotRefresh) {
2342
- const key = keyBuilder$3(luvio, params);
2343
- const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
2344
- const storeMetadataParams = {
2345
- ttl: TTL$2,
2346
- namespace: keyPrefix,
2347
- version: VERSION$2,
2348
- representationName: RepresentationType$2
2349
- };
2350
- luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
2351
- return errorSnapshot;
2271
+ function evictSuccess$1(luvio, resourceParams) {
2272
+ const key = keyBuilder$8(luvio, resourceParams);
2273
+ luvio.storeEvict(key);
2352
2274
  }
2353
- function createResourceRequest$3(config) {
2275
+ function createResourceRequest$7(config) {
2354
2276
  const headers = {};
2355
2277
  return {
2356
2278
  baseUri: '/services/data/v62.0',
2357
- basePath: '/unified-analytics/subscriptions/digest/' + config.urlParams.digestConfigOwner + '',
2358
- method: 'get',
2279
+ basePath: '/unified-analytics/workspaces/' + config.urlParams.workspaceIdOrApiName + '',
2280
+ method: 'delete',
2359
2281
  body: null,
2360
2282
  urlParams: config.urlParams,
2361
2283
  queryParams: {},
@@ -2364,105 +2286,206 @@ function createResourceRequest$3(config) {
2364
2286
  };
2365
2287
  }
2366
2288
 
2367
- const adapterName$3 = 'getSubscriptionDigestConfig';
2368
- const getSubscriptionDigestConfig_ConfigPropertyMetadata = [
2369
- generateParamConfigMetadata('digestConfigOwner', true, 0 /* UrlParameter */, 0 /* String */),
2289
+ const adapterName$7 = 'deleteWorkspace';
2290
+ const deleteWorkspace_ConfigPropertyMetadata = [
2291
+ generateParamConfigMetadata('workspaceIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
2370
2292
  ];
2371
- const getSubscriptionDigestConfig_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, getSubscriptionDigestConfig_ConfigPropertyMetadata);
2372
- const createResourceParams$3 = /*#__PURE__*/ createResourceParams$f(getSubscriptionDigestConfig_ConfigPropertyMetadata);
2373
- function keyBuilder$2(luvio, config) {
2374
- const resourceParams = createResourceParams$3(config);
2375
- return keyBuilder$3(luvio, resourceParams);
2376
- }
2377
- function typeCheckConfig$3(untrustedConfig) {
2293
+ const deleteWorkspace_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$7, deleteWorkspace_ConfigPropertyMetadata);
2294
+ const createResourceParams$7 = /*#__PURE__*/ createResourceParams$j(deleteWorkspace_ConfigPropertyMetadata);
2295
+ function typeCheckConfig$7(untrustedConfig) {
2378
2296
  const config = {};
2379
- typeCheckConfig$f(untrustedConfig, config, getSubscriptionDigestConfig_ConfigPropertyMetadata);
2297
+ typeCheckConfig$j(untrustedConfig, config, deleteWorkspace_ConfigPropertyMetadata);
2380
2298
  return config;
2381
2299
  }
2382
- function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
2300
+ function validateAdapterConfig$7(untrustedConfig, configPropertyNames) {
2383
2301
  if (!untrustedIsObject(untrustedConfig)) {
2384
2302
  return null;
2385
2303
  }
2386
2304
  if (process.env.NODE_ENV !== 'production') {
2387
2305
  validateConfig(untrustedConfig, configPropertyNames);
2388
2306
  }
2389
- const config = typeCheckConfig$3(untrustedConfig);
2307
+ const config = typeCheckConfig$7(untrustedConfig);
2390
2308
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
2391
2309
  return null;
2392
2310
  }
2393
2311
  return config;
2394
2312
  }
2395
- function adapterFragment(luvio, config) {
2396
- createResourceParams$3(config);
2397
- return select$5();
2398
- }
2399
- function onFetchResponseSuccess(luvio, config, resourceParams, response) {
2400
- const snapshot = ingestSuccess$3(luvio, resourceParams, response, {
2401
- config,
2402
- resolve: () => buildNetworkSnapshot$3(luvio, config, snapshotRefreshOptions)
2403
- });
2404
- return luvio.storeBroadcast().then(() => snapshot);
2313
+ function buildNetworkSnapshot$7(luvio, config, options) {
2314
+ const resourceParams = createResourceParams$7(config);
2315
+ const request = createResourceRequest$7(resourceParams);
2316
+ return luvio.dispatchResourceRequest(request, options)
2317
+ .then(() => {
2318
+ return luvio.handleSuccessResponse(() => {
2319
+ evictSuccess$1(luvio, resourceParams);
2320
+ return luvio.storeBroadcast();
2321
+ }, () => {
2322
+ const cache = new StoreKeyMap();
2323
+ getResponseCacheKeys$7(cache, luvio, resourceParams);
2324
+ return cache;
2325
+ });
2326
+ }, (response) => {
2327
+ deepFreeze(response);
2328
+ throw response;
2329
+ });
2405
2330
  }
2406
- function onFetchResponseError(luvio, config, resourceParams, response) {
2407
- const snapshot = ingestError(luvio, resourceParams, response, {
2331
+ const deleteWorkspaceAdapterFactory = (luvio) => {
2332
+ return function UnifiedAnalyticsdeleteWorkspace(untrustedConfig) {
2333
+ const config = validateAdapterConfig$7(untrustedConfig, deleteWorkspace_ConfigPropertyNames);
2334
+ // Invalid or incomplete config
2335
+ if (config === null) {
2336
+ throw new Error(`Invalid config for "${adapterName$7}"`);
2337
+ }
2338
+ return buildNetworkSnapshot$7(luvio, config);
2339
+ };
2340
+ };
2341
+
2342
+ function select$8(luvio, params) {
2343
+ return select$c();
2344
+ }
2345
+ function keyBuilder$7(luvio, params) {
2346
+ return keyBuilder$b(luvio, {
2347
+ name: params.urlParams.workspaceIdOrApiName
2348
+ });
2349
+ }
2350
+ function getResponseCacheKeys$6(storeKeyMap, luvio, resourceParams, response) {
2351
+ getTypeCacheKeys$4(storeKeyMap, luvio, response);
2352
+ }
2353
+ function ingestSuccess$5(luvio, resourceParams, response, snapshotRefresh) {
2354
+ const { body } = response;
2355
+ const key = keyBuilder$7(luvio, resourceParams);
2356
+ luvio.storeIngest(key, ingest$4, body);
2357
+ const snapshot = luvio.storeLookup({
2358
+ recordId: key,
2359
+ node: select$8(),
2360
+ variables: {},
2361
+ }, snapshotRefresh);
2362
+ if (process.env.NODE_ENV !== 'production') {
2363
+ if (snapshot.state !== 'Fulfilled') {
2364
+ throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
2365
+ }
2366
+ }
2367
+ deepFreeze(snapshot.data);
2368
+ return snapshot;
2369
+ }
2370
+ function ingestError$1(luvio, params, error, snapshotRefresh) {
2371
+ const key = keyBuilder$7(luvio, params);
2372
+ const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
2373
+ luvio.storeIngestError(key, errorSnapshot);
2374
+ return errorSnapshot;
2375
+ }
2376
+ function createResourceRequest$6(config) {
2377
+ const headers = {};
2378
+ return {
2379
+ baseUri: '/services/data/v62.0',
2380
+ basePath: '/unified-analytics/workspaces/' + config.urlParams.workspaceIdOrApiName + '',
2381
+ method: 'get',
2382
+ body: null,
2383
+ urlParams: config.urlParams,
2384
+ queryParams: {},
2385
+ headers,
2386
+ priority: 'normal',
2387
+ };
2388
+ }
2389
+
2390
+ const adapterName$6 = 'getWorkspaceByIdOrName';
2391
+ const getWorkspaceByIdOrName_ConfigPropertyMetadata = [
2392
+ generateParamConfigMetadata('workspaceIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
2393
+ ];
2394
+ const getWorkspaceByIdOrName_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, getWorkspaceByIdOrName_ConfigPropertyMetadata);
2395
+ const createResourceParams$6 = /*#__PURE__*/ createResourceParams$j(getWorkspaceByIdOrName_ConfigPropertyMetadata);
2396
+ function keyBuilder$6(luvio, config) {
2397
+ const resourceParams = createResourceParams$6(config);
2398
+ return keyBuilder$7(luvio, resourceParams);
2399
+ }
2400
+ function typeCheckConfig$6(untrustedConfig) {
2401
+ const config = {};
2402
+ typeCheckConfig$j(untrustedConfig, config, getWorkspaceByIdOrName_ConfigPropertyMetadata);
2403
+ return config;
2404
+ }
2405
+ function validateAdapterConfig$6(untrustedConfig, configPropertyNames) {
2406
+ if (!untrustedIsObject(untrustedConfig)) {
2407
+ return null;
2408
+ }
2409
+ if (process.env.NODE_ENV !== 'production') {
2410
+ validateConfig(untrustedConfig, configPropertyNames);
2411
+ }
2412
+ const config = typeCheckConfig$6(untrustedConfig);
2413
+ if (!areRequiredParametersPresent(config, configPropertyNames)) {
2414
+ return null;
2415
+ }
2416
+ return config;
2417
+ }
2418
+ function adapterFragment$1(luvio, config) {
2419
+ createResourceParams$6(config);
2420
+ return select$8();
2421
+ }
2422
+ function onFetchResponseSuccess$1(luvio, config, resourceParams, response) {
2423
+ const snapshot = ingestSuccess$5(luvio, resourceParams, response, {
2408
2424
  config,
2409
- resolve: () => buildNetworkSnapshot$3(luvio, config, snapshotRefreshOptions)
2425
+ resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
2410
2426
  });
2411
2427
  return luvio.storeBroadcast().then(() => snapshot);
2412
2428
  }
2413
- function buildNetworkSnapshot$3(luvio, config, options) {
2414
- const resourceParams = createResourceParams$3(config);
2415
- const request = createResourceRequest$3(resourceParams);
2429
+ function onFetchResponseError$1(luvio, config, resourceParams, response) {
2430
+ const snapshot = ingestError$1(luvio, resourceParams, response, {
2431
+ config,
2432
+ resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
2433
+ });
2434
+ return luvio.storeBroadcast().then(() => snapshot);
2435
+ }
2436
+ function buildNetworkSnapshot$6(luvio, config, options) {
2437
+ const resourceParams = createResourceParams$6(config);
2438
+ const request = createResourceRequest$6(resourceParams);
2416
2439
  return luvio.dispatchResourceRequest(request, options)
2417
2440
  .then((response) => {
2418
- return luvio.handleSuccessResponse(() => onFetchResponseSuccess(luvio, config, resourceParams, response), () => {
2441
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess$1(luvio, config, resourceParams, response), () => {
2419
2442
  const cache = new StoreKeyMap();
2420
- getResponseCacheKeys$3(cache, luvio, resourceParams, response.body);
2443
+ getResponseCacheKeys$6(cache, luvio, resourceParams, response.body);
2421
2444
  return cache;
2422
2445
  });
2423
2446
  }, (response) => {
2424
- return luvio.handleErrorResponse(() => onFetchResponseError(luvio, config, resourceParams, response));
2447
+ return luvio.handleErrorResponse(() => onFetchResponseError$1(luvio, config, resourceParams, response));
2425
2448
  });
2426
2449
  }
2427
- function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
2428
- return buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext, buildNetworkSnapshot$3, undefined, false);
2450
+ function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
2451
+ return buildNetworkSnapshotCachePolicy$7(context, coercedAdapterRequestContext, buildNetworkSnapshot$6, undefined, false);
2429
2452
  }
2430
- function buildCachedSnapshotCachePolicy(context, storeLookup) {
2453
+ function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
2431
2454
  const { luvio, config } = context;
2432
2455
  const selector = {
2433
- recordId: keyBuilder$2(luvio, config),
2434
- node: adapterFragment(luvio, config),
2456
+ recordId: keyBuilder$6(luvio, config),
2457
+ node: adapterFragment$1(luvio, config),
2435
2458
  variables: {},
2436
2459
  };
2437
2460
  const cacheSnapshot = storeLookup(selector, {
2438
2461
  config,
2439
- resolve: () => buildNetworkSnapshot$3(luvio, config, snapshotRefreshOptions)
2462
+ resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
2440
2463
  });
2441
2464
  return cacheSnapshot;
2442
2465
  }
2443
- const getSubscriptionDigestConfigAdapterFactory = (luvio) => function UnifiedAnalytics__getSubscriptionDigestConfig(untrustedConfig, requestContext) {
2444
- const config = validateAdapterConfig$3(untrustedConfig, getSubscriptionDigestConfig_ConfigPropertyNames);
2466
+ const getWorkspaceByIdOrNameAdapterFactory = (luvio) => function UnifiedAnalytics__getWorkspaceByIdOrName(untrustedConfig, requestContext) {
2467
+ const config = validateAdapterConfig$6(untrustedConfig, getWorkspaceByIdOrName_ConfigPropertyNames);
2445
2468
  // Invalid or incomplete config
2446
2469
  if (config === null) {
2447
2470
  return null;
2448
2471
  }
2449
2472
  return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
2450
- buildCachedSnapshotCachePolicy, buildNetworkSnapshotCachePolicy);
2473
+ buildCachedSnapshotCachePolicy$1, buildNetworkSnapshotCachePolicy$1);
2451
2474
  };
2452
2475
 
2453
- function select$4(luvio, params) {
2454
- return select$6();
2476
+ function select$7(luvio, params) {
2477
+ return select$c();
2455
2478
  }
2456
- function getResponseCacheKeys$2(storeKeyMap, luvio, resourceParams, response) {
2457
- getTypeCacheKeys$2(storeKeyMap, luvio, response);
2479
+ function getResponseCacheKeys$5(storeKeyMap, luvio, resourceParams, response) {
2480
+ getTypeCacheKeys$4(storeKeyMap, luvio, response);
2458
2481
  }
2459
- function ingestSuccess$2(luvio, resourceParams, response) {
2482
+ function ingestSuccess$4(luvio, resourceParams, response) {
2460
2483
  const { body } = response;
2461
- const key = keyBuilderFromType$2(luvio, body);
2462
- luvio.storeIngest(key, ingest$2, body);
2484
+ const key = keyBuilderFromType$3(luvio, body);
2485
+ luvio.storeIngest(key, ingest$4, body);
2463
2486
  const snapshot = luvio.storeLookup({
2464
2487
  recordId: key,
2465
- node: select$4(),
2488
+ node: select$7(),
2466
2489
  variables: {},
2467
2490
  });
2468
2491
  if (process.env.NODE_ENV !== 'production') {
@@ -2473,11 +2496,11 @@ function ingestSuccess$2(luvio, resourceParams, response) {
2473
2496
  deepFreeze(snapshot.data);
2474
2497
  return snapshot;
2475
2498
  }
2476
- function createResourceRequest$2(config) {
2499
+ function createResourceRequest$5(config) {
2477
2500
  const headers = {};
2478
2501
  return {
2479
2502
  baseUri: '/services/data/v62.0',
2480
- basePath: '/unified-analytics/subscriptions/digest/' + config.urlParams.digestConfigOwner + '',
2503
+ basePath: '/unified-analytics/workspaces/' + config.urlParams.workspaceIdOrApiName + '',
2481
2504
  method: 'patch',
2482
2505
  body: config.body,
2483
2506
  urlParams: config.urlParams,
@@ -2487,43 +2510,45 @@ function createResourceRequest$2(config) {
2487
2510
  };
2488
2511
  }
2489
2512
 
2490
- const adapterName$2 = 'updateSubscriptionDigestConfig';
2491
- const updateSubscriptionDigestConfig_ConfigPropertyMetadata = [
2492
- generateParamConfigMetadata('digestConfigOwner', true, 0 /* UrlParameter */, 0 /* String */),
2493
- generateParamConfigMetadata('isEnabled', true, 2 /* Body */, 1 /* Boolean */),
2494
- generateParamConfigMetadata('scheduleType', true, 2 /* Body */, 0 /* String */),
2513
+ const adapterName$5 = 'updateWorkspace';
2514
+ const updateWorkspace_ConfigPropertyMetadata = [
2515
+ generateParamConfigMetadata('workspaceIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
2516
+ generateParamConfigMetadata('description', false, 2 /* Body */, 0 /* String */),
2517
+ generateParamConfigMetadata('id', false, 2 /* Body */, 0 /* String */),
2518
+ generateParamConfigMetadata('label', true, 2 /* Body */, 0 /* String */),
2519
+ generateParamConfigMetadata('name', false, 2 /* Body */, 0 /* String */),
2495
2520
  ];
2496
- const updateSubscriptionDigestConfig_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, updateSubscriptionDigestConfig_ConfigPropertyMetadata);
2497
- const createResourceParams$2 = /*#__PURE__*/ createResourceParams$f(updateSubscriptionDigestConfig_ConfigPropertyMetadata);
2498
- function typeCheckConfig$2(untrustedConfig) {
2521
+ const updateWorkspace_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, updateWorkspace_ConfigPropertyMetadata);
2522
+ const createResourceParams$5 = /*#__PURE__*/ createResourceParams$j(updateWorkspace_ConfigPropertyMetadata);
2523
+ function typeCheckConfig$5(untrustedConfig) {
2499
2524
  const config = {};
2500
- typeCheckConfig$f(untrustedConfig, config, updateSubscriptionDigestConfig_ConfigPropertyMetadata);
2525
+ typeCheckConfig$j(untrustedConfig, config, updateWorkspace_ConfigPropertyMetadata);
2501
2526
  return config;
2502
2527
  }
2503
- function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
2528
+ function validateAdapterConfig$5(untrustedConfig, configPropertyNames) {
2504
2529
  if (!untrustedIsObject(untrustedConfig)) {
2505
2530
  return null;
2506
2531
  }
2507
2532
  if (process.env.NODE_ENV !== 'production') {
2508
2533
  validateConfig(untrustedConfig, configPropertyNames);
2509
2534
  }
2510
- const config = typeCheckConfig$2(untrustedConfig);
2535
+ const config = typeCheckConfig$5(untrustedConfig);
2511
2536
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
2512
2537
  return null;
2513
2538
  }
2514
2539
  return config;
2515
2540
  }
2516
- function buildNetworkSnapshot$2(luvio, config, options) {
2517
- const resourceParams = createResourceParams$2(config);
2518
- const request = createResourceRequest$2(resourceParams);
2541
+ function buildNetworkSnapshot$5(luvio, config, options) {
2542
+ const resourceParams = createResourceParams$5(config);
2543
+ const request = createResourceRequest$5(resourceParams);
2519
2544
  return luvio.dispatchResourceRequest(request, options)
2520
2545
  .then((response) => {
2521
2546
  return luvio.handleSuccessResponse(() => {
2522
- const snapshot = ingestSuccess$2(luvio, resourceParams, response);
2547
+ const snapshot = ingestSuccess$4(luvio, resourceParams, response);
2523
2548
  return luvio.storeBroadcast().then(() => snapshot);
2524
2549
  }, () => {
2525
2550
  const cache = new StoreKeyMap();
2526
- getResponseCacheKeys$2(cache, luvio, resourceParams, response.body);
2551
+ getResponseCacheKeys$5(cache, luvio, resourceParams, response.body);
2527
2552
  return cache;
2528
2553
  });
2529
2554
  }, (response) => {
@@ -2531,604 +2556,325 @@ function buildNetworkSnapshot$2(luvio, config, options) {
2531
2556
  throw response;
2532
2557
  });
2533
2558
  }
2534
- const updateSubscriptionDigestConfigAdapterFactory = (luvio) => {
2535
- return function updateSubscriptionDigestConfig(untrustedConfig) {
2536
- const config = validateAdapterConfig$2(untrustedConfig, updateSubscriptionDigestConfig_ConfigPropertyNames);
2559
+ const updateWorkspaceAdapterFactory = (luvio) => {
2560
+ return function updateWorkspace(untrustedConfig) {
2561
+ const config = validateAdapterConfig$5(untrustedConfig, updateWorkspace_ConfigPropertyNames);
2537
2562
  // Invalid or incomplete config
2538
2563
  if (config === null) {
2539
- throw new Error('Invalid config for "updateSubscriptionDigestConfig"');
2564
+ throw new Error('Invalid config for "updateWorkspace"');
2540
2565
  }
2541
- return buildNetworkSnapshot$2(luvio, config);
2566
+ return buildNetworkSnapshot$5(luvio, config);
2542
2567
  };
2543
2568
  };
2544
2569
 
2545
- function validate$8(obj, path = 'LibraryAssetsPreviewInputRepresentation') {
2570
+ const VERSION$2 = "4abc4f793ed7181313c3ae7365a6fb8b";
2571
+ function validate$3(obj, path = 'WorkspaceAssetRepresentation') {
2546
2572
  const v_error = (() => {
2547
2573
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2548
2574
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
2549
2575
  }
2550
- const obj_keys = ObjectKeys(obj);
2551
- for (let i = 0; i < obj_keys.length; i++) {
2552
- const key = obj_keys[i];
2553
- const obj_prop = obj[key];
2554
- const path_prop = path + '["' + key + '"]';
2555
- if (obj_prop === undefined) {
2556
- return new TypeError('Expected "defined" but received "' + typeof obj_prop + '" (at "' + path_prop + '")');
2557
- }
2558
- }
2559
- })();
2560
- return v_error === undefined ? null : v_error;
2561
- }
2562
-
2563
- function validate$7(obj, path = 'TuaUserRepresentation') {
2564
- const v_error = (() => {
2565
- if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2566
- return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
2567
- }
2568
- const obj_keys = ObjectKeys(obj);
2569
- for (let i = 0; i < obj_keys.length; i++) {
2570
- const key = obj_keys[i];
2571
- const obj_prop = obj[key];
2572
- const path_prop = path + '["' + key + '"]';
2573
- if (obj_prop === undefined) {
2574
- return new TypeError('Expected "defined" but received "' + typeof obj_prop + '" (at "' + path_prop + '")');
2575
- }
2576
- }
2577
- })();
2578
- return v_error === undefined ? null : v_error;
2579
- }
2580
-
2581
- function validate$6(obj, path = 'TuaAssetTemplateCustomAttributesRepresentation') {
2582
- const v_error = (() => {
2583
- if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2584
- return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
2576
+ const obj_assetId = obj.assetId;
2577
+ const path_assetId = path + '.assetId';
2578
+ if (typeof obj_assetId !== 'string') {
2579
+ return new TypeError('Expected "string" but received "' + typeof obj_assetId + '" (at "' + path_assetId + '")');
2585
2580
  }
2586
- const obj_label = obj.label;
2587
- const path_label = path + '.label';
2588
- let obj_label_union0 = null;
2589
- const obj_label_union0_error = (() => {
2590
- if (typeof obj_label !== 'string') {
2591
- return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
2592
- }
2593
- })();
2594
- if (obj_label_union0_error != null) {
2595
- obj_label_union0 = obj_label_union0_error.message;
2581
+ const obj_assetType = obj.assetType;
2582
+ const path_assetType = path + '.assetType';
2583
+ if (typeof obj_assetType !== 'string') {
2584
+ return new TypeError('Expected "string" but received "' + typeof obj_assetType + '" (at "' + path_assetType + '")');
2596
2585
  }
2597
- let obj_label_union1 = null;
2598
- const obj_label_union1_error = (() => {
2599
- if (obj_label !== null) {
2600
- return new TypeError('Expected "null" but received "' + typeof obj_label + '" (at "' + path_label + '")');
2601
- }
2602
- })();
2603
- if (obj_label_union1_error != null) {
2604
- obj_label_union1 = obj_label_union1_error.message;
2586
+ const obj_assetUsageType = obj.assetUsageType;
2587
+ const path_assetUsageType = path + '.assetUsageType';
2588
+ if (typeof obj_assetUsageType !== 'string') {
2589
+ return new TypeError('Expected "string" but received "' + typeof obj_assetUsageType + '" (at "' + path_assetUsageType + '")');
2605
2590
  }
2606
- if (obj_label_union0 && obj_label_union1) {
2607
- let message = 'Object doesn\'t match union (at "' + path_label + '")';
2608
- message += '\n' + obj_label_union0.split('\n').map((line) => '\t' + line).join('\n');
2609
- message += '\n' + obj_label_union1.split('\n').map((line) => '\t' + line).join('\n');
2591
+ const obj_createdBy = obj.createdBy;
2592
+ const path_createdBy = path + '.createdBy';
2593
+ const referencepath_createdByValidationError = validate$d(obj_createdBy, path_createdBy);
2594
+ if (referencepath_createdByValidationError !== null) {
2595
+ let message = 'Object doesn\'t match AnalyticsUserRepresentation (at "' + path_createdBy + '")\n';
2596
+ message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
2610
2597
  return new TypeError(message);
2611
2598
  }
2612
- const obj_values = obj.values;
2613
- const path_values = path + '.values';
2614
- if (!ArrayIsArray(obj_values)) {
2615
- return new TypeError('Expected "array" but received "' + typeof obj_values + '" (at "' + path_values + '")');
2616
- }
2617
- for (let i = 0; i < obj_values.length; i++) {
2618
- const obj_values_item = obj_values[i];
2619
- const path_values_item = path_values + '[' + i + ']';
2620
- let obj_values_item_union0 = null;
2621
- const obj_values_item_union0_error = (() => {
2622
- if (typeof obj_values_item !== 'string') {
2623
- return new TypeError('Expected "string" but received "' + typeof obj_values_item + '" (at "' + path_values_item + '")');
2624
- }
2625
- })();
2626
- if (obj_values_item_union0_error != null) {
2627
- obj_values_item_union0 = obj_values_item_union0_error.message;
2628
- }
2629
- let obj_values_item_union1 = null;
2630
- const obj_values_item_union1_error = (() => {
2631
- if (obj_values_item !== null) {
2632
- return new TypeError('Expected "null" but received "' + typeof obj_values_item + '" (at "' + path_values_item + '")');
2633
- }
2634
- })();
2635
- if (obj_values_item_union1_error != null) {
2636
- obj_values_item_union1 = obj_values_item_union1_error.message;
2637
- }
2638
- if (obj_values_item_union0 && obj_values_item_union1) {
2639
- let message = 'Object doesn\'t match union (at "' + path_values_item + '")';
2640
- message += '\n' + obj_values_item_union0.split('\n').map((line) => '\t' + line).join('\n');
2641
- message += '\n' + obj_values_item_union1.split('\n').map((line) => '\t' + line).join('\n');
2642
- return new TypeError(message);
2643
- }
2599
+ const obj_createdDate = obj.createdDate;
2600
+ const path_createdDate = path + '.createdDate';
2601
+ if (typeof obj_createdDate !== 'string') {
2602
+ return new TypeError('Expected "string" but received "' + typeof obj_createdDate + '" (at "' + path_createdDate + '")');
2603
+ }
2604
+ const obj_url = obj.url;
2605
+ const path_url = path + '.url';
2606
+ if (typeof obj_url !== 'string') {
2607
+ return new TypeError('Expected "string" but received "' + typeof obj_url + '" (at "' + path_url + '")');
2644
2608
  }
2645
2609
  })();
2646
2610
  return v_error === undefined ? null : v_error;
2647
2611
  }
2648
-
2649
- function validate$5(obj, path = 'TuaAssetTemplateIconsRepresentation') {
2650
- const v_error = (() => {
2651
- if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2652
- return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
2653
- }
2654
- const obj_keys = ObjectKeys(obj);
2655
- for (let i = 0; i < obj_keys.length; i++) {
2656
- const key = obj_keys[i];
2657
- const obj_prop = obj[key];
2658
- const path_prop = path + '["' + key + '"]';
2659
- if (obj_prop === undefined) {
2660
- return new TypeError('Expected "defined" but received "' + typeof obj_prop + '" (at "' + path_prop + '")');
2661
- }
2612
+ const RepresentationType$2 = 'WorkspaceAssetRepresentation';
2613
+ function keyBuilder$5(luvio, config) {
2614
+ return keyPrefix + '::' + RepresentationType$2 + ':' + config.assetId;
2615
+ }
2616
+ function keyBuilderFromType$2(luvio, object) {
2617
+ const keyParams = {
2618
+ assetId: object.assetId
2619
+ };
2620
+ return keyBuilder$5(luvio, keyParams);
2621
+ }
2622
+ function normalize$2(input, existing, path, luvio, store, timestamp) {
2623
+ return input;
2624
+ }
2625
+ const select$6 = function WorkspaceAssetRepresentationSelect() {
2626
+ return {
2627
+ kind: 'Fragment',
2628
+ version: VERSION$2,
2629
+ private: [],
2630
+ opaque: true
2631
+ };
2632
+ };
2633
+ function equals$2(existing, incoming) {
2634
+ if (JSONStringify(incoming) !== JSONStringify(existing)) {
2635
+ return false;
2636
+ }
2637
+ return true;
2638
+ }
2639
+ const ingest$2 = function WorkspaceAssetRepresentationIngest(input, path, luvio, store, timestamp) {
2640
+ if (process.env.NODE_ENV !== 'production') {
2641
+ const validateError = validate$3(input);
2642
+ if (validateError !== null) {
2643
+ throw validateError;
2662
2644
  }
2663
- })();
2664
- return v_error === undefined ? null : v_error;
2645
+ }
2646
+ const key = keyBuilderFromType$2(luvio, input);
2647
+ const ttlToUse = path.ttl !== undefined ? path.ttl : 60000;
2648
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$2, "UnifiedAnalytics", VERSION$2, RepresentationType$2, equals$2);
2649
+ return createLink(key);
2650
+ };
2651
+ function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
2652
+ // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
2653
+ const rootKey = keyBuilderFromType$2(luvio, input);
2654
+ rootKeySet.set(rootKey, {
2655
+ namespace: keyPrefix,
2656
+ representationName: RepresentationType$2,
2657
+ mergeable: false
2658
+ });
2665
2659
  }
2666
2660
 
2667
- function validate$4(obj, path = 'TuaAssetTemplateReleaseRepresentation') {
2668
- const v_error = (() => {
2669
- if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2670
- return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
2671
- }
2672
- const obj_notesUrl = obj.notesUrl;
2673
- const path_notesUrl = path + '.notesUrl';
2674
- let obj_notesUrl_union0 = null;
2675
- const obj_notesUrl_union0_error = (() => {
2676
- if (typeof obj_notesUrl !== 'string') {
2677
- return new TypeError('Expected "string" but received "' + typeof obj_notesUrl + '" (at "' + path_notesUrl + '")');
2678
- }
2679
- })();
2680
- if (obj_notesUrl_union0_error != null) {
2681
- obj_notesUrl_union0 = obj_notesUrl_union0_error.message;
2682
- }
2683
- let obj_notesUrl_union1 = null;
2684
- const obj_notesUrl_union1_error = (() => {
2685
- if (obj_notesUrl !== null) {
2686
- return new TypeError('Expected "null" but received "' + typeof obj_notesUrl + '" (at "' + path_notesUrl + '")');
2687
- }
2688
- })();
2689
- if (obj_notesUrl_union1_error != null) {
2690
- obj_notesUrl_union1 = obj_notesUrl_union1_error.message;
2691
- }
2692
- if (obj_notesUrl_union0 && obj_notesUrl_union1) {
2693
- let message = 'Object doesn\'t match union (at "' + path_notesUrl + '")';
2694
- message += '\n' + obj_notesUrl_union0.split('\n').map((line) => '\t' + line).join('\n');
2695
- message += '\n' + obj_notesUrl_union1.split('\n').map((line) => '\t' + line).join('\n');
2696
- return new TypeError(message);
2697
- }
2698
- const obj_templateVersion = obj.templateVersion;
2699
- const path_templateVersion = path + '.templateVersion';
2700
- let obj_templateVersion_union0 = null;
2701
- const obj_templateVersion_union0_error = (() => {
2702
- if (typeof obj_templateVersion !== 'string') {
2703
- return new TypeError('Expected "string" but received "' + typeof obj_templateVersion + '" (at "' + path_templateVersion + '")');
2704
- }
2705
- })();
2706
- if (obj_templateVersion_union0_error != null) {
2707
- obj_templateVersion_union0 = obj_templateVersion_union0_error.message;
2708
- }
2709
- let obj_templateVersion_union1 = null;
2710
- const obj_templateVersion_union1_error = (() => {
2711
- if (obj_templateVersion !== null) {
2712
- return new TypeError('Expected "null" but received "' + typeof obj_templateVersion + '" (at "' + path_templateVersion + '")');
2713
- }
2714
- })();
2715
- if (obj_templateVersion_union1_error != null) {
2716
- obj_templateVersion_union1 = obj_templateVersion_union1_error.message;
2717
- }
2718
- if (obj_templateVersion_union0 && obj_templateVersion_union1) {
2719
- let message = 'Object doesn\'t match union (at "' + path_templateVersion + '")';
2720
- message += '\n' + obj_templateVersion_union0.split('\n').map((line) => '\t' + line).join('\n');
2721
- message += '\n' + obj_templateVersion_union1.split('\n').map((line) => '\t' + line).join('\n');
2722
- return new TypeError(message);
2661
+ function select$5(luvio, params) {
2662
+ return select$6();
2663
+ }
2664
+ function getResponseCacheKeys$4(storeKeyMap, luvio, resourceParams, response) {
2665
+ getTypeCacheKeys$2(storeKeyMap, luvio, response);
2666
+ }
2667
+ function ingestSuccess$3(luvio, resourceParams, response) {
2668
+ const { body } = response;
2669
+ const key = keyBuilderFromType$2(luvio, body);
2670
+ luvio.storeIngest(key, ingest$2, body);
2671
+ const snapshot = luvio.storeLookup({
2672
+ recordId: key,
2673
+ node: select$5(),
2674
+ variables: {},
2675
+ });
2676
+ if (process.env.NODE_ENV !== 'production') {
2677
+ if (snapshot.state !== 'Fulfilled') {
2678
+ throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
2723
2679
  }
2724
- })();
2725
- return v_error === undefined ? null : v_error;
2680
+ }
2681
+ deepFreeze(snapshot.data);
2682
+ return snapshot;
2683
+ }
2684
+ function createResourceRequest$4(config) {
2685
+ const headers = {};
2686
+ return {
2687
+ baseUri: '/services/data/v62.0',
2688
+ basePath: '/unified-analytics/workspaces/' + config.urlParams.workspaceIdOrApiName + '/assets',
2689
+ method: 'post',
2690
+ body: config.body,
2691
+ urlParams: config.urlParams,
2692
+ queryParams: {},
2693
+ headers,
2694
+ priority: 'normal',
2695
+ };
2726
2696
  }
2727
2697
 
2728
- function validate$3(obj, path = 'LibraryAssetsPreviewOutputRepresentation') {
2729
- const v_error = (() => {
2730
- if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2731
- return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
2732
- }
2733
- const obj_assetIcon = obj.assetIcon;
2734
- const path_assetIcon = path + '.assetIcon';
2735
- if (typeof obj_assetIcon !== 'string') {
2736
- return new TypeError('Expected "string" but received "' + typeof obj_assetIcon + '" (at "' + path_assetIcon + '")');
2737
- }
2738
- obj.assetVersion;
2739
- const obj_configurationUrl = obj.configurationUrl;
2740
- const path_configurationUrl = path + '.configurationUrl';
2741
- if (typeof obj_configurationUrl !== 'string') {
2742
- return new TypeError('Expected "string" but received "' + typeof obj_configurationUrl + '" (at "' + path_configurationUrl + '")');
2743
- }
2744
- const obj_createdBy = obj.createdBy;
2745
- const path_createdBy = path + '.createdBy';
2746
- let obj_createdBy_union0 = null;
2747
- const obj_createdBy_union0_error = (() => {
2748
- const referencepath_createdByValidationError = validate$7(obj_createdBy, path_createdBy);
2749
- if (referencepath_createdByValidationError !== null) {
2750
- let message = 'Object doesn\'t match TuaUserRepresentation (at "' + path_createdBy + '")\n';
2751
- message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
2752
- return new TypeError(message);
2753
- }
2754
- })();
2755
- if (obj_createdBy_union0_error != null) {
2756
- obj_createdBy_union0 = obj_createdBy_union0_error.message;
2757
- }
2758
- let obj_createdBy_union1 = null;
2759
- const obj_createdBy_union1_error = (() => {
2760
- if (obj_createdBy !== null) {
2761
- return new TypeError('Expected "null" but received "' + typeof obj_createdBy + '" (at "' + path_createdBy + '")');
2762
- }
2763
- })();
2764
- if (obj_createdBy_union1_error != null) {
2765
- obj_createdBy_union1 = obj_createdBy_union1_error.message;
2766
- }
2767
- if (obj_createdBy_union0 && obj_createdBy_union1) {
2768
- let message = 'Object doesn\'t match union (at "' + path_createdBy + '")';
2769
- message += '\n' + obj_createdBy_union0.split('\n').map((line) => '\t' + line).join('\n');
2770
- message += '\n' + obj_createdBy_union1.split('\n').map((line) => '\t' + line).join('\n');
2771
- return new TypeError(message);
2772
- }
2773
- const obj_createdDate = obj.createdDate;
2774
- const path_createdDate = path + '.createdDate';
2775
- let obj_createdDate_union0 = null;
2776
- const obj_createdDate_union0_error = (() => {
2777
- if (typeof obj_createdDate !== 'string') {
2778
- return new TypeError('Expected "string" but received "' + typeof obj_createdDate + '" (at "' + path_createdDate + '")');
2779
- }
2780
- })();
2781
- if (obj_createdDate_union0_error != null) {
2782
- obj_createdDate_union0 = obj_createdDate_union0_error.message;
2783
- }
2784
- let obj_createdDate_union1 = null;
2785
- const obj_createdDate_union1_error = (() => {
2786
- if (obj_createdDate !== null) {
2787
- return new TypeError('Expected "null" but received "' + typeof obj_createdDate + '" (at "' + path_createdDate + '")');
2788
- }
2789
- })();
2790
- if (obj_createdDate_union1_error != null) {
2791
- obj_createdDate_union1 = obj_createdDate_union1_error.message;
2792
- }
2793
- if (obj_createdDate_union0 && obj_createdDate_union1) {
2794
- let message = 'Object doesn\'t match union (at "' + path_createdDate + '")';
2795
- message += '\n' + obj_createdDate_union0.split('\n').map((line) => '\t' + line).join('\n');
2796
- message += '\n' + obj_createdDate_union1.split('\n').map((line) => '\t' + line).join('\n');
2797
- return new TypeError(message);
2798
- }
2799
- const obj_customAttributes = obj.customAttributes;
2800
- const path_customAttributes = path + '.customAttributes';
2801
- if (!ArrayIsArray(obj_customAttributes)) {
2802
- return new TypeError('Expected "array" but received "' + typeof obj_customAttributes + '" (at "' + path_customAttributes + '")');
2803
- }
2804
- for (let i = 0; i < obj_customAttributes.length; i++) {
2805
- const obj_customAttributes_item = obj_customAttributes[i];
2806
- const path_customAttributes_item = path_customAttributes + '[' + i + ']';
2807
- const referencepath_customAttributes_itemValidationError = validate$6(obj_customAttributes_item, path_customAttributes_item);
2808
- if (referencepath_customAttributes_itemValidationError !== null) {
2809
- let message = 'Object doesn\'t match TuaAssetTemplateCustomAttributesRepresentation (at "' + path_customAttributes_item + '")\n';
2810
- message += referencepath_customAttributes_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
2811
- return new TypeError(message);
2812
- }
2813
- }
2814
- const obj_description = obj.description;
2815
- const path_description = path + '.description';
2816
- let obj_description_union0 = null;
2817
- const obj_description_union0_error = (() => {
2818
- if (typeof obj_description !== 'string') {
2819
- return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
2820
- }
2821
- })();
2822
- if (obj_description_union0_error != null) {
2823
- obj_description_union0 = obj_description_union0_error.message;
2824
- }
2825
- let obj_description_union1 = null;
2826
- const obj_description_union1_error = (() => {
2827
- if (obj_description !== null) {
2828
- return new TypeError('Expected "null" but received "' + typeof obj_description + '" (at "' + path_description + '")');
2829
- }
2830
- })();
2831
- if (obj_description_union1_error != null) {
2832
- obj_description_union1 = obj_description_union1_error.message;
2833
- }
2834
- if (obj_description_union0 && obj_description_union1) {
2835
- let message = 'Object doesn\'t match union (at "' + path_description + '")';
2836
- message += '\n' + obj_description_union0.split('\n').map((line) => '\t' + line).join('\n');
2837
- message += '\n' + obj_description_union1.split('\n').map((line) => '\t' + line).join('\n');
2838
- return new TypeError(message);
2839
- }
2840
- const obj_icons = obj.icons;
2841
- const path_icons = path + '.icons';
2842
- const referencepath_iconsValidationError = validate$5(obj_icons, path_icons);
2843
- if (referencepath_iconsValidationError !== null) {
2844
- let message = 'Object doesn\'t match TuaAssetTemplateIconsRepresentation (at "' + path_icons + '")\n';
2845
- message += referencepath_iconsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
2846
- return new TypeError(message);
2847
- }
2848
- const obj_id = obj.id;
2849
- const path_id = path + '.id';
2850
- if (typeof obj_id !== 'string') {
2851
- return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
2852
- }
2853
- const obj_label = obj.label;
2854
- const path_label = path + '.label';
2855
- if (typeof obj_label !== 'string') {
2856
- return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
2857
- }
2858
- const obj_lastModifiedBy = obj.lastModifiedBy;
2859
- const path_lastModifiedBy = path + '.lastModifiedBy';
2860
- let obj_lastModifiedBy_union0 = null;
2861
- const obj_lastModifiedBy_union0_error = (() => {
2862
- const referencepath_lastModifiedByValidationError = validate$7(obj_lastModifiedBy, path_lastModifiedBy);
2863
- if (referencepath_lastModifiedByValidationError !== null) {
2864
- let message = 'Object doesn\'t match TuaUserRepresentation (at "' + path_lastModifiedBy + '")\n';
2865
- message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
2866
- return new TypeError(message);
2867
- }
2868
- })();
2869
- if (obj_lastModifiedBy_union0_error != null) {
2870
- obj_lastModifiedBy_union0 = obj_lastModifiedBy_union0_error.message;
2871
- }
2872
- let obj_lastModifiedBy_union1 = null;
2873
- const obj_lastModifiedBy_union1_error = (() => {
2874
- if (obj_lastModifiedBy !== null) {
2875
- return new TypeError('Expected "null" but received "' + typeof obj_lastModifiedBy + '" (at "' + path_lastModifiedBy + '")');
2876
- }
2877
- })();
2878
- if (obj_lastModifiedBy_union1_error != null) {
2879
- obj_lastModifiedBy_union1 = obj_lastModifiedBy_union1_error.message;
2880
- }
2881
- if (obj_lastModifiedBy_union0 && obj_lastModifiedBy_union1) {
2882
- let message = 'Object doesn\'t match union (at "' + path_lastModifiedBy + '")';
2883
- message += '\n' + obj_lastModifiedBy_union0.split('\n').map((line) => '\t' + line).join('\n');
2884
- message += '\n' + obj_lastModifiedBy_union1.split('\n').map((line) => '\t' + line).join('\n');
2885
- return new TypeError(message);
2886
- }
2887
- const obj_lastModifiedDate = obj.lastModifiedDate;
2888
- const path_lastModifiedDate = path + '.lastModifiedDate';
2889
- let obj_lastModifiedDate_union0 = null;
2890
- const obj_lastModifiedDate_union0_error = (() => {
2891
- if (typeof obj_lastModifiedDate !== 'string') {
2892
- return new TypeError('Expected "string" but received "' + typeof obj_lastModifiedDate + '" (at "' + path_lastModifiedDate + '")');
2893
- }
2894
- })();
2895
- if (obj_lastModifiedDate_union0_error != null) {
2896
- obj_lastModifiedDate_union0 = obj_lastModifiedDate_union0_error.message;
2897
- }
2898
- let obj_lastModifiedDate_union1 = null;
2899
- const obj_lastModifiedDate_union1_error = (() => {
2900
- if (obj_lastModifiedDate !== null) {
2901
- return new TypeError('Expected "null" but received "' + typeof obj_lastModifiedDate + '" (at "' + path_lastModifiedDate + '")');
2902
- }
2903
- })();
2904
- if (obj_lastModifiedDate_union1_error != null) {
2905
- obj_lastModifiedDate_union1 = obj_lastModifiedDate_union1_error.message;
2906
- }
2907
- if (obj_lastModifiedDate_union0 && obj_lastModifiedDate_union1) {
2908
- let message = 'Object doesn\'t match union (at "' + path_lastModifiedDate + '")';
2909
- message += '\n' + obj_lastModifiedDate_union0.split('\n').map((line) => '\t' + line).join('\n');
2910
- message += '\n' + obj_lastModifiedDate_union1.split('\n').map((line) => '\t' + line).join('\n');
2911
- return new TypeError(message);
2912
- }
2913
- const obj_name = obj.name;
2914
- const path_name = path + '.name';
2915
- let obj_name_union0 = null;
2916
- const obj_name_union0_error = (() => {
2917
- if (typeof obj_name !== 'string') {
2918
- return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
2919
- }
2920
- })();
2921
- if (obj_name_union0_error != null) {
2922
- obj_name_union0 = obj_name_union0_error.message;
2923
- }
2924
- let obj_name_union1 = null;
2925
- const obj_name_union1_error = (() => {
2926
- if (obj_name !== null) {
2927
- return new TypeError('Expected "null" but received "' + typeof obj_name + '" (at "' + path_name + '")');
2928
- }
2929
- })();
2930
- if (obj_name_union1_error != null) {
2931
- obj_name_union1 = obj_name_union1_error.message;
2932
- }
2933
- if (obj_name_union0 && obj_name_union1) {
2934
- let message = 'Object doesn\'t match union (at "' + path_name + '")';
2935
- message += '\n' + obj_name_union0.split('\n').map((line) => '\t' + line).join('\n');
2936
- message += '\n' + obj_name_union1.split('\n').map((line) => '\t' + line).join('\n');
2937
- return new TypeError(message);
2938
- }
2939
- const obj_namespace = obj.namespace;
2940
- const path_namespace = path + '.namespace';
2941
- let obj_namespace_union0 = null;
2942
- const obj_namespace_union0_error = (() => {
2943
- if (typeof obj_namespace !== 'string') {
2944
- return new TypeError('Expected "string" but received "' + typeof obj_namespace + '" (at "' + path_namespace + '")');
2945
- }
2946
- })();
2947
- if (obj_namespace_union0_error != null) {
2948
- obj_namespace_union0 = obj_namespace_union0_error.message;
2949
- }
2950
- let obj_namespace_union1 = null;
2951
- const obj_namespace_union1_error = (() => {
2952
- if (obj_namespace !== null) {
2953
- return new TypeError('Expected "null" but received "' + typeof obj_namespace + '" (at "' + path_namespace + '")');
2954
- }
2955
- })();
2956
- if (obj_namespace_union1_error != null) {
2957
- obj_namespace_union1 = obj_namespace_union1_error.message;
2958
- }
2959
- if (obj_namespace_union0 && obj_namespace_union1) {
2960
- let message = 'Object doesn\'t match union (at "' + path_namespace + '")';
2961
- message += '\n' + obj_namespace_union0.split('\n').map((line) => '\t' + line).join('\n');
2962
- message += '\n' + obj_namespace_union1.split('\n').map((line) => '\t' + line).join('\n');
2963
- return new TypeError(message);
2964
- }
2965
- const obj_releaseInfo = obj.releaseInfo;
2966
- const path_releaseInfo = path + '.releaseInfo';
2967
- const referencepath_releaseInfoValidationError = validate$4(obj_releaseInfo, path_releaseInfo);
2968
- if (referencepath_releaseInfoValidationError !== null) {
2969
- let message = 'Object doesn\'t match TuaAssetTemplateReleaseRepresentation (at "' + path_releaseInfo + '")\n';
2970
- message += referencepath_releaseInfoValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
2971
- return new TypeError(message);
2972
- }
2973
- const obj_tags = obj.tags;
2974
- const path_tags = path + '.tags';
2975
- if (!ArrayIsArray(obj_tags)) {
2976
- return new TypeError('Expected "array" but received "' + typeof obj_tags + '" (at "' + path_tags + '")');
2977
- }
2978
- for (let i = 0; i < obj_tags.length; i++) {
2979
- const obj_tags_item = obj_tags[i];
2980
- const path_tags_item = path_tags + '[' + i + ']';
2981
- let obj_tags_item_union0 = null;
2982
- const obj_tags_item_union0_error = (() => {
2983
- if (typeof obj_tags_item !== 'string') {
2984
- return new TypeError('Expected "string" but received "' + typeof obj_tags_item + '" (at "' + path_tags_item + '")');
2985
- }
2986
- })();
2987
- if (obj_tags_item_union0_error != null) {
2988
- obj_tags_item_union0 = obj_tags_item_union0_error.message;
2989
- }
2990
- let obj_tags_item_union1 = null;
2991
- const obj_tags_item_union1_error = (() => {
2992
- if (obj_tags_item !== null) {
2993
- return new TypeError('Expected "null" but received "' + typeof obj_tags_item + '" (at "' + path_tags_item + '")');
2994
- }
2995
- })();
2996
- if (obj_tags_item_union1_error != null) {
2997
- obj_tags_item_union1 = obj_tags_item_union1_error.message;
2998
- }
2999
- if (obj_tags_item_union0 && obj_tags_item_union1) {
3000
- let message = 'Object doesn\'t match union (at "' + path_tags_item + '")';
3001
- message += '\n' + obj_tags_item_union0.split('\n').map((line) => '\t' + line).join('\n');
3002
- message += '\n' + obj_tags_item_union1.split('\n').map((line) => '\t' + line).join('\n');
3003
- return new TypeError(message);
3004
- }
3005
- }
3006
- const obj_templateIcon = obj.templateIcon;
3007
- const path_templateIcon = path + '.templateIcon';
3008
- let obj_templateIcon_union0 = null;
3009
- const obj_templateIcon_union0_error = (() => {
3010
- if (typeof obj_templateIcon !== 'string') {
3011
- return new TypeError('Expected "string" but received "' + typeof obj_templateIcon + '" (at "' + path_templateIcon + '")');
3012
- }
3013
- })();
3014
- if (obj_templateIcon_union0_error != null) {
3015
- obj_templateIcon_union0 = obj_templateIcon_union0_error.message;
3016
- }
3017
- let obj_templateIcon_union1 = null;
3018
- const obj_templateIcon_union1_error = (() => {
3019
- if (obj_templateIcon !== null) {
3020
- return new TypeError('Expected "null" but received "' + typeof obj_templateIcon + '" (at "' + path_templateIcon + '")');
3021
- }
3022
- })();
3023
- if (obj_templateIcon_union1_error != null) {
3024
- obj_templateIcon_union1 = obj_templateIcon_union1_error.message;
3025
- }
3026
- if (obj_templateIcon_union0 && obj_templateIcon_union1) {
3027
- let message = 'Object doesn\'t match union (at "' + path_templateIcon + '")';
3028
- message += '\n' + obj_templateIcon_union0.split('\n').map((line) => '\t' + line).join('\n');
3029
- message += '\n' + obj_templateIcon_union1.split('\n').map((line) => '\t' + line).join('\n');
3030
- return new TypeError(message);
3031
- }
3032
- const obj_templateType = obj.templateType;
3033
- const path_templateType = path + '.templateType';
3034
- let obj_templateType_union0 = null;
3035
- const obj_templateType_union0_error = (() => {
3036
- if (typeof obj_templateType !== 'string') {
3037
- return new TypeError('Expected "string" but received "' + typeof obj_templateType + '" (at "' + path_templateType + '")');
3038
- }
3039
- })();
3040
- if (obj_templateType_union0_error != null) {
3041
- obj_templateType_union0 = obj_templateType_union0_error.message;
3042
- }
3043
- let obj_templateType_union1 = null;
3044
- const obj_templateType_union1_error = (() => {
3045
- if (obj_templateType !== null) {
3046
- return new TypeError('Expected "null" but received "' + typeof obj_templateType + '" (at "' + path_templateType + '")');
3047
- }
3048
- })();
3049
- if (obj_templateType_union1_error != null) {
3050
- obj_templateType_union1 = obj_templateType_union1_error.message;
3051
- }
3052
- if (obj_templateType_union0 && obj_templateType_union1) {
3053
- let message = 'Object doesn\'t match union (at "' + path_templateType + '")';
3054
- message += '\n' + obj_templateType_union0.split('\n').map((line) => '\t' + line).join('\n');
3055
- message += '\n' + obj_templateType_union1.split('\n').map((line) => '\t' + line).join('\n');
3056
- return new TypeError(message);
3057
- }
3058
- const obj_url = obj.url;
3059
- const path_url = path + '.url';
3060
- let obj_url_union0 = null;
3061
- const obj_url_union0_error = (() => {
3062
- if (typeof obj_url !== 'string') {
3063
- return new TypeError('Expected "string" but received "' + typeof obj_url + '" (at "' + path_url + '")');
3064
- }
3065
- })();
3066
- if (obj_url_union0_error != null) {
3067
- obj_url_union0 = obj_url_union0_error.message;
3068
- }
3069
- let obj_url_union1 = null;
3070
- const obj_url_union1_error = (() => {
3071
- if (obj_url !== null) {
3072
- return new TypeError('Expected "null" but received "' + typeof obj_url + '" (at "' + path_url + '")');
3073
- }
3074
- })();
3075
- if (obj_url_union1_error != null) {
3076
- obj_url_union1 = obj_url_union1_error.message;
3077
- }
3078
- if (obj_url_union0 && obj_url_union1) {
3079
- let message = 'Object doesn\'t match union (at "' + path_url + '")';
3080
- message += '\n' + obj_url_union0.split('\n').map((line) => '\t' + line).join('\n');
3081
- message += '\n' + obj_url_union1.split('\n').map((line) => '\t' + line).join('\n');
3082
- return new TypeError(message);
2698
+ const adapterName$4 = 'createWorkspaceAsset';
2699
+ const createWorkspaceAsset_ConfigPropertyMetadata = [
2700
+ generateParamConfigMetadata('workspaceIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
2701
+ generateParamConfigMetadata('assetId', true, 2 /* Body */, 0 /* String */),
2702
+ generateParamConfigMetadata('assetType', true, 2 /* Body */, 0 /* String */),
2703
+ generateParamConfigMetadata('assetUsageType', true, 2 /* Body */, 0 /* String */),
2704
+ ];
2705
+ const createWorkspaceAsset_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, createWorkspaceAsset_ConfigPropertyMetadata);
2706
+ const createResourceParams$4 = /*#__PURE__*/ createResourceParams$j(createWorkspaceAsset_ConfigPropertyMetadata);
2707
+ function typeCheckConfig$4(untrustedConfig) {
2708
+ const config = {};
2709
+ typeCheckConfig$j(untrustedConfig, config, createWorkspaceAsset_ConfigPropertyMetadata);
2710
+ return config;
2711
+ }
2712
+ function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
2713
+ if (!untrustedIsObject(untrustedConfig)) {
2714
+ return null;
2715
+ }
2716
+ if (process.env.NODE_ENV !== 'production') {
2717
+ validateConfig(untrustedConfig, configPropertyNames);
2718
+ }
2719
+ const config = typeCheckConfig$4(untrustedConfig);
2720
+ if (!areRequiredParametersPresent(config, configPropertyNames)) {
2721
+ return null;
2722
+ }
2723
+ return config;
2724
+ }
2725
+ function buildNetworkSnapshot$4(luvio, config, options) {
2726
+ const resourceParams = createResourceParams$4(config);
2727
+ const request = createResourceRequest$4(resourceParams);
2728
+ return luvio.dispatchResourceRequest(request, options)
2729
+ .then((response) => {
2730
+ return luvio.handleSuccessResponse(() => {
2731
+ const snapshot = ingestSuccess$3(luvio, resourceParams, response);
2732
+ return luvio.storeBroadcast().then(() => snapshot);
2733
+ }, () => {
2734
+ const cache = new StoreKeyMap();
2735
+ getResponseCacheKeys$4(cache, luvio, resourceParams, response.body);
2736
+ return cache;
2737
+ });
2738
+ }, (response) => {
2739
+ deepFreeze(response);
2740
+ throw response;
2741
+ });
2742
+ }
2743
+ const createWorkspaceAssetAdapterFactory = (luvio) => {
2744
+ return function createWorkspaceAsset(untrustedConfig) {
2745
+ const config = validateAdapterConfig$4(untrustedConfig, createWorkspaceAsset_ConfigPropertyNames);
2746
+ // Invalid or incomplete config
2747
+ if (config === null) {
2748
+ throw new Error('Invalid config for "createWorkspaceAsset"');
3083
2749
  }
3084
- })();
3085
- return v_error === undefined ? null : v_error;
2750
+ return buildNetworkSnapshot$4(luvio, config);
2751
+ };
2752
+ };
2753
+
2754
+ function keyBuilder$4(luvio, params) {
2755
+ return keyBuilder$5(luvio, {
2756
+ assetId: params.urlParams.assetId
2757
+ });
2758
+ }
2759
+ function getResponseCacheKeys$3(cacheKeyMap, luvio, resourceParams) {
2760
+ const key = keyBuilder$4(luvio, resourceParams);
2761
+ cacheKeyMap.set(key, {
2762
+ namespace: keyPrefix,
2763
+ representationName: RepresentationType$2,
2764
+ mergeable: false
2765
+ });
2766
+ }
2767
+ function evictSuccess(luvio, resourceParams) {
2768
+ const key = keyBuilder$4(luvio, resourceParams);
2769
+ luvio.storeEvict(key);
2770
+ }
2771
+ function createResourceRequest$3(config) {
2772
+ const headers = {};
2773
+ return {
2774
+ baseUri: '/services/data/v62.0',
2775
+ basePath: '/unified-analytics/workspaces/' + config.urlParams.workspaceIdOrApiName + '/assets/' + config.urlParams.assetId + '',
2776
+ method: 'delete',
2777
+ body: null,
2778
+ urlParams: config.urlParams,
2779
+ queryParams: {},
2780
+ headers,
2781
+ priority: 'normal',
2782
+ };
2783
+ }
2784
+
2785
+ const adapterName$3 = 'deleteWorkspaceAsset';
2786
+ const deleteWorkspaceAsset_ConfigPropertyMetadata = [
2787
+ generateParamConfigMetadata('assetId', true, 0 /* UrlParameter */, 0 /* String */),
2788
+ generateParamConfigMetadata('workspaceIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
2789
+ ];
2790
+ const deleteWorkspaceAsset_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, deleteWorkspaceAsset_ConfigPropertyMetadata);
2791
+ const createResourceParams$3 = /*#__PURE__*/ createResourceParams$j(deleteWorkspaceAsset_ConfigPropertyMetadata);
2792
+ function typeCheckConfig$3(untrustedConfig) {
2793
+ const config = {};
2794
+ typeCheckConfig$j(untrustedConfig, config, deleteWorkspaceAsset_ConfigPropertyMetadata);
2795
+ return config;
2796
+ }
2797
+ function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
2798
+ if (!untrustedIsObject(untrustedConfig)) {
2799
+ return null;
2800
+ }
2801
+ if (process.env.NODE_ENV !== 'production') {
2802
+ validateConfig(untrustedConfig, configPropertyNames);
2803
+ }
2804
+ const config = typeCheckConfig$3(untrustedConfig);
2805
+ if (!areRequiredParametersPresent(config, configPropertyNames)) {
2806
+ return null;
2807
+ }
2808
+ return config;
2809
+ }
2810
+ function buildNetworkSnapshot$3(luvio, config, options) {
2811
+ const resourceParams = createResourceParams$3(config);
2812
+ const request = createResourceRequest$3(resourceParams);
2813
+ return luvio.dispatchResourceRequest(request, options)
2814
+ .then(() => {
2815
+ return luvio.handleSuccessResponse(() => {
2816
+ evictSuccess(luvio, resourceParams);
2817
+ return luvio.storeBroadcast();
2818
+ }, () => {
2819
+ const cache = new StoreKeyMap();
2820
+ getResponseCacheKeys$3(cache, luvio, resourceParams);
2821
+ return cache;
2822
+ });
2823
+ }, (response) => {
2824
+ deepFreeze(response);
2825
+ throw response;
2826
+ });
3086
2827
  }
2828
+ const deleteWorkspaceAssetAdapterFactory = (luvio) => {
2829
+ return function UnifiedAnalyticsdeleteWorkspaceAsset(untrustedConfig) {
2830
+ const config = validateAdapterConfig$3(untrustedConfig, deleteWorkspaceAsset_ConfigPropertyNames);
2831
+ // Invalid or incomplete config
2832
+ if (config === null) {
2833
+ throw new Error(`Invalid config for "${adapterName$3}"`);
2834
+ }
2835
+ return buildNetworkSnapshot$3(luvio, config);
2836
+ };
2837
+ };
3087
2838
 
3088
2839
  const TTL$1 = 500;
3089
- const VERSION$1 = "72309d9f2b288fd243257c47590de9c1";
3090
- function validate$2(obj, path = 'LibraryAssetsPreviewOutputCollectionRepresentation') {
2840
+ const VERSION$1 = "9cc9d397fbf7728f812bb0c66c128f4b";
2841
+ function validate$2(obj, path = 'SubscriptionDigestConfigOutputRepresentation') {
3091
2842
  const v_error = (() => {
3092
2843
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
3093
2844
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
3094
2845
  }
3095
- const obj_analyticsLibraryAssetPreviewRepresentationList = obj.analyticsLibraryAssetPreviewRepresentationList;
3096
- const path_analyticsLibraryAssetPreviewRepresentationList = path + '.analyticsLibraryAssetPreviewRepresentationList';
3097
- if (!ArrayIsArray(obj_analyticsLibraryAssetPreviewRepresentationList)) {
3098
- return new TypeError('Expected "array" but received "' + typeof obj_analyticsLibraryAssetPreviewRepresentationList + '" (at "' + path_analyticsLibraryAssetPreviewRepresentationList + '")');
2846
+ const obj_isEnabled = obj.isEnabled;
2847
+ const path_isEnabled = path + '.isEnabled';
2848
+ if (typeof obj_isEnabled !== 'boolean') {
2849
+ return new TypeError('Expected "boolean" but received "' + typeof obj_isEnabled + '" (at "' + path_isEnabled + '")');
3099
2850
  }
3100
- for (let i = 0; i < obj_analyticsLibraryAssetPreviewRepresentationList.length; i++) {
3101
- const obj_analyticsLibraryAssetPreviewRepresentationList_item = obj_analyticsLibraryAssetPreviewRepresentationList[i];
3102
- const path_analyticsLibraryAssetPreviewRepresentationList_item = path_analyticsLibraryAssetPreviewRepresentationList + '[' + i + ']';
3103
- const referencepath_analyticsLibraryAssetPreviewRepresentationList_itemValidationError = validate$3(obj_analyticsLibraryAssetPreviewRepresentationList_item, path_analyticsLibraryAssetPreviewRepresentationList_item);
3104
- if (referencepath_analyticsLibraryAssetPreviewRepresentationList_itemValidationError !== null) {
3105
- let message = 'Object doesn\'t match LibraryAssetsPreviewOutputRepresentation (at "' + path_analyticsLibraryAssetPreviewRepresentationList_item + '")\n';
3106
- message += referencepath_analyticsLibraryAssetPreviewRepresentationList_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
3107
- return new TypeError(message);
3108
- }
2851
+ const obj_scheduleType = obj.scheduleType;
2852
+ const path_scheduleType = path + '.scheduleType';
2853
+ if (typeof obj_scheduleType !== 'string') {
2854
+ return new TypeError('Expected "string" but received "' + typeof obj_scheduleType + '" (at "' + path_scheduleType + '")');
3109
2855
  }
3110
- const obj_id = obj.id;
3111
- const path_id = path + '.id';
3112
- if (typeof obj_id !== 'string') {
3113
- return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
2856
+ const obj_userId = obj.userId;
2857
+ const path_userId = path + '.userId';
2858
+ if (typeof obj_userId !== 'string') {
2859
+ return new TypeError('Expected "string" but received "' + typeof obj_userId + '" (at "' + path_userId + '")');
3114
2860
  }
3115
2861
  })();
3116
2862
  return v_error === undefined ? null : v_error;
3117
2863
  }
3118
- const RepresentationType$1 = 'LibraryAssetsPreviewOutputCollectionRepresentation';
3119
- function keyBuilder$1(luvio, config) {
3120
- return keyPrefix + '::' + RepresentationType$1 + ':' + config.id;
2864
+ const RepresentationType$1 = 'SubscriptionDigestConfigOutputRepresentation';
2865
+ function keyBuilder$3(luvio, config) {
2866
+ return keyPrefix + '::' + RepresentationType$1 + ':' + config.userId;
3121
2867
  }
3122
2868
  function keyBuilderFromType$1(luvio, object) {
3123
2869
  const keyParams = {
3124
- id: object.id
2870
+ userId: object.userId
3125
2871
  };
3126
- return keyBuilder$1(luvio, keyParams);
2872
+ return keyBuilder$3(luvio, keyParams);
3127
2873
  }
3128
2874
  function normalize$1(input, existing, path, luvio, store, timestamp) {
3129
2875
  return input;
3130
2876
  }
3131
- const select$3 = function LibraryAssetsPreviewOutputCollectionRepresentationSelect() {
2877
+ const select$4 = function SubscriptionDigestConfigOutputRepresentationSelect() {
3132
2878
  return {
3133
2879
  kind: 'Fragment',
3134
2880
  version: VERSION$1,
@@ -3142,7 +2888,7 @@ function equals$1(existing, incoming) {
3142
2888
  }
3143
2889
  return true;
3144
2890
  }
3145
- const ingest$1 = function LibraryAssetsPreviewOutputCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
2891
+ const ingest$1 = function SubscriptionDigestConfigOutputRepresentationIngest(input, path, luvio, store, timestamp) {
3146
2892
  if (process.env.NODE_ENV !== 'production') {
3147
2893
  const validateError = validate$2(input);
3148
2894
  if (validateError !== null) {
@@ -3164,9 +2910,149 @@ function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
3164
2910
  });
3165
2911
  }
3166
2912
 
3167
- function select$2(luvio, params) {
2913
+ function select$3(luvio, params) {
2914
+ return select$4();
2915
+ }
2916
+ function keyBuilder$2(luvio, params) {
2917
+ return keyBuilder$3(luvio, {
2918
+ userId: params.urlParams.digestConfigOwner
2919
+ });
2920
+ }
2921
+ function getResponseCacheKeys$2(storeKeyMap, luvio, resourceParams, response) {
2922
+ getTypeCacheKeys$1(storeKeyMap, luvio, response);
2923
+ }
2924
+ function ingestSuccess$2(luvio, resourceParams, response, snapshotRefresh) {
2925
+ const { body } = response;
2926
+ const key = keyBuilder$2(luvio, resourceParams);
2927
+ luvio.storeIngest(key, ingest$1, body);
2928
+ const snapshot = luvio.storeLookup({
2929
+ recordId: key,
2930
+ node: select$3(),
2931
+ variables: {},
2932
+ }, snapshotRefresh);
2933
+ if (process.env.NODE_ENV !== 'production') {
2934
+ if (snapshot.state !== 'Fulfilled') {
2935
+ throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
2936
+ }
2937
+ }
2938
+ deepFreeze(snapshot.data);
2939
+ return snapshot;
2940
+ }
2941
+ function ingestError(luvio, params, error, snapshotRefresh) {
2942
+ const key = keyBuilder$2(luvio, params);
2943
+ const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
2944
+ const storeMetadataParams = {
2945
+ ttl: TTL$1,
2946
+ namespace: keyPrefix,
2947
+ version: VERSION$1,
2948
+ representationName: RepresentationType$1
2949
+ };
2950
+ luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
2951
+ return errorSnapshot;
2952
+ }
2953
+ function createResourceRequest$2(config) {
2954
+ const headers = {};
2955
+ return {
2956
+ baseUri: '/services/data/v62.0',
2957
+ basePath: '/unified-analytics/subscriptions/digest/' + config.urlParams.digestConfigOwner + '',
2958
+ method: 'get',
2959
+ body: null,
2960
+ urlParams: config.urlParams,
2961
+ queryParams: {},
2962
+ headers,
2963
+ priority: 'normal',
2964
+ };
2965
+ }
2966
+
2967
+ const adapterName$2 = 'getSubscriptionDigestConfig';
2968
+ const getSubscriptionDigestConfig_ConfigPropertyMetadata = [
2969
+ generateParamConfigMetadata('digestConfigOwner', true, 0 /* UrlParameter */, 0 /* String */),
2970
+ ];
2971
+ const getSubscriptionDigestConfig_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, getSubscriptionDigestConfig_ConfigPropertyMetadata);
2972
+ const createResourceParams$2 = /*#__PURE__*/ createResourceParams$j(getSubscriptionDigestConfig_ConfigPropertyMetadata);
2973
+ function keyBuilder$1(luvio, config) {
2974
+ const resourceParams = createResourceParams$2(config);
2975
+ return keyBuilder$2(luvio, resourceParams);
2976
+ }
2977
+ function typeCheckConfig$2(untrustedConfig) {
2978
+ const config = {};
2979
+ typeCheckConfig$j(untrustedConfig, config, getSubscriptionDigestConfig_ConfigPropertyMetadata);
2980
+ return config;
2981
+ }
2982
+ function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
2983
+ if (!untrustedIsObject(untrustedConfig)) {
2984
+ return null;
2985
+ }
2986
+ if (process.env.NODE_ENV !== 'production') {
2987
+ validateConfig(untrustedConfig, configPropertyNames);
2988
+ }
2989
+ const config = typeCheckConfig$2(untrustedConfig);
2990
+ if (!areRequiredParametersPresent(config, configPropertyNames)) {
2991
+ return null;
2992
+ }
2993
+ return config;
2994
+ }
2995
+ function adapterFragment(luvio, config) {
2996
+ createResourceParams$2(config);
3168
2997
  return select$3();
3169
2998
  }
2999
+ function onFetchResponseSuccess(luvio, config, resourceParams, response) {
3000
+ const snapshot = ingestSuccess$2(luvio, resourceParams, response, {
3001
+ config,
3002
+ resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
3003
+ });
3004
+ return luvio.storeBroadcast().then(() => snapshot);
3005
+ }
3006
+ function onFetchResponseError(luvio, config, resourceParams, response) {
3007
+ const snapshot = ingestError(luvio, resourceParams, response, {
3008
+ config,
3009
+ resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
3010
+ });
3011
+ return luvio.storeBroadcast().then(() => snapshot);
3012
+ }
3013
+ function buildNetworkSnapshot$2(luvio, config, options) {
3014
+ const resourceParams = createResourceParams$2(config);
3015
+ const request = createResourceRequest$2(resourceParams);
3016
+ return luvio.dispatchResourceRequest(request, options)
3017
+ .then((response) => {
3018
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess(luvio, config, resourceParams, response), () => {
3019
+ const cache = new StoreKeyMap();
3020
+ getResponseCacheKeys$2(cache, luvio, resourceParams, response.body);
3021
+ return cache;
3022
+ });
3023
+ }, (response) => {
3024
+ return luvio.handleErrorResponse(() => onFetchResponseError(luvio, config, resourceParams, response));
3025
+ });
3026
+ }
3027
+ function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
3028
+ return buildNetworkSnapshotCachePolicy$7(context, coercedAdapterRequestContext, buildNetworkSnapshot$2, undefined, false);
3029
+ }
3030
+ function buildCachedSnapshotCachePolicy(context, storeLookup) {
3031
+ const { luvio, config } = context;
3032
+ const selector = {
3033
+ recordId: keyBuilder$1(luvio, config),
3034
+ node: adapterFragment(luvio, config),
3035
+ variables: {},
3036
+ };
3037
+ const cacheSnapshot = storeLookup(selector, {
3038
+ config,
3039
+ resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
3040
+ });
3041
+ return cacheSnapshot;
3042
+ }
3043
+ const getSubscriptionDigestConfigAdapterFactory = (luvio) => function UnifiedAnalytics__getSubscriptionDigestConfig(untrustedConfig, requestContext) {
3044
+ const config = validateAdapterConfig$2(untrustedConfig, getSubscriptionDigestConfig_ConfigPropertyNames);
3045
+ // Invalid or incomplete config
3046
+ if (config === null) {
3047
+ return null;
3048
+ }
3049
+ return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
3050
+ buildCachedSnapshotCachePolicy, buildNetworkSnapshotCachePolicy);
3051
+ };
3052
+
3053
+ function select$2(luvio, params) {
3054
+ return select$4();
3055
+ }
3170
3056
  function getResponseCacheKeys$1(storeKeyMap, luvio, resourceParams, response) {
3171
3057
  getTypeCacheKeys$1(storeKeyMap, luvio, response);
3172
3058
  }
@@ -3191,29 +3077,27 @@ function createResourceRequest$1(config) {
3191
3077
  const headers = {};
3192
3078
  return {
3193
3079
  baseUri: '/services/data/v62.0',
3194
- basePath: '/tua-analytics/assets/query',
3195
- method: 'post',
3080
+ basePath: '/unified-analytics/subscriptions/digest/' + config.urlParams.digestConfigOwner + '',
3081
+ method: 'patch',
3196
3082
  body: config.body,
3197
- urlParams: {},
3083
+ urlParams: config.urlParams,
3198
3084
  queryParams: {},
3199
3085
  headers,
3200
3086
  priority: 'normal',
3201
3087
  };
3202
3088
  }
3203
3089
 
3204
- const adapterName$1 = 'getListViewAnalyticsLibrary';
3205
- const getListViewAnalyticsLibrary_ConfigPropertyMetadata = [
3206
- generateParamConfigMetadata('input_collection', true, 2 /* Body */, 4 /* Unsupported */),
3090
+ const adapterName$1 = 'updateSubscriptionDigestConfig';
3091
+ const updateSubscriptionDigestConfig_ConfigPropertyMetadata = [
3092
+ generateParamConfigMetadata('digestConfigOwner', true, 0 /* UrlParameter */, 0 /* String */),
3093
+ generateParamConfigMetadata('isEnabled', true, 2 /* Body */, 1 /* Boolean */),
3094
+ generateParamConfigMetadata('scheduleType', true, 2 /* Body */, 0 /* String */),
3207
3095
  ];
3208
- const getListViewAnalyticsLibrary_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, getListViewAnalyticsLibrary_ConfigPropertyMetadata);
3209
- const createResourceParams$1 = /*#__PURE__*/ createResourceParams$f(getListViewAnalyticsLibrary_ConfigPropertyMetadata);
3096
+ const updateSubscriptionDigestConfig_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, updateSubscriptionDigestConfig_ConfigPropertyMetadata);
3097
+ const createResourceParams$1 = /*#__PURE__*/ createResourceParams$j(updateSubscriptionDigestConfig_ConfigPropertyMetadata);
3210
3098
  function typeCheckConfig$1(untrustedConfig) {
3211
3099
  const config = {};
3212
- const untrustedConfig_input_collection = untrustedConfig.input_collection;
3213
- const referenceLibraryAssetsPreviewInputRepresentationValidationError = validate$8(untrustedConfig_input_collection);
3214
- if (referenceLibraryAssetsPreviewInputRepresentationValidationError === null) {
3215
- config.input_collection = untrustedConfig_input_collection;
3216
- }
3100
+ typeCheckConfig$j(untrustedConfig, config, updateSubscriptionDigestConfig_ConfigPropertyMetadata);
3217
3101
  return config;
3218
3102
  }
3219
3103
  function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
@@ -3247,12 +3131,12 @@ function buildNetworkSnapshot$1(luvio, config, options) {
3247
3131
  throw response;
3248
3132
  });
3249
3133
  }
3250
- const getListViewAnalyticsLibraryAdapterFactory = (luvio) => {
3251
- return function getListViewAnalyticsLibrary(untrustedConfig) {
3252
- const config = validateAdapterConfig$1(untrustedConfig, getListViewAnalyticsLibrary_ConfigPropertyNames);
3134
+ const updateSubscriptionDigestConfigAdapterFactory = (luvio) => {
3135
+ return function updateSubscriptionDigestConfig(untrustedConfig) {
3136
+ const config = validateAdapterConfig$1(untrustedConfig, updateSubscriptionDigestConfig_ConfigPropertyNames);
3253
3137
  // Invalid or incomplete config
3254
3138
  if (config === null) {
3255
- throw new Error('Invalid config for "getListViewAnalyticsLibrary"');
3139
+ throw new Error('Invalid config for "updateSubscriptionDigestConfig"');
3256
3140
  }
3257
3141
  return buildNetworkSnapshot$1(luvio, config);
3258
3142
  };
@@ -3443,7 +3327,7 @@ const getUnifiedAnalyticsLibraryAssets_ConfigPropertyMetadata = [
3443
3327
  generateParamConfigMetadata('searchToken', false, 2 /* Body */, 4 /* Unsupported */),
3444
3328
  ];
3445
3329
  const getUnifiedAnalyticsLibraryAssets_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, getUnifiedAnalyticsLibraryAssets_ConfigPropertyMetadata);
3446
- const createResourceParams = /*#__PURE__*/ createResourceParams$f(getUnifiedAnalyticsLibraryAssets_ConfigPropertyMetadata);
3330
+ const createResourceParams = /*#__PURE__*/ createResourceParams$j(getUnifiedAnalyticsLibraryAssets_ConfigPropertyMetadata);
3447
3331
  function typeCheckConfig(untrustedConfig) {
3448
3332
  const config = {};
3449
3333
  const untrustedConfig_assetTypes = untrustedConfig.assetTypes;
@@ -3552,4 +3436,4 @@ const getUnifiedAnalyticsLibraryAssetsAdapterFactory = (luvio) => {
3552
3436
  };
3553
3437
  };
3554
3438
 
3555
- export { createDashboardAdapterFactory, createWorkspaceAdapterFactory, deleteDashboardAdapterFactory, deleteVisualizationAdapterFactory, getDashboardByNameAdapterFactory, getDashboardsAdapterFactory, getListViewAnalyticsLibraryAdapterFactory, getSubscriptionDigestConfigAdapterFactory, getUnifiedAnalyticsLibraryAssetsAdapterFactory, getVisualizationAdapterFactory, getVisualizationsAdapterFactory, getWorkspacesAdapterFactory, queryAssetsAdapterFactory, updateDashboardAdapterFactory, updateSubscriptionDigestConfigAdapterFactory };
3439
+ export { createDashboardAdapterFactory, createWorkspaceAdapterFactory, createWorkspaceAssetAdapterFactory, deleteDashboardAdapterFactory, deleteVisualizationAdapterFactory, deleteWorkspaceAdapterFactory, deleteWorkspaceAssetAdapterFactory, getDashboardByNameAdapterFactory, getDashboardsAdapterFactory, getSubscriptionDigestConfigAdapterFactory, getUnifiedAnalyticsLibraryAssetsAdapterFactory, getVisualizationAdapterFactory, getVisualizationsAdapterFactory, getWorkspaceByIdOrNameAdapterFactory, getWorkspacesAdapterFactory, queryAssetsAdapterFactory, updateDashboardAdapterFactory, updateSubscriptionDigestConfigAdapterFactory, updateWorkspaceAdapterFactory };