@salesforce/lds-adapters-cdp-data-clean-room 1.354.0-dev7 → 1.354.0-dev8

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 (18) hide show
  1. package/dist/es/es2018/cdp-data-clean-room.js +964 -457
  2. package/dist/es/es2018/types/src/generated/adapters/createDataCleanRoomSpecification.d.ts +1 -1
  3. package/dist/es/es2018/types/src/generated/adapters/executeDataCleanRoomQuery.d.ts +17 -0
  4. package/dist/es/es2018/types/src/generated/adapters/getAllDataCleanRoomQueryPaginated.d.ts +27 -0
  5. package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +2 -0
  6. package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +4 -1
  7. package/dist/es/es2018/types/src/generated/resources/getSsotDataCleanRoomJobsByCollaborationIdOrApiName.d.ts +15 -0
  8. package/dist/es/es2018/types/src/generated/resources/postSsotDataCleanRoomActionsRunByCollaborationIdOrApiName.d.ts +16 -0
  9. package/dist/es/es2018/types/src/generated/resources/postSsotDataCleanRoomSpecifications.d.ts +1 -1
  10. package/dist/es/es2018/types/src/generated/types/DataCleanRoomDataSpecificationInputRepresentation.d.ts +3 -3
  11. package/dist/es/es2018/types/src/generated/types/DataCleanRoomDataSpecificationRepresentation.d.ts +3 -3
  12. package/dist/es/es2018/types/src/generated/types/DataCleanRoomQueryJobHistoryCollectionRepresentation.d.ts +44 -0
  13. package/dist/es/es2018/types/src/generated/types/DataCleanRoomQueryJobInputRepresentation.d.ts +31 -0
  14. package/dist/es/es2018/types/src/generated/types/DataCleanRoomQueryJobRepresentation.d.ts +77 -0
  15. package/package.json +3 -3
  16. package/sfdc/index.js +847 -326
  17. package/src/raml/api.raml +129 -3
  18. package/src/raml/luvio.raml +14 -0
@@ -4,7 +4,7 @@
4
4
  * For full license text, see the LICENSE.txt file
5
5
  */
6
6
 
7
- import { serializeStructuredKey, ingestShape, deepFreeze, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$4, typeCheckConfig as typeCheckConfig$9, StoreKeyMap, createResourceParams as createResourceParams$9 } from '@luvio/engine';
7
+ import { serializeStructuredKey, ingestShape, deepFreeze, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$5, typeCheckConfig as typeCheckConfig$b, StoreKeyMap, createResourceParams as createResourceParams$b } from '@luvio/engine';
8
8
 
9
9
  const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
10
10
  const { keys: ObjectKeys, create: ObjectCreate } = Object;
@@ -92,7 +92,7 @@ function createLink(ref) {
92
92
  };
93
93
  }
94
94
 
95
- function validate$e(obj, path = 'CdpUserRepresentation') {
95
+ function validate$g(obj, path = 'CdpUserRepresentation') {
96
96
  const v_error = (() => {
97
97
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
98
98
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -122,8 +122,8 @@ function validate$e(obj, path = 'CdpUserRepresentation') {
122
122
  return v_error === undefined ? null : v_error;
123
123
  }
124
124
 
125
- const VERSION$7 = "929b1bcf37fe62f914c2364146a0f5e6";
126
- function validate$d(obj, path = 'DataCleanRoomProviderRepresentation') {
125
+ const VERSION$9 = "929b1bcf37fe62f914c2364146a0f5e6";
126
+ function validate$f(obj, path = 'DataCleanRoomProviderRepresentation') {
127
127
  const v_error = (() => {
128
128
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
129
129
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -131,7 +131,7 @@ function validate$d(obj, path = 'DataCleanRoomProviderRepresentation') {
131
131
  if (obj.createdBy !== undefined) {
132
132
  const obj_createdBy = obj.createdBy;
133
133
  const path_createdBy = path + '.createdBy';
134
- const referencepath_createdByValidationError = validate$e(obj_createdBy, path_createdBy);
134
+ const referencepath_createdByValidationError = validate$g(obj_createdBy, path_createdBy);
135
135
  if (referencepath_createdByValidationError !== null) {
136
136
  let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_createdBy + '")\n';
137
137
  message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -170,7 +170,7 @@ function validate$d(obj, path = 'DataCleanRoomProviderRepresentation') {
170
170
  if (obj.lastModifiedBy !== undefined) {
171
171
  const obj_lastModifiedBy = obj.lastModifiedBy;
172
172
  const path_lastModifiedBy = path + '.lastModifiedBy';
173
- const referencepath_lastModifiedByValidationError = validate$e(obj_lastModifiedBy, path_lastModifiedBy);
173
+ const referencepath_lastModifiedByValidationError = validate$g(obj_lastModifiedBy, path_lastModifiedBy);
174
174
  if (referencepath_lastModifiedByValidationError !== null) {
175
175
  let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_lastModifiedBy + '")\n';
176
176
  message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -227,57 +227,57 @@ function validate$d(obj, path = 'DataCleanRoomProviderRepresentation') {
227
227
  })();
228
228
  return v_error === undefined ? null : v_error;
229
229
  }
230
- const RepresentationType$7 = 'DataCleanRoomProviderRepresentation';
231
- function keyBuilder$b(luvio, config) {
232
- return keyPrefix + '::' + RepresentationType$7 + ':' + config.id;
230
+ const RepresentationType$9 = 'DataCleanRoomProviderRepresentation';
231
+ function keyBuilder$e(luvio, config) {
232
+ return keyPrefix + '::' + RepresentationType$9 + ':' + config.id;
233
233
  }
234
- function keyBuilderFromType$3(luvio, object) {
234
+ function keyBuilderFromType$4(luvio, object) {
235
235
  const keyParams = {
236
236
  id: object.id
237
237
  };
238
- return keyBuilder$b(luvio, keyParams);
238
+ return keyBuilder$e(luvio, keyParams);
239
239
  }
240
- function normalize$7(input, existing, path, luvio, store, timestamp) {
240
+ function normalize$9(input, existing, path, luvio, store, timestamp) {
241
241
  return input;
242
242
  }
243
- const select$g = function DataCleanRoomProviderRepresentationSelect() {
243
+ const select$k = function DataCleanRoomProviderRepresentationSelect() {
244
244
  return {
245
245
  kind: 'Fragment',
246
- version: VERSION$7,
246
+ version: VERSION$9,
247
247
  private: [],
248
248
  opaque: true
249
249
  };
250
250
  };
251
- function equals$7(existing, incoming) {
251
+ function equals$9(existing, incoming) {
252
252
  if (JSONStringify(incoming) !== JSONStringify(existing)) {
253
253
  return false;
254
254
  }
255
255
  return true;
256
256
  }
257
- const ingest$7 = function DataCleanRoomProviderRepresentationIngest(input, path, luvio, store, timestamp) {
257
+ const ingest$9 = function DataCleanRoomProviderRepresentationIngest(input, path, luvio, store, timestamp) {
258
258
  if (process.env.NODE_ENV !== 'production') {
259
- const validateError = validate$d(input);
259
+ const validateError = validate$f(input);
260
260
  if (validateError !== null) {
261
261
  throw validateError;
262
262
  }
263
263
  }
264
- const key = keyBuilderFromType$3(luvio, input);
264
+ const key = keyBuilderFromType$4(luvio, input);
265
265
  const ttlToUse = path.ttl !== undefined ? path.ttl : 60000;
266
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$7, "data-clean-room", VERSION$7, RepresentationType$7, equals$7);
266
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$9, "data-clean-room", VERSION$9, RepresentationType$9, equals$9);
267
267
  return createLink(key);
268
268
  };
269
- function getTypeCacheKeys$7(rootKeySet, luvio, input, fullPathFactory) {
269
+ function getTypeCacheKeys$9(rootKeySet, luvio, input, fullPathFactory) {
270
270
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
271
- const rootKey = keyBuilderFromType$3(luvio, input);
271
+ const rootKey = keyBuilderFromType$4(luvio, input);
272
272
  rootKeySet.set(rootKey, {
273
273
  namespace: keyPrefix,
274
- representationName: RepresentationType$7,
274
+ representationName: RepresentationType$9,
275
275
  mergeable: false
276
276
  });
277
277
  }
278
278
 
279
- const VERSION$6 = "52237eeecd4f8f11ae22e265d9abe5ca";
280
- function validate$c(obj, path = 'DataCleanRoomProviderCollectionRepresentation') {
279
+ const VERSION$8 = "52237eeecd4f8f11ae22e265d9abe5ca";
280
+ function validate$e(obj, path = 'DataCleanRoomProviderCollectionRepresentation') {
281
281
  const v_error = (() => {
282
282
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
283
283
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -353,14 +353,14 @@ function validate$c(obj, path = 'DataCleanRoomProviderCollectionRepresentation')
353
353
  })();
354
354
  return v_error === undefined ? null : v_error;
355
355
  }
356
- const RepresentationType$6 = 'DataCleanRoomProviderCollectionRepresentation';
357
- function normalize$6(input, existing, path, luvio, store, timestamp) {
356
+ const RepresentationType$8 = 'DataCleanRoomProviderCollectionRepresentation';
357
+ function normalize$8(input, existing, path, luvio, store, timestamp) {
358
358
  const input_providers = input.providers;
359
359
  const input_providers_id = path.fullPath + '__providers';
360
360
  for (let i = 0; i < input_providers.length; i++) {
361
361
  const input_providers_item = input_providers[i];
362
362
  let input_providers_item_id = input_providers_id + '__' + i;
363
- input_providers[i] = ingest$7(input_providers_item, {
363
+ input_providers[i] = ingest$9(input_providers_item, {
364
364
  fullPath: input_providers_item_id,
365
365
  propertyName: i,
366
366
  parent: {
@@ -373,10 +373,10 @@ function normalize$6(input, existing, path, luvio, store, timestamp) {
373
373
  }
374
374
  return input;
375
375
  }
376
- const select$f = function DataCleanRoomProviderCollectionRepresentationSelect() {
376
+ const select$j = function DataCleanRoomProviderCollectionRepresentationSelect() {
377
377
  return {
378
378
  kind: 'Fragment',
379
- version: VERSION$6,
379
+ version: VERSION$8,
380
380
  private: [],
381
381
  selections: [
382
382
  {
@@ -403,7 +403,7 @@ const select$f = function DataCleanRoomProviderCollectionRepresentationSelect()
403
403
  name: 'providers',
404
404
  kind: 'Link',
405
405
  plural: true,
406
- fragment: select$g()
406
+ fragment: select$k()
407
407
  },
408
408
  {
409
409
  name: 'totalSize',
@@ -413,7 +413,7 @@ const select$f = function DataCleanRoomProviderCollectionRepresentationSelect()
413
413
  ]
414
414
  };
415
415
  };
416
- function equals$6(existing, incoming) {
416
+ function equals$8(existing, incoming) {
417
417
  const existing_limit = existing.limit;
418
418
  const incoming_limit = incoming.limit;
419
419
  // if at least one of these optionals is defined
@@ -491,48 +491,48 @@ function equals$6(existing, incoming) {
491
491
  }
492
492
  return true;
493
493
  }
494
- const ingest$6 = function DataCleanRoomProviderCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
494
+ const ingest$8 = function DataCleanRoomProviderCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
495
495
  if (process.env.NODE_ENV !== 'production') {
496
- const validateError = validate$c(input);
496
+ const validateError = validate$e(input);
497
497
  if (validateError !== null) {
498
498
  throw validateError;
499
499
  }
500
500
  }
501
501
  const key = path.fullPath;
502
502
  const ttlToUse = path.ttl !== undefined ? path.ttl : 60000;
503
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$6, "data-clean-room", VERSION$6, RepresentationType$6, equals$6);
503
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$8, "data-clean-room", VERSION$8, RepresentationType$8, equals$8);
504
504
  return createLink(key);
505
505
  };
506
- function getTypeCacheKeys$6(rootKeySet, luvio, input, fullPathFactory) {
506
+ function getTypeCacheKeys$8(rootKeySet, luvio, input, fullPathFactory) {
507
507
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
508
508
  const rootKey = fullPathFactory();
509
509
  rootKeySet.set(rootKey, {
510
510
  namespace: keyPrefix,
511
- representationName: RepresentationType$6,
511
+ representationName: RepresentationType$8,
512
512
  mergeable: false
513
513
  });
514
514
  const input_providers_length = input.providers.length;
515
515
  for (let i = 0; i < input_providers_length; i++) {
516
- getTypeCacheKeys$7(rootKeySet, luvio, input.providers[i]);
516
+ getTypeCacheKeys$9(rootKeySet, luvio, input.providers[i]);
517
517
  }
518
518
  }
519
519
 
520
- function select$e(luvio, params) {
521
- return select$f();
520
+ function select$i(luvio, params) {
521
+ return select$j();
522
522
  }
523
- function keyBuilder$a(luvio, params) {
523
+ function keyBuilder$d(luvio, params) {
524
524
  return keyPrefix + '::DataCleanRoomProviderCollectionRepresentation:(' + 'filters:' + params.queryParams.filters + ',' + 'limit:' + params.queryParams.limit + ',' + 'offset:' + params.queryParams.offset + ',' + 'orderBy:' + params.queryParams.orderBy + ')';
525
525
  }
526
- function getResponseCacheKeys$8(storeKeyMap, luvio, resourceParams, response) {
527
- getTypeCacheKeys$6(storeKeyMap, luvio, response, () => keyBuilder$a(luvio, resourceParams));
526
+ function getResponseCacheKeys$a(storeKeyMap, luvio, resourceParams, response) {
527
+ getTypeCacheKeys$8(storeKeyMap, luvio, response, () => keyBuilder$d(luvio, resourceParams));
528
528
  }
529
- function ingestSuccess$8(luvio, resourceParams, response, snapshotRefresh) {
529
+ function ingestSuccess$a(luvio, resourceParams, response, snapshotRefresh) {
530
530
  const { body } = response;
531
- const key = keyBuilder$a(luvio, resourceParams);
532
- luvio.storeIngest(key, ingest$6, body);
531
+ const key = keyBuilder$d(luvio, resourceParams);
532
+ luvio.storeIngest(key, ingest$8, body);
533
533
  const snapshot = luvio.storeLookup({
534
534
  recordId: key,
535
- node: select$e(),
535
+ node: select$i(),
536
536
  variables: {},
537
537
  }, snapshotRefresh);
538
538
  if (process.env.NODE_ENV !== 'production') {
@@ -543,13 +543,13 @@ function ingestSuccess$8(luvio, resourceParams, response, snapshotRefresh) {
543
543
  deepFreeze(snapshot.data);
544
544
  return snapshot;
545
545
  }
546
- function ingestError$3(luvio, params, error, snapshotRefresh) {
547
- const key = keyBuilder$a(luvio, params);
546
+ function ingestError$4(luvio, params, error, snapshotRefresh) {
547
+ const key = keyBuilder$d(luvio, params);
548
548
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
549
549
  luvio.storeIngestError(key, errorSnapshot);
550
550
  return errorSnapshot;
551
551
  }
552
- function createResourceRequest$8(config) {
552
+ function createResourceRequest$a(config) {
553
553
  const headers = {};
554
554
  return {
555
555
  baseUri: '/services/data/v64.0',
@@ -563,108 +563,108 @@ function createResourceRequest$8(config) {
563
563
  };
564
564
  }
565
565
 
566
- const adapterName$8 = 'getDataCleanRoomProvidersPaginated';
566
+ const adapterName$a = 'getDataCleanRoomProvidersPaginated';
567
567
  const getDataCleanRoomProvidersPaginated_ConfigPropertyMetadata = [
568
568
  generateParamConfigMetadata('filters', false, 1 /* QueryParameter */, 0 /* String */),
569
569
  generateParamConfigMetadata('limit', false, 1 /* QueryParameter */, 3 /* Integer */),
570
570
  generateParamConfigMetadata('offset', false, 1 /* QueryParameter */, 3 /* Integer */),
571
571
  generateParamConfigMetadata('orderBy', false, 1 /* QueryParameter */, 0 /* String */),
572
572
  ];
573
- const getDataCleanRoomProvidersPaginated_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$8, getDataCleanRoomProvidersPaginated_ConfigPropertyMetadata);
574
- const createResourceParams$8 = /*#__PURE__*/ createResourceParams$9(getDataCleanRoomProvidersPaginated_ConfigPropertyMetadata);
575
- function keyBuilder$9(luvio, config) {
576
- const resourceParams = createResourceParams$8(config);
577
- return keyBuilder$a(luvio, resourceParams);
573
+ const getDataCleanRoomProvidersPaginated_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$a, getDataCleanRoomProvidersPaginated_ConfigPropertyMetadata);
574
+ const createResourceParams$a = /*#__PURE__*/ createResourceParams$b(getDataCleanRoomProvidersPaginated_ConfigPropertyMetadata);
575
+ function keyBuilder$c(luvio, config) {
576
+ const resourceParams = createResourceParams$a(config);
577
+ return keyBuilder$d(luvio, resourceParams);
578
578
  }
579
- function typeCheckConfig$8(untrustedConfig) {
579
+ function typeCheckConfig$a(untrustedConfig) {
580
580
  const config = {};
581
- typeCheckConfig$9(untrustedConfig, config, getDataCleanRoomProvidersPaginated_ConfigPropertyMetadata);
581
+ typeCheckConfig$b(untrustedConfig, config, getDataCleanRoomProvidersPaginated_ConfigPropertyMetadata);
582
582
  return config;
583
583
  }
584
- function validateAdapterConfig$8(untrustedConfig, configPropertyNames) {
584
+ function validateAdapterConfig$a(untrustedConfig, configPropertyNames) {
585
585
  if (!untrustedIsObject(untrustedConfig)) {
586
586
  return null;
587
587
  }
588
588
  if (process.env.NODE_ENV !== 'production') {
589
589
  validateConfig(untrustedConfig, configPropertyNames);
590
590
  }
591
- const config = typeCheckConfig$8(untrustedConfig);
591
+ const config = typeCheckConfig$a(untrustedConfig);
592
592
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
593
593
  return null;
594
594
  }
595
595
  return config;
596
596
  }
597
- function adapterFragment$3(luvio, config) {
598
- createResourceParams$8(config);
599
- return select$e();
597
+ function adapterFragment$4(luvio, config) {
598
+ createResourceParams$a(config);
599
+ return select$i();
600
600
  }
601
- function onFetchResponseSuccess$3(luvio, config, resourceParams, response) {
602
- const snapshot = ingestSuccess$8(luvio, resourceParams, response, {
601
+ function onFetchResponseSuccess$4(luvio, config, resourceParams, response) {
602
+ const snapshot = ingestSuccess$a(luvio, resourceParams, response, {
603
603
  config,
604
- resolve: () => buildNetworkSnapshot$8(luvio, config, snapshotRefreshOptions)
604
+ resolve: () => buildNetworkSnapshot$a(luvio, config, snapshotRefreshOptions)
605
605
  });
606
606
  return luvio.storeBroadcast().then(() => snapshot);
607
607
  }
608
- function onFetchResponseError$3(luvio, config, resourceParams, response) {
609
- const snapshot = ingestError$3(luvio, resourceParams, response, {
608
+ function onFetchResponseError$4(luvio, config, resourceParams, response) {
609
+ const snapshot = ingestError$4(luvio, resourceParams, response, {
610
610
  config,
611
- resolve: () => buildNetworkSnapshot$8(luvio, config, snapshotRefreshOptions)
611
+ resolve: () => buildNetworkSnapshot$a(luvio, config, snapshotRefreshOptions)
612
612
  });
613
613
  return luvio.storeBroadcast().then(() => snapshot);
614
614
  }
615
- function buildNetworkSnapshot$8(luvio, config, options) {
616
- const resourceParams = createResourceParams$8(config);
617
- const request = createResourceRequest$8(resourceParams);
615
+ function buildNetworkSnapshot$a(luvio, config, options) {
616
+ const resourceParams = createResourceParams$a(config);
617
+ const request = createResourceRequest$a(resourceParams);
618
618
  return luvio.dispatchResourceRequest(request, options)
619
619
  .then((response) => {
620
- return luvio.handleSuccessResponse(() => onFetchResponseSuccess$3(luvio, config, resourceParams, response), () => {
620
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess$4(luvio, config, resourceParams, response), () => {
621
621
  const cache = new StoreKeyMap();
622
- getResponseCacheKeys$8(cache, luvio, resourceParams, response.body);
622
+ getResponseCacheKeys$a(cache, luvio, resourceParams, response.body);
623
623
  return cache;
624
624
  });
625
625
  }, (response) => {
626
- return luvio.handleErrorResponse(() => onFetchResponseError$3(luvio, config, resourceParams, response));
626
+ return luvio.handleErrorResponse(() => onFetchResponseError$4(luvio, config, resourceParams, response));
627
627
  });
628
628
  }
629
- function buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext) {
630
- return buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext, buildNetworkSnapshot$8, undefined, false);
629
+ function buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext) {
630
+ return buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext, buildNetworkSnapshot$a, undefined, false);
631
631
  }
632
- function buildCachedSnapshotCachePolicy$3(context, storeLookup) {
632
+ function buildCachedSnapshotCachePolicy$4(context, storeLookup) {
633
633
  const { luvio, config } = context;
634
634
  const selector = {
635
- recordId: keyBuilder$9(luvio, config),
636
- node: adapterFragment$3(luvio, config),
635
+ recordId: keyBuilder$c(luvio, config),
636
+ node: adapterFragment$4(luvio, config),
637
637
  variables: {},
638
638
  };
639
639
  const cacheSnapshot = storeLookup(selector, {
640
640
  config,
641
- resolve: () => buildNetworkSnapshot$8(luvio, config, snapshotRefreshOptions)
641
+ resolve: () => buildNetworkSnapshot$a(luvio, config, snapshotRefreshOptions)
642
642
  });
643
643
  return cacheSnapshot;
644
644
  }
645
645
  const getDataCleanRoomProvidersPaginatedAdapterFactory = (luvio) => function dataCleanRoom__getDataCleanRoomProvidersPaginated(untrustedConfig, requestContext) {
646
- const config = validateAdapterConfig$8(untrustedConfig, getDataCleanRoomProvidersPaginated_ConfigPropertyNames);
646
+ const config = validateAdapterConfig$a(untrustedConfig, getDataCleanRoomProvidersPaginated_ConfigPropertyNames);
647
647
  // Invalid or incomplete config
648
648
  if (config === null) {
649
649
  return null;
650
650
  }
651
651
  return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
652
- buildCachedSnapshotCachePolicy$3, buildNetworkSnapshotCachePolicy$3);
652
+ buildCachedSnapshotCachePolicy$4, buildNetworkSnapshotCachePolicy$4);
653
653
  };
654
654
 
655
- function select$d(luvio, params) {
656
- return select$g();
655
+ function select$h(luvio, params) {
656
+ return select$k();
657
657
  }
658
- function getResponseCacheKeys$7(storeKeyMap, luvio, resourceParams, response) {
659
- getTypeCacheKeys$7(storeKeyMap, luvio, response);
658
+ function getResponseCacheKeys$9(storeKeyMap, luvio, resourceParams, response) {
659
+ getTypeCacheKeys$9(storeKeyMap, luvio, response);
660
660
  }
661
- function ingestSuccess$7(luvio, resourceParams, response) {
661
+ function ingestSuccess$9(luvio, resourceParams, response) {
662
662
  const { body } = response;
663
- const key = keyBuilderFromType$3(luvio, body);
664
- luvio.storeIngest(key, ingest$7, body);
663
+ const key = keyBuilderFromType$4(luvio, body);
664
+ luvio.storeIngest(key, ingest$9, body);
665
665
  const snapshot = luvio.storeLookup({
666
666
  recordId: key,
667
- node: select$d(),
667
+ node: select$h(),
668
668
  variables: {},
669
669
  });
670
670
  if (process.env.NODE_ENV !== 'production') {
@@ -675,7 +675,7 @@ function ingestSuccess$7(luvio, resourceParams, response) {
675
675
  deepFreeze(snapshot.data);
676
676
  return snapshot;
677
677
  }
678
- function createResourceRequest$7(config) {
678
+ function createResourceRequest$9(config) {
679
679
  const headers = {};
680
680
  return {
681
681
  baseUri: '/services/data/v64.0',
@@ -689,7 +689,7 @@ function createResourceRequest$7(config) {
689
689
  };
690
690
  }
691
691
 
692
- const adapterName$7 = 'createProvider';
692
+ const adapterName$9 = 'createProvider';
693
693
  const createProvider_ConfigPropertyMetadata = [
694
694
  generateParamConfigMetadata('label', true, 2 /* Body */, 0 /* String */),
695
695
  generateParamConfigMetadata('description', true, 2 /* Body */, 0 /* String */),
@@ -699,37 +699,37 @@ const createProvider_ConfigPropertyMetadata = [
699
699
  generateParamConfigMetadata('name', false, 2 /* Body */, 0 /* String */),
700
700
  generateParamConfigMetadata('logoUrl', false, 2 /* Body */, 0 /* String */),
701
701
  ];
702
- const createProvider_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$7, createProvider_ConfigPropertyMetadata);
703
- const createResourceParams$7 = /*#__PURE__*/ createResourceParams$9(createProvider_ConfigPropertyMetadata);
704
- function typeCheckConfig$7(untrustedConfig) {
702
+ const createProvider_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$9, createProvider_ConfigPropertyMetadata);
703
+ const createResourceParams$9 = /*#__PURE__*/ createResourceParams$b(createProvider_ConfigPropertyMetadata);
704
+ function typeCheckConfig$9(untrustedConfig) {
705
705
  const config = {};
706
- typeCheckConfig$9(untrustedConfig, config, createProvider_ConfigPropertyMetadata);
706
+ typeCheckConfig$b(untrustedConfig, config, createProvider_ConfigPropertyMetadata);
707
707
  return config;
708
708
  }
709
- function validateAdapterConfig$7(untrustedConfig, configPropertyNames) {
709
+ function validateAdapterConfig$9(untrustedConfig, configPropertyNames) {
710
710
  if (!untrustedIsObject(untrustedConfig)) {
711
711
  return null;
712
712
  }
713
713
  if (process.env.NODE_ENV !== 'production') {
714
714
  validateConfig(untrustedConfig, configPropertyNames);
715
715
  }
716
- const config = typeCheckConfig$7(untrustedConfig);
716
+ const config = typeCheckConfig$9(untrustedConfig);
717
717
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
718
718
  return null;
719
719
  }
720
720
  return config;
721
721
  }
722
- function buildNetworkSnapshot$7(luvio, config, options) {
723
- const resourceParams = createResourceParams$7(config);
724
- const request = createResourceRequest$7(resourceParams);
722
+ function buildNetworkSnapshot$9(luvio, config, options) {
723
+ const resourceParams = createResourceParams$9(config);
724
+ const request = createResourceRequest$9(resourceParams);
725
725
  return luvio.dispatchResourceRequest(request, options)
726
726
  .then((response) => {
727
727
  return luvio.handleSuccessResponse(() => {
728
- const snapshot = ingestSuccess$7(luvio, resourceParams, response);
728
+ const snapshot = ingestSuccess$9(luvio, resourceParams, response);
729
729
  return luvio.storeBroadcast().then(() => snapshot);
730
730
  }, () => {
731
731
  const cache = new StoreKeyMap();
732
- getResponseCacheKeys$7(cache, luvio, resourceParams, response.body);
732
+ getResponseCacheKeys$9(cache, luvio, resourceParams, response.body);
733
733
  return cache;
734
734
  });
735
735
  }, (response) => {
@@ -739,16 +739,16 @@ function buildNetworkSnapshot$7(luvio, config, options) {
739
739
  }
740
740
  const createProviderAdapterFactory = (luvio) => {
741
741
  return function createProvider(untrustedConfig) {
742
- const config = validateAdapterConfig$7(untrustedConfig, createProvider_ConfigPropertyNames);
742
+ const config = validateAdapterConfig$9(untrustedConfig, createProvider_ConfigPropertyNames);
743
743
  // Invalid or incomplete config
744
744
  if (config === null) {
745
745
  throw new Error('Invalid config for "createProvider"');
746
746
  }
747
- return buildNetworkSnapshot$7(luvio, config);
747
+ return buildNetworkSnapshot$9(luvio, config);
748
748
  };
749
749
  };
750
750
 
751
- function validate$b(obj, path = 'UseCaseTemplateMappingAttributeFilterOptionRepresentation') {
751
+ function validate$d(obj, path = 'UseCaseTemplateMappingAttributeFilterOptionRepresentation') {
752
752
  const v_error = (() => {
753
753
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
754
754
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -774,7 +774,7 @@ function validate$b(obj, path = 'UseCaseTemplateMappingAttributeFilterOptionRepr
774
774
  return v_error === undefined ? null : v_error;
775
775
  }
776
776
 
777
- function validate$a(obj, path = 'UseCaseTemplateMappingPathAttributeRepresentation') {
777
+ function validate$c(obj, path = 'UseCaseTemplateMappingPathAttributeRepresentation') {
778
778
  const v_error = (() => {
779
779
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
780
780
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -793,7 +793,7 @@ function validate$a(obj, path = 'UseCaseTemplateMappingPathAttributeRepresentati
793
793
  return v_error === undefined ? null : v_error;
794
794
  }
795
795
 
796
- function validate$9(obj, path = 'UseCaseTemplateMappingSubjectAttributeRepresentation') {
796
+ function validate$b(obj, path = 'UseCaseTemplateMappingSubjectAttributeRepresentation') {
797
797
  const v_error = (() => {
798
798
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
799
799
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -822,7 +822,7 @@ function validate$9(obj, path = 'UseCaseTemplateMappingSubjectAttributeRepresent
822
822
  return v_error === undefined ? null : v_error;
823
823
  }
824
824
 
825
- function validate$8(obj, path = 'UseCaseTemplateMappingAttributeRepresentation') {
825
+ function validate$a(obj, path = 'UseCaseTemplateMappingAttributeRepresentation') {
826
826
  const v_error = (() => {
827
827
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
828
828
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -842,7 +842,7 @@ function validate$8(obj, path = 'UseCaseTemplateMappingAttributeRepresentation')
842
842
  if (obj.createdBy !== undefined) {
843
843
  const obj_createdBy = obj.createdBy;
844
844
  const path_createdBy = path + '.createdBy';
845
- const referencepath_createdByValidationError = validate$e(obj_createdBy, path_createdBy);
845
+ const referencepath_createdByValidationError = validate$g(obj_createdBy, path_createdBy);
846
846
  if (referencepath_createdByValidationError !== null) {
847
847
  let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_createdBy + '")\n';
848
848
  message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -859,7 +859,7 @@ function validate$8(obj, path = 'UseCaseTemplateMappingAttributeRepresentation')
859
859
  if (obj.dataMapping !== undefined) {
860
860
  const obj_dataMapping = obj.dataMapping;
861
861
  const path_dataMapping = path + '.dataMapping';
862
- const referencepath_dataMappingValidationError = validate$7(obj_dataMapping, path_dataMapping);
862
+ const referencepath_dataMappingValidationError = validate$9(obj_dataMapping, path_dataMapping);
863
863
  if (referencepath_dataMappingValidationError !== null) {
864
864
  let message = 'Object doesn\'t match UseCaseTemplateMappingRepresentation (at "' + path_dataMapping + '")\n';
865
865
  message += referencepath_dataMappingValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -869,7 +869,7 @@ function validate$8(obj, path = 'UseCaseTemplateMappingAttributeRepresentation')
869
869
  if (obj.filterOptions !== undefined) {
870
870
  const obj_filterOptions = obj.filterOptions;
871
871
  const path_filterOptions = path + '.filterOptions';
872
- const referencepath_filterOptionsValidationError = validate$b(obj_filterOptions, path_filterOptions);
872
+ const referencepath_filterOptionsValidationError = validate$d(obj_filterOptions, path_filterOptions);
873
873
  if (referencepath_filterOptionsValidationError !== null) {
874
874
  let message = 'Object doesn\'t match UseCaseTemplateMappingAttributeFilterOptionRepresentation (at "' + path_filterOptions + '")\n';
875
875
  message += referencepath_filterOptionsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -893,7 +893,7 @@ function validate$8(obj, path = 'UseCaseTemplateMappingAttributeRepresentation')
893
893
  if (obj.lastModifiedBy !== undefined) {
894
894
  const obj_lastModifiedBy = obj.lastModifiedBy;
895
895
  const path_lastModifiedBy = path + '.lastModifiedBy';
896
- const referencepath_lastModifiedByValidationError = validate$e(obj_lastModifiedBy, path_lastModifiedBy);
896
+ const referencepath_lastModifiedByValidationError = validate$g(obj_lastModifiedBy, path_lastModifiedBy);
897
897
  if (referencepath_lastModifiedByValidationError !== null) {
898
898
  let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_lastModifiedBy + '")\n';
899
899
  message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -929,7 +929,7 @@ function validate$8(obj, path = 'UseCaseTemplateMappingAttributeRepresentation')
929
929
  for (let i = 0; i < obj_path.length; i++) {
930
930
  const obj_path_item = obj_path[i];
931
931
  const path_path_item = path_path + '[' + i + ']';
932
- const referencepath_path_itemValidationError = validate$a(obj_path_item, path_path_item);
932
+ const referencepath_path_itemValidationError = validate$c(obj_path_item, path_path_item);
933
933
  if (referencepath_path_itemValidationError !== null) {
934
934
  let message = 'Object doesn\'t match UseCaseTemplateMappingPathAttributeRepresentation (at "' + path_path_item + '")\n';
935
935
  message += referencepath_path_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -938,7 +938,7 @@ function validate$8(obj, path = 'UseCaseTemplateMappingAttributeRepresentation')
938
938
  }
939
939
  const obj_subjectAttribute = obj.subjectAttribute;
940
940
  const path_subjectAttribute = path + '.subjectAttribute';
941
- const referencepath_subjectAttributeValidationError = validate$9(obj_subjectAttribute, path_subjectAttribute);
941
+ const referencepath_subjectAttributeValidationError = validate$b(obj_subjectAttribute, path_subjectAttribute);
942
942
  if (referencepath_subjectAttributeValidationError !== null) {
943
943
  let message = 'Object doesn\'t match UseCaseTemplateMappingSubjectAttributeRepresentation (at "' + path_subjectAttribute + '")\n';
944
944
  message += referencepath_subjectAttributeValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -955,7 +955,7 @@ function validate$8(obj, path = 'UseCaseTemplateMappingAttributeRepresentation')
955
955
  return v_error === undefined ? null : v_error;
956
956
  }
957
957
 
958
- function validate$7(obj, path = 'UseCaseTemplateMappingRepresentation') {
958
+ function validate$9(obj, path = 'UseCaseTemplateMappingRepresentation') {
959
959
  const v_error = (() => {
960
960
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
961
961
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -968,7 +968,7 @@ function validate$7(obj, path = 'UseCaseTemplateMappingRepresentation') {
968
968
  for (let i = 0; i < obj_attributes.length; i++) {
969
969
  const obj_attributes_item = obj_attributes[i];
970
970
  const path_attributes_item = path_attributes + '[' + i + ']';
971
- const referencepath_attributes_itemValidationError = validate$8(obj_attributes_item, path_attributes_item);
971
+ const referencepath_attributes_itemValidationError = validate$a(obj_attributes_item, path_attributes_item);
972
972
  if (referencepath_attributes_itemValidationError !== null) {
973
973
  let message = 'Object doesn\'t match UseCaseTemplateMappingAttributeRepresentation (at "' + path_attributes_item + '")\n';
974
974
  message += referencepath_attributes_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -983,7 +983,7 @@ function validate$7(obj, path = 'UseCaseTemplateMappingRepresentation') {
983
983
  if (obj.createdBy !== undefined) {
984
984
  const obj_createdBy = obj.createdBy;
985
985
  const path_createdBy = path + '.createdBy';
986
- const referencepath_createdByValidationError = validate$e(obj_createdBy, path_createdBy);
986
+ const referencepath_createdByValidationError = validate$g(obj_createdBy, path_createdBy);
987
987
  if (referencepath_createdByValidationError !== null) {
988
988
  let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_createdBy + '")\n';
989
989
  message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -1014,7 +1014,7 @@ function validate$7(obj, path = 'UseCaseTemplateMappingRepresentation') {
1014
1014
  if (obj.lastModifiedBy !== undefined) {
1015
1015
  const obj_lastModifiedBy = obj.lastModifiedBy;
1016
1016
  const path_lastModifiedBy = path + '.lastModifiedBy';
1017
- const referencepath_lastModifiedByValidationError = validate$e(obj_lastModifiedBy, path_lastModifiedBy);
1017
+ const referencepath_lastModifiedByValidationError = validate$g(obj_lastModifiedBy, path_lastModifiedBy);
1018
1018
  if (referencepath_lastModifiedByValidationError !== null) {
1019
1019
  let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_lastModifiedBy + '")\n';
1020
1020
  message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -1053,8 +1053,8 @@ function validate$7(obj, path = 'UseCaseTemplateMappingRepresentation') {
1053
1053
  return v_error === undefined ? null : v_error;
1054
1054
  }
1055
1055
 
1056
- const VERSION$5 = "422829d0bdee7c37a92811d97b2c7c2b";
1057
- function validate$6(obj, path = 'DataCleanRoomDataSpecificationRepresentation') {
1056
+ const VERSION$7 = "f502169b0ec369d5e3e577700c8835b6";
1057
+ function validate$8(obj, path = 'DataCleanRoomDataSpecificationRepresentation') {
1058
1058
  const v_error = (() => {
1059
1059
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1060
1060
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -1062,7 +1062,7 @@ function validate$6(obj, path = 'DataCleanRoomDataSpecificationRepresentation')
1062
1062
  if (obj.createdBy !== undefined) {
1063
1063
  const obj_createdBy = obj.createdBy;
1064
1064
  const path_createdBy = path + '.createdBy';
1065
- const referencepath_createdByValidationError = validate$e(obj_createdBy, path_createdBy);
1065
+ const referencepath_createdByValidationError = validate$g(obj_createdBy, path_createdBy);
1066
1066
  if (referencepath_createdByValidationError !== null) {
1067
1067
  let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_createdBy + '")\n';
1068
1068
  message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -1078,7 +1078,7 @@ function validate$6(obj, path = 'DataCleanRoomDataSpecificationRepresentation')
1078
1078
  }
1079
1079
  const obj_dataMapping = obj.dataMapping;
1080
1080
  const path_dataMapping = path + '.dataMapping';
1081
- const referencepath_dataMappingValidationError = validate$7(obj_dataMapping, path_dataMapping);
1081
+ const referencepath_dataMappingValidationError = validate$9(obj_dataMapping, path_dataMapping);
1082
1082
  if (referencepath_dataMappingValidationError !== null) {
1083
1083
  let message = 'Object doesn\'t match UseCaseTemplateMappingRepresentation (at "' + path_dataMapping + '")\n';
1084
1084
  message += referencepath_dataMappingValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -1089,10 +1089,12 @@ function validate$6(obj, path = 'DataCleanRoomDataSpecificationRepresentation')
1089
1089
  if (typeof obj_dataSpaceName !== 'string') {
1090
1090
  return new TypeError('Expected "string" but received "' + typeof obj_dataSpaceName + '" (at "' + path_dataSpaceName + '")');
1091
1091
  }
1092
- const obj_description = obj.description;
1093
- const path_description = path + '.description';
1094
- if (typeof obj_description !== 'string') {
1095
- return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
1092
+ if (obj.description !== undefined) {
1093
+ const obj_description = obj.description;
1094
+ const path_description = path + '.description';
1095
+ if (typeof obj_description !== 'string') {
1096
+ return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
1097
+ }
1096
1098
  }
1097
1099
  const obj_id = obj.id;
1098
1100
  const path_id = path + '.id';
@@ -1109,7 +1111,7 @@ function validate$6(obj, path = 'DataCleanRoomDataSpecificationRepresentation')
1109
1111
  if (obj.lastModifiedBy !== undefined) {
1110
1112
  const obj_lastModifiedBy = obj.lastModifiedBy;
1111
1113
  const path_lastModifiedBy = path + '.lastModifiedBy';
1112
- const referencepath_lastModifiedByValidationError = validate$e(obj_lastModifiedBy, path_lastModifiedBy);
1114
+ const referencepath_lastModifiedByValidationError = validate$g(obj_lastModifiedBy, path_lastModifiedBy);
1113
1115
  if (referencepath_lastModifiedByValidationError !== null) {
1114
1116
  let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_lastModifiedBy + '")\n';
1115
1117
  message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -1169,57 +1171,57 @@ function validate$6(obj, path = 'DataCleanRoomDataSpecificationRepresentation')
1169
1171
  })();
1170
1172
  return v_error === undefined ? null : v_error;
1171
1173
  }
1172
- const RepresentationType$5 = 'DataCleanRoomDataSpecificationRepresentation';
1173
- function keyBuilder$8(luvio, config) {
1174
- return keyPrefix + '::' + RepresentationType$5 + ':' + config.id;
1174
+ const RepresentationType$7 = 'DataCleanRoomDataSpecificationRepresentation';
1175
+ function keyBuilder$b(luvio, config) {
1176
+ return keyPrefix + '::' + RepresentationType$7 + ':' + config.id;
1175
1177
  }
1176
- function keyBuilderFromType$2(luvio, object) {
1178
+ function keyBuilderFromType$3(luvio, object) {
1177
1179
  const keyParams = {
1178
1180
  id: object.id
1179
1181
  };
1180
- return keyBuilder$8(luvio, keyParams);
1182
+ return keyBuilder$b(luvio, keyParams);
1181
1183
  }
1182
- function normalize$5(input, existing, path, luvio, store, timestamp) {
1184
+ function normalize$7(input, existing, path, luvio, store, timestamp) {
1183
1185
  return input;
1184
1186
  }
1185
- const select$c = function DataCleanRoomDataSpecificationRepresentationSelect() {
1187
+ const select$g = function DataCleanRoomDataSpecificationRepresentationSelect() {
1186
1188
  return {
1187
1189
  kind: 'Fragment',
1188
- version: VERSION$5,
1190
+ version: VERSION$7,
1189
1191
  private: [],
1190
1192
  opaque: true
1191
1193
  };
1192
1194
  };
1193
- function equals$5(existing, incoming) {
1195
+ function equals$7(existing, incoming) {
1194
1196
  if (JSONStringify(incoming) !== JSONStringify(existing)) {
1195
1197
  return false;
1196
1198
  }
1197
1199
  return true;
1198
1200
  }
1199
- const ingest$5 = function DataCleanRoomDataSpecificationRepresentationIngest(input, path, luvio, store, timestamp) {
1201
+ const ingest$7 = function DataCleanRoomDataSpecificationRepresentationIngest(input, path, luvio, store, timestamp) {
1200
1202
  if (process.env.NODE_ENV !== 'production') {
1201
- const validateError = validate$6(input);
1203
+ const validateError = validate$8(input);
1202
1204
  if (validateError !== null) {
1203
1205
  throw validateError;
1204
1206
  }
1205
1207
  }
1206
- const key = keyBuilderFromType$2(luvio, input);
1208
+ const key = keyBuilderFromType$3(luvio, input);
1207
1209
  const ttlToUse = path.ttl !== undefined ? path.ttl : 60000;
1208
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$5, "data-clean-room", VERSION$5, RepresentationType$5, equals$5);
1210
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$7, "data-clean-room", VERSION$7, RepresentationType$7, equals$7);
1209
1211
  return createLink(key);
1210
1212
  };
1211
- function getTypeCacheKeys$5(rootKeySet, luvio, input, fullPathFactory) {
1213
+ function getTypeCacheKeys$7(rootKeySet, luvio, input, fullPathFactory) {
1212
1214
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
1213
- const rootKey = keyBuilderFromType$2(luvio, input);
1215
+ const rootKey = keyBuilderFromType$3(luvio, input);
1214
1216
  rootKeySet.set(rootKey, {
1215
1217
  namespace: keyPrefix,
1216
- representationName: RepresentationType$5,
1218
+ representationName: RepresentationType$7,
1217
1219
  mergeable: false
1218
1220
  });
1219
1221
  }
1220
1222
 
1221
- const VERSION$4 = "6fb37e337652e88218f2171d1e56647b";
1222
- function validate$5(obj, path = 'DataCleanRoomSpecificationCollectionRepresentation') {
1223
+ const VERSION$6 = "6fb37e337652e88218f2171d1e56647b";
1224
+ function validate$7(obj, path = 'DataCleanRoomSpecificationCollectionRepresentation') {
1223
1225
  const v_error = (() => {
1224
1226
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1225
1227
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -1291,14 +1293,14 @@ function validate$5(obj, path = 'DataCleanRoomSpecificationCollectionRepresentat
1291
1293
  })();
1292
1294
  return v_error === undefined ? null : v_error;
1293
1295
  }
1294
- const RepresentationType$4 = 'DataCleanRoomSpecificationCollectionRepresentation';
1295
- function normalize$4(input, existing, path, luvio, store, timestamp) {
1296
+ const RepresentationType$6 = 'DataCleanRoomSpecificationCollectionRepresentation';
1297
+ function normalize$6(input, existing, path, luvio, store, timestamp) {
1296
1298
  const input_cleanroomSpecifications = input.cleanroomSpecifications;
1297
1299
  const input_cleanroomSpecifications_id = path.fullPath + '__cleanroomSpecifications';
1298
1300
  for (let i = 0; i < input_cleanroomSpecifications.length; i++) {
1299
1301
  const input_cleanroomSpecifications_item = input_cleanroomSpecifications[i];
1300
1302
  let input_cleanroomSpecifications_item_id = input_cleanroomSpecifications_id + '__' + i;
1301
- input_cleanroomSpecifications[i] = ingest$5(input_cleanroomSpecifications_item, {
1303
+ input_cleanroomSpecifications[i] = ingest$7(input_cleanroomSpecifications_item, {
1302
1304
  fullPath: input_cleanroomSpecifications_item_id,
1303
1305
  propertyName: i,
1304
1306
  parent: {
@@ -1311,17 +1313,17 @@ function normalize$4(input, existing, path, luvio, store, timestamp) {
1311
1313
  }
1312
1314
  return input;
1313
1315
  }
1314
- const select$b = function DataCleanRoomSpecificationCollectionRepresentationSelect() {
1316
+ const select$f = function DataCleanRoomSpecificationCollectionRepresentationSelect() {
1315
1317
  return {
1316
1318
  kind: 'Fragment',
1317
- version: VERSION$4,
1319
+ version: VERSION$6,
1318
1320
  private: [],
1319
1321
  selections: [
1320
1322
  {
1321
1323
  name: 'cleanroomSpecifications',
1322
1324
  kind: 'Link',
1323
1325
  plural: true,
1324
- fragment: select$c()
1326
+ fragment: select$g()
1325
1327
  },
1326
1328
  {
1327
1329
  name: 'currentPageUrl',
@@ -1349,7 +1351,7 @@ const select$b = function DataCleanRoomSpecificationCollectionRepresentationSele
1349
1351
  ]
1350
1352
  };
1351
1353
  };
1352
- function equals$4(existing, incoming) {
1354
+ function equals$6(existing, incoming) {
1353
1355
  const existing_limit = existing.limit;
1354
1356
  const incoming_limit = incoming.limit;
1355
1357
  if (!(existing_limit === incoming_limit)) {
@@ -1411,48 +1413,48 @@ function equals$4(existing, incoming) {
1411
1413
  }
1412
1414
  return true;
1413
1415
  }
1414
- const ingest$4 = function DataCleanRoomSpecificationCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
1416
+ const ingest$6 = function DataCleanRoomSpecificationCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
1415
1417
  if (process.env.NODE_ENV !== 'production') {
1416
- const validateError = validate$5(input);
1418
+ const validateError = validate$7(input);
1417
1419
  if (validateError !== null) {
1418
1420
  throw validateError;
1419
1421
  }
1420
1422
  }
1421
1423
  const key = path.fullPath;
1422
1424
  const ttlToUse = path.ttl !== undefined ? path.ttl : 60000;
1423
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$4, "data-clean-room", VERSION$4, RepresentationType$4, equals$4);
1425
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$6, "data-clean-room", VERSION$6, RepresentationType$6, equals$6);
1424
1426
  return createLink(key);
1425
1427
  };
1426
- function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
1428
+ function getTypeCacheKeys$6(rootKeySet, luvio, input, fullPathFactory) {
1427
1429
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
1428
1430
  const rootKey = fullPathFactory();
1429
1431
  rootKeySet.set(rootKey, {
1430
1432
  namespace: keyPrefix,
1431
- representationName: RepresentationType$4,
1433
+ representationName: RepresentationType$6,
1432
1434
  mergeable: false
1433
1435
  });
1434
1436
  const input_cleanroomSpecifications_length = input.cleanroomSpecifications.length;
1435
1437
  for (let i = 0; i < input_cleanroomSpecifications_length; i++) {
1436
- getTypeCacheKeys$5(rootKeySet, luvio, input.cleanroomSpecifications[i]);
1438
+ getTypeCacheKeys$7(rootKeySet, luvio, input.cleanroomSpecifications[i]);
1437
1439
  }
1438
1440
  }
1439
1441
 
1440
- function select$a(luvio, params) {
1441
- return select$b();
1442
+ function select$e(luvio, params) {
1443
+ return select$f();
1442
1444
  }
1443
- function keyBuilder$7(luvio, params) {
1445
+ function keyBuilder$a(luvio, params) {
1444
1446
  return keyPrefix + '::DataCleanRoomSpecificationCollectionRepresentation:(' + 'filters:' + params.queryParams.filters + ',' + 'limit:' + params.queryParams.limit + ',' + 'offset:' + params.queryParams.offset + ',' + 'orderBy:' + params.queryParams.orderBy + ')';
1445
1447
  }
1446
- function getResponseCacheKeys$6(storeKeyMap, luvio, resourceParams, response) {
1447
- getTypeCacheKeys$4(storeKeyMap, luvio, response, () => keyBuilder$7(luvio, resourceParams));
1448
+ function getResponseCacheKeys$8(storeKeyMap, luvio, resourceParams, response) {
1449
+ getTypeCacheKeys$6(storeKeyMap, luvio, response, () => keyBuilder$a(luvio, resourceParams));
1448
1450
  }
1449
- function ingestSuccess$6(luvio, resourceParams, response, snapshotRefresh) {
1451
+ function ingestSuccess$8(luvio, resourceParams, response, snapshotRefresh) {
1450
1452
  const { body } = response;
1451
- const key = keyBuilder$7(luvio, resourceParams);
1452
- luvio.storeIngest(key, ingest$4, body);
1453
+ const key = keyBuilder$a(luvio, resourceParams);
1454
+ luvio.storeIngest(key, ingest$6, body);
1453
1455
  const snapshot = luvio.storeLookup({
1454
1456
  recordId: key,
1455
- node: select$a(),
1457
+ node: select$e(),
1456
1458
  variables: {},
1457
1459
  }, snapshotRefresh);
1458
1460
  if (process.env.NODE_ENV !== 'production') {
@@ -1463,13 +1465,13 @@ function ingestSuccess$6(luvio, resourceParams, response, snapshotRefresh) {
1463
1465
  deepFreeze(snapshot.data);
1464
1466
  return snapshot;
1465
1467
  }
1466
- function ingestError$2(luvio, params, error, snapshotRefresh) {
1467
- const key = keyBuilder$7(luvio, params);
1468
+ function ingestError$3(luvio, params, error, snapshotRefresh) {
1469
+ const key = keyBuilder$a(luvio, params);
1468
1470
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
1469
1471
  luvio.storeIngestError(key, errorSnapshot);
1470
1472
  return errorSnapshot;
1471
1473
  }
1472
- function createResourceRequest$6(config) {
1474
+ function createResourceRequest$8(config) {
1473
1475
  const headers = {};
1474
1476
  return {
1475
1477
  baseUri: '/services/data/v64.0',
@@ -1483,108 +1485,108 @@ function createResourceRequest$6(config) {
1483
1485
  };
1484
1486
  }
1485
1487
 
1486
- const adapterName$6 = 'getDataCleanRoomSpecificationsPaginated';
1488
+ const adapterName$8 = 'getDataCleanRoomSpecificationsPaginated';
1487
1489
  const getDataCleanRoomSpecificationsPaginated_ConfigPropertyMetadata = [
1488
1490
  generateParamConfigMetadata('filters', false, 1 /* QueryParameter */, 0 /* String */),
1489
1491
  generateParamConfigMetadata('limit', false, 1 /* QueryParameter */, 3 /* Integer */),
1490
1492
  generateParamConfigMetadata('offset', false, 1 /* QueryParameter */, 3 /* Integer */),
1491
1493
  generateParamConfigMetadata('orderBy', false, 1 /* QueryParameter */, 0 /* String */),
1492
1494
  ];
1493
- const getDataCleanRoomSpecificationsPaginated_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, getDataCleanRoomSpecificationsPaginated_ConfigPropertyMetadata);
1494
- const createResourceParams$6 = /*#__PURE__*/ createResourceParams$9(getDataCleanRoomSpecificationsPaginated_ConfigPropertyMetadata);
1495
- function keyBuilder$6(luvio, config) {
1496
- const resourceParams = createResourceParams$6(config);
1497
- return keyBuilder$7(luvio, resourceParams);
1495
+ const getDataCleanRoomSpecificationsPaginated_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$8, getDataCleanRoomSpecificationsPaginated_ConfigPropertyMetadata);
1496
+ const createResourceParams$8 = /*#__PURE__*/ createResourceParams$b(getDataCleanRoomSpecificationsPaginated_ConfigPropertyMetadata);
1497
+ function keyBuilder$9(luvio, config) {
1498
+ const resourceParams = createResourceParams$8(config);
1499
+ return keyBuilder$a(luvio, resourceParams);
1498
1500
  }
1499
- function typeCheckConfig$6(untrustedConfig) {
1501
+ function typeCheckConfig$8(untrustedConfig) {
1500
1502
  const config = {};
1501
- typeCheckConfig$9(untrustedConfig, config, getDataCleanRoomSpecificationsPaginated_ConfigPropertyMetadata);
1503
+ typeCheckConfig$b(untrustedConfig, config, getDataCleanRoomSpecificationsPaginated_ConfigPropertyMetadata);
1502
1504
  return config;
1503
1505
  }
1504
- function validateAdapterConfig$6(untrustedConfig, configPropertyNames) {
1506
+ function validateAdapterConfig$8(untrustedConfig, configPropertyNames) {
1505
1507
  if (!untrustedIsObject(untrustedConfig)) {
1506
1508
  return null;
1507
1509
  }
1508
1510
  if (process.env.NODE_ENV !== 'production') {
1509
1511
  validateConfig(untrustedConfig, configPropertyNames);
1510
1512
  }
1511
- const config = typeCheckConfig$6(untrustedConfig);
1513
+ const config = typeCheckConfig$8(untrustedConfig);
1512
1514
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
1513
1515
  return null;
1514
1516
  }
1515
1517
  return config;
1516
1518
  }
1517
- function adapterFragment$2(luvio, config) {
1518
- createResourceParams$6(config);
1519
- return select$a();
1519
+ function adapterFragment$3(luvio, config) {
1520
+ createResourceParams$8(config);
1521
+ return select$e();
1520
1522
  }
1521
- function onFetchResponseSuccess$2(luvio, config, resourceParams, response) {
1522
- const snapshot = ingestSuccess$6(luvio, resourceParams, response, {
1523
+ function onFetchResponseSuccess$3(luvio, config, resourceParams, response) {
1524
+ const snapshot = ingestSuccess$8(luvio, resourceParams, response, {
1523
1525
  config,
1524
- resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
1526
+ resolve: () => buildNetworkSnapshot$8(luvio, config, snapshotRefreshOptions)
1525
1527
  });
1526
1528
  return luvio.storeBroadcast().then(() => snapshot);
1527
1529
  }
1528
- function onFetchResponseError$2(luvio, config, resourceParams, response) {
1529
- const snapshot = ingestError$2(luvio, resourceParams, response, {
1530
+ function onFetchResponseError$3(luvio, config, resourceParams, response) {
1531
+ const snapshot = ingestError$3(luvio, resourceParams, response, {
1530
1532
  config,
1531
- resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
1533
+ resolve: () => buildNetworkSnapshot$8(luvio, config, snapshotRefreshOptions)
1532
1534
  });
1533
1535
  return luvio.storeBroadcast().then(() => snapshot);
1534
1536
  }
1535
- function buildNetworkSnapshot$6(luvio, config, options) {
1536
- const resourceParams = createResourceParams$6(config);
1537
- const request = createResourceRequest$6(resourceParams);
1537
+ function buildNetworkSnapshot$8(luvio, config, options) {
1538
+ const resourceParams = createResourceParams$8(config);
1539
+ const request = createResourceRequest$8(resourceParams);
1538
1540
  return luvio.dispatchResourceRequest(request, options)
1539
1541
  .then((response) => {
1540
- return luvio.handleSuccessResponse(() => onFetchResponseSuccess$2(luvio, config, resourceParams, response), () => {
1542
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess$3(luvio, config, resourceParams, response), () => {
1541
1543
  const cache = new StoreKeyMap();
1542
- getResponseCacheKeys$6(cache, luvio, resourceParams, response.body);
1544
+ getResponseCacheKeys$8(cache, luvio, resourceParams, response.body);
1543
1545
  return cache;
1544
1546
  });
1545
1547
  }, (response) => {
1546
- return luvio.handleErrorResponse(() => onFetchResponseError$2(luvio, config, resourceParams, response));
1548
+ return luvio.handleErrorResponse(() => onFetchResponseError$3(luvio, config, resourceParams, response));
1547
1549
  });
1548
1550
  }
1549
- function buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext) {
1550
- return buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext, buildNetworkSnapshot$6, undefined, false);
1551
+ function buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext) {
1552
+ return buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext, buildNetworkSnapshot$8, undefined, false);
1551
1553
  }
1552
- function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
1554
+ function buildCachedSnapshotCachePolicy$3(context, storeLookup) {
1553
1555
  const { luvio, config } = context;
1554
1556
  const selector = {
1555
- recordId: keyBuilder$6(luvio, config),
1556
- node: adapterFragment$2(luvio, config),
1557
+ recordId: keyBuilder$9(luvio, config),
1558
+ node: adapterFragment$3(luvio, config),
1557
1559
  variables: {},
1558
1560
  };
1559
1561
  const cacheSnapshot = storeLookup(selector, {
1560
1562
  config,
1561
- resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
1563
+ resolve: () => buildNetworkSnapshot$8(luvio, config, snapshotRefreshOptions)
1562
1564
  });
1563
1565
  return cacheSnapshot;
1564
1566
  }
1565
1567
  const getDataCleanRoomSpecificationsPaginatedAdapterFactory = (luvio) => function dataCleanRoom__getDataCleanRoomSpecificationsPaginated(untrustedConfig, requestContext) {
1566
- const config = validateAdapterConfig$6(untrustedConfig, getDataCleanRoomSpecificationsPaginated_ConfigPropertyNames);
1568
+ const config = validateAdapterConfig$8(untrustedConfig, getDataCleanRoomSpecificationsPaginated_ConfigPropertyNames);
1567
1569
  // Invalid or incomplete config
1568
1570
  if (config === null) {
1569
1571
  return null;
1570
1572
  }
1571
1573
  return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
1572
- buildCachedSnapshotCachePolicy$2, buildNetworkSnapshotCachePolicy$2);
1574
+ buildCachedSnapshotCachePolicy$3, buildNetworkSnapshotCachePolicy$3);
1573
1575
  };
1574
1576
 
1575
- function select$9(luvio, params) {
1576
- return select$c();
1577
+ function select$d(luvio, params) {
1578
+ return select$g();
1577
1579
  }
1578
- function getResponseCacheKeys$5(storeKeyMap, luvio, resourceParams, response) {
1579
- getTypeCacheKeys$5(storeKeyMap, luvio, response);
1580
+ function getResponseCacheKeys$7(storeKeyMap, luvio, resourceParams, response) {
1581
+ getTypeCacheKeys$7(storeKeyMap, luvio, response);
1580
1582
  }
1581
- function ingestSuccess$5(luvio, resourceParams, response) {
1583
+ function ingestSuccess$7(luvio, resourceParams, response) {
1582
1584
  const { body } = response;
1583
- const key = keyBuilderFromType$2(luvio, body);
1584
- luvio.storeIngest(key, ingest$5, body);
1585
+ const key = keyBuilderFromType$3(luvio, body);
1586
+ luvio.storeIngest(key, ingest$7, body);
1585
1587
  const snapshot = luvio.storeLookup({
1586
1588
  recordId: key,
1587
- node: select$9(),
1589
+ node: select$d(),
1588
1590
  variables: {},
1589
1591
  });
1590
1592
  if (process.env.NODE_ENV !== 'production') {
@@ -1595,7 +1597,7 @@ function ingestSuccess$5(luvio, resourceParams, response) {
1595
1597
  deepFreeze(snapshot.data);
1596
1598
  return snapshot;
1597
1599
  }
1598
- function createResourceRequest$5(config) {
1600
+ function createResourceRequest$7(config) {
1599
1601
  const headers = {};
1600
1602
  return {
1601
1603
  baseUri: '/services/data/v64.0',
@@ -1609,7 +1611,7 @@ function createResourceRequest$5(config) {
1609
1611
  };
1610
1612
  }
1611
1613
 
1612
- const adapterName$5 = 'createDataCleanRoomSpecification';
1614
+ const adapterName$7 = 'createDataCleanRoomSpecification';
1613
1615
  const createDataCleanRoomSpecification_ConfigPropertyMetadata = [
1614
1616
  generateParamConfigMetadata('dataMapping', true, 2 /* Body */, 4 /* Unsupported */),
1615
1617
  generateParamConfigMetadata('memberType', true, 2 /* Body */, 0 /* String */),
@@ -1617,42 +1619,42 @@ const createDataCleanRoomSpecification_ConfigPropertyMetadata = [
1617
1619
  generateParamConfigMetadata('templateName', true, 2 /* Body */, 0 /* String */),
1618
1620
  generateParamConfigMetadata('name', false, 2 /* Body */, 0 /* String */),
1619
1621
  generateParamConfigMetadata('label', true, 2 /* Body */, 0 /* String */),
1620
- generateParamConfigMetadata('description', true, 2 /* Body */, 0 /* String */),
1622
+ generateParamConfigMetadata('description', false, 2 /* Body */, 0 /* String */),
1621
1623
  generateParamConfigMetadata('dataspaceName', false, 2 /* Body */, 0 /* String */),
1622
1624
  ];
1623
- const createDataCleanRoomSpecification_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, createDataCleanRoomSpecification_ConfigPropertyMetadata);
1624
- const createResourceParams$5 = /*#__PURE__*/ createResourceParams$9(createDataCleanRoomSpecification_ConfigPropertyMetadata);
1625
- function typeCheckConfig$5(untrustedConfig) {
1625
+ const createDataCleanRoomSpecification_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$7, createDataCleanRoomSpecification_ConfigPropertyMetadata);
1626
+ const createResourceParams$7 = /*#__PURE__*/ createResourceParams$b(createDataCleanRoomSpecification_ConfigPropertyMetadata);
1627
+ function typeCheckConfig$7(untrustedConfig) {
1626
1628
  const config = {};
1627
- typeCheckConfig$9(untrustedConfig, config, createDataCleanRoomSpecification_ConfigPropertyMetadata);
1629
+ typeCheckConfig$b(untrustedConfig, config, createDataCleanRoomSpecification_ConfigPropertyMetadata);
1628
1630
  const untrustedConfig_dataMapping = untrustedConfig.dataMapping;
1629
1631
  config.dataMapping = untrustedConfig_dataMapping;
1630
1632
  return config;
1631
1633
  }
1632
- function validateAdapterConfig$5(untrustedConfig, configPropertyNames) {
1634
+ function validateAdapterConfig$7(untrustedConfig, configPropertyNames) {
1633
1635
  if (!untrustedIsObject(untrustedConfig)) {
1634
1636
  return null;
1635
1637
  }
1636
1638
  if (process.env.NODE_ENV !== 'production') {
1637
1639
  validateConfig(untrustedConfig, configPropertyNames);
1638
1640
  }
1639
- const config = typeCheckConfig$5(untrustedConfig);
1641
+ const config = typeCheckConfig$7(untrustedConfig);
1640
1642
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
1641
1643
  return null;
1642
1644
  }
1643
1645
  return config;
1644
1646
  }
1645
- function buildNetworkSnapshot$5(luvio, config, options) {
1646
- const resourceParams = createResourceParams$5(config);
1647
- const request = createResourceRequest$5(resourceParams);
1647
+ function buildNetworkSnapshot$7(luvio, config, options) {
1648
+ const resourceParams = createResourceParams$7(config);
1649
+ const request = createResourceRequest$7(resourceParams);
1648
1650
  return luvio.dispatchResourceRequest(request, options)
1649
1651
  .then((response) => {
1650
1652
  return luvio.handleSuccessResponse(() => {
1651
- const snapshot = ingestSuccess$5(luvio, resourceParams, response);
1653
+ const snapshot = ingestSuccess$7(luvio, resourceParams, response);
1652
1654
  return luvio.storeBroadcast().then(() => snapshot);
1653
1655
  }, () => {
1654
1656
  const cache = new StoreKeyMap();
1655
- getResponseCacheKeys$5(cache, luvio, resourceParams, response.body);
1657
+ getResponseCacheKeys$7(cache, luvio, resourceParams, response.body);
1656
1658
  return cache;
1657
1659
  });
1658
1660
  }, (response) => {
@@ -1662,17 +1664,17 @@ function buildNetworkSnapshot$5(luvio, config, options) {
1662
1664
  }
1663
1665
  const createDataCleanRoomSpecificationAdapterFactory = (luvio) => {
1664
1666
  return function createDataCleanRoomSpecification(untrustedConfig) {
1665
- const config = validateAdapterConfig$5(untrustedConfig, createDataCleanRoomSpecification_ConfigPropertyNames);
1667
+ const config = validateAdapterConfig$7(untrustedConfig, createDataCleanRoomSpecification_ConfigPropertyNames);
1666
1668
  // Invalid or incomplete config
1667
1669
  if (config === null) {
1668
1670
  throw new Error('Invalid config for "createDataCleanRoomSpecification"');
1669
1671
  }
1670
- return buildNetworkSnapshot$5(luvio, config);
1672
+ return buildNetworkSnapshot$7(luvio, config);
1671
1673
  };
1672
1674
  };
1673
1675
 
1674
- const VERSION$3 = "60e6b0a7bcb30c169435125696ac47b1";
1675
- function validate$4(obj, path = 'DataCleanRoomMemberRepresentation') {
1676
+ const VERSION$5 = "60e6b0a7bcb30c169435125696ac47b1";
1677
+ function validate$6(obj, path = 'DataCleanRoomMemberRepresentation') {
1676
1678
  const v_error = (() => {
1677
1679
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1678
1680
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -1722,56 +1724,56 @@ function validate$4(obj, path = 'DataCleanRoomMemberRepresentation') {
1722
1724
  })();
1723
1725
  return v_error === undefined ? null : v_error;
1724
1726
  }
1725
- const RepresentationType$3 = 'DataCleanRoomMemberRepresentation';
1726
- function keyBuilder$5(luvio, config) {
1727
- return keyPrefix + '::' + RepresentationType$3 + ':' + config.invitationId;
1727
+ const RepresentationType$5 = 'DataCleanRoomMemberRepresentation';
1728
+ function keyBuilder$8(luvio, config) {
1729
+ return keyPrefix + '::' + RepresentationType$5 + ':' + config.invitationId;
1728
1730
  }
1729
- function keyBuilderFromType$1(luvio, object) {
1731
+ function keyBuilderFromType$2(luvio, object) {
1730
1732
  const keyParams = {
1731
1733
  invitationId: object.invitationId
1732
1734
  };
1733
- return keyBuilder$5(luvio, keyParams);
1735
+ return keyBuilder$8(luvio, keyParams);
1734
1736
  }
1735
- function normalize$3(input, existing, path, luvio, store, timestamp) {
1737
+ function normalize$5(input, existing, path, luvio, store, timestamp) {
1736
1738
  return input;
1737
1739
  }
1738
- const select$8 = function DataCleanRoomMemberRepresentationSelect() {
1740
+ const select$c = function DataCleanRoomMemberRepresentationSelect() {
1739
1741
  return {
1740
1742
  kind: 'Fragment',
1741
- version: VERSION$3,
1743
+ version: VERSION$5,
1742
1744
  private: [],
1743
1745
  opaque: true
1744
1746
  };
1745
1747
  };
1746
- function equals$3(existing, incoming) {
1748
+ function equals$5(existing, incoming) {
1747
1749
  if (JSONStringify(incoming) !== JSONStringify(existing)) {
1748
1750
  return false;
1749
1751
  }
1750
1752
  return true;
1751
1753
  }
1752
- const ingest$3 = function DataCleanRoomMemberRepresentationIngest(input, path, luvio, store, timestamp) {
1754
+ const ingest$5 = function DataCleanRoomMemberRepresentationIngest(input, path, luvio, store, timestamp) {
1753
1755
  if (process.env.NODE_ENV !== 'production') {
1754
- const validateError = validate$4(input);
1756
+ const validateError = validate$6(input);
1755
1757
  if (validateError !== null) {
1756
1758
  throw validateError;
1757
1759
  }
1758
1760
  }
1759
- const key = keyBuilderFromType$1(luvio, input);
1761
+ const key = keyBuilderFromType$2(luvio, input);
1760
1762
  const ttlToUse = path.ttl !== undefined ? path.ttl : 60000;
1761
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$3, "data-clean-room", VERSION$3, RepresentationType$3, equals$3);
1763
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$5, "data-clean-room", VERSION$5, RepresentationType$5, equals$5);
1762
1764
  return createLink(key);
1763
1765
  };
1764
- function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
1766
+ function getTypeCacheKeys$5(rootKeySet, luvio, input, fullPathFactory) {
1765
1767
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
1766
- const rootKey = keyBuilderFromType$1(luvio, input);
1768
+ const rootKey = keyBuilderFromType$2(luvio, input);
1767
1769
  rootKeySet.set(rootKey, {
1768
1770
  namespace: keyPrefix,
1769
- representationName: RepresentationType$3,
1771
+ representationName: RepresentationType$5,
1770
1772
  mergeable: false
1771
1773
  });
1772
1774
  }
1773
1775
 
1774
- function validate$3(obj, path = 'DataCleanRoomTemplateRepresentation') {
1776
+ function validate$5(obj, path = 'DataCleanRoomTemplateRepresentation') {
1775
1777
  const v_error = (() => {
1776
1778
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1777
1779
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -1784,7 +1786,7 @@ function validate$3(obj, path = 'DataCleanRoomTemplateRepresentation') {
1784
1786
  if (obj.createdBy !== undefined) {
1785
1787
  const obj_createdBy = obj.createdBy;
1786
1788
  const path_createdBy = path + '.createdBy';
1787
- const referencepath_createdByValidationError = validate$e(obj_createdBy, path_createdBy);
1789
+ const referencepath_createdByValidationError = validate$g(obj_createdBy, path_createdBy);
1788
1790
  if (referencepath_createdByValidationError !== null) {
1789
1791
  let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_createdBy + '")\n';
1790
1792
  message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -1820,7 +1822,7 @@ function validate$3(obj, path = 'DataCleanRoomTemplateRepresentation') {
1820
1822
  if (obj.lastModifiedBy !== undefined) {
1821
1823
  const obj_lastModifiedBy = obj.lastModifiedBy;
1822
1824
  const path_lastModifiedBy = path + '.lastModifiedBy';
1823
- const referencepath_lastModifiedByValidationError = validate$e(obj_lastModifiedBy, path_lastModifiedBy);
1825
+ const referencepath_lastModifiedByValidationError = validate$g(obj_lastModifiedBy, path_lastModifiedBy);
1824
1826
  if (referencepath_lastModifiedByValidationError !== null) {
1825
1827
  let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_lastModifiedBy + '")\n';
1826
1828
  message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -1864,8 +1866,8 @@ function validate$3(obj, path = 'DataCleanRoomTemplateRepresentation') {
1864
1866
  return v_error === undefined ? null : v_error;
1865
1867
  }
1866
1868
 
1867
- const VERSION$2 = "11bd9b71debcc363b339183bc8d65735";
1868
- function validate$2(obj, path = 'DataCleanRoomCollaborationRepresentation') {
1869
+ const VERSION$4 = "11bd9b71debcc363b339183bc8d65735";
1870
+ function validate$4(obj, path = 'DataCleanRoomCollaborationRepresentation') {
1869
1871
  const v_error = (() => {
1870
1872
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1871
1873
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -1880,7 +1882,7 @@ function validate$2(obj, path = 'DataCleanRoomCollaborationRepresentation') {
1880
1882
  if (obj.createdBy !== undefined) {
1881
1883
  const obj_createdBy = obj.createdBy;
1882
1884
  const path_createdBy = path + '.createdBy';
1883
- const referencepath_createdByValidationError = validate$e(obj_createdBy, path_createdBy);
1885
+ const referencepath_createdByValidationError = validate$g(obj_createdBy, path_createdBy);
1884
1886
  if (referencepath_createdByValidationError !== null) {
1885
1887
  let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_createdBy + '")\n';
1886
1888
  message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -1923,7 +1925,7 @@ function validate$2(obj, path = 'DataCleanRoomCollaborationRepresentation') {
1923
1925
  if (obj.lastModifiedBy !== undefined) {
1924
1926
  const obj_lastModifiedBy = obj.lastModifiedBy;
1925
1927
  const path_lastModifiedBy = path + '.lastModifiedBy';
1926
- const referencepath_lastModifiedByValidationError = validate$e(obj_lastModifiedBy, path_lastModifiedBy);
1928
+ const referencepath_lastModifiedByValidationError = validate$g(obj_lastModifiedBy, path_lastModifiedBy);
1927
1929
  if (referencepath_lastModifiedByValidationError !== null) {
1928
1930
  let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_lastModifiedBy + '")\n';
1929
1931
  message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -1945,7 +1947,7 @@ function validate$2(obj, path = 'DataCleanRoomCollaborationRepresentation') {
1945
1947
  for (let i = 0; i < obj_members.length; i++) {
1946
1948
  const obj_members_item = obj_members[i];
1947
1949
  const path_members_item = path_members + '[' + i + ']';
1948
- const referencepath_members_itemValidationError = validate$4(obj_members_item, path_members_item);
1950
+ const referencepath_members_itemValidationError = validate$6(obj_members_item, path_members_item);
1949
1951
  if (referencepath_members_itemValidationError !== null) {
1950
1952
  let message = 'Object doesn\'t match DataCleanRoomMemberRepresentation (at "' + path_members_item + '")\n';
1951
1953
  message += referencepath_members_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -1973,7 +1975,7 @@ function validate$2(obj, path = 'DataCleanRoomCollaborationRepresentation') {
1973
1975
  }
1974
1976
  const obj_templateVersion = obj.templateVersion;
1975
1977
  const path_templateVersion = path + '.templateVersion';
1976
- const referencepath_templateVersionValidationError = validate$3(obj_templateVersion, path_templateVersion);
1978
+ const referencepath_templateVersionValidationError = validate$5(obj_templateVersion, path_templateVersion);
1977
1979
  if (referencepath_templateVersionValidationError !== null) {
1978
1980
  let message = 'Object doesn\'t match DataCleanRoomTemplateRepresentation (at "' + path_templateVersion + '")\n';
1979
1981
  message += referencepath_templateVersionValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -1989,57 +1991,57 @@ function validate$2(obj, path = 'DataCleanRoomCollaborationRepresentation') {
1989
1991
  })();
1990
1992
  return v_error === undefined ? null : v_error;
1991
1993
  }
1992
- const RepresentationType$2 = 'DataCleanRoomCollaborationRepresentation';
1993
- function keyBuilder$4(luvio, config) {
1994
- return keyPrefix + '::' + RepresentationType$2 + ':' + config.id;
1994
+ const RepresentationType$4 = 'DataCleanRoomCollaborationRepresentation';
1995
+ function keyBuilder$7(luvio, config) {
1996
+ return keyPrefix + '::' + RepresentationType$4 + ':' + config.id;
1995
1997
  }
1996
- function keyBuilderFromType(luvio, object) {
1998
+ function keyBuilderFromType$1(luvio, object) {
1997
1999
  const keyParams = {
1998
2000
  id: object.id
1999
2001
  };
2000
- return keyBuilder$4(luvio, keyParams);
2002
+ return keyBuilder$7(luvio, keyParams);
2001
2003
  }
2002
- function normalize$2(input, existing, path, luvio, store, timestamp) {
2004
+ function normalize$4(input, existing, path, luvio, store, timestamp) {
2003
2005
  return input;
2004
2006
  }
2005
- const select$7 = function DataCleanRoomCollaborationRepresentationSelect() {
2007
+ const select$b = function DataCleanRoomCollaborationRepresentationSelect() {
2006
2008
  return {
2007
2009
  kind: 'Fragment',
2008
- version: VERSION$2,
2010
+ version: VERSION$4,
2009
2011
  private: [],
2010
2012
  opaque: true
2011
2013
  };
2012
2014
  };
2013
- function equals$2(existing, incoming) {
2015
+ function equals$4(existing, incoming) {
2014
2016
  if (JSONStringify(incoming) !== JSONStringify(existing)) {
2015
2017
  return false;
2016
2018
  }
2017
2019
  return true;
2018
2020
  }
2019
- const ingest$2 = function DataCleanRoomCollaborationRepresentationIngest(input, path, luvio, store, timestamp) {
2021
+ const ingest$4 = function DataCleanRoomCollaborationRepresentationIngest(input, path, luvio, store, timestamp) {
2020
2022
  if (process.env.NODE_ENV !== 'production') {
2021
- const validateError = validate$2(input);
2023
+ const validateError = validate$4(input);
2022
2024
  if (validateError !== null) {
2023
2025
  throw validateError;
2024
2026
  }
2025
2027
  }
2026
- const key = keyBuilderFromType(luvio, input);
2028
+ const key = keyBuilderFromType$1(luvio, input);
2027
2029
  const ttlToUse = path.ttl !== undefined ? path.ttl : 60000;
2028
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$2, "data-clean-room", VERSION$2, RepresentationType$2, equals$2);
2030
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$4, "data-clean-room", VERSION$4, RepresentationType$4, equals$4);
2029
2031
  return createLink(key);
2030
2032
  };
2031
- function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
2033
+ function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
2032
2034
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
2033
- const rootKey = keyBuilderFromType(luvio, input);
2035
+ const rootKey = keyBuilderFromType$1(luvio, input);
2034
2036
  rootKeySet.set(rootKey, {
2035
2037
  namespace: keyPrefix,
2036
- representationName: RepresentationType$2,
2038
+ representationName: RepresentationType$4,
2037
2039
  mergeable: false
2038
2040
  });
2039
2041
  }
2040
2042
 
2041
- const VERSION$1 = "9e5eddaaa3330278c7aa483af5dc8d74";
2042
- function validate$1(obj, path = 'DataCleanRoomCollaborationCollectionRepresentation') {
2043
+ const VERSION$3 = "9e5eddaaa3330278c7aa483af5dc8d74";
2044
+ function validate$3(obj, path = 'DataCleanRoomCollaborationCollectionRepresentation') {
2043
2045
  const v_error = (() => {
2044
2046
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2045
2047
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -2052,7 +2054,7 @@ function validate$1(obj, path = 'DataCleanRoomCollaborationCollectionRepresentat
2052
2054
  for (let i = 0; i < obj_collaborations.length; i++) {
2053
2055
  const obj_collaborations_item = obj_collaborations[i];
2054
2056
  const path_collaborations_item = path_collaborations + '[' + i + ']';
2055
- const referencepath_collaborations_itemValidationError = validate$2(obj_collaborations_item, path_collaborations_item);
2057
+ const referencepath_collaborations_itemValidationError = validate$4(obj_collaborations_item, path_collaborations_item);
2056
2058
  if (referencepath_collaborations_itemValidationError !== null) {
2057
2059
  let message = 'Object doesn\'t match DataCleanRoomCollaborationRepresentation (at "' + path_collaborations_item + '")\n';
2058
2060
  message += referencepath_collaborations_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -2114,62 +2116,62 @@ function validate$1(obj, path = 'DataCleanRoomCollaborationCollectionRepresentat
2114
2116
  })();
2115
2117
  return v_error === undefined ? null : v_error;
2116
2118
  }
2117
- const RepresentationType$1 = 'DataCleanRoomCollaborationCollectionRepresentation';
2118
- function normalize$1(input, existing, path, luvio, store, timestamp) {
2119
+ const RepresentationType$3 = 'DataCleanRoomCollaborationCollectionRepresentation';
2120
+ function normalize$3(input, existing, path, luvio, store, timestamp) {
2119
2121
  return input;
2120
2122
  }
2121
- const select$6 = function DataCleanRoomCollaborationCollectionRepresentationSelect() {
2123
+ const select$a = function DataCleanRoomCollaborationCollectionRepresentationSelect() {
2122
2124
  return {
2123
2125
  kind: 'Fragment',
2124
- version: VERSION$1,
2126
+ version: VERSION$3,
2125
2127
  private: [],
2126
2128
  opaque: true
2127
2129
  };
2128
2130
  };
2129
- function equals$1(existing, incoming) {
2131
+ function equals$3(existing, incoming) {
2130
2132
  if (JSONStringify(incoming) !== JSONStringify(existing)) {
2131
2133
  return false;
2132
2134
  }
2133
2135
  return true;
2134
2136
  }
2135
- const ingest$1 = function DataCleanRoomCollaborationCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
2137
+ const ingest$3 = function DataCleanRoomCollaborationCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
2136
2138
  if (process.env.NODE_ENV !== 'production') {
2137
- const validateError = validate$1(input);
2139
+ const validateError = validate$3(input);
2138
2140
  if (validateError !== null) {
2139
2141
  throw validateError;
2140
2142
  }
2141
2143
  }
2142
2144
  const key = path.fullPath;
2143
2145
  const ttlToUse = path.ttl !== undefined ? path.ttl : 60000;
2144
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$1, "data-clean-room", VERSION$1, RepresentationType$1, equals$1);
2146
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$3, "data-clean-room", VERSION$3, RepresentationType$3, equals$3);
2145
2147
  return createLink(key);
2146
2148
  };
2147
- function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
2149
+ function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
2148
2150
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
2149
2151
  const rootKey = fullPathFactory();
2150
2152
  rootKeySet.set(rootKey, {
2151
2153
  namespace: keyPrefix,
2152
- representationName: RepresentationType$1,
2154
+ representationName: RepresentationType$3,
2153
2155
  mergeable: false
2154
2156
  });
2155
2157
  }
2156
2158
 
2157
- function select$5(luvio, params) {
2158
- return select$6();
2159
+ function select$9(luvio, params) {
2160
+ return select$a();
2159
2161
  }
2160
- function keyBuilder$3(luvio, params) {
2162
+ function keyBuilder$6(luvio, params) {
2161
2163
  return keyPrefix + '::DataCleanRoomCollaborationCollectionRepresentation:(' + 'filters:' + params.queryParams.filters + ',' + 'limit:' + params.queryParams.limit + ',' + 'offset:' + params.queryParams.offset + ',' + 'orderBy:' + params.queryParams.orderBy + ')';
2162
2164
  }
2163
- function getResponseCacheKeys$4(storeKeyMap, luvio, resourceParams, response) {
2164
- getTypeCacheKeys$1(storeKeyMap, luvio, response, () => keyBuilder$3(luvio, resourceParams));
2165
+ function getResponseCacheKeys$6(storeKeyMap, luvio, resourceParams, response) {
2166
+ getTypeCacheKeys$3(storeKeyMap, luvio, response, () => keyBuilder$6(luvio, resourceParams));
2165
2167
  }
2166
- function ingestSuccess$4(luvio, resourceParams, response, snapshotRefresh) {
2168
+ function ingestSuccess$6(luvio, resourceParams, response, snapshotRefresh) {
2167
2169
  const { body } = response;
2168
- const key = keyBuilder$3(luvio, resourceParams);
2169
- luvio.storeIngest(key, ingest$1, body);
2170
+ const key = keyBuilder$6(luvio, resourceParams);
2171
+ luvio.storeIngest(key, ingest$3, body);
2170
2172
  const snapshot = luvio.storeLookup({
2171
2173
  recordId: key,
2172
- node: select$5(),
2174
+ node: select$9(),
2173
2175
  variables: {},
2174
2176
  }, snapshotRefresh);
2175
2177
  if (process.env.NODE_ENV !== 'production') {
@@ -2180,13 +2182,13 @@ function ingestSuccess$4(luvio, resourceParams, response, snapshotRefresh) {
2180
2182
  deepFreeze(snapshot.data);
2181
2183
  return snapshot;
2182
2184
  }
2183
- function ingestError$1(luvio, params, error, snapshotRefresh) {
2184
- const key = keyBuilder$3(luvio, params);
2185
+ function ingestError$2(luvio, params, error, snapshotRefresh) {
2186
+ const key = keyBuilder$6(luvio, params);
2185
2187
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
2186
2188
  luvio.storeIngestError(key, errorSnapshot);
2187
2189
  return errorSnapshot;
2188
2190
  }
2189
- function createResourceRequest$4(config) {
2191
+ function createResourceRequest$6(config) {
2190
2192
  const headers = {};
2191
2193
  return {
2192
2194
  baseUri: '/services/data/v64.0',
@@ -2200,108 +2202,108 @@ function createResourceRequest$4(config) {
2200
2202
  };
2201
2203
  }
2202
2204
 
2203
- const adapterName$4 = 'getAllDataCleanRoomsPaginated';
2205
+ const adapterName$6 = 'getAllDataCleanRoomsPaginated';
2204
2206
  const getAllDataCleanRoomsPaginated_ConfigPropertyMetadata = [
2205
2207
  generateParamConfigMetadata('filters', false, 1 /* QueryParameter */, 0 /* String */),
2206
2208
  generateParamConfigMetadata('limit', false, 1 /* QueryParameter */, 3 /* Integer */),
2207
2209
  generateParamConfigMetadata('offset', false, 1 /* QueryParameter */, 3 /* Integer */),
2208
2210
  generateParamConfigMetadata('orderBy', false, 1 /* QueryParameter */, 0 /* String */),
2209
2211
  ];
2210
- const getAllDataCleanRoomsPaginated_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, getAllDataCleanRoomsPaginated_ConfigPropertyMetadata);
2211
- const createResourceParams$4 = /*#__PURE__*/ createResourceParams$9(getAllDataCleanRoomsPaginated_ConfigPropertyMetadata);
2212
- function keyBuilder$2(luvio, config) {
2213
- const resourceParams = createResourceParams$4(config);
2214
- return keyBuilder$3(luvio, resourceParams);
2212
+ const getAllDataCleanRoomsPaginated_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, getAllDataCleanRoomsPaginated_ConfigPropertyMetadata);
2213
+ const createResourceParams$6 = /*#__PURE__*/ createResourceParams$b(getAllDataCleanRoomsPaginated_ConfigPropertyMetadata);
2214
+ function keyBuilder$5(luvio, config) {
2215
+ const resourceParams = createResourceParams$6(config);
2216
+ return keyBuilder$6(luvio, resourceParams);
2215
2217
  }
2216
- function typeCheckConfig$4(untrustedConfig) {
2218
+ function typeCheckConfig$6(untrustedConfig) {
2217
2219
  const config = {};
2218
- typeCheckConfig$9(untrustedConfig, config, getAllDataCleanRoomsPaginated_ConfigPropertyMetadata);
2220
+ typeCheckConfig$b(untrustedConfig, config, getAllDataCleanRoomsPaginated_ConfigPropertyMetadata);
2219
2221
  return config;
2220
2222
  }
2221
- function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
2223
+ function validateAdapterConfig$6(untrustedConfig, configPropertyNames) {
2222
2224
  if (!untrustedIsObject(untrustedConfig)) {
2223
2225
  return null;
2224
2226
  }
2225
2227
  if (process.env.NODE_ENV !== 'production') {
2226
2228
  validateConfig(untrustedConfig, configPropertyNames);
2227
2229
  }
2228
- const config = typeCheckConfig$4(untrustedConfig);
2230
+ const config = typeCheckConfig$6(untrustedConfig);
2229
2231
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
2230
2232
  return null;
2231
2233
  }
2232
2234
  return config;
2233
2235
  }
2234
- function adapterFragment$1(luvio, config) {
2235
- createResourceParams$4(config);
2236
- return select$5();
2236
+ function adapterFragment$2(luvio, config) {
2237
+ createResourceParams$6(config);
2238
+ return select$9();
2237
2239
  }
2238
- function onFetchResponseSuccess$1(luvio, config, resourceParams, response) {
2239
- const snapshot = ingestSuccess$4(luvio, resourceParams, response, {
2240
+ function onFetchResponseSuccess$2(luvio, config, resourceParams, response) {
2241
+ const snapshot = ingestSuccess$6(luvio, resourceParams, response, {
2240
2242
  config,
2241
- resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
2243
+ resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
2242
2244
  });
2243
2245
  return luvio.storeBroadcast().then(() => snapshot);
2244
2246
  }
2245
- function onFetchResponseError$1(luvio, config, resourceParams, response) {
2246
- const snapshot = ingestError$1(luvio, resourceParams, response, {
2247
+ function onFetchResponseError$2(luvio, config, resourceParams, response) {
2248
+ const snapshot = ingestError$2(luvio, resourceParams, response, {
2247
2249
  config,
2248
- resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
2250
+ resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
2249
2251
  });
2250
2252
  return luvio.storeBroadcast().then(() => snapshot);
2251
2253
  }
2252
- function buildNetworkSnapshot$4(luvio, config, options) {
2253
- const resourceParams = createResourceParams$4(config);
2254
- const request = createResourceRequest$4(resourceParams);
2254
+ function buildNetworkSnapshot$6(luvio, config, options) {
2255
+ const resourceParams = createResourceParams$6(config);
2256
+ const request = createResourceRequest$6(resourceParams);
2255
2257
  return luvio.dispatchResourceRequest(request, options)
2256
2258
  .then((response) => {
2257
- return luvio.handleSuccessResponse(() => onFetchResponseSuccess$1(luvio, config, resourceParams, response), () => {
2259
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess$2(luvio, config, resourceParams, response), () => {
2258
2260
  const cache = new StoreKeyMap();
2259
- getResponseCacheKeys$4(cache, luvio, resourceParams, response.body);
2261
+ getResponseCacheKeys$6(cache, luvio, resourceParams, response.body);
2260
2262
  return cache;
2261
2263
  });
2262
2264
  }, (response) => {
2263
- return luvio.handleErrorResponse(() => onFetchResponseError$1(luvio, config, resourceParams, response));
2265
+ return luvio.handleErrorResponse(() => onFetchResponseError$2(luvio, config, resourceParams, response));
2264
2266
  });
2265
2267
  }
2266
- function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
2267
- return buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext, buildNetworkSnapshot$4, undefined, false);
2268
+ function buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext) {
2269
+ return buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext, buildNetworkSnapshot$6, undefined, false);
2268
2270
  }
2269
- function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
2271
+ function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
2270
2272
  const { luvio, config } = context;
2271
2273
  const selector = {
2272
- recordId: keyBuilder$2(luvio, config),
2273
- node: adapterFragment$1(luvio, config),
2274
+ recordId: keyBuilder$5(luvio, config),
2275
+ node: adapterFragment$2(luvio, config),
2274
2276
  variables: {},
2275
2277
  };
2276
2278
  const cacheSnapshot = storeLookup(selector, {
2277
2279
  config,
2278
- resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
2280
+ resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
2279
2281
  });
2280
2282
  return cacheSnapshot;
2281
2283
  }
2282
2284
  const getAllDataCleanRoomsPaginatedAdapterFactory = (luvio) => function dataCleanRoom__getAllDataCleanRoomsPaginated(untrustedConfig, requestContext) {
2283
- const config = validateAdapterConfig$4(untrustedConfig, getAllDataCleanRoomsPaginated_ConfigPropertyNames);
2285
+ const config = validateAdapterConfig$6(untrustedConfig, getAllDataCleanRoomsPaginated_ConfigPropertyNames);
2284
2286
  // Invalid or incomplete config
2285
2287
  if (config === null) {
2286
2288
  return null;
2287
2289
  }
2288
2290
  return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
2289
- buildCachedSnapshotCachePolicy$1, buildNetworkSnapshotCachePolicy$1);
2291
+ buildCachedSnapshotCachePolicy$2, buildNetworkSnapshotCachePolicy$2);
2290
2292
  };
2291
2293
 
2292
- function select$4(luvio, params) {
2293
- return select$7();
2294
+ function select$8(luvio, params) {
2295
+ return select$b();
2294
2296
  }
2295
- function getResponseCacheKeys$3(storeKeyMap, luvio, resourceParams, response) {
2296
- getTypeCacheKeys$2(storeKeyMap, luvio, response);
2297
+ function getResponseCacheKeys$5(storeKeyMap, luvio, resourceParams, response) {
2298
+ getTypeCacheKeys$4(storeKeyMap, luvio, response);
2297
2299
  }
2298
- function ingestSuccess$3(luvio, resourceParams, response) {
2300
+ function ingestSuccess$5(luvio, resourceParams, response) {
2299
2301
  const { body } = response;
2300
- const key = keyBuilderFromType(luvio, body);
2301
- luvio.storeIngest(key, ingest$2, body);
2302
+ const key = keyBuilderFromType$1(luvio, body);
2303
+ luvio.storeIngest(key, ingest$4, body);
2302
2304
  const snapshot = luvio.storeLookup({
2303
2305
  recordId: key,
2304
- node: select$4(),
2306
+ node: select$8(),
2305
2307
  variables: {},
2306
2308
  });
2307
2309
  if (process.env.NODE_ENV !== 'production') {
@@ -2312,7 +2314,7 @@ function ingestSuccess$3(luvio, resourceParams, response) {
2312
2314
  deepFreeze(snapshot.data);
2313
2315
  return snapshot;
2314
2316
  }
2315
- function createResourceRequest$3(config) {
2317
+ function createResourceRequest$5(config) {
2316
2318
  const headers = {};
2317
2319
  return {
2318
2320
  baseUri: '/services/data/v64.0',
@@ -2326,7 +2328,7 @@ function createResourceRequest$3(config) {
2326
2328
  };
2327
2329
  }
2328
2330
 
2329
- const adapterName$3 = 'createDataCleanRoomCollaboration';
2331
+ const adapterName$5 = 'createDataCleanRoomCollaboration';
2330
2332
  const createDataCleanRoomCollaboration_ConfigPropertyMetadata = [
2331
2333
  generateParamConfigMetadata('apiKey', false, 2 /* Body */, 0 /* String */),
2332
2334
  generateParamConfigMetadata('dataCloudOrgId', true, 2 /* Body */, 0 /* String */),
@@ -2337,37 +2339,37 @@ const createDataCleanRoomCollaboration_ConfigPropertyMetadata = [
2337
2339
  generateParamConfigMetadata('label', true, 2 /* Body */, 0 /* String */),
2338
2340
  generateParamConfigMetadata('description', false, 2 /* Body */, 0 /* String */),
2339
2341
  ];
2340
- const createDataCleanRoomCollaboration_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, createDataCleanRoomCollaboration_ConfigPropertyMetadata);
2341
- const createResourceParams$3 = /*#__PURE__*/ createResourceParams$9(createDataCleanRoomCollaboration_ConfigPropertyMetadata);
2342
- function typeCheckConfig$3(untrustedConfig) {
2342
+ const createDataCleanRoomCollaboration_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, createDataCleanRoomCollaboration_ConfigPropertyMetadata);
2343
+ const createResourceParams$5 = /*#__PURE__*/ createResourceParams$b(createDataCleanRoomCollaboration_ConfigPropertyMetadata);
2344
+ function typeCheckConfig$5(untrustedConfig) {
2343
2345
  const config = {};
2344
- typeCheckConfig$9(untrustedConfig, config, createDataCleanRoomCollaboration_ConfigPropertyMetadata);
2346
+ typeCheckConfig$b(untrustedConfig, config, createDataCleanRoomCollaboration_ConfigPropertyMetadata);
2345
2347
  return config;
2346
2348
  }
2347
- function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
2349
+ function validateAdapterConfig$5(untrustedConfig, configPropertyNames) {
2348
2350
  if (!untrustedIsObject(untrustedConfig)) {
2349
2351
  return null;
2350
2352
  }
2351
2353
  if (process.env.NODE_ENV !== 'production') {
2352
2354
  validateConfig(untrustedConfig, configPropertyNames);
2353
2355
  }
2354
- const config = typeCheckConfig$3(untrustedConfig);
2356
+ const config = typeCheckConfig$5(untrustedConfig);
2355
2357
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
2356
2358
  return null;
2357
2359
  }
2358
2360
  return config;
2359
2361
  }
2360
- function buildNetworkSnapshot$3(luvio, config, options) {
2361
- const resourceParams = createResourceParams$3(config);
2362
- const request = createResourceRequest$3(resourceParams);
2362
+ function buildNetworkSnapshot$5(luvio, config, options) {
2363
+ const resourceParams = createResourceParams$5(config);
2364
+ const request = createResourceRequest$5(resourceParams);
2363
2365
  return luvio.dispatchResourceRequest(request, options)
2364
2366
  .then((response) => {
2365
2367
  return luvio.handleSuccessResponse(() => {
2366
- const snapshot = ingestSuccess$3(luvio, resourceParams, response);
2368
+ const snapshot = ingestSuccess$5(luvio, resourceParams, response);
2367
2369
  return luvio.storeBroadcast().then(() => snapshot);
2368
2370
  }, () => {
2369
2371
  const cache = new StoreKeyMap();
2370
- getResponseCacheKeys$3(cache, luvio, resourceParams, response.body);
2372
+ getResponseCacheKeys$5(cache, luvio, resourceParams, response.body);
2371
2373
  return cache;
2372
2374
  });
2373
2375
  }, (response) => {
@@ -2377,17 +2379,17 @@ function buildNetworkSnapshot$3(luvio, config, options) {
2377
2379
  }
2378
2380
  const createDataCleanRoomCollaborationAdapterFactory = (luvio) => {
2379
2381
  return function createDataCleanRoomCollaboration(untrustedConfig) {
2380
- const config = validateAdapterConfig$3(untrustedConfig, createDataCleanRoomCollaboration_ConfigPropertyNames);
2382
+ const config = validateAdapterConfig$5(untrustedConfig, createDataCleanRoomCollaboration_ConfigPropertyNames);
2381
2383
  // Invalid or incomplete config
2382
2384
  if (config === null) {
2383
2385
  throw new Error('Invalid config for "createDataCleanRoomCollaboration"');
2384
2386
  }
2385
- return buildNetworkSnapshot$3(luvio, config);
2387
+ return buildNetworkSnapshot$5(luvio, config);
2386
2388
  };
2387
2389
  };
2388
2390
 
2389
- const VERSION = "779ba86cca8510319a6e95a736d88189";
2390
- function validate(obj, path = 'DataCleanRoomTemplateCollectionRepresentation') {
2391
+ const VERSION$2 = "779ba86cca8510319a6e95a736d88189";
2392
+ function validate$2(obj, path = 'DataCleanRoomTemplateCollectionRepresentation') {
2391
2393
  const v_error = (() => {
2392
2394
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2393
2395
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -2445,7 +2447,7 @@ function validate(obj, path = 'DataCleanRoomTemplateCollectionRepresentation') {
2445
2447
  for (let i = 0; i < obj_templates.length; i++) {
2446
2448
  const obj_templates_item = obj_templates[i];
2447
2449
  const path_templates_item = path_templates + '[' + i + ']';
2448
- const referencepath_templates_itemValidationError = validate$3(obj_templates_item, path_templates_item);
2450
+ const referencepath_templates_itemValidationError = validate$5(obj_templates_item, path_templates_item);
2449
2451
  if (referencepath_templates_itemValidationError !== null) {
2450
2452
  let message = 'Object doesn\'t match DataCleanRoomTemplateRepresentation (at "' + path_templates_item + '")\n';
2451
2453
  message += referencepath_templates_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -2462,62 +2464,62 @@ function validate(obj, path = 'DataCleanRoomTemplateCollectionRepresentation') {
2462
2464
  })();
2463
2465
  return v_error === undefined ? null : v_error;
2464
2466
  }
2465
- const RepresentationType = 'DataCleanRoomTemplateCollectionRepresentation';
2466
- function normalize(input, existing, path, luvio, store, timestamp) {
2467
+ const RepresentationType$2 = 'DataCleanRoomTemplateCollectionRepresentation';
2468
+ function normalize$2(input, existing, path, luvio, store, timestamp) {
2467
2469
  return input;
2468
2470
  }
2469
- const select$3 = function DataCleanRoomTemplateCollectionRepresentationSelect() {
2471
+ const select$7 = function DataCleanRoomTemplateCollectionRepresentationSelect() {
2470
2472
  return {
2471
2473
  kind: 'Fragment',
2472
- version: VERSION,
2474
+ version: VERSION$2,
2473
2475
  private: [],
2474
2476
  opaque: true
2475
2477
  };
2476
2478
  };
2477
- function equals(existing, incoming) {
2479
+ function equals$2(existing, incoming) {
2478
2480
  if (JSONStringify(incoming) !== JSONStringify(existing)) {
2479
2481
  return false;
2480
2482
  }
2481
2483
  return true;
2482
2484
  }
2483
- const ingest = function DataCleanRoomTemplateCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
2485
+ const ingest$2 = function DataCleanRoomTemplateCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
2484
2486
  if (process.env.NODE_ENV !== 'production') {
2485
- const validateError = validate(input);
2487
+ const validateError = validate$2(input);
2486
2488
  if (validateError !== null) {
2487
2489
  throw validateError;
2488
2490
  }
2489
2491
  }
2490
2492
  const key = path.fullPath;
2491
2493
  const ttlToUse = path.ttl !== undefined ? path.ttl : 60000;
2492
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize, "data-clean-room", VERSION, RepresentationType, equals);
2494
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$2, "data-clean-room", VERSION$2, RepresentationType$2, equals$2);
2493
2495
  return createLink(key);
2494
2496
  };
2495
- function getTypeCacheKeys(rootKeySet, luvio, input, fullPathFactory) {
2497
+ function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
2496
2498
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
2497
2499
  const rootKey = fullPathFactory();
2498
2500
  rootKeySet.set(rootKey, {
2499
2501
  namespace: keyPrefix,
2500
- representationName: RepresentationType,
2502
+ representationName: RepresentationType$2,
2501
2503
  mergeable: false
2502
2504
  });
2503
2505
  }
2504
2506
 
2505
- function select$2(luvio, params) {
2506
- return select$3();
2507
+ function select$6(luvio, params) {
2508
+ return select$7();
2507
2509
  }
2508
- function keyBuilder$1(luvio, params) {
2510
+ function keyBuilder$4(luvio, params) {
2509
2511
  return keyPrefix + '::DataCleanRoomTemplateCollectionRepresentation:(' + 'limit:' + params.queryParams.limit + ',' + 'offset:' + params.queryParams.offset + ',' + 'orderBy:' + params.queryParams.orderBy + ')';
2510
2512
  }
2511
- function getResponseCacheKeys$2(storeKeyMap, luvio, resourceParams, response) {
2512
- getTypeCacheKeys(storeKeyMap, luvio, response, () => keyBuilder$1(luvio, resourceParams));
2513
+ function getResponseCacheKeys$4(storeKeyMap, luvio, resourceParams, response) {
2514
+ getTypeCacheKeys$2(storeKeyMap, luvio, response, () => keyBuilder$4(luvio, resourceParams));
2513
2515
  }
2514
- function ingestSuccess$2(luvio, resourceParams, response, snapshotRefresh) {
2516
+ function ingestSuccess$4(luvio, resourceParams, response, snapshotRefresh) {
2515
2517
  const { body } = response;
2516
- const key = keyBuilder$1(luvio, resourceParams);
2517
- luvio.storeIngest(key, ingest, body);
2518
+ const key = keyBuilder$4(luvio, resourceParams);
2519
+ luvio.storeIngest(key, ingest$2, body);
2518
2520
  const snapshot = luvio.storeLookup({
2519
2521
  recordId: key,
2520
- node: select$2(),
2522
+ node: select$6(),
2521
2523
  variables: {},
2522
2524
  }, snapshotRefresh);
2523
2525
  if (process.env.NODE_ENV !== 'production') {
@@ -2528,13 +2530,13 @@ function ingestSuccess$2(luvio, resourceParams, response, snapshotRefresh) {
2528
2530
  deepFreeze(snapshot.data);
2529
2531
  return snapshot;
2530
2532
  }
2531
- function ingestError(luvio, params, error, snapshotRefresh) {
2532
- const key = keyBuilder$1(luvio, params);
2533
+ function ingestError$1(luvio, params, error, snapshotRefresh) {
2534
+ const key = keyBuilder$4(luvio, params);
2533
2535
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
2534
2536
  luvio.storeIngestError(key, errorSnapshot);
2535
2537
  return errorSnapshot;
2536
2538
  }
2537
- function createResourceRequest$2(config) {
2539
+ function createResourceRequest$4(config) {
2538
2540
  const headers = {};
2539
2541
  return {
2540
2542
  baseUri: '/services/data/v64.0',
@@ -2548,107 +2550,107 @@ function createResourceRequest$2(config) {
2548
2550
  };
2549
2551
  }
2550
2552
 
2551
- const adapterName$2 = 'getDataCleanRoomTemplatePaginated';
2553
+ const adapterName$4 = 'getDataCleanRoomTemplatePaginated';
2552
2554
  const getDataCleanRoomTemplatePaginated_ConfigPropertyMetadata = [
2553
2555
  generateParamConfigMetadata('limit', false, 1 /* QueryParameter */, 3 /* Integer */),
2554
2556
  generateParamConfigMetadata('offset', false, 1 /* QueryParameter */, 3 /* Integer */),
2555
2557
  generateParamConfigMetadata('orderBy', false, 1 /* QueryParameter */, 0 /* String */),
2556
2558
  ];
2557
- const getDataCleanRoomTemplatePaginated_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, getDataCleanRoomTemplatePaginated_ConfigPropertyMetadata);
2558
- const createResourceParams$2 = /*#__PURE__*/ createResourceParams$9(getDataCleanRoomTemplatePaginated_ConfigPropertyMetadata);
2559
- function keyBuilder(luvio, config) {
2560
- const resourceParams = createResourceParams$2(config);
2561
- return keyBuilder$1(luvio, resourceParams);
2559
+ const getDataCleanRoomTemplatePaginated_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, getDataCleanRoomTemplatePaginated_ConfigPropertyMetadata);
2560
+ const createResourceParams$4 = /*#__PURE__*/ createResourceParams$b(getDataCleanRoomTemplatePaginated_ConfigPropertyMetadata);
2561
+ function keyBuilder$3(luvio, config) {
2562
+ const resourceParams = createResourceParams$4(config);
2563
+ return keyBuilder$4(luvio, resourceParams);
2562
2564
  }
2563
- function typeCheckConfig$2(untrustedConfig) {
2565
+ function typeCheckConfig$4(untrustedConfig) {
2564
2566
  const config = {};
2565
- typeCheckConfig$9(untrustedConfig, config, getDataCleanRoomTemplatePaginated_ConfigPropertyMetadata);
2567
+ typeCheckConfig$b(untrustedConfig, config, getDataCleanRoomTemplatePaginated_ConfigPropertyMetadata);
2566
2568
  return config;
2567
2569
  }
2568
- function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
2570
+ function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
2569
2571
  if (!untrustedIsObject(untrustedConfig)) {
2570
2572
  return null;
2571
2573
  }
2572
2574
  if (process.env.NODE_ENV !== 'production') {
2573
2575
  validateConfig(untrustedConfig, configPropertyNames);
2574
2576
  }
2575
- const config = typeCheckConfig$2(untrustedConfig);
2577
+ const config = typeCheckConfig$4(untrustedConfig);
2576
2578
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
2577
2579
  return null;
2578
2580
  }
2579
2581
  return config;
2580
2582
  }
2581
- function adapterFragment(luvio, config) {
2582
- createResourceParams$2(config);
2583
- return select$2();
2583
+ function adapterFragment$1(luvio, config) {
2584
+ createResourceParams$4(config);
2585
+ return select$6();
2584
2586
  }
2585
- function onFetchResponseSuccess(luvio, config, resourceParams, response) {
2586
- const snapshot = ingestSuccess$2(luvio, resourceParams, response, {
2587
+ function onFetchResponseSuccess$1(luvio, config, resourceParams, response) {
2588
+ const snapshot = ingestSuccess$4(luvio, resourceParams, response, {
2587
2589
  config,
2588
- resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
2590
+ resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
2589
2591
  });
2590
2592
  return luvio.storeBroadcast().then(() => snapshot);
2591
2593
  }
2592
- function onFetchResponseError(luvio, config, resourceParams, response) {
2593
- const snapshot = ingestError(luvio, resourceParams, response, {
2594
+ function onFetchResponseError$1(luvio, config, resourceParams, response) {
2595
+ const snapshot = ingestError$1(luvio, resourceParams, response, {
2594
2596
  config,
2595
- resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
2597
+ resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
2596
2598
  });
2597
2599
  return luvio.storeBroadcast().then(() => snapshot);
2598
2600
  }
2599
- function buildNetworkSnapshot$2(luvio, config, options) {
2600
- const resourceParams = createResourceParams$2(config);
2601
- const request = createResourceRequest$2(resourceParams);
2601
+ function buildNetworkSnapshot$4(luvio, config, options) {
2602
+ const resourceParams = createResourceParams$4(config);
2603
+ const request = createResourceRequest$4(resourceParams);
2602
2604
  return luvio.dispatchResourceRequest(request, options)
2603
2605
  .then((response) => {
2604
- return luvio.handleSuccessResponse(() => onFetchResponseSuccess(luvio, config, resourceParams, response), () => {
2606
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess$1(luvio, config, resourceParams, response), () => {
2605
2607
  const cache = new StoreKeyMap();
2606
- getResponseCacheKeys$2(cache, luvio, resourceParams, response.body);
2608
+ getResponseCacheKeys$4(cache, luvio, resourceParams, response.body);
2607
2609
  return cache;
2608
2610
  });
2609
2611
  }, (response) => {
2610
- return luvio.handleErrorResponse(() => onFetchResponseError(luvio, config, resourceParams, response));
2612
+ return luvio.handleErrorResponse(() => onFetchResponseError$1(luvio, config, resourceParams, response));
2611
2613
  });
2612
2614
  }
2613
- function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
2614
- return buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext, buildNetworkSnapshot$2, undefined, false);
2615
+ function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
2616
+ return buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext, buildNetworkSnapshot$4, undefined, false);
2615
2617
  }
2616
- function buildCachedSnapshotCachePolicy(context, storeLookup) {
2618
+ function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
2617
2619
  const { luvio, config } = context;
2618
2620
  const selector = {
2619
- recordId: keyBuilder(luvio, config),
2620
- node: adapterFragment(luvio, config),
2621
+ recordId: keyBuilder$3(luvio, config),
2622
+ node: adapterFragment$1(luvio, config),
2621
2623
  variables: {},
2622
2624
  };
2623
2625
  const cacheSnapshot = storeLookup(selector, {
2624
2626
  config,
2625
- resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
2627
+ resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
2626
2628
  });
2627
2629
  return cacheSnapshot;
2628
2630
  }
2629
2631
  const getDataCleanRoomTemplatePaginatedAdapterFactory = (luvio) => function dataCleanRoom__getDataCleanRoomTemplatePaginated(untrustedConfig, requestContext) {
2630
- const config = validateAdapterConfig$2(untrustedConfig, getDataCleanRoomTemplatePaginated_ConfigPropertyNames);
2632
+ const config = validateAdapterConfig$4(untrustedConfig, getDataCleanRoomTemplatePaginated_ConfigPropertyNames);
2631
2633
  // Invalid or incomplete config
2632
2634
  if (config === null) {
2633
2635
  return null;
2634
2636
  }
2635
2637
  return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
2636
- buildCachedSnapshotCachePolicy, buildNetworkSnapshotCachePolicy);
2638
+ buildCachedSnapshotCachePolicy$1, buildNetworkSnapshotCachePolicy$1);
2637
2639
  };
2638
2640
 
2639
- function select$1(luvio, params) {
2640
- return select$8();
2641
+ function select$5(luvio, params) {
2642
+ return select$c();
2641
2643
  }
2642
- function getResponseCacheKeys$1(storeKeyMap, luvio, resourceParams, response) {
2643
- getTypeCacheKeys$3(storeKeyMap, luvio, response);
2644
+ function getResponseCacheKeys$3(storeKeyMap, luvio, resourceParams, response) {
2645
+ getTypeCacheKeys$5(storeKeyMap, luvio, response);
2644
2646
  }
2645
- function ingestSuccess$1(luvio, resourceParams, response) {
2647
+ function ingestSuccess$3(luvio, resourceParams, response) {
2646
2648
  const { body } = response;
2647
- const key = keyBuilderFromType$1(luvio, body);
2648
- luvio.storeIngest(key, ingest$3, body);
2649
+ const key = keyBuilderFromType$2(luvio, body);
2650
+ luvio.storeIngest(key, ingest$5, body);
2649
2651
  const snapshot = luvio.storeLookup({
2650
2652
  recordId: key,
2651
- node: select$1(),
2653
+ node: select$5(),
2652
2654
  variables: {},
2653
2655
  });
2654
2656
  if (process.env.NODE_ENV !== 'production') {
@@ -2659,7 +2661,7 @@ function ingestSuccess$1(luvio, resourceParams, response) {
2659
2661
  deepFreeze(snapshot.data);
2660
2662
  return snapshot;
2661
2663
  }
2662
- function createResourceRequest$1(config) {
2664
+ function createResourceRequest$3(config) {
2663
2665
  const headers = {};
2664
2666
  return {
2665
2667
  baseUri: '/services/data/v64.0',
@@ -2673,43 +2675,43 @@ function createResourceRequest$1(config) {
2673
2675
  };
2674
2676
  }
2675
2677
 
2676
- const adapterName$1 = 'acceptDataCleanRoomInvitation';
2678
+ const adapterName$3 = 'acceptDataCleanRoomInvitation';
2677
2679
  const acceptDataCleanRoomInvitation_ConfigPropertyMetadata = [
2678
2680
  generateParamConfigMetadata('collaborationIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
2679
2681
  generateParamConfigMetadata('invitationId', true, 2 /* Body */, 0 /* String */),
2680
2682
  generateParamConfigMetadata('specificationId', true, 2 /* Body */, 0 /* String */),
2681
2683
  ];
2682
- const acceptDataCleanRoomInvitation_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, acceptDataCleanRoomInvitation_ConfigPropertyMetadata);
2683
- const createResourceParams$1 = /*#__PURE__*/ createResourceParams$9(acceptDataCleanRoomInvitation_ConfigPropertyMetadata);
2684
- function typeCheckConfig$1(untrustedConfig) {
2684
+ const acceptDataCleanRoomInvitation_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, acceptDataCleanRoomInvitation_ConfigPropertyMetadata);
2685
+ const createResourceParams$3 = /*#__PURE__*/ createResourceParams$b(acceptDataCleanRoomInvitation_ConfigPropertyMetadata);
2686
+ function typeCheckConfig$3(untrustedConfig) {
2685
2687
  const config = {};
2686
- typeCheckConfig$9(untrustedConfig, config, acceptDataCleanRoomInvitation_ConfigPropertyMetadata);
2688
+ typeCheckConfig$b(untrustedConfig, config, acceptDataCleanRoomInvitation_ConfigPropertyMetadata);
2687
2689
  return config;
2688
2690
  }
2689
- function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
2691
+ function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
2690
2692
  if (!untrustedIsObject(untrustedConfig)) {
2691
2693
  return null;
2692
2694
  }
2693
2695
  if (process.env.NODE_ENV !== 'production') {
2694
2696
  validateConfig(untrustedConfig, configPropertyNames);
2695
2697
  }
2696
- const config = typeCheckConfig$1(untrustedConfig);
2698
+ const config = typeCheckConfig$3(untrustedConfig);
2697
2699
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
2698
2700
  return null;
2699
2701
  }
2700
2702
  return config;
2701
2703
  }
2702
- function buildNetworkSnapshot$1(luvio, config, options) {
2703
- const resourceParams = createResourceParams$1(config);
2704
- const request = createResourceRequest$1(resourceParams);
2704
+ function buildNetworkSnapshot$3(luvio, config, options) {
2705
+ const resourceParams = createResourceParams$3(config);
2706
+ const request = createResourceRequest$3(resourceParams);
2705
2707
  return luvio.dispatchResourceRequest(request, options)
2706
2708
  .then((response) => {
2707
2709
  return luvio.handleSuccessResponse(() => {
2708
- const snapshot = ingestSuccess$1(luvio, resourceParams, response);
2710
+ const snapshot = ingestSuccess$3(luvio, resourceParams, response);
2709
2711
  return luvio.storeBroadcast().then(() => snapshot);
2710
2712
  }, () => {
2711
2713
  const cache = new StoreKeyMap();
2712
- getResponseCacheKeys$1(cache, luvio, resourceParams, response.body);
2714
+ getResponseCacheKeys$3(cache, luvio, resourceParams, response.body);
2713
2715
  return cache;
2714
2716
  });
2715
2717
  }, (response) => {
@@ -2719,28 +2721,28 @@ function buildNetworkSnapshot$1(luvio, config, options) {
2719
2721
  }
2720
2722
  const acceptDataCleanRoomInvitationAdapterFactory = (luvio) => {
2721
2723
  return function acceptDataCleanRoomInvitation(untrustedConfig) {
2722
- const config = validateAdapterConfig$1(untrustedConfig, acceptDataCleanRoomInvitation_ConfigPropertyNames);
2724
+ const config = validateAdapterConfig$3(untrustedConfig, acceptDataCleanRoomInvitation_ConfigPropertyNames);
2723
2725
  // Invalid or incomplete config
2724
2726
  if (config === null) {
2725
2727
  throw new Error('Invalid config for "acceptDataCleanRoomInvitation"');
2726
2728
  }
2727
- return buildNetworkSnapshot$1(luvio, config);
2729
+ return buildNetworkSnapshot$3(luvio, config);
2728
2730
  };
2729
2731
  };
2730
2732
 
2731
- function select(luvio, params) {
2732
- return select$8();
2733
+ function select$4(luvio, params) {
2734
+ return select$c();
2733
2735
  }
2734
- function getResponseCacheKeys(storeKeyMap, luvio, resourceParams, response) {
2735
- getTypeCacheKeys$3(storeKeyMap, luvio, response);
2736
+ function getResponseCacheKeys$2(storeKeyMap, luvio, resourceParams, response) {
2737
+ getTypeCacheKeys$5(storeKeyMap, luvio, response);
2736
2738
  }
2737
- function ingestSuccess(luvio, resourceParams, response) {
2739
+ function ingestSuccess$2(luvio, resourceParams, response) {
2738
2740
  const { body } = response;
2739
- const key = keyBuilderFromType$1(luvio, body);
2740
- luvio.storeIngest(key, ingest$3, body);
2741
+ const key = keyBuilderFromType$2(luvio, body);
2742
+ luvio.storeIngest(key, ingest$5, body);
2741
2743
  const snapshot = luvio.storeLookup({
2742
2744
  recordId: key,
2743
- node: select(),
2745
+ node: select$4(),
2744
2746
  variables: {},
2745
2747
  });
2746
2748
  if (process.env.NODE_ENV !== 'production') {
@@ -2751,7 +2753,7 @@ function ingestSuccess(luvio, resourceParams, response) {
2751
2753
  deepFreeze(snapshot.data);
2752
2754
  return snapshot;
2753
2755
  }
2754
- function createResourceRequest(config) {
2756
+ function createResourceRequest$2(config) {
2755
2757
  const headers = {};
2756
2758
  return {
2757
2759
  baseUri: '/services/data/v64.0',
@@ -2765,42 +2767,42 @@ function createResourceRequest(config) {
2765
2767
  };
2766
2768
  }
2767
2769
 
2768
- const adapterName = 'rejectDataCleanRoomInvitation';
2770
+ const adapterName$2 = 'rejectDataCleanRoomInvitation';
2769
2771
  const rejectDataCleanRoomInvitation_ConfigPropertyMetadata = [
2770
2772
  generateParamConfigMetadata('collaborationIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
2771
2773
  generateParamConfigMetadata('invitationId', true, 2 /* Body */, 0 /* String */),
2772
2774
  ];
2773
- const rejectDataCleanRoomInvitation_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, rejectDataCleanRoomInvitation_ConfigPropertyMetadata);
2774
- const createResourceParams = /*#__PURE__*/ createResourceParams$9(rejectDataCleanRoomInvitation_ConfigPropertyMetadata);
2775
- function typeCheckConfig(untrustedConfig) {
2775
+ const rejectDataCleanRoomInvitation_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, rejectDataCleanRoomInvitation_ConfigPropertyMetadata);
2776
+ const createResourceParams$2 = /*#__PURE__*/ createResourceParams$b(rejectDataCleanRoomInvitation_ConfigPropertyMetadata);
2777
+ function typeCheckConfig$2(untrustedConfig) {
2776
2778
  const config = {};
2777
- typeCheckConfig$9(untrustedConfig, config, rejectDataCleanRoomInvitation_ConfigPropertyMetadata);
2779
+ typeCheckConfig$b(untrustedConfig, config, rejectDataCleanRoomInvitation_ConfigPropertyMetadata);
2778
2780
  return config;
2779
2781
  }
2780
- function validateAdapterConfig(untrustedConfig, configPropertyNames) {
2782
+ function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
2781
2783
  if (!untrustedIsObject(untrustedConfig)) {
2782
2784
  return null;
2783
2785
  }
2784
2786
  if (process.env.NODE_ENV !== 'production') {
2785
2787
  validateConfig(untrustedConfig, configPropertyNames);
2786
2788
  }
2787
- const config = typeCheckConfig(untrustedConfig);
2789
+ const config = typeCheckConfig$2(untrustedConfig);
2788
2790
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
2789
2791
  return null;
2790
2792
  }
2791
2793
  return config;
2792
2794
  }
2793
- function buildNetworkSnapshot(luvio, config, options) {
2794
- const resourceParams = createResourceParams(config);
2795
- const request = createResourceRequest(resourceParams);
2795
+ function buildNetworkSnapshot$2(luvio, config, options) {
2796
+ const resourceParams = createResourceParams$2(config);
2797
+ const request = createResourceRequest$2(resourceParams);
2796
2798
  return luvio.dispatchResourceRequest(request, options)
2797
2799
  .then((response) => {
2798
2800
  return luvio.handleSuccessResponse(() => {
2799
- const snapshot = ingestSuccess(luvio, resourceParams, response);
2801
+ const snapshot = ingestSuccess$2(luvio, resourceParams, response);
2800
2802
  return luvio.storeBroadcast().then(() => snapshot);
2801
2803
  }, () => {
2802
2804
  const cache = new StoreKeyMap();
2803
- getResponseCacheKeys(cache, luvio, resourceParams, response.body);
2805
+ getResponseCacheKeys$2(cache, luvio, resourceParams, response.body);
2804
2806
  return cache;
2805
2807
  });
2806
2808
  }, (response) => {
@@ -2810,13 +2812,518 @@ function buildNetworkSnapshot(luvio, config, options) {
2810
2812
  }
2811
2813
  const rejectDataCleanRoomInvitationAdapterFactory = (luvio) => {
2812
2814
  return function rejectDataCleanRoomInvitation(untrustedConfig) {
2813
- const config = validateAdapterConfig(untrustedConfig, rejectDataCleanRoomInvitation_ConfigPropertyNames);
2815
+ const config = validateAdapterConfig$2(untrustedConfig, rejectDataCleanRoomInvitation_ConfigPropertyNames);
2814
2816
  // Invalid or incomplete config
2815
2817
  if (config === null) {
2816
2818
  throw new Error('Invalid config for "rejectDataCleanRoomInvitation"');
2817
2819
  }
2818
- return buildNetworkSnapshot(luvio, config);
2820
+ return buildNetworkSnapshot$2(luvio, config);
2821
+ };
2822
+ };
2823
+
2824
+ const VERSION$1 = "a9f0b009de72ece59b856eea14e4af5c";
2825
+ function validate$1(obj, path = 'DataCleanRoomQueryJobRepresentation') {
2826
+ const v_error = (() => {
2827
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2828
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
2829
+ }
2830
+ if (obj.completedDate !== undefined) {
2831
+ const obj_completedDate = obj.completedDate;
2832
+ const path_completedDate = path + '.completedDate';
2833
+ if (typeof obj_completedDate !== 'string') {
2834
+ return new TypeError('Expected "string" but received "' + typeof obj_completedDate + '" (at "' + path_completedDate + '")');
2835
+ }
2836
+ }
2837
+ if (obj.createdBy !== undefined) {
2838
+ const obj_createdBy = obj.createdBy;
2839
+ const path_createdBy = path + '.createdBy';
2840
+ const referencepath_createdByValidationError = validate$g(obj_createdBy, path_createdBy);
2841
+ if (referencepath_createdByValidationError !== null) {
2842
+ let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_createdBy + '")\n';
2843
+ message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
2844
+ return new TypeError(message);
2845
+ }
2846
+ }
2847
+ if (obj.createdDate !== undefined) {
2848
+ const obj_createdDate = obj.createdDate;
2849
+ const path_createdDate = path + '.createdDate';
2850
+ if (typeof obj_createdDate !== 'string') {
2851
+ return new TypeError('Expected "string" but received "' + typeof obj_createdDate + '" (at "' + path_createdDate + '")');
2852
+ }
2853
+ }
2854
+ if (obj.errorCode !== undefined) {
2855
+ const obj_errorCode = obj.errorCode;
2856
+ const path_errorCode = path + '.errorCode';
2857
+ if (typeof obj_errorCode !== 'string') {
2858
+ return new TypeError('Expected "string" but received "' + typeof obj_errorCode + '" (at "' + path_errorCode + '")');
2859
+ }
2860
+ }
2861
+ if (obj.errorMessage !== undefined) {
2862
+ const obj_errorMessage = obj.errorMessage;
2863
+ const path_errorMessage = path + '.errorMessage';
2864
+ if (typeof obj_errorMessage !== 'string') {
2865
+ return new TypeError('Expected "string" but received "' + typeof obj_errorMessage + '" (at "' + path_errorMessage + '")');
2866
+ }
2867
+ }
2868
+ const obj_id = obj.id;
2869
+ const path_id = path + '.id';
2870
+ if (typeof obj_id !== 'string') {
2871
+ return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
2872
+ }
2873
+ if (obj.label !== undefined) {
2874
+ const obj_label = obj.label;
2875
+ const path_label = path + '.label';
2876
+ if (typeof obj_label !== 'string') {
2877
+ return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
2878
+ }
2879
+ }
2880
+ if (obj.lastModifiedBy !== undefined) {
2881
+ const obj_lastModifiedBy = obj.lastModifiedBy;
2882
+ const path_lastModifiedBy = path + '.lastModifiedBy';
2883
+ const referencepath_lastModifiedByValidationError = validate$g(obj_lastModifiedBy, path_lastModifiedBy);
2884
+ if (referencepath_lastModifiedByValidationError !== null) {
2885
+ let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_lastModifiedBy + '")\n';
2886
+ message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
2887
+ return new TypeError(message);
2888
+ }
2889
+ }
2890
+ if (obj.lastModifiedDate !== undefined) {
2891
+ const obj_lastModifiedDate = obj.lastModifiedDate;
2892
+ const path_lastModifiedDate = path + '.lastModifiedDate';
2893
+ if (typeof obj_lastModifiedDate !== 'string') {
2894
+ return new TypeError('Expected "string" but received "' + typeof obj_lastModifiedDate + '" (at "' + path_lastModifiedDate + '")');
2895
+ }
2896
+ }
2897
+ if (obj.name !== undefined) {
2898
+ const obj_name = obj.name;
2899
+ const path_name = path + '.name';
2900
+ if (typeof obj_name !== 'string') {
2901
+ return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
2902
+ }
2903
+ }
2904
+ if (obj.result !== undefined) {
2905
+ const obj_result = obj.result;
2906
+ const path_result = path + '.result';
2907
+ if (typeof obj_result !== 'number' || (typeof obj_result === 'number' && Math.floor(obj_result) !== obj_result)) {
2908
+ return new TypeError('Expected "integer" but received "' + typeof obj_result + '" (at "' + path_result + '")');
2909
+ }
2910
+ }
2911
+ if (obj.segmentNames !== undefined) {
2912
+ const obj_segmentNames = obj.segmentNames;
2913
+ const path_segmentNames = path + '.segmentNames';
2914
+ if (!ArrayIsArray(obj_segmentNames)) {
2915
+ return new TypeError('Expected "array" but received "' + typeof obj_segmentNames + '" (at "' + path_segmentNames + '")');
2916
+ }
2917
+ for (let i = 0; i < obj_segmentNames.length; i++) {
2918
+ const obj_segmentNames_item = obj_segmentNames[i];
2919
+ const path_segmentNames_item = path_segmentNames + '[' + i + ']';
2920
+ if (typeof obj_segmentNames_item !== 'string') {
2921
+ return new TypeError('Expected "string" but received "' + typeof obj_segmentNames_item + '" (at "' + path_segmentNames_item + '")');
2922
+ }
2923
+ }
2924
+ }
2925
+ const obj_status = obj.status;
2926
+ const path_status = path + '.status';
2927
+ if (typeof obj_status !== 'string') {
2928
+ return new TypeError('Expected "string" but received "' + typeof obj_status + '" (at "' + path_status + '")');
2929
+ }
2930
+ if (obj.triggeredDate !== undefined) {
2931
+ const obj_triggeredDate = obj.triggeredDate;
2932
+ const path_triggeredDate = path + '.triggeredDate';
2933
+ if (typeof obj_triggeredDate !== 'string') {
2934
+ return new TypeError('Expected "string" but received "' + typeof obj_triggeredDate + '" (at "' + path_triggeredDate + '")');
2935
+ }
2936
+ }
2937
+ })();
2938
+ return v_error === undefined ? null : v_error;
2939
+ }
2940
+ const RepresentationType$1 = 'DataCleanRoomQueryJobRepresentation';
2941
+ function keyBuilder$2(luvio, config) {
2942
+ return keyPrefix + '::' + RepresentationType$1 + ':' + config.id;
2943
+ }
2944
+ function keyBuilderFromType(luvio, object) {
2945
+ const keyParams = {
2946
+ id: object.id
2947
+ };
2948
+ return keyBuilder$2(luvio, keyParams);
2949
+ }
2950
+ function normalize$1(input, existing, path, luvio, store, timestamp) {
2951
+ return input;
2952
+ }
2953
+ const select$3 = function DataCleanRoomQueryJobRepresentationSelect() {
2954
+ return {
2955
+ kind: 'Fragment',
2956
+ version: VERSION$1,
2957
+ private: [],
2958
+ opaque: true
2959
+ };
2960
+ };
2961
+ function equals$1(existing, incoming) {
2962
+ if (JSONStringify(incoming) !== JSONStringify(existing)) {
2963
+ return false;
2964
+ }
2965
+ return true;
2966
+ }
2967
+ const ingest$1 = function DataCleanRoomQueryJobRepresentationIngest(input, path, luvio, store, timestamp) {
2968
+ if (process.env.NODE_ENV !== 'production') {
2969
+ const validateError = validate$1(input);
2970
+ if (validateError !== null) {
2971
+ throw validateError;
2972
+ }
2973
+ }
2974
+ const key = keyBuilderFromType(luvio, input);
2975
+ const ttlToUse = path.ttl !== undefined ? path.ttl : 60000;
2976
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$1, "data-clean-room", VERSION$1, RepresentationType$1, equals$1);
2977
+ return createLink(key);
2978
+ };
2979
+ function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
2980
+ // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
2981
+ const rootKey = keyBuilderFromType(luvio, input);
2982
+ rootKeySet.set(rootKey, {
2983
+ namespace: keyPrefix,
2984
+ representationName: RepresentationType$1,
2985
+ mergeable: false
2986
+ });
2987
+ }
2988
+
2989
+ function select$2(luvio, params) {
2990
+ return select$3();
2991
+ }
2992
+ function getResponseCacheKeys$1(storeKeyMap, luvio, resourceParams, response) {
2993
+ getTypeCacheKeys$1(storeKeyMap, luvio, response);
2994
+ }
2995
+ function ingestSuccess$1(luvio, resourceParams, response) {
2996
+ const { body } = response;
2997
+ const key = keyBuilderFromType(luvio, body);
2998
+ luvio.storeIngest(key, ingest$1, body);
2999
+ const snapshot = luvio.storeLookup({
3000
+ recordId: key,
3001
+ node: select$2(),
3002
+ variables: {},
3003
+ });
3004
+ if (process.env.NODE_ENV !== 'production') {
3005
+ if (snapshot.state !== 'Fulfilled') {
3006
+ throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
3007
+ }
3008
+ }
3009
+ deepFreeze(snapshot.data);
3010
+ return snapshot;
3011
+ }
3012
+ function createResourceRequest$1(config) {
3013
+ const headers = {};
3014
+ return {
3015
+ baseUri: '/services/data/v64.0',
3016
+ basePath: '/ssot/data-clean-room/' + config.urlParams.collaborationIdOrApiName + '/actions/run',
3017
+ method: 'post',
3018
+ body: config.body,
3019
+ urlParams: config.urlParams,
3020
+ queryParams: {},
3021
+ headers,
3022
+ priority: 'normal',
3023
+ };
3024
+ }
3025
+
3026
+ const adapterName$1 = 'executeDataCleanRoomQuery';
3027
+ const executeDataCleanRoomQuery_ConfigPropertyMetadata = [
3028
+ generateParamConfigMetadata('collaborationIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
3029
+ generateParamConfigMetadata('queryExecutionName', true, 2 /* Body */, 0 /* String */),
3030
+ generateParamConfigMetadata('segmentIds', true, 2 /* Body */, 0 /* String */, true),
3031
+ ];
3032
+ const executeDataCleanRoomQuery_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, executeDataCleanRoomQuery_ConfigPropertyMetadata);
3033
+ const createResourceParams$1 = /*#__PURE__*/ createResourceParams$b(executeDataCleanRoomQuery_ConfigPropertyMetadata);
3034
+ function typeCheckConfig$1(untrustedConfig) {
3035
+ const config = {};
3036
+ typeCheckConfig$b(untrustedConfig, config, executeDataCleanRoomQuery_ConfigPropertyMetadata);
3037
+ return config;
3038
+ }
3039
+ function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
3040
+ if (!untrustedIsObject(untrustedConfig)) {
3041
+ return null;
3042
+ }
3043
+ if (process.env.NODE_ENV !== 'production') {
3044
+ validateConfig(untrustedConfig, configPropertyNames);
3045
+ }
3046
+ const config = typeCheckConfig$1(untrustedConfig);
3047
+ if (!areRequiredParametersPresent(config, configPropertyNames)) {
3048
+ return null;
3049
+ }
3050
+ return config;
3051
+ }
3052
+ function buildNetworkSnapshot$1(luvio, config, options) {
3053
+ const resourceParams = createResourceParams$1(config);
3054
+ const request = createResourceRequest$1(resourceParams);
3055
+ return luvio.dispatchResourceRequest(request, options)
3056
+ .then((response) => {
3057
+ return luvio.handleSuccessResponse(() => {
3058
+ const snapshot = ingestSuccess$1(luvio, resourceParams, response);
3059
+ return luvio.storeBroadcast().then(() => snapshot);
3060
+ }, () => {
3061
+ const cache = new StoreKeyMap();
3062
+ getResponseCacheKeys$1(cache, luvio, resourceParams, response.body);
3063
+ return cache;
3064
+ });
3065
+ }, (response) => {
3066
+ deepFreeze(response);
3067
+ throw response;
3068
+ });
3069
+ }
3070
+ const executeDataCleanRoomQueryAdapterFactory = (luvio) => {
3071
+ return function executeDataCleanRoomQuery(untrustedConfig) {
3072
+ const config = validateAdapterConfig$1(untrustedConfig, executeDataCleanRoomQuery_ConfigPropertyNames);
3073
+ // Invalid or incomplete config
3074
+ if (config === null) {
3075
+ throw new Error('Invalid config for "executeDataCleanRoomQuery"');
3076
+ }
3077
+ return buildNetworkSnapshot$1(luvio, config);
2819
3078
  };
2820
3079
  };
2821
3080
 
2822
- export { acceptDataCleanRoomInvitationAdapterFactory, createDataCleanRoomCollaborationAdapterFactory, createDataCleanRoomSpecificationAdapterFactory, createProviderAdapterFactory, getAllDataCleanRoomsPaginatedAdapterFactory, getDataCleanRoomProvidersPaginatedAdapterFactory, getDataCleanRoomSpecificationsPaginatedAdapterFactory, getDataCleanRoomTemplatePaginatedAdapterFactory, rejectDataCleanRoomInvitationAdapterFactory };
3081
+ const VERSION = "7aaafdce5d4ed7457442ab5701329217";
3082
+ function validate(obj, path = 'DataCleanRoomQueryJobHistoryCollectionRepresentation') {
3083
+ const v_error = (() => {
3084
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
3085
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
3086
+ }
3087
+ if (obj.currentPageUrl !== undefined) {
3088
+ const obj_currentPageUrl = obj.currentPageUrl;
3089
+ const path_currentPageUrl = path + '.currentPageUrl';
3090
+ if (typeof obj_currentPageUrl !== 'string') {
3091
+ return new TypeError('Expected "string" but received "' + typeof obj_currentPageUrl + '" (at "' + path_currentPageUrl + '")');
3092
+ }
3093
+ }
3094
+ const obj_limit = obj.limit;
3095
+ const path_limit = path + '.limit';
3096
+ if (typeof obj_limit !== 'number' || (typeof obj_limit === 'number' && Math.floor(obj_limit) !== obj_limit)) {
3097
+ return new TypeError('Expected "integer" but received "' + typeof obj_limit + '" (at "' + path_limit + '")');
3098
+ }
3099
+ if (obj.nextPageUrl !== undefined) {
3100
+ const obj_nextPageUrl = obj.nextPageUrl;
3101
+ const path_nextPageUrl = path + '.nextPageUrl';
3102
+ let obj_nextPageUrl_union0 = null;
3103
+ const obj_nextPageUrl_union0_error = (() => {
3104
+ if (typeof obj_nextPageUrl !== 'string') {
3105
+ return new TypeError('Expected "string" but received "' + typeof obj_nextPageUrl + '" (at "' + path_nextPageUrl + '")');
3106
+ }
3107
+ })();
3108
+ if (obj_nextPageUrl_union0_error != null) {
3109
+ obj_nextPageUrl_union0 = obj_nextPageUrl_union0_error.message;
3110
+ }
3111
+ let obj_nextPageUrl_union1 = null;
3112
+ const obj_nextPageUrl_union1_error = (() => {
3113
+ if (obj_nextPageUrl !== null) {
3114
+ return new TypeError('Expected "null" but received "' + typeof obj_nextPageUrl + '" (at "' + path_nextPageUrl + '")');
3115
+ }
3116
+ })();
3117
+ if (obj_nextPageUrl_union1_error != null) {
3118
+ obj_nextPageUrl_union1 = obj_nextPageUrl_union1_error.message;
3119
+ }
3120
+ if (obj_nextPageUrl_union0 && obj_nextPageUrl_union1) {
3121
+ let message = 'Object doesn\'t match union (at "' + path_nextPageUrl + '")';
3122
+ message += '\n' + obj_nextPageUrl_union0.split('\n').map((line) => '\t' + line).join('\n');
3123
+ message += '\n' + obj_nextPageUrl_union1.split('\n').map((line) => '\t' + line).join('\n');
3124
+ return new TypeError(message);
3125
+ }
3126
+ }
3127
+ const obj_offset = obj.offset;
3128
+ const path_offset = path + '.offset';
3129
+ if (typeof obj_offset !== 'number' || (typeof obj_offset === 'number' && Math.floor(obj_offset) !== obj_offset)) {
3130
+ return new TypeError('Expected "integer" but received "' + typeof obj_offset + '" (at "' + path_offset + '")');
3131
+ }
3132
+ const obj_queryJobs = obj.queryJobs;
3133
+ const path_queryJobs = path + '.queryJobs';
3134
+ if (!ArrayIsArray(obj_queryJobs)) {
3135
+ return new TypeError('Expected "array" but received "' + typeof obj_queryJobs + '" (at "' + path_queryJobs + '")');
3136
+ }
3137
+ for (let i = 0; i < obj_queryJobs.length; i++) {
3138
+ const obj_queryJobs_item = obj_queryJobs[i];
3139
+ const path_queryJobs_item = path_queryJobs + '[' + i + ']';
3140
+ const referencepath_queryJobs_itemValidationError = validate$1(obj_queryJobs_item, path_queryJobs_item);
3141
+ if (referencepath_queryJobs_itemValidationError !== null) {
3142
+ let message = 'Object doesn\'t match DataCleanRoomQueryJobRepresentation (at "' + path_queryJobs_item + '")\n';
3143
+ message += referencepath_queryJobs_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
3144
+ return new TypeError(message);
3145
+ }
3146
+ }
3147
+ if (obj.totalSize !== undefined) {
3148
+ const obj_totalSize = obj.totalSize;
3149
+ const path_totalSize = path + '.totalSize';
3150
+ if (typeof obj_totalSize !== 'number' || (typeof obj_totalSize === 'number' && Math.floor(obj_totalSize) !== obj_totalSize)) {
3151
+ return new TypeError('Expected "integer" but received "' + typeof obj_totalSize + '" (at "' + path_totalSize + '")');
3152
+ }
3153
+ }
3154
+ })();
3155
+ return v_error === undefined ? null : v_error;
3156
+ }
3157
+ const RepresentationType = 'DataCleanRoomQueryJobHistoryCollectionRepresentation';
3158
+ function normalize(input, existing, path, luvio, store, timestamp) {
3159
+ return input;
3160
+ }
3161
+ const select$1 = function DataCleanRoomQueryJobHistoryCollectionRepresentationSelect() {
3162
+ return {
3163
+ kind: 'Fragment',
3164
+ version: VERSION,
3165
+ private: [],
3166
+ opaque: true
3167
+ };
3168
+ };
3169
+ function equals(existing, incoming) {
3170
+ if (JSONStringify(incoming) !== JSONStringify(existing)) {
3171
+ return false;
3172
+ }
3173
+ return true;
3174
+ }
3175
+ const ingest = function DataCleanRoomQueryJobHistoryCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
3176
+ if (process.env.NODE_ENV !== 'production') {
3177
+ const validateError = validate(input);
3178
+ if (validateError !== null) {
3179
+ throw validateError;
3180
+ }
3181
+ }
3182
+ const key = path.fullPath;
3183
+ const ttlToUse = path.ttl !== undefined ? path.ttl : 60000;
3184
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize, "data-clean-room", VERSION, RepresentationType, equals);
3185
+ return createLink(key);
3186
+ };
3187
+ function getTypeCacheKeys(rootKeySet, luvio, input, fullPathFactory) {
3188
+ // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
3189
+ const rootKey = fullPathFactory();
3190
+ rootKeySet.set(rootKey, {
3191
+ namespace: keyPrefix,
3192
+ representationName: RepresentationType,
3193
+ mergeable: false
3194
+ });
3195
+ }
3196
+
3197
+ function select(luvio, params) {
3198
+ return select$1();
3199
+ }
3200
+ function keyBuilder$1(luvio, params) {
3201
+ return keyPrefix + '::DataCleanRoomQueryJobHistoryCollectionRepresentation:(' + 'collaborationIdOrApiName:' + params.urlParams.collaborationIdOrApiName + ')';
3202
+ }
3203
+ function getResponseCacheKeys(storeKeyMap, luvio, resourceParams, response) {
3204
+ getTypeCacheKeys(storeKeyMap, luvio, response, () => keyBuilder$1(luvio, resourceParams));
3205
+ }
3206
+ function ingestSuccess(luvio, resourceParams, response, snapshotRefresh) {
3207
+ const { body } = response;
3208
+ const key = keyBuilder$1(luvio, resourceParams);
3209
+ luvio.storeIngest(key, ingest, body);
3210
+ const snapshot = luvio.storeLookup({
3211
+ recordId: key,
3212
+ node: select(),
3213
+ variables: {},
3214
+ }, snapshotRefresh);
3215
+ if (process.env.NODE_ENV !== 'production') {
3216
+ if (snapshot.state !== 'Fulfilled') {
3217
+ throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
3218
+ }
3219
+ }
3220
+ deepFreeze(snapshot.data);
3221
+ return snapshot;
3222
+ }
3223
+ function ingestError(luvio, params, error, snapshotRefresh) {
3224
+ const key = keyBuilder$1(luvio, params);
3225
+ const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
3226
+ luvio.storeIngestError(key, errorSnapshot);
3227
+ return errorSnapshot;
3228
+ }
3229
+ function createResourceRequest(config) {
3230
+ const headers = {};
3231
+ return {
3232
+ baseUri: '/services/data/v64.0',
3233
+ basePath: '/ssot/data-clean-room/' + config.urlParams.collaborationIdOrApiName + '/jobs',
3234
+ method: 'get',
3235
+ body: null,
3236
+ urlParams: config.urlParams,
3237
+ queryParams: {},
3238
+ headers,
3239
+ priority: 'normal',
3240
+ };
3241
+ }
3242
+
3243
+ const adapterName = 'getAllDataCleanRoomQueryPaginated';
3244
+ const getAllDataCleanRoomQueryPaginated_ConfigPropertyMetadata = [
3245
+ generateParamConfigMetadata('collaborationIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
3246
+ ];
3247
+ const getAllDataCleanRoomQueryPaginated_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, getAllDataCleanRoomQueryPaginated_ConfigPropertyMetadata);
3248
+ const createResourceParams = /*#__PURE__*/ createResourceParams$b(getAllDataCleanRoomQueryPaginated_ConfigPropertyMetadata);
3249
+ function keyBuilder(luvio, config) {
3250
+ const resourceParams = createResourceParams(config);
3251
+ return keyBuilder$1(luvio, resourceParams);
3252
+ }
3253
+ function typeCheckConfig(untrustedConfig) {
3254
+ const config = {};
3255
+ typeCheckConfig$b(untrustedConfig, config, getAllDataCleanRoomQueryPaginated_ConfigPropertyMetadata);
3256
+ return config;
3257
+ }
3258
+ function validateAdapterConfig(untrustedConfig, configPropertyNames) {
3259
+ if (!untrustedIsObject(untrustedConfig)) {
3260
+ return null;
3261
+ }
3262
+ if (process.env.NODE_ENV !== 'production') {
3263
+ validateConfig(untrustedConfig, configPropertyNames);
3264
+ }
3265
+ const config = typeCheckConfig(untrustedConfig);
3266
+ if (!areRequiredParametersPresent(config, configPropertyNames)) {
3267
+ return null;
3268
+ }
3269
+ return config;
3270
+ }
3271
+ function adapterFragment(luvio, config) {
3272
+ createResourceParams(config);
3273
+ return select();
3274
+ }
3275
+ function onFetchResponseSuccess(luvio, config, resourceParams, response) {
3276
+ const snapshot = ingestSuccess(luvio, resourceParams, response, {
3277
+ config,
3278
+ resolve: () => buildNetworkSnapshot(luvio, config, snapshotRefreshOptions)
3279
+ });
3280
+ return luvio.storeBroadcast().then(() => snapshot);
3281
+ }
3282
+ function onFetchResponseError(luvio, config, resourceParams, response) {
3283
+ const snapshot = ingestError(luvio, resourceParams, response, {
3284
+ config,
3285
+ resolve: () => buildNetworkSnapshot(luvio, config, snapshotRefreshOptions)
3286
+ });
3287
+ return luvio.storeBroadcast().then(() => snapshot);
3288
+ }
3289
+ function buildNetworkSnapshot(luvio, config, options) {
3290
+ const resourceParams = createResourceParams(config);
3291
+ const request = createResourceRequest(resourceParams);
3292
+ return luvio.dispatchResourceRequest(request, options)
3293
+ .then((response) => {
3294
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess(luvio, config, resourceParams, response), () => {
3295
+ const cache = new StoreKeyMap();
3296
+ getResponseCacheKeys(cache, luvio, resourceParams, response.body);
3297
+ return cache;
3298
+ });
3299
+ }, (response) => {
3300
+ return luvio.handleErrorResponse(() => onFetchResponseError(luvio, config, resourceParams, response));
3301
+ });
3302
+ }
3303
+ function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
3304
+ return buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext, buildNetworkSnapshot, undefined, false);
3305
+ }
3306
+ function buildCachedSnapshotCachePolicy(context, storeLookup) {
3307
+ const { luvio, config } = context;
3308
+ const selector = {
3309
+ recordId: keyBuilder(luvio, config),
3310
+ node: adapterFragment(luvio, config),
3311
+ variables: {},
3312
+ };
3313
+ const cacheSnapshot = storeLookup(selector, {
3314
+ config,
3315
+ resolve: () => buildNetworkSnapshot(luvio, config, snapshotRefreshOptions)
3316
+ });
3317
+ return cacheSnapshot;
3318
+ }
3319
+ const getAllDataCleanRoomQueryPaginatedAdapterFactory = (luvio) => function dataCleanRoom__getAllDataCleanRoomQueryPaginated(untrustedConfig, requestContext) {
3320
+ const config = validateAdapterConfig(untrustedConfig, getAllDataCleanRoomQueryPaginated_ConfigPropertyNames);
3321
+ // Invalid or incomplete config
3322
+ if (config === null) {
3323
+ return null;
3324
+ }
3325
+ return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
3326
+ buildCachedSnapshotCachePolicy, buildNetworkSnapshotCachePolicy);
3327
+ };
3328
+
3329
+ export { acceptDataCleanRoomInvitationAdapterFactory, createDataCleanRoomCollaborationAdapterFactory, createDataCleanRoomSpecificationAdapterFactory, createProviderAdapterFactory, executeDataCleanRoomQueryAdapterFactory, getAllDataCleanRoomQueryPaginatedAdapterFactory, getAllDataCleanRoomsPaginatedAdapterFactory, getDataCleanRoomProvidersPaginatedAdapterFactory, getDataCleanRoomSpecificationsPaginatedAdapterFactory, getDataCleanRoomTemplatePaginatedAdapterFactory, rejectDataCleanRoomInvitationAdapterFactory };