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