@salesforce/lds-adapters-cdp-data-clean-room 1.332.0-dev25 → 1.332.0-dev27

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 (27) hide show
  1. package/dist/es/es2018/cdp-data-clean-room.js +1044 -307
  2. package/dist/es/es2018/types/src/generated/adapters/acceptDataCleanRoomInvitation.d.ts +17 -0
  3. package/dist/es/es2018/types/src/generated/adapters/createDataCleanRoomSpecification.d.ts +1 -1
  4. package/dist/es/es2018/types/src/generated/adapters/getAllDataCleanRoomsPaginated.d.ts +30 -0
  5. package/dist/es/es2018/types/src/generated/adapters/getDataCleanRoomTemplatePaginated.d.ts +29 -0
  6. package/dist/es/es2018/types/src/generated/adapters/rejectDataCleanRoomInvitation.d.ts +16 -0
  7. package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +4 -0
  8. package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +7 -1
  9. package/dist/es/es2018/types/src/generated/resources/getSsotDataCleanRoomCollaborations.d.ts +18 -0
  10. package/dist/es/es2018/types/src/generated/resources/getSsotDataCleanRoomTemplates.d.ts +17 -0
  11. package/dist/es/es2018/types/src/generated/resources/postSsotDataCleanRoomSpecifications.d.ts +1 -1
  12. package/dist/es/es2018/types/src/generated/resources/putSsotDataCleanRoomCollaborationsActionsAcceptInvitationByCollaborationIdOrApiName.d.ts +16 -0
  13. package/dist/es/es2018/types/src/generated/resources/putSsotDataCleanRoomCollaborationsActionsRejectInvitationByCollaborationIdOrApiName.d.ts +15 -0
  14. package/dist/es/es2018/types/src/generated/types/CdpUserRepresentation.d.ts +3 -3
  15. package/dist/es/es2018/types/src/generated/types/DataCleanRoomAcceptInvitationInputRepresentation.d.ts +31 -0
  16. package/dist/es/es2018/types/src/generated/types/DataCleanRoomCollaborationCollectionRepresentation.d.ts +44 -0
  17. package/dist/es/es2018/types/src/generated/types/DataCleanRoomCollaborationInputRepresentation.d.ts +1 -1
  18. package/dist/es/es2018/types/src/generated/types/DataCleanRoomCollaborationRepresentation.d.ts +6 -3
  19. package/dist/es/es2018/types/src/generated/types/DataCleanRoomDataSpecificationInputRepresentation.d.ts +3 -3
  20. package/dist/es/es2018/types/src/generated/types/DataCleanRoomMemberRepresentation.d.ts +14 -5
  21. package/dist/es/es2018/types/src/generated/types/DataCleanRoomRejectInvitationInputRepresentation.d.ts +28 -0
  22. package/dist/es/es2018/types/src/generated/types/DataCleanRoomTemplateCollectionRepresentation.d.ts +44 -0
  23. package/dist/es/es2018/types/src/generated/types/DataCleanRoomTemplateRepresentation.d.ts +3 -3
  24. package/package.json +3 -3
  25. package/sfdc/index.js +1164 -399
  26. package/src/raml/api.raml +156 -6
  27. package/src/raml/luvio.raml +24 -0
@@ -4,7 +4,7 @@
4
4
  * For full license text, see the LICENSE.txt file
5
5
  */
6
6
 
7
- import { serializeStructuredKey, ingestShape, deepFreeze, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$2, typeCheckConfig as typeCheckConfig$5, StoreKeyMap, createResourceParams as createResourceParams$5 } from '@luvio/engine';
7
+ import { serializeStructuredKey, ingestShape, deepFreeze, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$4, typeCheckConfig as typeCheckConfig$9, StoreKeyMap, createResourceParams as createResourceParams$9 } from '@luvio/engine';
8
8
 
9
9
  const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
10
10
  const { keys: ObjectKeys, create: ObjectCreate } = Object;
@@ -92,15 +92,17 @@ function createLink(ref) {
92
92
  };
93
93
  }
94
94
 
95
- function validate$b(obj, path = 'CdpUserRepresentation') {
95
+ function validate$d(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 + '")');
99
99
  }
100
- const obj_id = obj.id;
101
- const path_id = path + '.id';
102
- if (typeof obj_id !== 'string') {
103
- return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
100
+ if (obj.id !== undefined) {
101
+ const obj_id = obj.id;
102
+ const path_id = path + '.id';
103
+ if (typeof obj_id !== 'string') {
104
+ return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
105
+ }
104
106
  }
105
107
  if (obj.name !== undefined) {
106
108
  const obj_name = obj.name;
@@ -120,8 +122,8 @@ function validate$b(obj, path = 'CdpUserRepresentation') {
120
122
  return v_error === undefined ? null : v_error;
121
123
  }
122
124
 
123
- const VERSION$4 = "929b1bcf37fe62f914c2364146a0f5e6";
124
- function validate$a(obj, path = 'DataCleanRoomProviderRepresentation') {
125
+ const VERSION$7 = "929b1bcf37fe62f914c2364146a0f5e6";
126
+ function validate$c(obj, path = 'DataCleanRoomProviderRepresentation') {
125
127
  const v_error = (() => {
126
128
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
127
129
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -129,7 +131,7 @@ function validate$a(obj, path = 'DataCleanRoomProviderRepresentation') {
129
131
  if (obj.createdBy !== undefined) {
130
132
  const obj_createdBy = obj.createdBy;
131
133
  const path_createdBy = path + '.createdBy';
132
- const referencepath_createdByValidationError = validate$b(obj_createdBy, path_createdBy);
134
+ const referencepath_createdByValidationError = validate$d(obj_createdBy, path_createdBy);
133
135
  if (referencepath_createdByValidationError !== null) {
134
136
  let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_createdBy + '")\n';
135
137
  message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -168,7 +170,7 @@ function validate$a(obj, path = 'DataCleanRoomProviderRepresentation') {
168
170
  if (obj.lastModifiedBy !== undefined) {
169
171
  const obj_lastModifiedBy = obj.lastModifiedBy;
170
172
  const path_lastModifiedBy = path + '.lastModifiedBy';
171
- const referencepath_lastModifiedByValidationError = validate$b(obj_lastModifiedBy, path_lastModifiedBy);
173
+ const referencepath_lastModifiedByValidationError = validate$d(obj_lastModifiedBy, path_lastModifiedBy);
172
174
  if (referencepath_lastModifiedByValidationError !== null) {
173
175
  let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_lastModifiedBy + '")\n';
174
176
  message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -225,57 +227,57 @@ function validate$a(obj, path = 'DataCleanRoomProviderRepresentation') {
225
227
  })();
226
228
  return v_error === undefined ? null : v_error;
227
229
  }
228
- const RepresentationType$4 = 'DataCleanRoomProviderRepresentation';
229
- function keyBuilder$6(luvio, config) {
230
- return keyPrefix + '::' + RepresentationType$4 + ':' + config.id;
230
+ const RepresentationType$7 = 'DataCleanRoomProviderRepresentation';
231
+ function keyBuilder$b(luvio, config) {
232
+ return keyPrefix + '::' + RepresentationType$7 + ':' + config.id;
231
233
  }
232
- function keyBuilderFromType$2(luvio, object) {
234
+ function keyBuilderFromType$3(luvio, object) {
233
235
  const keyParams = {
234
236
  id: object.id
235
237
  };
236
- return keyBuilder$6(luvio, keyParams);
238
+ return keyBuilder$b(luvio, keyParams);
237
239
  }
238
- function normalize$4(input, existing, path, luvio, store, timestamp) {
240
+ function normalize$7(input, existing, path, luvio, store, timestamp) {
239
241
  return input;
240
242
  }
241
- const select$9 = function DataCleanRoomProviderRepresentationSelect() {
243
+ const select$g = function DataCleanRoomProviderRepresentationSelect() {
242
244
  return {
243
245
  kind: 'Fragment',
244
- version: VERSION$4,
246
+ version: VERSION$7,
245
247
  private: [],
246
248
  opaque: true
247
249
  };
248
250
  };
249
- function equals$4(existing, incoming) {
251
+ function equals$7(existing, incoming) {
250
252
  if (JSONStringify(incoming) !== JSONStringify(existing)) {
251
253
  return false;
252
254
  }
253
255
  return true;
254
256
  }
255
- const ingest$4 = function DataCleanRoomProviderRepresentationIngest(input, path, luvio, store, timestamp) {
257
+ const ingest$7 = function DataCleanRoomProviderRepresentationIngest(input, path, luvio, store, timestamp) {
256
258
  if (process.env.NODE_ENV !== 'production') {
257
- const validateError = validate$a(input);
259
+ const validateError = validate$c(input);
258
260
  if (validateError !== null) {
259
261
  throw validateError;
260
262
  }
261
263
  }
262
- const key = keyBuilderFromType$2(luvio, input);
264
+ const key = keyBuilderFromType$3(luvio, input);
263
265
  const ttlToUse = path.ttl !== undefined ? path.ttl : 60000;
264
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$4, "data-clean-room", VERSION$4, RepresentationType$4, equals$4);
266
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$7, "data-clean-room", VERSION$7, RepresentationType$7, equals$7);
265
267
  return createLink(key);
266
268
  };
267
- function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
269
+ function getTypeCacheKeys$7(rootKeySet, luvio, input, fullPathFactory) {
268
270
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
269
- const rootKey = keyBuilderFromType$2(luvio, input);
271
+ const rootKey = keyBuilderFromType$3(luvio, input);
270
272
  rootKeySet.set(rootKey, {
271
273
  namespace: keyPrefix,
272
- representationName: RepresentationType$4,
274
+ representationName: RepresentationType$7,
273
275
  mergeable: false
274
276
  });
275
277
  }
276
278
 
277
- const VERSION$3 = "52237eeecd4f8f11ae22e265d9abe5ca";
278
- function validate$9(obj, path = 'DataCleanRoomProviderCollectionRepresentation') {
279
+ const VERSION$6 = "52237eeecd4f8f11ae22e265d9abe5ca";
280
+ function validate$b(obj, path = 'DataCleanRoomProviderCollectionRepresentation') {
279
281
  const v_error = (() => {
280
282
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
281
283
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -351,14 +353,14 @@ function validate$9(obj, path = 'DataCleanRoomProviderCollectionRepresentation')
351
353
  })();
352
354
  return v_error === undefined ? null : v_error;
353
355
  }
354
- const RepresentationType$3 = 'DataCleanRoomProviderCollectionRepresentation';
355
- function normalize$3(input, existing, path, luvio, store, timestamp) {
356
+ const RepresentationType$6 = 'DataCleanRoomProviderCollectionRepresentation';
357
+ function normalize$6(input, existing, path, luvio, store, timestamp) {
356
358
  const input_providers = input.providers;
357
359
  const input_providers_id = path.fullPath + '__providers';
358
360
  for (let i = 0; i < input_providers.length; i++) {
359
361
  const input_providers_item = input_providers[i];
360
362
  let input_providers_item_id = input_providers_id + '__' + i;
361
- input_providers[i] = ingest$4(input_providers_item, {
363
+ input_providers[i] = ingest$7(input_providers_item, {
362
364
  fullPath: input_providers_item_id,
363
365
  propertyName: i,
364
366
  parent: {
@@ -371,10 +373,10 @@ function normalize$3(input, existing, path, luvio, store, timestamp) {
371
373
  }
372
374
  return input;
373
375
  }
374
- const select$8 = function DataCleanRoomProviderCollectionRepresentationSelect() {
376
+ const select$f = function DataCleanRoomProviderCollectionRepresentationSelect() {
375
377
  return {
376
378
  kind: 'Fragment',
377
- version: VERSION$3,
379
+ version: VERSION$6,
378
380
  private: [],
379
381
  selections: [
380
382
  {
@@ -401,7 +403,7 @@ const select$8 = function DataCleanRoomProviderCollectionRepresentationSelect()
401
403
  name: 'providers',
402
404
  kind: 'Link',
403
405
  plural: true,
404
- fragment: select$9()
406
+ fragment: select$g()
405
407
  },
406
408
  {
407
409
  name: 'totalSize',
@@ -411,7 +413,7 @@ const select$8 = function DataCleanRoomProviderCollectionRepresentationSelect()
411
413
  ]
412
414
  };
413
415
  };
414
- function equals$3(existing, incoming) {
416
+ function equals$6(existing, incoming) {
415
417
  const existing_limit = existing.limit;
416
418
  const incoming_limit = incoming.limit;
417
419
  // if at least one of these optionals is defined
@@ -489,48 +491,48 @@ function equals$3(existing, incoming) {
489
491
  }
490
492
  return true;
491
493
  }
492
- const ingest$3 = function DataCleanRoomProviderCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
494
+ const ingest$6 = function DataCleanRoomProviderCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
493
495
  if (process.env.NODE_ENV !== 'production') {
494
- const validateError = validate$9(input);
496
+ const validateError = validate$b(input);
495
497
  if (validateError !== null) {
496
498
  throw validateError;
497
499
  }
498
500
  }
499
501
  const key = path.fullPath;
500
502
  const ttlToUse = path.ttl !== undefined ? path.ttl : 60000;
501
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$3, "data-clean-room", VERSION$3, RepresentationType$3, equals$3);
503
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$6, "data-clean-room", VERSION$6, RepresentationType$6, equals$6);
502
504
  return createLink(key);
503
505
  };
504
- function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
506
+ function getTypeCacheKeys$6(rootKeySet, luvio, input, fullPathFactory) {
505
507
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
506
508
  const rootKey = fullPathFactory();
507
509
  rootKeySet.set(rootKey, {
508
510
  namespace: keyPrefix,
509
- representationName: RepresentationType$3,
511
+ representationName: RepresentationType$6,
510
512
  mergeable: false
511
513
  });
512
514
  const input_providers_length = input.providers.length;
513
515
  for (let i = 0; i < input_providers_length; i++) {
514
- getTypeCacheKeys$4(rootKeySet, luvio, input.providers[i]);
516
+ getTypeCacheKeys$7(rootKeySet, luvio, input.providers[i]);
515
517
  }
516
518
  }
517
519
 
518
- function select$7(luvio, params) {
519
- return select$8();
520
+ function select$e(luvio, params) {
521
+ return select$f();
520
522
  }
521
- function keyBuilder$5(luvio, params) {
523
+ function keyBuilder$a(luvio, params) {
522
524
  return keyPrefix + '::DataCleanRoomProviderCollectionRepresentation:(' + 'filters:' + params.queryParams.filters + ',' + 'limit:' + params.queryParams.limit + ',' + 'offset:' + params.queryParams.offset + ',' + 'orderBy:' + params.queryParams.orderBy + ')';
523
525
  }
524
- function getResponseCacheKeys$4(storeKeyMap, luvio, resourceParams, response) {
525
- getTypeCacheKeys$3(storeKeyMap, luvio, response, () => keyBuilder$5(luvio, resourceParams));
526
+ function getResponseCacheKeys$8(storeKeyMap, luvio, resourceParams, response) {
527
+ getTypeCacheKeys$6(storeKeyMap, luvio, response, () => keyBuilder$a(luvio, resourceParams));
526
528
  }
527
- function ingestSuccess$4(luvio, resourceParams, response, snapshotRefresh) {
529
+ function ingestSuccess$8(luvio, resourceParams, response, snapshotRefresh) {
528
530
  const { body } = response;
529
- const key = keyBuilder$5(luvio, resourceParams);
530
- luvio.storeIngest(key, ingest$3, body);
531
+ const key = keyBuilder$a(luvio, resourceParams);
532
+ luvio.storeIngest(key, ingest$6, body);
531
533
  const snapshot = luvio.storeLookup({
532
534
  recordId: key,
533
- node: select$7(),
535
+ node: select$e(),
534
536
  variables: {},
535
537
  }, snapshotRefresh);
536
538
  if (process.env.NODE_ENV !== 'production') {
@@ -541,13 +543,13 @@ function ingestSuccess$4(luvio, resourceParams, response, snapshotRefresh) {
541
543
  deepFreeze(snapshot.data);
542
544
  return snapshot;
543
545
  }
544
- function ingestError$1(luvio, params, error, snapshotRefresh) {
545
- const key = keyBuilder$5(luvio, params);
546
+ function ingestError$3(luvio, params, error, snapshotRefresh) {
547
+ const key = keyBuilder$a(luvio, params);
546
548
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
547
549
  luvio.storeIngestError(key, errorSnapshot);
548
550
  return errorSnapshot;
549
551
  }
550
- function createResourceRequest$4(config) {
552
+ function createResourceRequest$8(config) {
551
553
  const headers = {};
552
554
  return {
553
555
  baseUri: '/services/data/v63.0',
@@ -561,108 +563,108 @@ function createResourceRequest$4(config) {
561
563
  };
562
564
  }
563
565
 
564
- const adapterName$4 = 'getDataCleanRoomProvidersPaginated';
566
+ const adapterName$8 = 'getDataCleanRoomProvidersPaginated';
565
567
  const getDataCleanRoomProvidersPaginated_ConfigPropertyMetadata = [
566
568
  generateParamConfigMetadata('filters', false, 1 /* QueryParameter */, 0 /* String */),
567
569
  generateParamConfigMetadata('limit', false, 1 /* QueryParameter */, 3 /* Integer */),
568
570
  generateParamConfigMetadata('offset', false, 1 /* QueryParameter */, 3 /* Integer */),
569
571
  generateParamConfigMetadata('orderBy', false, 1 /* QueryParameter */, 0 /* String */),
570
572
  ];
571
- const getDataCleanRoomProvidersPaginated_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, getDataCleanRoomProvidersPaginated_ConfigPropertyMetadata);
572
- const createResourceParams$4 = /*#__PURE__*/ createResourceParams$5(getDataCleanRoomProvidersPaginated_ConfigPropertyMetadata);
573
- function keyBuilder$4(luvio, config) {
574
- const resourceParams = createResourceParams$4(config);
575
- return keyBuilder$5(luvio, resourceParams);
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);
576
578
  }
577
- function typeCheckConfig$4(untrustedConfig) {
579
+ function typeCheckConfig$8(untrustedConfig) {
578
580
  const config = {};
579
- typeCheckConfig$5(untrustedConfig, config, getDataCleanRoomProvidersPaginated_ConfigPropertyMetadata);
581
+ typeCheckConfig$9(untrustedConfig, config, getDataCleanRoomProvidersPaginated_ConfigPropertyMetadata);
580
582
  return config;
581
583
  }
582
- function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
584
+ function validateAdapterConfig$8(untrustedConfig, configPropertyNames) {
583
585
  if (!untrustedIsObject(untrustedConfig)) {
584
586
  return null;
585
587
  }
586
588
  if (process.env.NODE_ENV !== 'production') {
587
589
  validateConfig(untrustedConfig, configPropertyNames);
588
590
  }
589
- const config = typeCheckConfig$4(untrustedConfig);
591
+ const config = typeCheckConfig$8(untrustedConfig);
590
592
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
591
593
  return null;
592
594
  }
593
595
  return config;
594
596
  }
595
- function adapterFragment$1(luvio, config) {
596
- createResourceParams$4(config);
597
- return select$7();
597
+ function adapterFragment$3(luvio, config) {
598
+ createResourceParams$8(config);
599
+ return select$e();
598
600
  }
599
- function onFetchResponseSuccess$1(luvio, config, resourceParams, response) {
600
- const snapshot = ingestSuccess$4(luvio, resourceParams, response, {
601
+ function onFetchResponseSuccess$3(luvio, config, resourceParams, response) {
602
+ const snapshot = ingestSuccess$8(luvio, resourceParams, response, {
601
603
  config,
602
- resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
604
+ resolve: () => buildNetworkSnapshot$8(luvio, config, snapshotRefreshOptions)
603
605
  });
604
606
  return luvio.storeBroadcast().then(() => snapshot);
605
607
  }
606
- function onFetchResponseError$1(luvio, config, resourceParams, response) {
607
- const snapshot = ingestError$1(luvio, resourceParams, response, {
608
+ function onFetchResponseError$3(luvio, config, resourceParams, response) {
609
+ const snapshot = ingestError$3(luvio, resourceParams, response, {
608
610
  config,
609
- resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
611
+ resolve: () => buildNetworkSnapshot$8(luvio, config, snapshotRefreshOptions)
610
612
  });
611
613
  return luvio.storeBroadcast().then(() => snapshot);
612
614
  }
613
- function buildNetworkSnapshot$4(luvio, config, options) {
614
- const resourceParams = createResourceParams$4(config);
615
- const request = createResourceRequest$4(resourceParams);
615
+ function buildNetworkSnapshot$8(luvio, config, options) {
616
+ const resourceParams = createResourceParams$8(config);
617
+ const request = createResourceRequest$8(resourceParams);
616
618
  return luvio.dispatchResourceRequest(request, options)
617
619
  .then((response) => {
618
- return luvio.handleSuccessResponse(() => onFetchResponseSuccess$1(luvio, config, resourceParams, response), () => {
620
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess$3(luvio, config, resourceParams, response), () => {
619
621
  const cache = new StoreKeyMap();
620
- getResponseCacheKeys$4(cache, luvio, resourceParams, response.body);
622
+ getResponseCacheKeys$8(cache, luvio, resourceParams, response.body);
621
623
  return cache;
622
624
  });
623
625
  }, (response) => {
624
- return luvio.handleErrorResponse(() => onFetchResponseError$1(luvio, config, resourceParams, response));
626
+ return luvio.handleErrorResponse(() => onFetchResponseError$3(luvio, config, resourceParams, response));
625
627
  });
626
628
  }
627
- function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
628
- return buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext, buildNetworkSnapshot$4, undefined, false);
629
+ function buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext) {
630
+ return buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext, buildNetworkSnapshot$8, undefined, false);
629
631
  }
630
- function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
632
+ function buildCachedSnapshotCachePolicy$3(context, storeLookup) {
631
633
  const { luvio, config } = context;
632
634
  const selector = {
633
- recordId: keyBuilder$4(luvio, config),
634
- node: adapterFragment$1(luvio, config),
635
+ recordId: keyBuilder$9(luvio, config),
636
+ node: adapterFragment$3(luvio, config),
635
637
  variables: {},
636
638
  };
637
639
  const cacheSnapshot = storeLookup(selector, {
638
640
  config,
639
- resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
641
+ resolve: () => buildNetworkSnapshot$8(luvio, config, snapshotRefreshOptions)
640
642
  });
641
643
  return cacheSnapshot;
642
644
  }
643
645
  const getDataCleanRoomProvidersPaginatedAdapterFactory = (luvio) => function dataCleanRoom__getDataCleanRoomProvidersPaginated(untrustedConfig, requestContext) {
644
- const config = validateAdapterConfig$4(untrustedConfig, getDataCleanRoomProvidersPaginated_ConfigPropertyNames);
646
+ const config = validateAdapterConfig$8(untrustedConfig, getDataCleanRoomProvidersPaginated_ConfigPropertyNames);
645
647
  // Invalid or incomplete config
646
648
  if (config === null) {
647
649
  return null;
648
650
  }
649
651
  return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
650
- buildCachedSnapshotCachePolicy$1, buildNetworkSnapshotCachePolicy$1);
652
+ buildCachedSnapshotCachePolicy$3, buildNetworkSnapshotCachePolicy$3);
651
653
  };
652
654
 
653
- function select$6(luvio, params) {
654
- return select$9();
655
+ function select$d(luvio, params) {
656
+ return select$g();
655
657
  }
656
- function getResponseCacheKeys$3(storeKeyMap, luvio, resourceParams, response) {
657
- getTypeCacheKeys$4(storeKeyMap, luvio, response);
658
+ function getResponseCacheKeys$7(storeKeyMap, luvio, resourceParams, response) {
659
+ getTypeCacheKeys$7(storeKeyMap, luvio, response);
658
660
  }
659
- function ingestSuccess$3(luvio, resourceParams, response) {
661
+ function ingestSuccess$7(luvio, resourceParams, response) {
660
662
  const { body } = response;
661
- const key = keyBuilderFromType$2(luvio, body);
662
- luvio.storeIngest(key, ingest$4, body);
663
+ const key = keyBuilderFromType$3(luvio, body);
664
+ luvio.storeIngest(key, ingest$7, body);
663
665
  const snapshot = luvio.storeLookup({
664
666
  recordId: key,
665
- node: select$6(),
667
+ node: select$d(),
666
668
  variables: {},
667
669
  });
668
670
  if (process.env.NODE_ENV !== 'production') {
@@ -673,7 +675,7 @@ function ingestSuccess$3(luvio, resourceParams, response) {
673
675
  deepFreeze(snapshot.data);
674
676
  return snapshot;
675
677
  }
676
- function createResourceRequest$3(config) {
678
+ function createResourceRequest$7(config) {
677
679
  const headers = {};
678
680
  return {
679
681
  baseUri: '/services/data/v63.0',
@@ -687,7 +689,7 @@ function createResourceRequest$3(config) {
687
689
  };
688
690
  }
689
691
 
690
- const adapterName$3 = 'createProvider';
692
+ const adapterName$7 = 'createProvider';
691
693
  const createProvider_ConfigPropertyMetadata = [
692
694
  generateParamConfigMetadata('label', true, 2 /* Body */, 0 /* String */),
693
695
  generateParamConfigMetadata('description', true, 2 /* Body */, 0 /* String */),
@@ -697,37 +699,37 @@ const createProvider_ConfigPropertyMetadata = [
697
699
  generateParamConfigMetadata('name', false, 2 /* Body */, 0 /* String */),
698
700
  generateParamConfigMetadata('logoUrl', false, 2 /* Body */, 0 /* String */),
699
701
  ];
700
- const createProvider_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, createProvider_ConfigPropertyMetadata);
701
- const createResourceParams$3 = /*#__PURE__*/ createResourceParams$5(createProvider_ConfigPropertyMetadata);
702
- function typeCheckConfig$3(untrustedConfig) {
702
+ const createProvider_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$7, createProvider_ConfigPropertyMetadata);
703
+ const createResourceParams$7 = /*#__PURE__*/ createResourceParams$9(createProvider_ConfigPropertyMetadata);
704
+ function typeCheckConfig$7(untrustedConfig) {
703
705
  const config = {};
704
- typeCheckConfig$5(untrustedConfig, config, createProvider_ConfigPropertyMetadata);
706
+ typeCheckConfig$9(untrustedConfig, config, createProvider_ConfigPropertyMetadata);
705
707
  return config;
706
708
  }
707
- function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
709
+ function validateAdapterConfig$7(untrustedConfig, configPropertyNames) {
708
710
  if (!untrustedIsObject(untrustedConfig)) {
709
711
  return null;
710
712
  }
711
713
  if (process.env.NODE_ENV !== 'production') {
712
714
  validateConfig(untrustedConfig, configPropertyNames);
713
715
  }
714
- const config = typeCheckConfig$3(untrustedConfig);
716
+ const config = typeCheckConfig$7(untrustedConfig);
715
717
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
716
718
  return null;
717
719
  }
718
720
  return config;
719
721
  }
720
- function buildNetworkSnapshot$3(luvio, config, options) {
721
- const resourceParams = createResourceParams$3(config);
722
- const request = createResourceRequest$3(resourceParams);
722
+ function buildNetworkSnapshot$7(luvio, config, options) {
723
+ const resourceParams = createResourceParams$7(config);
724
+ const request = createResourceRequest$7(resourceParams);
723
725
  return luvio.dispatchResourceRequest(request, options)
724
726
  .then((response) => {
725
727
  return luvio.handleSuccessResponse(() => {
726
- const snapshot = ingestSuccess$3(luvio, resourceParams, response);
728
+ const snapshot = ingestSuccess$7(luvio, resourceParams, response);
727
729
  return luvio.storeBroadcast().then(() => snapshot);
728
730
  }, () => {
729
731
  const cache = new StoreKeyMap();
730
- getResponseCacheKeys$3(cache, luvio, resourceParams, response.body);
732
+ getResponseCacheKeys$7(cache, luvio, resourceParams, response.body);
731
733
  return cache;
732
734
  });
733
735
  }, (response) => {
@@ -737,16 +739,16 @@ function buildNetworkSnapshot$3(luvio, config, options) {
737
739
  }
738
740
  const createProviderAdapterFactory = (luvio) => {
739
741
  return function createProvider(untrustedConfig) {
740
- const config = validateAdapterConfig$3(untrustedConfig, createProvider_ConfigPropertyNames);
742
+ const config = validateAdapterConfig$7(untrustedConfig, createProvider_ConfigPropertyNames);
741
743
  // Invalid or incomplete config
742
744
  if (config === null) {
743
745
  throw new Error('Invalid config for "createProvider"');
744
746
  }
745
- return buildNetworkSnapshot$3(luvio, config);
747
+ return buildNetworkSnapshot$7(luvio, config);
746
748
  };
747
749
  };
748
750
 
749
- function validate$8(obj, path = 'UseCaseTemplateMappingPathAttributeRepresentation') {
751
+ function validate$a(obj, path = 'UseCaseTemplateMappingPathAttributeRepresentation') {
750
752
  const v_error = (() => {
751
753
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
752
754
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -765,7 +767,7 @@ function validate$8(obj, path = 'UseCaseTemplateMappingPathAttributeRepresentati
765
767
  return v_error === undefined ? null : v_error;
766
768
  }
767
769
 
768
- function validate$7(obj, path = 'UseCaseTemplateMappingSubjectAttributeRepresentation') {
770
+ function validate$9(obj, path = 'UseCaseTemplateMappingSubjectAttributeRepresentation') {
769
771
  const v_error = (() => {
770
772
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
771
773
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -794,7 +796,7 @@ function validate$7(obj, path = 'UseCaseTemplateMappingSubjectAttributeRepresent
794
796
  return v_error === undefined ? null : v_error;
795
797
  }
796
798
 
797
- function validate$6(obj, path = 'UseCaseTemplateMappingAttributeRepresentation') {
799
+ function validate$8(obj, path = 'UseCaseTemplateMappingAttributeRepresentation') {
798
800
  const v_error = (() => {
799
801
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
800
802
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -814,7 +816,7 @@ function validate$6(obj, path = 'UseCaseTemplateMappingAttributeRepresentation')
814
816
  if (obj.createdBy !== undefined) {
815
817
  const obj_createdBy = obj.createdBy;
816
818
  const path_createdBy = path + '.createdBy';
817
- const referencepath_createdByValidationError = validate$b(obj_createdBy, path_createdBy);
819
+ const referencepath_createdByValidationError = validate$d(obj_createdBy, path_createdBy);
818
820
  if (referencepath_createdByValidationError !== null) {
819
821
  let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_createdBy + '")\n';
820
822
  message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -831,7 +833,7 @@ function validate$6(obj, path = 'UseCaseTemplateMappingAttributeRepresentation')
831
833
  if (obj.dataMapping !== undefined) {
832
834
  const obj_dataMapping = obj.dataMapping;
833
835
  const path_dataMapping = path + '.dataMapping';
834
- const referencepath_dataMappingValidationError = validate$5(obj_dataMapping, path_dataMapping);
836
+ const referencepath_dataMappingValidationError = validate$7(obj_dataMapping, path_dataMapping);
835
837
  if (referencepath_dataMappingValidationError !== null) {
836
838
  let message = 'Object doesn\'t match UseCaseTemplateMappingRepresentation (at "' + path_dataMapping + '")\n';
837
839
  message += referencepath_dataMappingValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -855,7 +857,7 @@ function validate$6(obj, path = 'UseCaseTemplateMappingAttributeRepresentation')
855
857
  if (obj.lastModifiedBy !== undefined) {
856
858
  const obj_lastModifiedBy = obj.lastModifiedBy;
857
859
  const path_lastModifiedBy = path + '.lastModifiedBy';
858
- const referencepath_lastModifiedByValidationError = validate$b(obj_lastModifiedBy, path_lastModifiedBy);
860
+ const referencepath_lastModifiedByValidationError = validate$d(obj_lastModifiedBy, path_lastModifiedBy);
859
861
  if (referencepath_lastModifiedByValidationError !== null) {
860
862
  let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_lastModifiedBy + '")\n';
861
863
  message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -891,7 +893,7 @@ function validate$6(obj, path = 'UseCaseTemplateMappingAttributeRepresentation')
891
893
  for (let i = 0; i < obj_path.length; i++) {
892
894
  const obj_path_item = obj_path[i];
893
895
  const path_path_item = path_path + '[' + i + ']';
894
- const referencepath_path_itemValidationError = validate$8(obj_path_item, path_path_item);
896
+ const referencepath_path_itemValidationError = validate$a(obj_path_item, path_path_item);
895
897
  if (referencepath_path_itemValidationError !== null) {
896
898
  let message = 'Object doesn\'t match UseCaseTemplateMappingPathAttributeRepresentation (at "' + path_path_item + '")\n';
897
899
  message += referencepath_path_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -900,7 +902,7 @@ function validate$6(obj, path = 'UseCaseTemplateMappingAttributeRepresentation')
900
902
  }
901
903
  const obj_subjectAttribute = obj.subjectAttribute;
902
904
  const path_subjectAttribute = path + '.subjectAttribute';
903
- const referencepath_subjectAttributeValidationError = validate$7(obj_subjectAttribute, path_subjectAttribute);
905
+ const referencepath_subjectAttributeValidationError = validate$9(obj_subjectAttribute, path_subjectAttribute);
904
906
  if (referencepath_subjectAttributeValidationError !== null) {
905
907
  let message = 'Object doesn\'t match UseCaseTemplateMappingSubjectAttributeRepresentation (at "' + path_subjectAttribute + '")\n';
906
908
  message += referencepath_subjectAttributeValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -917,7 +919,7 @@ function validate$6(obj, path = 'UseCaseTemplateMappingAttributeRepresentation')
917
919
  return v_error === undefined ? null : v_error;
918
920
  }
919
921
 
920
- function validate$5(obj, path = 'UseCaseTemplateMappingRepresentation') {
922
+ function validate$7(obj, path = 'UseCaseTemplateMappingRepresentation') {
921
923
  const v_error = (() => {
922
924
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
923
925
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -930,7 +932,7 @@ function validate$5(obj, path = 'UseCaseTemplateMappingRepresentation') {
930
932
  for (let i = 0; i < obj_attributes.length; i++) {
931
933
  const obj_attributes_item = obj_attributes[i];
932
934
  const path_attributes_item = path_attributes + '[' + i + ']';
933
- const referencepath_attributes_itemValidationError = validate$6(obj_attributes_item, path_attributes_item);
935
+ const referencepath_attributes_itemValidationError = validate$8(obj_attributes_item, path_attributes_item);
934
936
  if (referencepath_attributes_itemValidationError !== null) {
935
937
  let message = 'Object doesn\'t match UseCaseTemplateMappingAttributeRepresentation (at "' + path_attributes_item + '")\n';
936
938
  message += referencepath_attributes_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -945,7 +947,7 @@ function validate$5(obj, path = 'UseCaseTemplateMappingRepresentation') {
945
947
  if (obj.createdBy !== undefined) {
946
948
  const obj_createdBy = obj.createdBy;
947
949
  const path_createdBy = path + '.createdBy';
948
- const referencepath_createdByValidationError = validate$b(obj_createdBy, path_createdBy);
950
+ const referencepath_createdByValidationError = validate$d(obj_createdBy, path_createdBy);
949
951
  if (referencepath_createdByValidationError !== null) {
950
952
  let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_createdBy + '")\n';
951
953
  message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -976,7 +978,7 @@ function validate$5(obj, path = 'UseCaseTemplateMappingRepresentation') {
976
978
  if (obj.lastModifiedBy !== undefined) {
977
979
  const obj_lastModifiedBy = obj.lastModifiedBy;
978
980
  const path_lastModifiedBy = path + '.lastModifiedBy';
979
- const referencepath_lastModifiedByValidationError = validate$b(obj_lastModifiedBy, path_lastModifiedBy);
981
+ const referencepath_lastModifiedByValidationError = validate$d(obj_lastModifiedBy, path_lastModifiedBy);
980
982
  if (referencepath_lastModifiedByValidationError !== null) {
981
983
  let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_lastModifiedBy + '")\n';
982
984
  message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -1015,8 +1017,8 @@ function validate$5(obj, path = 'UseCaseTemplateMappingRepresentation') {
1015
1017
  return v_error === undefined ? null : v_error;
1016
1018
  }
1017
1019
 
1018
- const VERSION$2 = "422829d0bdee7c37a92811d97b2c7c2b";
1019
- function validate$4(obj, path = 'DataCleanRoomDataSpecificationRepresentation') {
1020
+ const VERSION$5 = "422829d0bdee7c37a92811d97b2c7c2b";
1021
+ function validate$6(obj, path = 'DataCleanRoomDataSpecificationRepresentation') {
1020
1022
  const v_error = (() => {
1021
1023
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1022
1024
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -1024,7 +1026,7 @@ function validate$4(obj, path = 'DataCleanRoomDataSpecificationRepresentation')
1024
1026
  if (obj.createdBy !== undefined) {
1025
1027
  const obj_createdBy = obj.createdBy;
1026
1028
  const path_createdBy = path + '.createdBy';
1027
- const referencepath_createdByValidationError = validate$b(obj_createdBy, path_createdBy);
1029
+ const referencepath_createdByValidationError = validate$d(obj_createdBy, path_createdBy);
1028
1030
  if (referencepath_createdByValidationError !== null) {
1029
1031
  let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_createdBy + '")\n';
1030
1032
  message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -1040,7 +1042,7 @@ function validate$4(obj, path = 'DataCleanRoomDataSpecificationRepresentation')
1040
1042
  }
1041
1043
  const obj_dataMapping = obj.dataMapping;
1042
1044
  const path_dataMapping = path + '.dataMapping';
1043
- const referencepath_dataMappingValidationError = validate$5(obj_dataMapping, path_dataMapping);
1045
+ const referencepath_dataMappingValidationError = validate$7(obj_dataMapping, path_dataMapping);
1044
1046
  if (referencepath_dataMappingValidationError !== null) {
1045
1047
  let message = 'Object doesn\'t match UseCaseTemplateMappingRepresentation (at "' + path_dataMapping + '")\n';
1046
1048
  message += referencepath_dataMappingValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -1071,7 +1073,7 @@ function validate$4(obj, path = 'DataCleanRoomDataSpecificationRepresentation')
1071
1073
  if (obj.lastModifiedBy !== undefined) {
1072
1074
  const obj_lastModifiedBy = obj.lastModifiedBy;
1073
1075
  const path_lastModifiedBy = path + '.lastModifiedBy';
1074
- const referencepath_lastModifiedByValidationError = validate$b(obj_lastModifiedBy, path_lastModifiedBy);
1076
+ const referencepath_lastModifiedByValidationError = validate$d(obj_lastModifiedBy, path_lastModifiedBy);
1075
1077
  if (referencepath_lastModifiedByValidationError !== null) {
1076
1078
  let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_lastModifiedBy + '")\n';
1077
1079
  message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -1131,57 +1133,57 @@ function validate$4(obj, path = 'DataCleanRoomDataSpecificationRepresentation')
1131
1133
  })();
1132
1134
  return v_error === undefined ? null : v_error;
1133
1135
  }
1134
- const RepresentationType$2 = 'DataCleanRoomDataSpecificationRepresentation';
1135
- function keyBuilder$3(luvio, config) {
1136
- return keyPrefix + '::' + RepresentationType$2 + ':' + config.id;
1136
+ const RepresentationType$5 = 'DataCleanRoomDataSpecificationRepresentation';
1137
+ function keyBuilder$8(luvio, config) {
1138
+ return keyPrefix + '::' + RepresentationType$5 + ':' + config.id;
1137
1139
  }
1138
- function keyBuilderFromType$1(luvio, object) {
1140
+ function keyBuilderFromType$2(luvio, object) {
1139
1141
  const keyParams = {
1140
1142
  id: object.id
1141
1143
  };
1142
- return keyBuilder$3(luvio, keyParams);
1144
+ return keyBuilder$8(luvio, keyParams);
1143
1145
  }
1144
- function normalize$2(input, existing, path, luvio, store, timestamp) {
1146
+ function normalize$5(input, existing, path, luvio, store, timestamp) {
1145
1147
  return input;
1146
1148
  }
1147
- const select$5 = function DataCleanRoomDataSpecificationRepresentationSelect() {
1149
+ const select$c = function DataCleanRoomDataSpecificationRepresentationSelect() {
1148
1150
  return {
1149
1151
  kind: 'Fragment',
1150
- version: VERSION$2,
1152
+ version: VERSION$5,
1151
1153
  private: [],
1152
1154
  opaque: true
1153
1155
  };
1154
1156
  };
1155
- function equals$2(existing, incoming) {
1157
+ function equals$5(existing, incoming) {
1156
1158
  if (JSONStringify(incoming) !== JSONStringify(existing)) {
1157
1159
  return false;
1158
1160
  }
1159
1161
  return true;
1160
1162
  }
1161
- const ingest$2 = function DataCleanRoomDataSpecificationRepresentationIngest(input, path, luvio, store, timestamp) {
1163
+ const ingest$5 = function DataCleanRoomDataSpecificationRepresentationIngest(input, path, luvio, store, timestamp) {
1162
1164
  if (process.env.NODE_ENV !== 'production') {
1163
- const validateError = validate$4(input);
1165
+ const validateError = validate$6(input);
1164
1166
  if (validateError !== null) {
1165
1167
  throw validateError;
1166
1168
  }
1167
1169
  }
1168
- const key = keyBuilderFromType$1(luvio, input);
1170
+ const key = keyBuilderFromType$2(luvio, input);
1169
1171
  const ttlToUse = path.ttl !== undefined ? path.ttl : 60000;
1170
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$2, "data-clean-room", VERSION$2, RepresentationType$2, equals$2);
1172
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$5, "data-clean-room", VERSION$5, RepresentationType$5, equals$5);
1171
1173
  return createLink(key);
1172
1174
  };
1173
- function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
1175
+ function getTypeCacheKeys$5(rootKeySet, luvio, input, fullPathFactory) {
1174
1176
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
1175
- const rootKey = keyBuilderFromType$1(luvio, input);
1177
+ const rootKey = keyBuilderFromType$2(luvio, input);
1176
1178
  rootKeySet.set(rootKey, {
1177
1179
  namespace: keyPrefix,
1178
- representationName: RepresentationType$2,
1180
+ representationName: RepresentationType$5,
1179
1181
  mergeable: false
1180
1182
  });
1181
1183
  }
1182
1184
 
1183
- const VERSION$1 = "6fb37e337652e88218f2171d1e56647b";
1184
- function validate$3(obj, path = 'DataCleanRoomSpecificationCollectionRepresentation') {
1185
+ const VERSION$4 = "6fb37e337652e88218f2171d1e56647b";
1186
+ function validate$5(obj, path = 'DataCleanRoomSpecificationCollectionRepresentation') {
1185
1187
  const v_error = (() => {
1186
1188
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1187
1189
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -1253,14 +1255,14 @@ function validate$3(obj, path = 'DataCleanRoomSpecificationCollectionRepresentat
1253
1255
  })();
1254
1256
  return v_error === undefined ? null : v_error;
1255
1257
  }
1256
- const RepresentationType$1 = 'DataCleanRoomSpecificationCollectionRepresentation';
1257
- function normalize$1(input, existing, path, luvio, store, timestamp) {
1258
+ const RepresentationType$4 = 'DataCleanRoomSpecificationCollectionRepresentation';
1259
+ function normalize$4(input, existing, path, luvio, store, timestamp) {
1258
1260
  const input_cleanroomSpecifications = input.cleanroomSpecifications;
1259
1261
  const input_cleanroomSpecifications_id = path.fullPath + '__cleanroomSpecifications';
1260
1262
  for (let i = 0; i < input_cleanroomSpecifications.length; i++) {
1261
1263
  const input_cleanroomSpecifications_item = input_cleanroomSpecifications[i];
1262
1264
  let input_cleanroomSpecifications_item_id = input_cleanroomSpecifications_id + '__' + i;
1263
- input_cleanroomSpecifications[i] = ingest$2(input_cleanroomSpecifications_item, {
1265
+ input_cleanroomSpecifications[i] = ingest$5(input_cleanroomSpecifications_item, {
1264
1266
  fullPath: input_cleanroomSpecifications_item_id,
1265
1267
  propertyName: i,
1266
1268
  parent: {
@@ -1273,17 +1275,17 @@ function normalize$1(input, existing, path, luvio, store, timestamp) {
1273
1275
  }
1274
1276
  return input;
1275
1277
  }
1276
- const select$4 = function DataCleanRoomSpecificationCollectionRepresentationSelect() {
1278
+ const select$b = function DataCleanRoomSpecificationCollectionRepresentationSelect() {
1277
1279
  return {
1278
1280
  kind: 'Fragment',
1279
- version: VERSION$1,
1281
+ version: VERSION$4,
1280
1282
  private: [],
1281
1283
  selections: [
1282
1284
  {
1283
1285
  name: 'cleanroomSpecifications',
1284
1286
  kind: 'Link',
1285
1287
  plural: true,
1286
- fragment: select$5()
1288
+ fragment: select$c()
1287
1289
  },
1288
1290
  {
1289
1291
  name: 'currentPageUrl',
@@ -1311,7 +1313,7 @@ const select$4 = function DataCleanRoomSpecificationCollectionRepresentationSele
1311
1313
  ]
1312
1314
  };
1313
1315
  };
1314
- function equals$1(existing, incoming) {
1316
+ function equals$4(existing, incoming) {
1315
1317
  const existing_limit = existing.limit;
1316
1318
  const incoming_limit = incoming.limit;
1317
1319
  if (!(existing_limit === incoming_limit)) {
@@ -1373,48 +1375,48 @@ function equals$1(existing, incoming) {
1373
1375
  }
1374
1376
  return true;
1375
1377
  }
1376
- const ingest$1 = function DataCleanRoomSpecificationCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
1378
+ const ingest$4 = function DataCleanRoomSpecificationCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
1377
1379
  if (process.env.NODE_ENV !== 'production') {
1378
- const validateError = validate$3(input);
1380
+ const validateError = validate$5(input);
1379
1381
  if (validateError !== null) {
1380
1382
  throw validateError;
1381
1383
  }
1382
1384
  }
1383
1385
  const key = path.fullPath;
1384
1386
  const ttlToUse = path.ttl !== undefined ? path.ttl : 60000;
1385
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$1, "data-clean-room", VERSION$1, RepresentationType$1, equals$1);
1387
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$4, "data-clean-room", VERSION$4, RepresentationType$4, equals$4);
1386
1388
  return createLink(key);
1387
1389
  };
1388
- function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
1390
+ function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
1389
1391
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
1390
1392
  const rootKey = fullPathFactory();
1391
1393
  rootKeySet.set(rootKey, {
1392
1394
  namespace: keyPrefix,
1393
- representationName: RepresentationType$1,
1395
+ representationName: RepresentationType$4,
1394
1396
  mergeable: false
1395
1397
  });
1396
1398
  const input_cleanroomSpecifications_length = input.cleanroomSpecifications.length;
1397
1399
  for (let i = 0; i < input_cleanroomSpecifications_length; i++) {
1398
- getTypeCacheKeys$2(rootKeySet, luvio, input.cleanroomSpecifications[i]);
1400
+ getTypeCacheKeys$5(rootKeySet, luvio, input.cleanroomSpecifications[i]);
1399
1401
  }
1400
1402
  }
1401
1403
 
1402
- function select$3(luvio, params) {
1403
- return select$4();
1404
+ function select$a(luvio, params) {
1405
+ return select$b();
1404
1406
  }
1405
- function keyBuilder$2(luvio, params) {
1407
+ function keyBuilder$7(luvio, params) {
1406
1408
  return keyPrefix + '::DataCleanRoomSpecificationCollectionRepresentation:(' + 'filters:' + params.queryParams.filters + ',' + 'limit:' + params.queryParams.limit + ',' + 'offset:' + params.queryParams.offset + ',' + 'orderBy:' + params.queryParams.orderBy + ')';
1407
1409
  }
1408
- function getResponseCacheKeys$2(storeKeyMap, luvio, resourceParams, response) {
1409
- getTypeCacheKeys$1(storeKeyMap, luvio, response, () => keyBuilder$2(luvio, resourceParams));
1410
+ function getResponseCacheKeys$6(storeKeyMap, luvio, resourceParams, response) {
1411
+ getTypeCacheKeys$4(storeKeyMap, luvio, response, () => keyBuilder$7(luvio, resourceParams));
1410
1412
  }
1411
- function ingestSuccess$2(luvio, resourceParams, response, snapshotRefresh) {
1413
+ function ingestSuccess$6(luvio, resourceParams, response, snapshotRefresh) {
1412
1414
  const { body } = response;
1413
- const key = keyBuilder$2(luvio, resourceParams);
1414
- luvio.storeIngest(key, ingest$1, body);
1415
+ const key = keyBuilder$7(luvio, resourceParams);
1416
+ luvio.storeIngest(key, ingest$4, body);
1415
1417
  const snapshot = luvio.storeLookup({
1416
1418
  recordId: key,
1417
- node: select$3(),
1419
+ node: select$a(),
1418
1420
  variables: {},
1419
1421
  }, snapshotRefresh);
1420
1422
  if (process.env.NODE_ENV !== 'production') {
@@ -1425,13 +1427,13 @@ function ingestSuccess$2(luvio, resourceParams, response, snapshotRefresh) {
1425
1427
  deepFreeze(snapshot.data);
1426
1428
  return snapshot;
1427
1429
  }
1428
- function ingestError(luvio, params, error, snapshotRefresh) {
1429
- const key = keyBuilder$2(luvio, params);
1430
+ function ingestError$2(luvio, params, error, snapshotRefresh) {
1431
+ const key = keyBuilder$7(luvio, params);
1430
1432
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
1431
1433
  luvio.storeIngestError(key, errorSnapshot);
1432
1434
  return errorSnapshot;
1433
1435
  }
1434
- function createResourceRequest$2(config) {
1436
+ function createResourceRequest$6(config) {
1435
1437
  const headers = {};
1436
1438
  return {
1437
1439
  baseUri: '/services/data/v63.0',
@@ -1445,108 +1447,108 @@ function createResourceRequest$2(config) {
1445
1447
  };
1446
1448
  }
1447
1449
 
1448
- const adapterName$2 = 'getDataCleanRoomSpecificationsPaginated';
1450
+ const adapterName$6 = 'getDataCleanRoomSpecificationsPaginated';
1449
1451
  const getDataCleanRoomSpecificationsPaginated_ConfigPropertyMetadata = [
1450
1452
  generateParamConfigMetadata('filters', false, 1 /* QueryParameter */, 0 /* String */),
1451
1453
  generateParamConfigMetadata('limit', false, 1 /* QueryParameter */, 3 /* Integer */),
1452
1454
  generateParamConfigMetadata('offset', false, 1 /* QueryParameter */, 3 /* Integer */),
1453
1455
  generateParamConfigMetadata('orderBy', false, 1 /* QueryParameter */, 0 /* String */),
1454
1456
  ];
1455
- const getDataCleanRoomSpecificationsPaginated_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, getDataCleanRoomSpecificationsPaginated_ConfigPropertyMetadata);
1456
- const createResourceParams$2 = /*#__PURE__*/ createResourceParams$5(getDataCleanRoomSpecificationsPaginated_ConfigPropertyMetadata);
1457
- function keyBuilder$1(luvio, config) {
1458
- const resourceParams = createResourceParams$2(config);
1459
- return keyBuilder$2(luvio, resourceParams);
1457
+ const getDataCleanRoomSpecificationsPaginated_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, getDataCleanRoomSpecificationsPaginated_ConfigPropertyMetadata);
1458
+ const createResourceParams$6 = /*#__PURE__*/ createResourceParams$9(getDataCleanRoomSpecificationsPaginated_ConfigPropertyMetadata);
1459
+ function keyBuilder$6(luvio, config) {
1460
+ const resourceParams = createResourceParams$6(config);
1461
+ return keyBuilder$7(luvio, resourceParams);
1460
1462
  }
1461
- function typeCheckConfig$2(untrustedConfig) {
1463
+ function typeCheckConfig$6(untrustedConfig) {
1462
1464
  const config = {};
1463
- typeCheckConfig$5(untrustedConfig, config, getDataCleanRoomSpecificationsPaginated_ConfigPropertyMetadata);
1465
+ typeCheckConfig$9(untrustedConfig, config, getDataCleanRoomSpecificationsPaginated_ConfigPropertyMetadata);
1464
1466
  return config;
1465
1467
  }
1466
- function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
1468
+ function validateAdapterConfig$6(untrustedConfig, configPropertyNames) {
1467
1469
  if (!untrustedIsObject(untrustedConfig)) {
1468
1470
  return null;
1469
1471
  }
1470
1472
  if (process.env.NODE_ENV !== 'production') {
1471
1473
  validateConfig(untrustedConfig, configPropertyNames);
1472
1474
  }
1473
- const config = typeCheckConfig$2(untrustedConfig);
1475
+ const config = typeCheckConfig$6(untrustedConfig);
1474
1476
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
1475
1477
  return null;
1476
1478
  }
1477
1479
  return config;
1478
1480
  }
1479
- function adapterFragment(luvio, config) {
1480
- createResourceParams$2(config);
1481
- return select$3();
1481
+ function adapterFragment$2(luvio, config) {
1482
+ createResourceParams$6(config);
1483
+ return select$a();
1482
1484
  }
1483
- function onFetchResponseSuccess(luvio, config, resourceParams, response) {
1484
- const snapshot = ingestSuccess$2(luvio, resourceParams, response, {
1485
+ function onFetchResponseSuccess$2(luvio, config, resourceParams, response) {
1486
+ const snapshot = ingestSuccess$6(luvio, resourceParams, response, {
1485
1487
  config,
1486
- resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
1488
+ resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
1487
1489
  });
1488
1490
  return luvio.storeBroadcast().then(() => snapshot);
1489
1491
  }
1490
- function onFetchResponseError(luvio, config, resourceParams, response) {
1491
- const snapshot = ingestError(luvio, resourceParams, response, {
1492
+ function onFetchResponseError$2(luvio, config, resourceParams, response) {
1493
+ const snapshot = ingestError$2(luvio, resourceParams, response, {
1492
1494
  config,
1493
- resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
1495
+ resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
1494
1496
  });
1495
1497
  return luvio.storeBroadcast().then(() => snapshot);
1496
1498
  }
1497
- function buildNetworkSnapshot$2(luvio, config, options) {
1498
- const resourceParams = createResourceParams$2(config);
1499
- const request = createResourceRequest$2(resourceParams);
1499
+ function buildNetworkSnapshot$6(luvio, config, options) {
1500
+ const resourceParams = createResourceParams$6(config);
1501
+ const request = createResourceRequest$6(resourceParams);
1500
1502
  return luvio.dispatchResourceRequest(request, options)
1501
1503
  .then((response) => {
1502
- return luvio.handleSuccessResponse(() => onFetchResponseSuccess(luvio, config, resourceParams, response), () => {
1504
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess$2(luvio, config, resourceParams, response), () => {
1503
1505
  const cache = new StoreKeyMap();
1504
- getResponseCacheKeys$2(cache, luvio, resourceParams, response.body);
1506
+ getResponseCacheKeys$6(cache, luvio, resourceParams, response.body);
1505
1507
  return cache;
1506
1508
  });
1507
1509
  }, (response) => {
1508
- return luvio.handleErrorResponse(() => onFetchResponseError(luvio, config, resourceParams, response));
1510
+ return luvio.handleErrorResponse(() => onFetchResponseError$2(luvio, config, resourceParams, response));
1509
1511
  });
1510
1512
  }
1511
- function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
1512
- return buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext, buildNetworkSnapshot$2, undefined, false);
1513
+ function buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext) {
1514
+ return buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext, buildNetworkSnapshot$6, undefined, false);
1513
1515
  }
1514
- function buildCachedSnapshotCachePolicy(context, storeLookup) {
1516
+ function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
1515
1517
  const { luvio, config } = context;
1516
1518
  const selector = {
1517
- recordId: keyBuilder$1(luvio, config),
1518
- node: adapterFragment(luvio, config),
1519
+ recordId: keyBuilder$6(luvio, config),
1520
+ node: adapterFragment$2(luvio, config),
1519
1521
  variables: {},
1520
1522
  };
1521
1523
  const cacheSnapshot = storeLookup(selector, {
1522
1524
  config,
1523
- resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
1525
+ resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
1524
1526
  });
1525
1527
  return cacheSnapshot;
1526
1528
  }
1527
1529
  const getDataCleanRoomSpecificationsPaginatedAdapterFactory = (luvio) => function dataCleanRoom__getDataCleanRoomSpecificationsPaginated(untrustedConfig, requestContext) {
1528
- const config = validateAdapterConfig$2(untrustedConfig, getDataCleanRoomSpecificationsPaginated_ConfigPropertyNames);
1530
+ const config = validateAdapterConfig$6(untrustedConfig, getDataCleanRoomSpecificationsPaginated_ConfigPropertyNames);
1529
1531
  // Invalid or incomplete config
1530
1532
  if (config === null) {
1531
1533
  return null;
1532
1534
  }
1533
1535
  return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
1534
- buildCachedSnapshotCachePolicy, buildNetworkSnapshotCachePolicy);
1536
+ buildCachedSnapshotCachePolicy$2, buildNetworkSnapshotCachePolicy$2);
1535
1537
  };
1536
1538
 
1537
- function select$2(luvio, params) {
1538
- return select$5();
1539
+ function select$9(luvio, params) {
1540
+ return select$c();
1539
1541
  }
1540
- function getResponseCacheKeys$1(storeKeyMap, luvio, resourceParams, response) {
1541
- getTypeCacheKeys$2(storeKeyMap, luvio, response);
1542
+ function getResponseCacheKeys$5(storeKeyMap, luvio, resourceParams, response) {
1543
+ getTypeCacheKeys$5(storeKeyMap, luvio, response);
1542
1544
  }
1543
- function ingestSuccess$1(luvio, resourceParams, response) {
1545
+ function ingestSuccess$5(luvio, resourceParams, response) {
1544
1546
  const { body } = response;
1545
- const key = keyBuilderFromType$1(luvio, body);
1546
- luvio.storeIngest(key, ingest$2, body);
1547
+ const key = keyBuilderFromType$2(luvio, body);
1548
+ luvio.storeIngest(key, ingest$5, body);
1547
1549
  const snapshot = luvio.storeLookup({
1548
1550
  recordId: key,
1549
- node: select$2(),
1551
+ node: select$9(),
1550
1552
  variables: {},
1551
1553
  });
1552
1554
  if (process.env.NODE_ENV !== 'production') {
@@ -1557,7 +1559,7 @@ function ingestSuccess$1(luvio, resourceParams, response) {
1557
1559
  deepFreeze(snapshot.data);
1558
1560
  return snapshot;
1559
1561
  }
1560
- function createResourceRequest$1(config) {
1562
+ function createResourceRequest$5(config) {
1561
1563
  const headers = {};
1562
1564
  return {
1563
1565
  baseUri: '/services/data/v63.0',
@@ -1571,9 +1573,9 @@ function createResourceRequest$1(config) {
1571
1573
  };
1572
1574
  }
1573
1575
 
1574
- const adapterName$1 = 'createDataCleanRoomSpecification';
1576
+ const adapterName$5 = 'createDataCleanRoomSpecification';
1575
1577
  const createDataCleanRoomSpecification_ConfigPropertyMetadata = [
1576
- generateParamConfigMetadata('dataMapping', true, 2 /* Body */, 4 /* Unsupported */, true),
1578
+ generateParamConfigMetadata('dataMapping', true, 2 /* Body */, 4 /* Unsupported */),
1577
1579
  generateParamConfigMetadata('memberType', true, 2 /* Body */, 0 /* String */),
1578
1580
  generateParamConfigMetadata('ownerOrgId', true, 2 /* Body */, 0 /* String */),
1579
1581
  generateParamConfigMetadata('templateName', true, 2 /* Body */, 0 /* String */),
@@ -1582,46 +1584,39 @@ const createDataCleanRoomSpecification_ConfigPropertyMetadata = [
1582
1584
  generateParamConfigMetadata('description', true, 2 /* Body */, 0 /* String */),
1583
1585
  generateParamConfigMetadata('dataspaceName', false, 2 /* Body */, 0 /* String */),
1584
1586
  ];
1585
- const createDataCleanRoomSpecification_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, createDataCleanRoomSpecification_ConfigPropertyMetadata);
1586
- const createResourceParams$1 = /*#__PURE__*/ createResourceParams$5(createDataCleanRoomSpecification_ConfigPropertyMetadata);
1587
- function typeCheckConfig$1(untrustedConfig) {
1587
+ const createDataCleanRoomSpecification_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, createDataCleanRoomSpecification_ConfigPropertyMetadata);
1588
+ const createResourceParams$5 = /*#__PURE__*/ createResourceParams$9(createDataCleanRoomSpecification_ConfigPropertyMetadata);
1589
+ function typeCheckConfig$5(untrustedConfig) {
1588
1590
  const config = {};
1589
- typeCheckConfig$5(untrustedConfig, config, createDataCleanRoomSpecification_ConfigPropertyMetadata);
1591
+ typeCheckConfig$9(untrustedConfig, config, createDataCleanRoomSpecification_ConfigPropertyMetadata);
1590
1592
  const untrustedConfig_dataMapping = untrustedConfig.dataMapping;
1591
- if (ArrayIsArray$1(untrustedConfig_dataMapping)) {
1592
- const untrustedConfig_dataMapping_array = [];
1593
- for (let i = 0, arrayLength = untrustedConfig_dataMapping.length; i < arrayLength; i++) {
1594
- const untrustedConfig_dataMapping_item = untrustedConfig_dataMapping[i];
1595
- untrustedConfig_dataMapping_array.push(untrustedConfig_dataMapping_item);
1596
- }
1597
- config.dataMapping = untrustedConfig_dataMapping_array;
1598
- }
1593
+ config.dataMapping = untrustedConfig_dataMapping;
1599
1594
  return config;
1600
1595
  }
1601
- function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
1596
+ function validateAdapterConfig$5(untrustedConfig, configPropertyNames) {
1602
1597
  if (!untrustedIsObject(untrustedConfig)) {
1603
1598
  return null;
1604
1599
  }
1605
1600
  if (process.env.NODE_ENV !== 'production') {
1606
1601
  validateConfig(untrustedConfig, configPropertyNames);
1607
1602
  }
1608
- const config = typeCheckConfig$1(untrustedConfig);
1603
+ const config = typeCheckConfig$5(untrustedConfig);
1609
1604
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
1610
1605
  return null;
1611
1606
  }
1612
1607
  return config;
1613
1608
  }
1614
- function buildNetworkSnapshot$1(luvio, config, options) {
1615
- const resourceParams = createResourceParams$1(config);
1616
- const request = createResourceRequest$1(resourceParams);
1609
+ function buildNetworkSnapshot$5(luvio, config, options) {
1610
+ const resourceParams = createResourceParams$5(config);
1611
+ const request = createResourceRequest$5(resourceParams);
1617
1612
  return luvio.dispatchResourceRequest(request, options)
1618
1613
  .then((response) => {
1619
1614
  return luvio.handleSuccessResponse(() => {
1620
- const snapshot = ingestSuccess$1(luvio, resourceParams, response);
1615
+ const snapshot = ingestSuccess$5(luvio, resourceParams, response);
1621
1616
  return luvio.storeBroadcast().then(() => snapshot);
1622
1617
  }, () => {
1623
1618
  const cache = new StoreKeyMap();
1624
- getResponseCacheKeys$1(cache, luvio, resourceParams, response.body);
1619
+ getResponseCacheKeys$5(cache, luvio, resourceParams, response.body);
1625
1620
  return cache;
1626
1621
  });
1627
1622
  }, (response) => {
@@ -1631,16 +1626,17 @@ function buildNetworkSnapshot$1(luvio, config, options) {
1631
1626
  }
1632
1627
  const createDataCleanRoomSpecificationAdapterFactory = (luvio) => {
1633
1628
  return function createDataCleanRoomSpecification(untrustedConfig) {
1634
- const config = validateAdapterConfig$1(untrustedConfig, createDataCleanRoomSpecification_ConfigPropertyNames);
1629
+ const config = validateAdapterConfig$5(untrustedConfig, createDataCleanRoomSpecification_ConfigPropertyNames);
1635
1630
  // Invalid or incomplete config
1636
1631
  if (config === null) {
1637
1632
  throw new Error('Invalid config for "createDataCleanRoomSpecification"');
1638
1633
  }
1639
- return buildNetworkSnapshot$1(luvio, config);
1634
+ return buildNetworkSnapshot$5(luvio, config);
1640
1635
  };
1641
1636
  };
1642
1637
 
1643
- function validate$2(obj, path = 'DataCleanRoomMemberRepresentation') {
1638
+ const VERSION$3 = "60e6b0a7bcb30c169435125696ac47b1";
1639
+ function validate$4(obj, path = 'DataCleanRoomMemberRepresentation') {
1644
1640
  const v_error = (() => {
1645
1641
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1646
1642
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -1690,8 +1686,56 @@ function validate$2(obj, path = 'DataCleanRoomMemberRepresentation') {
1690
1686
  })();
1691
1687
  return v_error === undefined ? null : v_error;
1692
1688
  }
1689
+ const RepresentationType$3 = 'DataCleanRoomMemberRepresentation';
1690
+ function keyBuilder$5(luvio, config) {
1691
+ return keyPrefix + '::' + RepresentationType$3 + ':' + config.invitationId;
1692
+ }
1693
+ function keyBuilderFromType$1(luvio, object) {
1694
+ const keyParams = {
1695
+ invitationId: object.invitationId
1696
+ };
1697
+ return keyBuilder$5(luvio, keyParams);
1698
+ }
1699
+ function normalize$3(input, existing, path, luvio, store, timestamp) {
1700
+ return input;
1701
+ }
1702
+ const select$8 = function DataCleanRoomMemberRepresentationSelect() {
1703
+ return {
1704
+ kind: 'Fragment',
1705
+ version: VERSION$3,
1706
+ private: [],
1707
+ opaque: true
1708
+ };
1709
+ };
1710
+ function equals$3(existing, incoming) {
1711
+ if (JSONStringify(incoming) !== JSONStringify(existing)) {
1712
+ return false;
1713
+ }
1714
+ return true;
1715
+ }
1716
+ const ingest$3 = function DataCleanRoomMemberRepresentationIngest(input, path, luvio, store, timestamp) {
1717
+ if (process.env.NODE_ENV !== 'production') {
1718
+ const validateError = validate$4(input);
1719
+ if (validateError !== null) {
1720
+ throw validateError;
1721
+ }
1722
+ }
1723
+ const key = keyBuilderFromType$1(luvio, input);
1724
+ const ttlToUse = path.ttl !== undefined ? path.ttl : 60000;
1725
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$3, "data-clean-room", VERSION$3, RepresentationType$3, equals$3);
1726
+ return createLink(key);
1727
+ };
1728
+ function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
1729
+ // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
1730
+ const rootKey = keyBuilderFromType$1(luvio, input);
1731
+ rootKeySet.set(rootKey, {
1732
+ namespace: keyPrefix,
1733
+ representationName: RepresentationType$3,
1734
+ mergeable: false
1735
+ });
1736
+ }
1693
1737
 
1694
- function validate$1(obj, path = 'DataCleanRoomTemplateRepresentation') {
1738
+ function validate$3(obj, path = 'DataCleanRoomTemplateRepresentation') {
1695
1739
  const v_error = (() => {
1696
1740
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1697
1741
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -1704,7 +1748,7 @@ function validate$1(obj, path = 'DataCleanRoomTemplateRepresentation') {
1704
1748
  if (obj.createdBy !== undefined) {
1705
1749
  const obj_createdBy = obj.createdBy;
1706
1750
  const path_createdBy = path + '.createdBy';
1707
- const referencepath_createdByValidationError = validate$b(obj_createdBy, path_createdBy);
1751
+ const referencepath_createdByValidationError = validate$d(obj_createdBy, path_createdBy);
1708
1752
  if (referencepath_createdByValidationError !== null) {
1709
1753
  let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_createdBy + '")\n';
1710
1754
  message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -1723,10 +1767,12 @@ function validate$1(obj, path = 'DataCleanRoomTemplateRepresentation') {
1723
1767
  if (typeof obj_description !== 'string') {
1724
1768
  return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
1725
1769
  }
1726
- const obj_id = obj.id;
1727
- const path_id = path + '.id';
1728
- if (typeof obj_id !== 'string') {
1729
- return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
1770
+ if (obj.id !== undefined) {
1771
+ const obj_id = obj.id;
1772
+ const path_id = path + '.id';
1773
+ if (typeof obj_id !== 'string') {
1774
+ return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
1775
+ }
1730
1776
  }
1731
1777
  if (obj.label !== undefined) {
1732
1778
  const obj_label = obj.label;
@@ -1738,7 +1784,7 @@ function validate$1(obj, path = 'DataCleanRoomTemplateRepresentation') {
1738
1784
  if (obj.lastModifiedBy !== undefined) {
1739
1785
  const obj_lastModifiedBy = obj.lastModifiedBy;
1740
1786
  const path_lastModifiedBy = path + '.lastModifiedBy';
1741
- const referencepath_lastModifiedByValidationError = validate$b(obj_lastModifiedBy, path_lastModifiedBy);
1787
+ const referencepath_lastModifiedByValidationError = validate$d(obj_lastModifiedBy, path_lastModifiedBy);
1742
1788
  if (referencepath_lastModifiedByValidationError !== null) {
1743
1789
  let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_lastModifiedBy + '")\n';
1744
1790
  message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -1782,16 +1828,23 @@ function validate$1(obj, path = 'DataCleanRoomTemplateRepresentation') {
1782
1828
  return v_error === undefined ? null : v_error;
1783
1829
  }
1784
1830
 
1785
- const VERSION = "30341cb5fc17b6b6a436ef81c0f1def0";
1786
- function validate(obj, path = 'DataCleanRoomCollaborationRepresentation') {
1831
+ const VERSION$2 = "11bd9b71debcc363b339183bc8d65735";
1832
+ function validate$2(obj, path = 'DataCleanRoomCollaborationRepresentation') {
1787
1833
  const v_error = (() => {
1788
1834
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1789
1835
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
1790
1836
  }
1837
+ if (obj.apiKey !== undefined) {
1838
+ const obj_apiKey = obj.apiKey;
1839
+ const path_apiKey = path + '.apiKey';
1840
+ if (typeof obj_apiKey !== 'string') {
1841
+ return new TypeError('Expected "string" but received "' + typeof obj_apiKey + '" (at "' + path_apiKey + '")');
1842
+ }
1843
+ }
1791
1844
  if (obj.createdBy !== undefined) {
1792
1845
  const obj_createdBy = obj.createdBy;
1793
1846
  const path_createdBy = path + '.createdBy';
1794
- const referencepath_createdByValidationError = validate$b(obj_createdBy, path_createdBy);
1847
+ const referencepath_createdByValidationError = validate$d(obj_createdBy, path_createdBy);
1795
1848
  if (referencepath_createdByValidationError !== null) {
1796
1849
  let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_createdBy + '")\n';
1797
1850
  message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -1834,7 +1887,7 @@ function validate(obj, path = 'DataCleanRoomCollaborationRepresentation') {
1834
1887
  if (obj.lastModifiedBy !== undefined) {
1835
1888
  const obj_lastModifiedBy = obj.lastModifiedBy;
1836
1889
  const path_lastModifiedBy = path + '.lastModifiedBy';
1837
- const referencepath_lastModifiedByValidationError = validate$b(obj_lastModifiedBy, path_lastModifiedBy);
1890
+ const referencepath_lastModifiedByValidationError = validate$d(obj_lastModifiedBy, path_lastModifiedBy);
1838
1891
  if (referencepath_lastModifiedByValidationError !== null) {
1839
1892
  let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_lastModifiedBy + '")\n';
1840
1893
  message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -1856,7 +1909,7 @@ function validate(obj, path = 'DataCleanRoomCollaborationRepresentation') {
1856
1909
  for (let i = 0; i < obj_members.length; i++) {
1857
1910
  const obj_members_item = obj_members[i];
1858
1911
  const path_members_item = path_members + '[' + i + ']';
1859
- const referencepath_members_itemValidationError = validate$2(obj_members_item, path_members_item);
1912
+ const referencepath_members_itemValidationError = validate$4(obj_members_item, path_members_item);
1860
1913
  if (referencepath_members_itemValidationError !== null) {
1861
1914
  let message = 'Object doesn\'t match DataCleanRoomMemberRepresentation (at "' + path_members_item + '")\n';
1862
1915
  message += referencepath_members_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -1884,7 +1937,7 @@ function validate(obj, path = 'DataCleanRoomCollaborationRepresentation') {
1884
1937
  }
1885
1938
  const obj_templateVersion = obj.templateVersion;
1886
1939
  const path_templateVersion = path + '.templateVersion';
1887
- const referencepath_templateVersionValidationError = validate$1(obj_templateVersion, path_templateVersion);
1940
+ const referencepath_templateVersionValidationError = validate$3(obj_templateVersion, path_templateVersion);
1888
1941
  if (referencepath_templateVersionValidationError !== null) {
1889
1942
  let message = 'Object doesn\'t match DataCleanRoomTemplateRepresentation (at "' + path_templateVersion + '")\n';
1890
1943
  message += referencepath_templateVersionValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -1900,94 +1953,345 @@ function validate(obj, path = 'DataCleanRoomCollaborationRepresentation') {
1900
1953
  })();
1901
1954
  return v_error === undefined ? null : v_error;
1902
1955
  }
1903
- const RepresentationType = 'DataCleanRoomCollaborationRepresentation';
1904
- function keyBuilder(luvio, config) {
1905
- return keyPrefix + '::' + RepresentationType + ':' + config.id;
1956
+ const RepresentationType$2 = 'DataCleanRoomCollaborationRepresentation';
1957
+ function keyBuilder$4(luvio, config) {
1958
+ return keyPrefix + '::' + RepresentationType$2 + ':' + config.id;
1906
1959
  }
1907
1960
  function keyBuilderFromType(luvio, object) {
1908
1961
  const keyParams = {
1909
1962
  id: object.id
1910
1963
  };
1911
- return keyBuilder(luvio, keyParams);
1964
+ return keyBuilder$4(luvio, keyParams);
1912
1965
  }
1913
- function normalize(input, existing, path, luvio, store, timestamp) {
1966
+ function normalize$2(input, existing, path, luvio, store, timestamp) {
1914
1967
  return input;
1915
1968
  }
1916
- const select$1 = function DataCleanRoomCollaborationRepresentationSelect() {
1969
+ const select$7 = function DataCleanRoomCollaborationRepresentationSelect() {
1917
1970
  return {
1918
1971
  kind: 'Fragment',
1919
- version: VERSION,
1972
+ version: VERSION$2,
1920
1973
  private: [],
1921
1974
  opaque: true
1922
1975
  };
1923
1976
  };
1924
- function equals(existing, incoming) {
1977
+ function equals$2(existing, incoming) {
1925
1978
  if (JSONStringify(incoming) !== JSONStringify(existing)) {
1926
1979
  return false;
1927
1980
  }
1928
1981
  return true;
1929
1982
  }
1930
- const ingest = function DataCleanRoomCollaborationRepresentationIngest(input, path, luvio, store, timestamp) {
1983
+ const ingest$2 = function DataCleanRoomCollaborationRepresentationIngest(input, path, luvio, store, timestamp) {
1931
1984
  if (process.env.NODE_ENV !== 'production') {
1932
- const validateError = validate(input);
1985
+ const validateError = validate$2(input);
1933
1986
  if (validateError !== null) {
1934
1987
  throw validateError;
1935
1988
  }
1936
1989
  }
1937
1990
  const key = keyBuilderFromType(luvio, input);
1938
1991
  const ttlToUse = path.ttl !== undefined ? path.ttl : 60000;
1939
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize, "data-clean-room", VERSION, RepresentationType, equals);
1992
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$2, "data-clean-room", VERSION$2, RepresentationType$2, equals$2);
1940
1993
  return createLink(key);
1941
1994
  };
1942
- function getTypeCacheKeys(rootKeySet, luvio, input, fullPathFactory) {
1995
+ function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
1943
1996
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
1944
1997
  const rootKey = keyBuilderFromType(luvio, input);
1945
1998
  rootKeySet.set(rootKey, {
1946
1999
  namespace: keyPrefix,
1947
- representationName: RepresentationType,
2000
+ representationName: RepresentationType$2,
1948
2001
  mergeable: false
1949
2002
  });
1950
2003
  }
1951
2004
 
1952
- function select(luvio, params) {
1953
- return select$1();
1954
- }
1955
- function getResponseCacheKeys(storeKeyMap, luvio, resourceParams, response) {
1956
- getTypeCacheKeys(storeKeyMap, luvio, response);
1957
- }
1958
- function ingestSuccess(luvio, resourceParams, response) {
1959
- const { body } = response;
1960
- const key = keyBuilderFromType(luvio, body);
1961
- luvio.storeIngest(key, ingest, body);
1962
- const snapshot = luvio.storeLookup({
1963
- recordId: key,
1964
- node: select(),
1965
- variables: {},
1966
- });
1967
- if (process.env.NODE_ENV !== 'production') {
1968
- if (snapshot.state !== 'Fulfilled') {
1969
- throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
2005
+ const VERSION$1 = "9e5eddaaa3330278c7aa483af5dc8d74";
2006
+ function validate$1(obj, path = 'DataCleanRoomCollaborationCollectionRepresentation') {
2007
+ const v_error = (() => {
2008
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2009
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
1970
2010
  }
1971
- }
1972
- deepFreeze(snapshot.data);
1973
- return snapshot;
1974
- }
1975
- function createResourceRequest(config) {
1976
- const headers = {};
1977
- return {
1978
- baseUri: '/services/data/v63.0',
1979
- basePath: '/ssot/data-clean-room/collaborations',
1980
- method: 'post',
1981
- body: config.body,
1982
- urlParams: {},
1983
- queryParams: {},
1984
- headers,
1985
- priority: 'normal',
1986
- };
1987
- }
1988
-
1989
- const adapterName = 'createDataCleanRoomCollaboration';
1990
- const createDataCleanRoomCollaboration_ConfigPropertyMetadata = [
2011
+ const obj_collaborations = obj.collaborations;
2012
+ const path_collaborations = path + '.collaborations';
2013
+ if (!ArrayIsArray(obj_collaborations)) {
2014
+ return new TypeError('Expected "array" but received "' + typeof obj_collaborations + '" (at "' + path_collaborations + '")');
2015
+ }
2016
+ for (let i = 0; i < obj_collaborations.length; i++) {
2017
+ const obj_collaborations_item = obj_collaborations[i];
2018
+ const path_collaborations_item = path_collaborations + '[' + i + ']';
2019
+ const referencepath_collaborations_itemValidationError = validate$2(obj_collaborations_item, path_collaborations_item);
2020
+ if (referencepath_collaborations_itemValidationError !== null) {
2021
+ let message = 'Object doesn\'t match DataCleanRoomCollaborationRepresentation (at "' + path_collaborations_item + '")\n';
2022
+ message += referencepath_collaborations_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
2023
+ return new TypeError(message);
2024
+ }
2025
+ }
2026
+ if (obj.currentPageUrl !== undefined) {
2027
+ const obj_currentPageUrl = obj.currentPageUrl;
2028
+ const path_currentPageUrl = path + '.currentPageUrl';
2029
+ if (typeof obj_currentPageUrl !== 'string') {
2030
+ return new TypeError('Expected "string" but received "' + typeof obj_currentPageUrl + '" (at "' + path_currentPageUrl + '")');
2031
+ }
2032
+ }
2033
+ const obj_limit = obj.limit;
2034
+ const path_limit = path + '.limit';
2035
+ if (typeof obj_limit !== 'number' || (typeof obj_limit === 'number' && Math.floor(obj_limit) !== obj_limit)) {
2036
+ return new TypeError('Expected "integer" but received "' + typeof obj_limit + '" (at "' + path_limit + '")');
2037
+ }
2038
+ if (obj.nextPageUrl !== undefined) {
2039
+ const obj_nextPageUrl = obj.nextPageUrl;
2040
+ const path_nextPageUrl = path + '.nextPageUrl';
2041
+ let obj_nextPageUrl_union0 = null;
2042
+ const obj_nextPageUrl_union0_error = (() => {
2043
+ if (typeof obj_nextPageUrl !== 'string') {
2044
+ return new TypeError('Expected "string" but received "' + typeof obj_nextPageUrl + '" (at "' + path_nextPageUrl + '")');
2045
+ }
2046
+ })();
2047
+ if (obj_nextPageUrl_union0_error != null) {
2048
+ obj_nextPageUrl_union0 = obj_nextPageUrl_union0_error.message;
2049
+ }
2050
+ let obj_nextPageUrl_union1 = null;
2051
+ const obj_nextPageUrl_union1_error = (() => {
2052
+ if (obj_nextPageUrl !== null) {
2053
+ return new TypeError('Expected "null" but received "' + typeof obj_nextPageUrl + '" (at "' + path_nextPageUrl + '")');
2054
+ }
2055
+ })();
2056
+ if (obj_nextPageUrl_union1_error != null) {
2057
+ obj_nextPageUrl_union1 = obj_nextPageUrl_union1_error.message;
2058
+ }
2059
+ if (obj_nextPageUrl_union0 && obj_nextPageUrl_union1) {
2060
+ let message = 'Object doesn\'t match union (at "' + path_nextPageUrl + '")';
2061
+ message += '\n' + obj_nextPageUrl_union0.split('\n').map((line) => '\t' + line).join('\n');
2062
+ message += '\n' + obj_nextPageUrl_union1.split('\n').map((line) => '\t' + line).join('\n');
2063
+ return new TypeError(message);
2064
+ }
2065
+ }
2066
+ const obj_offset = obj.offset;
2067
+ const path_offset = path + '.offset';
2068
+ if (typeof obj_offset !== 'number' || (typeof obj_offset === 'number' && Math.floor(obj_offset) !== obj_offset)) {
2069
+ return new TypeError('Expected "integer" but received "' + typeof obj_offset + '" (at "' + path_offset + '")');
2070
+ }
2071
+ if (obj.totalSize !== undefined) {
2072
+ const obj_totalSize = obj.totalSize;
2073
+ const path_totalSize = path + '.totalSize';
2074
+ if (typeof obj_totalSize !== 'number' || (typeof obj_totalSize === 'number' && Math.floor(obj_totalSize) !== obj_totalSize)) {
2075
+ return new TypeError('Expected "integer" but received "' + typeof obj_totalSize + '" (at "' + path_totalSize + '")');
2076
+ }
2077
+ }
2078
+ })();
2079
+ return v_error === undefined ? null : v_error;
2080
+ }
2081
+ const RepresentationType$1 = 'DataCleanRoomCollaborationCollectionRepresentation';
2082
+ function normalize$1(input, existing, path, luvio, store, timestamp) {
2083
+ return input;
2084
+ }
2085
+ const select$6 = function DataCleanRoomCollaborationCollectionRepresentationSelect() {
2086
+ return {
2087
+ kind: 'Fragment',
2088
+ version: VERSION$1,
2089
+ private: [],
2090
+ opaque: true
2091
+ };
2092
+ };
2093
+ function equals$1(existing, incoming) {
2094
+ if (JSONStringify(incoming) !== JSONStringify(existing)) {
2095
+ return false;
2096
+ }
2097
+ return true;
2098
+ }
2099
+ const ingest$1 = function DataCleanRoomCollaborationCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
2100
+ if (process.env.NODE_ENV !== 'production') {
2101
+ const validateError = validate$1(input);
2102
+ if (validateError !== null) {
2103
+ throw validateError;
2104
+ }
2105
+ }
2106
+ const key = path.fullPath;
2107
+ const ttlToUse = path.ttl !== undefined ? path.ttl : 60000;
2108
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$1, "data-clean-room", VERSION$1, RepresentationType$1, equals$1);
2109
+ return createLink(key);
2110
+ };
2111
+ function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
2112
+ // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
2113
+ const rootKey = fullPathFactory();
2114
+ rootKeySet.set(rootKey, {
2115
+ namespace: keyPrefix,
2116
+ representationName: RepresentationType$1,
2117
+ mergeable: false
2118
+ });
2119
+ }
2120
+
2121
+ function select$5(luvio, params) {
2122
+ return select$6();
2123
+ }
2124
+ function keyBuilder$3(luvio, params) {
2125
+ return keyPrefix + '::DataCleanRoomCollaborationCollectionRepresentation:(' + 'filters:' + params.queryParams.filters + ',' + 'limit:' + params.queryParams.limit + ',' + 'offset:' + params.queryParams.offset + ',' + 'orderBy:' + params.queryParams.orderBy + ')';
2126
+ }
2127
+ function getResponseCacheKeys$4(storeKeyMap, luvio, resourceParams, response) {
2128
+ getTypeCacheKeys$1(storeKeyMap, luvio, response, () => keyBuilder$3(luvio, resourceParams));
2129
+ }
2130
+ function ingestSuccess$4(luvio, resourceParams, response, snapshotRefresh) {
2131
+ const { body } = response;
2132
+ const key = keyBuilder$3(luvio, resourceParams);
2133
+ luvio.storeIngest(key, ingest$1, body);
2134
+ const snapshot = luvio.storeLookup({
2135
+ recordId: key,
2136
+ node: select$5(),
2137
+ variables: {},
2138
+ }, snapshotRefresh);
2139
+ if (process.env.NODE_ENV !== 'production') {
2140
+ if (snapshot.state !== 'Fulfilled') {
2141
+ throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
2142
+ }
2143
+ }
2144
+ deepFreeze(snapshot.data);
2145
+ return snapshot;
2146
+ }
2147
+ function ingestError$1(luvio, params, error, snapshotRefresh) {
2148
+ const key = keyBuilder$3(luvio, params);
2149
+ const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
2150
+ luvio.storeIngestError(key, errorSnapshot);
2151
+ return errorSnapshot;
2152
+ }
2153
+ function createResourceRequest$4(config) {
2154
+ const headers = {};
2155
+ return {
2156
+ baseUri: '/services/data/v63.0',
2157
+ basePath: '/ssot/data-clean-room/collaborations',
2158
+ method: 'get',
2159
+ body: null,
2160
+ urlParams: {},
2161
+ queryParams: config.queryParams,
2162
+ headers,
2163
+ priority: 'normal',
2164
+ };
2165
+ }
2166
+
2167
+ const adapterName$4 = 'getAllDataCleanRoomsPaginated';
2168
+ const getAllDataCleanRoomsPaginated_ConfigPropertyMetadata = [
2169
+ generateParamConfigMetadata('filters', false, 1 /* QueryParameter */, 0 /* String */),
2170
+ generateParamConfigMetadata('limit', false, 1 /* QueryParameter */, 3 /* Integer */),
2171
+ generateParamConfigMetadata('offset', false, 1 /* QueryParameter */, 3 /* Integer */),
2172
+ generateParamConfigMetadata('orderBy', false, 1 /* QueryParameter */, 0 /* String */),
2173
+ ];
2174
+ const getAllDataCleanRoomsPaginated_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, getAllDataCleanRoomsPaginated_ConfigPropertyMetadata);
2175
+ const createResourceParams$4 = /*#__PURE__*/ createResourceParams$9(getAllDataCleanRoomsPaginated_ConfigPropertyMetadata);
2176
+ function keyBuilder$2(luvio, config) {
2177
+ const resourceParams = createResourceParams$4(config);
2178
+ return keyBuilder$3(luvio, resourceParams);
2179
+ }
2180
+ function typeCheckConfig$4(untrustedConfig) {
2181
+ const config = {};
2182
+ typeCheckConfig$9(untrustedConfig, config, getAllDataCleanRoomsPaginated_ConfigPropertyMetadata);
2183
+ return config;
2184
+ }
2185
+ function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
2186
+ if (!untrustedIsObject(untrustedConfig)) {
2187
+ return null;
2188
+ }
2189
+ if (process.env.NODE_ENV !== 'production') {
2190
+ validateConfig(untrustedConfig, configPropertyNames);
2191
+ }
2192
+ const config = typeCheckConfig$4(untrustedConfig);
2193
+ if (!areRequiredParametersPresent(config, configPropertyNames)) {
2194
+ return null;
2195
+ }
2196
+ return config;
2197
+ }
2198
+ function adapterFragment$1(luvio, config) {
2199
+ createResourceParams$4(config);
2200
+ return select$5();
2201
+ }
2202
+ function onFetchResponseSuccess$1(luvio, config, resourceParams, response) {
2203
+ const snapshot = ingestSuccess$4(luvio, resourceParams, response, {
2204
+ config,
2205
+ resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
2206
+ });
2207
+ return luvio.storeBroadcast().then(() => snapshot);
2208
+ }
2209
+ function onFetchResponseError$1(luvio, config, resourceParams, response) {
2210
+ const snapshot = ingestError$1(luvio, resourceParams, response, {
2211
+ config,
2212
+ resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
2213
+ });
2214
+ return luvio.storeBroadcast().then(() => snapshot);
2215
+ }
2216
+ function buildNetworkSnapshot$4(luvio, config, options) {
2217
+ const resourceParams = createResourceParams$4(config);
2218
+ const request = createResourceRequest$4(resourceParams);
2219
+ return luvio.dispatchResourceRequest(request, options)
2220
+ .then((response) => {
2221
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess$1(luvio, config, resourceParams, response), () => {
2222
+ const cache = new StoreKeyMap();
2223
+ getResponseCacheKeys$4(cache, luvio, resourceParams, response.body);
2224
+ return cache;
2225
+ });
2226
+ }, (response) => {
2227
+ return luvio.handleErrorResponse(() => onFetchResponseError$1(luvio, config, resourceParams, response));
2228
+ });
2229
+ }
2230
+ function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
2231
+ return buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext, buildNetworkSnapshot$4, undefined, false);
2232
+ }
2233
+ function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
2234
+ const { luvio, config } = context;
2235
+ const selector = {
2236
+ recordId: keyBuilder$2(luvio, config),
2237
+ node: adapterFragment$1(luvio, config),
2238
+ variables: {},
2239
+ };
2240
+ const cacheSnapshot = storeLookup(selector, {
2241
+ config,
2242
+ resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
2243
+ });
2244
+ return cacheSnapshot;
2245
+ }
2246
+ const getAllDataCleanRoomsPaginatedAdapterFactory = (luvio) => function dataCleanRoom__getAllDataCleanRoomsPaginated(untrustedConfig, requestContext) {
2247
+ const config = validateAdapterConfig$4(untrustedConfig, getAllDataCleanRoomsPaginated_ConfigPropertyNames);
2248
+ // Invalid or incomplete config
2249
+ if (config === null) {
2250
+ return null;
2251
+ }
2252
+ return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
2253
+ buildCachedSnapshotCachePolicy$1, buildNetworkSnapshotCachePolicy$1);
2254
+ };
2255
+
2256
+ function select$4(luvio, params) {
2257
+ return select$7();
2258
+ }
2259
+ function getResponseCacheKeys$3(storeKeyMap, luvio, resourceParams, response) {
2260
+ getTypeCacheKeys$2(storeKeyMap, luvio, response);
2261
+ }
2262
+ function ingestSuccess$3(luvio, resourceParams, response) {
2263
+ const { body } = response;
2264
+ const key = keyBuilderFromType(luvio, body);
2265
+ luvio.storeIngest(key, ingest$2, body);
2266
+ const snapshot = luvio.storeLookup({
2267
+ recordId: key,
2268
+ node: select$4(),
2269
+ variables: {},
2270
+ });
2271
+ if (process.env.NODE_ENV !== 'production') {
2272
+ if (snapshot.state !== 'Fulfilled') {
2273
+ throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
2274
+ }
2275
+ }
2276
+ deepFreeze(snapshot.data);
2277
+ return snapshot;
2278
+ }
2279
+ function createResourceRequest$3(config) {
2280
+ const headers = {};
2281
+ return {
2282
+ baseUri: '/services/data/v63.0',
2283
+ basePath: '/ssot/data-clean-room/collaborations',
2284
+ method: 'post',
2285
+ body: config.body,
2286
+ urlParams: {},
2287
+ queryParams: {},
2288
+ headers,
2289
+ priority: 'normal',
2290
+ };
2291
+ }
2292
+
2293
+ const adapterName$3 = 'createDataCleanRoomCollaboration';
2294
+ const createDataCleanRoomCollaboration_ConfigPropertyMetadata = [
1991
2295
  generateParamConfigMetadata('apiKey', false, 2 /* Body */, 0 /* String */),
1992
2296
  generateParamConfigMetadata('dataCloudOrgId', true, 2 /* Body */, 0 /* String */),
1993
2297
  generateParamConfigMetadata('dataSpaceName', false, 2 /* Body */, 0 /* String */),
@@ -1996,11 +2300,444 @@ const createDataCleanRoomCollaboration_ConfigPropertyMetadata = [
1996
2300
  generateParamConfigMetadata('templateName', true, 2 /* Body */, 0 /* String */),
1997
2301
  generateParamConfigMetadata('label', true, 2 /* Body */, 0 /* String */),
1998
2302
  ];
1999
- const createDataCleanRoomCollaboration_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, createDataCleanRoomCollaboration_ConfigPropertyMetadata);
2000
- const createResourceParams = /*#__PURE__*/ createResourceParams$5(createDataCleanRoomCollaboration_ConfigPropertyMetadata);
2303
+ const createDataCleanRoomCollaboration_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, createDataCleanRoomCollaboration_ConfigPropertyMetadata);
2304
+ const createResourceParams$3 = /*#__PURE__*/ createResourceParams$9(createDataCleanRoomCollaboration_ConfigPropertyMetadata);
2305
+ function typeCheckConfig$3(untrustedConfig) {
2306
+ const config = {};
2307
+ typeCheckConfig$9(untrustedConfig, config, createDataCleanRoomCollaboration_ConfigPropertyMetadata);
2308
+ return config;
2309
+ }
2310
+ function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
2311
+ if (!untrustedIsObject(untrustedConfig)) {
2312
+ return null;
2313
+ }
2314
+ if (process.env.NODE_ENV !== 'production') {
2315
+ validateConfig(untrustedConfig, configPropertyNames);
2316
+ }
2317
+ const config = typeCheckConfig$3(untrustedConfig);
2318
+ if (!areRequiredParametersPresent(config, configPropertyNames)) {
2319
+ return null;
2320
+ }
2321
+ return config;
2322
+ }
2323
+ function buildNetworkSnapshot$3(luvio, config, options) {
2324
+ const resourceParams = createResourceParams$3(config);
2325
+ const request = createResourceRequest$3(resourceParams);
2326
+ return luvio.dispatchResourceRequest(request, options)
2327
+ .then((response) => {
2328
+ return luvio.handleSuccessResponse(() => {
2329
+ const snapshot = ingestSuccess$3(luvio, resourceParams, response);
2330
+ return luvio.storeBroadcast().then(() => snapshot);
2331
+ }, () => {
2332
+ const cache = new StoreKeyMap();
2333
+ getResponseCacheKeys$3(cache, luvio, resourceParams, response.body);
2334
+ return cache;
2335
+ });
2336
+ }, (response) => {
2337
+ deepFreeze(response);
2338
+ throw response;
2339
+ });
2340
+ }
2341
+ const createDataCleanRoomCollaborationAdapterFactory = (luvio) => {
2342
+ return function createDataCleanRoomCollaboration(untrustedConfig) {
2343
+ const config = validateAdapterConfig$3(untrustedConfig, createDataCleanRoomCollaboration_ConfigPropertyNames);
2344
+ // Invalid or incomplete config
2345
+ if (config === null) {
2346
+ throw new Error('Invalid config for "createDataCleanRoomCollaboration"');
2347
+ }
2348
+ return buildNetworkSnapshot$3(luvio, config);
2349
+ };
2350
+ };
2351
+
2352
+ const VERSION = "779ba86cca8510319a6e95a736d88189";
2353
+ function validate(obj, path = 'DataCleanRoomTemplateCollectionRepresentation') {
2354
+ const v_error = (() => {
2355
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2356
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
2357
+ }
2358
+ if (obj.currentPageUrl !== undefined) {
2359
+ const obj_currentPageUrl = obj.currentPageUrl;
2360
+ const path_currentPageUrl = path + '.currentPageUrl';
2361
+ if (typeof obj_currentPageUrl !== 'string') {
2362
+ return new TypeError('Expected "string" but received "' + typeof obj_currentPageUrl + '" (at "' + path_currentPageUrl + '")');
2363
+ }
2364
+ }
2365
+ const obj_limit = obj.limit;
2366
+ const path_limit = path + '.limit';
2367
+ if (typeof obj_limit !== 'number' || (typeof obj_limit === 'number' && Math.floor(obj_limit) !== obj_limit)) {
2368
+ return new TypeError('Expected "integer" but received "' + typeof obj_limit + '" (at "' + path_limit + '")');
2369
+ }
2370
+ if (obj.nextPageUrl !== undefined) {
2371
+ const obj_nextPageUrl = obj.nextPageUrl;
2372
+ const path_nextPageUrl = path + '.nextPageUrl';
2373
+ let obj_nextPageUrl_union0 = null;
2374
+ const obj_nextPageUrl_union0_error = (() => {
2375
+ if (typeof obj_nextPageUrl !== 'string') {
2376
+ return new TypeError('Expected "string" but received "' + typeof obj_nextPageUrl + '" (at "' + path_nextPageUrl + '")');
2377
+ }
2378
+ })();
2379
+ if (obj_nextPageUrl_union0_error != null) {
2380
+ obj_nextPageUrl_union0 = obj_nextPageUrl_union0_error.message;
2381
+ }
2382
+ let obj_nextPageUrl_union1 = null;
2383
+ const obj_nextPageUrl_union1_error = (() => {
2384
+ if (obj_nextPageUrl !== null) {
2385
+ return new TypeError('Expected "null" but received "' + typeof obj_nextPageUrl + '" (at "' + path_nextPageUrl + '")');
2386
+ }
2387
+ })();
2388
+ if (obj_nextPageUrl_union1_error != null) {
2389
+ obj_nextPageUrl_union1 = obj_nextPageUrl_union1_error.message;
2390
+ }
2391
+ if (obj_nextPageUrl_union0 && obj_nextPageUrl_union1) {
2392
+ let message = 'Object doesn\'t match union (at "' + path_nextPageUrl + '")';
2393
+ message += '\n' + obj_nextPageUrl_union0.split('\n').map((line) => '\t' + line).join('\n');
2394
+ message += '\n' + obj_nextPageUrl_union1.split('\n').map((line) => '\t' + line).join('\n');
2395
+ return new TypeError(message);
2396
+ }
2397
+ }
2398
+ const obj_offset = obj.offset;
2399
+ const path_offset = path + '.offset';
2400
+ if (typeof obj_offset !== 'number' || (typeof obj_offset === 'number' && Math.floor(obj_offset) !== obj_offset)) {
2401
+ return new TypeError('Expected "integer" but received "' + typeof obj_offset + '" (at "' + path_offset + '")');
2402
+ }
2403
+ const obj_templates = obj.templates;
2404
+ const path_templates = path + '.templates';
2405
+ if (!ArrayIsArray(obj_templates)) {
2406
+ return new TypeError('Expected "array" but received "' + typeof obj_templates + '" (at "' + path_templates + '")');
2407
+ }
2408
+ for (let i = 0; i < obj_templates.length; i++) {
2409
+ const obj_templates_item = obj_templates[i];
2410
+ const path_templates_item = path_templates + '[' + i + ']';
2411
+ const referencepath_templates_itemValidationError = validate$3(obj_templates_item, path_templates_item);
2412
+ if (referencepath_templates_itemValidationError !== null) {
2413
+ let message = 'Object doesn\'t match DataCleanRoomTemplateRepresentation (at "' + path_templates_item + '")\n';
2414
+ message += referencepath_templates_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
2415
+ return new TypeError(message);
2416
+ }
2417
+ }
2418
+ if (obj.totalSize !== undefined) {
2419
+ const obj_totalSize = obj.totalSize;
2420
+ const path_totalSize = path + '.totalSize';
2421
+ if (typeof obj_totalSize !== 'number' || (typeof obj_totalSize === 'number' && Math.floor(obj_totalSize) !== obj_totalSize)) {
2422
+ return new TypeError('Expected "integer" but received "' + typeof obj_totalSize + '" (at "' + path_totalSize + '")');
2423
+ }
2424
+ }
2425
+ })();
2426
+ return v_error === undefined ? null : v_error;
2427
+ }
2428
+ const RepresentationType = 'DataCleanRoomTemplateCollectionRepresentation';
2429
+ function normalize(input, existing, path, luvio, store, timestamp) {
2430
+ return input;
2431
+ }
2432
+ const select$3 = function DataCleanRoomTemplateCollectionRepresentationSelect() {
2433
+ return {
2434
+ kind: 'Fragment',
2435
+ version: VERSION,
2436
+ private: [],
2437
+ opaque: true
2438
+ };
2439
+ };
2440
+ function equals(existing, incoming) {
2441
+ if (JSONStringify(incoming) !== JSONStringify(existing)) {
2442
+ return false;
2443
+ }
2444
+ return true;
2445
+ }
2446
+ const ingest = function DataCleanRoomTemplateCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
2447
+ if (process.env.NODE_ENV !== 'production') {
2448
+ const validateError = validate(input);
2449
+ if (validateError !== null) {
2450
+ throw validateError;
2451
+ }
2452
+ }
2453
+ const key = path.fullPath;
2454
+ const ttlToUse = path.ttl !== undefined ? path.ttl : 60000;
2455
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize, "data-clean-room", VERSION, RepresentationType, equals);
2456
+ return createLink(key);
2457
+ };
2458
+ function getTypeCacheKeys(rootKeySet, luvio, input, fullPathFactory) {
2459
+ // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
2460
+ const rootKey = fullPathFactory();
2461
+ rootKeySet.set(rootKey, {
2462
+ namespace: keyPrefix,
2463
+ representationName: RepresentationType,
2464
+ mergeable: false
2465
+ });
2466
+ }
2467
+
2468
+ function select$2(luvio, params) {
2469
+ return select$3();
2470
+ }
2471
+ function keyBuilder$1(luvio, params) {
2472
+ return keyPrefix + '::DataCleanRoomTemplateCollectionRepresentation:(' + 'limit:' + params.queryParams.limit + ',' + 'offset:' + params.queryParams.offset + ',' + 'orderBy:' + params.queryParams.orderBy + ')';
2473
+ }
2474
+ function getResponseCacheKeys$2(storeKeyMap, luvio, resourceParams, response) {
2475
+ getTypeCacheKeys(storeKeyMap, luvio, response, () => keyBuilder$1(luvio, resourceParams));
2476
+ }
2477
+ function ingestSuccess$2(luvio, resourceParams, response, snapshotRefresh) {
2478
+ const { body } = response;
2479
+ const key = keyBuilder$1(luvio, resourceParams);
2480
+ luvio.storeIngest(key, ingest, body);
2481
+ const snapshot = luvio.storeLookup({
2482
+ recordId: key,
2483
+ node: select$2(),
2484
+ variables: {},
2485
+ }, snapshotRefresh);
2486
+ if (process.env.NODE_ENV !== 'production') {
2487
+ if (snapshot.state !== 'Fulfilled') {
2488
+ throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
2489
+ }
2490
+ }
2491
+ deepFreeze(snapshot.data);
2492
+ return snapshot;
2493
+ }
2494
+ function ingestError(luvio, params, error, snapshotRefresh) {
2495
+ const key = keyBuilder$1(luvio, params);
2496
+ const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
2497
+ luvio.storeIngestError(key, errorSnapshot);
2498
+ return errorSnapshot;
2499
+ }
2500
+ function createResourceRequest$2(config) {
2501
+ const headers = {};
2502
+ return {
2503
+ baseUri: '/services/data/v63.0',
2504
+ basePath: '/ssot/data-clean-room/templates',
2505
+ method: 'get',
2506
+ body: null,
2507
+ urlParams: {},
2508
+ queryParams: config.queryParams,
2509
+ headers,
2510
+ priority: 'normal',
2511
+ };
2512
+ }
2513
+
2514
+ const adapterName$2 = 'getDataCleanRoomTemplatePaginated';
2515
+ const getDataCleanRoomTemplatePaginated_ConfigPropertyMetadata = [
2516
+ generateParamConfigMetadata('limit', false, 1 /* QueryParameter */, 3 /* Integer */),
2517
+ generateParamConfigMetadata('offset', false, 1 /* QueryParameter */, 3 /* Integer */),
2518
+ generateParamConfigMetadata('orderBy', false, 1 /* QueryParameter */, 0 /* String */),
2519
+ ];
2520
+ const getDataCleanRoomTemplatePaginated_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, getDataCleanRoomTemplatePaginated_ConfigPropertyMetadata);
2521
+ const createResourceParams$2 = /*#__PURE__*/ createResourceParams$9(getDataCleanRoomTemplatePaginated_ConfigPropertyMetadata);
2522
+ function keyBuilder(luvio, config) {
2523
+ const resourceParams = createResourceParams$2(config);
2524
+ return keyBuilder$1(luvio, resourceParams);
2525
+ }
2526
+ function typeCheckConfig$2(untrustedConfig) {
2527
+ const config = {};
2528
+ typeCheckConfig$9(untrustedConfig, config, getDataCleanRoomTemplatePaginated_ConfigPropertyMetadata);
2529
+ return config;
2530
+ }
2531
+ function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
2532
+ if (!untrustedIsObject(untrustedConfig)) {
2533
+ return null;
2534
+ }
2535
+ if (process.env.NODE_ENV !== 'production') {
2536
+ validateConfig(untrustedConfig, configPropertyNames);
2537
+ }
2538
+ const config = typeCheckConfig$2(untrustedConfig);
2539
+ if (!areRequiredParametersPresent(config, configPropertyNames)) {
2540
+ return null;
2541
+ }
2542
+ return config;
2543
+ }
2544
+ function adapterFragment(luvio, config) {
2545
+ createResourceParams$2(config);
2546
+ return select$2();
2547
+ }
2548
+ function onFetchResponseSuccess(luvio, config, resourceParams, response) {
2549
+ const snapshot = ingestSuccess$2(luvio, resourceParams, response, {
2550
+ config,
2551
+ resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
2552
+ });
2553
+ return luvio.storeBroadcast().then(() => snapshot);
2554
+ }
2555
+ function onFetchResponseError(luvio, config, resourceParams, response) {
2556
+ const snapshot = ingestError(luvio, resourceParams, response, {
2557
+ config,
2558
+ resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
2559
+ });
2560
+ return luvio.storeBroadcast().then(() => snapshot);
2561
+ }
2562
+ function buildNetworkSnapshot$2(luvio, config, options) {
2563
+ const resourceParams = createResourceParams$2(config);
2564
+ const request = createResourceRequest$2(resourceParams);
2565
+ return luvio.dispatchResourceRequest(request, options)
2566
+ .then((response) => {
2567
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess(luvio, config, resourceParams, response), () => {
2568
+ const cache = new StoreKeyMap();
2569
+ getResponseCacheKeys$2(cache, luvio, resourceParams, response.body);
2570
+ return cache;
2571
+ });
2572
+ }, (response) => {
2573
+ return luvio.handleErrorResponse(() => onFetchResponseError(luvio, config, resourceParams, response));
2574
+ });
2575
+ }
2576
+ function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
2577
+ return buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext, buildNetworkSnapshot$2, undefined, false);
2578
+ }
2579
+ function buildCachedSnapshotCachePolicy(context, storeLookup) {
2580
+ const { luvio, config } = context;
2581
+ const selector = {
2582
+ recordId: keyBuilder(luvio, config),
2583
+ node: adapterFragment(luvio, config),
2584
+ variables: {},
2585
+ };
2586
+ const cacheSnapshot = storeLookup(selector, {
2587
+ config,
2588
+ resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
2589
+ });
2590
+ return cacheSnapshot;
2591
+ }
2592
+ const getDataCleanRoomTemplatePaginatedAdapterFactory = (luvio) => function dataCleanRoom__getDataCleanRoomTemplatePaginated(untrustedConfig, requestContext) {
2593
+ const config = validateAdapterConfig$2(untrustedConfig, getDataCleanRoomTemplatePaginated_ConfigPropertyNames);
2594
+ // Invalid or incomplete config
2595
+ if (config === null) {
2596
+ return null;
2597
+ }
2598
+ return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
2599
+ buildCachedSnapshotCachePolicy, buildNetworkSnapshotCachePolicy);
2600
+ };
2601
+
2602
+ function select$1(luvio, params) {
2603
+ return select$8();
2604
+ }
2605
+ function getResponseCacheKeys$1(storeKeyMap, luvio, resourceParams, response) {
2606
+ getTypeCacheKeys$3(storeKeyMap, luvio, response);
2607
+ }
2608
+ function ingestSuccess$1(luvio, resourceParams, response) {
2609
+ const { body } = response;
2610
+ const key = keyBuilderFromType$1(luvio, body);
2611
+ luvio.storeIngest(key, ingest$3, body);
2612
+ const snapshot = luvio.storeLookup({
2613
+ recordId: key,
2614
+ node: select$1(),
2615
+ variables: {},
2616
+ });
2617
+ if (process.env.NODE_ENV !== 'production') {
2618
+ if (snapshot.state !== 'Fulfilled') {
2619
+ throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
2620
+ }
2621
+ }
2622
+ deepFreeze(snapshot.data);
2623
+ return snapshot;
2624
+ }
2625
+ function createResourceRequest$1(config) {
2626
+ const headers = {};
2627
+ return {
2628
+ baseUri: '/services/data/v63.0',
2629
+ basePath: '/ssot/data-clean-room/collaborations/' + config.urlParams.collaborationIdOrApiName + '/actions/accept-invitation',
2630
+ method: 'put',
2631
+ body: config.body,
2632
+ urlParams: config.urlParams,
2633
+ queryParams: {},
2634
+ headers,
2635
+ priority: 'normal',
2636
+ };
2637
+ }
2638
+
2639
+ const adapterName$1 = 'acceptDataCleanRoomInvitation';
2640
+ const acceptDataCleanRoomInvitation_ConfigPropertyMetadata = [
2641
+ generateParamConfigMetadata('collaborationIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
2642
+ generateParamConfigMetadata('invitationId', true, 2 /* Body */, 0 /* String */),
2643
+ generateParamConfigMetadata('specificationId', true, 2 /* Body */, 0 /* String */),
2644
+ ];
2645
+ const acceptDataCleanRoomInvitation_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, acceptDataCleanRoomInvitation_ConfigPropertyMetadata);
2646
+ const createResourceParams$1 = /*#__PURE__*/ createResourceParams$9(acceptDataCleanRoomInvitation_ConfigPropertyMetadata);
2647
+ function typeCheckConfig$1(untrustedConfig) {
2648
+ const config = {};
2649
+ typeCheckConfig$9(untrustedConfig, config, acceptDataCleanRoomInvitation_ConfigPropertyMetadata);
2650
+ return config;
2651
+ }
2652
+ function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
2653
+ if (!untrustedIsObject(untrustedConfig)) {
2654
+ return null;
2655
+ }
2656
+ if (process.env.NODE_ENV !== 'production') {
2657
+ validateConfig(untrustedConfig, configPropertyNames);
2658
+ }
2659
+ const config = typeCheckConfig$1(untrustedConfig);
2660
+ if (!areRequiredParametersPresent(config, configPropertyNames)) {
2661
+ return null;
2662
+ }
2663
+ return config;
2664
+ }
2665
+ function buildNetworkSnapshot$1(luvio, config, options) {
2666
+ const resourceParams = createResourceParams$1(config);
2667
+ const request = createResourceRequest$1(resourceParams);
2668
+ return luvio.dispatchResourceRequest(request, options)
2669
+ .then((response) => {
2670
+ return luvio.handleSuccessResponse(() => {
2671
+ const snapshot = ingestSuccess$1(luvio, resourceParams, response);
2672
+ return luvio.storeBroadcast().then(() => snapshot);
2673
+ }, () => {
2674
+ const cache = new StoreKeyMap();
2675
+ getResponseCacheKeys$1(cache, luvio, resourceParams, response.body);
2676
+ return cache;
2677
+ });
2678
+ }, (response) => {
2679
+ deepFreeze(response);
2680
+ throw response;
2681
+ });
2682
+ }
2683
+ const acceptDataCleanRoomInvitationAdapterFactory = (luvio) => {
2684
+ return function acceptDataCleanRoomInvitation(untrustedConfig) {
2685
+ const config = validateAdapterConfig$1(untrustedConfig, acceptDataCleanRoomInvitation_ConfigPropertyNames);
2686
+ // Invalid or incomplete config
2687
+ if (config === null) {
2688
+ throw new Error('Invalid config for "acceptDataCleanRoomInvitation"');
2689
+ }
2690
+ return buildNetworkSnapshot$1(luvio, config);
2691
+ };
2692
+ };
2693
+
2694
+ function select(luvio, params) {
2695
+ return select$8();
2696
+ }
2697
+ function getResponseCacheKeys(storeKeyMap, luvio, resourceParams, response) {
2698
+ getTypeCacheKeys$3(storeKeyMap, luvio, response);
2699
+ }
2700
+ function ingestSuccess(luvio, resourceParams, response) {
2701
+ const { body } = response;
2702
+ const key = keyBuilderFromType$1(luvio, body);
2703
+ luvio.storeIngest(key, ingest$3, body);
2704
+ const snapshot = luvio.storeLookup({
2705
+ recordId: key,
2706
+ node: select(),
2707
+ variables: {},
2708
+ });
2709
+ if (process.env.NODE_ENV !== 'production') {
2710
+ if (snapshot.state !== 'Fulfilled') {
2711
+ throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
2712
+ }
2713
+ }
2714
+ deepFreeze(snapshot.data);
2715
+ return snapshot;
2716
+ }
2717
+ function createResourceRequest(config) {
2718
+ const headers = {};
2719
+ return {
2720
+ baseUri: '/services/data/v63.0',
2721
+ basePath: '/ssot/data-clean-room/collaborations/' + config.urlParams.collaborationIdOrApiName + '/actions/reject-invitation',
2722
+ method: 'put',
2723
+ body: config.body,
2724
+ urlParams: config.urlParams,
2725
+ queryParams: {},
2726
+ headers,
2727
+ priority: 'normal',
2728
+ };
2729
+ }
2730
+
2731
+ const adapterName = 'rejectDataCleanRoomInvitation';
2732
+ const rejectDataCleanRoomInvitation_ConfigPropertyMetadata = [
2733
+ generateParamConfigMetadata('collaborationIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
2734
+ generateParamConfigMetadata('invitationId', true, 2 /* Body */, 0 /* String */),
2735
+ ];
2736
+ const rejectDataCleanRoomInvitation_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, rejectDataCleanRoomInvitation_ConfigPropertyMetadata);
2737
+ const createResourceParams = /*#__PURE__*/ createResourceParams$9(rejectDataCleanRoomInvitation_ConfigPropertyMetadata);
2001
2738
  function typeCheckConfig(untrustedConfig) {
2002
2739
  const config = {};
2003
- typeCheckConfig$5(untrustedConfig, config, createDataCleanRoomCollaboration_ConfigPropertyMetadata);
2740
+ typeCheckConfig$9(untrustedConfig, config, rejectDataCleanRoomInvitation_ConfigPropertyMetadata);
2004
2741
  return config;
2005
2742
  }
2006
2743
  function validateAdapterConfig(untrustedConfig, configPropertyNames) {
@@ -2034,15 +2771,15 @@ function buildNetworkSnapshot(luvio, config, options) {
2034
2771
  throw response;
2035
2772
  });
2036
2773
  }
2037
- const createDataCleanRoomCollaborationAdapterFactory = (luvio) => {
2038
- return function createDataCleanRoomCollaboration(untrustedConfig) {
2039
- const config = validateAdapterConfig(untrustedConfig, createDataCleanRoomCollaboration_ConfigPropertyNames);
2774
+ const rejectDataCleanRoomInvitationAdapterFactory = (luvio) => {
2775
+ return function rejectDataCleanRoomInvitation(untrustedConfig) {
2776
+ const config = validateAdapterConfig(untrustedConfig, rejectDataCleanRoomInvitation_ConfigPropertyNames);
2040
2777
  // Invalid or incomplete config
2041
2778
  if (config === null) {
2042
- throw new Error('Invalid config for "createDataCleanRoomCollaboration"');
2779
+ throw new Error('Invalid config for "rejectDataCleanRoomInvitation"');
2043
2780
  }
2044
2781
  return buildNetworkSnapshot(luvio, config);
2045
2782
  };
2046
2783
  };
2047
2784
 
2048
- export { createDataCleanRoomCollaborationAdapterFactory, createDataCleanRoomSpecificationAdapterFactory, createProviderAdapterFactory, getDataCleanRoomProvidersPaginatedAdapterFactory, getDataCleanRoomSpecificationsPaginatedAdapterFactory };
2785
+ export { acceptDataCleanRoomInvitationAdapterFactory, createDataCleanRoomCollaborationAdapterFactory, createDataCleanRoomSpecificationAdapterFactory, createProviderAdapterFactory, getAllDataCleanRoomsPaginatedAdapterFactory, getDataCleanRoomProvidersPaginatedAdapterFactory, getDataCleanRoomSpecificationsPaginatedAdapterFactory, getDataCleanRoomTemplatePaginatedAdapterFactory, rejectDataCleanRoomInvitationAdapterFactory };