@salesforce/lds-adapters-cdp-data-clean-room 1.354.0-dev7 → 1.354.0-dev8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/es/es2018/cdp-data-clean-room.js +964 -457
- 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/postSsotDataCleanRoomSpecifications.d.ts +1 -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/package.json +3 -3
- package/sfdc/index.js +847 -326
- package/src/raml/api.raml +129 -3
- package/src/raml/luvio.raml +14 -0
package/sfdc/index.js
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
/* proxy-compat-disable */
|
|
15
15
|
import { createInstrumentedAdapter, createLDSAdapter, createWireAdapterConstructor, createImperativeAdapter } from 'force/ldsBindings';
|
|
16
16
|
import { withDefaultLuvio } from 'force/ldsEngine';
|
|
17
|
-
import { serializeStructuredKey, ingestShape, deepFreeze, StoreKeyMap, createResourceParams as createResourceParams$
|
|
17
|
+
import { serializeStructuredKey, ingestShape, deepFreeze, StoreKeyMap, createResourceParams as createResourceParams$b, typeCheckConfig as typeCheckConfig$b, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$5 } from 'force/luvioEngine';
|
|
18
18
|
|
|
19
19
|
const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
|
|
20
20
|
const { keys: ObjectKeys, create: ObjectCreate } = Object;
|
|
@@ -102,8 +102,8 @@ function createLink(ref) {
|
|
|
102
102
|
};
|
|
103
103
|
}
|
|
104
104
|
|
|
105
|
-
const VERSION$
|
|
106
|
-
function validate$
|
|
105
|
+
const VERSION$9 = "60e6b0a7bcb30c169435125696ac47b1";
|
|
106
|
+
function validate$g(obj, path = 'DataCleanRoomMemberRepresentation') {
|
|
107
107
|
const v_error = (() => {
|
|
108
108
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
109
109
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -153,68 +153,68 @@ function validate$e(obj, path = 'DataCleanRoomMemberRepresentation') {
|
|
|
153
153
|
})();
|
|
154
154
|
return v_error === undefined ? null : v_error;
|
|
155
155
|
}
|
|
156
|
-
const RepresentationType$
|
|
157
|
-
function keyBuilder$
|
|
158
|
-
return keyPrefix + '::' + RepresentationType$
|
|
156
|
+
const RepresentationType$9 = 'DataCleanRoomMemberRepresentation';
|
|
157
|
+
function keyBuilder$e(luvio, config) {
|
|
158
|
+
return keyPrefix + '::' + RepresentationType$9 + ':' + config.invitationId;
|
|
159
159
|
}
|
|
160
|
-
function keyBuilderFromType$
|
|
160
|
+
function keyBuilderFromType$4(luvio, object) {
|
|
161
161
|
const keyParams = {
|
|
162
162
|
invitationId: object.invitationId
|
|
163
163
|
};
|
|
164
|
-
return keyBuilder$
|
|
164
|
+
return keyBuilder$e(luvio, keyParams);
|
|
165
165
|
}
|
|
166
|
-
function normalize$
|
|
166
|
+
function normalize$9(input, existing, path, luvio, store, timestamp) {
|
|
167
167
|
return input;
|
|
168
168
|
}
|
|
169
|
-
const select$
|
|
169
|
+
const select$k = function DataCleanRoomMemberRepresentationSelect() {
|
|
170
170
|
return {
|
|
171
171
|
kind: 'Fragment',
|
|
172
|
-
version: VERSION$
|
|
172
|
+
version: VERSION$9,
|
|
173
173
|
private: [],
|
|
174
174
|
opaque: true
|
|
175
175
|
};
|
|
176
176
|
};
|
|
177
|
-
function equals$
|
|
177
|
+
function equals$9(existing, incoming) {
|
|
178
178
|
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
179
179
|
return false;
|
|
180
180
|
}
|
|
181
181
|
return true;
|
|
182
182
|
}
|
|
183
|
-
const ingest$
|
|
183
|
+
const ingest$9 = function DataCleanRoomMemberRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
184
184
|
if (process.env.NODE_ENV !== 'production') {
|
|
185
|
-
const validateError = validate$
|
|
185
|
+
const validateError = validate$g(input);
|
|
186
186
|
if (validateError !== null) {
|
|
187
187
|
throw validateError;
|
|
188
188
|
}
|
|
189
189
|
}
|
|
190
|
-
const key = keyBuilderFromType$
|
|
190
|
+
const key = keyBuilderFromType$4(luvio, input);
|
|
191
191
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 60000;
|
|
192
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
192
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$9, "data-clean-room", VERSION$9, RepresentationType$9, equals$9);
|
|
193
193
|
return createLink(key);
|
|
194
194
|
};
|
|
195
|
-
function getTypeCacheKeys$
|
|
195
|
+
function getTypeCacheKeys$9(rootKeySet, luvio, input, fullPathFactory) {
|
|
196
196
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
197
|
-
const rootKey = keyBuilderFromType$
|
|
197
|
+
const rootKey = keyBuilderFromType$4(luvio, input);
|
|
198
198
|
rootKeySet.set(rootKey, {
|
|
199
199
|
namespace: keyPrefix,
|
|
200
|
-
representationName: RepresentationType$
|
|
200
|
+
representationName: RepresentationType$9,
|
|
201
201
|
mergeable: false
|
|
202
202
|
});
|
|
203
203
|
}
|
|
204
204
|
|
|
205
|
-
function select$
|
|
206
|
-
return select$
|
|
205
|
+
function select$j(luvio, params) {
|
|
206
|
+
return select$k();
|
|
207
207
|
}
|
|
208
|
-
function getResponseCacheKeys$
|
|
209
|
-
getTypeCacheKeys$
|
|
208
|
+
function getResponseCacheKeys$a(storeKeyMap, luvio, resourceParams, response) {
|
|
209
|
+
getTypeCacheKeys$9(storeKeyMap, luvio, response);
|
|
210
210
|
}
|
|
211
|
-
function ingestSuccess$
|
|
211
|
+
function ingestSuccess$a(luvio, resourceParams, response) {
|
|
212
212
|
const { body } = response;
|
|
213
|
-
const key = keyBuilderFromType$
|
|
214
|
-
luvio.storeIngest(key, ingest$
|
|
213
|
+
const key = keyBuilderFromType$4(luvio, body);
|
|
214
|
+
luvio.storeIngest(key, ingest$9, body);
|
|
215
215
|
const snapshot = luvio.storeLookup({
|
|
216
216
|
recordId: key,
|
|
217
|
-
node: select$
|
|
217
|
+
node: select$j(),
|
|
218
218
|
variables: {},
|
|
219
219
|
});
|
|
220
220
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -225,7 +225,7 @@ function ingestSuccess$8(luvio, resourceParams, response) {
|
|
|
225
225
|
deepFreeze(snapshot.data);
|
|
226
226
|
return snapshot;
|
|
227
227
|
}
|
|
228
|
-
function createResourceRequest$
|
|
228
|
+
function createResourceRequest$a(config) {
|
|
229
229
|
const headers = {};
|
|
230
230
|
return {
|
|
231
231
|
baseUri: '/services/data/v64.0',
|
|
@@ -239,43 +239,43 @@ function createResourceRequest$8(config) {
|
|
|
239
239
|
};
|
|
240
240
|
}
|
|
241
241
|
|
|
242
|
-
const adapterName$
|
|
242
|
+
const adapterName$a = 'acceptDataCleanRoomInvitation';
|
|
243
243
|
const acceptDataCleanRoomInvitation_ConfigPropertyMetadata = [
|
|
244
244
|
generateParamConfigMetadata('collaborationIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
245
245
|
generateParamConfigMetadata('invitationId', true, 2 /* Body */, 0 /* String */),
|
|
246
246
|
generateParamConfigMetadata('specificationId', true, 2 /* Body */, 0 /* String */),
|
|
247
247
|
];
|
|
248
|
-
const acceptDataCleanRoomInvitation_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
249
|
-
const createResourceParams$
|
|
250
|
-
function typeCheckConfig$
|
|
248
|
+
const acceptDataCleanRoomInvitation_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$a, acceptDataCleanRoomInvitation_ConfigPropertyMetadata);
|
|
249
|
+
const createResourceParams$a = /*#__PURE__*/ createResourceParams$b(acceptDataCleanRoomInvitation_ConfigPropertyMetadata);
|
|
250
|
+
function typeCheckConfig$a(untrustedConfig) {
|
|
251
251
|
const config = {};
|
|
252
|
-
typeCheckConfig$
|
|
252
|
+
typeCheckConfig$b(untrustedConfig, config, acceptDataCleanRoomInvitation_ConfigPropertyMetadata);
|
|
253
253
|
return config;
|
|
254
254
|
}
|
|
255
|
-
function validateAdapterConfig$
|
|
255
|
+
function validateAdapterConfig$a(untrustedConfig, configPropertyNames) {
|
|
256
256
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
257
257
|
return null;
|
|
258
258
|
}
|
|
259
259
|
if (process.env.NODE_ENV !== 'production') {
|
|
260
260
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
261
261
|
}
|
|
262
|
-
const config = typeCheckConfig$
|
|
262
|
+
const config = typeCheckConfig$a(untrustedConfig);
|
|
263
263
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
264
264
|
return null;
|
|
265
265
|
}
|
|
266
266
|
return config;
|
|
267
267
|
}
|
|
268
|
-
function buildNetworkSnapshot$
|
|
269
|
-
const resourceParams = createResourceParams$
|
|
270
|
-
const request = createResourceRequest$
|
|
268
|
+
function buildNetworkSnapshot$a(luvio, config, options) {
|
|
269
|
+
const resourceParams = createResourceParams$a(config);
|
|
270
|
+
const request = createResourceRequest$a(resourceParams);
|
|
271
271
|
return luvio.dispatchResourceRequest(request, options)
|
|
272
272
|
.then((response) => {
|
|
273
273
|
return luvio.handleSuccessResponse(() => {
|
|
274
|
-
const snapshot = ingestSuccess$
|
|
274
|
+
const snapshot = ingestSuccess$a(luvio, resourceParams, response);
|
|
275
275
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
276
276
|
}, () => {
|
|
277
277
|
const cache = new StoreKeyMap();
|
|
278
|
-
getResponseCacheKeys$
|
|
278
|
+
getResponseCacheKeys$a(cache, luvio, resourceParams, response.body);
|
|
279
279
|
return cache;
|
|
280
280
|
});
|
|
281
281
|
}, (response) => {
|
|
@@ -285,16 +285,16 @@ function buildNetworkSnapshot$8(luvio, config, options) {
|
|
|
285
285
|
}
|
|
286
286
|
const acceptDataCleanRoomInvitationAdapterFactory = (luvio) => {
|
|
287
287
|
return function acceptDataCleanRoomInvitation(untrustedConfig) {
|
|
288
|
-
const config = validateAdapterConfig$
|
|
288
|
+
const config = validateAdapterConfig$a(untrustedConfig, acceptDataCleanRoomInvitation_ConfigPropertyNames);
|
|
289
289
|
// Invalid or incomplete config
|
|
290
290
|
if (config === null) {
|
|
291
291
|
throw new Error('Invalid config for "acceptDataCleanRoomInvitation"');
|
|
292
292
|
}
|
|
293
|
-
return buildNetworkSnapshot$
|
|
293
|
+
return buildNetworkSnapshot$a(luvio, config);
|
|
294
294
|
};
|
|
295
295
|
};
|
|
296
296
|
|
|
297
|
-
function validate$
|
|
297
|
+
function validate$f(obj, path = 'CdpUserRepresentation') {
|
|
298
298
|
const v_error = (() => {
|
|
299
299
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
300
300
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -324,7 +324,7 @@ function validate$d(obj, path = 'CdpUserRepresentation') {
|
|
|
324
324
|
return v_error === undefined ? null : v_error;
|
|
325
325
|
}
|
|
326
326
|
|
|
327
|
-
function validate$
|
|
327
|
+
function validate$e(obj, path = 'DataCleanRoomTemplateRepresentation') {
|
|
328
328
|
const v_error = (() => {
|
|
329
329
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
330
330
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -337,7 +337,7 @@ function validate$c(obj, path = 'DataCleanRoomTemplateRepresentation') {
|
|
|
337
337
|
if (obj.createdBy !== undefined) {
|
|
338
338
|
const obj_createdBy = obj.createdBy;
|
|
339
339
|
const path_createdBy = path + '.createdBy';
|
|
340
|
-
const referencepath_createdByValidationError = validate$
|
|
340
|
+
const referencepath_createdByValidationError = validate$f(obj_createdBy, path_createdBy);
|
|
341
341
|
if (referencepath_createdByValidationError !== null) {
|
|
342
342
|
let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_createdBy + '")\n';
|
|
343
343
|
message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -373,7 +373,7 @@ function validate$c(obj, path = 'DataCleanRoomTemplateRepresentation') {
|
|
|
373
373
|
if (obj.lastModifiedBy !== undefined) {
|
|
374
374
|
const obj_lastModifiedBy = obj.lastModifiedBy;
|
|
375
375
|
const path_lastModifiedBy = path + '.lastModifiedBy';
|
|
376
|
-
const referencepath_lastModifiedByValidationError = validate$
|
|
376
|
+
const referencepath_lastModifiedByValidationError = validate$f(obj_lastModifiedBy, path_lastModifiedBy);
|
|
377
377
|
if (referencepath_lastModifiedByValidationError !== null) {
|
|
378
378
|
let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_lastModifiedBy + '")\n';
|
|
379
379
|
message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -417,8 +417,8 @@ function validate$c(obj, path = 'DataCleanRoomTemplateRepresentation') {
|
|
|
417
417
|
return v_error === undefined ? null : v_error;
|
|
418
418
|
}
|
|
419
419
|
|
|
420
|
-
const VERSION$
|
|
421
|
-
function validate$
|
|
420
|
+
const VERSION$8 = "11bd9b71debcc363b339183bc8d65735";
|
|
421
|
+
function validate$d(obj, path = 'DataCleanRoomCollaborationRepresentation') {
|
|
422
422
|
const v_error = (() => {
|
|
423
423
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
424
424
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -433,7 +433,7 @@ function validate$b(obj, path = 'DataCleanRoomCollaborationRepresentation') {
|
|
|
433
433
|
if (obj.createdBy !== undefined) {
|
|
434
434
|
const obj_createdBy = obj.createdBy;
|
|
435
435
|
const path_createdBy = path + '.createdBy';
|
|
436
|
-
const referencepath_createdByValidationError = validate$
|
|
436
|
+
const referencepath_createdByValidationError = validate$f(obj_createdBy, path_createdBy);
|
|
437
437
|
if (referencepath_createdByValidationError !== null) {
|
|
438
438
|
let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_createdBy + '")\n';
|
|
439
439
|
message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -476,7 +476,7 @@ function validate$b(obj, path = 'DataCleanRoomCollaborationRepresentation') {
|
|
|
476
476
|
if (obj.lastModifiedBy !== undefined) {
|
|
477
477
|
const obj_lastModifiedBy = obj.lastModifiedBy;
|
|
478
478
|
const path_lastModifiedBy = path + '.lastModifiedBy';
|
|
479
|
-
const referencepath_lastModifiedByValidationError = validate$
|
|
479
|
+
const referencepath_lastModifiedByValidationError = validate$f(obj_lastModifiedBy, path_lastModifiedBy);
|
|
480
480
|
if (referencepath_lastModifiedByValidationError !== null) {
|
|
481
481
|
let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_lastModifiedBy + '")\n';
|
|
482
482
|
message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -498,7 +498,7 @@ function validate$b(obj, path = 'DataCleanRoomCollaborationRepresentation') {
|
|
|
498
498
|
for (let i = 0; i < obj_members.length; i++) {
|
|
499
499
|
const obj_members_item = obj_members[i];
|
|
500
500
|
const path_members_item = path_members + '[' + i + ']';
|
|
501
|
-
const referencepath_members_itemValidationError = validate$
|
|
501
|
+
const referencepath_members_itemValidationError = validate$g(obj_members_item, path_members_item);
|
|
502
502
|
if (referencepath_members_itemValidationError !== null) {
|
|
503
503
|
let message = 'Object doesn\'t match DataCleanRoomMemberRepresentation (at "' + path_members_item + '")\n';
|
|
504
504
|
message += referencepath_members_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -526,7 +526,7 @@ function validate$b(obj, path = 'DataCleanRoomCollaborationRepresentation') {
|
|
|
526
526
|
}
|
|
527
527
|
const obj_templateVersion = obj.templateVersion;
|
|
528
528
|
const path_templateVersion = path + '.templateVersion';
|
|
529
|
-
const referencepath_templateVersionValidationError = validate$
|
|
529
|
+
const referencepath_templateVersionValidationError = validate$e(obj_templateVersion, path_templateVersion);
|
|
530
530
|
if (referencepath_templateVersionValidationError !== null) {
|
|
531
531
|
let message = 'Object doesn\'t match DataCleanRoomTemplateRepresentation (at "' + path_templateVersion + '")\n';
|
|
532
532
|
message += referencepath_templateVersionValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -542,68 +542,68 @@ function validate$b(obj, path = 'DataCleanRoomCollaborationRepresentation') {
|
|
|
542
542
|
})();
|
|
543
543
|
return v_error === undefined ? null : v_error;
|
|
544
544
|
}
|
|
545
|
-
const RepresentationType$
|
|
546
|
-
function keyBuilder$
|
|
547
|
-
return keyPrefix + '::' + RepresentationType$
|
|
545
|
+
const RepresentationType$8 = 'DataCleanRoomCollaborationRepresentation';
|
|
546
|
+
function keyBuilder$d(luvio, config) {
|
|
547
|
+
return keyPrefix + '::' + RepresentationType$8 + ':' + config.id;
|
|
548
548
|
}
|
|
549
|
-
function keyBuilderFromType$
|
|
549
|
+
function keyBuilderFromType$3(luvio, object) {
|
|
550
550
|
const keyParams = {
|
|
551
551
|
id: object.id
|
|
552
552
|
};
|
|
553
|
-
return keyBuilder$
|
|
553
|
+
return keyBuilder$d(luvio, keyParams);
|
|
554
554
|
}
|
|
555
|
-
function normalize$
|
|
555
|
+
function normalize$8(input, existing, path, luvio, store, timestamp) {
|
|
556
556
|
return input;
|
|
557
557
|
}
|
|
558
|
-
const select$
|
|
558
|
+
const select$i = function DataCleanRoomCollaborationRepresentationSelect() {
|
|
559
559
|
return {
|
|
560
560
|
kind: 'Fragment',
|
|
561
|
-
version: VERSION$
|
|
561
|
+
version: VERSION$8,
|
|
562
562
|
private: [],
|
|
563
563
|
opaque: true
|
|
564
564
|
};
|
|
565
565
|
};
|
|
566
|
-
function equals$
|
|
566
|
+
function equals$8(existing, incoming) {
|
|
567
567
|
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
568
568
|
return false;
|
|
569
569
|
}
|
|
570
570
|
return true;
|
|
571
571
|
}
|
|
572
|
-
const ingest$
|
|
572
|
+
const ingest$8 = function DataCleanRoomCollaborationRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
573
573
|
if (process.env.NODE_ENV !== 'production') {
|
|
574
|
-
const validateError = validate$
|
|
574
|
+
const validateError = validate$d(input);
|
|
575
575
|
if (validateError !== null) {
|
|
576
576
|
throw validateError;
|
|
577
577
|
}
|
|
578
578
|
}
|
|
579
|
-
const key = keyBuilderFromType$
|
|
579
|
+
const key = keyBuilderFromType$3(luvio, input);
|
|
580
580
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 60000;
|
|
581
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
581
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$8, "data-clean-room", VERSION$8, RepresentationType$8, equals$8);
|
|
582
582
|
return createLink(key);
|
|
583
583
|
};
|
|
584
|
-
function getTypeCacheKeys$
|
|
584
|
+
function getTypeCacheKeys$8(rootKeySet, luvio, input, fullPathFactory) {
|
|
585
585
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
586
|
-
const rootKey = keyBuilderFromType$
|
|
586
|
+
const rootKey = keyBuilderFromType$3(luvio, input);
|
|
587
587
|
rootKeySet.set(rootKey, {
|
|
588
588
|
namespace: keyPrefix,
|
|
589
|
-
representationName: RepresentationType$
|
|
589
|
+
representationName: RepresentationType$8,
|
|
590
590
|
mergeable: false
|
|
591
591
|
});
|
|
592
592
|
}
|
|
593
593
|
|
|
594
|
-
function select$
|
|
595
|
-
return select$
|
|
594
|
+
function select$h(luvio, params) {
|
|
595
|
+
return select$i();
|
|
596
596
|
}
|
|
597
|
-
function getResponseCacheKeys$
|
|
598
|
-
getTypeCacheKeys$
|
|
597
|
+
function getResponseCacheKeys$9(storeKeyMap, luvio, resourceParams, response) {
|
|
598
|
+
getTypeCacheKeys$8(storeKeyMap, luvio, response);
|
|
599
599
|
}
|
|
600
|
-
function ingestSuccess$
|
|
600
|
+
function ingestSuccess$9(luvio, resourceParams, response) {
|
|
601
601
|
const { body } = response;
|
|
602
|
-
const key = keyBuilderFromType$
|
|
603
|
-
luvio.storeIngest(key, ingest$
|
|
602
|
+
const key = keyBuilderFromType$3(luvio, body);
|
|
603
|
+
luvio.storeIngest(key, ingest$8, body);
|
|
604
604
|
const snapshot = luvio.storeLookup({
|
|
605
605
|
recordId: key,
|
|
606
|
-
node: select$
|
|
606
|
+
node: select$h(),
|
|
607
607
|
variables: {},
|
|
608
608
|
});
|
|
609
609
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -614,7 +614,7 @@ function ingestSuccess$7(luvio, resourceParams, response) {
|
|
|
614
614
|
deepFreeze(snapshot.data);
|
|
615
615
|
return snapshot;
|
|
616
616
|
}
|
|
617
|
-
function createResourceRequest$
|
|
617
|
+
function createResourceRequest$9(config) {
|
|
618
618
|
const headers = {};
|
|
619
619
|
return {
|
|
620
620
|
baseUri: '/services/data/v64.0',
|
|
@@ -628,7 +628,7 @@ function createResourceRequest$7(config) {
|
|
|
628
628
|
};
|
|
629
629
|
}
|
|
630
630
|
|
|
631
|
-
const adapterName$
|
|
631
|
+
const adapterName$9 = 'createDataCleanRoomCollaboration';
|
|
632
632
|
const createDataCleanRoomCollaboration_ConfigPropertyMetadata = [
|
|
633
633
|
generateParamConfigMetadata('apiKey', false, 2 /* Body */, 0 /* String */),
|
|
634
634
|
generateParamConfigMetadata('dataCloudOrgId', true, 2 /* Body */, 0 /* String */),
|
|
@@ -639,37 +639,37 @@ const createDataCleanRoomCollaboration_ConfigPropertyMetadata = [
|
|
|
639
639
|
generateParamConfigMetadata('label', true, 2 /* Body */, 0 /* String */),
|
|
640
640
|
generateParamConfigMetadata('description', false, 2 /* Body */, 0 /* String */),
|
|
641
641
|
];
|
|
642
|
-
const createDataCleanRoomCollaboration_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
643
|
-
const createResourceParams$
|
|
644
|
-
function typeCheckConfig$
|
|
642
|
+
const createDataCleanRoomCollaboration_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$9, createDataCleanRoomCollaboration_ConfigPropertyMetadata);
|
|
643
|
+
const createResourceParams$9 = /*#__PURE__*/ createResourceParams$b(createDataCleanRoomCollaboration_ConfigPropertyMetadata);
|
|
644
|
+
function typeCheckConfig$9(untrustedConfig) {
|
|
645
645
|
const config = {};
|
|
646
|
-
typeCheckConfig$
|
|
646
|
+
typeCheckConfig$b(untrustedConfig, config, createDataCleanRoomCollaboration_ConfigPropertyMetadata);
|
|
647
647
|
return config;
|
|
648
648
|
}
|
|
649
|
-
function validateAdapterConfig$
|
|
649
|
+
function validateAdapterConfig$9(untrustedConfig, configPropertyNames) {
|
|
650
650
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
651
651
|
return null;
|
|
652
652
|
}
|
|
653
653
|
if (process.env.NODE_ENV !== 'production') {
|
|
654
654
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
655
655
|
}
|
|
656
|
-
const config = typeCheckConfig$
|
|
656
|
+
const config = typeCheckConfig$9(untrustedConfig);
|
|
657
657
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
658
658
|
return null;
|
|
659
659
|
}
|
|
660
660
|
return config;
|
|
661
661
|
}
|
|
662
|
-
function buildNetworkSnapshot$
|
|
663
|
-
const resourceParams = createResourceParams$
|
|
664
|
-
const request = createResourceRequest$
|
|
662
|
+
function buildNetworkSnapshot$9(luvio, config, options) {
|
|
663
|
+
const resourceParams = createResourceParams$9(config);
|
|
664
|
+
const request = createResourceRequest$9(resourceParams);
|
|
665
665
|
return luvio.dispatchResourceRequest(request, options)
|
|
666
666
|
.then((response) => {
|
|
667
667
|
return luvio.handleSuccessResponse(() => {
|
|
668
|
-
const snapshot = ingestSuccess$
|
|
668
|
+
const snapshot = ingestSuccess$9(luvio, resourceParams, response);
|
|
669
669
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
670
670
|
}, () => {
|
|
671
671
|
const cache = new StoreKeyMap();
|
|
672
|
-
getResponseCacheKeys$
|
|
672
|
+
getResponseCacheKeys$9(cache, luvio, resourceParams, response.body);
|
|
673
673
|
return cache;
|
|
674
674
|
});
|
|
675
675
|
}, (response) => {
|
|
@@ -679,16 +679,16 @@ function buildNetworkSnapshot$7(luvio, config, options) {
|
|
|
679
679
|
}
|
|
680
680
|
const createDataCleanRoomCollaborationAdapterFactory = (luvio) => {
|
|
681
681
|
return function createDataCleanRoomCollaboration(untrustedConfig) {
|
|
682
|
-
const config = validateAdapterConfig$
|
|
682
|
+
const config = validateAdapterConfig$9(untrustedConfig, createDataCleanRoomCollaboration_ConfigPropertyNames);
|
|
683
683
|
// Invalid or incomplete config
|
|
684
684
|
if (config === null) {
|
|
685
685
|
throw new Error('Invalid config for "createDataCleanRoomCollaboration"');
|
|
686
686
|
}
|
|
687
|
-
return buildNetworkSnapshot$
|
|
687
|
+
return buildNetworkSnapshot$9(luvio, config);
|
|
688
688
|
};
|
|
689
689
|
};
|
|
690
690
|
|
|
691
|
-
function validate$
|
|
691
|
+
function validate$c(obj, path = 'UseCaseTemplateMappingAttributeFilterOptionRepresentation') {
|
|
692
692
|
const v_error = (() => {
|
|
693
693
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
694
694
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -714,7 +714,7 @@ function validate$a(obj, path = 'UseCaseTemplateMappingAttributeFilterOptionRepr
|
|
|
714
714
|
return v_error === undefined ? null : v_error;
|
|
715
715
|
}
|
|
716
716
|
|
|
717
|
-
function validate$
|
|
717
|
+
function validate$b(obj, path = 'UseCaseTemplateMappingPathAttributeRepresentation') {
|
|
718
718
|
const v_error = (() => {
|
|
719
719
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
720
720
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -733,7 +733,7 @@ function validate$9(obj, path = 'UseCaseTemplateMappingPathAttributeRepresentati
|
|
|
733
733
|
return v_error === undefined ? null : v_error;
|
|
734
734
|
}
|
|
735
735
|
|
|
736
|
-
function validate$
|
|
736
|
+
function validate$a(obj, path = 'UseCaseTemplateMappingSubjectAttributeRepresentation') {
|
|
737
737
|
const v_error = (() => {
|
|
738
738
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
739
739
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -762,7 +762,7 @@ function validate$8(obj, path = 'UseCaseTemplateMappingSubjectAttributeRepresent
|
|
|
762
762
|
return v_error === undefined ? null : v_error;
|
|
763
763
|
}
|
|
764
764
|
|
|
765
|
-
function validate$
|
|
765
|
+
function validate$9(obj, path = 'UseCaseTemplateMappingAttributeRepresentation') {
|
|
766
766
|
const v_error = (() => {
|
|
767
767
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
768
768
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -782,7 +782,7 @@ function validate$7(obj, path = 'UseCaseTemplateMappingAttributeRepresentation')
|
|
|
782
782
|
if (obj.createdBy !== undefined) {
|
|
783
783
|
const obj_createdBy = obj.createdBy;
|
|
784
784
|
const path_createdBy = path + '.createdBy';
|
|
785
|
-
const referencepath_createdByValidationError = validate$
|
|
785
|
+
const referencepath_createdByValidationError = validate$f(obj_createdBy, path_createdBy);
|
|
786
786
|
if (referencepath_createdByValidationError !== null) {
|
|
787
787
|
let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_createdBy + '")\n';
|
|
788
788
|
message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -799,7 +799,7 @@ function validate$7(obj, path = 'UseCaseTemplateMappingAttributeRepresentation')
|
|
|
799
799
|
if (obj.dataMapping !== undefined) {
|
|
800
800
|
const obj_dataMapping = obj.dataMapping;
|
|
801
801
|
const path_dataMapping = path + '.dataMapping';
|
|
802
|
-
const referencepath_dataMappingValidationError = validate$
|
|
802
|
+
const referencepath_dataMappingValidationError = validate$8(obj_dataMapping, path_dataMapping);
|
|
803
803
|
if (referencepath_dataMappingValidationError !== null) {
|
|
804
804
|
let message = 'Object doesn\'t match UseCaseTemplateMappingRepresentation (at "' + path_dataMapping + '")\n';
|
|
805
805
|
message += referencepath_dataMappingValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -809,7 +809,7 @@ function validate$7(obj, path = 'UseCaseTemplateMappingAttributeRepresentation')
|
|
|
809
809
|
if (obj.filterOptions !== undefined) {
|
|
810
810
|
const obj_filterOptions = obj.filterOptions;
|
|
811
811
|
const path_filterOptions = path + '.filterOptions';
|
|
812
|
-
const referencepath_filterOptionsValidationError = validate$
|
|
812
|
+
const referencepath_filterOptionsValidationError = validate$c(obj_filterOptions, path_filterOptions);
|
|
813
813
|
if (referencepath_filterOptionsValidationError !== null) {
|
|
814
814
|
let message = 'Object doesn\'t match UseCaseTemplateMappingAttributeFilterOptionRepresentation (at "' + path_filterOptions + '")\n';
|
|
815
815
|
message += referencepath_filterOptionsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -833,7 +833,7 @@ function validate$7(obj, path = 'UseCaseTemplateMappingAttributeRepresentation')
|
|
|
833
833
|
if (obj.lastModifiedBy !== undefined) {
|
|
834
834
|
const obj_lastModifiedBy = obj.lastModifiedBy;
|
|
835
835
|
const path_lastModifiedBy = path + '.lastModifiedBy';
|
|
836
|
-
const referencepath_lastModifiedByValidationError = validate$
|
|
836
|
+
const referencepath_lastModifiedByValidationError = validate$f(obj_lastModifiedBy, path_lastModifiedBy);
|
|
837
837
|
if (referencepath_lastModifiedByValidationError !== null) {
|
|
838
838
|
let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_lastModifiedBy + '")\n';
|
|
839
839
|
message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -869,7 +869,7 @@ function validate$7(obj, path = 'UseCaseTemplateMappingAttributeRepresentation')
|
|
|
869
869
|
for (let i = 0; i < obj_path.length; i++) {
|
|
870
870
|
const obj_path_item = obj_path[i];
|
|
871
871
|
const path_path_item = path_path + '[' + i + ']';
|
|
872
|
-
const referencepath_path_itemValidationError = validate$
|
|
872
|
+
const referencepath_path_itemValidationError = validate$b(obj_path_item, path_path_item);
|
|
873
873
|
if (referencepath_path_itemValidationError !== null) {
|
|
874
874
|
let message = 'Object doesn\'t match UseCaseTemplateMappingPathAttributeRepresentation (at "' + path_path_item + '")\n';
|
|
875
875
|
message += referencepath_path_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -878,7 +878,7 @@ function validate$7(obj, path = 'UseCaseTemplateMappingAttributeRepresentation')
|
|
|
878
878
|
}
|
|
879
879
|
const obj_subjectAttribute = obj.subjectAttribute;
|
|
880
880
|
const path_subjectAttribute = path + '.subjectAttribute';
|
|
881
|
-
const referencepath_subjectAttributeValidationError = validate$
|
|
881
|
+
const referencepath_subjectAttributeValidationError = validate$a(obj_subjectAttribute, path_subjectAttribute);
|
|
882
882
|
if (referencepath_subjectAttributeValidationError !== null) {
|
|
883
883
|
let message = 'Object doesn\'t match UseCaseTemplateMappingSubjectAttributeRepresentation (at "' + path_subjectAttribute + '")\n';
|
|
884
884
|
message += referencepath_subjectAttributeValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -895,7 +895,7 @@ function validate$7(obj, path = 'UseCaseTemplateMappingAttributeRepresentation')
|
|
|
895
895
|
return v_error === undefined ? null : v_error;
|
|
896
896
|
}
|
|
897
897
|
|
|
898
|
-
function validate$
|
|
898
|
+
function validate$8(obj, path = 'UseCaseTemplateMappingRepresentation') {
|
|
899
899
|
const v_error = (() => {
|
|
900
900
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
901
901
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -908,7 +908,7 @@ function validate$6(obj, path = 'UseCaseTemplateMappingRepresentation') {
|
|
|
908
908
|
for (let i = 0; i < obj_attributes.length; i++) {
|
|
909
909
|
const obj_attributes_item = obj_attributes[i];
|
|
910
910
|
const path_attributes_item = path_attributes + '[' + i + ']';
|
|
911
|
-
const referencepath_attributes_itemValidationError = validate$
|
|
911
|
+
const referencepath_attributes_itemValidationError = validate$9(obj_attributes_item, path_attributes_item);
|
|
912
912
|
if (referencepath_attributes_itemValidationError !== null) {
|
|
913
913
|
let message = 'Object doesn\'t match UseCaseTemplateMappingAttributeRepresentation (at "' + path_attributes_item + '")\n';
|
|
914
914
|
message += referencepath_attributes_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -923,7 +923,7 @@ function validate$6(obj, path = 'UseCaseTemplateMappingRepresentation') {
|
|
|
923
923
|
if (obj.createdBy !== undefined) {
|
|
924
924
|
const obj_createdBy = obj.createdBy;
|
|
925
925
|
const path_createdBy = path + '.createdBy';
|
|
926
|
-
const referencepath_createdByValidationError = validate$
|
|
926
|
+
const referencepath_createdByValidationError = validate$f(obj_createdBy, path_createdBy);
|
|
927
927
|
if (referencepath_createdByValidationError !== null) {
|
|
928
928
|
let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_createdBy + '")\n';
|
|
929
929
|
message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -954,7 +954,7 @@ function validate$6(obj, path = 'UseCaseTemplateMappingRepresentation') {
|
|
|
954
954
|
if (obj.lastModifiedBy !== undefined) {
|
|
955
955
|
const obj_lastModifiedBy = obj.lastModifiedBy;
|
|
956
956
|
const path_lastModifiedBy = path + '.lastModifiedBy';
|
|
957
|
-
const referencepath_lastModifiedByValidationError = validate$
|
|
957
|
+
const referencepath_lastModifiedByValidationError = validate$f(obj_lastModifiedBy, path_lastModifiedBy);
|
|
958
958
|
if (referencepath_lastModifiedByValidationError !== null) {
|
|
959
959
|
let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_lastModifiedBy + '")\n';
|
|
960
960
|
message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -993,8 +993,8 @@ function validate$6(obj, path = 'UseCaseTemplateMappingRepresentation') {
|
|
|
993
993
|
return v_error === undefined ? null : v_error;
|
|
994
994
|
}
|
|
995
995
|
|
|
996
|
-
const VERSION$
|
|
997
|
-
function validate$
|
|
996
|
+
const VERSION$7 = "f502169b0ec369d5e3e577700c8835b6";
|
|
997
|
+
function validate$7(obj, path = 'DataCleanRoomDataSpecificationRepresentation') {
|
|
998
998
|
const v_error = (() => {
|
|
999
999
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1000
1000
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1002,7 +1002,7 @@ function validate$5(obj, path = 'DataCleanRoomDataSpecificationRepresentation')
|
|
|
1002
1002
|
if (obj.createdBy !== undefined) {
|
|
1003
1003
|
const obj_createdBy = obj.createdBy;
|
|
1004
1004
|
const path_createdBy = path + '.createdBy';
|
|
1005
|
-
const referencepath_createdByValidationError = validate$
|
|
1005
|
+
const referencepath_createdByValidationError = validate$f(obj_createdBy, path_createdBy);
|
|
1006
1006
|
if (referencepath_createdByValidationError !== null) {
|
|
1007
1007
|
let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_createdBy + '")\n';
|
|
1008
1008
|
message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1018,7 +1018,7 @@ function validate$5(obj, path = 'DataCleanRoomDataSpecificationRepresentation')
|
|
|
1018
1018
|
}
|
|
1019
1019
|
const obj_dataMapping = obj.dataMapping;
|
|
1020
1020
|
const path_dataMapping = path + '.dataMapping';
|
|
1021
|
-
const referencepath_dataMappingValidationError = validate$
|
|
1021
|
+
const referencepath_dataMappingValidationError = validate$8(obj_dataMapping, path_dataMapping);
|
|
1022
1022
|
if (referencepath_dataMappingValidationError !== null) {
|
|
1023
1023
|
let message = 'Object doesn\'t match UseCaseTemplateMappingRepresentation (at "' + path_dataMapping + '")\n';
|
|
1024
1024
|
message += referencepath_dataMappingValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1029,10 +1029,12 @@ function validate$5(obj, path = 'DataCleanRoomDataSpecificationRepresentation')
|
|
|
1029
1029
|
if (typeof obj_dataSpaceName !== 'string') {
|
|
1030
1030
|
return new TypeError('Expected "string" but received "' + typeof obj_dataSpaceName + '" (at "' + path_dataSpaceName + '")');
|
|
1031
1031
|
}
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1032
|
+
if (obj.description !== undefined) {
|
|
1033
|
+
const obj_description = obj.description;
|
|
1034
|
+
const path_description = path + '.description';
|
|
1035
|
+
if (typeof obj_description !== 'string') {
|
|
1036
|
+
return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
|
|
1037
|
+
}
|
|
1036
1038
|
}
|
|
1037
1039
|
const obj_id = obj.id;
|
|
1038
1040
|
const path_id = path + '.id';
|
|
@@ -1049,7 +1051,7 @@ function validate$5(obj, path = 'DataCleanRoomDataSpecificationRepresentation')
|
|
|
1049
1051
|
if (obj.lastModifiedBy !== undefined) {
|
|
1050
1052
|
const obj_lastModifiedBy = obj.lastModifiedBy;
|
|
1051
1053
|
const path_lastModifiedBy = path + '.lastModifiedBy';
|
|
1052
|
-
const referencepath_lastModifiedByValidationError = validate$
|
|
1054
|
+
const referencepath_lastModifiedByValidationError = validate$f(obj_lastModifiedBy, path_lastModifiedBy);
|
|
1053
1055
|
if (referencepath_lastModifiedByValidationError !== null) {
|
|
1054
1056
|
let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_lastModifiedBy + '")\n';
|
|
1055
1057
|
message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1075,18 +1077,537 @@ function validate$5(obj, path = 'DataCleanRoomDataSpecificationRepresentation')
|
|
|
1075
1077
|
return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
|
|
1076
1078
|
}
|
|
1077
1079
|
}
|
|
1078
|
-
if (obj.namespace !== undefined) {
|
|
1079
|
-
const obj_namespace = obj.namespace;
|
|
1080
|
-
const path_namespace = path + '.namespace';
|
|
1081
|
-
if (typeof obj_namespace !== 'string') {
|
|
1082
|
-
return new TypeError('Expected "string" but received "' + typeof obj_namespace + '" (at "' + path_namespace + '")');
|
|
1080
|
+
if (obj.namespace !== undefined) {
|
|
1081
|
+
const obj_namespace = obj.namespace;
|
|
1082
|
+
const path_namespace = path + '.namespace';
|
|
1083
|
+
if (typeof obj_namespace !== 'string') {
|
|
1084
|
+
return new TypeError('Expected "string" but received "' + typeof obj_namespace + '" (at "' + path_namespace + '")');
|
|
1085
|
+
}
|
|
1086
|
+
}
|
|
1087
|
+
if (obj.ownerOrgId !== undefined) {
|
|
1088
|
+
const obj_ownerOrgId = obj.ownerOrgId;
|
|
1089
|
+
const path_ownerOrgId = path + '.ownerOrgId';
|
|
1090
|
+
if (typeof obj_ownerOrgId !== 'string') {
|
|
1091
|
+
return new TypeError('Expected "string" but received "' + typeof obj_ownerOrgId + '" (at "' + path_ownerOrgId + '")');
|
|
1092
|
+
}
|
|
1093
|
+
}
|
|
1094
|
+
const obj_status = obj.status;
|
|
1095
|
+
const path_status = path + '.status';
|
|
1096
|
+
if (typeof obj_status !== 'string') {
|
|
1097
|
+
return new TypeError('Expected "string" but received "' + typeof obj_status + '" (at "' + path_status + '")');
|
|
1098
|
+
}
|
|
1099
|
+
const obj_templateName = obj.templateName;
|
|
1100
|
+
const path_templateName = path + '.templateName';
|
|
1101
|
+
if (typeof obj_templateName !== 'string') {
|
|
1102
|
+
return new TypeError('Expected "string" but received "' + typeof obj_templateName + '" (at "' + path_templateName + '")');
|
|
1103
|
+
}
|
|
1104
|
+
if (obj.url !== undefined) {
|
|
1105
|
+
const obj_url = obj.url;
|
|
1106
|
+
const path_url = path + '.url';
|
|
1107
|
+
if (typeof obj_url !== 'string') {
|
|
1108
|
+
return new TypeError('Expected "string" but received "' + typeof obj_url + '" (at "' + path_url + '")');
|
|
1109
|
+
}
|
|
1110
|
+
}
|
|
1111
|
+
})();
|
|
1112
|
+
return v_error === undefined ? null : v_error;
|
|
1113
|
+
}
|
|
1114
|
+
const RepresentationType$7 = 'DataCleanRoomDataSpecificationRepresentation';
|
|
1115
|
+
function keyBuilder$c(luvio, config) {
|
|
1116
|
+
return keyPrefix + '::' + RepresentationType$7 + ':' + config.id;
|
|
1117
|
+
}
|
|
1118
|
+
function keyBuilderFromType$2(luvio, object) {
|
|
1119
|
+
const keyParams = {
|
|
1120
|
+
id: object.id
|
|
1121
|
+
};
|
|
1122
|
+
return keyBuilder$c(luvio, keyParams);
|
|
1123
|
+
}
|
|
1124
|
+
function normalize$7(input, existing, path, luvio, store, timestamp) {
|
|
1125
|
+
return input;
|
|
1126
|
+
}
|
|
1127
|
+
const select$g = function DataCleanRoomDataSpecificationRepresentationSelect() {
|
|
1128
|
+
return {
|
|
1129
|
+
kind: 'Fragment',
|
|
1130
|
+
version: VERSION$7,
|
|
1131
|
+
private: [],
|
|
1132
|
+
opaque: true
|
|
1133
|
+
};
|
|
1134
|
+
};
|
|
1135
|
+
function equals$7(existing, incoming) {
|
|
1136
|
+
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
1137
|
+
return false;
|
|
1138
|
+
}
|
|
1139
|
+
return true;
|
|
1140
|
+
}
|
|
1141
|
+
const ingest$7 = function DataCleanRoomDataSpecificationRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1142
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
1143
|
+
const validateError = validate$7(input);
|
|
1144
|
+
if (validateError !== null) {
|
|
1145
|
+
throw validateError;
|
|
1146
|
+
}
|
|
1147
|
+
}
|
|
1148
|
+
const key = keyBuilderFromType$2(luvio, input);
|
|
1149
|
+
const ttlToUse = path.ttl !== undefined ? path.ttl : 60000;
|
|
1150
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$7, "data-clean-room", VERSION$7, RepresentationType$7, equals$7);
|
|
1151
|
+
return createLink(key);
|
|
1152
|
+
};
|
|
1153
|
+
function getTypeCacheKeys$7(rootKeySet, luvio, input, fullPathFactory) {
|
|
1154
|
+
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
1155
|
+
const rootKey = keyBuilderFromType$2(luvio, input);
|
|
1156
|
+
rootKeySet.set(rootKey, {
|
|
1157
|
+
namespace: keyPrefix,
|
|
1158
|
+
representationName: RepresentationType$7,
|
|
1159
|
+
mergeable: false
|
|
1160
|
+
});
|
|
1161
|
+
}
|
|
1162
|
+
|
|
1163
|
+
function select$f(luvio, params) {
|
|
1164
|
+
return select$g();
|
|
1165
|
+
}
|
|
1166
|
+
function getResponseCacheKeys$8(storeKeyMap, luvio, resourceParams, response) {
|
|
1167
|
+
getTypeCacheKeys$7(storeKeyMap, luvio, response);
|
|
1168
|
+
}
|
|
1169
|
+
function ingestSuccess$8(luvio, resourceParams, response) {
|
|
1170
|
+
const { body } = response;
|
|
1171
|
+
const key = keyBuilderFromType$2(luvio, body);
|
|
1172
|
+
luvio.storeIngest(key, ingest$7, body);
|
|
1173
|
+
const snapshot = luvio.storeLookup({
|
|
1174
|
+
recordId: key,
|
|
1175
|
+
node: select$f(),
|
|
1176
|
+
variables: {},
|
|
1177
|
+
});
|
|
1178
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
1179
|
+
if (snapshot.state !== 'Fulfilled') {
|
|
1180
|
+
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
1181
|
+
}
|
|
1182
|
+
}
|
|
1183
|
+
deepFreeze(snapshot.data);
|
|
1184
|
+
return snapshot;
|
|
1185
|
+
}
|
|
1186
|
+
function createResourceRequest$8(config) {
|
|
1187
|
+
const headers = {};
|
|
1188
|
+
return {
|
|
1189
|
+
baseUri: '/services/data/v64.0',
|
|
1190
|
+
basePath: '/ssot/data-clean-room/specifications',
|
|
1191
|
+
method: 'post',
|
|
1192
|
+
body: config.body,
|
|
1193
|
+
urlParams: {},
|
|
1194
|
+
queryParams: {},
|
|
1195
|
+
headers,
|
|
1196
|
+
priority: 'normal',
|
|
1197
|
+
};
|
|
1198
|
+
}
|
|
1199
|
+
|
|
1200
|
+
const adapterName$8 = 'createDataCleanRoomSpecification';
|
|
1201
|
+
const createDataCleanRoomSpecification_ConfigPropertyMetadata = [
|
|
1202
|
+
generateParamConfigMetadata('dataMapping', true, 2 /* Body */, 4 /* Unsupported */),
|
|
1203
|
+
generateParamConfigMetadata('memberType', true, 2 /* Body */, 0 /* String */),
|
|
1204
|
+
generateParamConfigMetadata('ownerOrgId', true, 2 /* Body */, 0 /* String */),
|
|
1205
|
+
generateParamConfigMetadata('templateName', true, 2 /* Body */, 0 /* String */),
|
|
1206
|
+
generateParamConfigMetadata('name', false, 2 /* Body */, 0 /* String */),
|
|
1207
|
+
generateParamConfigMetadata('label', true, 2 /* Body */, 0 /* String */),
|
|
1208
|
+
generateParamConfigMetadata('description', false, 2 /* Body */, 0 /* String */),
|
|
1209
|
+
generateParamConfigMetadata('dataspaceName', false, 2 /* Body */, 0 /* String */),
|
|
1210
|
+
];
|
|
1211
|
+
const createDataCleanRoomSpecification_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$8, createDataCleanRoomSpecification_ConfigPropertyMetadata);
|
|
1212
|
+
const createResourceParams$8 = /*#__PURE__*/ createResourceParams$b(createDataCleanRoomSpecification_ConfigPropertyMetadata);
|
|
1213
|
+
function typeCheckConfig$8(untrustedConfig) {
|
|
1214
|
+
const config = {};
|
|
1215
|
+
typeCheckConfig$b(untrustedConfig, config, createDataCleanRoomSpecification_ConfigPropertyMetadata);
|
|
1216
|
+
const untrustedConfig_dataMapping = untrustedConfig.dataMapping;
|
|
1217
|
+
config.dataMapping = untrustedConfig_dataMapping;
|
|
1218
|
+
return config;
|
|
1219
|
+
}
|
|
1220
|
+
function validateAdapterConfig$8(untrustedConfig, configPropertyNames) {
|
|
1221
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
1222
|
+
return null;
|
|
1223
|
+
}
|
|
1224
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
1225
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
1226
|
+
}
|
|
1227
|
+
const config = typeCheckConfig$8(untrustedConfig);
|
|
1228
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
1229
|
+
return null;
|
|
1230
|
+
}
|
|
1231
|
+
return config;
|
|
1232
|
+
}
|
|
1233
|
+
function buildNetworkSnapshot$8(luvio, config, options) {
|
|
1234
|
+
const resourceParams = createResourceParams$8(config);
|
|
1235
|
+
const request = createResourceRequest$8(resourceParams);
|
|
1236
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
1237
|
+
.then((response) => {
|
|
1238
|
+
return luvio.handleSuccessResponse(() => {
|
|
1239
|
+
const snapshot = ingestSuccess$8(luvio, resourceParams, response);
|
|
1240
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
1241
|
+
}, () => {
|
|
1242
|
+
const cache = new StoreKeyMap();
|
|
1243
|
+
getResponseCacheKeys$8(cache, luvio, resourceParams, response.body);
|
|
1244
|
+
return cache;
|
|
1245
|
+
});
|
|
1246
|
+
}, (response) => {
|
|
1247
|
+
deepFreeze(response);
|
|
1248
|
+
throw response;
|
|
1249
|
+
});
|
|
1250
|
+
}
|
|
1251
|
+
const createDataCleanRoomSpecificationAdapterFactory = (luvio) => {
|
|
1252
|
+
return function createDataCleanRoomSpecification(untrustedConfig) {
|
|
1253
|
+
const config = validateAdapterConfig$8(untrustedConfig, createDataCleanRoomSpecification_ConfigPropertyNames);
|
|
1254
|
+
// Invalid or incomplete config
|
|
1255
|
+
if (config === null) {
|
|
1256
|
+
throw new Error('Invalid config for "createDataCleanRoomSpecification"');
|
|
1257
|
+
}
|
|
1258
|
+
return buildNetworkSnapshot$8(luvio, config);
|
|
1259
|
+
};
|
|
1260
|
+
};
|
|
1261
|
+
|
|
1262
|
+
const VERSION$6 = "929b1bcf37fe62f914c2364146a0f5e6";
|
|
1263
|
+
function validate$6(obj, path = 'DataCleanRoomProviderRepresentation') {
|
|
1264
|
+
const v_error = (() => {
|
|
1265
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1266
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1267
|
+
}
|
|
1268
|
+
if (obj.createdBy !== undefined) {
|
|
1269
|
+
const obj_createdBy = obj.createdBy;
|
|
1270
|
+
const path_createdBy = path + '.createdBy';
|
|
1271
|
+
const referencepath_createdByValidationError = validate$f(obj_createdBy, path_createdBy);
|
|
1272
|
+
if (referencepath_createdByValidationError !== null) {
|
|
1273
|
+
let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_createdBy + '")\n';
|
|
1274
|
+
message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
1275
|
+
return new TypeError(message);
|
|
1276
|
+
}
|
|
1277
|
+
}
|
|
1278
|
+
if (obj.createdDate !== undefined) {
|
|
1279
|
+
const obj_createdDate = obj.createdDate;
|
|
1280
|
+
const path_createdDate = path + '.createdDate';
|
|
1281
|
+
if (typeof obj_createdDate !== 'string') {
|
|
1282
|
+
return new TypeError('Expected "string" but received "' + typeof obj_createdDate + '" (at "' + path_createdDate + '")');
|
|
1283
|
+
}
|
|
1284
|
+
}
|
|
1285
|
+
const obj_dataCloudOrgId = obj.dataCloudOrgId;
|
|
1286
|
+
const path_dataCloudOrgId = path + '.dataCloudOrgId';
|
|
1287
|
+
if (typeof obj_dataCloudOrgId !== 'string') {
|
|
1288
|
+
return new TypeError('Expected "string" but received "' + typeof obj_dataCloudOrgId + '" (at "' + path_dataCloudOrgId + '")');
|
|
1289
|
+
}
|
|
1290
|
+
const obj_description = obj.description;
|
|
1291
|
+
const path_description = path + '.description';
|
|
1292
|
+
if (typeof obj_description !== 'string') {
|
|
1293
|
+
return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
|
|
1294
|
+
}
|
|
1295
|
+
const obj_id = obj.id;
|
|
1296
|
+
const path_id = path + '.id';
|
|
1297
|
+
if (typeof obj_id !== 'string') {
|
|
1298
|
+
return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
|
|
1299
|
+
}
|
|
1300
|
+
if (obj.label !== undefined) {
|
|
1301
|
+
const obj_label = obj.label;
|
|
1302
|
+
const path_label = path + '.label';
|
|
1303
|
+
if (typeof obj_label !== 'string') {
|
|
1304
|
+
return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
|
|
1305
|
+
}
|
|
1306
|
+
}
|
|
1307
|
+
if (obj.lastModifiedBy !== undefined) {
|
|
1308
|
+
const obj_lastModifiedBy = obj.lastModifiedBy;
|
|
1309
|
+
const path_lastModifiedBy = path + '.lastModifiedBy';
|
|
1310
|
+
const referencepath_lastModifiedByValidationError = validate$f(obj_lastModifiedBy, path_lastModifiedBy);
|
|
1311
|
+
if (referencepath_lastModifiedByValidationError !== null) {
|
|
1312
|
+
let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_lastModifiedBy + '")\n';
|
|
1313
|
+
message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
1314
|
+
return new TypeError(message);
|
|
1315
|
+
}
|
|
1316
|
+
}
|
|
1317
|
+
if (obj.lastModifiedDate !== undefined) {
|
|
1318
|
+
const obj_lastModifiedDate = obj.lastModifiedDate;
|
|
1319
|
+
const path_lastModifiedDate = path + '.lastModifiedDate';
|
|
1320
|
+
if (typeof obj_lastModifiedDate !== 'string') {
|
|
1321
|
+
return new TypeError('Expected "string" but received "' + typeof obj_lastModifiedDate + '" (at "' + path_lastModifiedDate + '")');
|
|
1322
|
+
}
|
|
1323
|
+
}
|
|
1324
|
+
if (obj.logoUrl !== undefined) {
|
|
1325
|
+
const obj_logoUrl = obj.logoUrl;
|
|
1326
|
+
const path_logoUrl = path + '.logoUrl';
|
|
1327
|
+
if (typeof obj_logoUrl !== 'string') {
|
|
1328
|
+
return new TypeError('Expected "string" but received "' + typeof obj_logoUrl + '" (at "' + path_logoUrl + '")');
|
|
1329
|
+
}
|
|
1330
|
+
}
|
|
1331
|
+
if (obj.name !== undefined) {
|
|
1332
|
+
const obj_name = obj.name;
|
|
1333
|
+
const path_name = path + '.name';
|
|
1334
|
+
if (typeof obj_name !== 'string') {
|
|
1335
|
+
return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
|
|
1336
|
+
}
|
|
1337
|
+
}
|
|
1338
|
+
if (obj.namespace !== undefined) {
|
|
1339
|
+
const obj_namespace = obj.namespace;
|
|
1340
|
+
const path_namespace = path + '.namespace';
|
|
1341
|
+
if (typeof obj_namespace !== 'string') {
|
|
1342
|
+
return new TypeError('Expected "string" but received "' + typeof obj_namespace + '" (at "' + path_namespace + '")');
|
|
1343
|
+
}
|
|
1344
|
+
}
|
|
1345
|
+
const obj_templateNames = obj.templateNames;
|
|
1346
|
+
const path_templateNames = path + '.templateNames';
|
|
1347
|
+
if (!ArrayIsArray(obj_templateNames)) {
|
|
1348
|
+
return new TypeError('Expected "array" but received "' + typeof obj_templateNames + '" (at "' + path_templateNames + '")');
|
|
1349
|
+
}
|
|
1350
|
+
for (let i = 0; i < obj_templateNames.length; i++) {
|
|
1351
|
+
const obj_templateNames_item = obj_templateNames[i];
|
|
1352
|
+
const path_templateNames_item = path_templateNames + '[' + i + ']';
|
|
1353
|
+
if (typeof obj_templateNames_item !== 'string') {
|
|
1354
|
+
return new TypeError('Expected "string" but received "' + typeof obj_templateNames_item + '" (at "' + path_templateNames_item + '")');
|
|
1355
|
+
}
|
|
1356
|
+
}
|
|
1357
|
+
if (obj.url !== undefined) {
|
|
1358
|
+
const obj_url = obj.url;
|
|
1359
|
+
const path_url = path + '.url';
|
|
1360
|
+
if (typeof obj_url !== 'string') {
|
|
1361
|
+
return new TypeError('Expected "string" but received "' + typeof obj_url + '" (at "' + path_url + '")');
|
|
1362
|
+
}
|
|
1363
|
+
}
|
|
1364
|
+
})();
|
|
1365
|
+
return v_error === undefined ? null : v_error;
|
|
1366
|
+
}
|
|
1367
|
+
const RepresentationType$6 = 'DataCleanRoomProviderRepresentation';
|
|
1368
|
+
function keyBuilder$b(luvio, config) {
|
|
1369
|
+
return keyPrefix + '::' + RepresentationType$6 + ':' + config.id;
|
|
1370
|
+
}
|
|
1371
|
+
function keyBuilderFromType$1(luvio, object) {
|
|
1372
|
+
const keyParams = {
|
|
1373
|
+
id: object.id
|
|
1374
|
+
};
|
|
1375
|
+
return keyBuilder$b(luvio, keyParams);
|
|
1376
|
+
}
|
|
1377
|
+
function normalize$6(input, existing, path, luvio, store, timestamp) {
|
|
1378
|
+
return input;
|
|
1379
|
+
}
|
|
1380
|
+
const select$e = function DataCleanRoomProviderRepresentationSelect() {
|
|
1381
|
+
return {
|
|
1382
|
+
kind: 'Fragment',
|
|
1383
|
+
version: VERSION$6,
|
|
1384
|
+
private: [],
|
|
1385
|
+
opaque: true
|
|
1386
|
+
};
|
|
1387
|
+
};
|
|
1388
|
+
function equals$6(existing, incoming) {
|
|
1389
|
+
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
1390
|
+
return false;
|
|
1391
|
+
}
|
|
1392
|
+
return true;
|
|
1393
|
+
}
|
|
1394
|
+
const ingest$6 = function DataCleanRoomProviderRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1395
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
1396
|
+
const validateError = validate$6(input);
|
|
1397
|
+
if (validateError !== null) {
|
|
1398
|
+
throw validateError;
|
|
1399
|
+
}
|
|
1400
|
+
}
|
|
1401
|
+
const key = keyBuilderFromType$1(luvio, input);
|
|
1402
|
+
const ttlToUse = path.ttl !== undefined ? path.ttl : 60000;
|
|
1403
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$6, "data-clean-room", VERSION$6, RepresentationType$6, equals$6);
|
|
1404
|
+
return createLink(key);
|
|
1405
|
+
};
|
|
1406
|
+
function getTypeCacheKeys$6(rootKeySet, luvio, input, fullPathFactory) {
|
|
1407
|
+
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
1408
|
+
const rootKey = keyBuilderFromType$1(luvio, input);
|
|
1409
|
+
rootKeySet.set(rootKey, {
|
|
1410
|
+
namespace: keyPrefix,
|
|
1411
|
+
representationName: RepresentationType$6,
|
|
1412
|
+
mergeable: false
|
|
1413
|
+
});
|
|
1414
|
+
}
|
|
1415
|
+
|
|
1416
|
+
function select$d(luvio, params) {
|
|
1417
|
+
return select$e();
|
|
1418
|
+
}
|
|
1419
|
+
function getResponseCacheKeys$7(storeKeyMap, luvio, resourceParams, response) {
|
|
1420
|
+
getTypeCacheKeys$6(storeKeyMap, luvio, response);
|
|
1421
|
+
}
|
|
1422
|
+
function ingestSuccess$7(luvio, resourceParams, response) {
|
|
1423
|
+
const { body } = response;
|
|
1424
|
+
const key = keyBuilderFromType$1(luvio, body);
|
|
1425
|
+
luvio.storeIngest(key, ingest$6, body);
|
|
1426
|
+
const snapshot = luvio.storeLookup({
|
|
1427
|
+
recordId: key,
|
|
1428
|
+
node: select$d(),
|
|
1429
|
+
variables: {},
|
|
1430
|
+
});
|
|
1431
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
1432
|
+
if (snapshot.state !== 'Fulfilled') {
|
|
1433
|
+
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
1434
|
+
}
|
|
1435
|
+
}
|
|
1436
|
+
deepFreeze(snapshot.data);
|
|
1437
|
+
return snapshot;
|
|
1438
|
+
}
|
|
1439
|
+
function createResourceRequest$7(config) {
|
|
1440
|
+
const headers = {};
|
|
1441
|
+
return {
|
|
1442
|
+
baseUri: '/services/data/v64.0',
|
|
1443
|
+
basePath: '/ssot/data-clean-room/providers',
|
|
1444
|
+
method: 'post',
|
|
1445
|
+
body: config.body,
|
|
1446
|
+
urlParams: {},
|
|
1447
|
+
queryParams: {},
|
|
1448
|
+
headers,
|
|
1449
|
+
priority: 'normal',
|
|
1450
|
+
};
|
|
1451
|
+
}
|
|
1452
|
+
|
|
1453
|
+
const adapterName$7 = 'createProvider';
|
|
1454
|
+
const createProvider_ConfigPropertyMetadata = [
|
|
1455
|
+
generateParamConfigMetadata('label', true, 2 /* Body */, 0 /* String */),
|
|
1456
|
+
generateParamConfigMetadata('description', true, 2 /* Body */, 0 /* String */),
|
|
1457
|
+
generateParamConfigMetadata('templateNames', true, 2 /* Body */, 0 /* String */, true),
|
|
1458
|
+
generateParamConfigMetadata('dataCloudOrgId', true, 2 /* Body */, 0 /* String */),
|
|
1459
|
+
generateParamConfigMetadata('dataspaceName', false, 2 /* Body */, 0 /* String */),
|
|
1460
|
+
generateParamConfigMetadata('name', false, 2 /* Body */, 0 /* String */),
|
|
1461
|
+
generateParamConfigMetadata('logoUrl', false, 2 /* Body */, 0 /* String */),
|
|
1462
|
+
];
|
|
1463
|
+
const createProvider_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$7, createProvider_ConfigPropertyMetadata);
|
|
1464
|
+
const createResourceParams$7 = /*#__PURE__*/ createResourceParams$b(createProvider_ConfigPropertyMetadata);
|
|
1465
|
+
function typeCheckConfig$7(untrustedConfig) {
|
|
1466
|
+
const config = {};
|
|
1467
|
+
typeCheckConfig$b(untrustedConfig, config, createProvider_ConfigPropertyMetadata);
|
|
1468
|
+
return config;
|
|
1469
|
+
}
|
|
1470
|
+
function validateAdapterConfig$7(untrustedConfig, configPropertyNames) {
|
|
1471
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
1472
|
+
return null;
|
|
1473
|
+
}
|
|
1474
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
1475
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
1476
|
+
}
|
|
1477
|
+
const config = typeCheckConfig$7(untrustedConfig);
|
|
1478
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
1479
|
+
return null;
|
|
1480
|
+
}
|
|
1481
|
+
return config;
|
|
1482
|
+
}
|
|
1483
|
+
function buildNetworkSnapshot$7(luvio, config, options) {
|
|
1484
|
+
const resourceParams = createResourceParams$7(config);
|
|
1485
|
+
const request = createResourceRequest$7(resourceParams);
|
|
1486
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
1487
|
+
.then((response) => {
|
|
1488
|
+
return luvio.handleSuccessResponse(() => {
|
|
1489
|
+
const snapshot = ingestSuccess$7(luvio, resourceParams, response);
|
|
1490
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
1491
|
+
}, () => {
|
|
1492
|
+
const cache = new StoreKeyMap();
|
|
1493
|
+
getResponseCacheKeys$7(cache, luvio, resourceParams, response.body);
|
|
1494
|
+
return cache;
|
|
1495
|
+
});
|
|
1496
|
+
}, (response) => {
|
|
1497
|
+
deepFreeze(response);
|
|
1498
|
+
throw response;
|
|
1499
|
+
});
|
|
1500
|
+
}
|
|
1501
|
+
const createProviderAdapterFactory = (luvio) => {
|
|
1502
|
+
return function createProvider(untrustedConfig) {
|
|
1503
|
+
const config = validateAdapterConfig$7(untrustedConfig, createProvider_ConfigPropertyNames);
|
|
1504
|
+
// Invalid or incomplete config
|
|
1505
|
+
if (config === null) {
|
|
1506
|
+
throw new Error('Invalid config for "createProvider"');
|
|
1507
|
+
}
|
|
1508
|
+
return buildNetworkSnapshot$7(luvio, config);
|
|
1509
|
+
};
|
|
1510
|
+
};
|
|
1511
|
+
|
|
1512
|
+
const VERSION$5 = "a9f0b009de72ece59b856eea14e4af5c";
|
|
1513
|
+
function validate$5(obj, path = 'DataCleanRoomQueryJobRepresentation') {
|
|
1514
|
+
const v_error = (() => {
|
|
1515
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1516
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1517
|
+
}
|
|
1518
|
+
if (obj.completedDate !== undefined) {
|
|
1519
|
+
const obj_completedDate = obj.completedDate;
|
|
1520
|
+
const path_completedDate = path + '.completedDate';
|
|
1521
|
+
if (typeof obj_completedDate !== 'string') {
|
|
1522
|
+
return new TypeError('Expected "string" but received "' + typeof obj_completedDate + '" (at "' + path_completedDate + '")');
|
|
1523
|
+
}
|
|
1524
|
+
}
|
|
1525
|
+
if (obj.createdBy !== undefined) {
|
|
1526
|
+
const obj_createdBy = obj.createdBy;
|
|
1527
|
+
const path_createdBy = path + '.createdBy';
|
|
1528
|
+
const referencepath_createdByValidationError = validate$f(obj_createdBy, path_createdBy);
|
|
1529
|
+
if (referencepath_createdByValidationError !== null) {
|
|
1530
|
+
let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_createdBy + '")\n';
|
|
1531
|
+
message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
1532
|
+
return new TypeError(message);
|
|
1533
|
+
}
|
|
1534
|
+
}
|
|
1535
|
+
if (obj.createdDate !== undefined) {
|
|
1536
|
+
const obj_createdDate = obj.createdDate;
|
|
1537
|
+
const path_createdDate = path + '.createdDate';
|
|
1538
|
+
if (typeof obj_createdDate !== 'string') {
|
|
1539
|
+
return new TypeError('Expected "string" but received "' + typeof obj_createdDate + '" (at "' + path_createdDate + '")');
|
|
1540
|
+
}
|
|
1541
|
+
}
|
|
1542
|
+
if (obj.errorCode !== undefined) {
|
|
1543
|
+
const obj_errorCode = obj.errorCode;
|
|
1544
|
+
const path_errorCode = path + '.errorCode';
|
|
1545
|
+
if (typeof obj_errorCode !== 'string') {
|
|
1546
|
+
return new TypeError('Expected "string" but received "' + typeof obj_errorCode + '" (at "' + path_errorCode + '")');
|
|
1547
|
+
}
|
|
1548
|
+
}
|
|
1549
|
+
if (obj.errorMessage !== undefined) {
|
|
1550
|
+
const obj_errorMessage = obj.errorMessage;
|
|
1551
|
+
const path_errorMessage = path + '.errorMessage';
|
|
1552
|
+
if (typeof obj_errorMessage !== 'string') {
|
|
1553
|
+
return new TypeError('Expected "string" but received "' + typeof obj_errorMessage + '" (at "' + path_errorMessage + '")');
|
|
1554
|
+
}
|
|
1555
|
+
}
|
|
1556
|
+
const obj_id = obj.id;
|
|
1557
|
+
const path_id = path + '.id';
|
|
1558
|
+
if (typeof obj_id !== 'string') {
|
|
1559
|
+
return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
|
|
1560
|
+
}
|
|
1561
|
+
if (obj.label !== undefined) {
|
|
1562
|
+
const obj_label = obj.label;
|
|
1563
|
+
const path_label = path + '.label';
|
|
1564
|
+
if (typeof obj_label !== 'string') {
|
|
1565
|
+
return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
|
|
1566
|
+
}
|
|
1567
|
+
}
|
|
1568
|
+
if (obj.lastModifiedBy !== undefined) {
|
|
1569
|
+
const obj_lastModifiedBy = obj.lastModifiedBy;
|
|
1570
|
+
const path_lastModifiedBy = path + '.lastModifiedBy';
|
|
1571
|
+
const referencepath_lastModifiedByValidationError = validate$f(obj_lastModifiedBy, path_lastModifiedBy);
|
|
1572
|
+
if (referencepath_lastModifiedByValidationError !== null) {
|
|
1573
|
+
let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_lastModifiedBy + '")\n';
|
|
1574
|
+
message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
1575
|
+
return new TypeError(message);
|
|
1576
|
+
}
|
|
1577
|
+
}
|
|
1578
|
+
if (obj.lastModifiedDate !== undefined) {
|
|
1579
|
+
const obj_lastModifiedDate = obj.lastModifiedDate;
|
|
1580
|
+
const path_lastModifiedDate = path + '.lastModifiedDate';
|
|
1581
|
+
if (typeof obj_lastModifiedDate !== 'string') {
|
|
1582
|
+
return new TypeError('Expected "string" but received "' + typeof obj_lastModifiedDate + '" (at "' + path_lastModifiedDate + '")');
|
|
1583
|
+
}
|
|
1584
|
+
}
|
|
1585
|
+
if (obj.name !== undefined) {
|
|
1586
|
+
const obj_name = obj.name;
|
|
1587
|
+
const path_name = path + '.name';
|
|
1588
|
+
if (typeof obj_name !== 'string') {
|
|
1589
|
+
return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
|
|
1590
|
+
}
|
|
1591
|
+
}
|
|
1592
|
+
if (obj.result !== undefined) {
|
|
1593
|
+
const obj_result = obj.result;
|
|
1594
|
+
const path_result = path + '.result';
|
|
1595
|
+
if (typeof obj_result !== 'number' || (typeof obj_result === 'number' && Math.floor(obj_result) !== obj_result)) {
|
|
1596
|
+
return new TypeError('Expected "integer" but received "' + typeof obj_result + '" (at "' + path_result + '")');
|
|
1083
1597
|
}
|
|
1084
1598
|
}
|
|
1085
|
-
if (obj.
|
|
1086
|
-
const
|
|
1087
|
-
const
|
|
1088
|
-
if (
|
|
1089
|
-
return new TypeError('Expected "
|
|
1599
|
+
if (obj.segmentNames !== undefined) {
|
|
1600
|
+
const obj_segmentNames = obj.segmentNames;
|
|
1601
|
+
const path_segmentNames = path + '.segmentNames';
|
|
1602
|
+
if (!ArrayIsArray(obj_segmentNames)) {
|
|
1603
|
+
return new TypeError('Expected "array" but received "' + typeof obj_segmentNames + '" (at "' + path_segmentNames + '")');
|
|
1604
|
+
}
|
|
1605
|
+
for (let i = 0; i < obj_segmentNames.length; i++) {
|
|
1606
|
+
const obj_segmentNames_item = obj_segmentNames[i];
|
|
1607
|
+
const path_segmentNames_item = path_segmentNames + '[' + i + ']';
|
|
1608
|
+
if (typeof obj_segmentNames_item !== 'string') {
|
|
1609
|
+
return new TypeError('Expected "string" but received "' + typeof obj_segmentNames_item + '" (at "' + path_segmentNames_item + '")');
|
|
1610
|
+
}
|
|
1090
1611
|
}
|
|
1091
1612
|
}
|
|
1092
1613
|
const obj_status = obj.status;
|
|
@@ -1094,35 +1615,30 @@ function validate$5(obj, path = 'DataCleanRoomDataSpecificationRepresentation')
|
|
|
1094
1615
|
if (typeof obj_status !== 'string') {
|
|
1095
1616
|
return new TypeError('Expected "string" but received "' + typeof obj_status + '" (at "' + path_status + '")');
|
|
1096
1617
|
}
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
if (obj.url !== undefined) {
|
|
1103
|
-
const obj_url = obj.url;
|
|
1104
|
-
const path_url = path + '.url';
|
|
1105
|
-
if (typeof obj_url !== 'string') {
|
|
1106
|
-
return new TypeError('Expected "string" but received "' + typeof obj_url + '" (at "' + path_url + '")');
|
|
1618
|
+
if (obj.triggeredDate !== undefined) {
|
|
1619
|
+
const obj_triggeredDate = obj.triggeredDate;
|
|
1620
|
+
const path_triggeredDate = path + '.triggeredDate';
|
|
1621
|
+
if (typeof obj_triggeredDate !== 'string') {
|
|
1622
|
+
return new TypeError('Expected "string" but received "' + typeof obj_triggeredDate + '" (at "' + path_triggeredDate + '")');
|
|
1107
1623
|
}
|
|
1108
1624
|
}
|
|
1109
1625
|
})();
|
|
1110
1626
|
return v_error === undefined ? null : v_error;
|
|
1111
1627
|
}
|
|
1112
|
-
const RepresentationType$5 = '
|
|
1113
|
-
function keyBuilder$
|
|
1628
|
+
const RepresentationType$5 = 'DataCleanRoomQueryJobRepresentation';
|
|
1629
|
+
function keyBuilder$a(luvio, config) {
|
|
1114
1630
|
return keyPrefix + '::' + RepresentationType$5 + ':' + config.id;
|
|
1115
1631
|
}
|
|
1116
|
-
function keyBuilderFromType
|
|
1632
|
+
function keyBuilderFromType(luvio, object) {
|
|
1117
1633
|
const keyParams = {
|
|
1118
1634
|
id: object.id
|
|
1119
1635
|
};
|
|
1120
|
-
return keyBuilder$
|
|
1636
|
+
return keyBuilder$a(luvio, keyParams);
|
|
1121
1637
|
}
|
|
1122
1638
|
function normalize$5(input, existing, path, luvio, store, timestamp) {
|
|
1123
1639
|
return input;
|
|
1124
1640
|
}
|
|
1125
|
-
const select$c = function
|
|
1641
|
+
const select$c = function DataCleanRoomQueryJobRepresentationSelect() {
|
|
1126
1642
|
return {
|
|
1127
1643
|
kind: 'Fragment',
|
|
1128
1644
|
version: VERSION$5,
|
|
@@ -1136,21 +1652,21 @@ function equals$5(existing, incoming) {
|
|
|
1136
1652
|
}
|
|
1137
1653
|
return true;
|
|
1138
1654
|
}
|
|
1139
|
-
const ingest$5 = function
|
|
1655
|
+
const ingest$5 = function DataCleanRoomQueryJobRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1140
1656
|
if (process.env.NODE_ENV !== 'production') {
|
|
1141
1657
|
const validateError = validate$5(input);
|
|
1142
1658
|
if (validateError !== null) {
|
|
1143
1659
|
throw validateError;
|
|
1144
1660
|
}
|
|
1145
1661
|
}
|
|
1146
|
-
const key = keyBuilderFromType
|
|
1662
|
+
const key = keyBuilderFromType(luvio, input);
|
|
1147
1663
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 60000;
|
|
1148
1664
|
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$5, "data-clean-room", VERSION$5, RepresentationType$5, equals$5);
|
|
1149
1665
|
return createLink(key);
|
|
1150
1666
|
};
|
|
1151
1667
|
function getTypeCacheKeys$5(rootKeySet, luvio, input, fullPathFactory) {
|
|
1152
1668
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
1153
|
-
const rootKey = keyBuilderFromType
|
|
1669
|
+
const rootKey = keyBuilderFromType(luvio, input);
|
|
1154
1670
|
rootKeySet.set(rootKey, {
|
|
1155
1671
|
namespace: keyPrefix,
|
|
1156
1672
|
representationName: RepresentationType$5,
|
|
@@ -1166,7 +1682,7 @@ function getResponseCacheKeys$6(storeKeyMap, luvio, resourceParams, response) {
|
|
|
1166
1682
|
}
|
|
1167
1683
|
function ingestSuccess$6(luvio, resourceParams, response) {
|
|
1168
1684
|
const { body } = response;
|
|
1169
|
-
const key = keyBuilderFromType
|
|
1685
|
+
const key = keyBuilderFromType(luvio, body);
|
|
1170
1686
|
luvio.storeIngest(key, ingest$5, body);
|
|
1171
1687
|
const snapshot = luvio.storeLookup({
|
|
1172
1688
|
recordId: key,
|
|
@@ -1185,34 +1701,27 @@ function createResourceRequest$6(config) {
|
|
|
1185
1701
|
const headers = {};
|
|
1186
1702
|
return {
|
|
1187
1703
|
baseUri: '/services/data/v64.0',
|
|
1188
|
-
basePath: '/ssot/data-clean-room/
|
|
1704
|
+
basePath: '/ssot/data-clean-room/' + config.urlParams.collaborationIdOrApiName + '/actions/run',
|
|
1189
1705
|
method: 'post',
|
|
1190
1706
|
body: config.body,
|
|
1191
|
-
urlParams:
|
|
1707
|
+
urlParams: config.urlParams,
|
|
1192
1708
|
queryParams: {},
|
|
1193
1709
|
headers,
|
|
1194
1710
|
priority: 'normal',
|
|
1195
1711
|
};
|
|
1196
1712
|
}
|
|
1197
1713
|
|
|
1198
|
-
const adapterName$6 = '
|
|
1199
|
-
const
|
|
1200
|
-
generateParamConfigMetadata('
|
|
1201
|
-
generateParamConfigMetadata('
|
|
1202
|
-
generateParamConfigMetadata('
|
|
1203
|
-
generateParamConfigMetadata('templateName', true, 2 /* Body */, 0 /* String */),
|
|
1204
|
-
generateParamConfigMetadata('name', false, 2 /* Body */, 0 /* String */),
|
|
1205
|
-
generateParamConfigMetadata('label', true, 2 /* Body */, 0 /* String */),
|
|
1206
|
-
generateParamConfigMetadata('description', true, 2 /* Body */, 0 /* String */),
|
|
1207
|
-
generateParamConfigMetadata('dataspaceName', false, 2 /* Body */, 0 /* String */),
|
|
1714
|
+
const adapterName$6 = 'executeDataCleanRoomQuery';
|
|
1715
|
+
const executeDataCleanRoomQuery_ConfigPropertyMetadata = [
|
|
1716
|
+
generateParamConfigMetadata('collaborationIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
1717
|
+
generateParamConfigMetadata('queryExecutionName', true, 2 /* Body */, 0 /* String */),
|
|
1718
|
+
generateParamConfigMetadata('segmentIds', true, 2 /* Body */, 0 /* String */, true),
|
|
1208
1719
|
];
|
|
1209
|
-
const
|
|
1210
|
-
const createResourceParams$6 = /*#__PURE__*/ createResourceParams$
|
|
1720
|
+
const executeDataCleanRoomQuery_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, executeDataCleanRoomQuery_ConfigPropertyMetadata);
|
|
1721
|
+
const createResourceParams$6 = /*#__PURE__*/ createResourceParams$b(executeDataCleanRoomQuery_ConfigPropertyMetadata);
|
|
1211
1722
|
function typeCheckConfig$6(untrustedConfig) {
|
|
1212
1723
|
const config = {};
|
|
1213
|
-
typeCheckConfig$
|
|
1214
|
-
const untrustedConfig_dataMapping = untrustedConfig.dataMapping;
|
|
1215
|
-
config.dataMapping = untrustedConfig_dataMapping;
|
|
1724
|
+
typeCheckConfig$b(untrustedConfig, config, executeDataCleanRoomQuery_ConfigPropertyMetadata);
|
|
1216
1725
|
return config;
|
|
1217
1726
|
}
|
|
1218
1727
|
function validateAdapterConfig$6(untrustedConfig, configPropertyNames) {
|
|
@@ -1246,136 +1755,98 @@ function buildNetworkSnapshot$6(luvio, config, options) {
|
|
|
1246
1755
|
throw response;
|
|
1247
1756
|
});
|
|
1248
1757
|
}
|
|
1249
|
-
const
|
|
1250
|
-
return function
|
|
1251
|
-
const config = validateAdapterConfig$6(untrustedConfig,
|
|
1758
|
+
const executeDataCleanRoomQueryAdapterFactory = (luvio) => {
|
|
1759
|
+
return function executeDataCleanRoomQuery(untrustedConfig) {
|
|
1760
|
+
const config = validateAdapterConfig$6(untrustedConfig, executeDataCleanRoomQuery_ConfigPropertyNames);
|
|
1252
1761
|
// Invalid or incomplete config
|
|
1253
1762
|
if (config === null) {
|
|
1254
|
-
throw new Error('Invalid config for "
|
|
1763
|
+
throw new Error('Invalid config for "executeDataCleanRoomQuery"');
|
|
1255
1764
|
}
|
|
1256
1765
|
return buildNetworkSnapshot$6(luvio, config);
|
|
1257
1766
|
};
|
|
1258
1767
|
};
|
|
1259
1768
|
|
|
1260
|
-
const VERSION$4 = "
|
|
1261
|
-
function validate$4(obj, path = '
|
|
1769
|
+
const VERSION$4 = "7aaafdce5d4ed7457442ab5701329217";
|
|
1770
|
+
function validate$4(obj, path = 'DataCleanRoomQueryJobHistoryCollectionRepresentation') {
|
|
1262
1771
|
const v_error = (() => {
|
|
1263
1772
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1264
1773
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1265
1774
|
}
|
|
1266
|
-
if (obj.
|
|
1267
|
-
const
|
|
1268
|
-
const
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_createdBy + '")\n';
|
|
1272
|
-
message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
1273
|
-
return new TypeError(message);
|
|
1274
|
-
}
|
|
1275
|
-
}
|
|
1276
|
-
if (obj.createdDate !== undefined) {
|
|
1277
|
-
const obj_createdDate = obj.createdDate;
|
|
1278
|
-
const path_createdDate = path + '.createdDate';
|
|
1279
|
-
if (typeof obj_createdDate !== 'string') {
|
|
1280
|
-
return new TypeError('Expected "string" but received "' + typeof obj_createdDate + '" (at "' + path_createdDate + '")');
|
|
1281
|
-
}
|
|
1282
|
-
}
|
|
1283
|
-
const obj_dataCloudOrgId = obj.dataCloudOrgId;
|
|
1284
|
-
const path_dataCloudOrgId = path + '.dataCloudOrgId';
|
|
1285
|
-
if (typeof obj_dataCloudOrgId !== 'string') {
|
|
1286
|
-
return new TypeError('Expected "string" but received "' + typeof obj_dataCloudOrgId + '" (at "' + path_dataCloudOrgId + '")');
|
|
1287
|
-
}
|
|
1288
|
-
const obj_description = obj.description;
|
|
1289
|
-
const path_description = path + '.description';
|
|
1290
|
-
if (typeof obj_description !== 'string') {
|
|
1291
|
-
return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
|
|
1292
|
-
}
|
|
1293
|
-
const obj_id = obj.id;
|
|
1294
|
-
const path_id = path + '.id';
|
|
1295
|
-
if (typeof obj_id !== 'string') {
|
|
1296
|
-
return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
|
|
1297
|
-
}
|
|
1298
|
-
if (obj.label !== undefined) {
|
|
1299
|
-
const obj_label = obj.label;
|
|
1300
|
-
const path_label = path + '.label';
|
|
1301
|
-
if (typeof obj_label !== 'string') {
|
|
1302
|
-
return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
|
|
1303
|
-
}
|
|
1304
|
-
}
|
|
1305
|
-
if (obj.lastModifiedBy !== undefined) {
|
|
1306
|
-
const obj_lastModifiedBy = obj.lastModifiedBy;
|
|
1307
|
-
const path_lastModifiedBy = path + '.lastModifiedBy';
|
|
1308
|
-
const referencepath_lastModifiedByValidationError = validate$d(obj_lastModifiedBy, path_lastModifiedBy);
|
|
1309
|
-
if (referencepath_lastModifiedByValidationError !== null) {
|
|
1310
|
-
let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_lastModifiedBy + '")\n';
|
|
1311
|
-
message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
1312
|
-
return new TypeError(message);
|
|
1775
|
+
if (obj.currentPageUrl !== undefined) {
|
|
1776
|
+
const obj_currentPageUrl = obj.currentPageUrl;
|
|
1777
|
+
const path_currentPageUrl = path + '.currentPageUrl';
|
|
1778
|
+
if (typeof obj_currentPageUrl !== 'string') {
|
|
1779
|
+
return new TypeError('Expected "string" but received "' + typeof obj_currentPageUrl + '" (at "' + path_currentPageUrl + '")');
|
|
1313
1780
|
}
|
|
1314
1781
|
}
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
return new TypeError('Expected "string" but received "' + typeof obj_lastModifiedDate + '" (at "' + path_lastModifiedDate + '")');
|
|
1320
|
-
}
|
|
1782
|
+
const obj_limit = obj.limit;
|
|
1783
|
+
const path_limit = path + '.limit';
|
|
1784
|
+
if (typeof obj_limit !== 'number' || (typeof obj_limit === 'number' && Math.floor(obj_limit) !== obj_limit)) {
|
|
1785
|
+
return new TypeError('Expected "integer" but received "' + typeof obj_limit + '" (at "' + path_limit + '")');
|
|
1321
1786
|
}
|
|
1322
|
-
if (obj.
|
|
1323
|
-
const
|
|
1324
|
-
const
|
|
1325
|
-
|
|
1326
|
-
|
|
1787
|
+
if (obj.nextPageUrl !== undefined) {
|
|
1788
|
+
const obj_nextPageUrl = obj.nextPageUrl;
|
|
1789
|
+
const path_nextPageUrl = path + '.nextPageUrl';
|
|
1790
|
+
let obj_nextPageUrl_union0 = null;
|
|
1791
|
+
const obj_nextPageUrl_union0_error = (() => {
|
|
1792
|
+
if (typeof obj_nextPageUrl !== 'string') {
|
|
1793
|
+
return new TypeError('Expected "string" but received "' + typeof obj_nextPageUrl + '" (at "' + path_nextPageUrl + '")');
|
|
1794
|
+
}
|
|
1795
|
+
})();
|
|
1796
|
+
if (obj_nextPageUrl_union0_error != null) {
|
|
1797
|
+
obj_nextPageUrl_union0 = obj_nextPageUrl_union0_error.message;
|
|
1327
1798
|
}
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1799
|
+
let obj_nextPageUrl_union1 = null;
|
|
1800
|
+
const obj_nextPageUrl_union1_error = (() => {
|
|
1801
|
+
if (obj_nextPageUrl !== null) {
|
|
1802
|
+
return new TypeError('Expected "null" but received "' + typeof obj_nextPageUrl + '" (at "' + path_nextPageUrl + '")');
|
|
1803
|
+
}
|
|
1804
|
+
})();
|
|
1805
|
+
if (obj_nextPageUrl_union1_error != null) {
|
|
1806
|
+
obj_nextPageUrl_union1 = obj_nextPageUrl_union1_error.message;
|
|
1334
1807
|
}
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
return new TypeError('Expected "string" but received "' + typeof obj_namespace + '" (at "' + path_namespace + '")');
|
|
1808
|
+
if (obj_nextPageUrl_union0 && obj_nextPageUrl_union1) {
|
|
1809
|
+
let message = 'Object doesn\'t match union (at "' + path_nextPageUrl + '")';
|
|
1810
|
+
message += '\n' + obj_nextPageUrl_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
1811
|
+
message += '\n' + obj_nextPageUrl_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
1812
|
+
return new TypeError(message);
|
|
1341
1813
|
}
|
|
1342
1814
|
}
|
|
1343
|
-
const
|
|
1344
|
-
const
|
|
1345
|
-
if (
|
|
1346
|
-
return new TypeError('Expected "
|
|
1815
|
+
const obj_offset = obj.offset;
|
|
1816
|
+
const path_offset = path + '.offset';
|
|
1817
|
+
if (typeof obj_offset !== 'number' || (typeof obj_offset === 'number' && Math.floor(obj_offset) !== obj_offset)) {
|
|
1818
|
+
return new TypeError('Expected "integer" but received "' + typeof obj_offset + '" (at "' + path_offset + '")');
|
|
1347
1819
|
}
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1820
|
+
const obj_queryJobs = obj.queryJobs;
|
|
1821
|
+
const path_queryJobs = path + '.queryJobs';
|
|
1822
|
+
if (!ArrayIsArray(obj_queryJobs)) {
|
|
1823
|
+
return new TypeError('Expected "array" but received "' + typeof obj_queryJobs + '" (at "' + path_queryJobs + '")');
|
|
1824
|
+
}
|
|
1825
|
+
for (let i = 0; i < obj_queryJobs.length; i++) {
|
|
1826
|
+
const obj_queryJobs_item = obj_queryJobs[i];
|
|
1827
|
+
const path_queryJobs_item = path_queryJobs + '[' + i + ']';
|
|
1828
|
+
const referencepath_queryJobs_itemValidationError = validate$5(obj_queryJobs_item, path_queryJobs_item);
|
|
1829
|
+
if (referencepath_queryJobs_itemValidationError !== null) {
|
|
1830
|
+
let message = 'Object doesn\'t match DataCleanRoomQueryJobRepresentation (at "' + path_queryJobs_item + '")\n';
|
|
1831
|
+
message += referencepath_queryJobs_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
1832
|
+
return new TypeError(message);
|
|
1353
1833
|
}
|
|
1354
1834
|
}
|
|
1355
|
-
if (obj.
|
|
1356
|
-
const
|
|
1357
|
-
const
|
|
1358
|
-
if (typeof
|
|
1359
|
-
return new TypeError('Expected "
|
|
1835
|
+
if (obj.totalSize !== undefined) {
|
|
1836
|
+
const obj_totalSize = obj.totalSize;
|
|
1837
|
+
const path_totalSize = path + '.totalSize';
|
|
1838
|
+
if (typeof obj_totalSize !== 'number' || (typeof obj_totalSize === 'number' && Math.floor(obj_totalSize) !== obj_totalSize)) {
|
|
1839
|
+
return new TypeError('Expected "integer" but received "' + typeof obj_totalSize + '" (at "' + path_totalSize + '")');
|
|
1360
1840
|
}
|
|
1361
1841
|
}
|
|
1362
1842
|
})();
|
|
1363
1843
|
return v_error === undefined ? null : v_error;
|
|
1364
1844
|
}
|
|
1365
|
-
const RepresentationType$4 = '
|
|
1366
|
-
function keyBuilder$8(luvio, config) {
|
|
1367
|
-
return keyPrefix + '::' + RepresentationType$4 + ':' + config.id;
|
|
1368
|
-
}
|
|
1369
|
-
function keyBuilderFromType(luvio, object) {
|
|
1370
|
-
const keyParams = {
|
|
1371
|
-
id: object.id
|
|
1372
|
-
};
|
|
1373
|
-
return keyBuilder$8(luvio, keyParams);
|
|
1374
|
-
}
|
|
1845
|
+
const RepresentationType$4 = 'DataCleanRoomQueryJobHistoryCollectionRepresentation';
|
|
1375
1846
|
function normalize$4(input, existing, path, luvio, store, timestamp) {
|
|
1376
1847
|
return input;
|
|
1377
1848
|
}
|
|
1378
|
-
const select$a = function
|
|
1849
|
+
const select$a = function DataCleanRoomQueryJobHistoryCollectionRepresentationSelect() {
|
|
1379
1850
|
return {
|
|
1380
1851
|
kind: 'Fragment',
|
|
1381
1852
|
version: VERSION$4,
|
|
@@ -1389,21 +1860,21 @@ function equals$4(existing, incoming) {
|
|
|
1389
1860
|
}
|
|
1390
1861
|
return true;
|
|
1391
1862
|
}
|
|
1392
|
-
const ingest$4 = function
|
|
1863
|
+
const ingest$4 = function DataCleanRoomQueryJobHistoryCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1393
1864
|
if (process.env.NODE_ENV !== 'production') {
|
|
1394
1865
|
const validateError = validate$4(input);
|
|
1395
1866
|
if (validateError !== null) {
|
|
1396
1867
|
throw validateError;
|
|
1397
1868
|
}
|
|
1398
1869
|
}
|
|
1399
|
-
const key =
|
|
1870
|
+
const key = path.fullPath;
|
|
1400
1871
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 60000;
|
|
1401
1872
|
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$4, "data-clean-room", VERSION$4, RepresentationType$4, equals$4);
|
|
1402
1873
|
return createLink(key);
|
|
1403
1874
|
};
|
|
1404
1875
|
function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
|
|
1405
1876
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
1406
|
-
const rootKey =
|
|
1877
|
+
const rootKey = fullPathFactory();
|
|
1407
1878
|
rootKeySet.set(rootKey, {
|
|
1408
1879
|
namespace: keyPrefix,
|
|
1409
1880
|
representationName: RepresentationType$4,
|
|
@@ -1414,18 +1885,21 @@ function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
1414
1885
|
function select$9(luvio, params) {
|
|
1415
1886
|
return select$a();
|
|
1416
1887
|
}
|
|
1888
|
+
function keyBuilder$9(luvio, params) {
|
|
1889
|
+
return keyPrefix + '::DataCleanRoomQueryJobHistoryCollectionRepresentation:(' + 'collaborationIdOrApiName:' + params.urlParams.collaborationIdOrApiName + ')';
|
|
1890
|
+
}
|
|
1417
1891
|
function getResponseCacheKeys$5(storeKeyMap, luvio, resourceParams, response) {
|
|
1418
|
-
getTypeCacheKeys$4(storeKeyMap, luvio, response);
|
|
1892
|
+
getTypeCacheKeys$4(storeKeyMap, luvio, response, () => keyBuilder$9(luvio, resourceParams));
|
|
1419
1893
|
}
|
|
1420
|
-
function ingestSuccess$5(luvio, resourceParams, response) {
|
|
1894
|
+
function ingestSuccess$5(luvio, resourceParams, response, snapshotRefresh) {
|
|
1421
1895
|
const { body } = response;
|
|
1422
|
-
const key =
|
|
1896
|
+
const key = keyBuilder$9(luvio, resourceParams);
|
|
1423
1897
|
luvio.storeIngest(key, ingest$4, body);
|
|
1424
1898
|
const snapshot = luvio.storeLookup({
|
|
1425
1899
|
recordId: key,
|
|
1426
1900
|
node: select$9(),
|
|
1427
1901
|
variables: {},
|
|
1428
|
-
});
|
|
1902
|
+
}, snapshotRefresh);
|
|
1429
1903
|
if (process.env.NODE_ENV !== 'production') {
|
|
1430
1904
|
if (snapshot.state !== 'Fulfilled') {
|
|
1431
1905
|
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
@@ -1434,35 +1908,39 @@ function ingestSuccess$5(luvio, resourceParams, response) {
|
|
|
1434
1908
|
deepFreeze(snapshot.data);
|
|
1435
1909
|
return snapshot;
|
|
1436
1910
|
}
|
|
1911
|
+
function ingestError$4(luvio, params, error, snapshotRefresh) {
|
|
1912
|
+
const key = keyBuilder$9(luvio, params);
|
|
1913
|
+
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
1914
|
+
luvio.storeIngestError(key, errorSnapshot);
|
|
1915
|
+
return errorSnapshot;
|
|
1916
|
+
}
|
|
1437
1917
|
function createResourceRequest$5(config) {
|
|
1438
1918
|
const headers = {};
|
|
1439
1919
|
return {
|
|
1440
1920
|
baseUri: '/services/data/v64.0',
|
|
1441
|
-
basePath: '/ssot/data-clean-room/
|
|
1442
|
-
method: '
|
|
1443
|
-
body:
|
|
1444
|
-
urlParams:
|
|
1921
|
+
basePath: '/ssot/data-clean-room/' + config.urlParams.collaborationIdOrApiName + '/jobs',
|
|
1922
|
+
method: 'get',
|
|
1923
|
+
body: null,
|
|
1924
|
+
urlParams: config.urlParams,
|
|
1445
1925
|
queryParams: {},
|
|
1446
1926
|
headers,
|
|
1447
1927
|
priority: 'normal',
|
|
1448
1928
|
};
|
|
1449
1929
|
}
|
|
1450
1930
|
|
|
1451
|
-
const adapterName$5 = '
|
|
1452
|
-
const
|
|
1453
|
-
generateParamConfigMetadata('
|
|
1454
|
-
generateParamConfigMetadata('description', true, 2 /* Body */, 0 /* String */),
|
|
1455
|
-
generateParamConfigMetadata('templateNames', true, 2 /* Body */, 0 /* String */, true),
|
|
1456
|
-
generateParamConfigMetadata('dataCloudOrgId', true, 2 /* Body */, 0 /* String */),
|
|
1457
|
-
generateParamConfigMetadata('dataspaceName', false, 2 /* Body */, 0 /* String */),
|
|
1458
|
-
generateParamConfigMetadata('name', false, 2 /* Body */, 0 /* String */),
|
|
1459
|
-
generateParamConfigMetadata('logoUrl', false, 2 /* Body */, 0 /* String */),
|
|
1931
|
+
const adapterName$5 = 'getAllDataCleanRoomQueryPaginated';
|
|
1932
|
+
const getAllDataCleanRoomQueryPaginated_ConfigPropertyMetadata = [
|
|
1933
|
+
generateParamConfigMetadata('collaborationIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
1460
1934
|
];
|
|
1461
|
-
const
|
|
1462
|
-
const createResourceParams$5 = /*#__PURE__*/ createResourceParams$
|
|
1935
|
+
const getAllDataCleanRoomQueryPaginated_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, getAllDataCleanRoomQueryPaginated_ConfigPropertyMetadata);
|
|
1936
|
+
const createResourceParams$5 = /*#__PURE__*/ createResourceParams$b(getAllDataCleanRoomQueryPaginated_ConfigPropertyMetadata);
|
|
1937
|
+
function keyBuilder$8(luvio, config) {
|
|
1938
|
+
const resourceParams = createResourceParams$5(config);
|
|
1939
|
+
return keyBuilder$9(luvio, resourceParams);
|
|
1940
|
+
}
|
|
1463
1941
|
function typeCheckConfig$5(untrustedConfig) {
|
|
1464
1942
|
const config = {};
|
|
1465
|
-
typeCheckConfig$
|
|
1943
|
+
typeCheckConfig$b(untrustedConfig, config, getAllDataCleanRoomQueryPaginated_ConfigPropertyMetadata);
|
|
1466
1944
|
return config;
|
|
1467
1945
|
}
|
|
1468
1946
|
function validateAdapterConfig$5(untrustedConfig, configPropertyNames) {
|
|
@@ -1478,33 +1956,62 @@ function validateAdapterConfig$5(untrustedConfig, configPropertyNames) {
|
|
|
1478
1956
|
}
|
|
1479
1957
|
return config;
|
|
1480
1958
|
}
|
|
1959
|
+
function adapterFragment$4(luvio, config) {
|
|
1960
|
+
createResourceParams$5(config);
|
|
1961
|
+
return select$9();
|
|
1962
|
+
}
|
|
1963
|
+
function onFetchResponseSuccess$4(luvio, config, resourceParams, response) {
|
|
1964
|
+
const snapshot = ingestSuccess$5(luvio, resourceParams, response, {
|
|
1965
|
+
config,
|
|
1966
|
+
resolve: () => buildNetworkSnapshot$5(luvio, config, snapshotRefreshOptions)
|
|
1967
|
+
});
|
|
1968
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
1969
|
+
}
|
|
1970
|
+
function onFetchResponseError$4(luvio, config, resourceParams, response) {
|
|
1971
|
+
const snapshot = ingestError$4(luvio, resourceParams, response, {
|
|
1972
|
+
config,
|
|
1973
|
+
resolve: () => buildNetworkSnapshot$5(luvio, config, snapshotRefreshOptions)
|
|
1974
|
+
});
|
|
1975
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
1976
|
+
}
|
|
1481
1977
|
function buildNetworkSnapshot$5(luvio, config, options) {
|
|
1482
1978
|
const resourceParams = createResourceParams$5(config);
|
|
1483
1979
|
const request = createResourceRequest$5(resourceParams);
|
|
1484
1980
|
return luvio.dispatchResourceRequest(request, options)
|
|
1485
1981
|
.then((response) => {
|
|
1486
|
-
return luvio.handleSuccessResponse(() => {
|
|
1487
|
-
const snapshot = ingestSuccess$5(luvio, resourceParams, response);
|
|
1488
|
-
return luvio.storeBroadcast().then(() => snapshot);
|
|
1489
|
-
}, () => {
|
|
1982
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$4(luvio, config, resourceParams, response), () => {
|
|
1490
1983
|
const cache = new StoreKeyMap();
|
|
1491
1984
|
getResponseCacheKeys$5(cache, luvio, resourceParams, response.body);
|
|
1492
1985
|
return cache;
|
|
1493
1986
|
});
|
|
1494
1987
|
}, (response) => {
|
|
1495
|
-
|
|
1496
|
-
throw response;
|
|
1988
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$4(luvio, config, resourceParams, response));
|
|
1497
1989
|
});
|
|
1498
1990
|
}
|
|
1499
|
-
|
|
1500
|
-
return
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1991
|
+
function buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext) {
|
|
1992
|
+
return buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext, buildNetworkSnapshot$5, undefined, false);
|
|
1993
|
+
}
|
|
1994
|
+
function buildCachedSnapshotCachePolicy$4(context, storeLookup) {
|
|
1995
|
+
const { luvio, config } = context;
|
|
1996
|
+
const selector = {
|
|
1997
|
+
recordId: keyBuilder$8(luvio, config),
|
|
1998
|
+
node: adapterFragment$4(luvio, config),
|
|
1999
|
+
variables: {},
|
|
1507
2000
|
};
|
|
2001
|
+
const cacheSnapshot = storeLookup(selector, {
|
|
2002
|
+
config,
|
|
2003
|
+
resolve: () => buildNetworkSnapshot$5(luvio, config, snapshotRefreshOptions)
|
|
2004
|
+
});
|
|
2005
|
+
return cacheSnapshot;
|
|
2006
|
+
}
|
|
2007
|
+
const getAllDataCleanRoomQueryPaginatedAdapterFactory = (luvio) => function dataCleanRoom__getAllDataCleanRoomQueryPaginated(untrustedConfig, requestContext) {
|
|
2008
|
+
const config = validateAdapterConfig$5(untrustedConfig, getAllDataCleanRoomQueryPaginated_ConfigPropertyNames);
|
|
2009
|
+
// Invalid or incomplete config
|
|
2010
|
+
if (config === null) {
|
|
2011
|
+
return null;
|
|
2012
|
+
}
|
|
2013
|
+
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
2014
|
+
buildCachedSnapshotCachePolicy$4, buildNetworkSnapshotCachePolicy$4);
|
|
1508
2015
|
};
|
|
1509
2016
|
|
|
1510
2017
|
const VERSION$3 = "9e5eddaaa3330278c7aa483af5dc8d74";
|
|
@@ -1521,7 +2028,7 @@ function validate$3(obj, path = 'DataCleanRoomCollaborationCollectionRepresentat
|
|
|
1521
2028
|
for (let i = 0; i < obj_collaborations.length; i++) {
|
|
1522
2029
|
const obj_collaborations_item = obj_collaborations[i];
|
|
1523
2030
|
const path_collaborations_item = path_collaborations + '[' + i + ']';
|
|
1524
|
-
const referencepath_collaborations_itemValidationError = validate$
|
|
2031
|
+
const referencepath_collaborations_itemValidationError = validate$d(obj_collaborations_item, path_collaborations_item);
|
|
1525
2032
|
if (referencepath_collaborations_itemValidationError !== null) {
|
|
1526
2033
|
let message = 'Object doesn\'t match DataCleanRoomCollaborationRepresentation (at "' + path_collaborations_item + '")\n';
|
|
1527
2034
|
message += referencepath_collaborations_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1677,14 +2184,14 @@ const getAllDataCleanRoomsPaginated_ConfigPropertyMetadata = [
|
|
|
1677
2184
|
generateParamConfigMetadata('orderBy', false, 1 /* QueryParameter */, 0 /* String */),
|
|
1678
2185
|
];
|
|
1679
2186
|
const getAllDataCleanRoomsPaginated_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, getAllDataCleanRoomsPaginated_ConfigPropertyMetadata);
|
|
1680
|
-
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$
|
|
2187
|
+
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$b(getAllDataCleanRoomsPaginated_ConfigPropertyMetadata);
|
|
1681
2188
|
function keyBuilder$6(luvio, config) {
|
|
1682
2189
|
const resourceParams = createResourceParams$4(config);
|
|
1683
2190
|
return keyBuilder$7(luvio, resourceParams);
|
|
1684
2191
|
}
|
|
1685
2192
|
function typeCheckConfig$4(untrustedConfig) {
|
|
1686
2193
|
const config = {};
|
|
1687
|
-
typeCheckConfig$
|
|
2194
|
+
typeCheckConfig$b(untrustedConfig, config, getAllDataCleanRoomsPaginated_ConfigPropertyMetadata);
|
|
1688
2195
|
return config;
|
|
1689
2196
|
}
|
|
1690
2197
|
function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
|
|
@@ -1733,7 +2240,7 @@ function buildNetworkSnapshot$4(luvio, config, options) {
|
|
|
1733
2240
|
});
|
|
1734
2241
|
}
|
|
1735
2242
|
function buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext) {
|
|
1736
|
-
return buildNetworkSnapshotCachePolicy$
|
|
2243
|
+
return buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext, buildNetworkSnapshot$4, undefined, false);
|
|
1737
2244
|
}
|
|
1738
2245
|
function buildCachedSnapshotCachePolicy$3(context, storeLookup) {
|
|
1739
2246
|
const { luvio, config } = context;
|
|
@@ -1842,7 +2349,7 @@ function normalize$2(input, existing, path, luvio, store, timestamp) {
|
|
|
1842
2349
|
for (let i = 0; i < input_providers.length; i++) {
|
|
1843
2350
|
const input_providers_item = input_providers[i];
|
|
1844
2351
|
let input_providers_item_id = input_providers_id + '__' + i;
|
|
1845
|
-
input_providers[i] = ingest$
|
|
2352
|
+
input_providers[i] = ingest$6(input_providers_item, {
|
|
1846
2353
|
fullPath: input_providers_item_id,
|
|
1847
2354
|
propertyName: i,
|
|
1848
2355
|
parent: {
|
|
@@ -1885,7 +2392,7 @@ const select$6 = function DataCleanRoomProviderCollectionRepresentationSelect()
|
|
|
1885
2392
|
name: 'providers',
|
|
1886
2393
|
kind: 'Link',
|
|
1887
2394
|
plural: true,
|
|
1888
|
-
fragment: select$
|
|
2395
|
+
fragment: select$e()
|
|
1889
2396
|
},
|
|
1890
2397
|
{
|
|
1891
2398
|
name: 'totalSize',
|
|
@@ -1995,7 +2502,7 @@ function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
1995
2502
|
});
|
|
1996
2503
|
const input_providers_length = input.providers.length;
|
|
1997
2504
|
for (let i = 0; i < input_providers_length; i++) {
|
|
1998
|
-
getTypeCacheKeys$
|
|
2505
|
+
getTypeCacheKeys$6(rootKeySet, luvio, input.providers[i]);
|
|
1999
2506
|
}
|
|
2000
2507
|
}
|
|
2001
2508
|
|
|
@@ -2053,14 +2560,14 @@ const getDataCleanRoomProvidersPaginated_ConfigPropertyMetadata = [
|
|
|
2053
2560
|
generateParamConfigMetadata('orderBy', false, 1 /* QueryParameter */, 0 /* String */),
|
|
2054
2561
|
];
|
|
2055
2562
|
const getDataCleanRoomProvidersPaginated_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, getDataCleanRoomProvidersPaginated_ConfigPropertyMetadata);
|
|
2056
|
-
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$
|
|
2563
|
+
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$b(getDataCleanRoomProvidersPaginated_ConfigPropertyMetadata);
|
|
2057
2564
|
function keyBuilder$4(luvio, config) {
|
|
2058
2565
|
const resourceParams = createResourceParams$3(config);
|
|
2059
2566
|
return keyBuilder$5(luvio, resourceParams);
|
|
2060
2567
|
}
|
|
2061
2568
|
function typeCheckConfig$3(untrustedConfig) {
|
|
2062
2569
|
const config = {};
|
|
2063
|
-
typeCheckConfig$
|
|
2570
|
+
typeCheckConfig$b(untrustedConfig, config, getDataCleanRoomProvidersPaginated_ConfigPropertyMetadata);
|
|
2064
2571
|
return config;
|
|
2065
2572
|
}
|
|
2066
2573
|
function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
|
|
@@ -2109,7 +2616,7 @@ function buildNetworkSnapshot$3(luvio, config, options) {
|
|
|
2109
2616
|
});
|
|
2110
2617
|
}
|
|
2111
2618
|
function buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext) {
|
|
2112
|
-
return buildNetworkSnapshotCachePolicy$
|
|
2619
|
+
return buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext, buildNetworkSnapshot$3, undefined, false);
|
|
2113
2620
|
}
|
|
2114
2621
|
function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
|
|
2115
2622
|
const { luvio, config } = context;
|
|
@@ -2214,7 +2721,7 @@ function normalize$1(input, existing, path, luvio, store, timestamp) {
|
|
|
2214
2721
|
for (let i = 0; i < input_cleanroomSpecifications.length; i++) {
|
|
2215
2722
|
const input_cleanroomSpecifications_item = input_cleanroomSpecifications[i];
|
|
2216
2723
|
let input_cleanroomSpecifications_item_id = input_cleanroomSpecifications_id + '__' + i;
|
|
2217
|
-
input_cleanroomSpecifications[i] = ingest$
|
|
2724
|
+
input_cleanroomSpecifications[i] = ingest$7(input_cleanroomSpecifications_item, {
|
|
2218
2725
|
fullPath: input_cleanroomSpecifications_item_id,
|
|
2219
2726
|
propertyName: i,
|
|
2220
2727
|
parent: {
|
|
@@ -2237,7 +2744,7 @@ const select$4 = function DataCleanRoomSpecificationCollectionRepresentationSele
|
|
|
2237
2744
|
name: 'cleanroomSpecifications',
|
|
2238
2745
|
kind: 'Link',
|
|
2239
2746
|
plural: true,
|
|
2240
|
-
fragment: select$
|
|
2747
|
+
fragment: select$g()
|
|
2241
2748
|
},
|
|
2242
2749
|
{
|
|
2243
2750
|
name: 'currentPageUrl',
|
|
@@ -2349,7 +2856,7 @@ function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
2349
2856
|
});
|
|
2350
2857
|
const input_cleanroomSpecifications_length = input.cleanroomSpecifications.length;
|
|
2351
2858
|
for (let i = 0; i < input_cleanroomSpecifications_length; i++) {
|
|
2352
|
-
getTypeCacheKeys$
|
|
2859
|
+
getTypeCacheKeys$7(rootKeySet, luvio, input.cleanroomSpecifications[i]);
|
|
2353
2860
|
}
|
|
2354
2861
|
}
|
|
2355
2862
|
|
|
@@ -2407,14 +2914,14 @@ const getDataCleanRoomSpecificationsPaginated_ConfigPropertyMetadata = [
|
|
|
2407
2914
|
generateParamConfigMetadata('orderBy', false, 1 /* QueryParameter */, 0 /* String */),
|
|
2408
2915
|
];
|
|
2409
2916
|
const getDataCleanRoomSpecificationsPaginated_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, getDataCleanRoomSpecificationsPaginated_ConfigPropertyMetadata);
|
|
2410
|
-
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$
|
|
2917
|
+
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$b(getDataCleanRoomSpecificationsPaginated_ConfigPropertyMetadata);
|
|
2411
2918
|
function keyBuilder$2(luvio, config) {
|
|
2412
2919
|
const resourceParams = createResourceParams$2(config);
|
|
2413
2920
|
return keyBuilder$3(luvio, resourceParams);
|
|
2414
2921
|
}
|
|
2415
2922
|
function typeCheckConfig$2(untrustedConfig) {
|
|
2416
2923
|
const config = {};
|
|
2417
|
-
typeCheckConfig$
|
|
2924
|
+
typeCheckConfig$b(untrustedConfig, config, getDataCleanRoomSpecificationsPaginated_ConfigPropertyMetadata);
|
|
2418
2925
|
return config;
|
|
2419
2926
|
}
|
|
2420
2927
|
function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
|
|
@@ -2463,7 +2970,7 @@ function buildNetworkSnapshot$2(luvio, config, options) {
|
|
|
2463
2970
|
});
|
|
2464
2971
|
}
|
|
2465
2972
|
function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
|
|
2466
|
-
return buildNetworkSnapshotCachePolicy$
|
|
2973
|
+
return buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext, buildNetworkSnapshot$2, undefined, false);
|
|
2467
2974
|
}
|
|
2468
2975
|
function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
|
|
2469
2976
|
const { luvio, config } = context;
|
|
@@ -2547,7 +3054,7 @@ function validate(obj, path = 'DataCleanRoomTemplateCollectionRepresentation') {
|
|
|
2547
3054
|
for (let i = 0; i < obj_templates.length; i++) {
|
|
2548
3055
|
const obj_templates_item = obj_templates[i];
|
|
2549
3056
|
const path_templates_item = path_templates + '[' + i + ']';
|
|
2550
|
-
const referencepath_templates_itemValidationError = validate$
|
|
3057
|
+
const referencepath_templates_itemValidationError = validate$e(obj_templates_item, path_templates_item);
|
|
2551
3058
|
if (referencepath_templates_itemValidationError !== null) {
|
|
2552
3059
|
let message = 'Object doesn\'t match DataCleanRoomTemplateRepresentation (at "' + path_templates_item + '")\n';
|
|
2553
3060
|
message += referencepath_templates_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2657,14 +3164,14 @@ const getDataCleanRoomTemplatePaginated_ConfigPropertyMetadata = [
|
|
|
2657
3164
|
generateParamConfigMetadata('orderBy', false, 1 /* QueryParameter */, 0 /* String */),
|
|
2658
3165
|
];
|
|
2659
3166
|
const getDataCleanRoomTemplatePaginated_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, getDataCleanRoomTemplatePaginated_ConfigPropertyMetadata);
|
|
2660
|
-
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$
|
|
3167
|
+
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$b(getDataCleanRoomTemplatePaginated_ConfigPropertyMetadata);
|
|
2661
3168
|
function keyBuilder(luvio, config) {
|
|
2662
3169
|
const resourceParams = createResourceParams$1(config);
|
|
2663
3170
|
return keyBuilder$1(luvio, resourceParams);
|
|
2664
3171
|
}
|
|
2665
3172
|
function typeCheckConfig$1(untrustedConfig) {
|
|
2666
3173
|
const config = {};
|
|
2667
|
-
typeCheckConfig$
|
|
3174
|
+
typeCheckConfig$b(untrustedConfig, config, getDataCleanRoomTemplatePaginated_ConfigPropertyMetadata);
|
|
2668
3175
|
return config;
|
|
2669
3176
|
}
|
|
2670
3177
|
function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
|
|
@@ -2713,7 +3220,7 @@ function buildNetworkSnapshot$1(luvio, config, options) {
|
|
|
2713
3220
|
});
|
|
2714
3221
|
}
|
|
2715
3222
|
function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
|
|
2716
|
-
return buildNetworkSnapshotCachePolicy$
|
|
3223
|
+
return buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext, buildNetworkSnapshot$1, undefined, false);
|
|
2717
3224
|
}
|
|
2718
3225
|
function buildCachedSnapshotCachePolicy(context, storeLookup) {
|
|
2719
3226
|
const { luvio, config } = context;
|
|
@@ -2739,15 +3246,15 @@ const getDataCleanRoomTemplatePaginatedAdapterFactory = (luvio) => function data
|
|
|
2739
3246
|
};
|
|
2740
3247
|
|
|
2741
3248
|
function select(luvio, params) {
|
|
2742
|
-
return select$
|
|
3249
|
+
return select$k();
|
|
2743
3250
|
}
|
|
2744
3251
|
function getResponseCacheKeys(storeKeyMap, luvio, resourceParams, response) {
|
|
2745
|
-
getTypeCacheKeys$
|
|
3252
|
+
getTypeCacheKeys$9(storeKeyMap, luvio, response);
|
|
2746
3253
|
}
|
|
2747
3254
|
function ingestSuccess(luvio, resourceParams, response) {
|
|
2748
3255
|
const { body } = response;
|
|
2749
|
-
const key = keyBuilderFromType$
|
|
2750
|
-
luvio.storeIngest(key, ingest$
|
|
3256
|
+
const key = keyBuilderFromType$4(luvio, body);
|
|
3257
|
+
luvio.storeIngest(key, ingest$9, body);
|
|
2751
3258
|
const snapshot = luvio.storeLookup({
|
|
2752
3259
|
recordId: key,
|
|
2753
3260
|
node: select(),
|
|
@@ -2781,10 +3288,10 @@ const rejectDataCleanRoomInvitation_ConfigPropertyMetadata = [
|
|
|
2781
3288
|
generateParamConfigMetadata('invitationId', true, 2 /* Body */, 0 /* String */),
|
|
2782
3289
|
];
|
|
2783
3290
|
const rejectDataCleanRoomInvitation_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, rejectDataCleanRoomInvitation_ConfigPropertyMetadata);
|
|
2784
|
-
const createResourceParams = /*#__PURE__*/ createResourceParams$
|
|
3291
|
+
const createResourceParams = /*#__PURE__*/ createResourceParams$b(rejectDataCleanRoomInvitation_ConfigPropertyMetadata);
|
|
2785
3292
|
function typeCheckConfig(untrustedConfig) {
|
|
2786
3293
|
const config = {};
|
|
2787
|
-
typeCheckConfig$
|
|
3294
|
+
typeCheckConfig$b(untrustedConfig, config, rejectDataCleanRoomInvitation_ConfigPropertyMetadata);
|
|
2788
3295
|
return config;
|
|
2789
3296
|
}
|
|
2790
3297
|
function validateAdapterConfig(untrustedConfig, configPropertyNames) {
|
|
@@ -2833,16 +3340,23 @@ let acceptDataCleanRoomInvitation;
|
|
|
2833
3340
|
let createDataCleanRoomCollaboration;
|
|
2834
3341
|
let createDataCleanRoomSpecification;
|
|
2835
3342
|
let createProvider;
|
|
3343
|
+
let executeDataCleanRoomQuery;
|
|
3344
|
+
let getAllDataCleanRoomQueryPaginated;
|
|
2836
3345
|
let getAllDataCleanRoomsPaginated;
|
|
2837
3346
|
let getDataCleanRoomProvidersPaginated;
|
|
2838
3347
|
let getDataCleanRoomSpecificationsPaginated;
|
|
2839
3348
|
let getDataCleanRoomTemplatePaginated;
|
|
2840
3349
|
let rejectDataCleanRoomInvitation;
|
|
2841
3350
|
// Imperative GET Adapters
|
|
3351
|
+
let getAllDataCleanRoomQueryPaginated_imperative;
|
|
2842
3352
|
let getAllDataCleanRoomsPaginated_imperative;
|
|
2843
3353
|
let getDataCleanRoomProvidersPaginated_imperative;
|
|
2844
3354
|
let getDataCleanRoomSpecificationsPaginated_imperative;
|
|
2845
3355
|
let getDataCleanRoomTemplatePaginated_imperative;
|
|
3356
|
+
const getAllDataCleanRoomQueryPaginatedMetadata = {
|
|
3357
|
+
apiFamily: 'dataclean-room',
|
|
3358
|
+
name: 'getAllDataCleanRoomQueryPaginated',
|
|
3359
|
+
};
|
|
2846
3360
|
const getAllDataCleanRoomsPaginatedMetadata = {
|
|
2847
3361
|
apiFamily: 'dataclean-room',
|
|
2848
3362
|
name: 'getAllDataCleanRoomsPaginated',
|
|
@@ -2862,6 +3376,7 @@ const getDataCleanRoomTemplatePaginatedMetadata = {
|
|
|
2862
3376
|
// Notify Update Available
|
|
2863
3377
|
function bindExportsTo(luvio) {
|
|
2864
3378
|
// LDS Adapters
|
|
3379
|
+
const getAllDataCleanRoomQueryPaginated_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getAllDataCleanRoomQueryPaginated', getAllDataCleanRoomQueryPaginatedAdapterFactory), getAllDataCleanRoomQueryPaginatedMetadata);
|
|
2865
3380
|
const getAllDataCleanRoomsPaginated_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getAllDataCleanRoomsPaginated', getAllDataCleanRoomsPaginatedAdapterFactory), getAllDataCleanRoomsPaginatedMetadata);
|
|
2866
3381
|
const getDataCleanRoomProvidersPaginated_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getDataCleanRoomProvidersPaginated', getDataCleanRoomProvidersPaginatedAdapterFactory), getDataCleanRoomProvidersPaginatedMetadata);
|
|
2867
3382
|
const getDataCleanRoomSpecificationsPaginated_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getDataCleanRoomSpecificationsPaginated', getDataCleanRoomSpecificationsPaginatedAdapterFactory), getDataCleanRoomSpecificationsPaginatedMetadata);
|
|
@@ -2875,12 +3390,15 @@ function bindExportsTo(luvio) {
|
|
|
2875
3390
|
createDataCleanRoomCollaboration: unwrapSnapshotData(createDataCleanRoomCollaborationAdapterFactory),
|
|
2876
3391
|
createDataCleanRoomSpecification: unwrapSnapshotData(createDataCleanRoomSpecificationAdapterFactory),
|
|
2877
3392
|
createProvider: unwrapSnapshotData(createProviderAdapterFactory),
|
|
3393
|
+
executeDataCleanRoomQuery: unwrapSnapshotData(executeDataCleanRoomQueryAdapterFactory),
|
|
3394
|
+
getAllDataCleanRoomQueryPaginated: createWireAdapterConstructor(luvio, getAllDataCleanRoomQueryPaginated_ldsAdapter, getAllDataCleanRoomQueryPaginatedMetadata),
|
|
2878
3395
|
getAllDataCleanRoomsPaginated: createWireAdapterConstructor(luvio, getAllDataCleanRoomsPaginated_ldsAdapter, getAllDataCleanRoomsPaginatedMetadata),
|
|
2879
3396
|
getDataCleanRoomProvidersPaginated: createWireAdapterConstructor(luvio, getDataCleanRoomProvidersPaginated_ldsAdapter, getDataCleanRoomProvidersPaginatedMetadata),
|
|
2880
3397
|
getDataCleanRoomSpecificationsPaginated: createWireAdapterConstructor(luvio, getDataCleanRoomSpecificationsPaginated_ldsAdapter, getDataCleanRoomSpecificationsPaginatedMetadata),
|
|
2881
3398
|
getDataCleanRoomTemplatePaginated: createWireAdapterConstructor(luvio, getDataCleanRoomTemplatePaginated_ldsAdapter, getDataCleanRoomTemplatePaginatedMetadata),
|
|
2882
3399
|
rejectDataCleanRoomInvitation: unwrapSnapshotData(rejectDataCleanRoomInvitationAdapterFactory),
|
|
2883
3400
|
// Imperative GET Adapters
|
|
3401
|
+
getAllDataCleanRoomQueryPaginated_imperative: createImperativeAdapter(luvio, getAllDataCleanRoomQueryPaginated_ldsAdapter, getAllDataCleanRoomQueryPaginatedMetadata),
|
|
2884
3402
|
getAllDataCleanRoomsPaginated_imperative: createImperativeAdapter(luvio, getAllDataCleanRoomsPaginated_ldsAdapter, getAllDataCleanRoomsPaginatedMetadata),
|
|
2885
3403
|
getDataCleanRoomProvidersPaginated_imperative: createImperativeAdapter(luvio, getDataCleanRoomProvidersPaginated_ldsAdapter, getDataCleanRoomProvidersPaginatedMetadata),
|
|
2886
3404
|
getDataCleanRoomSpecificationsPaginated_imperative: createImperativeAdapter(luvio, getDataCleanRoomSpecificationsPaginated_ldsAdapter, getDataCleanRoomSpecificationsPaginatedMetadata),
|
|
@@ -2894,11 +3412,14 @@ withDefaultLuvio((luvio) => {
|
|
|
2894
3412
|
createDataCleanRoomCollaboration,
|
|
2895
3413
|
createDataCleanRoomSpecification,
|
|
2896
3414
|
createProvider,
|
|
3415
|
+
executeDataCleanRoomQuery,
|
|
3416
|
+
getAllDataCleanRoomQueryPaginated,
|
|
2897
3417
|
getAllDataCleanRoomsPaginated,
|
|
2898
3418
|
getDataCleanRoomProvidersPaginated,
|
|
2899
3419
|
getDataCleanRoomSpecificationsPaginated,
|
|
2900
3420
|
getDataCleanRoomTemplatePaginated,
|
|
2901
3421
|
rejectDataCleanRoomInvitation,
|
|
3422
|
+
getAllDataCleanRoomQueryPaginated_imperative,
|
|
2902
3423
|
getAllDataCleanRoomsPaginated_imperative,
|
|
2903
3424
|
getDataCleanRoomProvidersPaginated_imperative,
|
|
2904
3425
|
getDataCleanRoomSpecificationsPaginated_imperative,
|
|
@@ -2906,5 +3427,5 @@ withDefaultLuvio((luvio) => {
|
|
|
2906
3427
|
} = bindExportsTo(luvio));
|
|
2907
3428
|
});
|
|
2908
3429
|
|
|
2909
|
-
export { acceptDataCleanRoomInvitation, createDataCleanRoomCollaboration, createDataCleanRoomSpecification, createProvider, getAllDataCleanRoomsPaginated, getAllDataCleanRoomsPaginated_imperative, getDataCleanRoomProvidersPaginated, getDataCleanRoomProvidersPaginated_imperative, getDataCleanRoomSpecificationsPaginated, getDataCleanRoomSpecificationsPaginated_imperative, getDataCleanRoomTemplatePaginated, getDataCleanRoomTemplatePaginated_imperative, rejectDataCleanRoomInvitation };
|
|
2910
|
-
// version: 1.354.0-
|
|
3430
|
+
export { acceptDataCleanRoomInvitation, createDataCleanRoomCollaboration, createDataCleanRoomSpecification, createProvider, executeDataCleanRoomQuery, getAllDataCleanRoomQueryPaginated, getAllDataCleanRoomQueryPaginated_imperative, getAllDataCleanRoomsPaginated, getAllDataCleanRoomsPaginated_imperative, getDataCleanRoomProvidersPaginated, getDataCleanRoomProvidersPaginated_imperative, getDataCleanRoomSpecificationsPaginated, getDataCleanRoomSpecificationsPaginated_imperative, getDataCleanRoomTemplatePaginated, getDataCleanRoomTemplatePaginated_imperative, rejectDataCleanRoomInvitation };
|
|
3431
|
+
// version: 1.354.0-dev8-9491b01b31
|