@salesforce/lds-adapters-cdp-data-clean-room 1.354.0-dev2 → 1.354.0-dev21

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 (51) hide show
  1. package/dist/es/es2018/cdp-data-clean-room.js +2717 -116
  2. package/dist/es/es2018/types/src/generated/adapters/acceptDataCleanRoomInvitation.d.ts +17 -0
  3. package/dist/es/es2018/types/src/generated/adapters/createDataCleanRoomCollaboration.d.ts +22 -0
  4. package/dist/es/es2018/types/src/generated/adapters/createDataCleanRoomSpecification.d.ts +22 -0
  5. package/dist/es/es2018/types/src/generated/adapters/createProvider.d.ts +2 -0
  6. package/dist/es/es2018/types/src/generated/adapters/executeDataCleanRoomQuery.d.ts +17 -0
  7. package/dist/es/es2018/types/src/generated/adapters/getAllDataCleanRoomQueryPaginated.d.ts +31 -0
  8. package/dist/es/es2018/types/src/generated/adapters/getAllDataCleanRoomsPaginated.d.ts +30 -0
  9. package/dist/es/es2018/types/src/generated/adapters/getDataCleanRoomProvidersPaginated.d.ts +1 -1
  10. package/dist/es/es2018/types/src/generated/adapters/getDataCleanRoomSpecificationsPaginated.d.ts +30 -0
  11. package/dist/es/es2018/types/src/generated/adapters/getDataCleanRoomTemplatePaginated.d.ts +29 -0
  12. package/dist/es/es2018/types/src/generated/adapters/rejectDataCleanRoomInvitation.d.ts +16 -0
  13. package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +9 -0
  14. package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +14 -1
  15. package/dist/es/es2018/types/src/generated/resources/getSsotDataCleanRoomCollaborations.d.ts +18 -0
  16. package/dist/es/es2018/types/src/generated/resources/getSsotDataCleanRoomCollaborationsJobsByCollaborationIdOrApiName.d.ts +21 -0
  17. package/dist/es/es2018/types/src/generated/resources/getSsotDataCleanRoomProviders.d.ts +1 -1
  18. package/dist/es/es2018/types/src/generated/resources/getSsotDataCleanRoomSpecifications.d.ts +18 -0
  19. package/dist/es/es2018/types/src/generated/resources/getSsotDataCleanRoomTemplates.d.ts +17 -0
  20. package/dist/es/es2018/types/src/generated/resources/postSsotDataCleanRoomCollaborations.d.ts +19 -0
  21. package/dist/es/es2018/types/src/generated/resources/postSsotDataCleanRoomCollaborationsActionsRunByCollaborationIdOrApiName.d.ts +16 -0
  22. package/dist/es/es2018/types/src/generated/resources/postSsotDataCleanRoomProviders.d.ts +2 -0
  23. package/dist/es/es2018/types/src/generated/resources/postSsotDataCleanRoomSpecifications.d.ts +19 -0
  24. package/dist/es/es2018/types/src/generated/resources/putSsotDataCleanRoomCollaborationsActionsAcceptInvitationByCollaborationIdOrApiName.d.ts +16 -0
  25. package/dist/es/es2018/types/src/generated/resources/putSsotDataCleanRoomCollaborationsActionsRejectInvitationByCollaborationIdOrApiName.d.ts +15 -0
  26. package/dist/es/es2018/types/src/generated/types/CdpUserRepresentation.d.ts +3 -3
  27. package/dist/es/es2018/types/src/generated/types/DataCleanRoomAcceptInvitationInputRepresentation.d.ts +31 -0
  28. package/dist/es/es2018/types/src/generated/types/DataCleanRoomCollaborationCollectionRepresentation.d.ts +44 -0
  29. package/dist/es/es2018/types/src/generated/types/DataCleanRoomCollaborationInputRepresentation.d.ts +49 -0
  30. package/dist/es/es2018/types/src/generated/types/DataCleanRoomCollaborationRepresentation.d.ts +81 -0
  31. package/dist/es/es2018/types/src/generated/types/DataCleanRoomDataSpecificationInputRepresentation.d.ts +49 -0
  32. package/dist/es/es2018/types/src/generated/types/DataCleanRoomDataSpecificationRepresentation.d.ts +84 -0
  33. package/dist/es/es2018/types/src/generated/types/DataCleanRoomMemberRepresentation.d.ts +58 -0
  34. package/dist/es/es2018/types/src/generated/types/DataCleanRoomProviderInputRepresentation.d.ts +7 -1
  35. package/dist/es/es2018/types/src/generated/types/DataCleanRoomProviderRepresentation.d.ts +7 -1
  36. package/dist/es/es2018/types/src/generated/types/DataCleanRoomQueryJobHistoryCollectionRepresentation.d.ts +44 -0
  37. package/dist/es/es2018/types/src/generated/types/DataCleanRoomQueryJobInputRepresentation.d.ts +31 -0
  38. package/dist/es/es2018/types/src/generated/types/DataCleanRoomQueryJobRepresentation.d.ts +77 -0
  39. package/dist/es/es2018/types/src/generated/types/DataCleanRoomRejectInvitationInputRepresentation.d.ts +28 -0
  40. package/dist/es/es2018/types/src/generated/types/DataCleanRoomSpecificationCollectionRepresentation.d.ts +53 -0
  41. package/dist/es/es2018/types/src/generated/types/DataCleanRoomTemplateCollectionRepresentation.d.ts +44 -0
  42. package/dist/es/es2018/types/src/generated/types/DataCleanRoomTemplateRepresentation.d.ts +62 -0
  43. package/dist/es/es2018/types/src/generated/types/UseCaseTemplateMappingAttributeFilterOptionRepresentation.d.ts +31 -0
  44. package/dist/es/es2018/types/src/generated/types/UseCaseTemplateMappingAttributeRepresentation.d.ts +72 -0
  45. package/dist/es/es2018/types/src/generated/types/UseCaseTemplateMappingPathAttributeRepresentation.d.ts +31 -0
  46. package/dist/es/es2018/types/src/generated/types/UseCaseTemplateMappingRepresentation.d.ts +60 -0
  47. package/dist/es/es2018/types/src/generated/types/UseCaseTemplateMappingSubjectAttributeRepresentation.d.ts +37 -0
  48. package/package.json +3 -3
  49. package/sfdc/index.js +2930 -270
  50. package/src/raml/api.raml +808 -34
  51. package/src/raml/luvio.raml +66 -8
package/sfdc/index.js CHANGED
@@ -14,7 +14,7 @@
14
14
  /* proxy-compat-disable */
15
15
  import { createInstrumentedAdapter, createLDSAdapter, createWireAdapterConstructor, createImperativeAdapter } from 'force/ldsBindings';
16
16
  import { withDefaultLuvio } from 'force/ldsEngine';
17
- import { serializeStructuredKey, ingestShape, deepFreeze, StoreKeyMap, createResourceParams as createResourceParams$2, typeCheckConfig as typeCheckConfig$2, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$1 } from 'force/luvioEngine';
17
+ import { serializeStructuredKey, ingestShape, deepFreeze, StoreKeyMap, createResourceParams as createResourceParams$b, typeCheckConfig as typeCheckConfig$b, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$5 } from 'force/luvioEngine';
18
18
 
19
19
  const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
20
20
  const { keys: ObjectKeys, create: ObjectCreate } = Object;
@@ -102,15 +102,209 @@ function createLink(ref) {
102
102
  };
103
103
  }
104
104
 
105
- function validate$2(obj, path = 'CdpUserRepresentation') {
105
+ const VERSION$9 = "60e6b0a7bcb30c169435125696ac47b1";
106
+ function validate$g(obj, path = 'DataCleanRoomMemberRepresentation') {
106
107
  const v_error = (() => {
107
108
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
108
109
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
109
110
  }
110
- const obj_id = obj.id;
111
- const path_id = path + '.id';
112
- if (typeof obj_id !== 'string') {
113
- return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
111
+ const obj_invitationId = obj.invitationId;
112
+ const path_invitationId = path + '.invitationId';
113
+ if (typeof obj_invitationId !== 'string') {
114
+ return new TypeError('Expected "string" but received "' + typeof obj_invitationId + '" (at "' + path_invitationId + '")');
115
+ }
116
+ const obj_invitationStatus = obj.invitationStatus;
117
+ const path_invitationStatus = path + '.invitationStatus';
118
+ if (typeof obj_invitationStatus !== 'string') {
119
+ return new TypeError('Expected "string" but received "' + typeof obj_invitationStatus + '" (at "' + path_invitationStatus + '")');
120
+ }
121
+ const obj_memberId = obj.memberId;
122
+ const path_memberId = path + '.memberId';
123
+ if (typeof obj_memberId !== 'string') {
124
+ return new TypeError('Expected "string" but received "' + typeof obj_memberId + '" (at "' + path_memberId + '")');
125
+ }
126
+ const obj_memberOrgId = obj.memberOrgId;
127
+ const path_memberOrgId = path + '.memberOrgId';
128
+ if (typeof obj_memberOrgId !== 'string') {
129
+ return new TypeError('Expected "string" but received "' + typeof obj_memberOrgId + '" (at "' + path_memberOrgId + '")');
130
+ }
131
+ const obj_memberStatus = obj.memberStatus;
132
+ const path_memberStatus = path + '.memberStatus';
133
+ if (typeof obj_memberStatus !== 'string') {
134
+ return new TypeError('Expected "string" but received "' + typeof obj_memberStatus + '" (at "' + path_memberStatus + '")');
135
+ }
136
+ const obj_memberType = obj.memberType;
137
+ const path_memberType = path + '.memberType';
138
+ if (typeof obj_memberType !== 'string') {
139
+ return new TypeError('Expected "string" but received "' + typeof obj_memberType + '" (at "' + path_memberType + '")');
140
+ }
141
+ const obj_providerId = obj.providerId;
142
+ const path_providerId = path + '.providerId';
143
+ if (typeof obj_providerId !== 'string') {
144
+ return new TypeError('Expected "string" but received "' + typeof obj_providerId + '" (at "' + path_providerId + '")');
145
+ }
146
+ if (obj.specificationId !== undefined) {
147
+ const obj_specificationId = obj.specificationId;
148
+ const path_specificationId = path + '.specificationId';
149
+ if (typeof obj_specificationId !== 'string') {
150
+ return new TypeError('Expected "string" but received "' + typeof obj_specificationId + '" (at "' + path_specificationId + '")');
151
+ }
152
+ }
153
+ })();
154
+ return v_error === undefined ? null : v_error;
155
+ }
156
+ const RepresentationType$9 = 'DataCleanRoomMemberRepresentation';
157
+ function keyBuilder$e(luvio, config) {
158
+ return keyPrefix + '::' + RepresentationType$9 + ':' + config.invitationId;
159
+ }
160
+ function keyBuilderFromType$4(luvio, object) {
161
+ const keyParams = {
162
+ invitationId: object.invitationId
163
+ };
164
+ return keyBuilder$e(luvio, keyParams);
165
+ }
166
+ function normalize$9(input, existing, path, luvio, store, timestamp) {
167
+ return input;
168
+ }
169
+ const select$k = function DataCleanRoomMemberRepresentationSelect() {
170
+ return {
171
+ kind: 'Fragment',
172
+ version: VERSION$9,
173
+ private: [],
174
+ opaque: true
175
+ };
176
+ };
177
+ function equals$9(existing, incoming) {
178
+ if (JSONStringify(incoming) !== JSONStringify(existing)) {
179
+ return false;
180
+ }
181
+ return true;
182
+ }
183
+ const ingest$9 = function DataCleanRoomMemberRepresentationIngest(input, path, luvio, store, timestamp) {
184
+ if (process.env.NODE_ENV !== 'production') {
185
+ const validateError = validate$g(input);
186
+ if (validateError !== null) {
187
+ throw validateError;
188
+ }
189
+ }
190
+ const key = keyBuilderFromType$4(luvio, input);
191
+ const ttlToUse = path.ttl !== undefined ? path.ttl : 100;
192
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$9, "data-clean-room", VERSION$9, RepresentationType$9, equals$9);
193
+ return createLink(key);
194
+ };
195
+ function getTypeCacheKeys$9(rootKeySet, luvio, input, fullPathFactory) {
196
+ // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
197
+ const rootKey = keyBuilderFromType$4(luvio, input);
198
+ rootKeySet.set(rootKey, {
199
+ namespace: keyPrefix,
200
+ representationName: RepresentationType$9,
201
+ mergeable: false
202
+ });
203
+ }
204
+
205
+ function select$j(luvio, params) {
206
+ return select$k();
207
+ }
208
+ function getResponseCacheKeys$a(storeKeyMap, luvio, resourceParams, response) {
209
+ getTypeCacheKeys$9(storeKeyMap, luvio, response);
210
+ }
211
+ function ingestSuccess$a(luvio, resourceParams, response) {
212
+ const { body } = response;
213
+ const key = keyBuilderFromType$4(luvio, body);
214
+ luvio.storeIngest(key, ingest$9, body);
215
+ const snapshot = luvio.storeLookup({
216
+ recordId: key,
217
+ node: select$j(),
218
+ variables: {},
219
+ });
220
+ if (process.env.NODE_ENV !== 'production') {
221
+ if (snapshot.state !== 'Fulfilled') {
222
+ throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
223
+ }
224
+ }
225
+ deepFreeze(snapshot.data);
226
+ return snapshot;
227
+ }
228
+ function createResourceRequest$a(config) {
229
+ const headers = {};
230
+ return {
231
+ baseUri: '/services/data/v64.0',
232
+ basePath: '/ssot/data-clean-room/collaborations/' + config.urlParams.collaborationIdOrApiName + '/actions/accept-invitation',
233
+ method: 'put',
234
+ body: config.body,
235
+ urlParams: config.urlParams,
236
+ queryParams: {},
237
+ headers,
238
+ priority: 'normal',
239
+ };
240
+ }
241
+
242
+ const adapterName$a = 'acceptDataCleanRoomInvitation';
243
+ const acceptDataCleanRoomInvitation_ConfigPropertyMetadata = [
244
+ generateParamConfigMetadata('collaborationIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
245
+ generateParamConfigMetadata('invitationId', true, 2 /* Body */, 0 /* String */),
246
+ generateParamConfigMetadata('specificationId', true, 2 /* Body */, 0 /* String */),
247
+ ];
248
+ const acceptDataCleanRoomInvitation_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$a, acceptDataCleanRoomInvitation_ConfigPropertyMetadata);
249
+ const createResourceParams$a = /*#__PURE__*/ createResourceParams$b(acceptDataCleanRoomInvitation_ConfigPropertyMetadata);
250
+ function typeCheckConfig$a(untrustedConfig) {
251
+ const config = {};
252
+ typeCheckConfig$b(untrustedConfig, config, acceptDataCleanRoomInvitation_ConfigPropertyMetadata);
253
+ return config;
254
+ }
255
+ function validateAdapterConfig$a(untrustedConfig, configPropertyNames) {
256
+ if (!untrustedIsObject(untrustedConfig)) {
257
+ return null;
258
+ }
259
+ if (process.env.NODE_ENV !== 'production') {
260
+ validateConfig(untrustedConfig, configPropertyNames);
261
+ }
262
+ const config = typeCheckConfig$a(untrustedConfig);
263
+ if (!areRequiredParametersPresent(config, configPropertyNames)) {
264
+ return null;
265
+ }
266
+ return config;
267
+ }
268
+ function buildNetworkSnapshot$a(luvio, config, options) {
269
+ const resourceParams = createResourceParams$a(config);
270
+ const request = createResourceRequest$a(resourceParams);
271
+ return luvio.dispatchResourceRequest(request, options)
272
+ .then((response) => {
273
+ return luvio.handleSuccessResponse(() => {
274
+ const snapshot = ingestSuccess$a(luvio, resourceParams, response);
275
+ return luvio.storeBroadcast().then(() => snapshot);
276
+ }, () => {
277
+ const cache = new StoreKeyMap();
278
+ getResponseCacheKeys$a(cache, luvio, resourceParams, response.body);
279
+ return cache;
280
+ });
281
+ }, (response) => {
282
+ deepFreeze(response);
283
+ throw response;
284
+ });
285
+ }
286
+ const acceptDataCleanRoomInvitationAdapterFactory = (luvio) => {
287
+ return function acceptDataCleanRoomInvitation(untrustedConfig) {
288
+ const config = validateAdapterConfig$a(untrustedConfig, acceptDataCleanRoomInvitation_ConfigPropertyNames);
289
+ // Invalid or incomplete config
290
+ if (config === null) {
291
+ throw new Error('Invalid config for "acceptDataCleanRoomInvitation"');
292
+ }
293
+ return buildNetworkSnapshot$a(luvio, config);
294
+ };
295
+ };
296
+
297
+ function validate$f(obj, path = 'CdpUserRepresentation') {
298
+ const v_error = (() => {
299
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
300
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
301
+ }
302
+ if (obj.id !== undefined) {
303
+ const obj_id = obj.id;
304
+ const path_id = path + '.id';
305
+ if (typeof obj_id !== 'string') {
306
+ return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
307
+ }
114
308
  }
115
309
  if (obj.name !== undefined) {
116
310
  const obj_name = obj.name;
@@ -130,16 +324,20 @@ function validate$2(obj, path = 'CdpUserRepresentation') {
130
324
  return v_error === undefined ? null : v_error;
131
325
  }
132
326
 
133
- const VERSION$1 = "929b1bcf37fe62f914c2364146a0f5e6";
134
- function validate$1(obj, path = 'DataCleanRoomProviderRepresentation') {
327
+ function validate$e(obj, path = 'DataCleanRoomTemplateRepresentation') {
135
328
  const v_error = (() => {
136
329
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
137
330
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
138
331
  }
332
+ const obj_configuration = obj.configuration;
333
+ const path_configuration = path + '.configuration';
334
+ if (obj_configuration === undefined) {
335
+ return new TypeError('Expected "defined" but received "' + typeof obj_configuration + '" (at "' + path_configuration + '")');
336
+ }
139
337
  if (obj.createdBy !== undefined) {
140
338
  const obj_createdBy = obj.createdBy;
141
339
  const path_createdBy = path + '.createdBy';
142
- const referencepath_createdByValidationError = validate$2(obj_createdBy, path_createdBy);
340
+ const referencepath_createdByValidationError = validate$f(obj_createdBy, path_createdBy);
143
341
  if (referencepath_createdByValidationError !== null) {
144
342
  let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_createdBy + '")\n';
145
343
  message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -153,16 +351,116 @@ function validate$1(obj, path = 'DataCleanRoomProviderRepresentation') {
153
351
  return new TypeError('Expected "string" but received "' + typeof obj_createdDate + '" (at "' + path_createdDate + '")');
154
352
  }
155
353
  }
156
- const obj_dataCloudOrgId = obj.dataCloudOrgId;
157
- const path_dataCloudOrgId = path + '.dataCloudOrgId';
158
- if (typeof obj_dataCloudOrgId !== 'string') {
159
- return new TypeError('Expected "string" but received "' + typeof obj_dataCloudOrgId + '" (at "' + path_dataCloudOrgId + '")');
160
- }
161
354
  const obj_description = obj.description;
162
355
  const path_description = path + '.description';
163
356
  if (typeof obj_description !== 'string') {
164
357
  return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
165
358
  }
359
+ if (obj.id !== undefined) {
360
+ const obj_id = obj.id;
361
+ const path_id = path + '.id';
362
+ if (typeof obj_id !== 'string') {
363
+ return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
364
+ }
365
+ }
366
+ if (obj.label !== undefined) {
367
+ const obj_label = obj.label;
368
+ const path_label = path + '.label';
369
+ if (typeof obj_label !== 'string') {
370
+ return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
371
+ }
372
+ }
373
+ if (obj.lastModifiedBy !== undefined) {
374
+ const obj_lastModifiedBy = obj.lastModifiedBy;
375
+ const path_lastModifiedBy = path + '.lastModifiedBy';
376
+ const referencepath_lastModifiedByValidationError = validate$f(obj_lastModifiedBy, path_lastModifiedBy);
377
+ if (referencepath_lastModifiedByValidationError !== null) {
378
+ let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_lastModifiedBy + '")\n';
379
+ message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
380
+ return new TypeError(message);
381
+ }
382
+ }
383
+ if (obj.lastModifiedDate !== undefined) {
384
+ const obj_lastModifiedDate = obj.lastModifiedDate;
385
+ const path_lastModifiedDate = path + '.lastModifiedDate';
386
+ if (typeof obj_lastModifiedDate !== 'string') {
387
+ return new TypeError('Expected "string" but received "' + typeof obj_lastModifiedDate + '" (at "' + path_lastModifiedDate + '")');
388
+ }
389
+ }
390
+ if (obj.name !== undefined) {
391
+ const obj_name = obj.name;
392
+ const path_name = path + '.name';
393
+ if (typeof obj_name !== 'string') {
394
+ return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
395
+ }
396
+ }
397
+ if (obj.namespace !== undefined) {
398
+ const obj_namespace = obj.namespace;
399
+ const path_namespace = path + '.namespace';
400
+ if (typeof obj_namespace !== 'string') {
401
+ return new TypeError('Expected "string" but received "' + typeof obj_namespace + '" (at "' + path_namespace + '")');
402
+ }
403
+ }
404
+ const obj_queryTemplate = obj.queryTemplate;
405
+ const path_queryTemplate = path + '.queryTemplate';
406
+ if (obj_queryTemplate === undefined) {
407
+ return new TypeError('Expected "defined" but received "' + typeof obj_queryTemplate + '" (at "' + path_queryTemplate + '")');
408
+ }
409
+ if (obj.url !== undefined) {
410
+ const obj_url = obj.url;
411
+ const path_url = path + '.url';
412
+ if (typeof obj_url !== 'string') {
413
+ return new TypeError('Expected "string" but received "' + typeof obj_url + '" (at "' + path_url + '")');
414
+ }
415
+ }
416
+ })();
417
+ return v_error === undefined ? null : v_error;
418
+ }
419
+
420
+ const VERSION$8 = "11bd9b71debcc363b339183bc8d65735";
421
+ function validate$d(obj, path = 'DataCleanRoomCollaborationRepresentation') {
422
+ const v_error = (() => {
423
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
424
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
425
+ }
426
+ if (obj.apiKey !== undefined) {
427
+ const obj_apiKey = obj.apiKey;
428
+ const path_apiKey = path + '.apiKey';
429
+ if (typeof obj_apiKey !== 'string') {
430
+ return new TypeError('Expected "string" but received "' + typeof obj_apiKey + '" (at "' + path_apiKey + '")');
431
+ }
432
+ }
433
+ if (obj.createdBy !== undefined) {
434
+ const obj_createdBy = obj.createdBy;
435
+ const path_createdBy = path + '.createdBy';
436
+ const referencepath_createdByValidationError = validate$f(obj_createdBy, path_createdBy);
437
+ if (referencepath_createdByValidationError !== null) {
438
+ let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_createdBy + '")\n';
439
+ message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
440
+ return new TypeError(message);
441
+ }
442
+ }
443
+ if (obj.createdDate !== undefined) {
444
+ const obj_createdDate = obj.createdDate;
445
+ const path_createdDate = path + '.createdDate';
446
+ if (typeof obj_createdDate !== 'string') {
447
+ return new TypeError('Expected "string" but received "' + typeof obj_createdDate + '" (at "' + path_createdDate + '")');
448
+ }
449
+ }
450
+ if (obj.dataSpaceName !== undefined) {
451
+ const obj_dataSpaceName = obj.dataSpaceName;
452
+ const path_dataSpaceName = path + '.dataSpaceName';
453
+ if (typeof obj_dataSpaceName !== 'string') {
454
+ return new TypeError('Expected "string" but received "' + typeof obj_dataSpaceName + '" (at "' + path_dataSpaceName + '")');
455
+ }
456
+ }
457
+ if (obj.description !== undefined) {
458
+ const obj_description = obj.description;
459
+ const path_description = path + '.description';
460
+ if (typeof obj_description !== 'string') {
461
+ return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
462
+ }
463
+ }
166
464
  const obj_id = obj.id;
167
465
  const path_id = path + '.id';
168
466
  if (typeof obj_id !== 'string') {
@@ -178,7 +476,7 @@ function validate$1(obj, path = 'DataCleanRoomProviderRepresentation') {
178
476
  if (obj.lastModifiedBy !== undefined) {
179
477
  const obj_lastModifiedBy = obj.lastModifiedBy;
180
478
  const path_lastModifiedBy = path + '.lastModifiedBy';
181
- const referencepath_lastModifiedByValidationError = validate$2(obj_lastModifiedBy, path_lastModifiedBy);
479
+ const referencepath_lastModifiedByValidationError = validate$f(obj_lastModifiedBy, path_lastModifiedBy);
182
480
  if (referencepath_lastModifiedByValidationError !== null) {
183
481
  let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_lastModifiedBy + '")\n';
184
482
  message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -192,11 +490,19 @@ function validate$1(obj, path = 'DataCleanRoomProviderRepresentation') {
192
490
  return new TypeError('Expected "string" but received "' + typeof obj_lastModifiedDate + '" (at "' + path_lastModifiedDate + '")');
193
491
  }
194
492
  }
195
- if (obj.logoUrl !== undefined) {
196
- const obj_logoUrl = obj.logoUrl;
197
- const path_logoUrl = path + '.logoUrl';
198
- if (typeof obj_logoUrl !== 'string') {
199
- return new TypeError('Expected "string" but received "' + typeof obj_logoUrl + '" (at "' + path_logoUrl + '")');
493
+ const obj_members = obj.members;
494
+ const path_members = path + '.members';
495
+ if (!ArrayIsArray(obj_members)) {
496
+ return new TypeError('Expected "array" but received "' + typeof obj_members + '" (at "' + path_members + '")');
497
+ }
498
+ for (let i = 0; i < obj_members.length; i++) {
499
+ const obj_members_item = obj_members[i];
500
+ const path_members_item = path_members + '[' + i + ']';
501
+ const referencepath_members_itemValidationError = validate$g(obj_members_item, path_members_item);
502
+ if (referencepath_members_itemValidationError !== null) {
503
+ let message = 'Object doesn\'t match DataCleanRoomMemberRepresentation (at "' + path_members_item + '")\n';
504
+ message += referencepath_members_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
505
+ return new TypeError(message);
200
506
  }
201
507
  }
202
508
  if (obj.name !== undefined) {
@@ -213,17 +519,18 @@ function validate$1(obj, path = 'DataCleanRoomProviderRepresentation') {
213
519
  return new TypeError('Expected "string" but received "' + typeof obj_namespace + '" (at "' + path_namespace + '")');
214
520
  }
215
521
  }
216
- const obj_templateNames = obj.templateNames;
217
- const path_templateNames = path + '.templateNames';
218
- if (!ArrayIsArray(obj_templateNames)) {
219
- return new TypeError('Expected "array" but received "' + typeof obj_templateNames + '" (at "' + path_templateNames + '")');
522
+ const obj_status = obj.status;
523
+ const path_status = path + '.status';
524
+ if (typeof obj_status !== 'string') {
525
+ return new TypeError('Expected "string" but received "' + typeof obj_status + '" (at "' + path_status + '")');
220
526
  }
221
- for (let i = 0; i < obj_templateNames.length; i++) {
222
- const obj_templateNames_item = obj_templateNames[i];
223
- const path_templateNames_item = path_templateNames + '[' + i + ']';
224
- if (typeof obj_templateNames_item !== 'string') {
225
- return new TypeError('Expected "string" but received "' + typeof obj_templateNames_item + '" (at "' + path_templateNames_item + '")');
226
- }
527
+ const obj_templateVersion = obj.templateVersion;
528
+ const path_templateVersion = path + '.templateVersion';
529
+ const referencepath_templateVersionValidationError = validate$e(obj_templateVersion, path_templateVersion);
530
+ if (referencepath_templateVersionValidationError !== null) {
531
+ let message = 'Object doesn\'t match DataCleanRoomTemplateRepresentation (at "' + path_templateVersion + '")\n';
532
+ message += referencepath_templateVersionValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
533
+ return new TypeError(message);
227
534
  }
228
535
  if (obj.url !== undefined) {
229
536
  const obj_url = obj.url;
@@ -235,68 +542,68 @@ function validate$1(obj, path = 'DataCleanRoomProviderRepresentation') {
235
542
  })();
236
543
  return v_error === undefined ? null : v_error;
237
544
  }
238
- const RepresentationType$1 = 'DataCleanRoomProviderRepresentation';
239
- function keyBuilder$2(luvio, config) {
240
- return keyPrefix + '::' + RepresentationType$1 + ':' + config.id;
545
+ const RepresentationType$8 = 'DataCleanRoomCollaborationRepresentation';
546
+ function keyBuilder$d(luvio, config) {
547
+ return keyPrefix + '::' + RepresentationType$8 + ':' + config.id;
241
548
  }
242
- function keyBuilderFromType(luvio, object) {
549
+ function keyBuilderFromType$3(luvio, object) {
243
550
  const keyParams = {
244
551
  id: object.id
245
552
  };
246
- return keyBuilder$2(luvio, keyParams);
553
+ return keyBuilder$d(luvio, keyParams);
247
554
  }
248
- function normalize$1(input, existing, path, luvio, store, timestamp) {
555
+ function normalize$8(input, existing, path, luvio, store, timestamp) {
249
556
  return input;
250
557
  }
251
- const select$3 = function DataCleanRoomProviderRepresentationSelect() {
558
+ const select$i = function DataCleanRoomCollaborationRepresentationSelect() {
252
559
  return {
253
560
  kind: 'Fragment',
254
- version: VERSION$1,
561
+ version: VERSION$8,
255
562
  private: [],
256
563
  opaque: true
257
564
  };
258
565
  };
259
- function equals$1(existing, incoming) {
566
+ function equals$8(existing, incoming) {
260
567
  if (JSONStringify(incoming) !== JSONStringify(existing)) {
261
568
  return false;
262
569
  }
263
570
  return true;
264
571
  }
265
- const ingest$1 = function DataCleanRoomProviderRepresentationIngest(input, path, luvio, store, timestamp) {
572
+ const ingest$8 = function DataCleanRoomCollaborationRepresentationIngest(input, path, luvio, store, timestamp) {
266
573
  if (process.env.NODE_ENV !== 'production') {
267
- const validateError = validate$1(input);
574
+ const validateError = validate$d(input);
268
575
  if (validateError !== null) {
269
576
  throw validateError;
270
577
  }
271
578
  }
272
- const key = keyBuilderFromType(luvio, input);
273
- const ttlToUse = path.ttl !== undefined ? path.ttl : 60000;
274
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$1, "data-clean-room", VERSION$1, RepresentationType$1, equals$1);
579
+ const key = keyBuilderFromType$3(luvio, input);
580
+ const ttlToUse = path.ttl !== undefined ? path.ttl : 100;
581
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$8, "data-clean-room", VERSION$8, RepresentationType$8, equals$8);
275
582
  return createLink(key);
276
583
  };
277
- function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
584
+ function getTypeCacheKeys$8(rootKeySet, luvio, input, fullPathFactory) {
278
585
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
279
- const rootKey = keyBuilderFromType(luvio, input);
586
+ const rootKey = keyBuilderFromType$3(luvio, input);
280
587
  rootKeySet.set(rootKey, {
281
588
  namespace: keyPrefix,
282
- representationName: RepresentationType$1,
589
+ representationName: RepresentationType$8,
283
590
  mergeable: false
284
591
  });
285
592
  }
286
593
 
287
- function select$2(luvio, params) {
288
- return select$3();
594
+ function select$h(luvio, params) {
595
+ return select$i();
289
596
  }
290
- function getResponseCacheKeys$1(storeKeyMap, luvio, resourceParams, response) {
291
- getTypeCacheKeys$1(storeKeyMap, luvio, response);
597
+ function getResponseCacheKeys$9(storeKeyMap, luvio, resourceParams, response) {
598
+ getTypeCacheKeys$8(storeKeyMap, luvio, response);
292
599
  }
293
- function ingestSuccess$1(luvio, resourceParams, response) {
600
+ function ingestSuccess$9(luvio, resourceParams, response) {
294
601
  const { body } = response;
295
- const key = keyBuilderFromType(luvio, body);
296
- luvio.storeIngest(key, ingest$1, body);
602
+ const key = keyBuilderFromType$3(luvio, body);
603
+ luvio.storeIngest(key, ingest$8, body);
297
604
  const snapshot = luvio.storeLookup({
298
605
  recordId: key,
299
- node: select$2(),
606
+ node: select$h(),
300
607
  variables: {},
301
608
  });
302
609
  if (process.env.NODE_ENV !== 'production') {
@@ -307,11 +614,11 @@ function ingestSuccess$1(luvio, resourceParams, response) {
307
614
  deepFreeze(snapshot.data);
308
615
  return snapshot;
309
616
  }
310
- function createResourceRequest$1(config) {
617
+ function createResourceRequest$9(config) {
311
618
  const headers = {};
312
619
  return {
313
- baseUri: '/services/data/v63.0',
314
- basePath: '/ssot/data-clean-room/providers',
620
+ baseUri: '/services/data/v64.0',
621
+ basePath: '/ssot/data-clean-room/collaborations',
315
622
  method: 'post',
316
623
  body: config.body,
317
624
  urlParams: {},
@@ -321,47 +628,48 @@ function createResourceRequest$1(config) {
321
628
  };
322
629
  }
323
630
 
324
- const adapterName$1 = 'createProvider';
325
- const createProvider_ConfigPropertyMetadata = [
326
- generateParamConfigMetadata('label', true, 2 /* Body */, 0 /* String */),
327
- generateParamConfigMetadata('description', true, 2 /* Body */, 0 /* String */),
328
- generateParamConfigMetadata('templateNames', true, 2 /* Body */, 0 /* String */, true),
631
+ const adapterName$9 = 'createDataCleanRoomCollaboration';
632
+ const createDataCleanRoomCollaboration_ConfigPropertyMetadata = [
633
+ generateParamConfigMetadata('apiKey', false, 2 /* Body */, 0 /* String */),
329
634
  generateParamConfigMetadata('dataCloudOrgId', true, 2 /* Body */, 0 /* String */),
330
- generateParamConfigMetadata('dataspaceName', false, 2 /* Body */, 0 /* String */),
331
- generateParamConfigMetadata('name', false, 2 /* Body */, 0 /* String */),
332
- generateParamConfigMetadata('logoUrl', false, 2 /* Body */, 0 /* String */),
635
+ generateParamConfigMetadata('dataSpaceName', false, 2 /* Body */, 0 /* String */),
636
+ generateParamConfigMetadata('providerDevName', true, 2 /* Body */, 0 /* String */),
637
+ generateParamConfigMetadata('specificationDevName', true, 2 /* Body */, 0 /* String */),
638
+ generateParamConfigMetadata('templateName', true, 2 /* Body */, 0 /* String */),
639
+ generateParamConfigMetadata('label', true, 2 /* Body */, 0 /* String */),
640
+ generateParamConfigMetadata('description', false, 2 /* Body */, 0 /* String */),
333
641
  ];
334
- const createProvider_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, createProvider_ConfigPropertyMetadata);
335
- const createResourceParams$1 = /*#__PURE__*/ createResourceParams$2(createProvider_ConfigPropertyMetadata);
336
- function typeCheckConfig$1(untrustedConfig) {
642
+ const createDataCleanRoomCollaboration_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$9, createDataCleanRoomCollaboration_ConfigPropertyMetadata);
643
+ const createResourceParams$9 = /*#__PURE__*/ createResourceParams$b(createDataCleanRoomCollaboration_ConfigPropertyMetadata);
644
+ function typeCheckConfig$9(untrustedConfig) {
337
645
  const config = {};
338
- typeCheckConfig$2(untrustedConfig, config, createProvider_ConfigPropertyMetadata);
646
+ typeCheckConfig$b(untrustedConfig, config, createDataCleanRoomCollaboration_ConfigPropertyMetadata);
339
647
  return config;
340
648
  }
341
- function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
649
+ function validateAdapterConfig$9(untrustedConfig, configPropertyNames) {
342
650
  if (!untrustedIsObject(untrustedConfig)) {
343
651
  return null;
344
652
  }
345
653
  if (process.env.NODE_ENV !== 'production') {
346
654
  validateConfig(untrustedConfig, configPropertyNames);
347
655
  }
348
- const config = typeCheckConfig$1(untrustedConfig);
656
+ const config = typeCheckConfig$9(untrustedConfig);
349
657
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
350
658
  return null;
351
659
  }
352
660
  return config;
353
661
  }
354
- function buildNetworkSnapshot$1(luvio, config, options) {
355
- const resourceParams = createResourceParams$1(config);
356
- const request = createResourceRequest$1(resourceParams);
662
+ function buildNetworkSnapshot$9(luvio, config, options) {
663
+ const resourceParams = createResourceParams$9(config);
664
+ const request = createResourceRequest$9(resourceParams);
357
665
  return luvio.dispatchResourceRequest(request, options)
358
666
  .then((response) => {
359
667
  return luvio.handleSuccessResponse(() => {
360
- const snapshot = ingestSuccess$1(luvio, resourceParams, response);
668
+ const snapshot = ingestSuccess$9(luvio, resourceParams, response);
361
669
  return luvio.storeBroadcast().then(() => snapshot);
362
670
  }, () => {
363
671
  const cache = new StoreKeyMap();
364
- getResponseCacheKeys$1(cache, luvio, resourceParams, response.body);
672
+ getResponseCacheKeys$9(cache, luvio, resourceParams, response.body);
365
673
  return cache;
366
674
  });
367
675
  }, (response) => {
@@ -369,19 +677,2347 @@ function buildNetworkSnapshot$1(luvio, config, options) {
369
677
  throw response;
370
678
  });
371
679
  }
372
- const createProviderAdapterFactory = (luvio) => {
373
- return function createProvider(untrustedConfig) {
374
- const config = validateAdapterConfig$1(untrustedConfig, createProvider_ConfigPropertyNames);
680
+ const createDataCleanRoomCollaborationAdapterFactory = (luvio) => {
681
+ return function createDataCleanRoomCollaboration(untrustedConfig) {
682
+ const config = validateAdapterConfig$9(untrustedConfig, createDataCleanRoomCollaboration_ConfigPropertyNames);
375
683
  // Invalid or incomplete config
376
684
  if (config === null) {
377
- throw new Error('Invalid config for "createProvider"');
685
+ throw new Error('Invalid config for "createDataCleanRoomCollaboration"');
378
686
  }
379
- return buildNetworkSnapshot$1(luvio, config);
687
+ return buildNetworkSnapshot$9(luvio, config);
380
688
  };
381
689
  };
382
690
 
383
- const VERSION = "52237eeecd4f8f11ae22e265d9abe5ca";
384
- function validate(obj, path = 'DataCleanRoomProviderCollectionRepresentation') {
691
+ function validate$c(obj, path = 'UseCaseTemplateMappingAttributeFilterOptionRepresentation') {
692
+ const v_error = (() => {
693
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
694
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
695
+ }
696
+ const obj_operator = obj.operator;
697
+ const path_operator = path + '.operator';
698
+ if (typeof obj_operator !== 'string') {
699
+ return new TypeError('Expected "string" but received "' + typeof obj_operator + '" (at "' + path_operator + '")');
700
+ }
701
+ const obj_values = obj.values;
702
+ const path_values = path + '.values';
703
+ if (!ArrayIsArray(obj_values)) {
704
+ return new TypeError('Expected "array" but received "' + typeof obj_values + '" (at "' + path_values + '")');
705
+ }
706
+ for (let i = 0; i < obj_values.length; i++) {
707
+ const obj_values_item = obj_values[i];
708
+ const path_values_item = path_values + '[' + i + ']';
709
+ if (typeof obj_values_item !== 'string') {
710
+ return new TypeError('Expected "string" but received "' + typeof obj_values_item + '" (at "' + path_values_item + '")');
711
+ }
712
+ }
713
+ })();
714
+ return v_error === undefined ? null : v_error;
715
+ }
716
+
717
+ function validate$b(obj, path = 'UseCaseTemplateMappingPathAttributeRepresentation') {
718
+ const v_error = (() => {
719
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
720
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
721
+ }
722
+ const obj_sourceAttribute = obj.sourceAttribute;
723
+ const path_sourceAttribute = path + '.sourceAttribute';
724
+ if (obj_sourceAttribute === undefined) {
725
+ return new TypeError('Expected "defined" but received "' + typeof obj_sourceAttribute + '" (at "' + path_sourceAttribute + '")');
726
+ }
727
+ const obj_targetAttribute = obj.targetAttribute;
728
+ const path_targetAttribute = path + '.targetAttribute';
729
+ if (obj_targetAttribute === undefined) {
730
+ return new TypeError('Expected "defined" but received "' + typeof obj_targetAttribute + '" (at "' + path_targetAttribute + '")');
731
+ }
732
+ })();
733
+ return v_error === undefined ? null : v_error;
734
+ }
735
+
736
+ function validate$a(obj, path = 'UseCaseTemplateMappingSubjectAttributeRepresentation') {
737
+ const v_error = (() => {
738
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
739
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
740
+ }
741
+ const obj_fieldLabel = obj.fieldLabel;
742
+ const path_fieldLabel = path + '.fieldLabel';
743
+ if (typeof obj_fieldLabel !== 'string') {
744
+ return new TypeError('Expected "string" but received "' + typeof obj_fieldLabel + '" (at "' + path_fieldLabel + '")');
745
+ }
746
+ const obj_fieldName = obj.fieldName;
747
+ const path_fieldName = path + '.fieldName';
748
+ if (typeof obj_fieldName !== 'string') {
749
+ return new TypeError('Expected "string" but received "' + typeof obj_fieldName + '" (at "' + path_fieldName + '")');
750
+ }
751
+ const obj_objectLabel = obj.objectLabel;
752
+ const path_objectLabel = path + '.objectLabel';
753
+ if (typeof obj_objectLabel !== 'string') {
754
+ return new TypeError('Expected "string" but received "' + typeof obj_objectLabel + '" (at "' + path_objectLabel + '")');
755
+ }
756
+ const obj_objectName = obj.objectName;
757
+ const path_objectName = path + '.objectName';
758
+ if (typeof obj_objectName !== 'string') {
759
+ return new TypeError('Expected "string" but received "' + typeof obj_objectName + '" (at "' + path_objectName + '")');
760
+ }
761
+ })();
762
+ return v_error === undefined ? null : v_error;
763
+ }
764
+
765
+ function validate$9(obj, path = 'UseCaseTemplateMappingAttributeRepresentation') {
766
+ const v_error = (() => {
767
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
768
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
769
+ }
770
+ const obj_alias = obj.alias;
771
+ const path_alias = path + '.alias';
772
+ if (typeof obj_alias !== 'string') {
773
+ return new TypeError('Expected "string" but received "' + typeof obj_alias + '" (at "' + path_alias + '")');
774
+ }
775
+ if (obj.attributeId !== undefined) {
776
+ const obj_attributeId = obj.attributeId;
777
+ const path_attributeId = path + '.attributeId';
778
+ if (typeof obj_attributeId !== 'string') {
779
+ return new TypeError('Expected "string" but received "' + typeof obj_attributeId + '" (at "' + path_attributeId + '")');
780
+ }
781
+ }
782
+ if (obj.createdBy !== undefined) {
783
+ const obj_createdBy = obj.createdBy;
784
+ const path_createdBy = path + '.createdBy';
785
+ const referencepath_createdByValidationError = validate$f(obj_createdBy, path_createdBy);
786
+ if (referencepath_createdByValidationError !== null) {
787
+ let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_createdBy + '")\n';
788
+ message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
789
+ return new TypeError(message);
790
+ }
791
+ }
792
+ if (obj.createdDate !== undefined) {
793
+ const obj_createdDate = obj.createdDate;
794
+ const path_createdDate = path + '.createdDate';
795
+ if (typeof obj_createdDate !== 'string') {
796
+ return new TypeError('Expected "string" but received "' + typeof obj_createdDate + '" (at "' + path_createdDate + '")');
797
+ }
798
+ }
799
+ if (obj.dataMapping !== undefined) {
800
+ const obj_dataMapping = obj.dataMapping;
801
+ const path_dataMapping = path + '.dataMapping';
802
+ const referencepath_dataMappingValidationError = validate$8(obj_dataMapping, path_dataMapping);
803
+ if (referencepath_dataMappingValidationError !== null) {
804
+ let message = 'Object doesn\'t match UseCaseTemplateMappingRepresentation (at "' + path_dataMapping + '")\n';
805
+ message += referencepath_dataMappingValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
806
+ return new TypeError(message);
807
+ }
808
+ }
809
+ if (obj.filterOptions !== undefined) {
810
+ const obj_filterOptions = obj.filterOptions;
811
+ const path_filterOptions = path + '.filterOptions';
812
+ const referencepath_filterOptionsValidationError = validate$c(obj_filterOptions, path_filterOptions);
813
+ if (referencepath_filterOptionsValidationError !== null) {
814
+ let message = 'Object doesn\'t match UseCaseTemplateMappingAttributeFilterOptionRepresentation (at "' + path_filterOptions + '")\n';
815
+ message += referencepath_filterOptionsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
816
+ return new TypeError(message);
817
+ }
818
+ }
819
+ if (obj.id !== undefined) {
820
+ const obj_id = obj.id;
821
+ const path_id = path + '.id';
822
+ if (typeof obj_id !== 'string') {
823
+ return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
824
+ }
825
+ }
826
+ if (obj.label !== undefined) {
827
+ const obj_label = obj.label;
828
+ const path_label = path + '.label';
829
+ if (typeof obj_label !== 'string') {
830
+ return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
831
+ }
832
+ }
833
+ if (obj.lastModifiedBy !== undefined) {
834
+ const obj_lastModifiedBy = obj.lastModifiedBy;
835
+ const path_lastModifiedBy = path + '.lastModifiedBy';
836
+ const referencepath_lastModifiedByValidationError = validate$f(obj_lastModifiedBy, path_lastModifiedBy);
837
+ if (referencepath_lastModifiedByValidationError !== null) {
838
+ let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_lastModifiedBy + '")\n';
839
+ message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
840
+ return new TypeError(message);
841
+ }
842
+ }
843
+ if (obj.lastModifiedDate !== undefined) {
844
+ const obj_lastModifiedDate = obj.lastModifiedDate;
845
+ const path_lastModifiedDate = path + '.lastModifiedDate';
846
+ if (typeof obj_lastModifiedDate !== 'string') {
847
+ return new TypeError('Expected "string" but received "' + typeof obj_lastModifiedDate + '" (at "' + path_lastModifiedDate + '")');
848
+ }
849
+ }
850
+ if (obj.name !== undefined) {
851
+ const obj_name = obj.name;
852
+ const path_name = path + '.name';
853
+ if (typeof obj_name !== 'string') {
854
+ return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
855
+ }
856
+ }
857
+ if (obj.namespace !== undefined) {
858
+ const obj_namespace = obj.namespace;
859
+ const path_namespace = path + '.namespace';
860
+ if (typeof obj_namespace !== 'string') {
861
+ return new TypeError('Expected "string" but received "' + typeof obj_namespace + '" (at "' + path_namespace + '")');
862
+ }
863
+ }
864
+ const obj_path = obj.path;
865
+ const path_path = path + '.path';
866
+ if (!ArrayIsArray(obj_path)) {
867
+ return new TypeError('Expected "array" but received "' + typeof obj_path + '" (at "' + path_path + '")');
868
+ }
869
+ for (let i = 0; i < obj_path.length; i++) {
870
+ const obj_path_item = obj_path[i];
871
+ const path_path_item = path_path + '[' + i + ']';
872
+ const referencepath_path_itemValidationError = validate$b(obj_path_item, path_path_item);
873
+ if (referencepath_path_itemValidationError !== null) {
874
+ let message = 'Object doesn\'t match UseCaseTemplateMappingPathAttributeRepresentation (at "' + path_path_item + '")\n';
875
+ message += referencepath_path_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
876
+ return new TypeError(message);
877
+ }
878
+ }
879
+ const obj_subjectAttribute = obj.subjectAttribute;
880
+ const path_subjectAttribute = path + '.subjectAttribute';
881
+ const referencepath_subjectAttributeValidationError = validate$a(obj_subjectAttribute, path_subjectAttribute);
882
+ if (referencepath_subjectAttributeValidationError !== null) {
883
+ let message = 'Object doesn\'t match UseCaseTemplateMappingSubjectAttributeRepresentation (at "' + path_subjectAttribute + '")\n';
884
+ message += referencepath_subjectAttributeValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
885
+ return new TypeError(message);
886
+ }
887
+ if (obj.url !== undefined) {
888
+ const obj_url = obj.url;
889
+ const path_url = path + '.url';
890
+ if (typeof obj_url !== 'string') {
891
+ return new TypeError('Expected "string" but received "' + typeof obj_url + '" (at "' + path_url + '")');
892
+ }
893
+ }
894
+ })();
895
+ return v_error === undefined ? null : v_error;
896
+ }
897
+
898
+ function validate$8(obj, path = 'UseCaseTemplateMappingRepresentation') {
899
+ const v_error = (() => {
900
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
901
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
902
+ }
903
+ const obj_attributes = obj.attributes;
904
+ const path_attributes = path + '.attributes';
905
+ if (!ArrayIsArray(obj_attributes)) {
906
+ return new TypeError('Expected "array" but received "' + typeof obj_attributes + '" (at "' + path_attributes + '")');
907
+ }
908
+ for (let i = 0; i < obj_attributes.length; i++) {
909
+ const obj_attributes_item = obj_attributes[i];
910
+ const path_attributes_item = path_attributes + '[' + i + ']';
911
+ const referencepath_attributes_itemValidationError = validate$9(obj_attributes_item, path_attributes_item);
912
+ if (referencepath_attributes_itemValidationError !== null) {
913
+ let message = 'Object doesn\'t match UseCaseTemplateMappingAttributeRepresentation (at "' + path_attributes_item + '")\n';
914
+ message += referencepath_attributes_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
915
+ return new TypeError(message);
916
+ }
917
+ }
918
+ const obj_collaborationEntity = obj.collaborationEntity;
919
+ const path_collaborationEntity = path + '.collaborationEntity';
920
+ if (typeof obj_collaborationEntity !== 'string') {
921
+ return new TypeError('Expected "string" but received "' + typeof obj_collaborationEntity + '" (at "' + path_collaborationEntity + '")');
922
+ }
923
+ if (obj.createdBy !== undefined) {
924
+ const obj_createdBy = obj.createdBy;
925
+ const path_createdBy = path + '.createdBy';
926
+ const referencepath_createdByValidationError = validate$f(obj_createdBy, path_createdBy);
927
+ if (referencepath_createdByValidationError !== null) {
928
+ let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_createdBy + '")\n';
929
+ message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
930
+ return new TypeError(message);
931
+ }
932
+ }
933
+ if (obj.createdDate !== undefined) {
934
+ const obj_createdDate = obj.createdDate;
935
+ const path_createdDate = path + '.createdDate';
936
+ if (typeof obj_createdDate !== 'string') {
937
+ return new TypeError('Expected "string" but received "' + typeof obj_createdDate + '" (at "' + path_createdDate + '")');
938
+ }
939
+ }
940
+ if (obj.id !== undefined) {
941
+ const obj_id = obj.id;
942
+ const path_id = path + '.id';
943
+ if (typeof obj_id !== 'string') {
944
+ return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
945
+ }
946
+ }
947
+ if (obj.label !== undefined) {
948
+ const obj_label = obj.label;
949
+ const path_label = path + '.label';
950
+ if (typeof obj_label !== 'string') {
951
+ return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
952
+ }
953
+ }
954
+ if (obj.lastModifiedBy !== undefined) {
955
+ const obj_lastModifiedBy = obj.lastModifiedBy;
956
+ const path_lastModifiedBy = path + '.lastModifiedBy';
957
+ const referencepath_lastModifiedByValidationError = validate$f(obj_lastModifiedBy, path_lastModifiedBy);
958
+ if (referencepath_lastModifiedByValidationError !== null) {
959
+ let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_lastModifiedBy + '")\n';
960
+ message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
961
+ return new TypeError(message);
962
+ }
963
+ }
964
+ if (obj.lastModifiedDate !== undefined) {
965
+ const obj_lastModifiedDate = obj.lastModifiedDate;
966
+ const path_lastModifiedDate = path + '.lastModifiedDate';
967
+ if (typeof obj_lastModifiedDate !== 'string') {
968
+ return new TypeError('Expected "string" but received "' + typeof obj_lastModifiedDate + '" (at "' + path_lastModifiedDate + '")');
969
+ }
970
+ }
971
+ if (obj.name !== undefined) {
972
+ const obj_name = obj.name;
973
+ const path_name = path + '.name';
974
+ if (typeof obj_name !== 'string') {
975
+ return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
976
+ }
977
+ }
978
+ if (obj.namespace !== undefined) {
979
+ const obj_namespace = obj.namespace;
980
+ const path_namespace = path + '.namespace';
981
+ if (typeof obj_namespace !== 'string') {
982
+ return new TypeError('Expected "string" but received "' + typeof obj_namespace + '" (at "' + path_namespace + '")');
983
+ }
984
+ }
985
+ if (obj.url !== undefined) {
986
+ const obj_url = obj.url;
987
+ const path_url = path + '.url';
988
+ if (typeof obj_url !== 'string') {
989
+ return new TypeError('Expected "string" but received "' + typeof obj_url + '" (at "' + path_url + '")');
990
+ }
991
+ }
992
+ })();
993
+ return v_error === undefined ? null : v_error;
994
+ }
995
+
996
+ const VERSION$7 = "13758c356b17ead7d461ca3579ee1dcf";
997
+ function validate$7(obj, path = 'DataCleanRoomDataSpecificationRepresentation') {
998
+ const v_error = (() => {
999
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1000
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
1001
+ }
1002
+ if (obj.createdBy !== undefined) {
1003
+ const obj_createdBy = obj.createdBy;
1004
+ const path_createdBy = path + '.createdBy';
1005
+ const referencepath_createdByValidationError = validate$f(obj_createdBy, path_createdBy);
1006
+ if (referencepath_createdByValidationError !== null) {
1007
+ let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_createdBy + '")\n';
1008
+ message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1009
+ return new TypeError(message);
1010
+ }
1011
+ }
1012
+ if (obj.createdDate !== undefined) {
1013
+ const obj_createdDate = obj.createdDate;
1014
+ const path_createdDate = path + '.createdDate';
1015
+ if (typeof obj_createdDate !== 'string') {
1016
+ return new TypeError('Expected "string" but received "' + typeof obj_createdDate + '" (at "' + path_createdDate + '")');
1017
+ }
1018
+ }
1019
+ const obj_dataMapping = obj.dataMapping;
1020
+ const path_dataMapping = path + '.dataMapping';
1021
+ const referencepath_dataMappingValidationError = validate$8(obj_dataMapping, path_dataMapping);
1022
+ if (referencepath_dataMappingValidationError !== null) {
1023
+ let message = 'Object doesn\'t match UseCaseTemplateMappingRepresentation (at "' + path_dataMapping + '")\n';
1024
+ message += referencepath_dataMappingValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1025
+ return new TypeError(message);
1026
+ }
1027
+ const obj_dataSpaceName = obj.dataSpaceName;
1028
+ const path_dataSpaceName = path + '.dataSpaceName';
1029
+ if (typeof obj_dataSpaceName !== 'string') {
1030
+ return new TypeError('Expected "string" but received "' + typeof obj_dataSpaceName + '" (at "' + path_dataSpaceName + '")');
1031
+ }
1032
+ if (obj.description !== undefined) {
1033
+ const obj_description = obj.description;
1034
+ const path_description = path + '.description';
1035
+ if (typeof obj_description !== 'string') {
1036
+ return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
1037
+ }
1038
+ }
1039
+ const obj_id = obj.id;
1040
+ const path_id = path + '.id';
1041
+ if (typeof obj_id !== 'string') {
1042
+ return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
1043
+ }
1044
+ if (obj.label !== undefined) {
1045
+ const obj_label = obj.label;
1046
+ const path_label = path + '.label';
1047
+ if (typeof obj_label !== 'string') {
1048
+ return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
1049
+ }
1050
+ }
1051
+ if (obj.lastModifiedBy !== undefined) {
1052
+ const obj_lastModifiedBy = obj.lastModifiedBy;
1053
+ const path_lastModifiedBy = path + '.lastModifiedBy';
1054
+ const referencepath_lastModifiedByValidationError = validate$f(obj_lastModifiedBy, path_lastModifiedBy);
1055
+ if (referencepath_lastModifiedByValidationError !== null) {
1056
+ let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_lastModifiedBy + '")\n';
1057
+ message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1058
+ return new TypeError(message);
1059
+ }
1060
+ }
1061
+ if (obj.lastModifiedDate !== undefined) {
1062
+ const obj_lastModifiedDate = obj.lastModifiedDate;
1063
+ const path_lastModifiedDate = path + '.lastModifiedDate';
1064
+ if (typeof obj_lastModifiedDate !== 'string') {
1065
+ return new TypeError('Expected "string" but received "' + typeof obj_lastModifiedDate + '" (at "' + path_lastModifiedDate + '")');
1066
+ }
1067
+ }
1068
+ const obj_memberType = obj.memberType;
1069
+ const path_memberType = path + '.memberType';
1070
+ if (typeof obj_memberType !== 'string') {
1071
+ return new TypeError('Expected "string" but received "' + typeof obj_memberType + '" (at "' + path_memberType + '")');
1072
+ }
1073
+ if (obj.name !== undefined) {
1074
+ const obj_name = obj.name;
1075
+ const path_name = path + '.name';
1076
+ if (typeof obj_name !== 'string') {
1077
+ return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
1078
+ }
1079
+ }
1080
+ if (obj.namespace !== undefined) {
1081
+ const obj_namespace = obj.namespace;
1082
+ const path_namespace = path + '.namespace';
1083
+ if (typeof obj_namespace !== 'string') {
1084
+ return new TypeError('Expected "string" but received "' + typeof obj_namespace + '" (at "' + path_namespace + '")');
1085
+ }
1086
+ }
1087
+ if (obj.ownerOrgId !== undefined) {
1088
+ const obj_ownerOrgId = obj.ownerOrgId;
1089
+ const path_ownerOrgId = path + '.ownerOrgId';
1090
+ if (typeof obj_ownerOrgId !== 'string') {
1091
+ return new TypeError('Expected "string" but received "' + typeof obj_ownerOrgId + '" (at "' + path_ownerOrgId + '")');
1092
+ }
1093
+ }
1094
+ const obj_status = obj.status;
1095
+ const path_status = path + '.status';
1096
+ if (typeof obj_status !== 'string') {
1097
+ return new TypeError('Expected "string" but received "' + typeof obj_status + '" (at "' + path_status + '")');
1098
+ }
1099
+ if (obj.templateVersion !== undefined) {
1100
+ const obj_templateVersion = obj.templateVersion;
1101
+ const path_templateVersion = path + '.templateVersion';
1102
+ const referencepath_templateVersionValidationError = validate$e(obj_templateVersion, path_templateVersion);
1103
+ if (referencepath_templateVersionValidationError !== null) {
1104
+ let message = 'Object doesn\'t match DataCleanRoomTemplateRepresentation (at "' + path_templateVersion + '")\n';
1105
+ message += referencepath_templateVersionValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1106
+ return new TypeError(message);
1107
+ }
1108
+ }
1109
+ if (obj.url !== undefined) {
1110
+ const obj_url = obj.url;
1111
+ const path_url = path + '.url';
1112
+ if (typeof obj_url !== 'string') {
1113
+ return new TypeError('Expected "string" but received "' + typeof obj_url + '" (at "' + path_url + '")');
1114
+ }
1115
+ }
1116
+ })();
1117
+ return v_error === undefined ? null : v_error;
1118
+ }
1119
+ const RepresentationType$7 = 'DataCleanRoomDataSpecificationRepresentation';
1120
+ function keyBuilder$c(luvio, config) {
1121
+ return keyPrefix + '::' + RepresentationType$7 + ':' + config.id;
1122
+ }
1123
+ function keyBuilderFromType$2(luvio, object) {
1124
+ const keyParams = {
1125
+ id: object.id
1126
+ };
1127
+ return keyBuilder$c(luvio, keyParams);
1128
+ }
1129
+ function normalize$7(input, existing, path, luvio, store, timestamp) {
1130
+ return input;
1131
+ }
1132
+ const select$g = function DataCleanRoomDataSpecificationRepresentationSelect() {
1133
+ return {
1134
+ kind: 'Fragment',
1135
+ version: VERSION$7,
1136
+ private: [],
1137
+ opaque: true
1138
+ };
1139
+ };
1140
+ function equals$7(existing, incoming) {
1141
+ if (JSONStringify(incoming) !== JSONStringify(existing)) {
1142
+ return false;
1143
+ }
1144
+ return true;
1145
+ }
1146
+ const ingest$7 = function DataCleanRoomDataSpecificationRepresentationIngest(input, path, luvio, store, timestamp) {
1147
+ if (process.env.NODE_ENV !== 'production') {
1148
+ const validateError = validate$7(input);
1149
+ if (validateError !== null) {
1150
+ throw validateError;
1151
+ }
1152
+ }
1153
+ const key = keyBuilderFromType$2(luvio, input);
1154
+ const ttlToUse = path.ttl !== undefined ? path.ttl : 100;
1155
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$7, "data-clean-room", VERSION$7, RepresentationType$7, equals$7);
1156
+ return createLink(key);
1157
+ };
1158
+ function getTypeCacheKeys$7(rootKeySet, luvio, input, fullPathFactory) {
1159
+ // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
1160
+ const rootKey = keyBuilderFromType$2(luvio, input);
1161
+ rootKeySet.set(rootKey, {
1162
+ namespace: keyPrefix,
1163
+ representationName: RepresentationType$7,
1164
+ mergeable: false
1165
+ });
1166
+ }
1167
+
1168
+ function select$f(luvio, params) {
1169
+ return select$g();
1170
+ }
1171
+ function getResponseCacheKeys$8(storeKeyMap, luvio, resourceParams, response) {
1172
+ getTypeCacheKeys$7(storeKeyMap, luvio, response);
1173
+ }
1174
+ function ingestSuccess$8(luvio, resourceParams, response) {
1175
+ const { body } = response;
1176
+ const key = keyBuilderFromType$2(luvio, body);
1177
+ luvio.storeIngest(key, ingest$7, body);
1178
+ const snapshot = luvio.storeLookup({
1179
+ recordId: key,
1180
+ node: select$f(),
1181
+ variables: {},
1182
+ });
1183
+ if (process.env.NODE_ENV !== 'production') {
1184
+ if (snapshot.state !== 'Fulfilled') {
1185
+ throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
1186
+ }
1187
+ }
1188
+ deepFreeze(snapshot.data);
1189
+ return snapshot;
1190
+ }
1191
+ function createResourceRequest$8(config) {
1192
+ const headers = {};
1193
+ return {
1194
+ baseUri: '/services/data/v64.0',
1195
+ basePath: '/ssot/data-clean-room/specifications',
1196
+ method: 'post',
1197
+ body: config.body,
1198
+ urlParams: {},
1199
+ queryParams: {},
1200
+ headers,
1201
+ priority: 'normal',
1202
+ };
1203
+ }
1204
+
1205
+ const adapterName$8 = 'createDataCleanRoomSpecification';
1206
+ const createDataCleanRoomSpecification_ConfigPropertyMetadata = [
1207
+ generateParamConfigMetadata('dataMapping', true, 2 /* Body */, 4 /* Unsupported */),
1208
+ generateParamConfigMetadata('memberType', true, 2 /* Body */, 0 /* String */),
1209
+ generateParamConfigMetadata('ownerOrgId', true, 2 /* Body */, 0 /* String */),
1210
+ generateParamConfigMetadata('templateName', true, 2 /* Body */, 0 /* String */),
1211
+ generateParamConfigMetadata('name', false, 2 /* Body */, 0 /* String */),
1212
+ generateParamConfigMetadata('label', true, 2 /* Body */, 0 /* String */),
1213
+ generateParamConfigMetadata('description', false, 2 /* Body */, 0 /* String */),
1214
+ generateParamConfigMetadata('dataspaceName', false, 2 /* Body */, 0 /* String */),
1215
+ ];
1216
+ const createDataCleanRoomSpecification_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$8, createDataCleanRoomSpecification_ConfigPropertyMetadata);
1217
+ const createResourceParams$8 = /*#__PURE__*/ createResourceParams$b(createDataCleanRoomSpecification_ConfigPropertyMetadata);
1218
+ function typeCheckConfig$8(untrustedConfig) {
1219
+ const config = {};
1220
+ typeCheckConfig$b(untrustedConfig, config, createDataCleanRoomSpecification_ConfigPropertyMetadata);
1221
+ const untrustedConfig_dataMapping = untrustedConfig.dataMapping;
1222
+ config.dataMapping = untrustedConfig_dataMapping;
1223
+ return config;
1224
+ }
1225
+ function validateAdapterConfig$8(untrustedConfig, configPropertyNames) {
1226
+ if (!untrustedIsObject(untrustedConfig)) {
1227
+ return null;
1228
+ }
1229
+ if (process.env.NODE_ENV !== 'production') {
1230
+ validateConfig(untrustedConfig, configPropertyNames);
1231
+ }
1232
+ const config = typeCheckConfig$8(untrustedConfig);
1233
+ if (!areRequiredParametersPresent(config, configPropertyNames)) {
1234
+ return null;
1235
+ }
1236
+ return config;
1237
+ }
1238
+ function buildNetworkSnapshot$8(luvio, config, options) {
1239
+ const resourceParams = createResourceParams$8(config);
1240
+ const request = createResourceRequest$8(resourceParams);
1241
+ return luvio.dispatchResourceRequest(request, options)
1242
+ .then((response) => {
1243
+ return luvio.handleSuccessResponse(() => {
1244
+ const snapshot = ingestSuccess$8(luvio, resourceParams, response);
1245
+ return luvio.storeBroadcast().then(() => snapshot);
1246
+ }, () => {
1247
+ const cache = new StoreKeyMap();
1248
+ getResponseCacheKeys$8(cache, luvio, resourceParams, response.body);
1249
+ return cache;
1250
+ });
1251
+ }, (response) => {
1252
+ deepFreeze(response);
1253
+ throw response;
1254
+ });
1255
+ }
1256
+ const createDataCleanRoomSpecificationAdapterFactory = (luvio) => {
1257
+ return function createDataCleanRoomSpecification(untrustedConfig) {
1258
+ const config = validateAdapterConfig$8(untrustedConfig, createDataCleanRoomSpecification_ConfigPropertyNames);
1259
+ // Invalid or incomplete config
1260
+ if (config === null) {
1261
+ throw new Error('Invalid config for "createDataCleanRoomSpecification"');
1262
+ }
1263
+ return buildNetworkSnapshot$8(luvio, config);
1264
+ };
1265
+ };
1266
+
1267
+ const VERSION$6 = "7b8c1dda7e7cb9972974bdc212eda9cd";
1268
+ function validate$6(obj, path = 'DataCleanRoomProviderRepresentation') {
1269
+ const v_error = (() => {
1270
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1271
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
1272
+ }
1273
+ if (obj.createdBy !== undefined) {
1274
+ const obj_createdBy = obj.createdBy;
1275
+ const path_createdBy = path + '.createdBy';
1276
+ const referencepath_createdByValidationError = validate$f(obj_createdBy, path_createdBy);
1277
+ if (referencepath_createdByValidationError !== null) {
1278
+ let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_createdBy + '")\n';
1279
+ message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1280
+ return new TypeError(message);
1281
+ }
1282
+ }
1283
+ if (obj.createdDate !== undefined) {
1284
+ const obj_createdDate = obj.createdDate;
1285
+ const path_createdDate = path + '.createdDate';
1286
+ if (typeof obj_createdDate !== 'string') {
1287
+ return new TypeError('Expected "string" but received "' + typeof obj_createdDate + '" (at "' + path_createdDate + '")');
1288
+ }
1289
+ }
1290
+ const obj_dataCloudOrgId = obj.dataCloudOrgId;
1291
+ const path_dataCloudOrgId = path + '.dataCloudOrgId';
1292
+ if (typeof obj_dataCloudOrgId !== 'string') {
1293
+ return new TypeError('Expected "string" but received "' + typeof obj_dataCloudOrgId + '" (at "' + path_dataCloudOrgId + '")');
1294
+ }
1295
+ const obj_description = obj.description;
1296
+ const path_description = path + '.description';
1297
+ if (typeof obj_description !== 'string') {
1298
+ return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
1299
+ }
1300
+ const obj_domainUrl = obj.domainUrl;
1301
+ const path_domainUrl = path + '.domainUrl';
1302
+ if (typeof obj_domainUrl !== 'string') {
1303
+ return new TypeError('Expected "string" but received "' + typeof obj_domainUrl + '" (at "' + path_domainUrl + '")');
1304
+ }
1305
+ const obj_id = obj.id;
1306
+ const path_id = path + '.id';
1307
+ if (typeof obj_id !== 'string') {
1308
+ return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
1309
+ }
1310
+ if (obj.label !== undefined) {
1311
+ const obj_label = obj.label;
1312
+ const path_label = path + '.label';
1313
+ if (typeof obj_label !== 'string') {
1314
+ return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
1315
+ }
1316
+ }
1317
+ if (obj.lastModifiedBy !== undefined) {
1318
+ const obj_lastModifiedBy = obj.lastModifiedBy;
1319
+ const path_lastModifiedBy = path + '.lastModifiedBy';
1320
+ const referencepath_lastModifiedByValidationError = validate$f(obj_lastModifiedBy, path_lastModifiedBy);
1321
+ if (referencepath_lastModifiedByValidationError !== null) {
1322
+ let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_lastModifiedBy + '")\n';
1323
+ message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1324
+ return new TypeError(message);
1325
+ }
1326
+ }
1327
+ if (obj.lastModifiedDate !== undefined) {
1328
+ const obj_lastModifiedDate = obj.lastModifiedDate;
1329
+ const path_lastModifiedDate = path + '.lastModifiedDate';
1330
+ if (typeof obj_lastModifiedDate !== 'string') {
1331
+ return new TypeError('Expected "string" but received "' + typeof obj_lastModifiedDate + '" (at "' + path_lastModifiedDate + '")');
1332
+ }
1333
+ }
1334
+ if (obj.logoUrl !== undefined) {
1335
+ const obj_logoUrl = obj.logoUrl;
1336
+ const path_logoUrl = path + '.logoUrl';
1337
+ if (typeof obj_logoUrl !== 'string') {
1338
+ return new TypeError('Expected "string" but received "' + typeof obj_logoUrl + '" (at "' + path_logoUrl + '")');
1339
+ }
1340
+ }
1341
+ if (obj.name !== undefined) {
1342
+ const obj_name = obj.name;
1343
+ const path_name = path + '.name';
1344
+ if (typeof obj_name !== 'string') {
1345
+ return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
1346
+ }
1347
+ }
1348
+ if (obj.namespace !== undefined) {
1349
+ const obj_namespace = obj.namespace;
1350
+ const path_namespace = path + '.namespace';
1351
+ if (typeof obj_namespace !== 'string') {
1352
+ return new TypeError('Expected "string" but received "' + typeof obj_namespace + '" (at "' + path_namespace + '")');
1353
+ }
1354
+ }
1355
+ const obj_offCoreTenantId = obj.offCoreTenantId;
1356
+ const path_offCoreTenantId = path + '.offCoreTenantId';
1357
+ if (typeof obj_offCoreTenantId !== 'string') {
1358
+ return new TypeError('Expected "string" but received "' + typeof obj_offCoreTenantId + '" (at "' + path_offCoreTenantId + '")');
1359
+ }
1360
+ const obj_templateNames = obj.templateNames;
1361
+ const path_templateNames = path + '.templateNames';
1362
+ if (!ArrayIsArray(obj_templateNames)) {
1363
+ return new TypeError('Expected "array" but received "' + typeof obj_templateNames + '" (at "' + path_templateNames + '")');
1364
+ }
1365
+ for (let i = 0; i < obj_templateNames.length; i++) {
1366
+ const obj_templateNames_item = obj_templateNames[i];
1367
+ const path_templateNames_item = path_templateNames + '[' + i + ']';
1368
+ if (typeof obj_templateNames_item !== 'string') {
1369
+ return new TypeError('Expected "string" but received "' + typeof obj_templateNames_item + '" (at "' + path_templateNames_item + '")');
1370
+ }
1371
+ }
1372
+ if (obj.url !== undefined) {
1373
+ const obj_url = obj.url;
1374
+ const path_url = path + '.url';
1375
+ if (typeof obj_url !== 'string') {
1376
+ return new TypeError('Expected "string" but received "' + typeof obj_url + '" (at "' + path_url + '")');
1377
+ }
1378
+ }
1379
+ })();
1380
+ return v_error === undefined ? null : v_error;
1381
+ }
1382
+ const RepresentationType$6 = 'DataCleanRoomProviderRepresentation';
1383
+ function keyBuilder$b(luvio, config) {
1384
+ return keyPrefix + '::' + RepresentationType$6 + ':' + config.id;
1385
+ }
1386
+ function keyBuilderFromType$1(luvio, object) {
1387
+ const keyParams = {
1388
+ id: object.id
1389
+ };
1390
+ return keyBuilder$b(luvio, keyParams);
1391
+ }
1392
+ function normalize$6(input, existing, path, luvio, store, timestamp) {
1393
+ return input;
1394
+ }
1395
+ const select$e = function DataCleanRoomProviderRepresentationSelect() {
1396
+ return {
1397
+ kind: 'Fragment',
1398
+ version: VERSION$6,
1399
+ private: [],
1400
+ opaque: true
1401
+ };
1402
+ };
1403
+ function equals$6(existing, incoming) {
1404
+ if (JSONStringify(incoming) !== JSONStringify(existing)) {
1405
+ return false;
1406
+ }
1407
+ return true;
1408
+ }
1409
+ const ingest$6 = function DataCleanRoomProviderRepresentationIngest(input, path, luvio, store, timestamp) {
1410
+ if (process.env.NODE_ENV !== 'production') {
1411
+ const validateError = validate$6(input);
1412
+ if (validateError !== null) {
1413
+ throw validateError;
1414
+ }
1415
+ }
1416
+ const key = keyBuilderFromType$1(luvio, input);
1417
+ const ttlToUse = path.ttl !== undefined ? path.ttl : 100;
1418
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$6, "data-clean-room", VERSION$6, RepresentationType$6, equals$6);
1419
+ return createLink(key);
1420
+ };
1421
+ function getTypeCacheKeys$6(rootKeySet, luvio, input, fullPathFactory) {
1422
+ // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
1423
+ const rootKey = keyBuilderFromType$1(luvio, input);
1424
+ rootKeySet.set(rootKey, {
1425
+ namespace: keyPrefix,
1426
+ representationName: RepresentationType$6,
1427
+ mergeable: false
1428
+ });
1429
+ }
1430
+
1431
+ function select$d(luvio, params) {
1432
+ return select$e();
1433
+ }
1434
+ function getResponseCacheKeys$7(storeKeyMap, luvio, resourceParams, response) {
1435
+ getTypeCacheKeys$6(storeKeyMap, luvio, response);
1436
+ }
1437
+ function ingestSuccess$7(luvio, resourceParams, response) {
1438
+ const { body } = response;
1439
+ const key = keyBuilderFromType$1(luvio, body);
1440
+ luvio.storeIngest(key, ingest$6, body);
1441
+ const snapshot = luvio.storeLookup({
1442
+ recordId: key,
1443
+ node: select$d(),
1444
+ variables: {},
1445
+ });
1446
+ if (process.env.NODE_ENV !== 'production') {
1447
+ if (snapshot.state !== 'Fulfilled') {
1448
+ throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
1449
+ }
1450
+ }
1451
+ deepFreeze(snapshot.data);
1452
+ return snapshot;
1453
+ }
1454
+ function createResourceRequest$7(config) {
1455
+ const headers = {};
1456
+ return {
1457
+ baseUri: '/services/data/v64.0',
1458
+ basePath: '/ssot/data-clean-room/providers',
1459
+ method: 'post',
1460
+ body: config.body,
1461
+ urlParams: {},
1462
+ queryParams: {},
1463
+ headers,
1464
+ priority: 'normal',
1465
+ };
1466
+ }
1467
+
1468
+ const adapterName$7 = 'createProvider';
1469
+ const createProvider_ConfigPropertyMetadata = [
1470
+ generateParamConfigMetadata('label', true, 2 /* Body */, 0 /* String */),
1471
+ generateParamConfigMetadata('description', true, 2 /* Body */, 0 /* String */),
1472
+ generateParamConfigMetadata('templateNames', true, 2 /* Body */, 0 /* String */, true),
1473
+ generateParamConfigMetadata('dataCloudOrgId', true, 2 /* Body */, 0 /* String */),
1474
+ generateParamConfigMetadata('domainUrl', true, 2 /* Body */, 0 /* String */),
1475
+ generateParamConfigMetadata('dataspaceName', false, 2 /* Body */, 0 /* String */),
1476
+ generateParamConfigMetadata('name', false, 2 /* Body */, 0 /* String */),
1477
+ generateParamConfigMetadata('logoUrl', false, 2 /* Body */, 0 /* String */),
1478
+ generateParamConfigMetadata('offCoreTenantId', true, 2 /* Body */, 0 /* String */),
1479
+ ];
1480
+ const createProvider_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$7, createProvider_ConfigPropertyMetadata);
1481
+ const createResourceParams$7 = /*#__PURE__*/ createResourceParams$b(createProvider_ConfigPropertyMetadata);
1482
+ function typeCheckConfig$7(untrustedConfig) {
1483
+ const config = {};
1484
+ typeCheckConfig$b(untrustedConfig, config, createProvider_ConfigPropertyMetadata);
1485
+ return config;
1486
+ }
1487
+ function validateAdapterConfig$7(untrustedConfig, configPropertyNames) {
1488
+ if (!untrustedIsObject(untrustedConfig)) {
1489
+ return null;
1490
+ }
1491
+ if (process.env.NODE_ENV !== 'production') {
1492
+ validateConfig(untrustedConfig, configPropertyNames);
1493
+ }
1494
+ const config = typeCheckConfig$7(untrustedConfig);
1495
+ if (!areRequiredParametersPresent(config, configPropertyNames)) {
1496
+ return null;
1497
+ }
1498
+ return config;
1499
+ }
1500
+ function buildNetworkSnapshot$7(luvio, config, options) {
1501
+ const resourceParams = createResourceParams$7(config);
1502
+ const request = createResourceRequest$7(resourceParams);
1503
+ return luvio.dispatchResourceRequest(request, options)
1504
+ .then((response) => {
1505
+ return luvio.handleSuccessResponse(() => {
1506
+ const snapshot = ingestSuccess$7(luvio, resourceParams, response);
1507
+ return luvio.storeBroadcast().then(() => snapshot);
1508
+ }, () => {
1509
+ const cache = new StoreKeyMap();
1510
+ getResponseCacheKeys$7(cache, luvio, resourceParams, response.body);
1511
+ return cache;
1512
+ });
1513
+ }, (response) => {
1514
+ deepFreeze(response);
1515
+ throw response;
1516
+ });
1517
+ }
1518
+ const createProviderAdapterFactory = (luvio) => {
1519
+ return function createProvider(untrustedConfig) {
1520
+ const config = validateAdapterConfig$7(untrustedConfig, createProvider_ConfigPropertyNames);
1521
+ // Invalid or incomplete config
1522
+ if (config === null) {
1523
+ throw new Error('Invalid config for "createProvider"');
1524
+ }
1525
+ return buildNetworkSnapshot$7(luvio, config);
1526
+ };
1527
+ };
1528
+
1529
+ const VERSION$5 = "a9f0b009de72ece59b856eea14e4af5c";
1530
+ function validate$5(obj, path = 'DataCleanRoomQueryJobRepresentation') {
1531
+ const v_error = (() => {
1532
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1533
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
1534
+ }
1535
+ if (obj.completedDate !== undefined) {
1536
+ const obj_completedDate = obj.completedDate;
1537
+ const path_completedDate = path + '.completedDate';
1538
+ if (typeof obj_completedDate !== 'string') {
1539
+ return new TypeError('Expected "string" but received "' + typeof obj_completedDate + '" (at "' + path_completedDate + '")');
1540
+ }
1541
+ }
1542
+ if (obj.createdBy !== undefined) {
1543
+ const obj_createdBy = obj.createdBy;
1544
+ const path_createdBy = path + '.createdBy';
1545
+ const referencepath_createdByValidationError = validate$f(obj_createdBy, path_createdBy);
1546
+ if (referencepath_createdByValidationError !== null) {
1547
+ let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_createdBy + '")\n';
1548
+ message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1549
+ return new TypeError(message);
1550
+ }
1551
+ }
1552
+ if (obj.createdDate !== undefined) {
1553
+ const obj_createdDate = obj.createdDate;
1554
+ const path_createdDate = path + '.createdDate';
1555
+ if (typeof obj_createdDate !== 'string') {
1556
+ return new TypeError('Expected "string" but received "' + typeof obj_createdDate + '" (at "' + path_createdDate + '")');
1557
+ }
1558
+ }
1559
+ if (obj.errorCode !== undefined) {
1560
+ const obj_errorCode = obj.errorCode;
1561
+ const path_errorCode = path + '.errorCode';
1562
+ if (typeof obj_errorCode !== 'string') {
1563
+ return new TypeError('Expected "string" but received "' + typeof obj_errorCode + '" (at "' + path_errorCode + '")');
1564
+ }
1565
+ }
1566
+ if (obj.errorMessage !== undefined) {
1567
+ const obj_errorMessage = obj.errorMessage;
1568
+ const path_errorMessage = path + '.errorMessage';
1569
+ if (typeof obj_errorMessage !== 'string') {
1570
+ return new TypeError('Expected "string" but received "' + typeof obj_errorMessage + '" (at "' + path_errorMessage + '")');
1571
+ }
1572
+ }
1573
+ const obj_id = obj.id;
1574
+ const path_id = path + '.id';
1575
+ if (typeof obj_id !== 'string') {
1576
+ return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
1577
+ }
1578
+ if (obj.label !== undefined) {
1579
+ const obj_label = obj.label;
1580
+ const path_label = path + '.label';
1581
+ if (typeof obj_label !== 'string') {
1582
+ return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
1583
+ }
1584
+ }
1585
+ if (obj.lastModifiedBy !== undefined) {
1586
+ const obj_lastModifiedBy = obj.lastModifiedBy;
1587
+ const path_lastModifiedBy = path + '.lastModifiedBy';
1588
+ const referencepath_lastModifiedByValidationError = validate$f(obj_lastModifiedBy, path_lastModifiedBy);
1589
+ if (referencepath_lastModifiedByValidationError !== null) {
1590
+ let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_lastModifiedBy + '")\n';
1591
+ message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1592
+ return new TypeError(message);
1593
+ }
1594
+ }
1595
+ if (obj.lastModifiedDate !== undefined) {
1596
+ const obj_lastModifiedDate = obj.lastModifiedDate;
1597
+ const path_lastModifiedDate = path + '.lastModifiedDate';
1598
+ if (typeof obj_lastModifiedDate !== 'string') {
1599
+ return new TypeError('Expected "string" but received "' + typeof obj_lastModifiedDate + '" (at "' + path_lastModifiedDate + '")');
1600
+ }
1601
+ }
1602
+ if (obj.name !== undefined) {
1603
+ const obj_name = obj.name;
1604
+ const path_name = path + '.name';
1605
+ if (typeof obj_name !== 'string') {
1606
+ return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
1607
+ }
1608
+ }
1609
+ if (obj.result !== undefined) {
1610
+ const obj_result = obj.result;
1611
+ const path_result = path + '.result';
1612
+ if (typeof obj_result !== 'number' || (typeof obj_result === 'number' && Math.floor(obj_result) !== obj_result)) {
1613
+ return new TypeError('Expected "integer" but received "' + typeof obj_result + '" (at "' + path_result + '")');
1614
+ }
1615
+ }
1616
+ if (obj.segmentNames !== undefined) {
1617
+ const obj_segmentNames = obj.segmentNames;
1618
+ const path_segmentNames = path + '.segmentNames';
1619
+ if (!ArrayIsArray(obj_segmentNames)) {
1620
+ return new TypeError('Expected "array" but received "' + typeof obj_segmentNames + '" (at "' + path_segmentNames + '")');
1621
+ }
1622
+ for (let i = 0; i < obj_segmentNames.length; i++) {
1623
+ const obj_segmentNames_item = obj_segmentNames[i];
1624
+ const path_segmentNames_item = path_segmentNames + '[' + i + ']';
1625
+ if (typeof obj_segmentNames_item !== 'string') {
1626
+ return new TypeError('Expected "string" but received "' + typeof obj_segmentNames_item + '" (at "' + path_segmentNames_item + '")');
1627
+ }
1628
+ }
1629
+ }
1630
+ const obj_status = obj.status;
1631
+ const path_status = path + '.status';
1632
+ if (typeof obj_status !== 'string') {
1633
+ return new TypeError('Expected "string" but received "' + typeof obj_status + '" (at "' + path_status + '")');
1634
+ }
1635
+ if (obj.triggeredDate !== undefined) {
1636
+ const obj_triggeredDate = obj.triggeredDate;
1637
+ const path_triggeredDate = path + '.triggeredDate';
1638
+ if (typeof obj_triggeredDate !== 'string') {
1639
+ return new TypeError('Expected "string" but received "' + typeof obj_triggeredDate + '" (at "' + path_triggeredDate + '")');
1640
+ }
1641
+ }
1642
+ })();
1643
+ return v_error === undefined ? null : v_error;
1644
+ }
1645
+ const RepresentationType$5 = 'DataCleanRoomQueryJobRepresentation';
1646
+ function keyBuilder$a(luvio, config) {
1647
+ return keyPrefix + '::' + RepresentationType$5 + ':' + config.id;
1648
+ }
1649
+ function keyBuilderFromType(luvio, object) {
1650
+ const keyParams = {
1651
+ id: object.id
1652
+ };
1653
+ return keyBuilder$a(luvio, keyParams);
1654
+ }
1655
+ function normalize$5(input, existing, path, luvio, store, timestamp) {
1656
+ return input;
1657
+ }
1658
+ const select$c = function DataCleanRoomQueryJobRepresentationSelect() {
1659
+ return {
1660
+ kind: 'Fragment',
1661
+ version: VERSION$5,
1662
+ private: [],
1663
+ opaque: true
1664
+ };
1665
+ };
1666
+ function equals$5(existing, incoming) {
1667
+ if (JSONStringify(incoming) !== JSONStringify(existing)) {
1668
+ return false;
1669
+ }
1670
+ return true;
1671
+ }
1672
+ const ingest$5 = function DataCleanRoomQueryJobRepresentationIngest(input, path, luvio, store, timestamp) {
1673
+ if (process.env.NODE_ENV !== 'production') {
1674
+ const validateError = validate$5(input);
1675
+ if (validateError !== null) {
1676
+ throw validateError;
1677
+ }
1678
+ }
1679
+ const key = keyBuilderFromType(luvio, input);
1680
+ const ttlToUse = path.ttl !== undefined ? path.ttl : 100;
1681
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$5, "data-clean-room", VERSION$5, RepresentationType$5, equals$5);
1682
+ return createLink(key);
1683
+ };
1684
+ function getTypeCacheKeys$5(rootKeySet, luvio, input, fullPathFactory) {
1685
+ // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
1686
+ const rootKey = keyBuilderFromType(luvio, input);
1687
+ rootKeySet.set(rootKey, {
1688
+ namespace: keyPrefix,
1689
+ representationName: RepresentationType$5,
1690
+ mergeable: false
1691
+ });
1692
+ }
1693
+
1694
+ function select$b(luvio, params) {
1695
+ return select$c();
1696
+ }
1697
+ function getResponseCacheKeys$6(storeKeyMap, luvio, resourceParams, response) {
1698
+ getTypeCacheKeys$5(storeKeyMap, luvio, response);
1699
+ }
1700
+ function ingestSuccess$6(luvio, resourceParams, response) {
1701
+ const { body } = response;
1702
+ const key = keyBuilderFromType(luvio, body);
1703
+ luvio.storeIngest(key, ingest$5, body);
1704
+ const snapshot = luvio.storeLookup({
1705
+ recordId: key,
1706
+ node: select$b(),
1707
+ variables: {},
1708
+ });
1709
+ if (process.env.NODE_ENV !== 'production') {
1710
+ if (snapshot.state !== 'Fulfilled') {
1711
+ throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
1712
+ }
1713
+ }
1714
+ deepFreeze(snapshot.data);
1715
+ return snapshot;
1716
+ }
1717
+ function createResourceRequest$6(config) {
1718
+ const headers = {};
1719
+ return {
1720
+ baseUri: '/services/data/v64.0',
1721
+ basePath: '/ssot/data-clean-room/collaborations/' + config.urlParams.collaborationIdOrApiName + '/actions/run',
1722
+ method: 'post',
1723
+ body: config.body,
1724
+ urlParams: config.urlParams,
1725
+ queryParams: {},
1726
+ headers,
1727
+ priority: 'normal',
1728
+ };
1729
+ }
1730
+
1731
+ const adapterName$6 = 'executeDataCleanRoomQuery';
1732
+ const executeDataCleanRoomQuery_ConfigPropertyMetadata = [
1733
+ generateParamConfigMetadata('collaborationIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
1734
+ generateParamConfigMetadata('queryExecutionName', true, 2 /* Body */, 0 /* String */),
1735
+ generateParamConfigMetadata('segmentIds', true, 2 /* Body */, 0 /* String */, true),
1736
+ ];
1737
+ const executeDataCleanRoomQuery_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, executeDataCleanRoomQuery_ConfigPropertyMetadata);
1738
+ const createResourceParams$6 = /*#__PURE__*/ createResourceParams$b(executeDataCleanRoomQuery_ConfigPropertyMetadata);
1739
+ function typeCheckConfig$6(untrustedConfig) {
1740
+ const config = {};
1741
+ typeCheckConfig$b(untrustedConfig, config, executeDataCleanRoomQuery_ConfigPropertyMetadata);
1742
+ return config;
1743
+ }
1744
+ function validateAdapterConfig$6(untrustedConfig, configPropertyNames) {
1745
+ if (!untrustedIsObject(untrustedConfig)) {
1746
+ return null;
1747
+ }
1748
+ if (process.env.NODE_ENV !== 'production') {
1749
+ validateConfig(untrustedConfig, configPropertyNames);
1750
+ }
1751
+ const config = typeCheckConfig$6(untrustedConfig);
1752
+ if (!areRequiredParametersPresent(config, configPropertyNames)) {
1753
+ return null;
1754
+ }
1755
+ return config;
1756
+ }
1757
+ function buildNetworkSnapshot$6(luvio, config, options) {
1758
+ const resourceParams = createResourceParams$6(config);
1759
+ const request = createResourceRequest$6(resourceParams);
1760
+ return luvio.dispatchResourceRequest(request, options)
1761
+ .then((response) => {
1762
+ return luvio.handleSuccessResponse(() => {
1763
+ const snapshot = ingestSuccess$6(luvio, resourceParams, response);
1764
+ return luvio.storeBroadcast().then(() => snapshot);
1765
+ }, () => {
1766
+ const cache = new StoreKeyMap();
1767
+ getResponseCacheKeys$6(cache, luvio, resourceParams, response.body);
1768
+ return cache;
1769
+ });
1770
+ }, (response) => {
1771
+ deepFreeze(response);
1772
+ throw response;
1773
+ });
1774
+ }
1775
+ const executeDataCleanRoomQueryAdapterFactory = (luvio) => {
1776
+ return function executeDataCleanRoomQuery(untrustedConfig) {
1777
+ const config = validateAdapterConfig$6(untrustedConfig, executeDataCleanRoomQuery_ConfigPropertyNames);
1778
+ // Invalid or incomplete config
1779
+ if (config === null) {
1780
+ throw new Error('Invalid config for "executeDataCleanRoomQuery"');
1781
+ }
1782
+ return buildNetworkSnapshot$6(luvio, config);
1783
+ };
1784
+ };
1785
+
1786
+ const VERSION$4 = "7aaafdce5d4ed7457442ab5701329217";
1787
+ function validate$4(obj, path = 'DataCleanRoomQueryJobHistoryCollectionRepresentation') {
1788
+ const v_error = (() => {
1789
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1790
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
1791
+ }
1792
+ if (obj.currentPageUrl !== undefined) {
1793
+ const obj_currentPageUrl = obj.currentPageUrl;
1794
+ const path_currentPageUrl = path + '.currentPageUrl';
1795
+ if (typeof obj_currentPageUrl !== 'string') {
1796
+ return new TypeError('Expected "string" but received "' + typeof obj_currentPageUrl + '" (at "' + path_currentPageUrl + '")');
1797
+ }
1798
+ }
1799
+ const obj_limit = obj.limit;
1800
+ const path_limit = path + '.limit';
1801
+ if (typeof obj_limit !== 'number' || (typeof obj_limit === 'number' && Math.floor(obj_limit) !== obj_limit)) {
1802
+ return new TypeError('Expected "integer" but received "' + typeof obj_limit + '" (at "' + path_limit + '")');
1803
+ }
1804
+ if (obj.nextPageUrl !== undefined) {
1805
+ const obj_nextPageUrl = obj.nextPageUrl;
1806
+ const path_nextPageUrl = path + '.nextPageUrl';
1807
+ let obj_nextPageUrl_union0 = null;
1808
+ const obj_nextPageUrl_union0_error = (() => {
1809
+ if (typeof obj_nextPageUrl !== 'string') {
1810
+ return new TypeError('Expected "string" but received "' + typeof obj_nextPageUrl + '" (at "' + path_nextPageUrl + '")');
1811
+ }
1812
+ })();
1813
+ if (obj_nextPageUrl_union0_error != null) {
1814
+ obj_nextPageUrl_union0 = obj_nextPageUrl_union0_error.message;
1815
+ }
1816
+ let obj_nextPageUrl_union1 = null;
1817
+ const obj_nextPageUrl_union1_error = (() => {
1818
+ if (obj_nextPageUrl !== null) {
1819
+ return new TypeError('Expected "null" but received "' + typeof obj_nextPageUrl + '" (at "' + path_nextPageUrl + '")');
1820
+ }
1821
+ })();
1822
+ if (obj_nextPageUrl_union1_error != null) {
1823
+ obj_nextPageUrl_union1 = obj_nextPageUrl_union1_error.message;
1824
+ }
1825
+ if (obj_nextPageUrl_union0 && obj_nextPageUrl_union1) {
1826
+ let message = 'Object doesn\'t match union (at "' + path_nextPageUrl + '")';
1827
+ message += '\n' + obj_nextPageUrl_union0.split('\n').map((line) => '\t' + line).join('\n');
1828
+ message += '\n' + obj_nextPageUrl_union1.split('\n').map((line) => '\t' + line).join('\n');
1829
+ return new TypeError(message);
1830
+ }
1831
+ }
1832
+ const obj_offset = obj.offset;
1833
+ const path_offset = path + '.offset';
1834
+ if (typeof obj_offset !== 'number' || (typeof obj_offset === 'number' && Math.floor(obj_offset) !== obj_offset)) {
1835
+ return new TypeError('Expected "integer" but received "' + typeof obj_offset + '" (at "' + path_offset + '")');
1836
+ }
1837
+ const obj_queryJobs = obj.queryJobs;
1838
+ const path_queryJobs = path + '.queryJobs';
1839
+ if (!ArrayIsArray(obj_queryJobs)) {
1840
+ return new TypeError('Expected "array" but received "' + typeof obj_queryJobs + '" (at "' + path_queryJobs + '")');
1841
+ }
1842
+ for (let i = 0; i < obj_queryJobs.length; i++) {
1843
+ const obj_queryJobs_item = obj_queryJobs[i];
1844
+ const path_queryJobs_item = path_queryJobs + '[' + i + ']';
1845
+ const referencepath_queryJobs_itemValidationError = validate$5(obj_queryJobs_item, path_queryJobs_item);
1846
+ if (referencepath_queryJobs_itemValidationError !== null) {
1847
+ let message = 'Object doesn\'t match DataCleanRoomQueryJobRepresentation (at "' + path_queryJobs_item + '")\n';
1848
+ message += referencepath_queryJobs_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1849
+ return new TypeError(message);
1850
+ }
1851
+ }
1852
+ if (obj.totalSize !== undefined) {
1853
+ const obj_totalSize = obj.totalSize;
1854
+ const path_totalSize = path + '.totalSize';
1855
+ if (typeof obj_totalSize !== 'number' || (typeof obj_totalSize === 'number' && Math.floor(obj_totalSize) !== obj_totalSize)) {
1856
+ return new TypeError('Expected "integer" but received "' + typeof obj_totalSize + '" (at "' + path_totalSize + '")');
1857
+ }
1858
+ }
1859
+ })();
1860
+ return v_error === undefined ? null : v_error;
1861
+ }
1862
+ const RepresentationType$4 = 'DataCleanRoomQueryJobHistoryCollectionRepresentation';
1863
+ function normalize$4(input, existing, path, luvio, store, timestamp) {
1864
+ return input;
1865
+ }
1866
+ const select$a = function DataCleanRoomQueryJobHistoryCollectionRepresentationSelect() {
1867
+ return {
1868
+ kind: 'Fragment',
1869
+ version: VERSION$4,
1870
+ private: [],
1871
+ opaque: true
1872
+ };
1873
+ };
1874
+ function equals$4(existing, incoming) {
1875
+ if (JSONStringify(incoming) !== JSONStringify(existing)) {
1876
+ return false;
1877
+ }
1878
+ return true;
1879
+ }
1880
+ const ingest$4 = function DataCleanRoomQueryJobHistoryCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
1881
+ if (process.env.NODE_ENV !== 'production') {
1882
+ const validateError = validate$4(input);
1883
+ if (validateError !== null) {
1884
+ throw validateError;
1885
+ }
1886
+ }
1887
+ const key = path.fullPath;
1888
+ const ttlToUse = path.ttl !== undefined ? path.ttl : 100;
1889
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$4, "data-clean-room", VERSION$4, RepresentationType$4, equals$4);
1890
+ return createLink(key);
1891
+ };
1892
+ function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
1893
+ // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
1894
+ const rootKey = fullPathFactory();
1895
+ rootKeySet.set(rootKey, {
1896
+ namespace: keyPrefix,
1897
+ representationName: RepresentationType$4,
1898
+ mergeable: false
1899
+ });
1900
+ }
1901
+
1902
+ function select$9(luvio, params) {
1903
+ return select$a();
1904
+ }
1905
+ function keyBuilder$9(luvio, params) {
1906
+ return keyPrefix + '::DataCleanRoomQueryJobHistoryCollectionRepresentation:(' + 'limit:' + params.queryParams.limit + ',' + 'filters:' + params.queryParams.filters + ',' + 'offset:' + params.queryParams.offset + ',' + 'orderBy:' + params.queryParams.orderBy + ',' + 'collaborationIdOrApiName:' + params.urlParams.collaborationIdOrApiName + ')';
1907
+ }
1908
+ function getResponseCacheKeys$5(storeKeyMap, luvio, resourceParams, response) {
1909
+ getTypeCacheKeys$4(storeKeyMap, luvio, response, () => keyBuilder$9(luvio, resourceParams));
1910
+ }
1911
+ function ingestSuccess$5(luvio, resourceParams, response, snapshotRefresh) {
1912
+ const { body } = response;
1913
+ const key = keyBuilder$9(luvio, resourceParams);
1914
+ luvio.storeIngest(key, ingest$4, body);
1915
+ const snapshot = luvio.storeLookup({
1916
+ recordId: key,
1917
+ node: select$9(),
1918
+ variables: {},
1919
+ }, snapshotRefresh);
1920
+ if (process.env.NODE_ENV !== 'production') {
1921
+ if (snapshot.state !== 'Fulfilled') {
1922
+ throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
1923
+ }
1924
+ }
1925
+ deepFreeze(snapshot.data);
1926
+ return snapshot;
1927
+ }
1928
+ function ingestError$4(luvio, params, error, snapshotRefresh) {
1929
+ const key = keyBuilder$9(luvio, params);
1930
+ const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
1931
+ luvio.storeIngestError(key, errorSnapshot);
1932
+ return errorSnapshot;
1933
+ }
1934
+ function createResourceRequest$5(config) {
1935
+ const headers = {};
1936
+ return {
1937
+ baseUri: '/services/data/v64.0',
1938
+ basePath: '/ssot/data-clean-room/collaborations/' + config.urlParams.collaborationIdOrApiName + '/jobs',
1939
+ method: 'get',
1940
+ body: null,
1941
+ urlParams: config.urlParams,
1942
+ queryParams: config.queryParams,
1943
+ headers,
1944
+ priority: 'normal',
1945
+ };
1946
+ }
1947
+
1948
+ const adapterName$5 = 'getAllDataCleanRoomQueryPaginated';
1949
+ const getAllDataCleanRoomQueryPaginated_ConfigPropertyMetadata = [
1950
+ generateParamConfigMetadata('collaborationIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
1951
+ generateParamConfigMetadata('limit', false, 1 /* QueryParameter */, 3 /* Integer */),
1952
+ generateParamConfigMetadata('filters', false, 1 /* QueryParameter */, 0 /* String */),
1953
+ generateParamConfigMetadata('offset', false, 1 /* QueryParameter */, 3 /* Integer */),
1954
+ generateParamConfigMetadata('orderBy', false, 1 /* QueryParameter */, 0 /* String */),
1955
+ ];
1956
+ const getAllDataCleanRoomQueryPaginated_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, getAllDataCleanRoomQueryPaginated_ConfigPropertyMetadata);
1957
+ const createResourceParams$5 = /*#__PURE__*/ createResourceParams$b(getAllDataCleanRoomQueryPaginated_ConfigPropertyMetadata);
1958
+ function keyBuilder$8(luvio, config) {
1959
+ const resourceParams = createResourceParams$5(config);
1960
+ return keyBuilder$9(luvio, resourceParams);
1961
+ }
1962
+ function typeCheckConfig$5(untrustedConfig) {
1963
+ const config = {};
1964
+ typeCheckConfig$b(untrustedConfig, config, getAllDataCleanRoomQueryPaginated_ConfigPropertyMetadata);
1965
+ return config;
1966
+ }
1967
+ function validateAdapterConfig$5(untrustedConfig, configPropertyNames) {
1968
+ if (!untrustedIsObject(untrustedConfig)) {
1969
+ return null;
1970
+ }
1971
+ if (process.env.NODE_ENV !== 'production') {
1972
+ validateConfig(untrustedConfig, configPropertyNames);
1973
+ }
1974
+ const config = typeCheckConfig$5(untrustedConfig);
1975
+ if (!areRequiredParametersPresent(config, configPropertyNames)) {
1976
+ return null;
1977
+ }
1978
+ return config;
1979
+ }
1980
+ function adapterFragment$4(luvio, config) {
1981
+ createResourceParams$5(config);
1982
+ return select$9();
1983
+ }
1984
+ function onFetchResponseSuccess$4(luvio, config, resourceParams, response) {
1985
+ const snapshot = ingestSuccess$5(luvio, resourceParams, response, {
1986
+ config,
1987
+ resolve: () => buildNetworkSnapshot$5(luvio, config, snapshotRefreshOptions)
1988
+ });
1989
+ return luvio.storeBroadcast().then(() => snapshot);
1990
+ }
1991
+ function onFetchResponseError$4(luvio, config, resourceParams, response) {
1992
+ const snapshot = ingestError$4(luvio, resourceParams, response, {
1993
+ config,
1994
+ resolve: () => buildNetworkSnapshot$5(luvio, config, snapshotRefreshOptions)
1995
+ });
1996
+ return luvio.storeBroadcast().then(() => snapshot);
1997
+ }
1998
+ function buildNetworkSnapshot$5(luvio, config, options) {
1999
+ const resourceParams = createResourceParams$5(config);
2000
+ const request = createResourceRequest$5(resourceParams);
2001
+ return luvio.dispatchResourceRequest(request, options)
2002
+ .then((response) => {
2003
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess$4(luvio, config, resourceParams, response), () => {
2004
+ const cache = new StoreKeyMap();
2005
+ getResponseCacheKeys$5(cache, luvio, resourceParams, response.body);
2006
+ return cache;
2007
+ });
2008
+ }, (response) => {
2009
+ return luvio.handleErrorResponse(() => onFetchResponseError$4(luvio, config, resourceParams, response));
2010
+ });
2011
+ }
2012
+ function buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext) {
2013
+ return buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext, buildNetworkSnapshot$5, undefined, false);
2014
+ }
2015
+ function buildCachedSnapshotCachePolicy$4(context, storeLookup) {
2016
+ const { luvio, config } = context;
2017
+ const selector = {
2018
+ recordId: keyBuilder$8(luvio, config),
2019
+ node: adapterFragment$4(luvio, config),
2020
+ variables: {},
2021
+ };
2022
+ const cacheSnapshot = storeLookup(selector, {
2023
+ config,
2024
+ resolve: () => buildNetworkSnapshot$5(luvio, config, snapshotRefreshOptions)
2025
+ });
2026
+ return cacheSnapshot;
2027
+ }
2028
+ const getAllDataCleanRoomQueryPaginatedAdapterFactory = (luvio) => function dataCleanRoom__getAllDataCleanRoomQueryPaginated(untrustedConfig, requestContext) {
2029
+ const config = validateAdapterConfig$5(untrustedConfig, getAllDataCleanRoomQueryPaginated_ConfigPropertyNames);
2030
+ // Invalid or incomplete config
2031
+ if (config === null) {
2032
+ return null;
2033
+ }
2034
+ return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
2035
+ buildCachedSnapshotCachePolicy$4, buildNetworkSnapshotCachePolicy$4);
2036
+ };
2037
+
2038
+ const VERSION$3 = "9e5eddaaa3330278c7aa483af5dc8d74";
2039
+ function validate$3(obj, path = 'DataCleanRoomCollaborationCollectionRepresentation') {
2040
+ const v_error = (() => {
2041
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2042
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
2043
+ }
2044
+ const obj_collaborations = obj.collaborations;
2045
+ const path_collaborations = path + '.collaborations';
2046
+ if (!ArrayIsArray(obj_collaborations)) {
2047
+ return new TypeError('Expected "array" but received "' + typeof obj_collaborations + '" (at "' + path_collaborations + '")');
2048
+ }
2049
+ for (let i = 0; i < obj_collaborations.length; i++) {
2050
+ const obj_collaborations_item = obj_collaborations[i];
2051
+ const path_collaborations_item = path_collaborations + '[' + i + ']';
2052
+ const referencepath_collaborations_itemValidationError = validate$d(obj_collaborations_item, path_collaborations_item);
2053
+ if (referencepath_collaborations_itemValidationError !== null) {
2054
+ let message = 'Object doesn\'t match DataCleanRoomCollaborationRepresentation (at "' + path_collaborations_item + '")\n';
2055
+ message += referencepath_collaborations_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
2056
+ return new TypeError(message);
2057
+ }
2058
+ }
2059
+ if (obj.currentPageUrl !== undefined) {
2060
+ const obj_currentPageUrl = obj.currentPageUrl;
2061
+ const path_currentPageUrl = path + '.currentPageUrl';
2062
+ if (typeof obj_currentPageUrl !== 'string') {
2063
+ return new TypeError('Expected "string" but received "' + typeof obj_currentPageUrl + '" (at "' + path_currentPageUrl + '")');
2064
+ }
2065
+ }
2066
+ const obj_limit = obj.limit;
2067
+ const path_limit = path + '.limit';
2068
+ if (typeof obj_limit !== 'number' || (typeof obj_limit === 'number' && Math.floor(obj_limit) !== obj_limit)) {
2069
+ return new TypeError('Expected "integer" but received "' + typeof obj_limit + '" (at "' + path_limit + '")');
2070
+ }
2071
+ if (obj.nextPageUrl !== undefined) {
2072
+ const obj_nextPageUrl = obj.nextPageUrl;
2073
+ const path_nextPageUrl = path + '.nextPageUrl';
2074
+ let obj_nextPageUrl_union0 = null;
2075
+ const obj_nextPageUrl_union0_error = (() => {
2076
+ if (typeof obj_nextPageUrl !== 'string') {
2077
+ return new TypeError('Expected "string" but received "' + typeof obj_nextPageUrl + '" (at "' + path_nextPageUrl + '")');
2078
+ }
2079
+ })();
2080
+ if (obj_nextPageUrl_union0_error != null) {
2081
+ obj_nextPageUrl_union0 = obj_nextPageUrl_union0_error.message;
2082
+ }
2083
+ let obj_nextPageUrl_union1 = null;
2084
+ const obj_nextPageUrl_union1_error = (() => {
2085
+ if (obj_nextPageUrl !== null) {
2086
+ return new TypeError('Expected "null" but received "' + typeof obj_nextPageUrl + '" (at "' + path_nextPageUrl + '")');
2087
+ }
2088
+ })();
2089
+ if (obj_nextPageUrl_union1_error != null) {
2090
+ obj_nextPageUrl_union1 = obj_nextPageUrl_union1_error.message;
2091
+ }
2092
+ if (obj_nextPageUrl_union0 && obj_nextPageUrl_union1) {
2093
+ let message = 'Object doesn\'t match union (at "' + path_nextPageUrl + '")';
2094
+ message += '\n' + obj_nextPageUrl_union0.split('\n').map((line) => '\t' + line).join('\n');
2095
+ message += '\n' + obj_nextPageUrl_union1.split('\n').map((line) => '\t' + line).join('\n');
2096
+ return new TypeError(message);
2097
+ }
2098
+ }
2099
+ const obj_offset = obj.offset;
2100
+ const path_offset = path + '.offset';
2101
+ if (typeof obj_offset !== 'number' || (typeof obj_offset === 'number' && Math.floor(obj_offset) !== obj_offset)) {
2102
+ return new TypeError('Expected "integer" but received "' + typeof obj_offset + '" (at "' + path_offset + '")');
2103
+ }
2104
+ if (obj.totalSize !== undefined) {
2105
+ const obj_totalSize = obj.totalSize;
2106
+ const path_totalSize = path + '.totalSize';
2107
+ if (typeof obj_totalSize !== 'number' || (typeof obj_totalSize === 'number' && Math.floor(obj_totalSize) !== obj_totalSize)) {
2108
+ return new TypeError('Expected "integer" but received "' + typeof obj_totalSize + '" (at "' + path_totalSize + '")');
2109
+ }
2110
+ }
2111
+ })();
2112
+ return v_error === undefined ? null : v_error;
2113
+ }
2114
+ const RepresentationType$3 = 'DataCleanRoomCollaborationCollectionRepresentation';
2115
+ function normalize$3(input, existing, path, luvio, store, timestamp) {
2116
+ return input;
2117
+ }
2118
+ const select$8 = function DataCleanRoomCollaborationCollectionRepresentationSelect() {
2119
+ return {
2120
+ kind: 'Fragment',
2121
+ version: VERSION$3,
2122
+ private: [],
2123
+ opaque: true
2124
+ };
2125
+ };
2126
+ function equals$3(existing, incoming) {
2127
+ if (JSONStringify(incoming) !== JSONStringify(existing)) {
2128
+ return false;
2129
+ }
2130
+ return true;
2131
+ }
2132
+ const ingest$3 = function DataCleanRoomCollaborationCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
2133
+ if (process.env.NODE_ENV !== 'production') {
2134
+ const validateError = validate$3(input);
2135
+ if (validateError !== null) {
2136
+ throw validateError;
2137
+ }
2138
+ }
2139
+ const key = path.fullPath;
2140
+ const ttlToUse = path.ttl !== undefined ? path.ttl : 100;
2141
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$3, "data-clean-room", VERSION$3, RepresentationType$3, equals$3);
2142
+ return createLink(key);
2143
+ };
2144
+ function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
2145
+ // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
2146
+ const rootKey = fullPathFactory();
2147
+ rootKeySet.set(rootKey, {
2148
+ namespace: keyPrefix,
2149
+ representationName: RepresentationType$3,
2150
+ mergeable: false
2151
+ });
2152
+ }
2153
+
2154
+ function select$7(luvio, params) {
2155
+ return select$8();
2156
+ }
2157
+ function keyBuilder$7(luvio, params) {
2158
+ return keyPrefix + '::DataCleanRoomCollaborationCollectionRepresentation:(' + 'filters:' + params.queryParams.filters + ',' + 'limit:' + params.queryParams.limit + ',' + 'offset:' + params.queryParams.offset + ',' + 'orderBy:' + params.queryParams.orderBy + ')';
2159
+ }
2160
+ function getResponseCacheKeys$4(storeKeyMap, luvio, resourceParams, response) {
2161
+ getTypeCacheKeys$3(storeKeyMap, luvio, response, () => keyBuilder$7(luvio, resourceParams));
2162
+ }
2163
+ function ingestSuccess$4(luvio, resourceParams, response, snapshotRefresh) {
2164
+ const { body } = response;
2165
+ const key = keyBuilder$7(luvio, resourceParams);
2166
+ luvio.storeIngest(key, ingest$3, body);
2167
+ const snapshot = luvio.storeLookup({
2168
+ recordId: key,
2169
+ node: select$7(),
2170
+ variables: {},
2171
+ }, snapshotRefresh);
2172
+ if (process.env.NODE_ENV !== 'production') {
2173
+ if (snapshot.state !== 'Fulfilled') {
2174
+ throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
2175
+ }
2176
+ }
2177
+ deepFreeze(snapshot.data);
2178
+ return snapshot;
2179
+ }
2180
+ function ingestError$3(luvio, params, error, snapshotRefresh) {
2181
+ const key = keyBuilder$7(luvio, params);
2182
+ const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
2183
+ luvio.storeIngestError(key, errorSnapshot);
2184
+ return errorSnapshot;
2185
+ }
2186
+ function createResourceRequest$4(config) {
2187
+ const headers = {};
2188
+ return {
2189
+ baseUri: '/services/data/v64.0',
2190
+ basePath: '/ssot/data-clean-room/collaborations',
2191
+ method: 'get',
2192
+ body: null,
2193
+ urlParams: {},
2194
+ queryParams: config.queryParams,
2195
+ headers,
2196
+ priority: 'normal',
2197
+ };
2198
+ }
2199
+
2200
+ const adapterName$4 = 'getAllDataCleanRoomsPaginated';
2201
+ const getAllDataCleanRoomsPaginated_ConfigPropertyMetadata = [
2202
+ generateParamConfigMetadata('filters', false, 1 /* QueryParameter */, 0 /* String */),
2203
+ generateParamConfigMetadata('limit', false, 1 /* QueryParameter */, 3 /* Integer */),
2204
+ generateParamConfigMetadata('offset', false, 1 /* QueryParameter */, 3 /* Integer */),
2205
+ generateParamConfigMetadata('orderBy', false, 1 /* QueryParameter */, 0 /* String */),
2206
+ ];
2207
+ const getAllDataCleanRoomsPaginated_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, getAllDataCleanRoomsPaginated_ConfigPropertyMetadata);
2208
+ const createResourceParams$4 = /*#__PURE__*/ createResourceParams$b(getAllDataCleanRoomsPaginated_ConfigPropertyMetadata);
2209
+ function keyBuilder$6(luvio, config) {
2210
+ const resourceParams = createResourceParams$4(config);
2211
+ return keyBuilder$7(luvio, resourceParams);
2212
+ }
2213
+ function typeCheckConfig$4(untrustedConfig) {
2214
+ const config = {};
2215
+ typeCheckConfig$b(untrustedConfig, config, getAllDataCleanRoomsPaginated_ConfigPropertyMetadata);
2216
+ return config;
2217
+ }
2218
+ function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
2219
+ if (!untrustedIsObject(untrustedConfig)) {
2220
+ return null;
2221
+ }
2222
+ if (process.env.NODE_ENV !== 'production') {
2223
+ validateConfig(untrustedConfig, configPropertyNames);
2224
+ }
2225
+ const config = typeCheckConfig$4(untrustedConfig);
2226
+ if (!areRequiredParametersPresent(config, configPropertyNames)) {
2227
+ return null;
2228
+ }
2229
+ return config;
2230
+ }
2231
+ function adapterFragment$3(luvio, config) {
2232
+ createResourceParams$4(config);
2233
+ return select$7();
2234
+ }
2235
+ function onFetchResponseSuccess$3(luvio, config, resourceParams, response) {
2236
+ const snapshot = ingestSuccess$4(luvio, resourceParams, response, {
2237
+ config,
2238
+ resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
2239
+ });
2240
+ return luvio.storeBroadcast().then(() => snapshot);
2241
+ }
2242
+ function onFetchResponseError$3(luvio, config, resourceParams, response) {
2243
+ const snapshot = ingestError$3(luvio, resourceParams, response, {
2244
+ config,
2245
+ resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
2246
+ });
2247
+ return luvio.storeBroadcast().then(() => snapshot);
2248
+ }
2249
+ function buildNetworkSnapshot$4(luvio, config, options) {
2250
+ const resourceParams = createResourceParams$4(config);
2251
+ const request = createResourceRequest$4(resourceParams);
2252
+ return luvio.dispatchResourceRequest(request, options)
2253
+ .then((response) => {
2254
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess$3(luvio, config, resourceParams, response), () => {
2255
+ const cache = new StoreKeyMap();
2256
+ getResponseCacheKeys$4(cache, luvio, resourceParams, response.body);
2257
+ return cache;
2258
+ });
2259
+ }, (response) => {
2260
+ return luvio.handleErrorResponse(() => onFetchResponseError$3(luvio, config, resourceParams, response));
2261
+ });
2262
+ }
2263
+ function buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext) {
2264
+ return buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext, buildNetworkSnapshot$4, undefined, false);
2265
+ }
2266
+ function buildCachedSnapshotCachePolicy$3(context, storeLookup) {
2267
+ const { luvio, config } = context;
2268
+ const selector = {
2269
+ recordId: keyBuilder$6(luvio, config),
2270
+ node: adapterFragment$3(luvio, config),
2271
+ variables: {},
2272
+ };
2273
+ const cacheSnapshot = storeLookup(selector, {
2274
+ config,
2275
+ resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
2276
+ });
2277
+ return cacheSnapshot;
2278
+ }
2279
+ const getAllDataCleanRoomsPaginatedAdapterFactory = (luvio) => function dataCleanRoom__getAllDataCleanRoomsPaginated(untrustedConfig, requestContext) {
2280
+ const config = validateAdapterConfig$4(untrustedConfig, getAllDataCleanRoomsPaginated_ConfigPropertyNames);
2281
+ // Invalid or incomplete config
2282
+ if (config === null) {
2283
+ return null;
2284
+ }
2285
+ return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
2286
+ buildCachedSnapshotCachePolicy$3, buildNetworkSnapshotCachePolicy$3);
2287
+ };
2288
+
2289
+ const VERSION$2 = "52237eeecd4f8f11ae22e265d9abe5ca";
2290
+ function validate$2(obj, path = 'DataCleanRoomProviderCollectionRepresentation') {
2291
+ const v_error = (() => {
2292
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2293
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
2294
+ }
2295
+ if (obj.currentPageUrl !== undefined) {
2296
+ const obj_currentPageUrl = obj.currentPageUrl;
2297
+ const path_currentPageUrl = path + '.currentPageUrl';
2298
+ if (typeof obj_currentPageUrl !== 'string') {
2299
+ return new TypeError('Expected "string" but received "' + typeof obj_currentPageUrl + '" (at "' + path_currentPageUrl + '")');
2300
+ }
2301
+ }
2302
+ if (obj.limit !== undefined) {
2303
+ const obj_limit = obj.limit;
2304
+ const path_limit = path + '.limit';
2305
+ if (typeof obj_limit !== 'number' || (typeof obj_limit === 'number' && Math.floor(obj_limit) !== obj_limit)) {
2306
+ return new TypeError('Expected "integer" but received "' + typeof obj_limit + '" (at "' + path_limit + '")');
2307
+ }
2308
+ }
2309
+ if (obj.nextPageUrl !== undefined) {
2310
+ const obj_nextPageUrl = obj.nextPageUrl;
2311
+ const path_nextPageUrl = path + '.nextPageUrl';
2312
+ let obj_nextPageUrl_union0 = null;
2313
+ const obj_nextPageUrl_union0_error = (() => {
2314
+ if (typeof obj_nextPageUrl !== 'string') {
2315
+ return new TypeError('Expected "string" but received "' + typeof obj_nextPageUrl + '" (at "' + path_nextPageUrl + '")');
2316
+ }
2317
+ })();
2318
+ if (obj_nextPageUrl_union0_error != null) {
2319
+ obj_nextPageUrl_union0 = obj_nextPageUrl_union0_error.message;
2320
+ }
2321
+ let obj_nextPageUrl_union1 = null;
2322
+ const obj_nextPageUrl_union1_error = (() => {
2323
+ if (obj_nextPageUrl !== null) {
2324
+ return new TypeError('Expected "null" but received "' + typeof obj_nextPageUrl + '" (at "' + path_nextPageUrl + '")');
2325
+ }
2326
+ })();
2327
+ if (obj_nextPageUrl_union1_error != null) {
2328
+ obj_nextPageUrl_union1 = obj_nextPageUrl_union1_error.message;
2329
+ }
2330
+ if (obj_nextPageUrl_union0 && obj_nextPageUrl_union1) {
2331
+ let message = 'Object doesn\'t match union (at "' + path_nextPageUrl + '")';
2332
+ message += '\n' + obj_nextPageUrl_union0.split('\n').map((line) => '\t' + line).join('\n');
2333
+ message += '\n' + obj_nextPageUrl_union1.split('\n').map((line) => '\t' + line).join('\n');
2334
+ return new TypeError(message);
2335
+ }
2336
+ }
2337
+ if (obj.offset !== undefined) {
2338
+ const obj_offset = obj.offset;
2339
+ const path_offset = path + '.offset';
2340
+ if (typeof obj_offset !== 'number' || (typeof obj_offset === 'number' && Math.floor(obj_offset) !== obj_offset)) {
2341
+ return new TypeError('Expected "integer" but received "' + typeof obj_offset + '" (at "' + path_offset + '")');
2342
+ }
2343
+ }
2344
+ const obj_providers = obj.providers;
2345
+ const path_providers = path + '.providers';
2346
+ if (!ArrayIsArray(obj_providers)) {
2347
+ return new TypeError('Expected "array" but received "' + typeof obj_providers + '" (at "' + path_providers + '")');
2348
+ }
2349
+ for (let i = 0; i < obj_providers.length; i++) {
2350
+ const obj_providers_item = obj_providers[i];
2351
+ const path_providers_item = path_providers + '[' + i + ']';
2352
+ if (typeof obj_providers_item !== 'object') {
2353
+ return new TypeError('Expected "object" but received "' + typeof obj_providers_item + '" (at "' + path_providers_item + '")');
2354
+ }
2355
+ }
2356
+ if (obj.totalSize !== undefined) {
2357
+ const obj_totalSize = obj.totalSize;
2358
+ const path_totalSize = path + '.totalSize';
2359
+ if (typeof obj_totalSize !== 'number' || (typeof obj_totalSize === 'number' && Math.floor(obj_totalSize) !== obj_totalSize)) {
2360
+ return new TypeError('Expected "integer" but received "' + typeof obj_totalSize + '" (at "' + path_totalSize + '")');
2361
+ }
2362
+ }
2363
+ })();
2364
+ return v_error === undefined ? null : v_error;
2365
+ }
2366
+ const RepresentationType$2 = 'DataCleanRoomProviderCollectionRepresentation';
2367
+ function normalize$2(input, existing, path, luvio, store, timestamp) {
2368
+ const input_providers = input.providers;
2369
+ const input_providers_id = path.fullPath + '__providers';
2370
+ for (let i = 0; i < input_providers.length; i++) {
2371
+ const input_providers_item = input_providers[i];
2372
+ let input_providers_item_id = input_providers_id + '__' + i;
2373
+ input_providers[i] = ingest$6(input_providers_item, {
2374
+ fullPath: input_providers_item_id,
2375
+ propertyName: i,
2376
+ parent: {
2377
+ data: input,
2378
+ key: path.fullPath,
2379
+ existing: existing,
2380
+ },
2381
+ ttl: path.ttl
2382
+ }, luvio, store, timestamp);
2383
+ }
2384
+ return input;
2385
+ }
2386
+ const select$6 = function DataCleanRoomProviderCollectionRepresentationSelect() {
2387
+ return {
2388
+ kind: 'Fragment',
2389
+ version: VERSION$2,
2390
+ private: [],
2391
+ selections: [
2392
+ {
2393
+ name: 'currentPageUrl',
2394
+ kind: 'Scalar',
2395
+ required: false
2396
+ },
2397
+ {
2398
+ name: 'limit',
2399
+ kind: 'Scalar',
2400
+ required: false
2401
+ },
2402
+ {
2403
+ name: 'nextPageUrl',
2404
+ kind: 'Scalar',
2405
+ required: false
2406
+ },
2407
+ {
2408
+ name: 'offset',
2409
+ kind: 'Scalar',
2410
+ required: false
2411
+ },
2412
+ {
2413
+ name: 'providers',
2414
+ kind: 'Link',
2415
+ plural: true,
2416
+ fragment: select$e()
2417
+ },
2418
+ {
2419
+ name: 'totalSize',
2420
+ kind: 'Scalar',
2421
+ required: false
2422
+ }
2423
+ ]
2424
+ };
2425
+ };
2426
+ function equals$2(existing, incoming) {
2427
+ const existing_limit = existing.limit;
2428
+ const incoming_limit = incoming.limit;
2429
+ // if at least one of these optionals is defined
2430
+ if (existing_limit !== undefined || incoming_limit !== undefined) {
2431
+ // if one of these is not defined we know the other is defined and therefore
2432
+ // not equal
2433
+ if (existing_limit === undefined || incoming_limit === undefined) {
2434
+ return false;
2435
+ }
2436
+ if (!(existing_limit === incoming_limit)) {
2437
+ return false;
2438
+ }
2439
+ }
2440
+ const existing_offset = existing.offset;
2441
+ const incoming_offset = incoming.offset;
2442
+ // if at least one of these optionals is defined
2443
+ if (existing_offset !== undefined || incoming_offset !== undefined) {
2444
+ // if one of these is not defined we know the other is defined and therefore
2445
+ // not equal
2446
+ if (existing_offset === undefined || incoming_offset === undefined) {
2447
+ return false;
2448
+ }
2449
+ if (!(existing_offset === incoming_offset)) {
2450
+ return false;
2451
+ }
2452
+ }
2453
+ const existing_totalSize = existing.totalSize;
2454
+ const incoming_totalSize = incoming.totalSize;
2455
+ // if at least one of these optionals is defined
2456
+ if (existing_totalSize !== undefined || incoming_totalSize !== undefined) {
2457
+ // if one of these is not defined we know the other is defined and therefore
2458
+ // not equal
2459
+ if (existing_totalSize === undefined || incoming_totalSize === undefined) {
2460
+ return false;
2461
+ }
2462
+ if (!(existing_totalSize === incoming_totalSize)) {
2463
+ return false;
2464
+ }
2465
+ }
2466
+ const existing_currentPageUrl = existing.currentPageUrl;
2467
+ const incoming_currentPageUrl = incoming.currentPageUrl;
2468
+ // if at least one of these optionals is defined
2469
+ if (existing_currentPageUrl !== undefined || incoming_currentPageUrl !== undefined) {
2470
+ // if one of these is not defined we know the other is defined and therefore
2471
+ // not equal
2472
+ if (existing_currentPageUrl === undefined || incoming_currentPageUrl === undefined) {
2473
+ return false;
2474
+ }
2475
+ if (!(existing_currentPageUrl === incoming_currentPageUrl)) {
2476
+ return false;
2477
+ }
2478
+ }
2479
+ const existing_nextPageUrl = existing.nextPageUrl;
2480
+ const incoming_nextPageUrl = incoming.nextPageUrl;
2481
+ // if at least one of these optionals is defined
2482
+ if (existing_nextPageUrl !== undefined || incoming_nextPageUrl !== undefined) {
2483
+ // if one of these is not defined we know the other is defined and therefore
2484
+ // not equal
2485
+ if (existing_nextPageUrl === undefined || incoming_nextPageUrl === undefined) {
2486
+ return false;
2487
+ }
2488
+ if (!(existing_nextPageUrl === incoming_nextPageUrl)) {
2489
+ return false;
2490
+ }
2491
+ }
2492
+ const existing_providers = existing.providers;
2493
+ const incoming_providers = incoming.providers;
2494
+ const equals_providers_items = equalsArray(existing_providers, incoming_providers, (existing_providers_item, incoming_providers_item) => {
2495
+ if (!(existing_providers_item.__ref === incoming_providers_item.__ref)) {
2496
+ return false;
2497
+ }
2498
+ });
2499
+ if (equals_providers_items === false) {
2500
+ return false;
2501
+ }
2502
+ return true;
2503
+ }
2504
+ const ingest$2 = function DataCleanRoomProviderCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
2505
+ if (process.env.NODE_ENV !== 'production') {
2506
+ const validateError = validate$2(input);
2507
+ if (validateError !== null) {
2508
+ throw validateError;
2509
+ }
2510
+ }
2511
+ const key = path.fullPath;
2512
+ const ttlToUse = path.ttl !== undefined ? path.ttl : 100;
2513
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$2, "data-clean-room", VERSION$2, RepresentationType$2, equals$2);
2514
+ return createLink(key);
2515
+ };
2516
+ function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
2517
+ // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
2518
+ const rootKey = fullPathFactory();
2519
+ rootKeySet.set(rootKey, {
2520
+ namespace: keyPrefix,
2521
+ representationName: RepresentationType$2,
2522
+ mergeable: false
2523
+ });
2524
+ const input_providers_length = input.providers.length;
2525
+ for (let i = 0; i < input_providers_length; i++) {
2526
+ getTypeCacheKeys$6(rootKeySet, luvio, input.providers[i]);
2527
+ }
2528
+ }
2529
+
2530
+ function select$5(luvio, params) {
2531
+ return select$6();
2532
+ }
2533
+ function keyBuilder$5(luvio, params) {
2534
+ return keyPrefix + '::DataCleanRoomProviderCollectionRepresentation:(' + 'filters:' + params.queryParams.filters + ',' + 'limit:' + params.queryParams.limit + ',' + 'offset:' + params.queryParams.offset + ',' + 'orderBy:' + params.queryParams.orderBy + ')';
2535
+ }
2536
+ function getResponseCacheKeys$3(storeKeyMap, luvio, resourceParams, response) {
2537
+ getTypeCacheKeys$2(storeKeyMap, luvio, response, () => keyBuilder$5(luvio, resourceParams));
2538
+ }
2539
+ function ingestSuccess$3(luvio, resourceParams, response, snapshotRefresh) {
2540
+ const { body } = response;
2541
+ const key = keyBuilder$5(luvio, resourceParams);
2542
+ luvio.storeIngest(key, ingest$2, body);
2543
+ const snapshot = luvio.storeLookup({
2544
+ recordId: key,
2545
+ node: select$5(),
2546
+ variables: {},
2547
+ }, snapshotRefresh);
2548
+ if (process.env.NODE_ENV !== 'production') {
2549
+ if (snapshot.state !== 'Fulfilled') {
2550
+ throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
2551
+ }
2552
+ }
2553
+ deepFreeze(snapshot.data);
2554
+ return snapshot;
2555
+ }
2556
+ function ingestError$2(luvio, params, error, snapshotRefresh) {
2557
+ const key = keyBuilder$5(luvio, params);
2558
+ const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
2559
+ luvio.storeIngestError(key, errorSnapshot);
2560
+ return errorSnapshot;
2561
+ }
2562
+ function createResourceRequest$3(config) {
2563
+ const headers = {};
2564
+ return {
2565
+ baseUri: '/services/data/v64.0',
2566
+ basePath: '/ssot/data-clean-room/providers',
2567
+ method: 'get',
2568
+ body: null,
2569
+ urlParams: {},
2570
+ queryParams: config.queryParams,
2571
+ headers,
2572
+ priority: 'normal',
2573
+ };
2574
+ }
2575
+
2576
+ const adapterName$3 = 'getDataCleanRoomProvidersPaginated';
2577
+ const getDataCleanRoomProvidersPaginated_ConfigPropertyMetadata = [
2578
+ generateParamConfigMetadata('filters', false, 1 /* QueryParameter */, 0 /* String */),
2579
+ generateParamConfigMetadata('limit', false, 1 /* QueryParameter */, 3 /* Integer */),
2580
+ generateParamConfigMetadata('offset', false, 1 /* QueryParameter */, 3 /* Integer */),
2581
+ generateParamConfigMetadata('orderBy', false, 1 /* QueryParameter */, 0 /* String */),
2582
+ ];
2583
+ const getDataCleanRoomProvidersPaginated_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, getDataCleanRoomProvidersPaginated_ConfigPropertyMetadata);
2584
+ const createResourceParams$3 = /*#__PURE__*/ createResourceParams$b(getDataCleanRoomProvidersPaginated_ConfigPropertyMetadata);
2585
+ function keyBuilder$4(luvio, config) {
2586
+ const resourceParams = createResourceParams$3(config);
2587
+ return keyBuilder$5(luvio, resourceParams);
2588
+ }
2589
+ function typeCheckConfig$3(untrustedConfig) {
2590
+ const config = {};
2591
+ typeCheckConfig$b(untrustedConfig, config, getDataCleanRoomProvidersPaginated_ConfigPropertyMetadata);
2592
+ return config;
2593
+ }
2594
+ function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
2595
+ if (!untrustedIsObject(untrustedConfig)) {
2596
+ return null;
2597
+ }
2598
+ if (process.env.NODE_ENV !== 'production') {
2599
+ validateConfig(untrustedConfig, configPropertyNames);
2600
+ }
2601
+ const config = typeCheckConfig$3(untrustedConfig);
2602
+ if (!areRequiredParametersPresent(config, configPropertyNames)) {
2603
+ return null;
2604
+ }
2605
+ return config;
2606
+ }
2607
+ function adapterFragment$2(luvio, config) {
2608
+ createResourceParams$3(config);
2609
+ return select$5();
2610
+ }
2611
+ function onFetchResponseSuccess$2(luvio, config, resourceParams, response) {
2612
+ const snapshot = ingestSuccess$3(luvio, resourceParams, response, {
2613
+ config,
2614
+ resolve: () => buildNetworkSnapshot$3(luvio, config, snapshotRefreshOptions)
2615
+ });
2616
+ return luvio.storeBroadcast().then(() => snapshot);
2617
+ }
2618
+ function onFetchResponseError$2(luvio, config, resourceParams, response) {
2619
+ const snapshot = ingestError$2(luvio, resourceParams, response, {
2620
+ config,
2621
+ resolve: () => buildNetworkSnapshot$3(luvio, config, snapshotRefreshOptions)
2622
+ });
2623
+ return luvio.storeBroadcast().then(() => snapshot);
2624
+ }
2625
+ function buildNetworkSnapshot$3(luvio, config, options) {
2626
+ const resourceParams = createResourceParams$3(config);
2627
+ const request = createResourceRequest$3(resourceParams);
2628
+ return luvio.dispatchResourceRequest(request, options)
2629
+ .then((response) => {
2630
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess$2(luvio, config, resourceParams, response), () => {
2631
+ const cache = new StoreKeyMap();
2632
+ getResponseCacheKeys$3(cache, luvio, resourceParams, response.body);
2633
+ return cache;
2634
+ });
2635
+ }, (response) => {
2636
+ return luvio.handleErrorResponse(() => onFetchResponseError$2(luvio, config, resourceParams, response));
2637
+ });
2638
+ }
2639
+ function buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext) {
2640
+ return buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext, buildNetworkSnapshot$3, undefined, false);
2641
+ }
2642
+ function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
2643
+ const { luvio, config } = context;
2644
+ const selector = {
2645
+ recordId: keyBuilder$4(luvio, config),
2646
+ node: adapterFragment$2(luvio, config),
2647
+ variables: {},
2648
+ };
2649
+ const cacheSnapshot = storeLookup(selector, {
2650
+ config,
2651
+ resolve: () => buildNetworkSnapshot$3(luvio, config, snapshotRefreshOptions)
2652
+ });
2653
+ return cacheSnapshot;
2654
+ }
2655
+ const getDataCleanRoomProvidersPaginatedAdapterFactory = (luvio) => function dataCleanRoom__getDataCleanRoomProvidersPaginated(untrustedConfig, requestContext) {
2656
+ const config = validateAdapterConfig$3(untrustedConfig, getDataCleanRoomProvidersPaginated_ConfigPropertyNames);
2657
+ // Invalid or incomplete config
2658
+ if (config === null) {
2659
+ return null;
2660
+ }
2661
+ return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
2662
+ buildCachedSnapshotCachePolicy$2, buildNetworkSnapshotCachePolicy$2);
2663
+ };
2664
+
2665
+ const VERSION$1 = "6fb37e337652e88218f2171d1e56647b";
2666
+ function validate$1(obj, path = 'DataCleanRoomSpecificationCollectionRepresentation') {
2667
+ const v_error = (() => {
2668
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2669
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
2670
+ }
2671
+ const obj_cleanroomSpecifications = obj.cleanroomSpecifications;
2672
+ const path_cleanroomSpecifications = path + '.cleanroomSpecifications';
2673
+ if (!ArrayIsArray(obj_cleanroomSpecifications)) {
2674
+ return new TypeError('Expected "array" but received "' + typeof obj_cleanroomSpecifications + '" (at "' + path_cleanroomSpecifications + '")');
2675
+ }
2676
+ for (let i = 0; i < obj_cleanroomSpecifications.length; i++) {
2677
+ const obj_cleanroomSpecifications_item = obj_cleanroomSpecifications[i];
2678
+ const path_cleanroomSpecifications_item = path_cleanroomSpecifications + '[' + i + ']';
2679
+ if (typeof obj_cleanroomSpecifications_item !== 'object') {
2680
+ return new TypeError('Expected "object" but received "' + typeof obj_cleanroomSpecifications_item + '" (at "' + path_cleanroomSpecifications_item + '")');
2681
+ }
2682
+ }
2683
+ if (obj.currentPageUrl !== undefined) {
2684
+ const obj_currentPageUrl = obj.currentPageUrl;
2685
+ const path_currentPageUrl = path + '.currentPageUrl';
2686
+ if (typeof obj_currentPageUrl !== 'string') {
2687
+ return new TypeError('Expected "string" but received "' + typeof obj_currentPageUrl + '" (at "' + path_currentPageUrl + '")');
2688
+ }
2689
+ }
2690
+ const obj_limit = obj.limit;
2691
+ const path_limit = path + '.limit';
2692
+ if (typeof obj_limit !== 'number' || (typeof obj_limit === 'number' && Math.floor(obj_limit) !== obj_limit)) {
2693
+ return new TypeError('Expected "integer" but received "' + typeof obj_limit + '" (at "' + path_limit + '")');
2694
+ }
2695
+ if (obj.nextPageUrl !== undefined) {
2696
+ const obj_nextPageUrl = obj.nextPageUrl;
2697
+ const path_nextPageUrl = path + '.nextPageUrl';
2698
+ let obj_nextPageUrl_union0 = null;
2699
+ const obj_nextPageUrl_union0_error = (() => {
2700
+ if (typeof obj_nextPageUrl !== 'string') {
2701
+ return new TypeError('Expected "string" but received "' + typeof obj_nextPageUrl + '" (at "' + path_nextPageUrl + '")');
2702
+ }
2703
+ })();
2704
+ if (obj_nextPageUrl_union0_error != null) {
2705
+ obj_nextPageUrl_union0 = obj_nextPageUrl_union0_error.message;
2706
+ }
2707
+ let obj_nextPageUrl_union1 = null;
2708
+ const obj_nextPageUrl_union1_error = (() => {
2709
+ if (obj_nextPageUrl !== null) {
2710
+ return new TypeError('Expected "null" but received "' + typeof obj_nextPageUrl + '" (at "' + path_nextPageUrl + '")');
2711
+ }
2712
+ })();
2713
+ if (obj_nextPageUrl_union1_error != null) {
2714
+ obj_nextPageUrl_union1 = obj_nextPageUrl_union1_error.message;
2715
+ }
2716
+ if (obj_nextPageUrl_union0 && obj_nextPageUrl_union1) {
2717
+ let message = 'Object doesn\'t match union (at "' + path_nextPageUrl + '")';
2718
+ message += '\n' + obj_nextPageUrl_union0.split('\n').map((line) => '\t' + line).join('\n');
2719
+ message += '\n' + obj_nextPageUrl_union1.split('\n').map((line) => '\t' + line).join('\n');
2720
+ return new TypeError(message);
2721
+ }
2722
+ }
2723
+ const obj_offset = obj.offset;
2724
+ const path_offset = path + '.offset';
2725
+ if (typeof obj_offset !== 'number' || (typeof obj_offset === 'number' && Math.floor(obj_offset) !== obj_offset)) {
2726
+ return new TypeError('Expected "integer" but received "' + typeof obj_offset + '" (at "' + path_offset + '")');
2727
+ }
2728
+ if (obj.totalSize !== undefined) {
2729
+ const obj_totalSize = obj.totalSize;
2730
+ const path_totalSize = path + '.totalSize';
2731
+ if (typeof obj_totalSize !== 'number' || (typeof obj_totalSize === 'number' && Math.floor(obj_totalSize) !== obj_totalSize)) {
2732
+ return new TypeError('Expected "integer" but received "' + typeof obj_totalSize + '" (at "' + path_totalSize + '")');
2733
+ }
2734
+ }
2735
+ })();
2736
+ return v_error === undefined ? null : v_error;
2737
+ }
2738
+ const RepresentationType$1 = 'DataCleanRoomSpecificationCollectionRepresentation';
2739
+ function normalize$1(input, existing, path, luvio, store, timestamp) {
2740
+ const input_cleanroomSpecifications = input.cleanroomSpecifications;
2741
+ const input_cleanroomSpecifications_id = path.fullPath + '__cleanroomSpecifications';
2742
+ for (let i = 0; i < input_cleanroomSpecifications.length; i++) {
2743
+ const input_cleanroomSpecifications_item = input_cleanroomSpecifications[i];
2744
+ let input_cleanroomSpecifications_item_id = input_cleanroomSpecifications_id + '__' + i;
2745
+ input_cleanroomSpecifications[i] = ingest$7(input_cleanroomSpecifications_item, {
2746
+ fullPath: input_cleanroomSpecifications_item_id,
2747
+ propertyName: i,
2748
+ parent: {
2749
+ data: input,
2750
+ key: path.fullPath,
2751
+ existing: existing,
2752
+ },
2753
+ ttl: path.ttl
2754
+ }, luvio, store, timestamp);
2755
+ }
2756
+ return input;
2757
+ }
2758
+ const select$4 = function DataCleanRoomSpecificationCollectionRepresentationSelect() {
2759
+ return {
2760
+ kind: 'Fragment',
2761
+ version: VERSION$1,
2762
+ private: [],
2763
+ selections: [
2764
+ {
2765
+ name: 'cleanroomSpecifications',
2766
+ kind: 'Link',
2767
+ plural: true,
2768
+ fragment: select$g()
2769
+ },
2770
+ {
2771
+ name: 'currentPageUrl',
2772
+ kind: 'Scalar',
2773
+ required: false
2774
+ },
2775
+ {
2776
+ name: 'limit',
2777
+ kind: 'Scalar'
2778
+ },
2779
+ {
2780
+ name: 'nextPageUrl',
2781
+ kind: 'Scalar',
2782
+ required: false
2783
+ },
2784
+ {
2785
+ name: 'offset',
2786
+ kind: 'Scalar'
2787
+ },
2788
+ {
2789
+ name: 'totalSize',
2790
+ kind: 'Scalar',
2791
+ required: false
2792
+ }
2793
+ ]
2794
+ };
2795
+ };
2796
+ function equals$1(existing, incoming) {
2797
+ const existing_limit = existing.limit;
2798
+ const incoming_limit = incoming.limit;
2799
+ if (!(existing_limit === incoming_limit)) {
2800
+ return false;
2801
+ }
2802
+ const existing_offset = existing.offset;
2803
+ const incoming_offset = incoming.offset;
2804
+ if (!(existing_offset === incoming_offset)) {
2805
+ return false;
2806
+ }
2807
+ const existing_totalSize = existing.totalSize;
2808
+ const incoming_totalSize = incoming.totalSize;
2809
+ // if at least one of these optionals is defined
2810
+ if (existing_totalSize !== undefined || incoming_totalSize !== undefined) {
2811
+ // if one of these is not defined we know the other is defined and therefore
2812
+ // not equal
2813
+ if (existing_totalSize === undefined || incoming_totalSize === undefined) {
2814
+ return false;
2815
+ }
2816
+ if (!(existing_totalSize === incoming_totalSize)) {
2817
+ return false;
2818
+ }
2819
+ }
2820
+ const existing_currentPageUrl = existing.currentPageUrl;
2821
+ const incoming_currentPageUrl = incoming.currentPageUrl;
2822
+ // if at least one of these optionals is defined
2823
+ if (existing_currentPageUrl !== undefined || incoming_currentPageUrl !== undefined) {
2824
+ // if one of these is not defined we know the other is defined and therefore
2825
+ // not equal
2826
+ if (existing_currentPageUrl === undefined || incoming_currentPageUrl === undefined) {
2827
+ return false;
2828
+ }
2829
+ if (!(existing_currentPageUrl === incoming_currentPageUrl)) {
2830
+ return false;
2831
+ }
2832
+ }
2833
+ const existing_cleanroomSpecifications = existing.cleanroomSpecifications;
2834
+ const incoming_cleanroomSpecifications = incoming.cleanroomSpecifications;
2835
+ const equals_cleanroomSpecifications_items = equalsArray(existing_cleanroomSpecifications, incoming_cleanroomSpecifications, (existing_cleanroomSpecifications_item, incoming_cleanroomSpecifications_item) => {
2836
+ if (!(existing_cleanroomSpecifications_item.__ref === incoming_cleanroomSpecifications_item.__ref)) {
2837
+ return false;
2838
+ }
2839
+ });
2840
+ if (equals_cleanroomSpecifications_items === false) {
2841
+ return false;
2842
+ }
2843
+ const existing_nextPageUrl = existing.nextPageUrl;
2844
+ const incoming_nextPageUrl = incoming.nextPageUrl;
2845
+ // if at least one of these optionals is defined
2846
+ if (existing_nextPageUrl !== undefined || incoming_nextPageUrl !== undefined) {
2847
+ // if one of these is not defined we know the other is defined and therefore
2848
+ // not equal
2849
+ if (existing_nextPageUrl === undefined || incoming_nextPageUrl === undefined) {
2850
+ return false;
2851
+ }
2852
+ if (!(existing_nextPageUrl === incoming_nextPageUrl)) {
2853
+ return false;
2854
+ }
2855
+ }
2856
+ return true;
2857
+ }
2858
+ const ingest$1 = function DataCleanRoomSpecificationCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
2859
+ if (process.env.NODE_ENV !== 'production') {
2860
+ const validateError = validate$1(input);
2861
+ if (validateError !== null) {
2862
+ throw validateError;
2863
+ }
2864
+ }
2865
+ const key = path.fullPath;
2866
+ const ttlToUse = path.ttl !== undefined ? path.ttl : 100;
2867
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$1, "data-clean-room", VERSION$1, RepresentationType$1, equals$1);
2868
+ return createLink(key);
2869
+ };
2870
+ function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
2871
+ // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
2872
+ const rootKey = fullPathFactory();
2873
+ rootKeySet.set(rootKey, {
2874
+ namespace: keyPrefix,
2875
+ representationName: RepresentationType$1,
2876
+ mergeable: false
2877
+ });
2878
+ const input_cleanroomSpecifications_length = input.cleanroomSpecifications.length;
2879
+ for (let i = 0; i < input_cleanroomSpecifications_length; i++) {
2880
+ getTypeCacheKeys$7(rootKeySet, luvio, input.cleanroomSpecifications[i]);
2881
+ }
2882
+ }
2883
+
2884
+ function select$3(luvio, params) {
2885
+ return select$4();
2886
+ }
2887
+ function keyBuilder$3(luvio, params) {
2888
+ return keyPrefix + '::DataCleanRoomSpecificationCollectionRepresentation:(' + 'filters:' + params.queryParams.filters + ',' + 'limit:' + params.queryParams.limit + ',' + 'offset:' + params.queryParams.offset + ',' + 'orderBy:' + params.queryParams.orderBy + ')';
2889
+ }
2890
+ function getResponseCacheKeys$2(storeKeyMap, luvio, resourceParams, response) {
2891
+ getTypeCacheKeys$1(storeKeyMap, luvio, response, () => keyBuilder$3(luvio, resourceParams));
2892
+ }
2893
+ function ingestSuccess$2(luvio, resourceParams, response, snapshotRefresh) {
2894
+ const { body } = response;
2895
+ const key = keyBuilder$3(luvio, resourceParams);
2896
+ luvio.storeIngest(key, ingest$1, body);
2897
+ const snapshot = luvio.storeLookup({
2898
+ recordId: key,
2899
+ node: select$3(),
2900
+ variables: {},
2901
+ }, snapshotRefresh);
2902
+ if (process.env.NODE_ENV !== 'production') {
2903
+ if (snapshot.state !== 'Fulfilled') {
2904
+ throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
2905
+ }
2906
+ }
2907
+ deepFreeze(snapshot.data);
2908
+ return snapshot;
2909
+ }
2910
+ function ingestError$1(luvio, params, error, snapshotRefresh) {
2911
+ const key = keyBuilder$3(luvio, params);
2912
+ const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
2913
+ luvio.storeIngestError(key, errorSnapshot);
2914
+ return errorSnapshot;
2915
+ }
2916
+ function createResourceRequest$2(config) {
2917
+ const headers = {};
2918
+ return {
2919
+ baseUri: '/services/data/v64.0',
2920
+ basePath: '/ssot/data-clean-room/specifications',
2921
+ method: 'get',
2922
+ body: null,
2923
+ urlParams: {},
2924
+ queryParams: config.queryParams,
2925
+ headers,
2926
+ priority: 'normal',
2927
+ };
2928
+ }
2929
+
2930
+ const adapterName$2 = 'getDataCleanRoomSpecificationsPaginated';
2931
+ const getDataCleanRoomSpecificationsPaginated_ConfigPropertyMetadata = [
2932
+ generateParamConfigMetadata('filters', false, 1 /* QueryParameter */, 0 /* String */),
2933
+ generateParamConfigMetadata('limit', false, 1 /* QueryParameter */, 3 /* Integer */),
2934
+ generateParamConfigMetadata('offset', false, 1 /* QueryParameter */, 3 /* Integer */),
2935
+ generateParamConfigMetadata('orderBy', false, 1 /* QueryParameter */, 0 /* String */),
2936
+ ];
2937
+ const getDataCleanRoomSpecificationsPaginated_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, getDataCleanRoomSpecificationsPaginated_ConfigPropertyMetadata);
2938
+ const createResourceParams$2 = /*#__PURE__*/ createResourceParams$b(getDataCleanRoomSpecificationsPaginated_ConfigPropertyMetadata);
2939
+ function keyBuilder$2(luvio, config) {
2940
+ const resourceParams = createResourceParams$2(config);
2941
+ return keyBuilder$3(luvio, resourceParams);
2942
+ }
2943
+ function typeCheckConfig$2(untrustedConfig) {
2944
+ const config = {};
2945
+ typeCheckConfig$b(untrustedConfig, config, getDataCleanRoomSpecificationsPaginated_ConfigPropertyMetadata);
2946
+ return config;
2947
+ }
2948
+ function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
2949
+ if (!untrustedIsObject(untrustedConfig)) {
2950
+ return null;
2951
+ }
2952
+ if (process.env.NODE_ENV !== 'production') {
2953
+ validateConfig(untrustedConfig, configPropertyNames);
2954
+ }
2955
+ const config = typeCheckConfig$2(untrustedConfig);
2956
+ if (!areRequiredParametersPresent(config, configPropertyNames)) {
2957
+ return null;
2958
+ }
2959
+ return config;
2960
+ }
2961
+ function adapterFragment$1(luvio, config) {
2962
+ createResourceParams$2(config);
2963
+ return select$3();
2964
+ }
2965
+ function onFetchResponseSuccess$1(luvio, config, resourceParams, response) {
2966
+ const snapshot = ingestSuccess$2(luvio, resourceParams, response, {
2967
+ config,
2968
+ resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
2969
+ });
2970
+ return luvio.storeBroadcast().then(() => snapshot);
2971
+ }
2972
+ function onFetchResponseError$1(luvio, config, resourceParams, response) {
2973
+ const snapshot = ingestError$1(luvio, resourceParams, response, {
2974
+ config,
2975
+ resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
2976
+ });
2977
+ return luvio.storeBroadcast().then(() => snapshot);
2978
+ }
2979
+ function buildNetworkSnapshot$2(luvio, config, options) {
2980
+ const resourceParams = createResourceParams$2(config);
2981
+ const request = createResourceRequest$2(resourceParams);
2982
+ return luvio.dispatchResourceRequest(request, options)
2983
+ .then((response) => {
2984
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess$1(luvio, config, resourceParams, response), () => {
2985
+ const cache = new StoreKeyMap();
2986
+ getResponseCacheKeys$2(cache, luvio, resourceParams, response.body);
2987
+ return cache;
2988
+ });
2989
+ }, (response) => {
2990
+ return luvio.handleErrorResponse(() => onFetchResponseError$1(luvio, config, resourceParams, response));
2991
+ });
2992
+ }
2993
+ function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
2994
+ return buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext, buildNetworkSnapshot$2, undefined, false);
2995
+ }
2996
+ function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
2997
+ const { luvio, config } = context;
2998
+ const selector = {
2999
+ recordId: keyBuilder$2(luvio, config),
3000
+ node: adapterFragment$1(luvio, config),
3001
+ variables: {},
3002
+ };
3003
+ const cacheSnapshot = storeLookup(selector, {
3004
+ config,
3005
+ resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
3006
+ });
3007
+ return cacheSnapshot;
3008
+ }
3009
+ const getDataCleanRoomSpecificationsPaginatedAdapterFactory = (luvio) => function dataCleanRoom__getDataCleanRoomSpecificationsPaginated(untrustedConfig, requestContext) {
3010
+ const config = validateAdapterConfig$2(untrustedConfig, getDataCleanRoomSpecificationsPaginated_ConfigPropertyNames);
3011
+ // Invalid or incomplete config
3012
+ if (config === null) {
3013
+ return null;
3014
+ }
3015
+ return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
3016
+ buildCachedSnapshotCachePolicy$1, buildNetworkSnapshotCachePolicy$1);
3017
+ };
3018
+
3019
+ const VERSION = "779ba86cca8510319a6e95a736d88189";
3020
+ function validate(obj, path = 'DataCleanRoomTemplateCollectionRepresentation') {
385
3021
  const v_error = (() => {
386
3022
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
387
3023
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -393,12 +3029,10 @@ function validate(obj, path = 'DataCleanRoomProviderCollectionRepresentation') {
393
3029
  return new TypeError('Expected "string" but received "' + typeof obj_currentPageUrl + '" (at "' + path_currentPageUrl + '")');
394
3030
  }
395
3031
  }
396
- if (obj.limit !== undefined) {
397
- const obj_limit = obj.limit;
398
- const path_limit = path + '.limit';
399
- if (typeof obj_limit !== 'number' || (typeof obj_limit === 'number' && Math.floor(obj_limit) !== obj_limit)) {
400
- return new TypeError('Expected "integer" but received "' + typeof obj_limit + '" (at "' + path_limit + '")');
401
- }
3032
+ const obj_limit = obj.limit;
3033
+ const path_limit = path + '.limit';
3034
+ if (typeof obj_limit !== 'number' || (typeof obj_limit === 'number' && Math.floor(obj_limit) !== obj_limit)) {
3035
+ return new TypeError('Expected "integer" but received "' + typeof obj_limit + '" (at "' + path_limit + '")');
402
3036
  }
403
3037
  if (obj.nextPageUrl !== undefined) {
404
3038
  const obj_nextPageUrl = obj.nextPageUrl;
@@ -428,23 +3062,24 @@ function validate(obj, path = 'DataCleanRoomProviderCollectionRepresentation') {
428
3062
  return new TypeError(message);
429
3063
  }
430
3064
  }
431
- if (obj.offset !== undefined) {
432
- const obj_offset = obj.offset;
433
- const path_offset = path + '.offset';
434
- if (typeof obj_offset !== 'number' || (typeof obj_offset === 'number' && Math.floor(obj_offset) !== obj_offset)) {
435
- return new TypeError('Expected "integer" but received "' + typeof obj_offset + '" (at "' + path_offset + '")');
436
- }
3065
+ const obj_offset = obj.offset;
3066
+ const path_offset = path + '.offset';
3067
+ if (typeof obj_offset !== 'number' || (typeof obj_offset === 'number' && Math.floor(obj_offset) !== obj_offset)) {
3068
+ return new TypeError('Expected "integer" but received "' + typeof obj_offset + '" (at "' + path_offset + '")');
437
3069
  }
438
- const obj_providers = obj.providers;
439
- const path_providers = path + '.providers';
440
- if (!ArrayIsArray(obj_providers)) {
441
- return new TypeError('Expected "array" but received "' + typeof obj_providers + '" (at "' + path_providers + '")');
3070
+ const obj_templates = obj.templates;
3071
+ const path_templates = path + '.templates';
3072
+ if (!ArrayIsArray(obj_templates)) {
3073
+ return new TypeError('Expected "array" but received "' + typeof obj_templates + '" (at "' + path_templates + '")');
442
3074
  }
443
- for (let i = 0; i < obj_providers.length; i++) {
444
- const obj_providers_item = obj_providers[i];
445
- const path_providers_item = path_providers + '[' + i + ']';
446
- if (typeof obj_providers_item !== 'object') {
447
- return new TypeError('Expected "object" but received "' + typeof obj_providers_item + '" (at "' + path_providers_item + '")');
3075
+ for (let i = 0; i < obj_templates.length; i++) {
3076
+ const obj_templates_item = obj_templates[i];
3077
+ const path_templates_item = path_templates + '[' + i + ']';
3078
+ const referencepath_templates_itemValidationError = validate$e(obj_templates_item, path_templates_item);
3079
+ if (referencepath_templates_itemValidationError !== null) {
3080
+ let message = 'Object doesn\'t match DataCleanRoomTemplateRepresentation (at "' + path_templates_item + '")\n';
3081
+ message += referencepath_templates_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
3082
+ return new TypeError(message);
448
3083
  }
449
3084
  }
450
3085
  if (obj.totalSize !== undefined) {
@@ -457,145 +3092,25 @@ function validate(obj, path = 'DataCleanRoomProviderCollectionRepresentation') {
457
3092
  })();
458
3093
  return v_error === undefined ? null : v_error;
459
3094
  }
460
- const RepresentationType = 'DataCleanRoomProviderCollectionRepresentation';
3095
+ const RepresentationType = 'DataCleanRoomTemplateCollectionRepresentation';
461
3096
  function normalize(input, existing, path, luvio, store, timestamp) {
462
- const input_providers = input.providers;
463
- const input_providers_id = path.fullPath + '__providers';
464
- for (let i = 0; i < input_providers.length; i++) {
465
- const input_providers_item = input_providers[i];
466
- let input_providers_item_id = input_providers_id + '__' + i;
467
- input_providers[i] = ingest$1(input_providers_item, {
468
- fullPath: input_providers_item_id,
469
- propertyName: i,
470
- parent: {
471
- data: input,
472
- key: path.fullPath,
473
- existing: existing,
474
- },
475
- ttl: path.ttl
476
- }, luvio, store, timestamp);
477
- }
478
3097
  return input;
479
3098
  }
480
- const select$1 = function DataCleanRoomProviderCollectionRepresentationSelect() {
3099
+ const select$2 = function DataCleanRoomTemplateCollectionRepresentationSelect() {
481
3100
  return {
482
3101
  kind: 'Fragment',
483
3102
  version: VERSION,
484
3103
  private: [],
485
- selections: [
486
- {
487
- name: 'currentPageUrl',
488
- kind: 'Scalar',
489
- required: false
490
- },
491
- {
492
- name: 'limit',
493
- kind: 'Scalar',
494
- required: false
495
- },
496
- {
497
- name: 'nextPageUrl',
498
- kind: 'Scalar',
499
- required: false
500
- },
501
- {
502
- name: 'offset',
503
- kind: 'Scalar',
504
- required: false
505
- },
506
- {
507
- name: 'providers',
508
- kind: 'Link',
509
- plural: true,
510
- fragment: select$3()
511
- },
512
- {
513
- name: 'totalSize',
514
- kind: 'Scalar',
515
- required: false
516
- }
517
- ]
3104
+ opaque: true
518
3105
  };
519
3106
  };
520
3107
  function equals(existing, incoming) {
521
- const existing_limit = existing.limit;
522
- const incoming_limit = incoming.limit;
523
- // if at least one of these optionals is defined
524
- if (existing_limit !== undefined || incoming_limit !== undefined) {
525
- // if one of these is not defined we know the other is defined and therefore
526
- // not equal
527
- if (existing_limit === undefined || incoming_limit === undefined) {
528
- return false;
529
- }
530
- if (!(existing_limit === incoming_limit)) {
531
- return false;
532
- }
533
- }
534
- const existing_offset = existing.offset;
535
- const incoming_offset = incoming.offset;
536
- // if at least one of these optionals is defined
537
- if (existing_offset !== undefined || incoming_offset !== undefined) {
538
- // if one of these is not defined we know the other is defined and therefore
539
- // not equal
540
- if (existing_offset === undefined || incoming_offset === undefined) {
541
- return false;
542
- }
543
- if (!(existing_offset === incoming_offset)) {
544
- return false;
545
- }
546
- }
547
- const existing_totalSize = existing.totalSize;
548
- const incoming_totalSize = incoming.totalSize;
549
- // if at least one of these optionals is defined
550
- if (existing_totalSize !== undefined || incoming_totalSize !== undefined) {
551
- // if one of these is not defined we know the other is defined and therefore
552
- // not equal
553
- if (existing_totalSize === undefined || incoming_totalSize === undefined) {
554
- return false;
555
- }
556
- if (!(existing_totalSize === incoming_totalSize)) {
557
- return false;
558
- }
559
- }
560
- const existing_currentPageUrl = existing.currentPageUrl;
561
- const incoming_currentPageUrl = incoming.currentPageUrl;
562
- // if at least one of these optionals is defined
563
- if (existing_currentPageUrl !== undefined || incoming_currentPageUrl !== undefined) {
564
- // if one of these is not defined we know the other is defined and therefore
565
- // not equal
566
- if (existing_currentPageUrl === undefined || incoming_currentPageUrl === undefined) {
567
- return false;
568
- }
569
- if (!(existing_currentPageUrl === incoming_currentPageUrl)) {
570
- return false;
571
- }
572
- }
573
- const existing_nextPageUrl = existing.nextPageUrl;
574
- const incoming_nextPageUrl = incoming.nextPageUrl;
575
- // if at least one of these optionals is defined
576
- if (existing_nextPageUrl !== undefined || incoming_nextPageUrl !== undefined) {
577
- // if one of these is not defined we know the other is defined and therefore
578
- // not equal
579
- if (existing_nextPageUrl === undefined || incoming_nextPageUrl === undefined) {
580
- return false;
581
- }
582
- if (!(existing_nextPageUrl === incoming_nextPageUrl)) {
583
- return false;
584
- }
585
- }
586
- const existing_providers = existing.providers;
587
- const incoming_providers = incoming.providers;
588
- const equals_providers_items = equalsArray(existing_providers, incoming_providers, (existing_providers_item, incoming_providers_item) => {
589
- if (!(existing_providers_item.__ref === incoming_providers_item.__ref)) {
590
- return false;
591
- }
592
- });
593
- if (equals_providers_items === false) {
3108
+ if (JSONStringify(incoming) !== JSONStringify(existing)) {
594
3109
  return false;
595
3110
  }
596
3111
  return true;
597
3112
  }
598
- const ingest = function DataCleanRoomProviderCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
3113
+ const ingest = function DataCleanRoomTemplateCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
599
3114
  if (process.env.NODE_ENV !== 'production') {
600
3115
  const validateError = validate(input);
601
3116
  if (validateError !== null) {
@@ -603,7 +3118,7 @@ const ingest = function DataCleanRoomProviderCollectionRepresentationIngest(inpu
603
3118
  }
604
3119
  }
605
3120
  const key = path.fullPath;
606
- const ttlToUse = path.ttl !== undefined ? path.ttl : 60000;
3121
+ const ttlToUse = path.ttl !== undefined ? path.ttl : 100;
607
3122
  ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize, "data-clean-room", VERSION, RepresentationType, equals);
608
3123
  return createLink(key);
609
3124
  };
@@ -615,28 +3130,24 @@ function getTypeCacheKeys(rootKeySet, luvio, input, fullPathFactory) {
615
3130
  representationName: RepresentationType,
616
3131
  mergeable: false
617
3132
  });
618
- const input_providers_length = input.providers.length;
619
- for (let i = 0; i < input_providers_length; i++) {
620
- getTypeCacheKeys$1(rootKeySet, luvio, input.providers[i]);
621
- }
622
3133
  }
623
3134
 
624
- function select(luvio, params) {
625
- return select$1();
3135
+ function select$1(luvio, params) {
3136
+ return select$2();
626
3137
  }
627
3138
  function keyBuilder$1(luvio, params) {
628
- return keyPrefix + '::DataCleanRoomProviderCollectionRepresentation:(' + 'batchSize:' + params.queryParams.batchSize + ',' + 'filters:' + params.queryParams.filters + ',' + 'offset:' + params.queryParams.offset + ',' + 'orderBy:' + params.queryParams.orderBy + ')';
3139
+ return keyPrefix + '::DataCleanRoomTemplateCollectionRepresentation:(' + 'limit:' + params.queryParams.limit + ',' + 'offset:' + params.queryParams.offset + ',' + 'orderBy:' + params.queryParams.orderBy + ')';
629
3140
  }
630
- function getResponseCacheKeys(storeKeyMap, luvio, resourceParams, response) {
3141
+ function getResponseCacheKeys$1(storeKeyMap, luvio, resourceParams, response) {
631
3142
  getTypeCacheKeys(storeKeyMap, luvio, response, () => keyBuilder$1(luvio, resourceParams));
632
3143
  }
633
- function ingestSuccess(luvio, resourceParams, response, snapshotRefresh) {
3144
+ function ingestSuccess$1(luvio, resourceParams, response, snapshotRefresh) {
634
3145
  const { body } = response;
635
3146
  const key = keyBuilder$1(luvio, resourceParams);
636
3147
  luvio.storeIngest(key, ingest, body);
637
3148
  const snapshot = luvio.storeLookup({
638
3149
  recordId: key,
639
- node: select(),
3150
+ node: select$1(),
640
3151
  variables: {},
641
3152
  }, snapshotRefresh);
642
3153
  if (process.env.NODE_ENV !== 'production') {
@@ -653,11 +3164,11 @@ function ingestError(luvio, params, error, snapshotRefresh) {
653
3164
  luvio.storeIngestError(key, errorSnapshot);
654
3165
  return errorSnapshot;
655
3166
  }
656
- function createResourceRequest(config) {
3167
+ function createResourceRequest$1(config) {
657
3168
  const headers = {};
658
3169
  return {
659
- baseUri: '/services/data/v63.0',
660
- basePath: '/ssot/data-clean-room/providers',
3170
+ baseUri: '/services/data/v64.0',
3171
+ basePath: '/ssot/data-clean-room/templates',
661
3172
  method: 'get',
662
3173
  body: null,
663
3174
  urlParams: {},
@@ -667,63 +3178,62 @@ function createResourceRequest(config) {
667
3178
  };
668
3179
  }
669
3180
 
670
- const adapterName = 'getDataCleanRoomProvidersPaginated';
671
- const getDataCleanRoomProvidersPaginated_ConfigPropertyMetadata = [
672
- generateParamConfigMetadata('batchSize', false, 1 /* QueryParameter */, 3 /* Integer */),
673
- generateParamConfigMetadata('filters', false, 1 /* QueryParameter */, 0 /* String */),
3181
+ const adapterName$1 = 'getDataCleanRoomTemplatePaginated';
3182
+ const getDataCleanRoomTemplatePaginated_ConfigPropertyMetadata = [
3183
+ generateParamConfigMetadata('limit', false, 1 /* QueryParameter */, 3 /* Integer */),
674
3184
  generateParamConfigMetadata('offset', false, 1 /* QueryParameter */, 3 /* Integer */),
675
3185
  generateParamConfigMetadata('orderBy', false, 1 /* QueryParameter */, 0 /* String */),
676
3186
  ];
677
- const getDataCleanRoomProvidersPaginated_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, getDataCleanRoomProvidersPaginated_ConfigPropertyMetadata);
678
- const createResourceParams = /*#__PURE__*/ createResourceParams$2(getDataCleanRoomProvidersPaginated_ConfigPropertyMetadata);
3187
+ const getDataCleanRoomTemplatePaginated_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, getDataCleanRoomTemplatePaginated_ConfigPropertyMetadata);
3188
+ const createResourceParams$1 = /*#__PURE__*/ createResourceParams$b(getDataCleanRoomTemplatePaginated_ConfigPropertyMetadata);
679
3189
  function keyBuilder(luvio, config) {
680
- const resourceParams = createResourceParams(config);
3190
+ const resourceParams = createResourceParams$1(config);
681
3191
  return keyBuilder$1(luvio, resourceParams);
682
3192
  }
683
- function typeCheckConfig(untrustedConfig) {
3193
+ function typeCheckConfig$1(untrustedConfig) {
684
3194
  const config = {};
685
- typeCheckConfig$2(untrustedConfig, config, getDataCleanRoomProvidersPaginated_ConfigPropertyMetadata);
3195
+ typeCheckConfig$b(untrustedConfig, config, getDataCleanRoomTemplatePaginated_ConfigPropertyMetadata);
686
3196
  return config;
687
3197
  }
688
- function validateAdapterConfig(untrustedConfig, configPropertyNames) {
3198
+ function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
689
3199
  if (!untrustedIsObject(untrustedConfig)) {
690
3200
  return null;
691
3201
  }
692
3202
  if (process.env.NODE_ENV !== 'production') {
693
3203
  validateConfig(untrustedConfig, configPropertyNames);
694
3204
  }
695
- const config = typeCheckConfig(untrustedConfig);
3205
+ const config = typeCheckConfig$1(untrustedConfig);
696
3206
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
697
3207
  return null;
698
3208
  }
699
3209
  return config;
700
3210
  }
701
3211
  function adapterFragment(luvio, config) {
702
- createResourceParams(config);
703
- return select();
3212
+ createResourceParams$1(config);
3213
+ return select$1();
704
3214
  }
705
3215
  function onFetchResponseSuccess(luvio, config, resourceParams, response) {
706
- const snapshot = ingestSuccess(luvio, resourceParams, response, {
3216
+ const snapshot = ingestSuccess$1(luvio, resourceParams, response, {
707
3217
  config,
708
- resolve: () => buildNetworkSnapshot(luvio, config, snapshotRefreshOptions)
3218
+ resolve: () => buildNetworkSnapshot$1(luvio, config, snapshotRefreshOptions)
709
3219
  });
710
3220
  return luvio.storeBroadcast().then(() => snapshot);
711
3221
  }
712
3222
  function onFetchResponseError(luvio, config, resourceParams, response) {
713
3223
  const snapshot = ingestError(luvio, resourceParams, response, {
714
3224
  config,
715
- resolve: () => buildNetworkSnapshot(luvio, config, snapshotRefreshOptions)
3225
+ resolve: () => buildNetworkSnapshot$1(luvio, config, snapshotRefreshOptions)
716
3226
  });
717
3227
  return luvio.storeBroadcast().then(() => snapshot);
718
3228
  }
719
- function buildNetworkSnapshot(luvio, config, options) {
720
- const resourceParams = createResourceParams(config);
721
- const request = createResourceRequest(resourceParams);
3229
+ function buildNetworkSnapshot$1(luvio, config, options) {
3230
+ const resourceParams = createResourceParams$1(config);
3231
+ const request = createResourceRequest$1(resourceParams);
722
3232
  return luvio.dispatchResourceRequest(request, options)
723
3233
  .then((response) => {
724
3234
  return luvio.handleSuccessResponse(() => onFetchResponseSuccess(luvio, config, resourceParams, response), () => {
725
3235
  const cache = new StoreKeyMap();
726
- getResponseCacheKeys(cache, luvio, resourceParams, response.body);
3236
+ getResponseCacheKeys$1(cache, luvio, resourceParams, response.body);
727
3237
  return cache;
728
3238
  });
729
3239
  }, (response) => {
@@ -731,7 +3241,7 @@ function buildNetworkSnapshot(luvio, config, options) {
731
3241
  });
732
3242
  }
733
3243
  function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
734
- return buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext, buildNetworkSnapshot, undefined, false);
3244
+ return buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext, buildNetworkSnapshot$1, undefined, false);
735
3245
  }
736
3246
  function buildCachedSnapshotCachePolicy(context, storeLookup) {
737
3247
  const { luvio, config } = context;
@@ -742,12 +3252,12 @@ function buildCachedSnapshotCachePolicy(context, storeLookup) {
742
3252
  };
743
3253
  const cacheSnapshot = storeLookup(selector, {
744
3254
  config,
745
- resolve: () => buildNetworkSnapshot(luvio, config, snapshotRefreshOptions)
3255
+ resolve: () => buildNetworkSnapshot$1(luvio, config, snapshotRefreshOptions)
746
3256
  });
747
3257
  return cacheSnapshot;
748
3258
  }
749
- const getDataCleanRoomProvidersPaginatedAdapterFactory = (luvio) => function dataCleanRoom__getDataCleanRoomProvidersPaginated(untrustedConfig, requestContext) {
750
- const config = validateAdapterConfig(untrustedConfig, getDataCleanRoomProvidersPaginated_ConfigPropertyNames);
3259
+ const getDataCleanRoomTemplatePaginatedAdapterFactory = (luvio) => function dataCleanRoom__getDataCleanRoomTemplatePaginated(untrustedConfig, requestContext) {
3260
+ const config = validateAdapterConfig$1(untrustedConfig, getDataCleanRoomTemplatePaginated_ConfigPropertyNames);
751
3261
  // Invalid or incomplete config
752
3262
  if (config === null) {
753
3263
  return null;
@@ -756,37 +3266,187 @@ const getDataCleanRoomProvidersPaginatedAdapterFactory = (luvio) => function dat
756
3266
  buildCachedSnapshotCachePolicy, buildNetworkSnapshotCachePolicy);
757
3267
  };
758
3268
 
3269
+ function select(luvio, params) {
3270
+ return select$k();
3271
+ }
3272
+ function getResponseCacheKeys(storeKeyMap, luvio, resourceParams, response) {
3273
+ getTypeCacheKeys$9(storeKeyMap, luvio, response);
3274
+ }
3275
+ function ingestSuccess(luvio, resourceParams, response) {
3276
+ const { body } = response;
3277
+ const key = keyBuilderFromType$4(luvio, body);
3278
+ luvio.storeIngest(key, ingest$9, body);
3279
+ const snapshot = luvio.storeLookup({
3280
+ recordId: key,
3281
+ node: select(),
3282
+ variables: {},
3283
+ });
3284
+ if (process.env.NODE_ENV !== 'production') {
3285
+ if (snapshot.state !== 'Fulfilled') {
3286
+ throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
3287
+ }
3288
+ }
3289
+ deepFreeze(snapshot.data);
3290
+ return snapshot;
3291
+ }
3292
+ function createResourceRequest(config) {
3293
+ const headers = {};
3294
+ return {
3295
+ baseUri: '/services/data/v64.0',
3296
+ basePath: '/ssot/data-clean-room/collaborations/' + config.urlParams.collaborationIdOrApiName + '/actions/reject-invitation',
3297
+ method: 'put',
3298
+ body: config.body,
3299
+ urlParams: config.urlParams,
3300
+ queryParams: {},
3301
+ headers,
3302
+ priority: 'normal',
3303
+ };
3304
+ }
3305
+
3306
+ const adapterName = 'rejectDataCleanRoomInvitation';
3307
+ const rejectDataCleanRoomInvitation_ConfigPropertyMetadata = [
3308
+ generateParamConfigMetadata('collaborationIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
3309
+ generateParamConfigMetadata('invitationId', true, 2 /* Body */, 0 /* String */),
3310
+ ];
3311
+ const rejectDataCleanRoomInvitation_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, rejectDataCleanRoomInvitation_ConfigPropertyMetadata);
3312
+ const createResourceParams = /*#__PURE__*/ createResourceParams$b(rejectDataCleanRoomInvitation_ConfigPropertyMetadata);
3313
+ function typeCheckConfig(untrustedConfig) {
3314
+ const config = {};
3315
+ typeCheckConfig$b(untrustedConfig, config, rejectDataCleanRoomInvitation_ConfigPropertyMetadata);
3316
+ return config;
3317
+ }
3318
+ function validateAdapterConfig(untrustedConfig, configPropertyNames) {
3319
+ if (!untrustedIsObject(untrustedConfig)) {
3320
+ return null;
3321
+ }
3322
+ if (process.env.NODE_ENV !== 'production') {
3323
+ validateConfig(untrustedConfig, configPropertyNames);
3324
+ }
3325
+ const config = typeCheckConfig(untrustedConfig);
3326
+ if (!areRequiredParametersPresent(config, configPropertyNames)) {
3327
+ return null;
3328
+ }
3329
+ return config;
3330
+ }
3331
+ function buildNetworkSnapshot(luvio, config, options) {
3332
+ const resourceParams = createResourceParams(config);
3333
+ const request = createResourceRequest(resourceParams);
3334
+ return luvio.dispatchResourceRequest(request, options)
3335
+ .then((response) => {
3336
+ return luvio.handleSuccessResponse(() => {
3337
+ const snapshot = ingestSuccess(luvio, resourceParams, response);
3338
+ return luvio.storeBroadcast().then(() => snapshot);
3339
+ }, () => {
3340
+ const cache = new StoreKeyMap();
3341
+ getResponseCacheKeys(cache, luvio, resourceParams, response.body);
3342
+ return cache;
3343
+ });
3344
+ }, (response) => {
3345
+ deepFreeze(response);
3346
+ throw response;
3347
+ });
3348
+ }
3349
+ const rejectDataCleanRoomInvitationAdapterFactory = (luvio) => {
3350
+ return function rejectDataCleanRoomInvitation(untrustedConfig) {
3351
+ const config = validateAdapterConfig(untrustedConfig, rejectDataCleanRoomInvitation_ConfigPropertyNames);
3352
+ // Invalid or incomplete config
3353
+ if (config === null) {
3354
+ throw new Error('Invalid config for "rejectDataCleanRoomInvitation"');
3355
+ }
3356
+ return buildNetworkSnapshot(luvio, config);
3357
+ };
3358
+ };
3359
+
3360
+ let acceptDataCleanRoomInvitation;
3361
+ let createDataCleanRoomCollaboration;
3362
+ let createDataCleanRoomSpecification;
759
3363
  let createProvider;
3364
+ let executeDataCleanRoomQuery;
3365
+ let getAllDataCleanRoomQueryPaginated;
3366
+ let getAllDataCleanRoomsPaginated;
760
3367
  let getDataCleanRoomProvidersPaginated;
3368
+ let getDataCleanRoomSpecificationsPaginated;
3369
+ let getDataCleanRoomTemplatePaginated;
3370
+ let rejectDataCleanRoomInvitation;
761
3371
  // Imperative GET Adapters
3372
+ let getAllDataCleanRoomQueryPaginated_imperative;
3373
+ let getAllDataCleanRoomsPaginated_imperative;
762
3374
  let getDataCleanRoomProvidersPaginated_imperative;
3375
+ let getDataCleanRoomSpecificationsPaginated_imperative;
3376
+ let getDataCleanRoomTemplatePaginated_imperative;
3377
+ const getAllDataCleanRoomQueryPaginatedMetadata = {
3378
+ apiFamily: 'dataclean-room',
3379
+ name: 'getAllDataCleanRoomQueryPaginated',
3380
+ };
3381
+ const getAllDataCleanRoomsPaginatedMetadata = {
3382
+ apiFamily: 'dataclean-room',
3383
+ name: 'getAllDataCleanRoomsPaginated',
3384
+ };
763
3385
  const getDataCleanRoomProvidersPaginatedMetadata = {
764
3386
  apiFamily: 'dataclean-room',
765
3387
  name: 'getDataCleanRoomProvidersPaginated',
766
3388
  };
3389
+ const getDataCleanRoomSpecificationsPaginatedMetadata = {
3390
+ apiFamily: 'dataclean-room',
3391
+ name: 'getDataCleanRoomSpecificationsPaginated',
3392
+ };
3393
+ const getDataCleanRoomTemplatePaginatedMetadata = {
3394
+ apiFamily: 'dataclean-room',
3395
+ name: 'getDataCleanRoomTemplatePaginated',
3396
+ };
767
3397
  // Notify Update Available
768
3398
  function bindExportsTo(luvio) {
769
3399
  // LDS Adapters
3400
+ const getAllDataCleanRoomQueryPaginated_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getAllDataCleanRoomQueryPaginated', getAllDataCleanRoomQueryPaginatedAdapterFactory), getAllDataCleanRoomQueryPaginatedMetadata);
3401
+ const getAllDataCleanRoomsPaginated_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getAllDataCleanRoomsPaginated', getAllDataCleanRoomsPaginatedAdapterFactory), getAllDataCleanRoomsPaginatedMetadata);
770
3402
  const getDataCleanRoomProvidersPaginated_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getDataCleanRoomProvidersPaginated', getDataCleanRoomProvidersPaginatedAdapterFactory), getDataCleanRoomProvidersPaginatedMetadata);
3403
+ const getDataCleanRoomSpecificationsPaginated_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getDataCleanRoomSpecificationsPaginated', getDataCleanRoomSpecificationsPaginatedAdapterFactory), getDataCleanRoomSpecificationsPaginatedMetadata);
3404
+ const getDataCleanRoomTemplatePaginated_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getDataCleanRoomTemplatePaginated', getDataCleanRoomTemplatePaginatedAdapterFactory), getDataCleanRoomTemplatePaginatedMetadata);
771
3405
  function unwrapSnapshotData(factory) {
772
3406
  const adapter = factory(luvio);
773
3407
  return (config) => adapter(config).then((snapshot) => snapshot.data);
774
3408
  }
775
3409
  return {
3410
+ acceptDataCleanRoomInvitation: unwrapSnapshotData(acceptDataCleanRoomInvitationAdapterFactory),
3411
+ createDataCleanRoomCollaboration: unwrapSnapshotData(createDataCleanRoomCollaborationAdapterFactory),
3412
+ createDataCleanRoomSpecification: unwrapSnapshotData(createDataCleanRoomSpecificationAdapterFactory),
776
3413
  createProvider: unwrapSnapshotData(createProviderAdapterFactory),
3414
+ executeDataCleanRoomQuery: unwrapSnapshotData(executeDataCleanRoomQueryAdapterFactory),
3415
+ getAllDataCleanRoomQueryPaginated: createWireAdapterConstructor(luvio, getAllDataCleanRoomQueryPaginated_ldsAdapter, getAllDataCleanRoomQueryPaginatedMetadata),
3416
+ getAllDataCleanRoomsPaginated: createWireAdapterConstructor(luvio, getAllDataCleanRoomsPaginated_ldsAdapter, getAllDataCleanRoomsPaginatedMetadata),
777
3417
  getDataCleanRoomProvidersPaginated: createWireAdapterConstructor(luvio, getDataCleanRoomProvidersPaginated_ldsAdapter, getDataCleanRoomProvidersPaginatedMetadata),
3418
+ getDataCleanRoomSpecificationsPaginated: createWireAdapterConstructor(luvio, getDataCleanRoomSpecificationsPaginated_ldsAdapter, getDataCleanRoomSpecificationsPaginatedMetadata),
3419
+ getDataCleanRoomTemplatePaginated: createWireAdapterConstructor(luvio, getDataCleanRoomTemplatePaginated_ldsAdapter, getDataCleanRoomTemplatePaginatedMetadata),
3420
+ rejectDataCleanRoomInvitation: unwrapSnapshotData(rejectDataCleanRoomInvitationAdapterFactory),
778
3421
  // Imperative GET Adapters
3422
+ getAllDataCleanRoomQueryPaginated_imperative: createImperativeAdapter(luvio, getAllDataCleanRoomQueryPaginated_ldsAdapter, getAllDataCleanRoomQueryPaginatedMetadata),
3423
+ getAllDataCleanRoomsPaginated_imperative: createImperativeAdapter(luvio, getAllDataCleanRoomsPaginated_ldsAdapter, getAllDataCleanRoomsPaginatedMetadata),
779
3424
  getDataCleanRoomProvidersPaginated_imperative: createImperativeAdapter(luvio, getDataCleanRoomProvidersPaginated_ldsAdapter, getDataCleanRoomProvidersPaginatedMetadata),
3425
+ getDataCleanRoomSpecificationsPaginated_imperative: createImperativeAdapter(luvio, getDataCleanRoomSpecificationsPaginated_ldsAdapter, getDataCleanRoomSpecificationsPaginatedMetadata),
3426
+ getDataCleanRoomTemplatePaginated_imperative: createImperativeAdapter(luvio, getDataCleanRoomTemplatePaginated_ldsAdapter, getDataCleanRoomTemplatePaginatedMetadata),
780
3427
  // Notify Update Availables
781
3428
  };
782
3429
  }
783
3430
  withDefaultLuvio((luvio) => {
784
3431
  ({
3432
+ acceptDataCleanRoomInvitation,
3433
+ createDataCleanRoomCollaboration,
3434
+ createDataCleanRoomSpecification,
785
3435
  createProvider,
3436
+ executeDataCleanRoomQuery,
3437
+ getAllDataCleanRoomQueryPaginated,
3438
+ getAllDataCleanRoomsPaginated,
786
3439
  getDataCleanRoomProvidersPaginated,
3440
+ getDataCleanRoomSpecificationsPaginated,
3441
+ getDataCleanRoomTemplatePaginated,
3442
+ rejectDataCleanRoomInvitation,
3443
+ getAllDataCleanRoomQueryPaginated_imperative,
3444
+ getAllDataCleanRoomsPaginated_imperative,
787
3445
  getDataCleanRoomProvidersPaginated_imperative,
3446
+ getDataCleanRoomSpecificationsPaginated_imperative,
3447
+ getDataCleanRoomTemplatePaginated_imperative,
788
3448
  } = bindExportsTo(luvio));
789
3449
  });
790
3450
 
791
- export { createProvider, getDataCleanRoomProvidersPaginated, getDataCleanRoomProvidersPaginated_imperative };
792
- // version: 1.354.0-dev2-493c24af5a
3451
+ export { acceptDataCleanRoomInvitation, createDataCleanRoomCollaboration, createDataCleanRoomSpecification, createProvider, executeDataCleanRoomQuery, getAllDataCleanRoomQueryPaginated, getAllDataCleanRoomQueryPaginated_imperative, getAllDataCleanRoomsPaginated, getAllDataCleanRoomsPaginated_imperative, getDataCleanRoomProvidersPaginated, getDataCleanRoomProvidersPaginated_imperative, getDataCleanRoomSpecificationsPaginated, getDataCleanRoomSpecificationsPaginated_imperative, getDataCleanRoomTemplatePaginated, getDataCleanRoomTemplatePaginated_imperative, rejectDataCleanRoomInvitation };
3452
+ // version: 1.354.0-dev21-5f69ab6bb6