@salesforce/lds-adapters-cdp-data-clean-room 1.380.0-dev2 → 1.380.0-dev22
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 +1038 -409
- package/dist/es/es2018/types/src/generated/adapters/acceptDataCleanRoomInvitation.d.ts +2 -2
- package/dist/es/es2018/types/src/generated/adapters/createDataCleanRoomCollaboration.d.ts +2 -1
- package/dist/es/es2018/types/src/generated/adapters/createDataCleanRoomSpecification.d.ts +4 -1
- package/dist/es/es2018/types/src/generated/adapters/createProvider.d.ts +13 -5
- package/dist/es/es2018/types/src/generated/adapters/executeDataCleanRoomQuery.d.ts +2 -1
- package/dist/es/es2018/types/src/generated/adapters/getDataCleanRoomTemplatePaginated.d.ts +1 -0
- package/dist/es/es2018/types/src/generated/adapters/getDataCleanRoomTemplatesByProviderIdPaginated.d.ts +31 -0
- package/dist/es/es2018/types/src/generated/adapters/rejectDataCleanRoomInvitation.d.ts +2 -2
- package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +1 -0
- package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +3 -1
- package/dist/es/es2018/types/src/generated/resources/getSsotDataCleanRoomProvidersTemplatesByProviderIdOrName.d.ts +21 -0
- package/dist/es/es2018/types/src/generated/resources/getSsotDataCleanRoomTemplates.d.ts +1 -0
- package/dist/es/es2018/types/src/generated/resources/postSsotDataCleanRoomCollaborations.d.ts +2 -1
- package/dist/es/es2018/types/src/generated/resources/postSsotDataCleanRoomCollaborationsActionsRunByCollaborationIdOrApiName.d.ts +2 -1
- package/dist/es/es2018/types/src/generated/resources/postSsotDataCleanRoomProviders.d.ts +13 -5
- package/dist/es/es2018/types/src/generated/resources/postSsotDataCleanRoomSpecifications.d.ts +4 -1
- package/dist/es/es2018/types/src/generated/types/CustomUseCaseTemplateAnalysisConfigRepresentation.d.ts +28 -0
- package/dist/es/es2018/types/src/generated/types/CustomUseCaseTemplateColumnRepresentation.d.ts +37 -0
- package/dist/es/es2018/types/src/generated/types/CustomUseCaseTemplateInputRepresentation.d.ts +40 -0
- package/dist/es/es2018/types/src/generated/types/CustomUseCaseTemplateQueryConfig.d.ts +49 -0
- package/dist/es/es2018/types/src/generated/types/CustomUseCaseTemplateQueryInputRepresentation.d.ts +29 -0
- package/dist/es/es2018/types/src/generated/types/CustomUseCaseTemplateQueryParamConfig.d.ts +34 -0
- package/dist/es/es2018/types/src/generated/types/CustomUseCaseTemplateQueryParamRepresentation.d.ts +29 -0
- package/dist/es/es2018/types/src/generated/types/CustomUseCaseTemplateTableConfig.d.ts +38 -0
- package/dist/es/es2018/types/src/generated/types/CustomUseCaseTemplateTableInputRepresentation.d.ts +29 -0
- package/dist/es/es2018/types/src/generated/types/DataCleanRoomCollaborationInputRepresentation.d.ts +6 -3
- package/dist/es/es2018/types/src/generated/types/DataCleanRoomCollaborationRepresentation.d.ts +4 -1
- package/dist/es/es2018/types/src/generated/types/DataCleanRoomDataSpecificationInputRepresentation.d.ts +12 -3
- package/dist/es/es2018/types/src/generated/types/DataCleanRoomDataSpecificationRepresentation.d.ts +9 -3
- package/dist/es/es2018/types/src/generated/types/DataCleanRoomMemberRepresentation.d.ts +3 -3
- package/dist/es/es2018/types/src/generated/types/DataCleanRoomProviderInputRepresentation.d.ts +29 -11
- package/dist/es/es2018/types/src/generated/types/DataCleanRoomProviderRepresentation.d.ts +26 -11
- package/dist/es/es2018/types/src/generated/types/DataCleanRoomQueryJobInputRepresentation.d.ts +6 -3
- package/dist/es/es2018/types/src/generated/types/DataCleanRoomQueryJobRepresentation.d.ts +16 -4
- package/dist/es/es2018/types/src/generated/types/DataCleanRoomTemplateRepresentation.d.ts +13 -1
- package/dist/es/es2018/types/src/generated/types/DataCleanRoomUseCaseTypeInputRepresentation.d.ts +28 -0
- package/dist/es/es2018/types/src/generated/types/DataCleanRoomUseCaseTypeRepresentation.d.ts +28 -0
- package/package.json +3 -3
- package/sfdc/index.js +1151 -511
- package/src/raml/api.raml +343 -14
- package/src/raml/luvio.raml +6 -2
- /package/dist/es/es2018/types/src/generated/resources/{putSsotDataCleanRoomCollaborationsActionsAcceptInvitationByCollaborationIdOrApiName.d.ts → postSsotDataCleanRoomCollaborationsActionsAcceptInvitationByCollaborationIdOrApiName.d.ts} +0 -0
- /package/dist/es/es2018/types/src/generated/resources/{putSsotDataCleanRoomCollaborationsActionsRejectInvitationByCollaborationIdOrApiName.d.ts → postSsotDataCleanRoomCollaborationsActionsRejectInvitationByCollaborationIdOrApiName.d.ts} +0 -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$c, typeCheckConfig as typeCheckConfig$c, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$6 } 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$9 = "
|
|
106
|
-
function validate$
|
|
105
|
+
const VERSION$9 = "a8672aefcec1f2472ac82220f6461ae6";
|
|
106
|
+
function validate$r(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 + '")');
|
|
@@ -123,10 +123,12 @@ function validate$g(obj, path = 'DataCleanRoomMemberRepresentation') {
|
|
|
123
123
|
if (typeof obj_memberId !== 'string') {
|
|
124
124
|
return new TypeError('Expected "string" but received "' + typeof obj_memberId + '" (at "' + path_memberId + '")');
|
|
125
125
|
}
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
126
|
+
if (obj.memberOrgId !== undefined) {
|
|
127
|
+
const obj_memberOrgId = obj.memberOrgId;
|
|
128
|
+
const path_memberOrgId = path + '.memberOrgId';
|
|
129
|
+
if (typeof obj_memberOrgId !== 'string') {
|
|
130
|
+
return new TypeError('Expected "string" but received "' + typeof obj_memberOrgId + '" (at "' + path_memberOrgId + '")');
|
|
131
|
+
}
|
|
130
132
|
}
|
|
131
133
|
const obj_memberStatus = obj.memberStatus;
|
|
132
134
|
const path_memberStatus = path + '.memberStatus';
|
|
@@ -154,19 +156,19 @@ function validate$g(obj, path = 'DataCleanRoomMemberRepresentation') {
|
|
|
154
156
|
return v_error === undefined ? null : v_error;
|
|
155
157
|
}
|
|
156
158
|
const RepresentationType$9 = 'DataCleanRoomMemberRepresentation';
|
|
157
|
-
function keyBuilder$
|
|
159
|
+
function keyBuilder$g(luvio, config) {
|
|
158
160
|
return keyPrefix + '::' + RepresentationType$9 + ':' + config.invitationId;
|
|
159
161
|
}
|
|
160
162
|
function keyBuilderFromType$4(luvio, object) {
|
|
161
163
|
const keyParams = {
|
|
162
164
|
invitationId: object.invitationId
|
|
163
165
|
};
|
|
164
|
-
return keyBuilder$
|
|
166
|
+
return keyBuilder$g(luvio, keyParams);
|
|
165
167
|
}
|
|
166
168
|
function normalize$9(input, existing, path, luvio, store, timestamp) {
|
|
167
169
|
return input;
|
|
168
170
|
}
|
|
169
|
-
const select$
|
|
171
|
+
const select$l = function DataCleanRoomMemberRepresentationSelect() {
|
|
170
172
|
return {
|
|
171
173
|
kind: 'Fragment',
|
|
172
174
|
version: VERSION$9,
|
|
@@ -182,7 +184,7 @@ function equals$9(existing, incoming) {
|
|
|
182
184
|
}
|
|
183
185
|
const ingest$9 = function DataCleanRoomMemberRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
184
186
|
if (process.env.NODE_ENV !== 'production') {
|
|
185
|
-
const validateError = validate$
|
|
187
|
+
const validateError = validate$r(input);
|
|
186
188
|
if (validateError !== null) {
|
|
187
189
|
throw validateError;
|
|
188
190
|
}
|
|
@@ -202,19 +204,19 @@ function getTypeCacheKeys$9(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
202
204
|
});
|
|
203
205
|
}
|
|
204
206
|
|
|
205
|
-
function select$
|
|
206
|
-
return select$
|
|
207
|
+
function select$k(luvio, params) {
|
|
208
|
+
return select$l();
|
|
207
209
|
}
|
|
208
|
-
function getResponseCacheKeys$
|
|
210
|
+
function getResponseCacheKeys$b(storeKeyMap, luvio, resourceParams, response) {
|
|
209
211
|
getTypeCacheKeys$9(storeKeyMap, luvio, response);
|
|
210
212
|
}
|
|
211
|
-
function ingestSuccess$
|
|
213
|
+
function ingestSuccess$b(luvio, resourceParams, response) {
|
|
212
214
|
const { body } = response;
|
|
213
215
|
const key = keyBuilderFromType$4(luvio, body);
|
|
214
216
|
luvio.storeIngest(key, ingest$9, body);
|
|
215
217
|
const snapshot = luvio.storeLookup({
|
|
216
218
|
recordId: key,
|
|
217
|
-
node: select$
|
|
219
|
+
node: select$k(),
|
|
218
220
|
variables: {},
|
|
219
221
|
});
|
|
220
222
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -225,12 +227,12 @@ function ingestSuccess$a(luvio, resourceParams, response) {
|
|
|
225
227
|
deepFreeze(snapshot.data);
|
|
226
228
|
return snapshot;
|
|
227
229
|
}
|
|
228
|
-
function createResourceRequest$
|
|
230
|
+
function createResourceRequest$b(config) {
|
|
229
231
|
const headers = {};
|
|
230
232
|
return {
|
|
231
233
|
baseUri: '/services/data/v65.0',
|
|
232
234
|
basePath: '/ssot/data-clean-room/collaborations/' + config.urlParams.collaborationIdOrApiName + '/actions/accept-invitation',
|
|
233
|
-
method: '
|
|
235
|
+
method: 'post',
|
|
234
236
|
body: config.body,
|
|
235
237
|
urlParams: config.urlParams,
|
|
236
238
|
queryParams: {},
|
|
@@ -239,43 +241,43 @@ function createResourceRequest$a(config) {
|
|
|
239
241
|
};
|
|
240
242
|
}
|
|
241
243
|
|
|
242
|
-
const adapterName$
|
|
244
|
+
const adapterName$b = 'acceptDataCleanRoomInvitation';
|
|
243
245
|
const acceptDataCleanRoomInvitation_ConfigPropertyMetadata = [
|
|
244
246
|
generateParamConfigMetadata('collaborationIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
245
247
|
generateParamConfigMetadata('invitationId', true, 2 /* Body */, 0 /* String */),
|
|
246
248
|
generateParamConfigMetadata('specificationId', true, 2 /* Body */, 0 /* String */),
|
|
247
249
|
];
|
|
248
|
-
const acceptDataCleanRoomInvitation_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
249
|
-
const createResourceParams$
|
|
250
|
-
function typeCheckConfig$
|
|
250
|
+
const acceptDataCleanRoomInvitation_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$b, acceptDataCleanRoomInvitation_ConfigPropertyMetadata);
|
|
251
|
+
const createResourceParams$b = /*#__PURE__*/ createResourceParams$c(acceptDataCleanRoomInvitation_ConfigPropertyMetadata);
|
|
252
|
+
function typeCheckConfig$b(untrustedConfig) {
|
|
251
253
|
const config = {};
|
|
252
|
-
typeCheckConfig$
|
|
254
|
+
typeCheckConfig$c(untrustedConfig, config, acceptDataCleanRoomInvitation_ConfigPropertyMetadata);
|
|
253
255
|
return config;
|
|
254
256
|
}
|
|
255
|
-
function validateAdapterConfig$
|
|
257
|
+
function validateAdapterConfig$b(untrustedConfig, configPropertyNames) {
|
|
256
258
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
257
259
|
return null;
|
|
258
260
|
}
|
|
259
261
|
if (process.env.NODE_ENV !== 'production') {
|
|
260
262
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
261
263
|
}
|
|
262
|
-
const config = typeCheckConfig$
|
|
264
|
+
const config = typeCheckConfig$b(untrustedConfig);
|
|
263
265
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
264
266
|
return null;
|
|
265
267
|
}
|
|
266
268
|
return config;
|
|
267
269
|
}
|
|
268
|
-
function buildNetworkSnapshot$
|
|
269
|
-
const resourceParams = createResourceParams$
|
|
270
|
-
const request = createResourceRequest$
|
|
270
|
+
function buildNetworkSnapshot$b(luvio, config, options) {
|
|
271
|
+
const resourceParams = createResourceParams$b(config);
|
|
272
|
+
const request = createResourceRequest$b(resourceParams);
|
|
271
273
|
return luvio.dispatchResourceRequest(request, options)
|
|
272
274
|
.then((response) => {
|
|
273
275
|
return luvio.handleSuccessResponse(() => {
|
|
274
|
-
const snapshot = ingestSuccess$
|
|
276
|
+
const snapshot = ingestSuccess$b(luvio, resourceParams, response);
|
|
275
277
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
276
278
|
}, () => {
|
|
277
279
|
const cache = new StoreKeyMap();
|
|
278
|
-
getResponseCacheKeys$
|
|
280
|
+
getResponseCacheKeys$b(cache, luvio, resourceParams, response.body);
|
|
279
281
|
return cache;
|
|
280
282
|
});
|
|
281
283
|
}, (response) => {
|
|
@@ -285,16 +287,16 @@ function buildNetworkSnapshot$a(luvio, config, options) {
|
|
|
285
287
|
}
|
|
286
288
|
const acceptDataCleanRoomInvitationAdapterFactory = (luvio) => {
|
|
287
289
|
return function acceptDataCleanRoomInvitation(untrustedConfig) {
|
|
288
|
-
const config = validateAdapterConfig$
|
|
290
|
+
const config = validateAdapterConfig$b(untrustedConfig, acceptDataCleanRoomInvitation_ConfigPropertyNames);
|
|
289
291
|
// Invalid or incomplete config
|
|
290
292
|
if (config === null) {
|
|
291
293
|
throw new Error('Invalid config for "acceptDataCleanRoomInvitation"');
|
|
292
294
|
}
|
|
293
|
-
return buildNetworkSnapshot$
|
|
295
|
+
return buildNetworkSnapshot$b(luvio, config);
|
|
294
296
|
};
|
|
295
297
|
};
|
|
296
298
|
|
|
297
|
-
function validate$
|
|
299
|
+
function validate$q(obj, path = 'CdpUserRepresentation') {
|
|
298
300
|
const v_error = (() => {
|
|
299
301
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
300
302
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -324,7 +326,7 @@ function validate$f(obj, path = 'CdpUserRepresentation') {
|
|
|
324
326
|
return v_error === undefined ? null : v_error;
|
|
325
327
|
}
|
|
326
328
|
|
|
327
|
-
function validate$
|
|
329
|
+
function validate$p(obj, path = 'DataCleanRoomTemplateRepresentation') {
|
|
328
330
|
const v_error = (() => {
|
|
329
331
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
330
332
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -337,7 +339,7 @@ function validate$e(obj, path = 'DataCleanRoomTemplateRepresentation') {
|
|
|
337
339
|
if (obj.createdBy !== undefined) {
|
|
338
340
|
const obj_createdBy = obj.createdBy;
|
|
339
341
|
const path_createdBy = path + '.createdBy';
|
|
340
|
-
const referencepath_createdByValidationError = validate$
|
|
342
|
+
const referencepath_createdByValidationError = validate$q(obj_createdBy, path_createdBy);
|
|
341
343
|
if (referencepath_createdByValidationError !== null) {
|
|
342
344
|
let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_createdBy + '")\n';
|
|
343
345
|
message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -373,7 +375,7 @@ function validate$e(obj, path = 'DataCleanRoomTemplateRepresentation') {
|
|
|
373
375
|
if (obj.lastModifiedBy !== undefined) {
|
|
374
376
|
const obj_lastModifiedBy = obj.lastModifiedBy;
|
|
375
377
|
const path_lastModifiedBy = path + '.lastModifiedBy';
|
|
376
|
-
const referencepath_lastModifiedByValidationError = validate$
|
|
378
|
+
const referencepath_lastModifiedByValidationError = validate$q(obj_lastModifiedBy, path_lastModifiedBy);
|
|
377
379
|
if (referencepath_lastModifiedByValidationError !== null) {
|
|
378
380
|
let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_lastModifiedBy + '")\n';
|
|
379
381
|
message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -401,11 +403,32 @@ function validate$e(obj, path = 'DataCleanRoomTemplateRepresentation') {
|
|
|
401
403
|
return new TypeError('Expected "string" but received "' + typeof obj_namespace + '" (at "' + path_namespace + '")');
|
|
402
404
|
}
|
|
403
405
|
}
|
|
406
|
+
if (obj.providerId !== undefined) {
|
|
407
|
+
const obj_providerId = obj.providerId;
|
|
408
|
+
const path_providerId = path + '.providerId';
|
|
409
|
+
if (typeof obj_providerId !== 'string') {
|
|
410
|
+
return new TypeError('Expected "string" but received "' + typeof obj_providerId + '" (at "' + path_providerId + '")');
|
|
411
|
+
}
|
|
412
|
+
}
|
|
404
413
|
const obj_queryTemplate = obj.queryTemplate;
|
|
405
414
|
const path_queryTemplate = path + '.queryTemplate';
|
|
406
415
|
if (obj_queryTemplate === undefined) {
|
|
407
416
|
return new TypeError('Expected "defined" but received "' + typeof obj_queryTemplate + '" (at "' + path_queryTemplate + '")');
|
|
408
417
|
}
|
|
418
|
+
if (obj.templateType !== undefined) {
|
|
419
|
+
const obj_templateType = obj.templateType;
|
|
420
|
+
const path_templateType = path + '.templateType';
|
|
421
|
+
if (typeof obj_templateType !== 'string') {
|
|
422
|
+
return new TypeError('Expected "string" but received "' + typeof obj_templateType + '" (at "' + path_templateType + '")');
|
|
423
|
+
}
|
|
424
|
+
}
|
|
425
|
+
if (obj.templateVersion !== undefined) {
|
|
426
|
+
const obj_templateVersion = obj.templateVersion;
|
|
427
|
+
const path_templateVersion = path + '.templateVersion';
|
|
428
|
+
if (typeof obj_templateVersion !== 'string') {
|
|
429
|
+
return new TypeError('Expected "string" but received "' + typeof obj_templateVersion + '" (at "' + path_templateVersion + '")');
|
|
430
|
+
}
|
|
431
|
+
}
|
|
409
432
|
if (obj.url !== undefined) {
|
|
410
433
|
const obj_url = obj.url;
|
|
411
434
|
const path_url = path + '.url';
|
|
@@ -413,12 +436,19 @@ function validate$e(obj, path = 'DataCleanRoomTemplateRepresentation') {
|
|
|
413
436
|
return new TypeError('Expected "string" but received "' + typeof obj_url + '" (at "' + path_url + '")');
|
|
414
437
|
}
|
|
415
438
|
}
|
|
439
|
+
if (obj.useCaseType !== undefined) {
|
|
440
|
+
const obj_useCaseType = obj.useCaseType;
|
|
441
|
+
const path_useCaseType = path + '.useCaseType';
|
|
442
|
+
if (typeof obj_useCaseType !== 'string') {
|
|
443
|
+
return new TypeError('Expected "string" but received "' + typeof obj_useCaseType + '" (at "' + path_useCaseType + '")');
|
|
444
|
+
}
|
|
445
|
+
}
|
|
416
446
|
})();
|
|
417
447
|
return v_error === undefined ? null : v_error;
|
|
418
448
|
}
|
|
419
449
|
|
|
420
|
-
const VERSION$8 = "
|
|
421
|
-
function validate$
|
|
450
|
+
const VERSION$8 = "f266e94d40f966349735e07b0c5e0721";
|
|
451
|
+
function validate$o(obj, path = 'DataCleanRoomCollaborationRepresentation') {
|
|
422
452
|
const v_error = (() => {
|
|
423
453
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
424
454
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -433,7 +463,7 @@ function validate$d(obj, path = 'DataCleanRoomCollaborationRepresentation') {
|
|
|
433
463
|
if (obj.createdBy !== undefined) {
|
|
434
464
|
const obj_createdBy = obj.createdBy;
|
|
435
465
|
const path_createdBy = path + '.createdBy';
|
|
436
|
-
const referencepath_createdByValidationError = validate$
|
|
466
|
+
const referencepath_createdByValidationError = validate$q(obj_createdBy, path_createdBy);
|
|
437
467
|
if (referencepath_createdByValidationError !== null) {
|
|
438
468
|
let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_createdBy + '")\n';
|
|
439
469
|
message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -454,6 +484,13 @@ function validate$d(obj, path = 'DataCleanRoomCollaborationRepresentation') {
|
|
|
454
484
|
return new TypeError('Expected "string" but received "' + typeof obj_dataSpaceName + '" (at "' + path_dataSpaceName + '")');
|
|
455
485
|
}
|
|
456
486
|
}
|
|
487
|
+
if (obj.dataspace !== undefined) {
|
|
488
|
+
const obj_dataspace = obj.dataspace;
|
|
489
|
+
const path_dataspace = path + '.dataspace';
|
|
490
|
+
if (obj_dataspace === undefined) {
|
|
491
|
+
return new TypeError('Expected "defined" but received "' + typeof obj_dataspace + '" (at "' + path_dataspace + '")');
|
|
492
|
+
}
|
|
493
|
+
}
|
|
457
494
|
if (obj.description !== undefined) {
|
|
458
495
|
const obj_description = obj.description;
|
|
459
496
|
const path_description = path + '.description';
|
|
@@ -476,7 +513,7 @@ function validate$d(obj, path = 'DataCleanRoomCollaborationRepresentation') {
|
|
|
476
513
|
if (obj.lastModifiedBy !== undefined) {
|
|
477
514
|
const obj_lastModifiedBy = obj.lastModifiedBy;
|
|
478
515
|
const path_lastModifiedBy = path + '.lastModifiedBy';
|
|
479
|
-
const referencepath_lastModifiedByValidationError = validate$
|
|
516
|
+
const referencepath_lastModifiedByValidationError = validate$q(obj_lastModifiedBy, path_lastModifiedBy);
|
|
480
517
|
if (referencepath_lastModifiedByValidationError !== null) {
|
|
481
518
|
let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_lastModifiedBy + '")\n';
|
|
482
519
|
message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -498,7 +535,7 @@ function validate$d(obj, path = 'DataCleanRoomCollaborationRepresentation') {
|
|
|
498
535
|
for (let i = 0; i < obj_members.length; i++) {
|
|
499
536
|
const obj_members_item = obj_members[i];
|
|
500
537
|
const path_members_item = path_members + '[' + i + ']';
|
|
501
|
-
const referencepath_members_itemValidationError = validate$
|
|
538
|
+
const referencepath_members_itemValidationError = validate$r(obj_members_item, path_members_item);
|
|
502
539
|
if (referencepath_members_itemValidationError !== null) {
|
|
503
540
|
let message = 'Object doesn\'t match DataCleanRoomMemberRepresentation (at "' + path_members_item + '")\n';
|
|
504
541
|
message += referencepath_members_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -526,7 +563,7 @@ function validate$d(obj, path = 'DataCleanRoomCollaborationRepresentation') {
|
|
|
526
563
|
}
|
|
527
564
|
const obj_templateVersion = obj.templateVersion;
|
|
528
565
|
const path_templateVersion = path + '.templateVersion';
|
|
529
|
-
const referencepath_templateVersionValidationError = validate$
|
|
566
|
+
const referencepath_templateVersionValidationError = validate$p(obj_templateVersion, path_templateVersion);
|
|
530
567
|
if (referencepath_templateVersionValidationError !== null) {
|
|
531
568
|
let message = 'Object doesn\'t match DataCleanRoomTemplateRepresentation (at "' + path_templateVersion + '")\n';
|
|
532
569
|
message += referencepath_templateVersionValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -543,19 +580,19 @@ function validate$d(obj, path = 'DataCleanRoomCollaborationRepresentation') {
|
|
|
543
580
|
return v_error === undefined ? null : v_error;
|
|
544
581
|
}
|
|
545
582
|
const RepresentationType$8 = 'DataCleanRoomCollaborationRepresentation';
|
|
546
|
-
function keyBuilder$
|
|
583
|
+
function keyBuilder$f(luvio, config) {
|
|
547
584
|
return keyPrefix + '::' + RepresentationType$8 + ':' + config.id;
|
|
548
585
|
}
|
|
549
586
|
function keyBuilderFromType$3(luvio, object) {
|
|
550
587
|
const keyParams = {
|
|
551
588
|
id: object.id
|
|
552
589
|
};
|
|
553
|
-
return keyBuilder$
|
|
590
|
+
return keyBuilder$f(luvio, keyParams);
|
|
554
591
|
}
|
|
555
592
|
function normalize$8(input, existing, path, luvio, store, timestamp) {
|
|
556
593
|
return input;
|
|
557
594
|
}
|
|
558
|
-
const select$
|
|
595
|
+
const select$j = function DataCleanRoomCollaborationRepresentationSelect() {
|
|
559
596
|
return {
|
|
560
597
|
kind: 'Fragment',
|
|
561
598
|
version: VERSION$8,
|
|
@@ -571,7 +608,7 @@ function equals$8(existing, incoming) {
|
|
|
571
608
|
}
|
|
572
609
|
const ingest$8 = function DataCleanRoomCollaborationRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
573
610
|
if (process.env.NODE_ENV !== 'production') {
|
|
574
|
-
const validateError = validate$
|
|
611
|
+
const validateError = validate$o(input);
|
|
575
612
|
if (validateError !== null) {
|
|
576
613
|
throw validateError;
|
|
577
614
|
}
|
|
@@ -591,19 +628,19 @@ function getTypeCacheKeys$8(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
591
628
|
});
|
|
592
629
|
}
|
|
593
630
|
|
|
594
|
-
function select$
|
|
595
|
-
return select$
|
|
631
|
+
function select$i(luvio, params) {
|
|
632
|
+
return select$j();
|
|
596
633
|
}
|
|
597
|
-
function getResponseCacheKeys$
|
|
634
|
+
function getResponseCacheKeys$a(storeKeyMap, luvio, resourceParams, response) {
|
|
598
635
|
getTypeCacheKeys$8(storeKeyMap, luvio, response);
|
|
599
636
|
}
|
|
600
|
-
function ingestSuccess$
|
|
637
|
+
function ingestSuccess$a(luvio, resourceParams, response) {
|
|
601
638
|
const { body } = response;
|
|
602
639
|
const key = keyBuilderFromType$3(luvio, body);
|
|
603
640
|
luvio.storeIngest(key, ingest$8, body);
|
|
604
641
|
const snapshot = luvio.storeLookup({
|
|
605
642
|
recordId: key,
|
|
606
|
-
node: select$
|
|
643
|
+
node: select$i(),
|
|
607
644
|
variables: {},
|
|
608
645
|
});
|
|
609
646
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -614,7 +651,7 @@ function ingestSuccess$9(luvio, resourceParams, response) {
|
|
|
614
651
|
deepFreeze(snapshot.data);
|
|
615
652
|
return snapshot;
|
|
616
653
|
}
|
|
617
|
-
function createResourceRequest$
|
|
654
|
+
function createResourceRequest$a(config) {
|
|
618
655
|
const headers = {};
|
|
619
656
|
return {
|
|
620
657
|
baseUri: '/services/data/v65.0',
|
|
@@ -628,48 +665,49 @@ function createResourceRequest$9(config) {
|
|
|
628
665
|
};
|
|
629
666
|
}
|
|
630
667
|
|
|
631
|
-
const adapterName$
|
|
668
|
+
const adapterName$a = 'createDataCleanRoomCollaboration';
|
|
632
669
|
const createDataCleanRoomCollaboration_ConfigPropertyMetadata = [
|
|
633
670
|
generateParamConfigMetadata('apiKey', false, 2 /* Body */, 0 /* String */),
|
|
634
671
|
generateParamConfigMetadata('dataCloudOrgId', true, 2 /* Body */, 0 /* String */),
|
|
635
672
|
generateParamConfigMetadata('dataSpaceName', false, 2 /* Body */, 0 /* String */),
|
|
636
673
|
generateParamConfigMetadata('providerDevName', true, 2 /* Body */, 0 /* String */),
|
|
637
674
|
generateParamConfigMetadata('specificationDevName', true, 2 /* Body */, 0 /* String */),
|
|
638
|
-
generateParamConfigMetadata('templateName',
|
|
675
|
+
generateParamConfigMetadata('templateName', false, 2 /* Body */, 0 /* String */),
|
|
639
676
|
generateParamConfigMetadata('label', true, 2 /* Body */, 0 /* String */),
|
|
640
677
|
generateParamConfigMetadata('description', false, 2 /* Body */, 0 /* String */),
|
|
678
|
+
generateParamConfigMetadata('templateVersionId', false, 2 /* Body */, 0 /* String */),
|
|
641
679
|
];
|
|
642
|
-
const createDataCleanRoomCollaboration_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
643
|
-
const createResourceParams$
|
|
644
|
-
function typeCheckConfig$
|
|
680
|
+
const createDataCleanRoomCollaboration_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$a, createDataCleanRoomCollaboration_ConfigPropertyMetadata);
|
|
681
|
+
const createResourceParams$a = /*#__PURE__*/ createResourceParams$c(createDataCleanRoomCollaboration_ConfigPropertyMetadata);
|
|
682
|
+
function typeCheckConfig$a(untrustedConfig) {
|
|
645
683
|
const config = {};
|
|
646
|
-
typeCheckConfig$
|
|
684
|
+
typeCheckConfig$c(untrustedConfig, config, createDataCleanRoomCollaboration_ConfigPropertyMetadata);
|
|
647
685
|
return config;
|
|
648
686
|
}
|
|
649
|
-
function validateAdapterConfig$
|
|
687
|
+
function validateAdapterConfig$a(untrustedConfig, configPropertyNames) {
|
|
650
688
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
651
689
|
return null;
|
|
652
690
|
}
|
|
653
691
|
if (process.env.NODE_ENV !== 'production') {
|
|
654
692
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
655
693
|
}
|
|
656
|
-
const config = typeCheckConfig$
|
|
694
|
+
const config = typeCheckConfig$a(untrustedConfig);
|
|
657
695
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
658
696
|
return null;
|
|
659
697
|
}
|
|
660
698
|
return config;
|
|
661
699
|
}
|
|
662
|
-
function buildNetworkSnapshot$
|
|
663
|
-
const resourceParams = createResourceParams$
|
|
664
|
-
const request = createResourceRequest$
|
|
700
|
+
function buildNetworkSnapshot$a(luvio, config, options) {
|
|
701
|
+
const resourceParams = createResourceParams$a(config);
|
|
702
|
+
const request = createResourceRequest$a(resourceParams);
|
|
665
703
|
return luvio.dispatchResourceRequest(request, options)
|
|
666
704
|
.then((response) => {
|
|
667
705
|
return luvio.handleSuccessResponse(() => {
|
|
668
|
-
const snapshot = ingestSuccess$
|
|
706
|
+
const snapshot = ingestSuccess$a(luvio, resourceParams, response);
|
|
669
707
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
670
708
|
}, () => {
|
|
671
709
|
const cache = new StoreKeyMap();
|
|
672
|
-
getResponseCacheKeys$
|
|
710
|
+
getResponseCacheKeys$a(cache, luvio, resourceParams, response.body);
|
|
673
711
|
return cache;
|
|
674
712
|
});
|
|
675
713
|
}, (response) => {
|
|
@@ -679,16 +717,16 @@ function buildNetworkSnapshot$9(luvio, config, options) {
|
|
|
679
717
|
}
|
|
680
718
|
const createDataCleanRoomCollaborationAdapterFactory = (luvio) => {
|
|
681
719
|
return function createDataCleanRoomCollaboration(untrustedConfig) {
|
|
682
|
-
const config = validateAdapterConfig$
|
|
720
|
+
const config = validateAdapterConfig$a(untrustedConfig, createDataCleanRoomCollaboration_ConfigPropertyNames);
|
|
683
721
|
// Invalid or incomplete config
|
|
684
722
|
if (config === null) {
|
|
685
723
|
throw new Error('Invalid config for "createDataCleanRoomCollaboration"');
|
|
686
724
|
}
|
|
687
|
-
return buildNetworkSnapshot$
|
|
725
|
+
return buildNetworkSnapshot$a(luvio, config);
|
|
688
726
|
};
|
|
689
727
|
};
|
|
690
728
|
|
|
691
|
-
function validate$
|
|
729
|
+
function validate$n(obj, path = 'UseCaseTemplateMappingAttributeFilterOptionRepresentation') {
|
|
692
730
|
const v_error = (() => {
|
|
693
731
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
694
732
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -714,7 +752,7 @@ function validate$c(obj, path = 'UseCaseTemplateMappingAttributeFilterOptionRepr
|
|
|
714
752
|
return v_error === undefined ? null : v_error;
|
|
715
753
|
}
|
|
716
754
|
|
|
717
|
-
function validate$
|
|
755
|
+
function validate$m(obj, path = 'UseCaseTemplateMappingPathAttributeRepresentation') {
|
|
718
756
|
const v_error = (() => {
|
|
719
757
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
720
758
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -733,7 +771,7 @@ function validate$b(obj, path = 'UseCaseTemplateMappingPathAttributeRepresentati
|
|
|
733
771
|
return v_error === undefined ? null : v_error;
|
|
734
772
|
}
|
|
735
773
|
|
|
736
|
-
function validate$
|
|
774
|
+
function validate$l(obj, path = 'UseCaseTemplateMappingSubjectAttributeRepresentation') {
|
|
737
775
|
const v_error = (() => {
|
|
738
776
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
739
777
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -762,7 +800,7 @@ function validate$a(obj, path = 'UseCaseTemplateMappingSubjectAttributeRepresent
|
|
|
762
800
|
return v_error === undefined ? null : v_error;
|
|
763
801
|
}
|
|
764
802
|
|
|
765
|
-
function validate$
|
|
803
|
+
function validate$k(obj, path = 'UseCaseTemplateMappingAttributeRepresentation') {
|
|
766
804
|
const v_error = (() => {
|
|
767
805
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
768
806
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -782,7 +820,7 @@ function validate$9(obj, path = 'UseCaseTemplateMappingAttributeRepresentation')
|
|
|
782
820
|
if (obj.createdBy !== undefined) {
|
|
783
821
|
const obj_createdBy = obj.createdBy;
|
|
784
822
|
const path_createdBy = path + '.createdBy';
|
|
785
|
-
const referencepath_createdByValidationError = validate$
|
|
823
|
+
const referencepath_createdByValidationError = validate$q(obj_createdBy, path_createdBy);
|
|
786
824
|
if (referencepath_createdByValidationError !== null) {
|
|
787
825
|
let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_createdBy + '")\n';
|
|
788
826
|
message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -799,7 +837,7 @@ function validate$9(obj, path = 'UseCaseTemplateMappingAttributeRepresentation')
|
|
|
799
837
|
if (obj.dataMapping !== undefined) {
|
|
800
838
|
const obj_dataMapping = obj.dataMapping;
|
|
801
839
|
const path_dataMapping = path + '.dataMapping';
|
|
802
|
-
const referencepath_dataMappingValidationError = validate$
|
|
840
|
+
const referencepath_dataMappingValidationError = validate$j(obj_dataMapping, path_dataMapping);
|
|
803
841
|
if (referencepath_dataMappingValidationError !== null) {
|
|
804
842
|
let message = 'Object doesn\'t match UseCaseTemplateMappingRepresentation (at "' + path_dataMapping + '")\n';
|
|
805
843
|
message += referencepath_dataMappingValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -809,7 +847,7 @@ function validate$9(obj, path = 'UseCaseTemplateMappingAttributeRepresentation')
|
|
|
809
847
|
if (obj.filterOptions !== undefined) {
|
|
810
848
|
const obj_filterOptions = obj.filterOptions;
|
|
811
849
|
const path_filterOptions = path + '.filterOptions';
|
|
812
|
-
const referencepath_filterOptionsValidationError = validate$
|
|
850
|
+
const referencepath_filterOptionsValidationError = validate$n(obj_filterOptions, path_filterOptions);
|
|
813
851
|
if (referencepath_filterOptionsValidationError !== null) {
|
|
814
852
|
let message = 'Object doesn\'t match UseCaseTemplateMappingAttributeFilterOptionRepresentation (at "' + path_filterOptions + '")\n';
|
|
815
853
|
message += referencepath_filterOptionsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -833,7 +871,7 @@ function validate$9(obj, path = 'UseCaseTemplateMappingAttributeRepresentation')
|
|
|
833
871
|
if (obj.lastModifiedBy !== undefined) {
|
|
834
872
|
const obj_lastModifiedBy = obj.lastModifiedBy;
|
|
835
873
|
const path_lastModifiedBy = path + '.lastModifiedBy';
|
|
836
|
-
const referencepath_lastModifiedByValidationError = validate$
|
|
874
|
+
const referencepath_lastModifiedByValidationError = validate$q(obj_lastModifiedBy, path_lastModifiedBy);
|
|
837
875
|
if (referencepath_lastModifiedByValidationError !== null) {
|
|
838
876
|
let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_lastModifiedBy + '")\n';
|
|
839
877
|
message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -869,7 +907,7 @@ function validate$9(obj, path = 'UseCaseTemplateMappingAttributeRepresentation')
|
|
|
869
907
|
for (let i = 0; i < obj_path.length; i++) {
|
|
870
908
|
const obj_path_item = obj_path[i];
|
|
871
909
|
const path_path_item = path_path + '[' + i + ']';
|
|
872
|
-
const referencepath_path_itemValidationError = validate$
|
|
910
|
+
const referencepath_path_itemValidationError = validate$m(obj_path_item, path_path_item);
|
|
873
911
|
if (referencepath_path_itemValidationError !== null) {
|
|
874
912
|
let message = 'Object doesn\'t match UseCaseTemplateMappingPathAttributeRepresentation (at "' + path_path_item + '")\n';
|
|
875
913
|
message += referencepath_path_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -878,7 +916,7 @@ function validate$9(obj, path = 'UseCaseTemplateMappingAttributeRepresentation')
|
|
|
878
916
|
}
|
|
879
917
|
const obj_subjectAttribute = obj.subjectAttribute;
|
|
880
918
|
const path_subjectAttribute = path + '.subjectAttribute';
|
|
881
|
-
const referencepath_subjectAttributeValidationError = validate$
|
|
919
|
+
const referencepath_subjectAttributeValidationError = validate$l(obj_subjectAttribute, path_subjectAttribute);
|
|
882
920
|
if (referencepath_subjectAttributeValidationError !== null) {
|
|
883
921
|
let message = 'Object doesn\'t match UseCaseTemplateMappingSubjectAttributeRepresentation (at "' + path_subjectAttribute + '")\n';
|
|
884
922
|
message += referencepath_subjectAttributeValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -895,7 +933,7 @@ function validate$9(obj, path = 'UseCaseTemplateMappingAttributeRepresentation')
|
|
|
895
933
|
return v_error === undefined ? null : v_error;
|
|
896
934
|
}
|
|
897
935
|
|
|
898
|
-
function validate$
|
|
936
|
+
function validate$j(obj, path = 'UseCaseTemplateMappingRepresentation') {
|
|
899
937
|
const v_error = (() => {
|
|
900
938
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
901
939
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -908,7 +946,7 @@ function validate$8(obj, path = 'UseCaseTemplateMappingRepresentation') {
|
|
|
908
946
|
for (let i = 0; i < obj_attributes.length; i++) {
|
|
909
947
|
const obj_attributes_item = obj_attributes[i];
|
|
910
948
|
const path_attributes_item = path_attributes + '[' + i + ']';
|
|
911
|
-
const referencepath_attributes_itemValidationError = validate$
|
|
949
|
+
const referencepath_attributes_itemValidationError = validate$k(obj_attributes_item, path_attributes_item);
|
|
912
950
|
if (referencepath_attributes_itemValidationError !== null) {
|
|
913
951
|
let message = 'Object doesn\'t match UseCaseTemplateMappingAttributeRepresentation (at "' + path_attributes_item + '")\n';
|
|
914
952
|
message += referencepath_attributes_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -923,7 +961,7 @@ function validate$8(obj, path = 'UseCaseTemplateMappingRepresentation') {
|
|
|
923
961
|
if (obj.createdBy !== undefined) {
|
|
924
962
|
const obj_createdBy = obj.createdBy;
|
|
925
963
|
const path_createdBy = path + '.createdBy';
|
|
926
|
-
const referencepath_createdByValidationError = validate$
|
|
964
|
+
const referencepath_createdByValidationError = validate$q(obj_createdBy, path_createdBy);
|
|
927
965
|
if (referencepath_createdByValidationError !== null) {
|
|
928
966
|
let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_createdBy + '")\n';
|
|
929
967
|
message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -954,7 +992,7 @@ function validate$8(obj, path = 'UseCaseTemplateMappingRepresentation') {
|
|
|
954
992
|
if (obj.lastModifiedBy !== undefined) {
|
|
955
993
|
const obj_lastModifiedBy = obj.lastModifiedBy;
|
|
956
994
|
const path_lastModifiedBy = path + '.lastModifiedBy';
|
|
957
|
-
const referencepath_lastModifiedByValidationError = validate$
|
|
995
|
+
const referencepath_lastModifiedByValidationError = validate$q(obj_lastModifiedBy, path_lastModifiedBy);
|
|
958
996
|
if (referencepath_lastModifiedByValidationError !== null) {
|
|
959
997
|
let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_lastModifiedBy + '")\n';
|
|
960
998
|
message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -993,8 +1031,8 @@ function validate$8(obj, path = 'UseCaseTemplateMappingRepresentation') {
|
|
|
993
1031
|
return v_error === undefined ? null : v_error;
|
|
994
1032
|
}
|
|
995
1033
|
|
|
996
|
-
const VERSION$7 = "
|
|
997
|
-
function validate$
|
|
1034
|
+
const VERSION$7 = "d45438ed7dbe4f9f483ef33b3d47863e";
|
|
1035
|
+
function validate$i(obj, path = 'DataCleanRoomDataSpecificationRepresentation') {
|
|
998
1036
|
const v_error = (() => {
|
|
999
1037
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1000
1038
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1002,7 +1040,7 @@ function validate$7(obj, path = 'DataCleanRoomDataSpecificationRepresentation')
|
|
|
1002
1040
|
if (obj.createdBy !== undefined) {
|
|
1003
1041
|
const obj_createdBy = obj.createdBy;
|
|
1004
1042
|
const path_createdBy = path + '.createdBy';
|
|
1005
|
-
const referencepath_createdByValidationError = validate$
|
|
1043
|
+
const referencepath_createdByValidationError = validate$q(obj_createdBy, path_createdBy);
|
|
1006
1044
|
if (referencepath_createdByValidationError !== null) {
|
|
1007
1045
|
let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_createdBy + '")\n';
|
|
1008
1046
|
message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1018,16 +1056,25 @@ function validate$7(obj, path = 'DataCleanRoomDataSpecificationRepresentation')
|
|
|
1018
1056
|
}
|
|
1019
1057
|
const obj_dataMapping = obj.dataMapping;
|
|
1020
1058
|
const path_dataMapping = path + '.dataMapping';
|
|
1021
|
-
const referencepath_dataMappingValidationError = validate$
|
|
1059
|
+
const referencepath_dataMappingValidationError = validate$j(obj_dataMapping, path_dataMapping);
|
|
1022
1060
|
if (referencepath_dataMappingValidationError !== null) {
|
|
1023
1061
|
let message = 'Object doesn\'t match UseCaseTemplateMappingRepresentation (at "' + path_dataMapping + '")\n';
|
|
1024
1062
|
message += referencepath_dataMappingValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
1025
1063
|
return new TypeError(message);
|
|
1026
1064
|
}
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1065
|
+
if (obj.dataSpaceName !== undefined) {
|
|
1066
|
+
const obj_dataSpaceName = obj.dataSpaceName;
|
|
1067
|
+
const path_dataSpaceName = path + '.dataSpaceName';
|
|
1068
|
+
if (typeof obj_dataSpaceName !== 'string') {
|
|
1069
|
+
return new TypeError('Expected "string" but received "' + typeof obj_dataSpaceName + '" (at "' + path_dataSpaceName + '")');
|
|
1070
|
+
}
|
|
1071
|
+
}
|
|
1072
|
+
if (obj.dataspace !== undefined) {
|
|
1073
|
+
const obj_dataspace = obj.dataspace;
|
|
1074
|
+
const path_dataspace = path + '.dataspace';
|
|
1075
|
+
if (obj_dataspace === undefined) {
|
|
1076
|
+
return new TypeError('Expected "defined" but received "' + typeof obj_dataspace + '" (at "' + path_dataspace + '")');
|
|
1077
|
+
}
|
|
1031
1078
|
}
|
|
1032
1079
|
if (obj.description !== undefined) {
|
|
1033
1080
|
const obj_description = obj.description;
|
|
@@ -1051,7 +1098,7 @@ function validate$7(obj, path = 'DataCleanRoomDataSpecificationRepresentation')
|
|
|
1051
1098
|
if (obj.lastModifiedBy !== undefined) {
|
|
1052
1099
|
const obj_lastModifiedBy = obj.lastModifiedBy;
|
|
1053
1100
|
const path_lastModifiedBy = path + '.lastModifiedBy';
|
|
1054
|
-
const referencepath_lastModifiedByValidationError = validate$
|
|
1101
|
+
const referencepath_lastModifiedByValidationError = validate$q(obj_lastModifiedBy, path_lastModifiedBy);
|
|
1055
1102
|
if (referencepath_lastModifiedByValidationError !== null) {
|
|
1056
1103
|
let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_lastModifiedBy + '")\n';
|
|
1057
1104
|
message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1091,6 +1138,13 @@ function validate$7(obj, path = 'DataCleanRoomDataSpecificationRepresentation')
|
|
|
1091
1138
|
return new TypeError('Expected "string" but received "' + typeof obj_ownerOrgId + '" (at "' + path_ownerOrgId + '")');
|
|
1092
1139
|
}
|
|
1093
1140
|
}
|
|
1141
|
+
if (obj.providerId !== undefined) {
|
|
1142
|
+
const obj_providerId = obj.providerId;
|
|
1143
|
+
const path_providerId = path + '.providerId';
|
|
1144
|
+
if (typeof obj_providerId !== 'string') {
|
|
1145
|
+
return new TypeError('Expected "string" but received "' + typeof obj_providerId + '" (at "' + path_providerId + '")');
|
|
1146
|
+
}
|
|
1147
|
+
}
|
|
1094
1148
|
const obj_status = obj.status;
|
|
1095
1149
|
const path_status = path + '.status';
|
|
1096
1150
|
if (typeof obj_status !== 'string') {
|
|
@@ -1099,7 +1153,7 @@ function validate$7(obj, path = 'DataCleanRoomDataSpecificationRepresentation')
|
|
|
1099
1153
|
if (obj.templateVersion !== undefined) {
|
|
1100
1154
|
const obj_templateVersion = obj.templateVersion;
|
|
1101
1155
|
const path_templateVersion = path + '.templateVersion';
|
|
1102
|
-
const referencepath_templateVersionValidationError = validate$
|
|
1156
|
+
const referencepath_templateVersionValidationError = validate$p(obj_templateVersion, path_templateVersion);
|
|
1103
1157
|
if (referencepath_templateVersionValidationError !== null) {
|
|
1104
1158
|
let message = 'Object doesn\'t match DataCleanRoomTemplateRepresentation (at "' + path_templateVersion + '")\n';
|
|
1105
1159
|
message += referencepath_templateVersionValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1117,19 +1171,19 @@ function validate$7(obj, path = 'DataCleanRoomDataSpecificationRepresentation')
|
|
|
1117
1171
|
return v_error === undefined ? null : v_error;
|
|
1118
1172
|
}
|
|
1119
1173
|
const RepresentationType$7 = 'DataCleanRoomDataSpecificationRepresentation';
|
|
1120
|
-
function keyBuilder$
|
|
1174
|
+
function keyBuilder$e(luvio, config) {
|
|
1121
1175
|
return keyPrefix + '::' + RepresentationType$7 + ':' + config.id;
|
|
1122
1176
|
}
|
|
1123
1177
|
function keyBuilderFromType$2(luvio, object) {
|
|
1124
1178
|
const keyParams = {
|
|
1125
1179
|
id: object.id
|
|
1126
1180
|
};
|
|
1127
|
-
return keyBuilder$
|
|
1181
|
+
return keyBuilder$e(luvio, keyParams);
|
|
1128
1182
|
}
|
|
1129
1183
|
function normalize$7(input, existing, path, luvio, store, timestamp) {
|
|
1130
1184
|
return input;
|
|
1131
1185
|
}
|
|
1132
|
-
const select$
|
|
1186
|
+
const select$h = function DataCleanRoomDataSpecificationRepresentationSelect() {
|
|
1133
1187
|
return {
|
|
1134
1188
|
kind: 'Fragment',
|
|
1135
1189
|
version: VERSION$7,
|
|
@@ -1145,7 +1199,7 @@ function equals$7(existing, incoming) {
|
|
|
1145
1199
|
}
|
|
1146
1200
|
const ingest$7 = function DataCleanRoomDataSpecificationRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1147
1201
|
if (process.env.NODE_ENV !== 'production') {
|
|
1148
|
-
const validateError = validate$
|
|
1202
|
+
const validateError = validate$i(input);
|
|
1149
1203
|
if (validateError !== null) {
|
|
1150
1204
|
throw validateError;
|
|
1151
1205
|
}
|
|
@@ -1165,19 +1219,19 @@ function getTypeCacheKeys$7(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
1165
1219
|
});
|
|
1166
1220
|
}
|
|
1167
1221
|
|
|
1168
|
-
function select$
|
|
1169
|
-
return select$
|
|
1222
|
+
function select$g(luvio, params) {
|
|
1223
|
+
return select$h();
|
|
1170
1224
|
}
|
|
1171
|
-
function getResponseCacheKeys$
|
|
1225
|
+
function getResponseCacheKeys$9(storeKeyMap, luvio, resourceParams, response) {
|
|
1172
1226
|
getTypeCacheKeys$7(storeKeyMap, luvio, response);
|
|
1173
1227
|
}
|
|
1174
|
-
function ingestSuccess$
|
|
1228
|
+
function ingestSuccess$9(luvio, resourceParams, response) {
|
|
1175
1229
|
const { body } = response;
|
|
1176
1230
|
const key = keyBuilderFromType$2(luvio, body);
|
|
1177
1231
|
luvio.storeIngest(key, ingest$7, body);
|
|
1178
1232
|
const snapshot = luvio.storeLookup({
|
|
1179
1233
|
recordId: key,
|
|
1180
|
-
node: select$
|
|
1234
|
+
node: select$g(),
|
|
1181
1235
|
variables: {},
|
|
1182
1236
|
});
|
|
1183
1237
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -1188,7 +1242,7 @@ function ingestSuccess$8(luvio, resourceParams, response) {
|
|
|
1188
1242
|
deepFreeze(snapshot.data);
|
|
1189
1243
|
return snapshot;
|
|
1190
1244
|
}
|
|
1191
|
-
function createResourceRequest$
|
|
1245
|
+
function createResourceRequest$9(config) {
|
|
1192
1246
|
const headers = {};
|
|
1193
1247
|
return {
|
|
1194
1248
|
baseUri: '/services/data/v65.0',
|
|
@@ -1202,50 +1256,53 @@ function createResourceRequest$8(config) {
|
|
|
1202
1256
|
};
|
|
1203
1257
|
}
|
|
1204
1258
|
|
|
1205
|
-
const adapterName$
|
|
1259
|
+
const adapterName$9 = 'createDataCleanRoomSpecification';
|
|
1206
1260
|
const createDataCleanRoomSpecification_ConfigPropertyMetadata = [
|
|
1207
1261
|
generateParamConfigMetadata('dataMapping', true, 2 /* Body */, 4 /* Unsupported */),
|
|
1208
1262
|
generateParamConfigMetadata('memberType', true, 2 /* Body */, 0 /* String */),
|
|
1209
1263
|
generateParamConfigMetadata('ownerOrgId', true, 2 /* Body */, 0 /* String */),
|
|
1210
|
-
generateParamConfigMetadata('templateName',
|
|
1264
|
+
generateParamConfigMetadata('templateName', false, 2 /* Body */, 0 /* String */),
|
|
1211
1265
|
generateParamConfigMetadata('name', false, 2 /* Body */, 0 /* String */),
|
|
1212
1266
|
generateParamConfigMetadata('label', true, 2 /* Body */, 0 /* String */),
|
|
1213
1267
|
generateParamConfigMetadata('description', false, 2 /* Body */, 0 /* String */),
|
|
1214
1268
|
generateParamConfigMetadata('dataspaceName', false, 2 /* Body */, 0 /* String */),
|
|
1269
|
+
generateParamConfigMetadata('templateVersionId', false, 2 /* Body */, 0 /* String */),
|
|
1270
|
+
generateParamConfigMetadata('templateType', false, 2 /* Body */, 0 /* String */),
|
|
1271
|
+
generateParamConfigMetadata('useCaseType', false, 2 /* Body */, 0 /* String */),
|
|
1215
1272
|
];
|
|
1216
|
-
const createDataCleanRoomSpecification_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
1217
|
-
const createResourceParams$
|
|
1218
|
-
function typeCheckConfig$
|
|
1273
|
+
const createDataCleanRoomSpecification_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$9, createDataCleanRoomSpecification_ConfigPropertyMetadata);
|
|
1274
|
+
const createResourceParams$9 = /*#__PURE__*/ createResourceParams$c(createDataCleanRoomSpecification_ConfigPropertyMetadata);
|
|
1275
|
+
function typeCheckConfig$9(untrustedConfig) {
|
|
1219
1276
|
const config = {};
|
|
1220
|
-
typeCheckConfig$
|
|
1277
|
+
typeCheckConfig$c(untrustedConfig, config, createDataCleanRoomSpecification_ConfigPropertyMetadata);
|
|
1221
1278
|
const untrustedConfig_dataMapping = untrustedConfig.dataMapping;
|
|
1222
1279
|
config.dataMapping = untrustedConfig_dataMapping;
|
|
1223
1280
|
return config;
|
|
1224
1281
|
}
|
|
1225
|
-
function validateAdapterConfig$
|
|
1282
|
+
function validateAdapterConfig$9(untrustedConfig, configPropertyNames) {
|
|
1226
1283
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
1227
1284
|
return null;
|
|
1228
1285
|
}
|
|
1229
1286
|
if (process.env.NODE_ENV !== 'production') {
|
|
1230
1287
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
1231
1288
|
}
|
|
1232
|
-
const config = typeCheckConfig$
|
|
1289
|
+
const config = typeCheckConfig$9(untrustedConfig);
|
|
1233
1290
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
1234
1291
|
return null;
|
|
1235
1292
|
}
|
|
1236
1293
|
return config;
|
|
1237
1294
|
}
|
|
1238
|
-
function buildNetworkSnapshot$
|
|
1239
|
-
const resourceParams = createResourceParams$
|
|
1240
|
-
const request = createResourceRequest$
|
|
1295
|
+
function buildNetworkSnapshot$9(luvio, config, options) {
|
|
1296
|
+
const resourceParams = createResourceParams$9(config);
|
|
1297
|
+
const request = createResourceRequest$9(resourceParams);
|
|
1241
1298
|
return luvio.dispatchResourceRequest(request, options)
|
|
1242
1299
|
.then((response) => {
|
|
1243
1300
|
return luvio.handleSuccessResponse(() => {
|
|
1244
|
-
const snapshot = ingestSuccess$
|
|
1301
|
+
const snapshot = ingestSuccess$9(luvio, resourceParams, response);
|
|
1245
1302
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
1246
1303
|
}, () => {
|
|
1247
1304
|
const cache = new StoreKeyMap();
|
|
1248
|
-
getResponseCacheKeys$
|
|
1305
|
+
getResponseCacheKeys$9(cache, luvio, resourceParams, response.body);
|
|
1249
1306
|
return cache;
|
|
1250
1307
|
});
|
|
1251
1308
|
}, (response) => {
|
|
@@ -1255,192 +1312,578 @@ function buildNetworkSnapshot$8(luvio, config, options) {
|
|
|
1255
1312
|
}
|
|
1256
1313
|
const createDataCleanRoomSpecificationAdapterFactory = (luvio) => {
|
|
1257
1314
|
return function createDataCleanRoomSpecification(untrustedConfig) {
|
|
1258
|
-
const config = validateAdapterConfig$
|
|
1315
|
+
const config = validateAdapterConfig$9(untrustedConfig, createDataCleanRoomSpecification_ConfigPropertyNames);
|
|
1259
1316
|
// Invalid or incomplete config
|
|
1260
1317
|
if (config === null) {
|
|
1261
1318
|
throw new Error('Invalid config for "createDataCleanRoomSpecification"');
|
|
1262
1319
|
}
|
|
1263
|
-
return buildNetworkSnapshot$
|
|
1320
|
+
return buildNetworkSnapshot$9(luvio, config);
|
|
1264
1321
|
};
|
|
1265
1322
|
};
|
|
1266
1323
|
|
|
1267
|
-
|
|
1268
|
-
function validate$6(obj, path = 'DataCleanRoomProviderRepresentation') {
|
|
1324
|
+
function validate$h(obj, path = 'CustomUseCaseTemplateAnalysisConfigRepresentation') {
|
|
1269
1325
|
const v_error = (() => {
|
|
1270
1326
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1271
1327
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1272
1328
|
}
|
|
1273
|
-
if (obj.
|
|
1274
|
-
const
|
|
1275
|
-
const
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_createdBy + '")\n';
|
|
1279
|
-
message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
1280
|
-
return new TypeError(message);
|
|
1281
|
-
}
|
|
1282
|
-
}
|
|
1283
|
-
if (obj.createdDate !== undefined) {
|
|
1284
|
-
const obj_createdDate = obj.createdDate;
|
|
1285
|
-
const path_createdDate = path + '.createdDate';
|
|
1286
|
-
if (typeof obj_createdDate !== 'string') {
|
|
1287
|
-
return new TypeError('Expected "string" but received "' + typeof obj_createdDate + '" (at "' + path_createdDate + '")');
|
|
1329
|
+
if (obj.outputPath !== undefined) {
|
|
1330
|
+
const obj_outputPath = obj.outputPath;
|
|
1331
|
+
const path_outputPath = path + '.outputPath';
|
|
1332
|
+
if (typeof obj_outputPath !== 'string') {
|
|
1333
|
+
return new TypeError('Expected "string" but received "' + typeof obj_outputPath + '" (at "' + path_outputPath + '")');
|
|
1288
1334
|
}
|
|
1289
1335
|
}
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1336
|
+
})();
|
|
1337
|
+
return v_error === undefined ? null : v_error;
|
|
1338
|
+
}
|
|
1339
|
+
|
|
1340
|
+
function validate$g(obj, path = 'CustomUseCaseTemplateQueryParamConfig') {
|
|
1341
|
+
const v_error = (() => {
|
|
1342
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1343
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1294
1344
|
}
|
|
1295
1345
|
const obj_description = obj.description;
|
|
1296
1346
|
const path_description = path + '.description';
|
|
1297
1347
|
if (typeof obj_description !== 'string') {
|
|
1298
1348
|
return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
|
|
1299
1349
|
}
|
|
1300
|
-
const
|
|
1301
|
-
const
|
|
1302
|
-
if (typeof
|
|
1303
|
-
return new TypeError('Expected "string" but received "' + typeof
|
|
1350
|
+
const obj_name = obj.name;
|
|
1351
|
+
const path_name = path + '.name';
|
|
1352
|
+
if (typeof obj_name !== 'string') {
|
|
1353
|
+
return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
|
|
1304
1354
|
}
|
|
1305
|
-
const
|
|
1306
|
-
const
|
|
1307
|
-
if (typeof
|
|
1308
|
-
return new TypeError('Expected "string" but received "' + typeof
|
|
1355
|
+
const obj_type = obj.type;
|
|
1356
|
+
const path_type = path + '.type';
|
|
1357
|
+
if (typeof obj_type !== 'string') {
|
|
1358
|
+
return new TypeError('Expected "string" but received "' + typeof obj_type + '" (at "' + path_type + '")');
|
|
1309
1359
|
}
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1360
|
+
})();
|
|
1361
|
+
return v_error === undefined ? null : v_error;
|
|
1362
|
+
}
|
|
1363
|
+
|
|
1364
|
+
function validate$f(obj, path = 'CustomUseCaseTemplateQueryParamRepresentation') {
|
|
1365
|
+
const v_error = (() => {
|
|
1366
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1367
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1316
1368
|
}
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1369
|
+
const obj_queryParamConfigs = obj.queryParamConfigs;
|
|
1370
|
+
const path_queryParamConfigs = path + '.queryParamConfigs';
|
|
1371
|
+
if (!ArrayIsArray(obj_queryParamConfigs)) {
|
|
1372
|
+
return new TypeError('Expected "array" but received "' + typeof obj_queryParamConfigs + '" (at "' + path_queryParamConfigs + '")');
|
|
1373
|
+
}
|
|
1374
|
+
for (let i = 0; i < obj_queryParamConfigs.length; i++) {
|
|
1375
|
+
const obj_queryParamConfigs_item = obj_queryParamConfigs[i];
|
|
1376
|
+
const path_queryParamConfigs_item = path_queryParamConfigs + '[' + i + ']';
|
|
1377
|
+
const referencepath_queryParamConfigs_itemValidationError = validate$g(obj_queryParamConfigs_item, path_queryParamConfigs_item);
|
|
1378
|
+
if (referencepath_queryParamConfigs_itemValidationError !== null) {
|
|
1379
|
+
let message = 'Object doesn\'t match CustomUseCaseTemplateQueryParamConfig (at "' + path_queryParamConfigs_item + '")\n';
|
|
1380
|
+
message += referencepath_queryParamConfigs_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
1324
1381
|
return new TypeError(message);
|
|
1325
1382
|
}
|
|
1326
1383
|
}
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1384
|
+
})();
|
|
1385
|
+
return v_error === undefined ? null : v_error;
|
|
1386
|
+
}
|
|
1387
|
+
|
|
1388
|
+
function validate$e(obj, path = 'CustomUseCaseTemplateQueryConfig') {
|
|
1389
|
+
const v_error = (() => {
|
|
1390
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1391
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1333
1392
|
}
|
|
1334
|
-
if (obj.
|
|
1335
|
-
const
|
|
1336
|
-
const
|
|
1337
|
-
|
|
1338
|
-
|
|
1393
|
+
if (obj.analysisConfigs !== undefined) {
|
|
1394
|
+
const obj_analysisConfigs = obj.analysisConfigs;
|
|
1395
|
+
const path_analysisConfigs = path + '.analysisConfigs';
|
|
1396
|
+
const referencepath_analysisConfigsValidationError = validate$h(obj_analysisConfigs, path_analysisConfigs);
|
|
1397
|
+
if (referencepath_analysisConfigsValidationError !== null) {
|
|
1398
|
+
let message = 'Object doesn\'t match CustomUseCaseTemplateAnalysisConfigRepresentation (at "' + path_analysisConfigs + '")\n';
|
|
1399
|
+
message += referencepath_analysisConfigsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
1400
|
+
return new TypeError(message);
|
|
1339
1401
|
}
|
|
1340
1402
|
}
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1403
|
+
const obj_description = obj.description;
|
|
1404
|
+
const path_description = path + '.description';
|
|
1405
|
+
if (typeof obj_description !== 'string') {
|
|
1406
|
+
return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
|
|
1407
|
+
}
|
|
1408
|
+
const obj_name = obj.name;
|
|
1409
|
+
const path_name = path + '.name';
|
|
1410
|
+
if (typeof obj_name !== 'string') {
|
|
1411
|
+
return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
|
|
1412
|
+
}
|
|
1413
|
+
if (obj.queryParameters !== undefined) {
|
|
1414
|
+
const obj_queryParameters = obj.queryParameters;
|
|
1415
|
+
const path_queryParameters = path + '.queryParameters';
|
|
1416
|
+
const referencepath_queryParametersValidationError = validate$f(obj_queryParameters, path_queryParameters);
|
|
1417
|
+
if (referencepath_queryParametersValidationError !== null) {
|
|
1418
|
+
let message = 'Object doesn\'t match CustomUseCaseTemplateQueryParamRepresentation (at "' + path_queryParameters + '")\n';
|
|
1419
|
+
message += referencepath_queryParametersValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
1420
|
+
return new TypeError(message);
|
|
1346
1421
|
}
|
|
1347
1422
|
}
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1423
|
+
const obj_referencedTables = obj.referencedTables;
|
|
1424
|
+
const path_referencedTables = path + '.referencedTables';
|
|
1425
|
+
if (!ArrayIsArray(obj_referencedTables)) {
|
|
1426
|
+
return new TypeError('Expected "array" but received "' + typeof obj_referencedTables + '" (at "' + path_referencedTables + '")');
|
|
1427
|
+
}
|
|
1428
|
+
for (let i = 0; i < obj_referencedTables.length; i++) {
|
|
1429
|
+
const obj_referencedTables_item = obj_referencedTables[i];
|
|
1430
|
+
const path_referencedTables_item = path_referencedTables + '[' + i + ']';
|
|
1431
|
+
if (typeof obj_referencedTables_item !== 'string') {
|
|
1432
|
+
return new TypeError('Expected "string" but received "' + typeof obj_referencedTables_item + '" (at "' + path_referencedTables_item + '")');
|
|
1353
1433
|
}
|
|
1354
1434
|
}
|
|
1355
|
-
const
|
|
1356
|
-
const
|
|
1357
|
-
if (typeof
|
|
1358
|
-
return new TypeError('Expected "string" but received "' + typeof
|
|
1435
|
+
const obj_source = obj.source;
|
|
1436
|
+
const path_source = path + '.source';
|
|
1437
|
+
if (typeof obj_source !== 'string') {
|
|
1438
|
+
return new TypeError('Expected "string" but received "' + typeof obj_source + '" (at "' + path_source + '")');
|
|
1359
1439
|
}
|
|
1360
|
-
const
|
|
1361
|
-
const
|
|
1362
|
-
if (
|
|
1363
|
-
return new TypeError('Expected "
|
|
1440
|
+
const obj_type = obj.type;
|
|
1441
|
+
const path_type = path + '.type';
|
|
1442
|
+
if (typeof obj_type !== 'string') {
|
|
1443
|
+
return new TypeError('Expected "string" but received "' + typeof obj_type + '" (at "' + path_type + '")');
|
|
1364
1444
|
}
|
|
1365
|
-
|
|
1366
|
-
const
|
|
1367
|
-
const
|
|
1368
|
-
if (typeof
|
|
1369
|
-
return new TypeError('Expected "string" but received "' + typeof
|
|
1445
|
+
if (obj.usecase !== undefined) {
|
|
1446
|
+
const obj_usecase = obj.usecase;
|
|
1447
|
+
const path_usecase = path + '.usecase';
|
|
1448
|
+
if (typeof obj_usecase !== 'string') {
|
|
1449
|
+
return new TypeError('Expected "string" but received "' + typeof obj_usecase + '" (at "' + path_usecase + '")');
|
|
1370
1450
|
}
|
|
1371
1451
|
}
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1452
|
+
})();
|
|
1453
|
+
return v_error === undefined ? null : v_error;
|
|
1454
|
+
}
|
|
1455
|
+
|
|
1456
|
+
function validate$d(obj, path = 'CustomUseCaseTemplateQueryInputRepresentation') {
|
|
1457
|
+
const v_error = (() => {
|
|
1458
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1459
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1460
|
+
}
|
|
1461
|
+
const obj_queryConfigs = obj.queryConfigs;
|
|
1462
|
+
const path_queryConfigs = path + '.queryConfigs';
|
|
1463
|
+
if (!ArrayIsArray(obj_queryConfigs)) {
|
|
1464
|
+
return new TypeError('Expected "array" but received "' + typeof obj_queryConfigs + '" (at "' + path_queryConfigs + '")');
|
|
1465
|
+
}
|
|
1466
|
+
for (let i = 0; i < obj_queryConfigs.length; i++) {
|
|
1467
|
+
const obj_queryConfigs_item = obj_queryConfigs[i];
|
|
1468
|
+
const path_queryConfigs_item = path_queryConfigs + '[' + i + ']';
|
|
1469
|
+
const referencepath_queryConfigs_itemValidationError = validate$e(obj_queryConfigs_item, path_queryConfigs_item);
|
|
1470
|
+
if (referencepath_queryConfigs_itemValidationError !== null) {
|
|
1471
|
+
let message = 'Object doesn\'t match CustomUseCaseTemplateQueryConfig (at "' + path_queryConfigs_item + '")\n';
|
|
1472
|
+
message += referencepath_queryConfigs_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
1473
|
+
return new TypeError(message);
|
|
1377
1474
|
}
|
|
1378
1475
|
}
|
|
1379
1476
|
})();
|
|
1380
1477
|
return v_error === undefined ? null : v_error;
|
|
1381
1478
|
}
|
|
1382
|
-
|
|
1383
|
-
function
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
const keyParams = {
|
|
1388
|
-
id: object.id
|
|
1389
|
-
};
|
|
1390
|
-
return keyBuilder$b(luvio, keyParams);
|
|
1391
|
-
}
|
|
1392
|
-
function normalize$6(input, existing, path, luvio, store, timestamp) {
|
|
1393
|
-
return input;
|
|
1394
|
-
}
|
|
1395
|
-
const select$e = function DataCleanRoomProviderRepresentationSelect() {
|
|
1396
|
-
return {
|
|
1397
|
-
kind: 'Fragment',
|
|
1398
|
-
version: VERSION$6,
|
|
1399
|
-
private: [],
|
|
1400
|
-
opaque: true
|
|
1401
|
-
};
|
|
1402
|
-
};
|
|
1403
|
-
function equals$6(existing, incoming) {
|
|
1404
|
-
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
1405
|
-
return false;
|
|
1406
|
-
}
|
|
1407
|
-
return true;
|
|
1408
|
-
}
|
|
1409
|
-
const ingest$6 = function DataCleanRoomProviderRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1410
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
1411
|
-
const validateError = validate$6(input);
|
|
1412
|
-
if (validateError !== null) {
|
|
1413
|
-
throw validateError;
|
|
1479
|
+
|
|
1480
|
+
function validate$c(obj, path = 'CustomUseCaseTemplateColumnRepresentation') {
|
|
1481
|
+
const v_error = (() => {
|
|
1482
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1483
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1414
1484
|
}
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
}
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1485
|
+
if (obj.defaultValue !== undefined) {
|
|
1486
|
+
const obj_defaultValue = obj.defaultValue;
|
|
1487
|
+
const path_defaultValue = path + '.defaultValue';
|
|
1488
|
+
if (typeof obj_defaultValue !== 'string') {
|
|
1489
|
+
return new TypeError('Expected "string" but received "' + typeof obj_defaultValue + '" (at "' + path_defaultValue + '")');
|
|
1490
|
+
}
|
|
1491
|
+
}
|
|
1492
|
+
const obj_description = obj.description;
|
|
1493
|
+
const path_description = path + '.description';
|
|
1494
|
+
if (typeof obj_description !== 'string') {
|
|
1495
|
+
return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
|
|
1496
|
+
}
|
|
1497
|
+
const obj_name = obj.name;
|
|
1498
|
+
const path_name = path + '.name';
|
|
1499
|
+
if (typeof obj_name !== 'string') {
|
|
1500
|
+
return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
|
|
1501
|
+
}
|
|
1502
|
+
const obj_type = obj.type;
|
|
1503
|
+
const path_type = path + '.type';
|
|
1504
|
+
if (typeof obj_type !== 'string') {
|
|
1505
|
+
return new TypeError('Expected "string" but received "' + typeof obj_type + '" (at "' + path_type + '")');
|
|
1506
|
+
}
|
|
1507
|
+
})();
|
|
1508
|
+
return v_error === undefined ? null : v_error;
|
|
1429
1509
|
}
|
|
1430
1510
|
|
|
1431
|
-
function
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1511
|
+
function validate$b(obj, path = 'CustomUseCaseTemplateTableConfig') {
|
|
1512
|
+
const v_error = (() => {
|
|
1513
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1514
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1515
|
+
}
|
|
1516
|
+
const obj_columns = obj.columns;
|
|
1517
|
+
const path_columns = path + '.columns';
|
|
1518
|
+
if (!ArrayIsArray(obj_columns)) {
|
|
1519
|
+
return new TypeError('Expected "array" but received "' + typeof obj_columns + '" (at "' + path_columns + '")');
|
|
1520
|
+
}
|
|
1521
|
+
for (let i = 0; i < obj_columns.length; i++) {
|
|
1522
|
+
const obj_columns_item = obj_columns[i];
|
|
1523
|
+
const path_columns_item = path_columns + '[' + i + ']';
|
|
1524
|
+
const referencepath_columns_itemValidationError = validate$c(obj_columns_item, path_columns_item);
|
|
1525
|
+
if (referencepath_columns_itemValidationError !== null) {
|
|
1526
|
+
let message = 'Object doesn\'t match CustomUseCaseTemplateColumnRepresentation (at "' + path_columns_item + '")\n';
|
|
1527
|
+
message += referencepath_columns_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
1528
|
+
return new TypeError(message);
|
|
1529
|
+
}
|
|
1530
|
+
}
|
|
1531
|
+
const obj_description = obj.description;
|
|
1532
|
+
const path_description = path + '.description';
|
|
1533
|
+
if (typeof obj_description !== 'string') {
|
|
1534
|
+
return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
|
|
1535
|
+
}
|
|
1536
|
+
const obj_name = obj.name;
|
|
1537
|
+
const path_name = path + '.name';
|
|
1538
|
+
if (typeof obj_name !== 'string') {
|
|
1539
|
+
return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
|
|
1540
|
+
}
|
|
1541
|
+
const obj_role = obj.role;
|
|
1542
|
+
const path_role = path + '.role';
|
|
1543
|
+
if (typeof obj_role !== 'string') {
|
|
1544
|
+
return new TypeError('Expected "string" but received "' + typeof obj_role + '" (at "' + path_role + '")');
|
|
1545
|
+
}
|
|
1546
|
+
})();
|
|
1547
|
+
return v_error === undefined ? null : v_error;
|
|
1548
|
+
}
|
|
1549
|
+
|
|
1550
|
+
function validate$a(obj, path = 'CustomUseCaseTemplateTableInputRepresentation') {
|
|
1551
|
+
const v_error = (() => {
|
|
1552
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1553
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1554
|
+
}
|
|
1555
|
+
const obj_tableConfigs = obj.tableConfigs;
|
|
1556
|
+
const path_tableConfigs = path + '.tableConfigs';
|
|
1557
|
+
if (!ArrayIsArray(obj_tableConfigs)) {
|
|
1558
|
+
return new TypeError('Expected "array" but received "' + typeof obj_tableConfigs + '" (at "' + path_tableConfigs + '")');
|
|
1559
|
+
}
|
|
1560
|
+
for (let i = 0; i < obj_tableConfigs.length; i++) {
|
|
1561
|
+
const obj_tableConfigs_item = obj_tableConfigs[i];
|
|
1562
|
+
const path_tableConfigs_item = path_tableConfigs + '[' + i + ']';
|
|
1563
|
+
const referencepath_tableConfigs_itemValidationError = validate$b(obj_tableConfigs_item, path_tableConfigs_item);
|
|
1564
|
+
if (referencepath_tableConfigs_itemValidationError !== null) {
|
|
1565
|
+
let message = 'Object doesn\'t match CustomUseCaseTemplateTableConfig (at "' + path_tableConfigs_item + '")\n';
|
|
1566
|
+
message += referencepath_tableConfigs_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
1567
|
+
return new TypeError(message);
|
|
1568
|
+
}
|
|
1569
|
+
}
|
|
1570
|
+
})();
|
|
1571
|
+
return v_error === undefined ? null : v_error;
|
|
1572
|
+
}
|
|
1573
|
+
|
|
1574
|
+
function validate$9(obj, path = 'CustomUseCaseTemplateInputRepresentation') {
|
|
1575
|
+
const v_error = (() => {
|
|
1576
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1577
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1578
|
+
}
|
|
1579
|
+
const obj_description = obj.description;
|
|
1580
|
+
const path_description = path + '.description';
|
|
1581
|
+
if (typeof obj_description !== 'string') {
|
|
1582
|
+
return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
|
|
1583
|
+
}
|
|
1584
|
+
const obj_name = obj.name;
|
|
1585
|
+
const path_name = path + '.name';
|
|
1586
|
+
if (typeof obj_name !== 'string') {
|
|
1587
|
+
return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
|
|
1588
|
+
}
|
|
1589
|
+
const obj_queries = obj.queries;
|
|
1590
|
+
const path_queries = path + '.queries';
|
|
1591
|
+
const referencepath_queriesValidationError = validate$d(obj_queries, path_queries);
|
|
1592
|
+
if (referencepath_queriesValidationError !== null) {
|
|
1593
|
+
let message = 'Object doesn\'t match CustomUseCaseTemplateQueryInputRepresentation (at "' + path_queries + '")\n';
|
|
1594
|
+
message += referencepath_queriesValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
1595
|
+
return new TypeError(message);
|
|
1596
|
+
}
|
|
1597
|
+
const obj_tables = obj.tables;
|
|
1598
|
+
const path_tables = path + '.tables';
|
|
1599
|
+
const referencepath_tablesValidationError = validate$a(obj_tables, path_tables);
|
|
1600
|
+
if (referencepath_tablesValidationError !== null) {
|
|
1601
|
+
let message = 'Object doesn\'t match CustomUseCaseTemplateTableInputRepresentation (at "' + path_tables + '")\n';
|
|
1602
|
+
message += referencepath_tablesValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
1603
|
+
return new TypeError(message);
|
|
1604
|
+
}
|
|
1605
|
+
if (obj.version !== undefined) {
|
|
1606
|
+
const obj_version = obj.version;
|
|
1607
|
+
const path_version = path + '.version';
|
|
1608
|
+
if (typeof obj_version !== 'string') {
|
|
1609
|
+
return new TypeError('Expected "string" but received "' + typeof obj_version + '" (at "' + path_version + '")');
|
|
1610
|
+
}
|
|
1611
|
+
}
|
|
1612
|
+
})();
|
|
1613
|
+
return v_error === undefined ? null : v_error;
|
|
1614
|
+
}
|
|
1615
|
+
|
|
1616
|
+
function validate$8(obj, path = 'DataCleanRoomUseCaseTypeInputRepresentation') {
|
|
1617
|
+
const v_error = (() => {
|
|
1618
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1619
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1620
|
+
}
|
|
1621
|
+
if (obj.useCaseTypes !== undefined) {
|
|
1622
|
+
const obj_useCaseTypes = obj.useCaseTypes;
|
|
1623
|
+
const path_useCaseTypes = path + '.useCaseTypes';
|
|
1624
|
+
if (!ArrayIsArray(obj_useCaseTypes)) {
|
|
1625
|
+
return new TypeError('Expected "array" but received "' + typeof obj_useCaseTypes + '" (at "' + path_useCaseTypes + '")');
|
|
1626
|
+
}
|
|
1627
|
+
for (let i = 0; i < obj_useCaseTypes.length; i++) {
|
|
1628
|
+
const obj_useCaseTypes_item = obj_useCaseTypes[i];
|
|
1629
|
+
const path_useCaseTypes_item = path_useCaseTypes + '[' + i + ']';
|
|
1630
|
+
if (typeof obj_useCaseTypes_item !== 'string') {
|
|
1631
|
+
return new TypeError('Expected "string" but received "' + typeof obj_useCaseTypes_item + '" (at "' + path_useCaseTypes_item + '")');
|
|
1632
|
+
}
|
|
1633
|
+
}
|
|
1634
|
+
}
|
|
1635
|
+
})();
|
|
1636
|
+
return v_error === undefined ? null : v_error;
|
|
1637
|
+
}
|
|
1638
|
+
|
|
1639
|
+
function validate$7(obj, path = 'DataCleanRoomUseCaseTypeRepresentation') {
|
|
1640
|
+
const v_error = (() => {
|
|
1641
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1642
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1643
|
+
}
|
|
1644
|
+
if (obj.useCaseTypes !== undefined) {
|
|
1645
|
+
const obj_useCaseTypes = obj.useCaseTypes;
|
|
1646
|
+
const path_useCaseTypes = path + '.useCaseTypes';
|
|
1647
|
+
if (!ArrayIsArray(obj_useCaseTypes)) {
|
|
1648
|
+
return new TypeError('Expected "array" but received "' + typeof obj_useCaseTypes + '" (at "' + path_useCaseTypes + '")');
|
|
1649
|
+
}
|
|
1650
|
+
for (let i = 0; i < obj_useCaseTypes.length; i++) {
|
|
1651
|
+
const obj_useCaseTypes_item = obj_useCaseTypes[i];
|
|
1652
|
+
const path_useCaseTypes_item = path_useCaseTypes + '[' + i + ']';
|
|
1653
|
+
if (typeof obj_useCaseTypes_item !== 'string') {
|
|
1654
|
+
return new TypeError('Expected "string" but received "' + typeof obj_useCaseTypes_item + '" (at "' + path_useCaseTypes_item + '")');
|
|
1655
|
+
}
|
|
1656
|
+
}
|
|
1657
|
+
}
|
|
1658
|
+
})();
|
|
1659
|
+
return v_error === undefined ? null : v_error;
|
|
1660
|
+
}
|
|
1661
|
+
|
|
1662
|
+
const VERSION$6 = "a27689b905a74d6a3a8638a2f09d5b3c";
|
|
1663
|
+
function validate$6(obj, path = 'DataCleanRoomProviderRepresentation') {
|
|
1664
|
+
const v_error = (() => {
|
|
1665
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1666
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1667
|
+
}
|
|
1668
|
+
if (obj.createdBy !== undefined) {
|
|
1669
|
+
const obj_createdBy = obj.createdBy;
|
|
1670
|
+
const path_createdBy = path + '.createdBy';
|
|
1671
|
+
const referencepath_createdByValidationError = validate$q(obj_createdBy, path_createdBy);
|
|
1672
|
+
if (referencepath_createdByValidationError !== null) {
|
|
1673
|
+
let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_createdBy + '")\n';
|
|
1674
|
+
message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
1675
|
+
return new TypeError(message);
|
|
1676
|
+
}
|
|
1677
|
+
}
|
|
1678
|
+
if (obj.createdDate !== undefined) {
|
|
1679
|
+
const obj_createdDate = obj.createdDate;
|
|
1680
|
+
const path_createdDate = path + '.createdDate';
|
|
1681
|
+
if (typeof obj_createdDate !== 'string') {
|
|
1682
|
+
return new TypeError('Expected "string" but received "' + typeof obj_createdDate + '" (at "' + path_createdDate + '")');
|
|
1683
|
+
}
|
|
1684
|
+
}
|
|
1685
|
+
if (obj.creationType !== undefined) {
|
|
1686
|
+
const obj_creationType = obj.creationType;
|
|
1687
|
+
const path_creationType = path + '.creationType';
|
|
1688
|
+
if (typeof obj_creationType !== 'string') {
|
|
1689
|
+
return new TypeError('Expected "string" but received "' + typeof obj_creationType + '" (at "' + path_creationType + '")');
|
|
1690
|
+
}
|
|
1691
|
+
}
|
|
1692
|
+
if (obj.dataCloudOrgId !== undefined) {
|
|
1693
|
+
const obj_dataCloudOrgId = obj.dataCloudOrgId;
|
|
1694
|
+
const path_dataCloudOrgId = path + '.dataCloudOrgId';
|
|
1695
|
+
if (typeof obj_dataCloudOrgId !== 'string') {
|
|
1696
|
+
return new TypeError('Expected "string" but received "' + typeof obj_dataCloudOrgId + '" (at "' + path_dataCloudOrgId + '")');
|
|
1697
|
+
}
|
|
1698
|
+
}
|
|
1699
|
+
if (obj.description !== undefined) {
|
|
1700
|
+
const obj_description = obj.description;
|
|
1701
|
+
const path_description = path + '.description';
|
|
1702
|
+
if (typeof obj_description !== 'string') {
|
|
1703
|
+
return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
|
|
1704
|
+
}
|
|
1705
|
+
}
|
|
1706
|
+
if (obj.domainUrl !== undefined) {
|
|
1707
|
+
const obj_domainUrl = obj.domainUrl;
|
|
1708
|
+
const path_domainUrl = path + '.domainUrl';
|
|
1709
|
+
if (typeof obj_domainUrl !== 'string') {
|
|
1710
|
+
return new TypeError('Expected "string" but received "' + typeof obj_domainUrl + '" (at "' + path_domainUrl + '")');
|
|
1711
|
+
}
|
|
1712
|
+
}
|
|
1713
|
+
const obj_id = obj.id;
|
|
1714
|
+
const path_id = path + '.id';
|
|
1715
|
+
if (typeof obj_id !== 'string') {
|
|
1716
|
+
return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
|
|
1717
|
+
}
|
|
1718
|
+
if (obj.label !== undefined) {
|
|
1719
|
+
const obj_label = obj.label;
|
|
1720
|
+
const path_label = path + '.label';
|
|
1721
|
+
if (typeof obj_label !== 'string') {
|
|
1722
|
+
return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
|
|
1723
|
+
}
|
|
1724
|
+
}
|
|
1725
|
+
if (obj.lastModifiedBy !== undefined) {
|
|
1726
|
+
const obj_lastModifiedBy = obj.lastModifiedBy;
|
|
1727
|
+
const path_lastModifiedBy = path + '.lastModifiedBy';
|
|
1728
|
+
const referencepath_lastModifiedByValidationError = validate$q(obj_lastModifiedBy, path_lastModifiedBy);
|
|
1729
|
+
if (referencepath_lastModifiedByValidationError !== null) {
|
|
1730
|
+
let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_lastModifiedBy + '")\n';
|
|
1731
|
+
message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
1732
|
+
return new TypeError(message);
|
|
1733
|
+
}
|
|
1734
|
+
}
|
|
1735
|
+
if (obj.lastModifiedDate !== undefined) {
|
|
1736
|
+
const obj_lastModifiedDate = obj.lastModifiedDate;
|
|
1737
|
+
const path_lastModifiedDate = path + '.lastModifiedDate';
|
|
1738
|
+
if (typeof obj_lastModifiedDate !== 'string') {
|
|
1739
|
+
return new TypeError('Expected "string" but received "' + typeof obj_lastModifiedDate + '" (at "' + path_lastModifiedDate + '")');
|
|
1740
|
+
}
|
|
1741
|
+
}
|
|
1742
|
+
if (obj.logoUrl !== undefined) {
|
|
1743
|
+
const obj_logoUrl = obj.logoUrl;
|
|
1744
|
+
const path_logoUrl = path + '.logoUrl';
|
|
1745
|
+
if (typeof obj_logoUrl !== 'string') {
|
|
1746
|
+
return new TypeError('Expected "string" but received "' + typeof obj_logoUrl + '" (at "' + path_logoUrl + '")');
|
|
1747
|
+
}
|
|
1748
|
+
}
|
|
1749
|
+
if (obj.name !== undefined) {
|
|
1750
|
+
const obj_name = obj.name;
|
|
1751
|
+
const path_name = path + '.name';
|
|
1752
|
+
if (typeof obj_name !== 'string') {
|
|
1753
|
+
return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
|
|
1754
|
+
}
|
|
1755
|
+
}
|
|
1756
|
+
if (obj.namespace !== undefined) {
|
|
1757
|
+
const obj_namespace = obj.namespace;
|
|
1758
|
+
const path_namespace = path + '.namespace';
|
|
1759
|
+
if (typeof obj_namespace !== 'string') {
|
|
1760
|
+
return new TypeError('Expected "string" but received "' + typeof obj_namespace + '" (at "' + path_namespace + '")');
|
|
1761
|
+
}
|
|
1762
|
+
}
|
|
1763
|
+
if (obj.offCoreTenantId !== undefined) {
|
|
1764
|
+
const obj_offCoreTenantId = obj.offCoreTenantId;
|
|
1765
|
+
const path_offCoreTenantId = path + '.offCoreTenantId';
|
|
1766
|
+
if (typeof obj_offCoreTenantId !== 'string') {
|
|
1767
|
+
return new TypeError('Expected "string" but received "' + typeof obj_offCoreTenantId + '" (at "' + path_offCoreTenantId + '")');
|
|
1768
|
+
}
|
|
1769
|
+
}
|
|
1770
|
+
if (obj.providerName !== undefined) {
|
|
1771
|
+
const obj_providerName = obj.providerName;
|
|
1772
|
+
const path_providerName = path + '.providerName';
|
|
1773
|
+
if (typeof obj_providerName !== 'string') {
|
|
1774
|
+
return new TypeError('Expected "string" but received "' + typeof obj_providerName + '" (at "' + path_providerName + '")');
|
|
1775
|
+
}
|
|
1776
|
+
}
|
|
1777
|
+
if (obj.source !== undefined) {
|
|
1778
|
+
const obj_source = obj.source;
|
|
1779
|
+
const path_source = path + '.source';
|
|
1780
|
+
if (typeof obj_source !== 'string') {
|
|
1781
|
+
return new TypeError('Expected "string" but received "' + typeof obj_source + '" (at "' + path_source + '")');
|
|
1782
|
+
}
|
|
1783
|
+
}
|
|
1784
|
+
if (obj.sourceConfiguration !== undefined) {
|
|
1785
|
+
const obj_sourceConfiguration = obj.sourceConfiguration;
|
|
1786
|
+
const path_sourceConfiguration = path + '.sourceConfiguration';
|
|
1787
|
+
if (obj_sourceConfiguration === undefined) {
|
|
1788
|
+
return new TypeError('Expected "defined" but received "' + typeof obj_sourceConfiguration + '" (at "' + path_sourceConfiguration + '")');
|
|
1789
|
+
}
|
|
1790
|
+
}
|
|
1791
|
+
if (obj.templateNames !== undefined) {
|
|
1792
|
+
const obj_templateNames = obj.templateNames;
|
|
1793
|
+
const path_templateNames = path + '.templateNames';
|
|
1794
|
+
if (!ArrayIsArray(obj_templateNames)) {
|
|
1795
|
+
return new TypeError('Expected "array" but received "' + typeof obj_templateNames + '" (at "' + path_templateNames + '")');
|
|
1796
|
+
}
|
|
1797
|
+
for (let i = 0; i < obj_templateNames.length; i++) {
|
|
1798
|
+
const obj_templateNames_item = obj_templateNames[i];
|
|
1799
|
+
const path_templateNames_item = path_templateNames + '[' + i + ']';
|
|
1800
|
+
if (typeof obj_templateNames_item !== 'string') {
|
|
1801
|
+
return new TypeError('Expected "string" but received "' + typeof obj_templateNames_item + '" (at "' + path_templateNames_item + '")');
|
|
1802
|
+
}
|
|
1803
|
+
}
|
|
1804
|
+
}
|
|
1805
|
+
if (obj.url !== undefined) {
|
|
1806
|
+
const obj_url = obj.url;
|
|
1807
|
+
const path_url = path + '.url';
|
|
1808
|
+
if (typeof obj_url !== 'string') {
|
|
1809
|
+
return new TypeError('Expected "string" but received "' + typeof obj_url + '" (at "' + path_url + '")');
|
|
1810
|
+
}
|
|
1811
|
+
}
|
|
1812
|
+
if (obj.useCaseTypeConfig !== undefined) {
|
|
1813
|
+
const obj_useCaseTypeConfig = obj.useCaseTypeConfig;
|
|
1814
|
+
const path_useCaseTypeConfig = path + '.useCaseTypeConfig';
|
|
1815
|
+
const referencepath_useCaseTypeConfigValidationError = validate$7(obj_useCaseTypeConfig, path_useCaseTypeConfig);
|
|
1816
|
+
if (referencepath_useCaseTypeConfigValidationError !== null) {
|
|
1817
|
+
let message = 'Object doesn\'t match DataCleanRoomUseCaseTypeRepresentation (at "' + path_useCaseTypeConfig + '")\n';
|
|
1818
|
+
message += referencepath_useCaseTypeConfigValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
1819
|
+
return new TypeError(message);
|
|
1820
|
+
}
|
|
1821
|
+
}
|
|
1822
|
+
})();
|
|
1823
|
+
return v_error === undefined ? null : v_error;
|
|
1824
|
+
}
|
|
1825
|
+
const RepresentationType$6 = 'DataCleanRoomProviderRepresentation';
|
|
1826
|
+
function keyBuilder$d(luvio, config) {
|
|
1827
|
+
return keyPrefix + '::' + RepresentationType$6 + ':' + config.id;
|
|
1828
|
+
}
|
|
1829
|
+
function keyBuilderFromType$1(luvio, object) {
|
|
1830
|
+
const keyParams = {
|
|
1831
|
+
id: object.id
|
|
1832
|
+
};
|
|
1833
|
+
return keyBuilder$d(luvio, keyParams);
|
|
1834
|
+
}
|
|
1835
|
+
function normalize$6(input, existing, path, luvio, store, timestamp) {
|
|
1836
|
+
return input;
|
|
1837
|
+
}
|
|
1838
|
+
const select$f = function DataCleanRoomProviderRepresentationSelect() {
|
|
1839
|
+
return {
|
|
1840
|
+
kind: 'Fragment',
|
|
1841
|
+
version: VERSION$6,
|
|
1842
|
+
private: [],
|
|
1843
|
+
opaque: true
|
|
1844
|
+
};
|
|
1845
|
+
};
|
|
1846
|
+
function equals$6(existing, incoming) {
|
|
1847
|
+
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
1848
|
+
return false;
|
|
1849
|
+
}
|
|
1850
|
+
return true;
|
|
1851
|
+
}
|
|
1852
|
+
const ingest$6 = function DataCleanRoomProviderRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1853
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
1854
|
+
const validateError = validate$6(input);
|
|
1855
|
+
if (validateError !== null) {
|
|
1856
|
+
throw validateError;
|
|
1857
|
+
}
|
|
1858
|
+
}
|
|
1859
|
+
const key = keyBuilderFromType$1(luvio, input);
|
|
1860
|
+
const ttlToUse = path.ttl !== undefined ? path.ttl : 100;
|
|
1861
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$6, "data-clean-room", VERSION$6, RepresentationType$6, equals$6);
|
|
1862
|
+
return createLink(key);
|
|
1863
|
+
};
|
|
1864
|
+
function getTypeCacheKeys$6(rootKeySet, luvio, input, fullPathFactory) {
|
|
1865
|
+
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
1866
|
+
const rootKey = keyBuilderFromType$1(luvio, input);
|
|
1867
|
+
rootKeySet.set(rootKey, {
|
|
1868
|
+
namespace: keyPrefix,
|
|
1869
|
+
representationName: RepresentationType$6,
|
|
1870
|
+
mergeable: false
|
|
1871
|
+
});
|
|
1872
|
+
}
|
|
1873
|
+
|
|
1874
|
+
function select$e(luvio, params) {
|
|
1875
|
+
return select$f();
|
|
1876
|
+
}
|
|
1877
|
+
function getResponseCacheKeys$8(storeKeyMap, luvio, resourceParams, response) {
|
|
1878
|
+
getTypeCacheKeys$6(storeKeyMap, luvio, response);
|
|
1879
|
+
}
|
|
1880
|
+
function ingestSuccess$8(luvio, resourceParams, response) {
|
|
1881
|
+
const { body } = response;
|
|
1882
|
+
const key = keyBuilderFromType$1(luvio, body);
|
|
1883
|
+
luvio.storeIngest(key, ingest$6, body);
|
|
1884
|
+
const snapshot = luvio.storeLookup({
|
|
1885
|
+
recordId: key,
|
|
1886
|
+
node: select$e(),
|
|
1444
1887
|
variables: {},
|
|
1445
1888
|
});
|
|
1446
1889
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -1451,7 +1894,7 @@ function ingestSuccess$7(luvio, resourceParams, response) {
|
|
|
1451
1894
|
deepFreeze(snapshot.data);
|
|
1452
1895
|
return snapshot;
|
|
1453
1896
|
}
|
|
1454
|
-
function createResourceRequest$
|
|
1897
|
+
function createResourceRequest$8(config) {
|
|
1455
1898
|
const headers = {};
|
|
1456
1899
|
return {
|
|
1457
1900
|
baseUri: '/services/data/v65.0',
|
|
@@ -1465,49 +1908,67 @@ function createResourceRequest$7(config) {
|
|
|
1465
1908
|
};
|
|
1466
1909
|
}
|
|
1467
1910
|
|
|
1468
|
-
const adapterName$
|
|
1911
|
+
const adapterName$8 = 'createProvider';
|
|
1469
1912
|
const createProvider_ConfigPropertyMetadata = [
|
|
1470
1913
|
generateParamConfigMetadata('label', true, 2 /* Body */, 0 /* String */),
|
|
1471
|
-
generateParamConfigMetadata('description',
|
|
1472
|
-
generateParamConfigMetadata('templateNames',
|
|
1473
|
-
generateParamConfigMetadata('dataCloudOrgId',
|
|
1474
|
-
generateParamConfigMetadata('domainUrl',
|
|
1914
|
+
generateParamConfigMetadata('description', false, 2 /* Body */, 0 /* String */),
|
|
1915
|
+
generateParamConfigMetadata('templateNames', false, 2 /* Body */, 0 /* String */, true),
|
|
1916
|
+
generateParamConfigMetadata('dataCloudOrgId', false, 2 /* Body */, 0 /* String */),
|
|
1917
|
+
generateParamConfigMetadata('domainUrl', false, 2 /* Body */, 0 /* String */),
|
|
1475
1918
|
generateParamConfigMetadata('dataspaceName', false, 2 /* Body */, 0 /* String */),
|
|
1476
1919
|
generateParamConfigMetadata('name', false, 2 /* Body */, 0 /* String */),
|
|
1477
1920
|
generateParamConfigMetadata('logoUrl', false, 2 /* Body */, 0 /* String */),
|
|
1478
|
-
generateParamConfigMetadata('offCoreTenantId',
|
|
1921
|
+
generateParamConfigMetadata('offCoreTenantId', false, 2 /* Body */, 0 /* String */),
|
|
1922
|
+
generateParamConfigMetadata('source', false, 2 /* Body */, 0 /* String */),
|
|
1923
|
+
generateParamConfigMetadata('templateJson', false, 2 /* Body */, 4 /* Unsupported */),
|
|
1924
|
+
generateParamConfigMetadata('templateType', false, 2 /* Body */, 0 /* String */),
|
|
1925
|
+
generateParamConfigMetadata('useCaseTypeConfig', false, 2 /* Body */, 4 /* Unsupported */),
|
|
1926
|
+
generateParamConfigMetadata('providerName', false, 2 /* Body */, 0 /* String */),
|
|
1927
|
+
generateParamConfigMetadata('sourceConfiguration', false, 2 /* Body */, 4 /* Unsupported */),
|
|
1479
1928
|
];
|
|
1480
|
-
const createProvider_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
1481
|
-
const createResourceParams$
|
|
1482
|
-
function typeCheckConfig$
|
|
1929
|
+
const createProvider_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$8, createProvider_ConfigPropertyMetadata);
|
|
1930
|
+
const createResourceParams$8 = /*#__PURE__*/ createResourceParams$c(createProvider_ConfigPropertyMetadata);
|
|
1931
|
+
function typeCheckConfig$8(untrustedConfig) {
|
|
1483
1932
|
const config = {};
|
|
1484
|
-
typeCheckConfig$
|
|
1933
|
+
typeCheckConfig$c(untrustedConfig, config, createProvider_ConfigPropertyMetadata);
|
|
1934
|
+
const untrustedConfig_templateJson = untrustedConfig.templateJson;
|
|
1935
|
+
const referenceCustomUseCaseTemplateInputRepresentationValidationError = validate$9(untrustedConfig_templateJson);
|
|
1936
|
+
if (referenceCustomUseCaseTemplateInputRepresentationValidationError === null) {
|
|
1937
|
+
config.templateJson = untrustedConfig_templateJson;
|
|
1938
|
+
}
|
|
1939
|
+
const untrustedConfig_useCaseTypeConfig = untrustedConfig.useCaseTypeConfig;
|
|
1940
|
+
const referenceDataCleanRoomUseCaseTypeInputRepresentationValidationError = validate$8(untrustedConfig_useCaseTypeConfig);
|
|
1941
|
+
if (referenceDataCleanRoomUseCaseTypeInputRepresentationValidationError === null) {
|
|
1942
|
+
config.useCaseTypeConfig = untrustedConfig_useCaseTypeConfig;
|
|
1943
|
+
}
|
|
1944
|
+
const untrustedConfig_sourceConfiguration = untrustedConfig.sourceConfiguration;
|
|
1945
|
+
config.sourceConfiguration = untrustedConfig_sourceConfiguration;
|
|
1485
1946
|
return config;
|
|
1486
1947
|
}
|
|
1487
|
-
function validateAdapterConfig$
|
|
1948
|
+
function validateAdapterConfig$8(untrustedConfig, configPropertyNames) {
|
|
1488
1949
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
1489
1950
|
return null;
|
|
1490
1951
|
}
|
|
1491
1952
|
if (process.env.NODE_ENV !== 'production') {
|
|
1492
1953
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
1493
1954
|
}
|
|
1494
|
-
const config = typeCheckConfig$
|
|
1955
|
+
const config = typeCheckConfig$8(untrustedConfig);
|
|
1495
1956
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
1496
1957
|
return null;
|
|
1497
1958
|
}
|
|
1498
1959
|
return config;
|
|
1499
1960
|
}
|
|
1500
|
-
function buildNetworkSnapshot$
|
|
1501
|
-
const resourceParams = createResourceParams$
|
|
1502
|
-
const request = createResourceRequest$
|
|
1961
|
+
function buildNetworkSnapshot$8(luvio, config, options) {
|
|
1962
|
+
const resourceParams = createResourceParams$8(config);
|
|
1963
|
+
const request = createResourceRequest$8(resourceParams);
|
|
1503
1964
|
return luvio.dispatchResourceRequest(request, options)
|
|
1504
1965
|
.then((response) => {
|
|
1505
1966
|
return luvio.handleSuccessResponse(() => {
|
|
1506
|
-
const snapshot = ingestSuccess$
|
|
1967
|
+
const snapshot = ingestSuccess$8(luvio, resourceParams, response);
|
|
1507
1968
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
1508
1969
|
}, () => {
|
|
1509
1970
|
const cache = new StoreKeyMap();
|
|
1510
|
-
getResponseCacheKeys$
|
|
1971
|
+
getResponseCacheKeys$8(cache, luvio, resourceParams, response.body);
|
|
1511
1972
|
return cache;
|
|
1512
1973
|
});
|
|
1513
1974
|
}, (response) => {
|
|
@@ -1517,16 +1978,16 @@ function buildNetworkSnapshot$7(luvio, config, options) {
|
|
|
1517
1978
|
}
|
|
1518
1979
|
const createProviderAdapterFactory = (luvio) => {
|
|
1519
1980
|
return function createProvider(untrustedConfig) {
|
|
1520
|
-
const config = validateAdapterConfig$
|
|
1981
|
+
const config = validateAdapterConfig$8(untrustedConfig, createProvider_ConfigPropertyNames);
|
|
1521
1982
|
// Invalid or incomplete config
|
|
1522
1983
|
if (config === null) {
|
|
1523
1984
|
throw new Error('Invalid config for "createProvider"');
|
|
1524
1985
|
}
|
|
1525
|
-
return buildNetworkSnapshot$
|
|
1986
|
+
return buildNetworkSnapshot$8(luvio, config);
|
|
1526
1987
|
};
|
|
1527
1988
|
};
|
|
1528
1989
|
|
|
1529
|
-
const VERSION$5 = "
|
|
1990
|
+
const VERSION$5 = "c88ad589b064cbc75394ed69083e8f5f";
|
|
1530
1991
|
function validate$5(obj, path = 'DataCleanRoomQueryJobRepresentation') {
|
|
1531
1992
|
const v_error = (() => {
|
|
1532
1993
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -1542,7 +2003,7 @@ function validate$5(obj, path = 'DataCleanRoomQueryJobRepresentation') {
|
|
|
1542
2003
|
if (obj.createdBy !== undefined) {
|
|
1543
2004
|
const obj_createdBy = obj.createdBy;
|
|
1544
2005
|
const path_createdBy = path + '.createdBy';
|
|
1545
|
-
const referencepath_createdByValidationError = validate$
|
|
2006
|
+
const referencepath_createdByValidationError = validate$q(obj_createdBy, path_createdBy);
|
|
1546
2007
|
if (referencepath_createdByValidationError !== null) {
|
|
1547
2008
|
let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_createdBy + '")\n';
|
|
1548
2009
|
message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1570,6 +2031,13 @@ function validate$5(obj, path = 'DataCleanRoomQueryJobRepresentation') {
|
|
|
1570
2031
|
return new TypeError('Expected "string" but received "' + typeof obj_errorMessage + '" (at "' + path_errorMessage + '")');
|
|
1571
2032
|
}
|
|
1572
2033
|
}
|
|
2034
|
+
if (obj.executedBy !== undefined) {
|
|
2035
|
+
const obj_executedBy = obj.executedBy;
|
|
2036
|
+
const path_executedBy = path + '.executedBy';
|
|
2037
|
+
if (typeof obj_executedBy !== 'string') {
|
|
2038
|
+
return new TypeError('Expected "string" but received "' + typeof obj_executedBy + '" (at "' + path_executedBy + '")');
|
|
2039
|
+
}
|
|
2040
|
+
}
|
|
1573
2041
|
const obj_id = obj.id;
|
|
1574
2042
|
const path_id = path + '.id';
|
|
1575
2043
|
if (typeof obj_id !== 'string') {
|
|
@@ -1585,7 +2053,7 @@ function validate$5(obj, path = 'DataCleanRoomQueryJobRepresentation') {
|
|
|
1585
2053
|
if (obj.lastModifiedBy !== undefined) {
|
|
1586
2054
|
const obj_lastModifiedBy = obj.lastModifiedBy;
|
|
1587
2055
|
const path_lastModifiedBy = path + '.lastModifiedBy';
|
|
1588
|
-
const referencepath_lastModifiedByValidationError = validate$
|
|
2056
|
+
const referencepath_lastModifiedByValidationError = validate$q(obj_lastModifiedBy, path_lastModifiedBy);
|
|
1589
2057
|
if (referencepath_lastModifiedByValidationError !== null) {
|
|
1590
2058
|
let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_lastModifiedBy + '")\n';
|
|
1591
2059
|
message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1606,11 +2074,32 @@ function validate$5(obj, path = 'DataCleanRoomQueryJobRepresentation') {
|
|
|
1606
2074
|
return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
|
|
1607
2075
|
}
|
|
1608
2076
|
}
|
|
1609
|
-
if (obj.
|
|
1610
|
-
const
|
|
1611
|
-
const
|
|
1612
|
-
if (typeof
|
|
1613
|
-
return new TypeError('Expected "
|
|
2077
|
+
if (obj.outputDMOName !== undefined) {
|
|
2078
|
+
const obj_outputDMOName = obj.outputDMOName;
|
|
2079
|
+
const path_outputDMOName = path + '.outputDMOName';
|
|
2080
|
+
if (typeof obj_outputDMOName !== 'string') {
|
|
2081
|
+
return new TypeError('Expected "string" but received "' + typeof obj_outputDMOName + '" (at "' + path_outputDMOName + '")');
|
|
2082
|
+
}
|
|
2083
|
+
}
|
|
2084
|
+
if (obj.queryParam !== undefined) {
|
|
2085
|
+
const obj_queryParam = obj.queryParam;
|
|
2086
|
+
const path_queryParam = path + '.queryParam';
|
|
2087
|
+
if (obj_queryParam === undefined) {
|
|
2088
|
+
return new TypeError('Expected "defined" but received "' + typeof obj_queryParam + '" (at "' + path_queryParam + '")');
|
|
2089
|
+
}
|
|
2090
|
+
}
|
|
2091
|
+
if (obj.reportId !== undefined) {
|
|
2092
|
+
const obj_reportId = obj.reportId;
|
|
2093
|
+
const path_reportId = path + '.reportId';
|
|
2094
|
+
if (typeof obj_reportId !== 'string') {
|
|
2095
|
+
return new TypeError('Expected "string" but received "' + typeof obj_reportId + '" (at "' + path_reportId + '")');
|
|
2096
|
+
}
|
|
2097
|
+
}
|
|
2098
|
+
if (obj.reportName !== undefined) {
|
|
2099
|
+
const obj_reportName = obj.reportName;
|
|
2100
|
+
const path_reportName = path + '.reportName';
|
|
2101
|
+
if (typeof obj_reportName !== 'string') {
|
|
2102
|
+
return new TypeError('Expected "string" but received "' + typeof obj_reportName + '" (at "' + path_reportName + '")');
|
|
1614
2103
|
}
|
|
1615
2104
|
}
|
|
1616
2105
|
if (obj.segmentNames !== undefined) {
|
|
@@ -1643,19 +2132,19 @@ function validate$5(obj, path = 'DataCleanRoomQueryJobRepresentation') {
|
|
|
1643
2132
|
return v_error === undefined ? null : v_error;
|
|
1644
2133
|
}
|
|
1645
2134
|
const RepresentationType$5 = 'DataCleanRoomQueryJobRepresentation';
|
|
1646
|
-
function keyBuilder$
|
|
2135
|
+
function keyBuilder$c(luvio, config) {
|
|
1647
2136
|
return keyPrefix + '::' + RepresentationType$5 + ':' + config.id;
|
|
1648
2137
|
}
|
|
1649
2138
|
function keyBuilderFromType(luvio, object) {
|
|
1650
2139
|
const keyParams = {
|
|
1651
2140
|
id: object.id
|
|
1652
2141
|
};
|
|
1653
|
-
return keyBuilder$
|
|
2142
|
+
return keyBuilder$c(luvio, keyParams);
|
|
1654
2143
|
}
|
|
1655
2144
|
function normalize$5(input, existing, path, luvio, store, timestamp) {
|
|
1656
2145
|
return input;
|
|
1657
2146
|
}
|
|
1658
|
-
const select$
|
|
2147
|
+
const select$d = function DataCleanRoomQueryJobRepresentationSelect() {
|
|
1659
2148
|
return {
|
|
1660
2149
|
kind: 'Fragment',
|
|
1661
2150
|
version: VERSION$5,
|
|
@@ -1691,19 +2180,19 @@ function getTypeCacheKeys$5(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
1691
2180
|
});
|
|
1692
2181
|
}
|
|
1693
2182
|
|
|
1694
|
-
function select$
|
|
1695
|
-
return select$
|
|
2183
|
+
function select$c(luvio, params) {
|
|
2184
|
+
return select$d();
|
|
1696
2185
|
}
|
|
1697
|
-
function getResponseCacheKeys$
|
|
2186
|
+
function getResponseCacheKeys$7(storeKeyMap, luvio, resourceParams, response) {
|
|
1698
2187
|
getTypeCacheKeys$5(storeKeyMap, luvio, response);
|
|
1699
2188
|
}
|
|
1700
|
-
function ingestSuccess$
|
|
2189
|
+
function ingestSuccess$7(luvio, resourceParams, response) {
|
|
1701
2190
|
const { body } = response;
|
|
1702
2191
|
const key = keyBuilderFromType(luvio, body);
|
|
1703
2192
|
luvio.storeIngest(key, ingest$5, body);
|
|
1704
2193
|
const snapshot = luvio.storeLookup({
|
|
1705
2194
|
recordId: key,
|
|
1706
|
-
node: select$
|
|
2195
|
+
node: select$c(),
|
|
1707
2196
|
variables: {},
|
|
1708
2197
|
});
|
|
1709
2198
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -1714,7 +2203,7 @@ function ingestSuccess$6(luvio, resourceParams, response) {
|
|
|
1714
2203
|
deepFreeze(snapshot.data);
|
|
1715
2204
|
return snapshot;
|
|
1716
2205
|
}
|
|
1717
|
-
function createResourceRequest$
|
|
2206
|
+
function createResourceRequest$7(config) {
|
|
1718
2207
|
const headers = {};
|
|
1719
2208
|
return {
|
|
1720
2209
|
baseUri: '/services/data/v65.0',
|
|
@@ -1728,43 +2217,46 @@ function createResourceRequest$6(config) {
|
|
|
1728
2217
|
};
|
|
1729
2218
|
}
|
|
1730
2219
|
|
|
1731
|
-
const adapterName$
|
|
2220
|
+
const adapterName$7 = 'executeDataCleanRoomQuery';
|
|
1732
2221
|
const executeDataCleanRoomQuery_ConfigPropertyMetadata = [
|
|
1733
2222
|
generateParamConfigMetadata('collaborationIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
1734
2223
|
generateParamConfigMetadata('queryExecutionName', true, 2 /* Body */, 0 /* String */),
|
|
1735
|
-
generateParamConfigMetadata('segmentIds',
|
|
2224
|
+
generateParamConfigMetadata('segmentIds', false, 2 /* Body */, 0 /* String */, true),
|
|
2225
|
+
generateParamConfigMetadata('queryParameters', false, 2 /* Body */, 4 /* Unsupported */),
|
|
1736
2226
|
];
|
|
1737
|
-
const executeDataCleanRoomQuery_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
1738
|
-
const createResourceParams$
|
|
1739
|
-
function typeCheckConfig$
|
|
2227
|
+
const executeDataCleanRoomQuery_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$7, executeDataCleanRoomQuery_ConfigPropertyMetadata);
|
|
2228
|
+
const createResourceParams$7 = /*#__PURE__*/ createResourceParams$c(executeDataCleanRoomQuery_ConfigPropertyMetadata);
|
|
2229
|
+
function typeCheckConfig$7(untrustedConfig) {
|
|
1740
2230
|
const config = {};
|
|
1741
|
-
typeCheckConfig$
|
|
2231
|
+
typeCheckConfig$c(untrustedConfig, config, executeDataCleanRoomQuery_ConfigPropertyMetadata);
|
|
2232
|
+
const untrustedConfig_queryParameters = untrustedConfig.queryParameters;
|
|
2233
|
+
config.queryParameters = untrustedConfig_queryParameters;
|
|
1742
2234
|
return config;
|
|
1743
2235
|
}
|
|
1744
|
-
function validateAdapterConfig$
|
|
2236
|
+
function validateAdapterConfig$7(untrustedConfig, configPropertyNames) {
|
|
1745
2237
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
1746
2238
|
return null;
|
|
1747
2239
|
}
|
|
1748
2240
|
if (process.env.NODE_ENV !== 'production') {
|
|
1749
2241
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
1750
2242
|
}
|
|
1751
|
-
const config = typeCheckConfig$
|
|
2243
|
+
const config = typeCheckConfig$7(untrustedConfig);
|
|
1752
2244
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
1753
2245
|
return null;
|
|
1754
2246
|
}
|
|
1755
2247
|
return config;
|
|
1756
2248
|
}
|
|
1757
|
-
function buildNetworkSnapshot$
|
|
1758
|
-
const resourceParams = createResourceParams$
|
|
1759
|
-
const request = createResourceRequest$
|
|
2249
|
+
function buildNetworkSnapshot$7(luvio, config, options) {
|
|
2250
|
+
const resourceParams = createResourceParams$7(config);
|
|
2251
|
+
const request = createResourceRequest$7(resourceParams);
|
|
1760
2252
|
return luvio.dispatchResourceRequest(request, options)
|
|
1761
2253
|
.then((response) => {
|
|
1762
2254
|
return luvio.handleSuccessResponse(() => {
|
|
1763
|
-
const snapshot = ingestSuccess$
|
|
2255
|
+
const snapshot = ingestSuccess$7(luvio, resourceParams, response);
|
|
1764
2256
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
1765
2257
|
}, () => {
|
|
1766
2258
|
const cache = new StoreKeyMap();
|
|
1767
|
-
getResponseCacheKeys$
|
|
2259
|
+
getResponseCacheKeys$7(cache, luvio, resourceParams, response.body);
|
|
1768
2260
|
return cache;
|
|
1769
2261
|
});
|
|
1770
2262
|
}, (response) => {
|
|
@@ -1774,12 +2266,12 @@ function buildNetworkSnapshot$6(luvio, config, options) {
|
|
|
1774
2266
|
}
|
|
1775
2267
|
const executeDataCleanRoomQueryAdapterFactory = (luvio) => {
|
|
1776
2268
|
return function executeDataCleanRoomQuery(untrustedConfig) {
|
|
1777
|
-
const config = validateAdapterConfig$
|
|
2269
|
+
const config = validateAdapterConfig$7(untrustedConfig, executeDataCleanRoomQuery_ConfigPropertyNames);
|
|
1778
2270
|
// Invalid or incomplete config
|
|
1779
2271
|
if (config === null) {
|
|
1780
2272
|
throw new Error('Invalid config for "executeDataCleanRoomQuery"');
|
|
1781
2273
|
}
|
|
1782
|
-
return buildNetworkSnapshot$
|
|
2274
|
+
return buildNetworkSnapshot$7(luvio, config);
|
|
1783
2275
|
};
|
|
1784
2276
|
};
|
|
1785
2277
|
|
|
@@ -1863,7 +2355,7 @@ const RepresentationType$4 = 'DataCleanRoomQueryJobHistoryCollectionRepresentati
|
|
|
1863
2355
|
function normalize$4(input, existing, path, luvio, store, timestamp) {
|
|
1864
2356
|
return input;
|
|
1865
2357
|
}
|
|
1866
|
-
const select$
|
|
2358
|
+
const select$b = function DataCleanRoomQueryJobHistoryCollectionRepresentationSelect() {
|
|
1867
2359
|
return {
|
|
1868
2360
|
kind: 'Fragment',
|
|
1869
2361
|
version: VERSION$4,
|
|
@@ -1899,22 +2391,22 @@ function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
1899
2391
|
});
|
|
1900
2392
|
}
|
|
1901
2393
|
|
|
1902
|
-
function select$
|
|
1903
|
-
return select$
|
|
2394
|
+
function select$a(luvio, params) {
|
|
2395
|
+
return select$b();
|
|
1904
2396
|
}
|
|
1905
|
-
function keyBuilder$
|
|
2397
|
+
function keyBuilder$b(luvio, params) {
|
|
1906
2398
|
return keyPrefix + '::DataCleanRoomQueryJobHistoryCollectionRepresentation:(' + 'limit:' + params.queryParams.limit + ',' + 'filters:' + params.queryParams.filters + ',' + 'offset:' + params.queryParams.offset + ',' + 'orderBy:' + params.queryParams.orderBy + ',' + 'collaborationIdOrApiName:' + params.urlParams.collaborationIdOrApiName + ')';
|
|
1907
2399
|
}
|
|
1908
|
-
function getResponseCacheKeys$
|
|
1909
|
-
getTypeCacheKeys$4(storeKeyMap, luvio, response, () => keyBuilder$
|
|
2400
|
+
function getResponseCacheKeys$6(storeKeyMap, luvio, resourceParams, response) {
|
|
2401
|
+
getTypeCacheKeys$4(storeKeyMap, luvio, response, () => keyBuilder$b(luvio, resourceParams));
|
|
1910
2402
|
}
|
|
1911
|
-
function ingestSuccess$
|
|
2403
|
+
function ingestSuccess$6(luvio, resourceParams, response, snapshotRefresh) {
|
|
1912
2404
|
const { body } = response;
|
|
1913
|
-
const key = keyBuilder$
|
|
2405
|
+
const key = keyBuilder$b(luvio, resourceParams);
|
|
1914
2406
|
luvio.storeIngest(key, ingest$4, body);
|
|
1915
2407
|
const snapshot = luvio.storeLookup({
|
|
1916
2408
|
recordId: key,
|
|
1917
|
-
node: select$
|
|
2409
|
+
node: select$a(),
|
|
1918
2410
|
variables: {},
|
|
1919
2411
|
}, snapshotRefresh);
|
|
1920
2412
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -1925,13 +2417,13 @@ function ingestSuccess$5(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
1925
2417
|
deepFreeze(snapshot.data);
|
|
1926
2418
|
return snapshot;
|
|
1927
2419
|
}
|
|
1928
|
-
function ingestError$
|
|
1929
|
-
const key = keyBuilder$
|
|
2420
|
+
function ingestError$5(luvio, params, error, snapshotRefresh) {
|
|
2421
|
+
const key = keyBuilder$b(luvio, params);
|
|
1930
2422
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
1931
2423
|
luvio.storeIngestError(key, errorSnapshot);
|
|
1932
2424
|
return errorSnapshot;
|
|
1933
2425
|
}
|
|
1934
|
-
function createResourceRequest$
|
|
2426
|
+
function createResourceRequest$6(config) {
|
|
1935
2427
|
const headers = {};
|
|
1936
2428
|
return {
|
|
1937
2429
|
baseUri: '/services/data/v65.0',
|
|
@@ -1945,7 +2437,7 @@ function createResourceRequest$5(config) {
|
|
|
1945
2437
|
};
|
|
1946
2438
|
}
|
|
1947
2439
|
|
|
1948
|
-
const adapterName$
|
|
2440
|
+
const adapterName$6 = 'getAllDataCleanRoomQueryPaginated';
|
|
1949
2441
|
const getAllDataCleanRoomQueryPaginated_ConfigPropertyMetadata = [
|
|
1950
2442
|
generateParamConfigMetadata('collaborationIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
1951
2443
|
generateParamConfigMetadata('limit', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
@@ -1953,86 +2445,86 @@ const getAllDataCleanRoomQueryPaginated_ConfigPropertyMetadata = [
|
|
|
1953
2445
|
generateParamConfigMetadata('offset', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
1954
2446
|
generateParamConfigMetadata('orderBy', false, 1 /* QueryParameter */, 0 /* String */),
|
|
1955
2447
|
];
|
|
1956
|
-
const getAllDataCleanRoomQueryPaginated_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
1957
|
-
const createResourceParams$
|
|
1958
|
-
function keyBuilder$
|
|
1959
|
-
const resourceParams = createResourceParams$
|
|
1960
|
-
return keyBuilder$
|
|
2448
|
+
const getAllDataCleanRoomQueryPaginated_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, getAllDataCleanRoomQueryPaginated_ConfigPropertyMetadata);
|
|
2449
|
+
const createResourceParams$6 = /*#__PURE__*/ createResourceParams$c(getAllDataCleanRoomQueryPaginated_ConfigPropertyMetadata);
|
|
2450
|
+
function keyBuilder$a(luvio, config) {
|
|
2451
|
+
const resourceParams = createResourceParams$6(config);
|
|
2452
|
+
return keyBuilder$b(luvio, resourceParams);
|
|
1961
2453
|
}
|
|
1962
|
-
function typeCheckConfig$
|
|
2454
|
+
function typeCheckConfig$6(untrustedConfig) {
|
|
1963
2455
|
const config = {};
|
|
1964
|
-
typeCheckConfig$
|
|
2456
|
+
typeCheckConfig$c(untrustedConfig, config, getAllDataCleanRoomQueryPaginated_ConfigPropertyMetadata);
|
|
1965
2457
|
return config;
|
|
1966
2458
|
}
|
|
1967
|
-
function validateAdapterConfig$
|
|
2459
|
+
function validateAdapterConfig$6(untrustedConfig, configPropertyNames) {
|
|
1968
2460
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
1969
2461
|
return null;
|
|
1970
2462
|
}
|
|
1971
2463
|
if (process.env.NODE_ENV !== 'production') {
|
|
1972
2464
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
1973
2465
|
}
|
|
1974
|
-
const config = typeCheckConfig$
|
|
2466
|
+
const config = typeCheckConfig$6(untrustedConfig);
|
|
1975
2467
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
1976
2468
|
return null;
|
|
1977
2469
|
}
|
|
1978
2470
|
return config;
|
|
1979
2471
|
}
|
|
1980
|
-
function adapterFragment$
|
|
1981
|
-
createResourceParams$
|
|
1982
|
-
return select$
|
|
2472
|
+
function adapterFragment$5(luvio, config) {
|
|
2473
|
+
createResourceParams$6(config);
|
|
2474
|
+
return select$a();
|
|
1983
2475
|
}
|
|
1984
|
-
function onFetchResponseSuccess$
|
|
1985
|
-
const snapshot = ingestSuccess$
|
|
2476
|
+
function onFetchResponseSuccess$5(luvio, config, resourceParams, response) {
|
|
2477
|
+
const snapshot = ingestSuccess$6(luvio, resourceParams, response, {
|
|
1986
2478
|
config,
|
|
1987
|
-
resolve: () => buildNetworkSnapshot$
|
|
2479
|
+
resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
|
|
1988
2480
|
});
|
|
1989
2481
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
1990
2482
|
}
|
|
1991
|
-
function onFetchResponseError$
|
|
1992
|
-
const snapshot = ingestError$
|
|
2483
|
+
function onFetchResponseError$5(luvio, config, resourceParams, response) {
|
|
2484
|
+
const snapshot = ingestError$5(luvio, resourceParams, response, {
|
|
1993
2485
|
config,
|
|
1994
|
-
resolve: () => buildNetworkSnapshot$
|
|
2486
|
+
resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
|
|
1995
2487
|
});
|
|
1996
2488
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
1997
2489
|
}
|
|
1998
|
-
function buildNetworkSnapshot$
|
|
1999
|
-
const resourceParams = createResourceParams$
|
|
2000
|
-
const request = createResourceRequest$
|
|
2490
|
+
function buildNetworkSnapshot$6(luvio, config, options) {
|
|
2491
|
+
const resourceParams = createResourceParams$6(config);
|
|
2492
|
+
const request = createResourceRequest$6(resourceParams);
|
|
2001
2493
|
return luvio.dispatchResourceRequest(request, options)
|
|
2002
2494
|
.then((response) => {
|
|
2003
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
2495
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$5(luvio, config, resourceParams, response), () => {
|
|
2004
2496
|
const cache = new StoreKeyMap();
|
|
2005
|
-
getResponseCacheKeys$
|
|
2497
|
+
getResponseCacheKeys$6(cache, luvio, resourceParams, response.body);
|
|
2006
2498
|
return cache;
|
|
2007
2499
|
});
|
|
2008
2500
|
}, (response) => {
|
|
2009
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
2501
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$5(luvio, config, resourceParams, response));
|
|
2010
2502
|
});
|
|
2011
2503
|
}
|
|
2012
|
-
function buildNetworkSnapshotCachePolicy$
|
|
2013
|
-
return buildNetworkSnapshotCachePolicy$
|
|
2504
|
+
function buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext) {
|
|
2505
|
+
return buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext, buildNetworkSnapshot$6, undefined, false);
|
|
2014
2506
|
}
|
|
2015
|
-
function buildCachedSnapshotCachePolicy$
|
|
2507
|
+
function buildCachedSnapshotCachePolicy$5(context, storeLookup) {
|
|
2016
2508
|
const { luvio, config } = context;
|
|
2017
2509
|
const selector = {
|
|
2018
|
-
recordId: keyBuilder$
|
|
2019
|
-
node: adapterFragment$
|
|
2510
|
+
recordId: keyBuilder$a(luvio, config),
|
|
2511
|
+
node: adapterFragment$5(luvio, config),
|
|
2020
2512
|
variables: {},
|
|
2021
2513
|
};
|
|
2022
2514
|
const cacheSnapshot = storeLookup(selector, {
|
|
2023
2515
|
config,
|
|
2024
|
-
resolve: () => buildNetworkSnapshot$
|
|
2516
|
+
resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
|
|
2025
2517
|
});
|
|
2026
2518
|
return cacheSnapshot;
|
|
2027
2519
|
}
|
|
2028
2520
|
const getAllDataCleanRoomQueryPaginatedAdapterFactory = (luvio) => function dataCleanRoom__getAllDataCleanRoomQueryPaginated(untrustedConfig, requestContext) {
|
|
2029
|
-
const config = validateAdapterConfig$
|
|
2521
|
+
const config = validateAdapterConfig$6(untrustedConfig, getAllDataCleanRoomQueryPaginated_ConfigPropertyNames);
|
|
2030
2522
|
// Invalid or incomplete config
|
|
2031
2523
|
if (config === null) {
|
|
2032
2524
|
return null;
|
|
2033
2525
|
}
|
|
2034
2526
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
2035
|
-
buildCachedSnapshotCachePolicy$
|
|
2527
|
+
buildCachedSnapshotCachePolicy$5, buildNetworkSnapshotCachePolicy$5);
|
|
2036
2528
|
};
|
|
2037
2529
|
|
|
2038
2530
|
const VERSION$3 = "9e5eddaaa3330278c7aa483af5dc8d74";
|
|
@@ -2049,7 +2541,7 @@ function validate$3(obj, path = 'DataCleanRoomCollaborationCollectionRepresentat
|
|
|
2049
2541
|
for (let i = 0; i < obj_collaborations.length; i++) {
|
|
2050
2542
|
const obj_collaborations_item = obj_collaborations[i];
|
|
2051
2543
|
const path_collaborations_item = path_collaborations + '[' + i + ']';
|
|
2052
|
-
const referencepath_collaborations_itemValidationError = validate$
|
|
2544
|
+
const referencepath_collaborations_itemValidationError = validate$o(obj_collaborations_item, path_collaborations_item);
|
|
2053
2545
|
if (referencepath_collaborations_itemValidationError !== null) {
|
|
2054
2546
|
let message = 'Object doesn\'t match DataCleanRoomCollaborationRepresentation (at "' + path_collaborations_item + '")\n';
|
|
2055
2547
|
message += referencepath_collaborations_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2115,7 +2607,7 @@ const RepresentationType$3 = 'DataCleanRoomCollaborationCollectionRepresentation
|
|
|
2115
2607
|
function normalize$3(input, existing, path, luvio, store, timestamp) {
|
|
2116
2608
|
return input;
|
|
2117
2609
|
}
|
|
2118
|
-
const select$
|
|
2610
|
+
const select$9 = function DataCleanRoomCollaborationCollectionRepresentationSelect() {
|
|
2119
2611
|
return {
|
|
2120
2612
|
kind: 'Fragment',
|
|
2121
2613
|
version: VERSION$3,
|
|
@@ -2151,22 +2643,22 @@ function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
2151
2643
|
});
|
|
2152
2644
|
}
|
|
2153
2645
|
|
|
2154
|
-
function select$
|
|
2155
|
-
return select$
|
|
2646
|
+
function select$8(luvio, params) {
|
|
2647
|
+
return select$9();
|
|
2156
2648
|
}
|
|
2157
|
-
function keyBuilder$
|
|
2649
|
+
function keyBuilder$9(luvio, params) {
|
|
2158
2650
|
return keyPrefix + '::DataCleanRoomCollaborationCollectionRepresentation:(' + 'filters:' + params.queryParams.filters + ',' + 'limit:' + params.queryParams.limit + ',' + 'offset:' + params.queryParams.offset + ',' + 'orderBy:' + params.queryParams.orderBy + ')';
|
|
2159
2651
|
}
|
|
2160
|
-
function getResponseCacheKeys$
|
|
2161
|
-
getTypeCacheKeys$3(storeKeyMap, luvio, response, () => keyBuilder$
|
|
2652
|
+
function getResponseCacheKeys$5(storeKeyMap, luvio, resourceParams, response) {
|
|
2653
|
+
getTypeCacheKeys$3(storeKeyMap, luvio, response, () => keyBuilder$9(luvio, resourceParams));
|
|
2162
2654
|
}
|
|
2163
|
-
function ingestSuccess$
|
|
2655
|
+
function ingestSuccess$5(luvio, resourceParams, response, snapshotRefresh) {
|
|
2164
2656
|
const { body } = response;
|
|
2165
|
-
const key = keyBuilder$
|
|
2657
|
+
const key = keyBuilder$9(luvio, resourceParams);
|
|
2166
2658
|
luvio.storeIngest(key, ingest$3, body);
|
|
2167
2659
|
const snapshot = luvio.storeLookup({
|
|
2168
2660
|
recordId: key,
|
|
2169
|
-
node: select$
|
|
2661
|
+
node: select$8(),
|
|
2170
2662
|
variables: {},
|
|
2171
2663
|
}, snapshotRefresh);
|
|
2172
2664
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -2177,13 +2669,13 @@ function ingestSuccess$4(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
2177
2669
|
deepFreeze(snapshot.data);
|
|
2178
2670
|
return snapshot;
|
|
2179
2671
|
}
|
|
2180
|
-
function ingestError$
|
|
2181
|
-
const key = keyBuilder$
|
|
2672
|
+
function ingestError$4(luvio, params, error, snapshotRefresh) {
|
|
2673
|
+
const key = keyBuilder$9(luvio, params);
|
|
2182
2674
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
2183
2675
|
luvio.storeIngestError(key, errorSnapshot);
|
|
2184
2676
|
return errorSnapshot;
|
|
2185
2677
|
}
|
|
2186
|
-
function createResourceRequest$
|
|
2678
|
+
function createResourceRequest$5(config) {
|
|
2187
2679
|
const headers = {};
|
|
2188
2680
|
return {
|
|
2189
2681
|
baseUri: '/services/data/v65.0',
|
|
@@ -2197,93 +2689,93 @@ function createResourceRequest$4(config) {
|
|
|
2197
2689
|
};
|
|
2198
2690
|
}
|
|
2199
2691
|
|
|
2200
|
-
const adapterName$
|
|
2692
|
+
const adapterName$5 = 'getAllDataCleanRoomsPaginated';
|
|
2201
2693
|
const getAllDataCleanRoomsPaginated_ConfigPropertyMetadata = [
|
|
2202
2694
|
generateParamConfigMetadata('filters', false, 1 /* QueryParameter */, 0 /* String */),
|
|
2203
2695
|
generateParamConfigMetadata('limit', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
2204
2696
|
generateParamConfigMetadata('offset', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
2205
2697
|
generateParamConfigMetadata('orderBy', false, 1 /* QueryParameter */, 0 /* String */),
|
|
2206
2698
|
];
|
|
2207
|
-
const getAllDataCleanRoomsPaginated_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
2208
|
-
const createResourceParams$
|
|
2209
|
-
function keyBuilder$
|
|
2210
|
-
const resourceParams = createResourceParams$
|
|
2211
|
-
return keyBuilder$
|
|
2699
|
+
const getAllDataCleanRoomsPaginated_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, getAllDataCleanRoomsPaginated_ConfigPropertyMetadata);
|
|
2700
|
+
const createResourceParams$5 = /*#__PURE__*/ createResourceParams$c(getAllDataCleanRoomsPaginated_ConfigPropertyMetadata);
|
|
2701
|
+
function keyBuilder$8(luvio, config) {
|
|
2702
|
+
const resourceParams = createResourceParams$5(config);
|
|
2703
|
+
return keyBuilder$9(luvio, resourceParams);
|
|
2212
2704
|
}
|
|
2213
|
-
function typeCheckConfig$
|
|
2705
|
+
function typeCheckConfig$5(untrustedConfig) {
|
|
2214
2706
|
const config = {};
|
|
2215
|
-
typeCheckConfig$
|
|
2707
|
+
typeCheckConfig$c(untrustedConfig, config, getAllDataCleanRoomsPaginated_ConfigPropertyMetadata);
|
|
2216
2708
|
return config;
|
|
2217
2709
|
}
|
|
2218
|
-
function validateAdapterConfig$
|
|
2710
|
+
function validateAdapterConfig$5(untrustedConfig, configPropertyNames) {
|
|
2219
2711
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
2220
2712
|
return null;
|
|
2221
2713
|
}
|
|
2222
2714
|
if (process.env.NODE_ENV !== 'production') {
|
|
2223
2715
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
2224
2716
|
}
|
|
2225
|
-
const config = typeCheckConfig$
|
|
2717
|
+
const config = typeCheckConfig$5(untrustedConfig);
|
|
2226
2718
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
2227
2719
|
return null;
|
|
2228
2720
|
}
|
|
2229
2721
|
return config;
|
|
2230
2722
|
}
|
|
2231
|
-
function adapterFragment$
|
|
2232
|
-
createResourceParams$
|
|
2233
|
-
return select$
|
|
2723
|
+
function adapterFragment$4(luvio, config) {
|
|
2724
|
+
createResourceParams$5(config);
|
|
2725
|
+
return select$8();
|
|
2234
2726
|
}
|
|
2235
|
-
function onFetchResponseSuccess$
|
|
2236
|
-
const snapshot = ingestSuccess$
|
|
2727
|
+
function onFetchResponseSuccess$4(luvio, config, resourceParams, response) {
|
|
2728
|
+
const snapshot = ingestSuccess$5(luvio, resourceParams, response, {
|
|
2237
2729
|
config,
|
|
2238
|
-
resolve: () => buildNetworkSnapshot$
|
|
2730
|
+
resolve: () => buildNetworkSnapshot$5(luvio, config, snapshotRefreshOptions)
|
|
2239
2731
|
});
|
|
2240
2732
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
2241
2733
|
}
|
|
2242
|
-
function onFetchResponseError$
|
|
2243
|
-
const snapshot = ingestError$
|
|
2734
|
+
function onFetchResponseError$4(luvio, config, resourceParams, response) {
|
|
2735
|
+
const snapshot = ingestError$4(luvio, resourceParams, response, {
|
|
2244
2736
|
config,
|
|
2245
|
-
resolve: () => buildNetworkSnapshot$
|
|
2737
|
+
resolve: () => buildNetworkSnapshot$5(luvio, config, snapshotRefreshOptions)
|
|
2246
2738
|
});
|
|
2247
2739
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
2248
2740
|
}
|
|
2249
|
-
function buildNetworkSnapshot$
|
|
2250
|
-
const resourceParams = createResourceParams$
|
|
2251
|
-
const request = createResourceRequest$
|
|
2741
|
+
function buildNetworkSnapshot$5(luvio, config, options) {
|
|
2742
|
+
const resourceParams = createResourceParams$5(config);
|
|
2743
|
+
const request = createResourceRequest$5(resourceParams);
|
|
2252
2744
|
return luvio.dispatchResourceRequest(request, options)
|
|
2253
2745
|
.then((response) => {
|
|
2254
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
2746
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$4(luvio, config, resourceParams, response), () => {
|
|
2255
2747
|
const cache = new StoreKeyMap();
|
|
2256
|
-
getResponseCacheKeys$
|
|
2748
|
+
getResponseCacheKeys$5(cache, luvio, resourceParams, response.body);
|
|
2257
2749
|
return cache;
|
|
2258
2750
|
});
|
|
2259
2751
|
}, (response) => {
|
|
2260
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
2752
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$4(luvio, config, resourceParams, response));
|
|
2261
2753
|
});
|
|
2262
2754
|
}
|
|
2263
|
-
function buildNetworkSnapshotCachePolicy$
|
|
2264
|
-
return buildNetworkSnapshotCachePolicy$
|
|
2755
|
+
function buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext) {
|
|
2756
|
+
return buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext, buildNetworkSnapshot$5, undefined, false);
|
|
2265
2757
|
}
|
|
2266
|
-
function buildCachedSnapshotCachePolicy$
|
|
2758
|
+
function buildCachedSnapshotCachePolicy$4(context, storeLookup) {
|
|
2267
2759
|
const { luvio, config } = context;
|
|
2268
2760
|
const selector = {
|
|
2269
|
-
recordId: keyBuilder$
|
|
2270
|
-
node: adapterFragment$
|
|
2761
|
+
recordId: keyBuilder$8(luvio, config),
|
|
2762
|
+
node: adapterFragment$4(luvio, config),
|
|
2271
2763
|
variables: {},
|
|
2272
2764
|
};
|
|
2273
2765
|
const cacheSnapshot = storeLookup(selector, {
|
|
2274
2766
|
config,
|
|
2275
|
-
resolve: () => buildNetworkSnapshot$
|
|
2767
|
+
resolve: () => buildNetworkSnapshot$5(luvio, config, snapshotRefreshOptions)
|
|
2276
2768
|
});
|
|
2277
2769
|
return cacheSnapshot;
|
|
2278
2770
|
}
|
|
2279
2771
|
const getAllDataCleanRoomsPaginatedAdapterFactory = (luvio) => function dataCleanRoom__getAllDataCleanRoomsPaginated(untrustedConfig, requestContext) {
|
|
2280
|
-
const config = validateAdapterConfig$
|
|
2772
|
+
const config = validateAdapterConfig$5(untrustedConfig, getAllDataCleanRoomsPaginated_ConfigPropertyNames);
|
|
2281
2773
|
// Invalid or incomplete config
|
|
2282
2774
|
if (config === null) {
|
|
2283
2775
|
return null;
|
|
2284
2776
|
}
|
|
2285
2777
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
2286
|
-
buildCachedSnapshotCachePolicy$
|
|
2778
|
+
buildCachedSnapshotCachePolicy$4, buildNetworkSnapshotCachePolicy$4);
|
|
2287
2779
|
};
|
|
2288
2780
|
|
|
2289
2781
|
const VERSION$2 = "52237eeecd4f8f11ae22e265d9abe5ca";
|
|
@@ -2383,7 +2875,7 @@ function normalize$2(input, existing, path, luvio, store, timestamp) {
|
|
|
2383
2875
|
}
|
|
2384
2876
|
return input;
|
|
2385
2877
|
}
|
|
2386
|
-
const select$
|
|
2878
|
+
const select$7 = function DataCleanRoomProviderCollectionRepresentationSelect() {
|
|
2387
2879
|
return {
|
|
2388
2880
|
kind: 'Fragment',
|
|
2389
2881
|
version: VERSION$2,
|
|
@@ -2413,7 +2905,7 @@ const select$6 = function DataCleanRoomProviderCollectionRepresentationSelect()
|
|
|
2413
2905
|
name: 'providers',
|
|
2414
2906
|
kind: 'Link',
|
|
2415
2907
|
plural: true,
|
|
2416
|
-
fragment: select$
|
|
2908
|
+
fragment: select$f()
|
|
2417
2909
|
},
|
|
2418
2910
|
{
|
|
2419
2911
|
name: 'totalSize',
|
|
@@ -2527,22 +3019,22 @@ function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
2527
3019
|
}
|
|
2528
3020
|
}
|
|
2529
3021
|
|
|
2530
|
-
function select$
|
|
2531
|
-
return select$
|
|
3022
|
+
function select$6(luvio, params) {
|
|
3023
|
+
return select$7();
|
|
2532
3024
|
}
|
|
2533
|
-
function keyBuilder$
|
|
3025
|
+
function keyBuilder$7(luvio, params) {
|
|
2534
3026
|
return keyPrefix + '::DataCleanRoomProviderCollectionRepresentation:(' + 'filters:' + params.queryParams.filters + ',' + 'limit:' + params.queryParams.limit + ',' + 'offset:' + params.queryParams.offset + ',' + 'orderBy:' + params.queryParams.orderBy + ')';
|
|
2535
3027
|
}
|
|
2536
|
-
function getResponseCacheKeys$
|
|
2537
|
-
getTypeCacheKeys$2(storeKeyMap, luvio, response, () => keyBuilder$
|
|
3028
|
+
function getResponseCacheKeys$4(storeKeyMap, luvio, resourceParams, response) {
|
|
3029
|
+
getTypeCacheKeys$2(storeKeyMap, luvio, response, () => keyBuilder$7(luvio, resourceParams));
|
|
2538
3030
|
}
|
|
2539
|
-
function ingestSuccess$
|
|
3031
|
+
function ingestSuccess$4(luvio, resourceParams, response, snapshotRefresh) {
|
|
2540
3032
|
const { body } = response;
|
|
2541
|
-
const key = keyBuilder$
|
|
3033
|
+
const key = keyBuilder$7(luvio, resourceParams);
|
|
2542
3034
|
luvio.storeIngest(key, ingest$2, body);
|
|
2543
3035
|
const snapshot = luvio.storeLookup({
|
|
2544
3036
|
recordId: key,
|
|
2545
|
-
node: select$
|
|
3037
|
+
node: select$6(),
|
|
2546
3038
|
variables: {},
|
|
2547
3039
|
}, snapshotRefresh);
|
|
2548
3040
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -2553,13 +3045,13 @@ function ingestSuccess$3(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
2553
3045
|
deepFreeze(snapshot.data);
|
|
2554
3046
|
return snapshot;
|
|
2555
3047
|
}
|
|
2556
|
-
function ingestError$
|
|
2557
|
-
const key = keyBuilder$
|
|
3048
|
+
function ingestError$3(luvio, params, error, snapshotRefresh) {
|
|
3049
|
+
const key = keyBuilder$7(luvio, params);
|
|
2558
3050
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
2559
3051
|
luvio.storeIngestError(key, errorSnapshot);
|
|
2560
3052
|
return errorSnapshot;
|
|
2561
3053
|
}
|
|
2562
|
-
function createResourceRequest$
|
|
3054
|
+
function createResourceRequest$4(config) {
|
|
2563
3055
|
const headers = {};
|
|
2564
3056
|
return {
|
|
2565
3057
|
baseUri: '/services/data/v65.0',
|
|
@@ -2573,93 +3065,93 @@ function createResourceRequest$3(config) {
|
|
|
2573
3065
|
};
|
|
2574
3066
|
}
|
|
2575
3067
|
|
|
2576
|
-
const adapterName$
|
|
3068
|
+
const adapterName$4 = 'getDataCleanRoomProvidersPaginated';
|
|
2577
3069
|
const getDataCleanRoomProvidersPaginated_ConfigPropertyMetadata = [
|
|
2578
3070
|
generateParamConfigMetadata('filters', false, 1 /* QueryParameter */, 0 /* String */),
|
|
2579
3071
|
generateParamConfigMetadata('limit', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
2580
3072
|
generateParamConfigMetadata('offset', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
2581
3073
|
generateParamConfigMetadata('orderBy', false, 1 /* QueryParameter */, 0 /* String */),
|
|
2582
3074
|
];
|
|
2583
|
-
const getDataCleanRoomProvidersPaginated_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
2584
|
-
const createResourceParams$
|
|
2585
|
-
function keyBuilder$
|
|
2586
|
-
const resourceParams = createResourceParams$
|
|
2587
|
-
return keyBuilder$
|
|
3075
|
+
const getDataCleanRoomProvidersPaginated_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, getDataCleanRoomProvidersPaginated_ConfigPropertyMetadata);
|
|
3076
|
+
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$c(getDataCleanRoomProvidersPaginated_ConfigPropertyMetadata);
|
|
3077
|
+
function keyBuilder$6(luvio, config) {
|
|
3078
|
+
const resourceParams = createResourceParams$4(config);
|
|
3079
|
+
return keyBuilder$7(luvio, resourceParams);
|
|
2588
3080
|
}
|
|
2589
|
-
function typeCheckConfig$
|
|
3081
|
+
function typeCheckConfig$4(untrustedConfig) {
|
|
2590
3082
|
const config = {};
|
|
2591
|
-
typeCheckConfig$
|
|
3083
|
+
typeCheckConfig$c(untrustedConfig, config, getDataCleanRoomProvidersPaginated_ConfigPropertyMetadata);
|
|
2592
3084
|
return config;
|
|
2593
3085
|
}
|
|
2594
|
-
function validateAdapterConfig$
|
|
3086
|
+
function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
|
|
2595
3087
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
2596
3088
|
return null;
|
|
2597
3089
|
}
|
|
2598
3090
|
if (process.env.NODE_ENV !== 'production') {
|
|
2599
3091
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
2600
3092
|
}
|
|
2601
|
-
const config = typeCheckConfig$
|
|
3093
|
+
const config = typeCheckConfig$4(untrustedConfig);
|
|
2602
3094
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
2603
3095
|
return null;
|
|
2604
3096
|
}
|
|
2605
3097
|
return config;
|
|
2606
3098
|
}
|
|
2607
|
-
function adapterFragment$
|
|
2608
|
-
createResourceParams$
|
|
2609
|
-
return select$
|
|
3099
|
+
function adapterFragment$3(luvio, config) {
|
|
3100
|
+
createResourceParams$4(config);
|
|
3101
|
+
return select$6();
|
|
2610
3102
|
}
|
|
2611
|
-
function onFetchResponseSuccess$
|
|
2612
|
-
const snapshot = ingestSuccess$
|
|
3103
|
+
function onFetchResponseSuccess$3(luvio, config, resourceParams, response) {
|
|
3104
|
+
const snapshot = ingestSuccess$4(luvio, resourceParams, response, {
|
|
2613
3105
|
config,
|
|
2614
|
-
resolve: () => buildNetworkSnapshot$
|
|
3106
|
+
resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
|
|
2615
3107
|
});
|
|
2616
3108
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
2617
3109
|
}
|
|
2618
|
-
function onFetchResponseError$
|
|
2619
|
-
const snapshot = ingestError$
|
|
3110
|
+
function onFetchResponseError$3(luvio, config, resourceParams, response) {
|
|
3111
|
+
const snapshot = ingestError$3(luvio, resourceParams, response, {
|
|
2620
3112
|
config,
|
|
2621
|
-
resolve: () => buildNetworkSnapshot$
|
|
3113
|
+
resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
|
|
2622
3114
|
});
|
|
2623
3115
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
2624
3116
|
}
|
|
2625
|
-
function buildNetworkSnapshot$
|
|
2626
|
-
const resourceParams = createResourceParams$
|
|
2627
|
-
const request = createResourceRequest$
|
|
3117
|
+
function buildNetworkSnapshot$4(luvio, config, options) {
|
|
3118
|
+
const resourceParams = createResourceParams$4(config);
|
|
3119
|
+
const request = createResourceRequest$4(resourceParams);
|
|
2628
3120
|
return luvio.dispatchResourceRequest(request, options)
|
|
2629
3121
|
.then((response) => {
|
|
2630
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
3122
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$3(luvio, config, resourceParams, response), () => {
|
|
2631
3123
|
const cache = new StoreKeyMap();
|
|
2632
|
-
getResponseCacheKeys$
|
|
3124
|
+
getResponseCacheKeys$4(cache, luvio, resourceParams, response.body);
|
|
2633
3125
|
return cache;
|
|
2634
3126
|
});
|
|
2635
3127
|
}, (response) => {
|
|
2636
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
3128
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$3(luvio, config, resourceParams, response));
|
|
2637
3129
|
});
|
|
2638
3130
|
}
|
|
2639
|
-
function buildNetworkSnapshotCachePolicy$
|
|
2640
|
-
return buildNetworkSnapshotCachePolicy$
|
|
3131
|
+
function buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext) {
|
|
3132
|
+
return buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext, buildNetworkSnapshot$4, undefined, false);
|
|
2641
3133
|
}
|
|
2642
|
-
function buildCachedSnapshotCachePolicy$
|
|
3134
|
+
function buildCachedSnapshotCachePolicy$3(context, storeLookup) {
|
|
2643
3135
|
const { luvio, config } = context;
|
|
2644
3136
|
const selector = {
|
|
2645
|
-
recordId: keyBuilder$
|
|
2646
|
-
node: adapterFragment$
|
|
3137
|
+
recordId: keyBuilder$6(luvio, config),
|
|
3138
|
+
node: adapterFragment$3(luvio, config),
|
|
2647
3139
|
variables: {},
|
|
2648
3140
|
};
|
|
2649
3141
|
const cacheSnapshot = storeLookup(selector, {
|
|
2650
3142
|
config,
|
|
2651
|
-
resolve: () => buildNetworkSnapshot$
|
|
3143
|
+
resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
|
|
2652
3144
|
});
|
|
2653
3145
|
return cacheSnapshot;
|
|
2654
3146
|
}
|
|
2655
3147
|
const getDataCleanRoomProvidersPaginatedAdapterFactory = (luvio) => function dataCleanRoom__getDataCleanRoomProvidersPaginated(untrustedConfig, requestContext) {
|
|
2656
|
-
const config = validateAdapterConfig$
|
|
3148
|
+
const config = validateAdapterConfig$4(untrustedConfig, getDataCleanRoomProvidersPaginated_ConfigPropertyNames);
|
|
2657
3149
|
// Invalid or incomplete config
|
|
2658
3150
|
if (config === null) {
|
|
2659
3151
|
return null;
|
|
2660
3152
|
}
|
|
2661
3153
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
2662
|
-
buildCachedSnapshotCachePolicy$
|
|
3154
|
+
buildCachedSnapshotCachePolicy$3, buildNetworkSnapshotCachePolicy$3);
|
|
2663
3155
|
};
|
|
2664
3156
|
|
|
2665
3157
|
const VERSION$1 = "6fb37e337652e88218f2171d1e56647b";
|
|
@@ -2755,7 +3247,7 @@ function normalize$1(input, existing, path, luvio, store, timestamp) {
|
|
|
2755
3247
|
}
|
|
2756
3248
|
return input;
|
|
2757
3249
|
}
|
|
2758
|
-
const select$
|
|
3250
|
+
const select$5 = function DataCleanRoomSpecificationCollectionRepresentationSelect() {
|
|
2759
3251
|
return {
|
|
2760
3252
|
kind: 'Fragment',
|
|
2761
3253
|
version: VERSION$1,
|
|
@@ -2765,7 +3257,7 @@ const select$4 = function DataCleanRoomSpecificationCollectionRepresentationSele
|
|
|
2765
3257
|
name: 'cleanroomSpecifications',
|
|
2766
3258
|
kind: 'Link',
|
|
2767
3259
|
plural: true,
|
|
2768
|
-
fragment: select$
|
|
3260
|
+
fragment: select$h()
|
|
2769
3261
|
},
|
|
2770
3262
|
{
|
|
2771
3263
|
name: 'currentPageUrl',
|
|
@@ -2881,22 +3373,22 @@ function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
2881
3373
|
}
|
|
2882
3374
|
}
|
|
2883
3375
|
|
|
2884
|
-
function select$
|
|
2885
|
-
return select$
|
|
3376
|
+
function select$4(luvio, params) {
|
|
3377
|
+
return select$5();
|
|
2886
3378
|
}
|
|
2887
|
-
function keyBuilder$
|
|
3379
|
+
function keyBuilder$5(luvio, params) {
|
|
2888
3380
|
return keyPrefix + '::DataCleanRoomSpecificationCollectionRepresentation:(' + 'filters:' + params.queryParams.filters + ',' + 'limit:' + params.queryParams.limit + ',' + 'offset:' + params.queryParams.offset + ',' + 'orderBy:' + params.queryParams.orderBy + ')';
|
|
2889
3381
|
}
|
|
2890
|
-
function getResponseCacheKeys$
|
|
2891
|
-
getTypeCacheKeys$1(storeKeyMap, luvio, response, () => keyBuilder$
|
|
3382
|
+
function getResponseCacheKeys$3(storeKeyMap, luvio, resourceParams, response) {
|
|
3383
|
+
getTypeCacheKeys$1(storeKeyMap, luvio, response, () => keyBuilder$5(luvio, resourceParams));
|
|
2892
3384
|
}
|
|
2893
|
-
function ingestSuccess$
|
|
3385
|
+
function ingestSuccess$3(luvio, resourceParams, response, snapshotRefresh) {
|
|
2894
3386
|
const { body } = response;
|
|
2895
|
-
const key = keyBuilder$
|
|
3387
|
+
const key = keyBuilder$5(luvio, resourceParams);
|
|
2896
3388
|
luvio.storeIngest(key, ingest$1, body);
|
|
2897
3389
|
const snapshot = luvio.storeLookup({
|
|
2898
3390
|
recordId: key,
|
|
2899
|
-
node: select$
|
|
3391
|
+
node: select$4(),
|
|
2900
3392
|
variables: {},
|
|
2901
3393
|
}, snapshotRefresh);
|
|
2902
3394
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -2907,13 +3399,13 @@ function ingestSuccess$2(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
2907
3399
|
deepFreeze(snapshot.data);
|
|
2908
3400
|
return snapshot;
|
|
2909
3401
|
}
|
|
2910
|
-
function ingestError$
|
|
2911
|
-
const key = keyBuilder$
|
|
3402
|
+
function ingestError$2(luvio, params, error, snapshotRefresh) {
|
|
3403
|
+
const key = keyBuilder$5(luvio, params);
|
|
2912
3404
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
2913
3405
|
luvio.storeIngestError(key, errorSnapshot);
|
|
2914
3406
|
return errorSnapshot;
|
|
2915
3407
|
}
|
|
2916
|
-
function createResourceRequest$
|
|
3408
|
+
function createResourceRequest$3(config) {
|
|
2917
3409
|
const headers = {};
|
|
2918
3410
|
return {
|
|
2919
3411
|
baseUri: '/services/data/v65.0',
|
|
@@ -2927,93 +3419,93 @@ function createResourceRequest$2(config) {
|
|
|
2927
3419
|
};
|
|
2928
3420
|
}
|
|
2929
3421
|
|
|
2930
|
-
const adapterName$
|
|
3422
|
+
const adapterName$3 = 'getDataCleanRoomSpecificationsPaginated';
|
|
2931
3423
|
const getDataCleanRoomSpecificationsPaginated_ConfigPropertyMetadata = [
|
|
2932
3424
|
generateParamConfigMetadata('filters', false, 1 /* QueryParameter */, 0 /* String */),
|
|
2933
3425
|
generateParamConfigMetadata('limit', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
2934
3426
|
generateParamConfigMetadata('offset', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
2935
3427
|
generateParamConfigMetadata('orderBy', false, 1 /* QueryParameter */, 0 /* String */),
|
|
2936
3428
|
];
|
|
2937
|
-
const getDataCleanRoomSpecificationsPaginated_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
2938
|
-
const createResourceParams$
|
|
2939
|
-
function keyBuilder$
|
|
2940
|
-
const resourceParams = createResourceParams$
|
|
2941
|
-
return keyBuilder$
|
|
3429
|
+
const getDataCleanRoomSpecificationsPaginated_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, getDataCleanRoomSpecificationsPaginated_ConfigPropertyMetadata);
|
|
3430
|
+
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$c(getDataCleanRoomSpecificationsPaginated_ConfigPropertyMetadata);
|
|
3431
|
+
function keyBuilder$4(luvio, config) {
|
|
3432
|
+
const resourceParams = createResourceParams$3(config);
|
|
3433
|
+
return keyBuilder$5(luvio, resourceParams);
|
|
2942
3434
|
}
|
|
2943
|
-
function typeCheckConfig$
|
|
3435
|
+
function typeCheckConfig$3(untrustedConfig) {
|
|
2944
3436
|
const config = {};
|
|
2945
|
-
typeCheckConfig$
|
|
3437
|
+
typeCheckConfig$c(untrustedConfig, config, getDataCleanRoomSpecificationsPaginated_ConfigPropertyMetadata);
|
|
2946
3438
|
return config;
|
|
2947
3439
|
}
|
|
2948
|
-
function validateAdapterConfig$
|
|
3440
|
+
function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
|
|
2949
3441
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
2950
3442
|
return null;
|
|
2951
3443
|
}
|
|
2952
3444
|
if (process.env.NODE_ENV !== 'production') {
|
|
2953
3445
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
2954
3446
|
}
|
|
2955
|
-
const config = typeCheckConfig$
|
|
3447
|
+
const config = typeCheckConfig$3(untrustedConfig);
|
|
2956
3448
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
2957
3449
|
return null;
|
|
2958
3450
|
}
|
|
2959
3451
|
return config;
|
|
2960
3452
|
}
|
|
2961
|
-
function adapterFragment$
|
|
2962
|
-
createResourceParams$
|
|
2963
|
-
return select$
|
|
3453
|
+
function adapterFragment$2(luvio, config) {
|
|
3454
|
+
createResourceParams$3(config);
|
|
3455
|
+
return select$4();
|
|
2964
3456
|
}
|
|
2965
|
-
function onFetchResponseSuccess$
|
|
2966
|
-
const snapshot = ingestSuccess$
|
|
3457
|
+
function onFetchResponseSuccess$2(luvio, config, resourceParams, response) {
|
|
3458
|
+
const snapshot = ingestSuccess$3(luvio, resourceParams, response, {
|
|
2967
3459
|
config,
|
|
2968
|
-
resolve: () => buildNetworkSnapshot$
|
|
3460
|
+
resolve: () => buildNetworkSnapshot$3(luvio, config, snapshotRefreshOptions)
|
|
2969
3461
|
});
|
|
2970
3462
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
2971
3463
|
}
|
|
2972
|
-
function onFetchResponseError$
|
|
2973
|
-
const snapshot = ingestError$
|
|
3464
|
+
function onFetchResponseError$2(luvio, config, resourceParams, response) {
|
|
3465
|
+
const snapshot = ingestError$2(luvio, resourceParams, response, {
|
|
2974
3466
|
config,
|
|
2975
|
-
resolve: () => buildNetworkSnapshot$
|
|
3467
|
+
resolve: () => buildNetworkSnapshot$3(luvio, config, snapshotRefreshOptions)
|
|
2976
3468
|
});
|
|
2977
3469
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
2978
3470
|
}
|
|
2979
|
-
function buildNetworkSnapshot$
|
|
2980
|
-
const resourceParams = createResourceParams$
|
|
2981
|
-
const request = createResourceRequest$
|
|
3471
|
+
function buildNetworkSnapshot$3(luvio, config, options) {
|
|
3472
|
+
const resourceParams = createResourceParams$3(config);
|
|
3473
|
+
const request = createResourceRequest$3(resourceParams);
|
|
2982
3474
|
return luvio.dispatchResourceRequest(request, options)
|
|
2983
3475
|
.then((response) => {
|
|
2984
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
3476
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$2(luvio, config, resourceParams, response), () => {
|
|
2985
3477
|
const cache = new StoreKeyMap();
|
|
2986
|
-
getResponseCacheKeys$
|
|
3478
|
+
getResponseCacheKeys$3(cache, luvio, resourceParams, response.body);
|
|
2987
3479
|
return cache;
|
|
2988
3480
|
});
|
|
2989
3481
|
}, (response) => {
|
|
2990
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
3482
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$2(luvio, config, resourceParams, response));
|
|
2991
3483
|
});
|
|
2992
3484
|
}
|
|
2993
|
-
function buildNetworkSnapshotCachePolicy$
|
|
2994
|
-
return buildNetworkSnapshotCachePolicy$
|
|
3485
|
+
function buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext) {
|
|
3486
|
+
return buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext, buildNetworkSnapshot$3, undefined, false);
|
|
2995
3487
|
}
|
|
2996
|
-
function buildCachedSnapshotCachePolicy$
|
|
3488
|
+
function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
|
|
2997
3489
|
const { luvio, config } = context;
|
|
2998
3490
|
const selector = {
|
|
2999
|
-
recordId: keyBuilder$
|
|
3000
|
-
node: adapterFragment$
|
|
3491
|
+
recordId: keyBuilder$4(luvio, config),
|
|
3492
|
+
node: adapterFragment$2(luvio, config),
|
|
3001
3493
|
variables: {},
|
|
3002
3494
|
};
|
|
3003
3495
|
const cacheSnapshot = storeLookup(selector, {
|
|
3004
3496
|
config,
|
|
3005
|
-
resolve: () => buildNetworkSnapshot$
|
|
3497
|
+
resolve: () => buildNetworkSnapshot$3(luvio, config, snapshotRefreshOptions)
|
|
3006
3498
|
});
|
|
3007
3499
|
return cacheSnapshot;
|
|
3008
3500
|
}
|
|
3009
3501
|
const getDataCleanRoomSpecificationsPaginatedAdapterFactory = (luvio) => function dataCleanRoom__getDataCleanRoomSpecificationsPaginated(untrustedConfig, requestContext) {
|
|
3010
|
-
const config = validateAdapterConfig$
|
|
3502
|
+
const config = validateAdapterConfig$3(untrustedConfig, getDataCleanRoomSpecificationsPaginated_ConfigPropertyNames);
|
|
3011
3503
|
// Invalid or incomplete config
|
|
3012
3504
|
if (config === null) {
|
|
3013
3505
|
return null;
|
|
3014
3506
|
}
|
|
3015
3507
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
3016
|
-
buildCachedSnapshotCachePolicy$
|
|
3508
|
+
buildCachedSnapshotCachePolicy$2, buildNetworkSnapshotCachePolicy$2);
|
|
3017
3509
|
};
|
|
3018
3510
|
|
|
3019
3511
|
const VERSION = "779ba86cca8510319a6e95a736d88189";
|
|
@@ -3075,7 +3567,7 @@ function validate(obj, path = 'DataCleanRoomTemplateCollectionRepresentation') {
|
|
|
3075
3567
|
for (let i = 0; i < obj_templates.length; i++) {
|
|
3076
3568
|
const obj_templates_item = obj_templates[i];
|
|
3077
3569
|
const path_templates_item = path_templates + '[' + i + ']';
|
|
3078
|
-
const referencepath_templates_itemValidationError = validate$
|
|
3570
|
+
const referencepath_templates_itemValidationError = validate$p(obj_templates_item, path_templates_item);
|
|
3079
3571
|
if (referencepath_templates_itemValidationError !== null) {
|
|
3080
3572
|
let message = 'Object doesn\'t match DataCleanRoomTemplateRepresentation (at "' + path_templates_item + '")\n';
|
|
3081
3573
|
message += referencepath_templates_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3096,7 +3588,7 @@ const RepresentationType = 'DataCleanRoomTemplateCollectionRepresentation';
|
|
|
3096
3588
|
function normalize(input, existing, path, luvio, store, timestamp) {
|
|
3097
3589
|
return input;
|
|
3098
3590
|
}
|
|
3099
|
-
const select$
|
|
3591
|
+
const select$3 = function DataCleanRoomTemplateCollectionRepresentationSelect() {
|
|
3100
3592
|
return {
|
|
3101
3593
|
kind: 'Fragment',
|
|
3102
3594
|
version: VERSION,
|
|
@@ -3132,11 +3624,146 @@ function getTypeCacheKeys(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
3132
3624
|
});
|
|
3133
3625
|
}
|
|
3134
3626
|
|
|
3135
|
-
function select$
|
|
3627
|
+
function select$2(luvio, params) {
|
|
3628
|
+
return select$3();
|
|
3629
|
+
}
|
|
3630
|
+
function keyBuilder$3(luvio, params) {
|
|
3631
|
+
return keyPrefix + '::DataCleanRoomTemplateCollectionRepresentation:(' + 'limit:' + params.queryParams.limit + ',' + 'offset:' + params.queryParams.offset + ',' + 'orderBy:' + params.queryParams.orderBy + ',' + 'filters:' + params.queryParams.filters + ')';
|
|
3632
|
+
}
|
|
3633
|
+
function getResponseCacheKeys$2(storeKeyMap, luvio, resourceParams, response) {
|
|
3634
|
+
getTypeCacheKeys(storeKeyMap, luvio, response, () => keyBuilder$3(luvio, resourceParams));
|
|
3635
|
+
}
|
|
3636
|
+
function ingestSuccess$2(luvio, resourceParams, response, snapshotRefresh) {
|
|
3637
|
+
const { body } = response;
|
|
3638
|
+
const key = keyBuilder$3(luvio, resourceParams);
|
|
3639
|
+
luvio.storeIngest(key, ingest, body);
|
|
3640
|
+
const snapshot = luvio.storeLookup({
|
|
3641
|
+
recordId: key,
|
|
3642
|
+
node: select$2(),
|
|
3643
|
+
variables: {},
|
|
3644
|
+
}, snapshotRefresh);
|
|
3645
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
3646
|
+
if (snapshot.state !== 'Fulfilled') {
|
|
3647
|
+
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
3648
|
+
}
|
|
3649
|
+
}
|
|
3650
|
+
deepFreeze(snapshot.data);
|
|
3651
|
+
return snapshot;
|
|
3652
|
+
}
|
|
3653
|
+
function ingestError$1(luvio, params, error, snapshotRefresh) {
|
|
3654
|
+
const key = keyBuilder$3(luvio, params);
|
|
3655
|
+
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
3656
|
+
luvio.storeIngestError(key, errorSnapshot);
|
|
3657
|
+
return errorSnapshot;
|
|
3658
|
+
}
|
|
3659
|
+
function createResourceRequest$2(config) {
|
|
3660
|
+
const headers = {};
|
|
3661
|
+
return {
|
|
3662
|
+
baseUri: '/services/data/v65.0',
|
|
3663
|
+
basePath: '/ssot/data-clean-room/templates',
|
|
3664
|
+
method: 'get',
|
|
3665
|
+
body: null,
|
|
3666
|
+
urlParams: {},
|
|
3667
|
+
queryParams: config.queryParams,
|
|
3668
|
+
headers,
|
|
3669
|
+
priority: 'normal',
|
|
3670
|
+
};
|
|
3671
|
+
}
|
|
3672
|
+
|
|
3673
|
+
const adapterName$2 = 'getDataCleanRoomTemplatePaginated';
|
|
3674
|
+
const getDataCleanRoomTemplatePaginated_ConfigPropertyMetadata = [
|
|
3675
|
+
generateParamConfigMetadata('limit', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
3676
|
+
generateParamConfigMetadata('offset', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
3677
|
+
generateParamConfigMetadata('orderBy', false, 1 /* QueryParameter */, 0 /* String */),
|
|
3678
|
+
generateParamConfigMetadata('filters', false, 1 /* QueryParameter */, 0 /* String */),
|
|
3679
|
+
];
|
|
3680
|
+
const getDataCleanRoomTemplatePaginated_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, getDataCleanRoomTemplatePaginated_ConfigPropertyMetadata);
|
|
3681
|
+
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$c(getDataCleanRoomTemplatePaginated_ConfigPropertyMetadata);
|
|
3682
|
+
function keyBuilder$2(luvio, config) {
|
|
3683
|
+
const resourceParams = createResourceParams$2(config);
|
|
3684
|
+
return keyBuilder$3(luvio, resourceParams);
|
|
3685
|
+
}
|
|
3686
|
+
function typeCheckConfig$2(untrustedConfig) {
|
|
3687
|
+
const config = {};
|
|
3688
|
+
typeCheckConfig$c(untrustedConfig, config, getDataCleanRoomTemplatePaginated_ConfigPropertyMetadata);
|
|
3689
|
+
return config;
|
|
3690
|
+
}
|
|
3691
|
+
function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
|
|
3692
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
3693
|
+
return null;
|
|
3694
|
+
}
|
|
3695
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
3696
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
3697
|
+
}
|
|
3698
|
+
const config = typeCheckConfig$2(untrustedConfig);
|
|
3699
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
3700
|
+
return null;
|
|
3701
|
+
}
|
|
3702
|
+
return config;
|
|
3703
|
+
}
|
|
3704
|
+
function adapterFragment$1(luvio, config) {
|
|
3705
|
+
createResourceParams$2(config);
|
|
3136
3706
|
return select$2();
|
|
3137
3707
|
}
|
|
3708
|
+
function onFetchResponseSuccess$1(luvio, config, resourceParams, response) {
|
|
3709
|
+
const snapshot = ingestSuccess$2(luvio, resourceParams, response, {
|
|
3710
|
+
config,
|
|
3711
|
+
resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
|
|
3712
|
+
});
|
|
3713
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
3714
|
+
}
|
|
3715
|
+
function onFetchResponseError$1(luvio, config, resourceParams, response) {
|
|
3716
|
+
const snapshot = ingestError$1(luvio, resourceParams, response, {
|
|
3717
|
+
config,
|
|
3718
|
+
resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
|
|
3719
|
+
});
|
|
3720
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
3721
|
+
}
|
|
3722
|
+
function buildNetworkSnapshot$2(luvio, config, options) {
|
|
3723
|
+
const resourceParams = createResourceParams$2(config);
|
|
3724
|
+
const request = createResourceRequest$2(resourceParams);
|
|
3725
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
3726
|
+
.then((response) => {
|
|
3727
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$1(luvio, config, resourceParams, response), () => {
|
|
3728
|
+
const cache = new StoreKeyMap();
|
|
3729
|
+
getResponseCacheKeys$2(cache, luvio, resourceParams, response.body);
|
|
3730
|
+
return cache;
|
|
3731
|
+
});
|
|
3732
|
+
}, (response) => {
|
|
3733
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$1(luvio, config, resourceParams, response));
|
|
3734
|
+
});
|
|
3735
|
+
}
|
|
3736
|
+
function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
|
|
3737
|
+
return buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext, buildNetworkSnapshot$2, undefined, false);
|
|
3738
|
+
}
|
|
3739
|
+
function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
|
|
3740
|
+
const { luvio, config } = context;
|
|
3741
|
+
const selector = {
|
|
3742
|
+
recordId: keyBuilder$2(luvio, config),
|
|
3743
|
+
node: adapterFragment$1(luvio, config),
|
|
3744
|
+
variables: {},
|
|
3745
|
+
};
|
|
3746
|
+
const cacheSnapshot = storeLookup(selector, {
|
|
3747
|
+
config,
|
|
3748
|
+
resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
|
|
3749
|
+
});
|
|
3750
|
+
return cacheSnapshot;
|
|
3751
|
+
}
|
|
3752
|
+
const getDataCleanRoomTemplatePaginatedAdapterFactory = (luvio) => function dataCleanRoom__getDataCleanRoomTemplatePaginated(untrustedConfig, requestContext) {
|
|
3753
|
+
const config = validateAdapterConfig$2(untrustedConfig, getDataCleanRoomTemplatePaginated_ConfigPropertyNames);
|
|
3754
|
+
// Invalid or incomplete config
|
|
3755
|
+
if (config === null) {
|
|
3756
|
+
return null;
|
|
3757
|
+
}
|
|
3758
|
+
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
3759
|
+
buildCachedSnapshotCachePolicy$1, buildNetworkSnapshotCachePolicy$1);
|
|
3760
|
+
};
|
|
3761
|
+
|
|
3762
|
+
function select$1(luvio, params) {
|
|
3763
|
+
return select$3();
|
|
3764
|
+
}
|
|
3138
3765
|
function keyBuilder$1(luvio, params) {
|
|
3139
|
-
return keyPrefix + '::DataCleanRoomTemplateCollectionRepresentation:(' + 'limit:' + params.queryParams.limit + ',' + 'offset:' + params.queryParams.offset + ',' + 'orderBy:' + params.queryParams.orderBy + ')';
|
|
3766
|
+
return keyPrefix + '::DataCleanRoomTemplateCollectionRepresentation:(' + 'filters:' + params.queryParams.filters + ',' + 'limit:' + params.queryParams.limit + ',' + 'offset:' + params.queryParams.offset + ',' + 'orderBy:' + params.queryParams.orderBy + ',' + 'providerIdOrName:' + params.urlParams.providerIdOrName + ')';
|
|
3140
3767
|
}
|
|
3141
3768
|
function getResponseCacheKeys$1(storeKeyMap, luvio, resourceParams, response) {
|
|
3142
3769
|
getTypeCacheKeys(storeKeyMap, luvio, response, () => keyBuilder$1(luvio, resourceParams));
|
|
@@ -3168,31 +3795,33 @@ function createResourceRequest$1(config) {
|
|
|
3168
3795
|
const headers = {};
|
|
3169
3796
|
return {
|
|
3170
3797
|
baseUri: '/services/data/v65.0',
|
|
3171
|
-
basePath: '/ssot/data-clean-room/templates',
|
|
3798
|
+
basePath: '/ssot/data-clean-room/providers/' + config.urlParams.providerIdOrName + '/templates',
|
|
3172
3799
|
method: 'get',
|
|
3173
3800
|
body: null,
|
|
3174
|
-
urlParams:
|
|
3801
|
+
urlParams: config.urlParams,
|
|
3175
3802
|
queryParams: config.queryParams,
|
|
3176
3803
|
headers,
|
|
3177
3804
|
priority: 'normal',
|
|
3178
3805
|
};
|
|
3179
3806
|
}
|
|
3180
3807
|
|
|
3181
|
-
const adapterName$1 = '
|
|
3182
|
-
const
|
|
3808
|
+
const adapterName$1 = 'getDataCleanRoomTemplatesByProviderIdPaginated';
|
|
3809
|
+
const getDataCleanRoomTemplatesByProviderIdPaginated_ConfigPropertyMetadata = [
|
|
3810
|
+
generateParamConfigMetadata('providerIdOrName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
3811
|
+
generateParamConfigMetadata('filters', false, 1 /* QueryParameter */, 0 /* String */),
|
|
3183
3812
|
generateParamConfigMetadata('limit', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
3184
3813
|
generateParamConfigMetadata('offset', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
3185
3814
|
generateParamConfigMetadata('orderBy', false, 1 /* QueryParameter */, 0 /* String */),
|
|
3186
3815
|
];
|
|
3187
|
-
const
|
|
3188
|
-
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$
|
|
3816
|
+
const getDataCleanRoomTemplatesByProviderIdPaginated_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, getDataCleanRoomTemplatesByProviderIdPaginated_ConfigPropertyMetadata);
|
|
3817
|
+
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$c(getDataCleanRoomTemplatesByProviderIdPaginated_ConfigPropertyMetadata);
|
|
3189
3818
|
function keyBuilder(luvio, config) {
|
|
3190
3819
|
const resourceParams = createResourceParams$1(config);
|
|
3191
3820
|
return keyBuilder$1(luvio, resourceParams);
|
|
3192
3821
|
}
|
|
3193
3822
|
function typeCheckConfig$1(untrustedConfig) {
|
|
3194
3823
|
const config = {};
|
|
3195
|
-
typeCheckConfig$
|
|
3824
|
+
typeCheckConfig$c(untrustedConfig, config, getDataCleanRoomTemplatesByProviderIdPaginated_ConfigPropertyMetadata);
|
|
3196
3825
|
return config;
|
|
3197
3826
|
}
|
|
3198
3827
|
function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
|
|
@@ -3241,7 +3870,7 @@ function buildNetworkSnapshot$1(luvio, config, options) {
|
|
|
3241
3870
|
});
|
|
3242
3871
|
}
|
|
3243
3872
|
function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
|
|
3244
|
-
return buildNetworkSnapshotCachePolicy$
|
|
3873
|
+
return buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext, buildNetworkSnapshot$1, undefined, false);
|
|
3245
3874
|
}
|
|
3246
3875
|
function buildCachedSnapshotCachePolicy(context, storeLookup) {
|
|
3247
3876
|
const { luvio, config } = context;
|
|
@@ -3256,8 +3885,8 @@ function buildCachedSnapshotCachePolicy(context, storeLookup) {
|
|
|
3256
3885
|
});
|
|
3257
3886
|
return cacheSnapshot;
|
|
3258
3887
|
}
|
|
3259
|
-
const
|
|
3260
|
-
const config = validateAdapterConfig$1(untrustedConfig,
|
|
3888
|
+
const getDataCleanRoomTemplatesByProviderIdPaginatedAdapterFactory = (luvio) => function dataCleanRoom__getDataCleanRoomTemplatesByProviderIdPaginated(untrustedConfig, requestContext) {
|
|
3889
|
+
const config = validateAdapterConfig$1(untrustedConfig, getDataCleanRoomTemplatesByProviderIdPaginated_ConfigPropertyNames);
|
|
3261
3890
|
// Invalid or incomplete config
|
|
3262
3891
|
if (config === null) {
|
|
3263
3892
|
return null;
|
|
@@ -3267,7 +3896,7 @@ const getDataCleanRoomTemplatePaginatedAdapterFactory = (luvio) => function data
|
|
|
3267
3896
|
};
|
|
3268
3897
|
|
|
3269
3898
|
function select(luvio, params) {
|
|
3270
|
-
return select$
|
|
3899
|
+
return select$l();
|
|
3271
3900
|
}
|
|
3272
3901
|
function getResponseCacheKeys(storeKeyMap, luvio, resourceParams, response) {
|
|
3273
3902
|
getTypeCacheKeys$9(storeKeyMap, luvio, response);
|
|
@@ -3294,7 +3923,7 @@ function createResourceRequest(config) {
|
|
|
3294
3923
|
return {
|
|
3295
3924
|
baseUri: '/services/data/v65.0',
|
|
3296
3925
|
basePath: '/ssot/data-clean-room/collaborations/' + config.urlParams.collaborationIdOrApiName + '/actions/reject-invitation',
|
|
3297
|
-
method: '
|
|
3926
|
+
method: 'post',
|
|
3298
3927
|
body: config.body,
|
|
3299
3928
|
urlParams: config.urlParams,
|
|
3300
3929
|
queryParams: {},
|
|
@@ -3309,10 +3938,10 @@ const rejectDataCleanRoomInvitation_ConfigPropertyMetadata = [
|
|
|
3309
3938
|
generateParamConfigMetadata('invitationId', true, 2 /* Body */, 0 /* String */),
|
|
3310
3939
|
];
|
|
3311
3940
|
const rejectDataCleanRoomInvitation_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, rejectDataCleanRoomInvitation_ConfigPropertyMetadata);
|
|
3312
|
-
const createResourceParams = /*#__PURE__*/ createResourceParams$
|
|
3941
|
+
const createResourceParams = /*#__PURE__*/ createResourceParams$c(rejectDataCleanRoomInvitation_ConfigPropertyMetadata);
|
|
3313
3942
|
function typeCheckConfig(untrustedConfig) {
|
|
3314
3943
|
const config = {};
|
|
3315
|
-
typeCheckConfig$
|
|
3944
|
+
typeCheckConfig$c(untrustedConfig, config, rejectDataCleanRoomInvitation_ConfigPropertyMetadata);
|
|
3316
3945
|
return config;
|
|
3317
3946
|
}
|
|
3318
3947
|
function validateAdapterConfig(untrustedConfig, configPropertyNames) {
|
|
@@ -3367,6 +3996,7 @@ let getAllDataCleanRoomsPaginated;
|
|
|
3367
3996
|
let getDataCleanRoomProvidersPaginated;
|
|
3368
3997
|
let getDataCleanRoomSpecificationsPaginated;
|
|
3369
3998
|
let getDataCleanRoomTemplatePaginated;
|
|
3999
|
+
let getDataCleanRoomTemplatesByProviderIdPaginated;
|
|
3370
4000
|
let rejectDataCleanRoomInvitation;
|
|
3371
4001
|
// Imperative GET Adapters
|
|
3372
4002
|
let getAllDataCleanRoomQueryPaginated_imperative;
|
|
@@ -3374,6 +4004,7 @@ let getAllDataCleanRoomsPaginated_imperative;
|
|
|
3374
4004
|
let getDataCleanRoomProvidersPaginated_imperative;
|
|
3375
4005
|
let getDataCleanRoomSpecificationsPaginated_imperative;
|
|
3376
4006
|
let getDataCleanRoomTemplatePaginated_imperative;
|
|
4007
|
+
let getDataCleanRoomTemplatesByProviderIdPaginated_imperative;
|
|
3377
4008
|
const getAllDataCleanRoomQueryPaginatedMetadata = {
|
|
3378
4009
|
apiFamily: 'dataclean-room',
|
|
3379
4010
|
name: 'getAllDataCleanRoomQueryPaginated',
|
|
@@ -3394,6 +4025,10 @@ const getDataCleanRoomTemplatePaginatedMetadata = {
|
|
|
3394
4025
|
apiFamily: 'dataclean-room',
|
|
3395
4026
|
name: 'getDataCleanRoomTemplatePaginated',
|
|
3396
4027
|
};
|
|
4028
|
+
const getDataCleanRoomTemplatesByProviderIdPaginatedMetadata = {
|
|
4029
|
+
apiFamily: 'dataclean-room',
|
|
4030
|
+
name: 'getDataCleanRoomTemplatesByProviderIdPaginated',
|
|
4031
|
+
};
|
|
3397
4032
|
// Notify Update Available
|
|
3398
4033
|
function bindExportsTo(luvio) {
|
|
3399
4034
|
// LDS Adapters
|
|
@@ -3402,6 +4037,7 @@ function bindExportsTo(luvio) {
|
|
|
3402
4037
|
const getDataCleanRoomProvidersPaginated_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getDataCleanRoomProvidersPaginated', getDataCleanRoomProvidersPaginatedAdapterFactory), getDataCleanRoomProvidersPaginatedMetadata);
|
|
3403
4038
|
const getDataCleanRoomSpecificationsPaginated_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getDataCleanRoomSpecificationsPaginated', getDataCleanRoomSpecificationsPaginatedAdapterFactory), getDataCleanRoomSpecificationsPaginatedMetadata);
|
|
3404
4039
|
const getDataCleanRoomTemplatePaginated_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getDataCleanRoomTemplatePaginated', getDataCleanRoomTemplatePaginatedAdapterFactory), getDataCleanRoomTemplatePaginatedMetadata);
|
|
4040
|
+
const getDataCleanRoomTemplatesByProviderIdPaginated_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getDataCleanRoomTemplatesByProviderIdPaginated', getDataCleanRoomTemplatesByProviderIdPaginatedAdapterFactory), getDataCleanRoomTemplatesByProviderIdPaginatedMetadata);
|
|
3405
4041
|
function unwrapSnapshotData(factory) {
|
|
3406
4042
|
const adapter = factory(luvio);
|
|
3407
4043
|
return (config) => adapter(config).then((snapshot) => snapshot.data);
|
|
@@ -3417,6 +4053,7 @@ function bindExportsTo(luvio) {
|
|
|
3417
4053
|
getDataCleanRoomProvidersPaginated: createWireAdapterConstructor(luvio, getDataCleanRoomProvidersPaginated_ldsAdapter, getDataCleanRoomProvidersPaginatedMetadata),
|
|
3418
4054
|
getDataCleanRoomSpecificationsPaginated: createWireAdapterConstructor(luvio, getDataCleanRoomSpecificationsPaginated_ldsAdapter, getDataCleanRoomSpecificationsPaginatedMetadata),
|
|
3419
4055
|
getDataCleanRoomTemplatePaginated: createWireAdapterConstructor(luvio, getDataCleanRoomTemplatePaginated_ldsAdapter, getDataCleanRoomTemplatePaginatedMetadata),
|
|
4056
|
+
getDataCleanRoomTemplatesByProviderIdPaginated: createWireAdapterConstructor(luvio, getDataCleanRoomTemplatesByProviderIdPaginated_ldsAdapter, getDataCleanRoomTemplatesByProviderIdPaginatedMetadata),
|
|
3420
4057
|
rejectDataCleanRoomInvitation: unwrapSnapshotData(rejectDataCleanRoomInvitationAdapterFactory),
|
|
3421
4058
|
// Imperative GET Adapters
|
|
3422
4059
|
getAllDataCleanRoomQueryPaginated_imperative: createImperativeAdapter(luvio, getAllDataCleanRoomQueryPaginated_ldsAdapter, getAllDataCleanRoomQueryPaginatedMetadata),
|
|
@@ -3424,6 +4061,7 @@ function bindExportsTo(luvio) {
|
|
|
3424
4061
|
getDataCleanRoomProvidersPaginated_imperative: createImperativeAdapter(luvio, getDataCleanRoomProvidersPaginated_ldsAdapter, getDataCleanRoomProvidersPaginatedMetadata),
|
|
3425
4062
|
getDataCleanRoomSpecificationsPaginated_imperative: createImperativeAdapter(luvio, getDataCleanRoomSpecificationsPaginated_ldsAdapter, getDataCleanRoomSpecificationsPaginatedMetadata),
|
|
3426
4063
|
getDataCleanRoomTemplatePaginated_imperative: createImperativeAdapter(luvio, getDataCleanRoomTemplatePaginated_ldsAdapter, getDataCleanRoomTemplatePaginatedMetadata),
|
|
4064
|
+
getDataCleanRoomTemplatesByProviderIdPaginated_imperative: createImperativeAdapter(luvio, getDataCleanRoomTemplatesByProviderIdPaginated_ldsAdapter, getDataCleanRoomTemplatesByProviderIdPaginatedMetadata),
|
|
3427
4065
|
// Notify Update Availables
|
|
3428
4066
|
};
|
|
3429
4067
|
}
|
|
@@ -3439,14 +4077,16 @@ withDefaultLuvio((luvio) => {
|
|
|
3439
4077
|
getDataCleanRoomProvidersPaginated,
|
|
3440
4078
|
getDataCleanRoomSpecificationsPaginated,
|
|
3441
4079
|
getDataCleanRoomTemplatePaginated,
|
|
4080
|
+
getDataCleanRoomTemplatesByProviderIdPaginated,
|
|
3442
4081
|
rejectDataCleanRoomInvitation,
|
|
3443
4082
|
getAllDataCleanRoomQueryPaginated_imperative,
|
|
3444
4083
|
getAllDataCleanRoomsPaginated_imperative,
|
|
3445
4084
|
getDataCleanRoomProvidersPaginated_imperative,
|
|
3446
4085
|
getDataCleanRoomSpecificationsPaginated_imperative,
|
|
3447
4086
|
getDataCleanRoomTemplatePaginated_imperative,
|
|
4087
|
+
getDataCleanRoomTemplatesByProviderIdPaginated_imperative,
|
|
3448
4088
|
} = bindExportsTo(luvio));
|
|
3449
4089
|
});
|
|
3450
4090
|
|
|
3451
|
-
export { acceptDataCleanRoomInvitation, createDataCleanRoomCollaboration, createDataCleanRoomSpecification, createProvider, executeDataCleanRoomQuery, getAllDataCleanRoomQueryPaginated, getAllDataCleanRoomQueryPaginated_imperative, getAllDataCleanRoomsPaginated, getAllDataCleanRoomsPaginated_imperative, getDataCleanRoomProvidersPaginated, getDataCleanRoomProvidersPaginated_imperative, getDataCleanRoomSpecificationsPaginated, getDataCleanRoomSpecificationsPaginated_imperative, getDataCleanRoomTemplatePaginated, getDataCleanRoomTemplatePaginated_imperative, rejectDataCleanRoomInvitation };
|
|
3452
|
-
// version: 1.380.0-
|
|
4091
|
+
export { acceptDataCleanRoomInvitation, createDataCleanRoomCollaboration, createDataCleanRoomSpecification, createProvider, executeDataCleanRoomQuery, getAllDataCleanRoomQueryPaginated, getAllDataCleanRoomQueryPaginated_imperative, getAllDataCleanRoomsPaginated, getAllDataCleanRoomsPaginated_imperative, getDataCleanRoomProvidersPaginated, getDataCleanRoomProvidersPaginated_imperative, getDataCleanRoomSpecificationsPaginated, getDataCleanRoomSpecificationsPaginated_imperative, getDataCleanRoomTemplatePaginated, getDataCleanRoomTemplatePaginated_imperative, getDataCleanRoomTemplatesByProviderIdPaginated, getDataCleanRoomTemplatesByProviderIdPaginated_imperative, rejectDataCleanRoomInvitation };
|
|
4092
|
+
// version: 1.380.0-dev22-411853e059
|