@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
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* For full license text, see the LICENSE.txt file
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
import { serializeStructuredKey, ingestShape, deepFreeze, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$
|
|
7
|
+
import { serializeStructuredKey, ingestShape, deepFreeze, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$6, typeCheckConfig as typeCheckConfig$c, StoreKeyMap, createResourceParams as createResourceParams$c } from '@luvio/engine';
|
|
8
8
|
|
|
9
9
|
const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
|
|
10
10
|
const { keys: ObjectKeys, create: ObjectCreate } = Object;
|
|
@@ -92,7 +92,7 @@ function createLink(ref) {
|
|
|
92
92
|
};
|
|
93
93
|
}
|
|
94
94
|
|
|
95
|
-
function validate$
|
|
95
|
+
function validate$r(obj, path = 'CdpUserRepresentation') {
|
|
96
96
|
const v_error = (() => {
|
|
97
97
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
98
98
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -122,8 +122,31 @@ function validate$g(obj, path = 'CdpUserRepresentation') {
|
|
|
122
122
|
return v_error === undefined ? null : v_error;
|
|
123
123
|
}
|
|
124
124
|
|
|
125
|
-
|
|
126
|
-
|
|
125
|
+
function validate$q(obj, path = 'DataCleanRoomUseCaseTypeRepresentation') {
|
|
126
|
+
const v_error = (() => {
|
|
127
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
128
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
129
|
+
}
|
|
130
|
+
if (obj.useCaseTypes !== undefined) {
|
|
131
|
+
const obj_useCaseTypes = obj.useCaseTypes;
|
|
132
|
+
const path_useCaseTypes = path + '.useCaseTypes';
|
|
133
|
+
if (!ArrayIsArray(obj_useCaseTypes)) {
|
|
134
|
+
return new TypeError('Expected "array" but received "' + typeof obj_useCaseTypes + '" (at "' + path_useCaseTypes + '")');
|
|
135
|
+
}
|
|
136
|
+
for (let i = 0; i < obj_useCaseTypes.length; i++) {
|
|
137
|
+
const obj_useCaseTypes_item = obj_useCaseTypes[i];
|
|
138
|
+
const path_useCaseTypes_item = path_useCaseTypes + '[' + i + ']';
|
|
139
|
+
if (typeof obj_useCaseTypes_item !== 'string') {
|
|
140
|
+
return new TypeError('Expected "string" but received "' + typeof obj_useCaseTypes_item + '" (at "' + path_useCaseTypes_item + '")');
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
})();
|
|
145
|
+
return v_error === undefined ? null : v_error;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
const VERSION$9 = "a27689b905a74d6a3a8638a2f09d5b3c";
|
|
149
|
+
function validate$p(obj, path = 'DataCleanRoomProviderRepresentation') {
|
|
127
150
|
const v_error = (() => {
|
|
128
151
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
129
152
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -131,7 +154,7 @@ function validate$f(obj, path = 'DataCleanRoomProviderRepresentation') {
|
|
|
131
154
|
if (obj.createdBy !== undefined) {
|
|
132
155
|
const obj_createdBy = obj.createdBy;
|
|
133
156
|
const path_createdBy = path + '.createdBy';
|
|
134
|
-
const referencepath_createdByValidationError = validate$
|
|
157
|
+
const referencepath_createdByValidationError = validate$r(obj_createdBy, path_createdBy);
|
|
135
158
|
if (referencepath_createdByValidationError !== null) {
|
|
136
159
|
let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_createdBy + '")\n';
|
|
137
160
|
message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -145,20 +168,33 @@ function validate$f(obj, path = 'DataCleanRoomProviderRepresentation') {
|
|
|
145
168
|
return new TypeError('Expected "string" but received "' + typeof obj_createdDate + '" (at "' + path_createdDate + '")');
|
|
146
169
|
}
|
|
147
170
|
}
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
171
|
+
if (obj.creationType !== undefined) {
|
|
172
|
+
const obj_creationType = obj.creationType;
|
|
173
|
+
const path_creationType = path + '.creationType';
|
|
174
|
+
if (typeof obj_creationType !== 'string') {
|
|
175
|
+
return new TypeError('Expected "string" but received "' + typeof obj_creationType + '" (at "' + path_creationType + '")');
|
|
176
|
+
}
|
|
152
177
|
}
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
178
|
+
if (obj.dataCloudOrgId !== undefined) {
|
|
179
|
+
const obj_dataCloudOrgId = obj.dataCloudOrgId;
|
|
180
|
+
const path_dataCloudOrgId = path + '.dataCloudOrgId';
|
|
181
|
+
if (typeof obj_dataCloudOrgId !== 'string') {
|
|
182
|
+
return new TypeError('Expected "string" but received "' + typeof obj_dataCloudOrgId + '" (at "' + path_dataCloudOrgId + '")');
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
if (obj.description !== undefined) {
|
|
186
|
+
const obj_description = obj.description;
|
|
187
|
+
const path_description = path + '.description';
|
|
188
|
+
if (typeof obj_description !== 'string') {
|
|
189
|
+
return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
|
|
190
|
+
}
|
|
157
191
|
}
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
192
|
+
if (obj.domainUrl !== undefined) {
|
|
193
|
+
const obj_domainUrl = obj.domainUrl;
|
|
194
|
+
const path_domainUrl = path + '.domainUrl';
|
|
195
|
+
if (typeof obj_domainUrl !== 'string') {
|
|
196
|
+
return new TypeError('Expected "string" but received "' + typeof obj_domainUrl + '" (at "' + path_domainUrl + '")');
|
|
197
|
+
}
|
|
162
198
|
}
|
|
163
199
|
const obj_id = obj.id;
|
|
164
200
|
const path_id = path + '.id';
|
|
@@ -175,7 +211,7 @@ function validate$f(obj, path = 'DataCleanRoomProviderRepresentation') {
|
|
|
175
211
|
if (obj.lastModifiedBy !== undefined) {
|
|
176
212
|
const obj_lastModifiedBy = obj.lastModifiedBy;
|
|
177
213
|
const path_lastModifiedBy = path + '.lastModifiedBy';
|
|
178
|
-
const referencepath_lastModifiedByValidationError = validate$
|
|
214
|
+
const referencepath_lastModifiedByValidationError = validate$r(obj_lastModifiedBy, path_lastModifiedBy);
|
|
179
215
|
if (referencepath_lastModifiedByValidationError !== null) {
|
|
180
216
|
let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_lastModifiedBy + '")\n';
|
|
181
217
|
message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -210,21 +246,46 @@ function validate$f(obj, path = 'DataCleanRoomProviderRepresentation') {
|
|
|
210
246
|
return new TypeError('Expected "string" but received "' + typeof obj_namespace + '" (at "' + path_namespace + '")');
|
|
211
247
|
}
|
|
212
248
|
}
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
249
|
+
if (obj.offCoreTenantId !== undefined) {
|
|
250
|
+
const obj_offCoreTenantId = obj.offCoreTenantId;
|
|
251
|
+
const path_offCoreTenantId = path + '.offCoreTenantId';
|
|
252
|
+
if (typeof obj_offCoreTenantId !== 'string') {
|
|
253
|
+
return new TypeError('Expected "string" but received "' + typeof obj_offCoreTenantId + '" (at "' + path_offCoreTenantId + '")');
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
if (obj.providerName !== undefined) {
|
|
257
|
+
const obj_providerName = obj.providerName;
|
|
258
|
+
const path_providerName = path + '.providerName';
|
|
259
|
+
if (typeof obj_providerName !== 'string') {
|
|
260
|
+
return new TypeError('Expected "string" but received "' + typeof obj_providerName + '" (at "' + path_providerName + '")');
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
if (obj.source !== undefined) {
|
|
264
|
+
const obj_source = obj.source;
|
|
265
|
+
const path_source = path + '.source';
|
|
266
|
+
if (typeof obj_source !== 'string') {
|
|
267
|
+
return new TypeError('Expected "string" but received "' + typeof obj_source + '" (at "' + path_source + '")');
|
|
268
|
+
}
|
|
217
269
|
}
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
270
|
+
if (obj.sourceConfiguration !== undefined) {
|
|
271
|
+
const obj_sourceConfiguration = obj.sourceConfiguration;
|
|
272
|
+
const path_sourceConfiguration = path + '.sourceConfiguration';
|
|
273
|
+
if (obj_sourceConfiguration === undefined) {
|
|
274
|
+
return new TypeError('Expected "defined" but received "' + typeof obj_sourceConfiguration + '" (at "' + path_sourceConfiguration + '")');
|
|
275
|
+
}
|
|
222
276
|
}
|
|
223
|
-
|
|
224
|
-
const
|
|
225
|
-
const
|
|
226
|
-
if (
|
|
227
|
-
return new TypeError('Expected "
|
|
277
|
+
if (obj.templateNames !== undefined) {
|
|
278
|
+
const obj_templateNames = obj.templateNames;
|
|
279
|
+
const path_templateNames = path + '.templateNames';
|
|
280
|
+
if (!ArrayIsArray(obj_templateNames)) {
|
|
281
|
+
return new TypeError('Expected "array" but received "' + typeof obj_templateNames + '" (at "' + path_templateNames + '")');
|
|
282
|
+
}
|
|
283
|
+
for (let i = 0; i < obj_templateNames.length; i++) {
|
|
284
|
+
const obj_templateNames_item = obj_templateNames[i];
|
|
285
|
+
const path_templateNames_item = path_templateNames + '[' + i + ']';
|
|
286
|
+
if (typeof obj_templateNames_item !== 'string') {
|
|
287
|
+
return new TypeError('Expected "string" but received "' + typeof obj_templateNames_item + '" (at "' + path_templateNames_item + '")');
|
|
288
|
+
}
|
|
228
289
|
}
|
|
229
290
|
}
|
|
230
291
|
if (obj.url !== undefined) {
|
|
@@ -234,23 +295,33 @@ function validate$f(obj, path = 'DataCleanRoomProviderRepresentation') {
|
|
|
234
295
|
return new TypeError('Expected "string" but received "' + typeof obj_url + '" (at "' + path_url + '")');
|
|
235
296
|
}
|
|
236
297
|
}
|
|
298
|
+
if (obj.useCaseTypeConfig !== undefined) {
|
|
299
|
+
const obj_useCaseTypeConfig = obj.useCaseTypeConfig;
|
|
300
|
+
const path_useCaseTypeConfig = path + '.useCaseTypeConfig';
|
|
301
|
+
const referencepath_useCaseTypeConfigValidationError = validate$q(obj_useCaseTypeConfig, path_useCaseTypeConfig);
|
|
302
|
+
if (referencepath_useCaseTypeConfigValidationError !== null) {
|
|
303
|
+
let message = 'Object doesn\'t match DataCleanRoomUseCaseTypeRepresentation (at "' + path_useCaseTypeConfig + '")\n';
|
|
304
|
+
message += referencepath_useCaseTypeConfigValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
305
|
+
return new TypeError(message);
|
|
306
|
+
}
|
|
307
|
+
}
|
|
237
308
|
})();
|
|
238
309
|
return v_error === undefined ? null : v_error;
|
|
239
310
|
}
|
|
240
311
|
const RepresentationType$9 = 'DataCleanRoomProviderRepresentation';
|
|
241
|
-
function keyBuilder$
|
|
312
|
+
function keyBuilder$g(luvio, config) {
|
|
242
313
|
return keyPrefix + '::' + RepresentationType$9 + ':' + config.id;
|
|
243
314
|
}
|
|
244
315
|
function keyBuilderFromType$4(luvio, object) {
|
|
245
316
|
const keyParams = {
|
|
246
317
|
id: object.id
|
|
247
318
|
};
|
|
248
|
-
return keyBuilder$
|
|
319
|
+
return keyBuilder$g(luvio, keyParams);
|
|
249
320
|
}
|
|
250
321
|
function normalize$9(input, existing, path, luvio, store, timestamp) {
|
|
251
322
|
return input;
|
|
252
323
|
}
|
|
253
|
-
const select$
|
|
324
|
+
const select$l = function DataCleanRoomProviderRepresentationSelect() {
|
|
254
325
|
return {
|
|
255
326
|
kind: 'Fragment',
|
|
256
327
|
version: VERSION$9,
|
|
@@ -266,7 +337,7 @@ function equals$9(existing, incoming) {
|
|
|
266
337
|
}
|
|
267
338
|
const ingest$9 = function DataCleanRoomProviderRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
268
339
|
if (process.env.NODE_ENV !== 'production') {
|
|
269
|
-
const validateError = validate$
|
|
340
|
+
const validateError = validate$p(input);
|
|
270
341
|
if (validateError !== null) {
|
|
271
342
|
throw validateError;
|
|
272
343
|
}
|
|
@@ -287,7 +358,7 @@ function getTypeCacheKeys$9(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
287
358
|
}
|
|
288
359
|
|
|
289
360
|
const VERSION$8 = "52237eeecd4f8f11ae22e265d9abe5ca";
|
|
290
|
-
function validate$
|
|
361
|
+
function validate$o(obj, path = 'DataCleanRoomProviderCollectionRepresentation') {
|
|
291
362
|
const v_error = (() => {
|
|
292
363
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
293
364
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -383,7 +454,7 @@ function normalize$8(input, existing, path, luvio, store, timestamp) {
|
|
|
383
454
|
}
|
|
384
455
|
return input;
|
|
385
456
|
}
|
|
386
|
-
const select$
|
|
457
|
+
const select$k = function DataCleanRoomProviderCollectionRepresentationSelect() {
|
|
387
458
|
return {
|
|
388
459
|
kind: 'Fragment',
|
|
389
460
|
version: VERSION$8,
|
|
@@ -413,7 +484,7 @@ const select$j = function DataCleanRoomProviderCollectionRepresentationSelect()
|
|
|
413
484
|
name: 'providers',
|
|
414
485
|
kind: 'Link',
|
|
415
486
|
plural: true,
|
|
416
|
-
fragment: select$
|
|
487
|
+
fragment: select$l()
|
|
417
488
|
},
|
|
418
489
|
{
|
|
419
490
|
name: 'totalSize',
|
|
@@ -503,7 +574,7 @@ function equals$8(existing, incoming) {
|
|
|
503
574
|
}
|
|
504
575
|
const ingest$8 = function DataCleanRoomProviderCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
505
576
|
if (process.env.NODE_ENV !== 'production') {
|
|
506
|
-
const validateError = validate$
|
|
577
|
+
const validateError = validate$o(input);
|
|
507
578
|
if (validateError !== null) {
|
|
508
579
|
throw validateError;
|
|
509
580
|
}
|
|
@@ -527,22 +598,22 @@ function getTypeCacheKeys$8(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
527
598
|
}
|
|
528
599
|
}
|
|
529
600
|
|
|
530
|
-
function select$
|
|
531
|
-
return select$
|
|
601
|
+
function select$j(luvio, params) {
|
|
602
|
+
return select$k();
|
|
532
603
|
}
|
|
533
|
-
function keyBuilder$
|
|
604
|
+
function keyBuilder$f(luvio, params) {
|
|
534
605
|
return keyPrefix + '::DataCleanRoomProviderCollectionRepresentation:(' + 'filters:' + params.queryParams.filters + ',' + 'limit:' + params.queryParams.limit + ',' + 'offset:' + params.queryParams.offset + ',' + 'orderBy:' + params.queryParams.orderBy + ')';
|
|
535
606
|
}
|
|
536
|
-
function getResponseCacheKeys$
|
|
537
|
-
getTypeCacheKeys$8(storeKeyMap, luvio, response, () => keyBuilder$
|
|
607
|
+
function getResponseCacheKeys$b(storeKeyMap, luvio, resourceParams, response) {
|
|
608
|
+
getTypeCacheKeys$8(storeKeyMap, luvio, response, () => keyBuilder$f(luvio, resourceParams));
|
|
538
609
|
}
|
|
539
|
-
function ingestSuccess$
|
|
610
|
+
function ingestSuccess$b(luvio, resourceParams, response, snapshotRefresh) {
|
|
540
611
|
const { body } = response;
|
|
541
|
-
const key = keyBuilder$
|
|
612
|
+
const key = keyBuilder$f(luvio, resourceParams);
|
|
542
613
|
luvio.storeIngest(key, ingest$8, body);
|
|
543
614
|
const snapshot = luvio.storeLookup({
|
|
544
615
|
recordId: key,
|
|
545
|
-
node: select$
|
|
616
|
+
node: select$j(),
|
|
546
617
|
variables: {},
|
|
547
618
|
}, snapshotRefresh);
|
|
548
619
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -553,13 +624,13 @@ function ingestSuccess$a(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
553
624
|
deepFreeze(snapshot.data);
|
|
554
625
|
return snapshot;
|
|
555
626
|
}
|
|
556
|
-
function ingestError$
|
|
557
|
-
const key = keyBuilder$
|
|
627
|
+
function ingestError$5(luvio, params, error, snapshotRefresh) {
|
|
628
|
+
const key = keyBuilder$f(luvio, params);
|
|
558
629
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
559
630
|
luvio.storeIngestError(key, errorSnapshot);
|
|
560
631
|
return errorSnapshot;
|
|
561
632
|
}
|
|
562
|
-
function createResourceRequest$
|
|
633
|
+
function createResourceRequest$b(config) {
|
|
563
634
|
const headers = {};
|
|
564
635
|
return {
|
|
565
636
|
baseUri: '/services/data/v65.0',
|
|
@@ -573,108 +644,423 @@ function createResourceRequest$a(config) {
|
|
|
573
644
|
};
|
|
574
645
|
}
|
|
575
646
|
|
|
576
|
-
const adapterName$
|
|
647
|
+
const adapterName$b = 'getDataCleanRoomProvidersPaginated';
|
|
577
648
|
const getDataCleanRoomProvidersPaginated_ConfigPropertyMetadata = [
|
|
578
649
|
generateParamConfigMetadata('filters', false, 1 /* QueryParameter */, 0 /* String */),
|
|
579
650
|
generateParamConfigMetadata('limit', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
580
651
|
generateParamConfigMetadata('offset', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
581
652
|
generateParamConfigMetadata('orderBy', false, 1 /* QueryParameter */, 0 /* String */),
|
|
582
653
|
];
|
|
583
|
-
const getDataCleanRoomProvidersPaginated_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
584
|
-
const createResourceParams$
|
|
585
|
-
function keyBuilder$
|
|
586
|
-
const resourceParams = createResourceParams$
|
|
587
|
-
return keyBuilder$
|
|
654
|
+
const getDataCleanRoomProvidersPaginated_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$b, getDataCleanRoomProvidersPaginated_ConfigPropertyMetadata);
|
|
655
|
+
const createResourceParams$b = /*#__PURE__*/ createResourceParams$c(getDataCleanRoomProvidersPaginated_ConfigPropertyMetadata);
|
|
656
|
+
function keyBuilder$e(luvio, config) {
|
|
657
|
+
const resourceParams = createResourceParams$b(config);
|
|
658
|
+
return keyBuilder$f(luvio, resourceParams);
|
|
588
659
|
}
|
|
589
|
-
function typeCheckConfig$
|
|
660
|
+
function typeCheckConfig$b(untrustedConfig) {
|
|
590
661
|
const config = {};
|
|
591
|
-
typeCheckConfig$
|
|
662
|
+
typeCheckConfig$c(untrustedConfig, config, getDataCleanRoomProvidersPaginated_ConfigPropertyMetadata);
|
|
592
663
|
return config;
|
|
593
664
|
}
|
|
594
|
-
function validateAdapterConfig$
|
|
665
|
+
function validateAdapterConfig$b(untrustedConfig, configPropertyNames) {
|
|
595
666
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
596
667
|
return null;
|
|
597
668
|
}
|
|
598
669
|
if (process.env.NODE_ENV !== 'production') {
|
|
599
670
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
600
671
|
}
|
|
601
|
-
const config = typeCheckConfig$
|
|
672
|
+
const config = typeCheckConfig$b(untrustedConfig);
|
|
602
673
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
603
674
|
return null;
|
|
604
675
|
}
|
|
605
676
|
return config;
|
|
606
677
|
}
|
|
607
|
-
function adapterFragment$
|
|
608
|
-
createResourceParams$
|
|
609
|
-
return select$
|
|
678
|
+
function adapterFragment$5(luvio, config) {
|
|
679
|
+
createResourceParams$b(config);
|
|
680
|
+
return select$j();
|
|
610
681
|
}
|
|
611
|
-
function onFetchResponseSuccess$
|
|
612
|
-
const snapshot = ingestSuccess$
|
|
682
|
+
function onFetchResponseSuccess$5(luvio, config, resourceParams, response) {
|
|
683
|
+
const snapshot = ingestSuccess$b(luvio, resourceParams, response, {
|
|
613
684
|
config,
|
|
614
|
-
resolve: () => buildNetworkSnapshot$
|
|
685
|
+
resolve: () => buildNetworkSnapshot$b(luvio, config, snapshotRefreshOptions)
|
|
615
686
|
});
|
|
616
687
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
617
688
|
}
|
|
618
|
-
function onFetchResponseError$
|
|
619
|
-
const snapshot = ingestError$
|
|
689
|
+
function onFetchResponseError$5(luvio, config, resourceParams, response) {
|
|
690
|
+
const snapshot = ingestError$5(luvio, resourceParams, response, {
|
|
620
691
|
config,
|
|
621
|
-
resolve: () => buildNetworkSnapshot$
|
|
692
|
+
resolve: () => buildNetworkSnapshot$b(luvio, config, snapshotRefreshOptions)
|
|
622
693
|
});
|
|
623
694
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
624
695
|
}
|
|
625
|
-
function buildNetworkSnapshot$
|
|
626
|
-
const resourceParams = createResourceParams$
|
|
627
|
-
const request = createResourceRequest$
|
|
696
|
+
function buildNetworkSnapshot$b(luvio, config, options) {
|
|
697
|
+
const resourceParams = createResourceParams$b(config);
|
|
698
|
+
const request = createResourceRequest$b(resourceParams);
|
|
628
699
|
return luvio.dispatchResourceRequest(request, options)
|
|
629
700
|
.then((response) => {
|
|
630
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
701
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$5(luvio, config, resourceParams, response), () => {
|
|
631
702
|
const cache = new StoreKeyMap();
|
|
632
|
-
getResponseCacheKeys$
|
|
703
|
+
getResponseCacheKeys$b(cache, luvio, resourceParams, response.body);
|
|
633
704
|
return cache;
|
|
634
705
|
});
|
|
635
706
|
}, (response) => {
|
|
636
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
707
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$5(luvio, config, resourceParams, response));
|
|
637
708
|
});
|
|
638
709
|
}
|
|
639
|
-
function buildNetworkSnapshotCachePolicy$
|
|
640
|
-
return buildNetworkSnapshotCachePolicy$
|
|
710
|
+
function buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext) {
|
|
711
|
+
return buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext, buildNetworkSnapshot$b, undefined, false);
|
|
641
712
|
}
|
|
642
|
-
function buildCachedSnapshotCachePolicy$
|
|
713
|
+
function buildCachedSnapshotCachePolicy$5(context, storeLookup) {
|
|
643
714
|
const { luvio, config } = context;
|
|
644
715
|
const selector = {
|
|
645
|
-
recordId: keyBuilder$
|
|
646
|
-
node: adapterFragment$
|
|
716
|
+
recordId: keyBuilder$e(luvio, config),
|
|
717
|
+
node: adapterFragment$5(luvio, config),
|
|
647
718
|
variables: {},
|
|
648
719
|
};
|
|
649
720
|
const cacheSnapshot = storeLookup(selector, {
|
|
650
721
|
config,
|
|
651
|
-
resolve: () => buildNetworkSnapshot$
|
|
722
|
+
resolve: () => buildNetworkSnapshot$b(luvio, config, snapshotRefreshOptions)
|
|
652
723
|
});
|
|
653
724
|
return cacheSnapshot;
|
|
654
725
|
}
|
|
655
726
|
const getDataCleanRoomProvidersPaginatedAdapterFactory = (luvio) => function dataCleanRoom__getDataCleanRoomProvidersPaginated(untrustedConfig, requestContext) {
|
|
656
|
-
const config = validateAdapterConfig$
|
|
727
|
+
const config = validateAdapterConfig$b(untrustedConfig, getDataCleanRoomProvidersPaginated_ConfigPropertyNames);
|
|
657
728
|
// Invalid or incomplete config
|
|
658
729
|
if (config === null) {
|
|
659
730
|
return null;
|
|
660
731
|
}
|
|
661
732
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
662
|
-
buildCachedSnapshotCachePolicy$
|
|
733
|
+
buildCachedSnapshotCachePolicy$5, buildNetworkSnapshotCachePolicy$5);
|
|
663
734
|
};
|
|
664
735
|
|
|
665
|
-
function
|
|
666
|
-
|
|
736
|
+
function validate$n(obj, path = 'CustomUseCaseTemplateAnalysisConfigRepresentation') {
|
|
737
|
+
const v_error = (() => {
|
|
738
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
739
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
740
|
+
}
|
|
741
|
+
if (obj.outputPath !== undefined) {
|
|
742
|
+
const obj_outputPath = obj.outputPath;
|
|
743
|
+
const path_outputPath = path + '.outputPath';
|
|
744
|
+
if (typeof obj_outputPath !== 'string') {
|
|
745
|
+
return new TypeError('Expected "string" but received "' + typeof obj_outputPath + '" (at "' + path_outputPath + '")');
|
|
746
|
+
}
|
|
747
|
+
}
|
|
748
|
+
})();
|
|
749
|
+
return v_error === undefined ? null : v_error;
|
|
667
750
|
}
|
|
668
|
-
|
|
751
|
+
|
|
752
|
+
function validate$m(obj, path = 'CustomUseCaseTemplateQueryParamConfig') {
|
|
753
|
+
const v_error = (() => {
|
|
754
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
755
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
756
|
+
}
|
|
757
|
+
const obj_description = obj.description;
|
|
758
|
+
const path_description = path + '.description';
|
|
759
|
+
if (typeof obj_description !== 'string') {
|
|
760
|
+
return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
|
|
761
|
+
}
|
|
762
|
+
const obj_name = obj.name;
|
|
763
|
+
const path_name = path + '.name';
|
|
764
|
+
if (typeof obj_name !== 'string') {
|
|
765
|
+
return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
|
|
766
|
+
}
|
|
767
|
+
const obj_type = obj.type;
|
|
768
|
+
const path_type = path + '.type';
|
|
769
|
+
if (typeof obj_type !== 'string') {
|
|
770
|
+
return new TypeError('Expected "string" but received "' + typeof obj_type + '" (at "' + path_type + '")');
|
|
771
|
+
}
|
|
772
|
+
})();
|
|
773
|
+
return v_error === undefined ? null : v_error;
|
|
774
|
+
}
|
|
775
|
+
|
|
776
|
+
function validate$l(obj, path = 'CustomUseCaseTemplateQueryParamRepresentation') {
|
|
777
|
+
const v_error = (() => {
|
|
778
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
779
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
780
|
+
}
|
|
781
|
+
const obj_queryParamConfigs = obj.queryParamConfigs;
|
|
782
|
+
const path_queryParamConfigs = path + '.queryParamConfigs';
|
|
783
|
+
if (!ArrayIsArray(obj_queryParamConfigs)) {
|
|
784
|
+
return new TypeError('Expected "array" but received "' + typeof obj_queryParamConfigs + '" (at "' + path_queryParamConfigs + '")');
|
|
785
|
+
}
|
|
786
|
+
for (let i = 0; i < obj_queryParamConfigs.length; i++) {
|
|
787
|
+
const obj_queryParamConfigs_item = obj_queryParamConfigs[i];
|
|
788
|
+
const path_queryParamConfigs_item = path_queryParamConfigs + '[' + i + ']';
|
|
789
|
+
const referencepath_queryParamConfigs_itemValidationError = validate$m(obj_queryParamConfigs_item, path_queryParamConfigs_item);
|
|
790
|
+
if (referencepath_queryParamConfigs_itemValidationError !== null) {
|
|
791
|
+
let message = 'Object doesn\'t match CustomUseCaseTemplateQueryParamConfig (at "' + path_queryParamConfigs_item + '")\n';
|
|
792
|
+
message += referencepath_queryParamConfigs_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
793
|
+
return new TypeError(message);
|
|
794
|
+
}
|
|
795
|
+
}
|
|
796
|
+
})();
|
|
797
|
+
return v_error === undefined ? null : v_error;
|
|
798
|
+
}
|
|
799
|
+
|
|
800
|
+
function validate$k(obj, path = 'CustomUseCaseTemplateQueryConfig') {
|
|
801
|
+
const v_error = (() => {
|
|
802
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
803
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
804
|
+
}
|
|
805
|
+
if (obj.analysisConfigs !== undefined) {
|
|
806
|
+
const obj_analysisConfigs = obj.analysisConfigs;
|
|
807
|
+
const path_analysisConfigs = path + '.analysisConfigs';
|
|
808
|
+
const referencepath_analysisConfigsValidationError = validate$n(obj_analysisConfigs, path_analysisConfigs);
|
|
809
|
+
if (referencepath_analysisConfigsValidationError !== null) {
|
|
810
|
+
let message = 'Object doesn\'t match CustomUseCaseTemplateAnalysisConfigRepresentation (at "' + path_analysisConfigs + '")\n';
|
|
811
|
+
message += referencepath_analysisConfigsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
812
|
+
return new TypeError(message);
|
|
813
|
+
}
|
|
814
|
+
}
|
|
815
|
+
const obj_description = obj.description;
|
|
816
|
+
const path_description = path + '.description';
|
|
817
|
+
if (typeof obj_description !== 'string') {
|
|
818
|
+
return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
|
|
819
|
+
}
|
|
820
|
+
const obj_name = obj.name;
|
|
821
|
+
const path_name = path + '.name';
|
|
822
|
+
if (typeof obj_name !== 'string') {
|
|
823
|
+
return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
|
|
824
|
+
}
|
|
825
|
+
if (obj.queryParameters !== undefined) {
|
|
826
|
+
const obj_queryParameters = obj.queryParameters;
|
|
827
|
+
const path_queryParameters = path + '.queryParameters';
|
|
828
|
+
const referencepath_queryParametersValidationError = validate$l(obj_queryParameters, path_queryParameters);
|
|
829
|
+
if (referencepath_queryParametersValidationError !== null) {
|
|
830
|
+
let message = 'Object doesn\'t match CustomUseCaseTemplateQueryParamRepresentation (at "' + path_queryParameters + '")\n';
|
|
831
|
+
message += referencepath_queryParametersValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
832
|
+
return new TypeError(message);
|
|
833
|
+
}
|
|
834
|
+
}
|
|
835
|
+
const obj_referencedTables = obj.referencedTables;
|
|
836
|
+
const path_referencedTables = path + '.referencedTables';
|
|
837
|
+
if (!ArrayIsArray(obj_referencedTables)) {
|
|
838
|
+
return new TypeError('Expected "array" but received "' + typeof obj_referencedTables + '" (at "' + path_referencedTables + '")');
|
|
839
|
+
}
|
|
840
|
+
for (let i = 0; i < obj_referencedTables.length; i++) {
|
|
841
|
+
const obj_referencedTables_item = obj_referencedTables[i];
|
|
842
|
+
const path_referencedTables_item = path_referencedTables + '[' + i + ']';
|
|
843
|
+
if (typeof obj_referencedTables_item !== 'string') {
|
|
844
|
+
return new TypeError('Expected "string" but received "' + typeof obj_referencedTables_item + '" (at "' + path_referencedTables_item + '")');
|
|
845
|
+
}
|
|
846
|
+
}
|
|
847
|
+
const obj_source = obj.source;
|
|
848
|
+
const path_source = path + '.source';
|
|
849
|
+
if (typeof obj_source !== 'string') {
|
|
850
|
+
return new TypeError('Expected "string" but received "' + typeof obj_source + '" (at "' + path_source + '")');
|
|
851
|
+
}
|
|
852
|
+
const obj_type = obj.type;
|
|
853
|
+
const path_type = path + '.type';
|
|
854
|
+
if (typeof obj_type !== 'string') {
|
|
855
|
+
return new TypeError('Expected "string" but received "' + typeof obj_type + '" (at "' + path_type + '")');
|
|
856
|
+
}
|
|
857
|
+
if (obj.usecase !== undefined) {
|
|
858
|
+
const obj_usecase = obj.usecase;
|
|
859
|
+
const path_usecase = path + '.usecase';
|
|
860
|
+
if (typeof obj_usecase !== 'string') {
|
|
861
|
+
return new TypeError('Expected "string" but received "' + typeof obj_usecase + '" (at "' + path_usecase + '")');
|
|
862
|
+
}
|
|
863
|
+
}
|
|
864
|
+
})();
|
|
865
|
+
return v_error === undefined ? null : v_error;
|
|
866
|
+
}
|
|
867
|
+
|
|
868
|
+
function validate$j(obj, path = 'CustomUseCaseTemplateQueryInputRepresentation') {
|
|
869
|
+
const v_error = (() => {
|
|
870
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
871
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
872
|
+
}
|
|
873
|
+
const obj_queryConfigs = obj.queryConfigs;
|
|
874
|
+
const path_queryConfigs = path + '.queryConfigs';
|
|
875
|
+
if (!ArrayIsArray(obj_queryConfigs)) {
|
|
876
|
+
return new TypeError('Expected "array" but received "' + typeof obj_queryConfigs + '" (at "' + path_queryConfigs + '")');
|
|
877
|
+
}
|
|
878
|
+
for (let i = 0; i < obj_queryConfigs.length; i++) {
|
|
879
|
+
const obj_queryConfigs_item = obj_queryConfigs[i];
|
|
880
|
+
const path_queryConfigs_item = path_queryConfigs + '[' + i + ']';
|
|
881
|
+
const referencepath_queryConfigs_itemValidationError = validate$k(obj_queryConfigs_item, path_queryConfigs_item);
|
|
882
|
+
if (referencepath_queryConfigs_itemValidationError !== null) {
|
|
883
|
+
let message = 'Object doesn\'t match CustomUseCaseTemplateQueryConfig (at "' + path_queryConfigs_item + '")\n';
|
|
884
|
+
message += referencepath_queryConfigs_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
885
|
+
return new TypeError(message);
|
|
886
|
+
}
|
|
887
|
+
}
|
|
888
|
+
})();
|
|
889
|
+
return v_error === undefined ? null : v_error;
|
|
890
|
+
}
|
|
891
|
+
|
|
892
|
+
function validate$i(obj, path = 'CustomUseCaseTemplateColumnRepresentation') {
|
|
893
|
+
const v_error = (() => {
|
|
894
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
895
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
896
|
+
}
|
|
897
|
+
if (obj.defaultValue !== undefined) {
|
|
898
|
+
const obj_defaultValue = obj.defaultValue;
|
|
899
|
+
const path_defaultValue = path + '.defaultValue';
|
|
900
|
+
if (typeof obj_defaultValue !== 'string') {
|
|
901
|
+
return new TypeError('Expected "string" but received "' + typeof obj_defaultValue + '" (at "' + path_defaultValue + '")');
|
|
902
|
+
}
|
|
903
|
+
}
|
|
904
|
+
const obj_description = obj.description;
|
|
905
|
+
const path_description = path + '.description';
|
|
906
|
+
if (typeof obj_description !== 'string') {
|
|
907
|
+
return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
|
|
908
|
+
}
|
|
909
|
+
const obj_name = obj.name;
|
|
910
|
+
const path_name = path + '.name';
|
|
911
|
+
if (typeof obj_name !== 'string') {
|
|
912
|
+
return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
|
|
913
|
+
}
|
|
914
|
+
const obj_type = obj.type;
|
|
915
|
+
const path_type = path + '.type';
|
|
916
|
+
if (typeof obj_type !== 'string') {
|
|
917
|
+
return new TypeError('Expected "string" but received "' + typeof obj_type + '" (at "' + path_type + '")');
|
|
918
|
+
}
|
|
919
|
+
})();
|
|
920
|
+
return v_error === undefined ? null : v_error;
|
|
921
|
+
}
|
|
922
|
+
|
|
923
|
+
function validate$h(obj, path = 'CustomUseCaseTemplateTableConfig') {
|
|
924
|
+
const v_error = (() => {
|
|
925
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
926
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
927
|
+
}
|
|
928
|
+
const obj_columns = obj.columns;
|
|
929
|
+
const path_columns = path + '.columns';
|
|
930
|
+
if (!ArrayIsArray(obj_columns)) {
|
|
931
|
+
return new TypeError('Expected "array" but received "' + typeof obj_columns + '" (at "' + path_columns + '")');
|
|
932
|
+
}
|
|
933
|
+
for (let i = 0; i < obj_columns.length; i++) {
|
|
934
|
+
const obj_columns_item = obj_columns[i];
|
|
935
|
+
const path_columns_item = path_columns + '[' + i + ']';
|
|
936
|
+
const referencepath_columns_itemValidationError = validate$i(obj_columns_item, path_columns_item);
|
|
937
|
+
if (referencepath_columns_itemValidationError !== null) {
|
|
938
|
+
let message = 'Object doesn\'t match CustomUseCaseTemplateColumnRepresentation (at "' + path_columns_item + '")\n';
|
|
939
|
+
message += referencepath_columns_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
940
|
+
return new TypeError(message);
|
|
941
|
+
}
|
|
942
|
+
}
|
|
943
|
+
const obj_description = obj.description;
|
|
944
|
+
const path_description = path + '.description';
|
|
945
|
+
if (typeof obj_description !== 'string') {
|
|
946
|
+
return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
|
|
947
|
+
}
|
|
948
|
+
const obj_name = obj.name;
|
|
949
|
+
const path_name = path + '.name';
|
|
950
|
+
if (typeof obj_name !== 'string') {
|
|
951
|
+
return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
|
|
952
|
+
}
|
|
953
|
+
const obj_role = obj.role;
|
|
954
|
+
const path_role = path + '.role';
|
|
955
|
+
if (typeof obj_role !== 'string') {
|
|
956
|
+
return new TypeError('Expected "string" but received "' + typeof obj_role + '" (at "' + path_role + '")');
|
|
957
|
+
}
|
|
958
|
+
})();
|
|
959
|
+
return v_error === undefined ? null : v_error;
|
|
960
|
+
}
|
|
961
|
+
|
|
962
|
+
function validate$g(obj, path = 'CustomUseCaseTemplateTableInputRepresentation') {
|
|
963
|
+
const v_error = (() => {
|
|
964
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
965
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
966
|
+
}
|
|
967
|
+
const obj_tableConfigs = obj.tableConfigs;
|
|
968
|
+
const path_tableConfigs = path + '.tableConfigs';
|
|
969
|
+
if (!ArrayIsArray(obj_tableConfigs)) {
|
|
970
|
+
return new TypeError('Expected "array" but received "' + typeof obj_tableConfigs + '" (at "' + path_tableConfigs + '")');
|
|
971
|
+
}
|
|
972
|
+
for (let i = 0; i < obj_tableConfigs.length; i++) {
|
|
973
|
+
const obj_tableConfigs_item = obj_tableConfigs[i];
|
|
974
|
+
const path_tableConfigs_item = path_tableConfigs + '[' + i + ']';
|
|
975
|
+
const referencepath_tableConfigs_itemValidationError = validate$h(obj_tableConfigs_item, path_tableConfigs_item);
|
|
976
|
+
if (referencepath_tableConfigs_itemValidationError !== null) {
|
|
977
|
+
let message = 'Object doesn\'t match CustomUseCaseTemplateTableConfig (at "' + path_tableConfigs_item + '")\n';
|
|
978
|
+
message += referencepath_tableConfigs_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
979
|
+
return new TypeError(message);
|
|
980
|
+
}
|
|
981
|
+
}
|
|
982
|
+
})();
|
|
983
|
+
return v_error === undefined ? null : v_error;
|
|
984
|
+
}
|
|
985
|
+
|
|
986
|
+
function validate$f(obj, path = 'CustomUseCaseTemplateInputRepresentation') {
|
|
987
|
+
const v_error = (() => {
|
|
988
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
989
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
990
|
+
}
|
|
991
|
+
const obj_description = obj.description;
|
|
992
|
+
const path_description = path + '.description';
|
|
993
|
+
if (typeof obj_description !== 'string') {
|
|
994
|
+
return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
|
|
995
|
+
}
|
|
996
|
+
const obj_name = obj.name;
|
|
997
|
+
const path_name = path + '.name';
|
|
998
|
+
if (typeof obj_name !== 'string') {
|
|
999
|
+
return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
|
|
1000
|
+
}
|
|
1001
|
+
const obj_queries = obj.queries;
|
|
1002
|
+
const path_queries = path + '.queries';
|
|
1003
|
+
const referencepath_queriesValidationError = validate$j(obj_queries, path_queries);
|
|
1004
|
+
if (referencepath_queriesValidationError !== null) {
|
|
1005
|
+
let message = 'Object doesn\'t match CustomUseCaseTemplateQueryInputRepresentation (at "' + path_queries + '")\n';
|
|
1006
|
+
message += referencepath_queriesValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
1007
|
+
return new TypeError(message);
|
|
1008
|
+
}
|
|
1009
|
+
const obj_tables = obj.tables;
|
|
1010
|
+
const path_tables = path + '.tables';
|
|
1011
|
+
const referencepath_tablesValidationError = validate$g(obj_tables, path_tables);
|
|
1012
|
+
if (referencepath_tablesValidationError !== null) {
|
|
1013
|
+
let message = 'Object doesn\'t match CustomUseCaseTemplateTableInputRepresentation (at "' + path_tables + '")\n';
|
|
1014
|
+
message += referencepath_tablesValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
1015
|
+
return new TypeError(message);
|
|
1016
|
+
}
|
|
1017
|
+
if (obj.version !== undefined) {
|
|
1018
|
+
const obj_version = obj.version;
|
|
1019
|
+
const path_version = path + '.version';
|
|
1020
|
+
if (typeof obj_version !== 'string') {
|
|
1021
|
+
return new TypeError('Expected "string" but received "' + typeof obj_version + '" (at "' + path_version + '")');
|
|
1022
|
+
}
|
|
1023
|
+
}
|
|
1024
|
+
})();
|
|
1025
|
+
return v_error === undefined ? null : v_error;
|
|
1026
|
+
}
|
|
1027
|
+
|
|
1028
|
+
function validate$e(obj, path = 'DataCleanRoomUseCaseTypeInputRepresentation') {
|
|
1029
|
+
const v_error = (() => {
|
|
1030
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1031
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1032
|
+
}
|
|
1033
|
+
if (obj.useCaseTypes !== undefined) {
|
|
1034
|
+
const obj_useCaseTypes = obj.useCaseTypes;
|
|
1035
|
+
const path_useCaseTypes = path + '.useCaseTypes';
|
|
1036
|
+
if (!ArrayIsArray(obj_useCaseTypes)) {
|
|
1037
|
+
return new TypeError('Expected "array" but received "' + typeof obj_useCaseTypes + '" (at "' + path_useCaseTypes + '")');
|
|
1038
|
+
}
|
|
1039
|
+
for (let i = 0; i < obj_useCaseTypes.length; i++) {
|
|
1040
|
+
const obj_useCaseTypes_item = obj_useCaseTypes[i];
|
|
1041
|
+
const path_useCaseTypes_item = path_useCaseTypes + '[' + i + ']';
|
|
1042
|
+
if (typeof obj_useCaseTypes_item !== 'string') {
|
|
1043
|
+
return new TypeError('Expected "string" but received "' + typeof obj_useCaseTypes_item + '" (at "' + path_useCaseTypes_item + '")');
|
|
1044
|
+
}
|
|
1045
|
+
}
|
|
1046
|
+
}
|
|
1047
|
+
})();
|
|
1048
|
+
return v_error === undefined ? null : v_error;
|
|
1049
|
+
}
|
|
1050
|
+
|
|
1051
|
+
function select$i(luvio, params) {
|
|
1052
|
+
return select$l();
|
|
1053
|
+
}
|
|
1054
|
+
function getResponseCacheKeys$a(storeKeyMap, luvio, resourceParams, response) {
|
|
669
1055
|
getTypeCacheKeys$9(storeKeyMap, luvio, response);
|
|
670
1056
|
}
|
|
671
|
-
function ingestSuccess$
|
|
1057
|
+
function ingestSuccess$a(luvio, resourceParams, response) {
|
|
672
1058
|
const { body } = response;
|
|
673
1059
|
const key = keyBuilderFromType$4(luvio, body);
|
|
674
1060
|
luvio.storeIngest(key, ingest$9, body);
|
|
675
1061
|
const snapshot = luvio.storeLookup({
|
|
676
1062
|
recordId: key,
|
|
677
|
-
node: select$
|
|
1063
|
+
node: select$i(),
|
|
678
1064
|
variables: {},
|
|
679
1065
|
});
|
|
680
1066
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -685,7 +1071,7 @@ function ingestSuccess$9(luvio, resourceParams, response) {
|
|
|
685
1071
|
deepFreeze(snapshot.data);
|
|
686
1072
|
return snapshot;
|
|
687
1073
|
}
|
|
688
|
-
function createResourceRequest$
|
|
1074
|
+
function createResourceRequest$a(config) {
|
|
689
1075
|
const headers = {};
|
|
690
1076
|
return {
|
|
691
1077
|
baseUri: '/services/data/v65.0',
|
|
@@ -699,49 +1085,67 @@ function createResourceRequest$9(config) {
|
|
|
699
1085
|
};
|
|
700
1086
|
}
|
|
701
1087
|
|
|
702
|
-
const adapterName$
|
|
1088
|
+
const adapterName$a = 'createProvider';
|
|
703
1089
|
const createProvider_ConfigPropertyMetadata = [
|
|
704
1090
|
generateParamConfigMetadata('label', true, 2 /* Body */, 0 /* String */),
|
|
705
|
-
generateParamConfigMetadata('description',
|
|
706
|
-
generateParamConfigMetadata('templateNames',
|
|
707
|
-
generateParamConfigMetadata('dataCloudOrgId',
|
|
708
|
-
generateParamConfigMetadata('domainUrl',
|
|
1091
|
+
generateParamConfigMetadata('description', false, 2 /* Body */, 0 /* String */),
|
|
1092
|
+
generateParamConfigMetadata('templateNames', false, 2 /* Body */, 0 /* String */, true),
|
|
1093
|
+
generateParamConfigMetadata('dataCloudOrgId', false, 2 /* Body */, 0 /* String */),
|
|
1094
|
+
generateParamConfigMetadata('domainUrl', false, 2 /* Body */, 0 /* String */),
|
|
709
1095
|
generateParamConfigMetadata('dataspaceName', false, 2 /* Body */, 0 /* String */),
|
|
710
1096
|
generateParamConfigMetadata('name', false, 2 /* Body */, 0 /* String */),
|
|
711
1097
|
generateParamConfigMetadata('logoUrl', false, 2 /* Body */, 0 /* String */),
|
|
712
|
-
generateParamConfigMetadata('offCoreTenantId',
|
|
1098
|
+
generateParamConfigMetadata('offCoreTenantId', false, 2 /* Body */, 0 /* String */),
|
|
1099
|
+
generateParamConfigMetadata('source', false, 2 /* Body */, 0 /* String */),
|
|
1100
|
+
generateParamConfigMetadata('templateJson', false, 2 /* Body */, 4 /* Unsupported */),
|
|
1101
|
+
generateParamConfigMetadata('templateType', false, 2 /* Body */, 0 /* String */),
|
|
1102
|
+
generateParamConfigMetadata('useCaseTypeConfig', false, 2 /* Body */, 4 /* Unsupported */),
|
|
1103
|
+
generateParamConfigMetadata('providerName', false, 2 /* Body */, 0 /* String */),
|
|
1104
|
+
generateParamConfigMetadata('sourceConfiguration', false, 2 /* Body */, 4 /* Unsupported */),
|
|
713
1105
|
];
|
|
714
|
-
const createProvider_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
715
|
-
const createResourceParams$
|
|
716
|
-
function typeCheckConfig$
|
|
1106
|
+
const createProvider_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$a, createProvider_ConfigPropertyMetadata);
|
|
1107
|
+
const createResourceParams$a = /*#__PURE__*/ createResourceParams$c(createProvider_ConfigPropertyMetadata);
|
|
1108
|
+
function typeCheckConfig$a(untrustedConfig) {
|
|
717
1109
|
const config = {};
|
|
718
|
-
typeCheckConfig$
|
|
1110
|
+
typeCheckConfig$c(untrustedConfig, config, createProvider_ConfigPropertyMetadata);
|
|
1111
|
+
const untrustedConfig_templateJson = untrustedConfig.templateJson;
|
|
1112
|
+
const referenceCustomUseCaseTemplateInputRepresentationValidationError = validate$f(untrustedConfig_templateJson);
|
|
1113
|
+
if (referenceCustomUseCaseTemplateInputRepresentationValidationError === null) {
|
|
1114
|
+
config.templateJson = untrustedConfig_templateJson;
|
|
1115
|
+
}
|
|
1116
|
+
const untrustedConfig_useCaseTypeConfig = untrustedConfig.useCaseTypeConfig;
|
|
1117
|
+
const referenceDataCleanRoomUseCaseTypeInputRepresentationValidationError = validate$e(untrustedConfig_useCaseTypeConfig);
|
|
1118
|
+
if (referenceDataCleanRoomUseCaseTypeInputRepresentationValidationError === null) {
|
|
1119
|
+
config.useCaseTypeConfig = untrustedConfig_useCaseTypeConfig;
|
|
1120
|
+
}
|
|
1121
|
+
const untrustedConfig_sourceConfiguration = untrustedConfig.sourceConfiguration;
|
|
1122
|
+
config.sourceConfiguration = untrustedConfig_sourceConfiguration;
|
|
719
1123
|
return config;
|
|
720
1124
|
}
|
|
721
|
-
function validateAdapterConfig$
|
|
1125
|
+
function validateAdapterConfig$a(untrustedConfig, configPropertyNames) {
|
|
722
1126
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
723
1127
|
return null;
|
|
724
1128
|
}
|
|
725
1129
|
if (process.env.NODE_ENV !== 'production') {
|
|
726
1130
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
727
1131
|
}
|
|
728
|
-
const config = typeCheckConfig$
|
|
1132
|
+
const config = typeCheckConfig$a(untrustedConfig);
|
|
729
1133
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
730
1134
|
return null;
|
|
731
1135
|
}
|
|
732
1136
|
return config;
|
|
733
1137
|
}
|
|
734
|
-
function buildNetworkSnapshot$
|
|
735
|
-
const resourceParams = createResourceParams$
|
|
736
|
-
const request = createResourceRequest$
|
|
1138
|
+
function buildNetworkSnapshot$a(luvio, config, options) {
|
|
1139
|
+
const resourceParams = createResourceParams$a(config);
|
|
1140
|
+
const request = createResourceRequest$a(resourceParams);
|
|
737
1141
|
return luvio.dispatchResourceRequest(request, options)
|
|
738
1142
|
.then((response) => {
|
|
739
1143
|
return luvio.handleSuccessResponse(() => {
|
|
740
|
-
const snapshot = ingestSuccess$
|
|
1144
|
+
const snapshot = ingestSuccess$a(luvio, resourceParams, response);
|
|
741
1145
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
742
1146
|
}, () => {
|
|
743
1147
|
const cache = new StoreKeyMap();
|
|
744
|
-
getResponseCacheKeys$
|
|
1148
|
+
getResponseCacheKeys$a(cache, luvio, resourceParams, response.body);
|
|
745
1149
|
return cache;
|
|
746
1150
|
});
|
|
747
1151
|
}, (response) => {
|
|
@@ -751,12 +1155,12 @@ function buildNetworkSnapshot$9(luvio, config, options) {
|
|
|
751
1155
|
}
|
|
752
1156
|
const createProviderAdapterFactory = (luvio) => {
|
|
753
1157
|
return function createProvider(untrustedConfig) {
|
|
754
|
-
const config = validateAdapterConfig$
|
|
1158
|
+
const config = validateAdapterConfig$a(untrustedConfig, createProvider_ConfigPropertyNames);
|
|
755
1159
|
// Invalid or incomplete config
|
|
756
1160
|
if (config === null) {
|
|
757
1161
|
throw new Error('Invalid config for "createProvider"');
|
|
758
1162
|
}
|
|
759
|
-
return buildNetworkSnapshot$
|
|
1163
|
+
return buildNetworkSnapshot$a(luvio, config);
|
|
760
1164
|
};
|
|
761
1165
|
};
|
|
762
1166
|
|
|
@@ -854,7 +1258,7 @@ function validate$a(obj, path = 'UseCaseTemplateMappingAttributeRepresentation')
|
|
|
854
1258
|
if (obj.createdBy !== undefined) {
|
|
855
1259
|
const obj_createdBy = obj.createdBy;
|
|
856
1260
|
const path_createdBy = path + '.createdBy';
|
|
857
|
-
const referencepath_createdByValidationError = validate$
|
|
1261
|
+
const referencepath_createdByValidationError = validate$r(obj_createdBy, path_createdBy);
|
|
858
1262
|
if (referencepath_createdByValidationError !== null) {
|
|
859
1263
|
let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_createdBy + '")\n';
|
|
860
1264
|
message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -905,7 +1309,7 @@ function validate$a(obj, path = 'UseCaseTemplateMappingAttributeRepresentation')
|
|
|
905
1309
|
if (obj.lastModifiedBy !== undefined) {
|
|
906
1310
|
const obj_lastModifiedBy = obj.lastModifiedBy;
|
|
907
1311
|
const path_lastModifiedBy = path + '.lastModifiedBy';
|
|
908
|
-
const referencepath_lastModifiedByValidationError = validate$
|
|
1312
|
+
const referencepath_lastModifiedByValidationError = validate$r(obj_lastModifiedBy, path_lastModifiedBy);
|
|
909
1313
|
if (referencepath_lastModifiedByValidationError !== null) {
|
|
910
1314
|
let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_lastModifiedBy + '")\n';
|
|
911
1315
|
message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -995,7 +1399,7 @@ function validate$9(obj, path = 'UseCaseTemplateMappingRepresentation') {
|
|
|
995
1399
|
if (obj.createdBy !== undefined) {
|
|
996
1400
|
const obj_createdBy = obj.createdBy;
|
|
997
1401
|
const path_createdBy = path + '.createdBy';
|
|
998
|
-
const referencepath_createdByValidationError = validate$
|
|
1402
|
+
const referencepath_createdByValidationError = validate$r(obj_createdBy, path_createdBy);
|
|
999
1403
|
if (referencepath_createdByValidationError !== null) {
|
|
1000
1404
|
let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_createdBy + '")\n';
|
|
1001
1405
|
message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1026,7 +1430,7 @@ function validate$9(obj, path = 'UseCaseTemplateMappingRepresentation') {
|
|
|
1026
1430
|
if (obj.lastModifiedBy !== undefined) {
|
|
1027
1431
|
const obj_lastModifiedBy = obj.lastModifiedBy;
|
|
1028
1432
|
const path_lastModifiedBy = path + '.lastModifiedBy';
|
|
1029
|
-
const referencepath_lastModifiedByValidationError = validate$
|
|
1433
|
+
const referencepath_lastModifiedByValidationError = validate$r(obj_lastModifiedBy, path_lastModifiedBy);
|
|
1030
1434
|
if (referencepath_lastModifiedByValidationError !== null) {
|
|
1031
1435
|
let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_lastModifiedBy + '")\n';
|
|
1032
1436
|
message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1078,7 +1482,7 @@ function validate$8(obj, path = 'DataCleanRoomTemplateRepresentation') {
|
|
|
1078
1482
|
if (obj.createdBy !== undefined) {
|
|
1079
1483
|
const obj_createdBy = obj.createdBy;
|
|
1080
1484
|
const path_createdBy = path + '.createdBy';
|
|
1081
|
-
const referencepath_createdByValidationError = validate$
|
|
1485
|
+
const referencepath_createdByValidationError = validate$r(obj_createdBy, path_createdBy);
|
|
1082
1486
|
if (referencepath_createdByValidationError !== null) {
|
|
1083
1487
|
let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_createdBy + '")\n';
|
|
1084
1488
|
message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1114,7 +1518,7 @@ function validate$8(obj, path = 'DataCleanRoomTemplateRepresentation') {
|
|
|
1114
1518
|
if (obj.lastModifiedBy !== undefined) {
|
|
1115
1519
|
const obj_lastModifiedBy = obj.lastModifiedBy;
|
|
1116
1520
|
const path_lastModifiedBy = path + '.lastModifiedBy';
|
|
1117
|
-
const referencepath_lastModifiedByValidationError = validate$
|
|
1521
|
+
const referencepath_lastModifiedByValidationError = validate$r(obj_lastModifiedBy, path_lastModifiedBy);
|
|
1118
1522
|
if (referencepath_lastModifiedByValidationError !== null) {
|
|
1119
1523
|
let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_lastModifiedBy + '")\n';
|
|
1120
1524
|
message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1142,11 +1546,32 @@ function validate$8(obj, path = 'DataCleanRoomTemplateRepresentation') {
|
|
|
1142
1546
|
return new TypeError('Expected "string" but received "' + typeof obj_namespace + '" (at "' + path_namespace + '")');
|
|
1143
1547
|
}
|
|
1144
1548
|
}
|
|
1549
|
+
if (obj.providerId !== undefined) {
|
|
1550
|
+
const obj_providerId = obj.providerId;
|
|
1551
|
+
const path_providerId = path + '.providerId';
|
|
1552
|
+
if (typeof obj_providerId !== 'string') {
|
|
1553
|
+
return new TypeError('Expected "string" but received "' + typeof obj_providerId + '" (at "' + path_providerId + '")');
|
|
1554
|
+
}
|
|
1555
|
+
}
|
|
1145
1556
|
const obj_queryTemplate = obj.queryTemplate;
|
|
1146
1557
|
const path_queryTemplate = path + '.queryTemplate';
|
|
1147
1558
|
if (obj_queryTemplate === undefined) {
|
|
1148
1559
|
return new TypeError('Expected "defined" but received "' + typeof obj_queryTemplate + '" (at "' + path_queryTemplate + '")');
|
|
1149
1560
|
}
|
|
1561
|
+
if (obj.templateType !== undefined) {
|
|
1562
|
+
const obj_templateType = obj.templateType;
|
|
1563
|
+
const path_templateType = path + '.templateType';
|
|
1564
|
+
if (typeof obj_templateType !== 'string') {
|
|
1565
|
+
return new TypeError('Expected "string" but received "' + typeof obj_templateType + '" (at "' + path_templateType + '")');
|
|
1566
|
+
}
|
|
1567
|
+
}
|
|
1568
|
+
if (obj.templateVersion !== undefined) {
|
|
1569
|
+
const obj_templateVersion = obj.templateVersion;
|
|
1570
|
+
const path_templateVersion = path + '.templateVersion';
|
|
1571
|
+
if (typeof obj_templateVersion !== 'string') {
|
|
1572
|
+
return new TypeError('Expected "string" but received "' + typeof obj_templateVersion + '" (at "' + path_templateVersion + '")');
|
|
1573
|
+
}
|
|
1574
|
+
}
|
|
1150
1575
|
if (obj.url !== undefined) {
|
|
1151
1576
|
const obj_url = obj.url;
|
|
1152
1577
|
const path_url = path + '.url';
|
|
@@ -1154,11 +1579,18 @@ function validate$8(obj, path = 'DataCleanRoomTemplateRepresentation') {
|
|
|
1154
1579
|
return new TypeError('Expected "string" but received "' + typeof obj_url + '" (at "' + path_url + '")');
|
|
1155
1580
|
}
|
|
1156
1581
|
}
|
|
1582
|
+
if (obj.useCaseType !== undefined) {
|
|
1583
|
+
const obj_useCaseType = obj.useCaseType;
|
|
1584
|
+
const path_useCaseType = path + '.useCaseType';
|
|
1585
|
+
if (typeof obj_useCaseType !== 'string') {
|
|
1586
|
+
return new TypeError('Expected "string" but received "' + typeof obj_useCaseType + '" (at "' + path_useCaseType + '")');
|
|
1587
|
+
}
|
|
1588
|
+
}
|
|
1157
1589
|
})();
|
|
1158
1590
|
return v_error === undefined ? null : v_error;
|
|
1159
1591
|
}
|
|
1160
1592
|
|
|
1161
|
-
const VERSION$7 = "
|
|
1593
|
+
const VERSION$7 = "d45438ed7dbe4f9f483ef33b3d47863e";
|
|
1162
1594
|
function validate$7(obj, path = 'DataCleanRoomDataSpecificationRepresentation') {
|
|
1163
1595
|
const v_error = (() => {
|
|
1164
1596
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -1167,7 +1599,7 @@ function validate$7(obj, path = 'DataCleanRoomDataSpecificationRepresentation')
|
|
|
1167
1599
|
if (obj.createdBy !== undefined) {
|
|
1168
1600
|
const obj_createdBy = obj.createdBy;
|
|
1169
1601
|
const path_createdBy = path + '.createdBy';
|
|
1170
|
-
const referencepath_createdByValidationError = validate$
|
|
1602
|
+
const referencepath_createdByValidationError = validate$r(obj_createdBy, path_createdBy);
|
|
1171
1603
|
if (referencepath_createdByValidationError !== null) {
|
|
1172
1604
|
let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_createdBy + '")\n';
|
|
1173
1605
|
message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1189,10 +1621,19 @@ function validate$7(obj, path = 'DataCleanRoomDataSpecificationRepresentation')
|
|
|
1189
1621
|
message += referencepath_dataMappingValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
1190
1622
|
return new TypeError(message);
|
|
1191
1623
|
}
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1624
|
+
if (obj.dataSpaceName !== undefined) {
|
|
1625
|
+
const obj_dataSpaceName = obj.dataSpaceName;
|
|
1626
|
+
const path_dataSpaceName = path + '.dataSpaceName';
|
|
1627
|
+
if (typeof obj_dataSpaceName !== 'string') {
|
|
1628
|
+
return new TypeError('Expected "string" but received "' + typeof obj_dataSpaceName + '" (at "' + path_dataSpaceName + '")');
|
|
1629
|
+
}
|
|
1630
|
+
}
|
|
1631
|
+
if (obj.dataspace !== undefined) {
|
|
1632
|
+
const obj_dataspace = obj.dataspace;
|
|
1633
|
+
const path_dataspace = path + '.dataspace';
|
|
1634
|
+
if (obj_dataspace === undefined) {
|
|
1635
|
+
return new TypeError('Expected "defined" but received "' + typeof obj_dataspace + '" (at "' + path_dataspace + '")');
|
|
1636
|
+
}
|
|
1196
1637
|
}
|
|
1197
1638
|
if (obj.description !== undefined) {
|
|
1198
1639
|
const obj_description = obj.description;
|
|
@@ -1216,7 +1657,7 @@ function validate$7(obj, path = 'DataCleanRoomDataSpecificationRepresentation')
|
|
|
1216
1657
|
if (obj.lastModifiedBy !== undefined) {
|
|
1217
1658
|
const obj_lastModifiedBy = obj.lastModifiedBy;
|
|
1218
1659
|
const path_lastModifiedBy = path + '.lastModifiedBy';
|
|
1219
|
-
const referencepath_lastModifiedByValidationError = validate$
|
|
1660
|
+
const referencepath_lastModifiedByValidationError = validate$r(obj_lastModifiedBy, path_lastModifiedBy);
|
|
1220
1661
|
if (referencepath_lastModifiedByValidationError !== null) {
|
|
1221
1662
|
let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_lastModifiedBy + '")\n';
|
|
1222
1663
|
message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1256,7 +1697,14 @@ function validate$7(obj, path = 'DataCleanRoomDataSpecificationRepresentation')
|
|
|
1256
1697
|
return new TypeError('Expected "string" but received "' + typeof obj_ownerOrgId + '" (at "' + path_ownerOrgId + '")');
|
|
1257
1698
|
}
|
|
1258
1699
|
}
|
|
1259
|
-
|
|
1700
|
+
if (obj.providerId !== undefined) {
|
|
1701
|
+
const obj_providerId = obj.providerId;
|
|
1702
|
+
const path_providerId = path + '.providerId';
|
|
1703
|
+
if (typeof obj_providerId !== 'string') {
|
|
1704
|
+
return new TypeError('Expected "string" but received "' + typeof obj_providerId + '" (at "' + path_providerId + '")');
|
|
1705
|
+
}
|
|
1706
|
+
}
|
|
1707
|
+
const obj_status = obj.status;
|
|
1260
1708
|
const path_status = path + '.status';
|
|
1261
1709
|
if (typeof obj_status !== 'string') {
|
|
1262
1710
|
return new TypeError('Expected "string" but received "' + typeof obj_status + '" (at "' + path_status + '")');
|
|
@@ -1282,19 +1730,19 @@ function validate$7(obj, path = 'DataCleanRoomDataSpecificationRepresentation')
|
|
|
1282
1730
|
return v_error === undefined ? null : v_error;
|
|
1283
1731
|
}
|
|
1284
1732
|
const RepresentationType$7 = 'DataCleanRoomDataSpecificationRepresentation';
|
|
1285
|
-
function keyBuilder$
|
|
1733
|
+
function keyBuilder$d(luvio, config) {
|
|
1286
1734
|
return keyPrefix + '::' + RepresentationType$7 + ':' + config.id;
|
|
1287
1735
|
}
|
|
1288
1736
|
function keyBuilderFromType$3(luvio, object) {
|
|
1289
1737
|
const keyParams = {
|
|
1290
1738
|
id: object.id
|
|
1291
1739
|
};
|
|
1292
|
-
return keyBuilder$
|
|
1740
|
+
return keyBuilder$d(luvio, keyParams);
|
|
1293
1741
|
}
|
|
1294
1742
|
function normalize$7(input, existing, path, luvio, store, timestamp) {
|
|
1295
1743
|
return input;
|
|
1296
1744
|
}
|
|
1297
|
-
const select$
|
|
1745
|
+
const select$h = function DataCleanRoomDataSpecificationRepresentationSelect() {
|
|
1298
1746
|
return {
|
|
1299
1747
|
kind: 'Fragment',
|
|
1300
1748
|
version: VERSION$7,
|
|
@@ -1423,7 +1871,7 @@ function normalize$6(input, existing, path, luvio, store, timestamp) {
|
|
|
1423
1871
|
}
|
|
1424
1872
|
return input;
|
|
1425
1873
|
}
|
|
1426
|
-
const select$
|
|
1874
|
+
const select$g = function DataCleanRoomSpecificationCollectionRepresentationSelect() {
|
|
1427
1875
|
return {
|
|
1428
1876
|
kind: 'Fragment',
|
|
1429
1877
|
version: VERSION$6,
|
|
@@ -1433,7 +1881,7 @@ const select$f = function DataCleanRoomSpecificationCollectionRepresentationSele
|
|
|
1433
1881
|
name: 'cleanroomSpecifications',
|
|
1434
1882
|
kind: 'Link',
|
|
1435
1883
|
plural: true,
|
|
1436
|
-
fragment: select$
|
|
1884
|
+
fragment: select$h()
|
|
1437
1885
|
},
|
|
1438
1886
|
{
|
|
1439
1887
|
name: 'currentPageUrl',
|
|
@@ -1549,22 +1997,22 @@ function getTypeCacheKeys$6(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
1549
1997
|
}
|
|
1550
1998
|
}
|
|
1551
1999
|
|
|
1552
|
-
function select$
|
|
1553
|
-
return select$
|
|
2000
|
+
function select$f(luvio, params) {
|
|
2001
|
+
return select$g();
|
|
1554
2002
|
}
|
|
1555
|
-
function keyBuilder$
|
|
2003
|
+
function keyBuilder$c(luvio, params) {
|
|
1556
2004
|
return keyPrefix + '::DataCleanRoomSpecificationCollectionRepresentation:(' + 'filters:' + params.queryParams.filters + ',' + 'limit:' + params.queryParams.limit + ',' + 'offset:' + params.queryParams.offset + ',' + 'orderBy:' + params.queryParams.orderBy + ')';
|
|
1557
2005
|
}
|
|
1558
|
-
function getResponseCacheKeys$
|
|
1559
|
-
getTypeCacheKeys$6(storeKeyMap, luvio, response, () => keyBuilder$
|
|
2006
|
+
function getResponseCacheKeys$9(storeKeyMap, luvio, resourceParams, response) {
|
|
2007
|
+
getTypeCacheKeys$6(storeKeyMap, luvio, response, () => keyBuilder$c(luvio, resourceParams));
|
|
1560
2008
|
}
|
|
1561
|
-
function ingestSuccess$
|
|
2009
|
+
function ingestSuccess$9(luvio, resourceParams, response, snapshotRefresh) {
|
|
1562
2010
|
const { body } = response;
|
|
1563
|
-
const key = keyBuilder$
|
|
2011
|
+
const key = keyBuilder$c(luvio, resourceParams);
|
|
1564
2012
|
luvio.storeIngest(key, ingest$6, body);
|
|
1565
2013
|
const snapshot = luvio.storeLookup({
|
|
1566
2014
|
recordId: key,
|
|
1567
|
-
node: select$
|
|
2015
|
+
node: select$f(),
|
|
1568
2016
|
variables: {},
|
|
1569
2017
|
}, snapshotRefresh);
|
|
1570
2018
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -1575,13 +2023,13 @@ function ingestSuccess$8(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
1575
2023
|
deepFreeze(snapshot.data);
|
|
1576
2024
|
return snapshot;
|
|
1577
2025
|
}
|
|
1578
|
-
function ingestError$
|
|
1579
|
-
const key = keyBuilder$
|
|
2026
|
+
function ingestError$4(luvio, params, error, snapshotRefresh) {
|
|
2027
|
+
const key = keyBuilder$c(luvio, params);
|
|
1580
2028
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
1581
2029
|
luvio.storeIngestError(key, errorSnapshot);
|
|
1582
2030
|
return errorSnapshot;
|
|
1583
2031
|
}
|
|
1584
|
-
function createResourceRequest$
|
|
2032
|
+
function createResourceRequest$9(config) {
|
|
1585
2033
|
const headers = {};
|
|
1586
2034
|
return {
|
|
1587
2035
|
baseUri: '/services/data/v65.0',
|
|
@@ -1595,108 +2043,108 @@ function createResourceRequest$8(config) {
|
|
|
1595
2043
|
};
|
|
1596
2044
|
}
|
|
1597
2045
|
|
|
1598
|
-
const adapterName$
|
|
2046
|
+
const adapterName$9 = 'getDataCleanRoomSpecificationsPaginated';
|
|
1599
2047
|
const getDataCleanRoomSpecificationsPaginated_ConfigPropertyMetadata = [
|
|
1600
2048
|
generateParamConfigMetadata('filters', false, 1 /* QueryParameter */, 0 /* String */),
|
|
1601
2049
|
generateParamConfigMetadata('limit', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
1602
2050
|
generateParamConfigMetadata('offset', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
1603
2051
|
generateParamConfigMetadata('orderBy', false, 1 /* QueryParameter */, 0 /* String */),
|
|
1604
2052
|
];
|
|
1605
|
-
const getDataCleanRoomSpecificationsPaginated_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
1606
|
-
const createResourceParams$
|
|
1607
|
-
function keyBuilder$
|
|
1608
|
-
const resourceParams = createResourceParams$
|
|
1609
|
-
return keyBuilder$
|
|
2053
|
+
const getDataCleanRoomSpecificationsPaginated_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$9, getDataCleanRoomSpecificationsPaginated_ConfigPropertyMetadata);
|
|
2054
|
+
const createResourceParams$9 = /*#__PURE__*/ createResourceParams$c(getDataCleanRoomSpecificationsPaginated_ConfigPropertyMetadata);
|
|
2055
|
+
function keyBuilder$b(luvio, config) {
|
|
2056
|
+
const resourceParams = createResourceParams$9(config);
|
|
2057
|
+
return keyBuilder$c(luvio, resourceParams);
|
|
1610
2058
|
}
|
|
1611
|
-
function typeCheckConfig$
|
|
2059
|
+
function typeCheckConfig$9(untrustedConfig) {
|
|
1612
2060
|
const config = {};
|
|
1613
|
-
typeCheckConfig$
|
|
2061
|
+
typeCheckConfig$c(untrustedConfig, config, getDataCleanRoomSpecificationsPaginated_ConfigPropertyMetadata);
|
|
1614
2062
|
return config;
|
|
1615
2063
|
}
|
|
1616
|
-
function validateAdapterConfig$
|
|
2064
|
+
function validateAdapterConfig$9(untrustedConfig, configPropertyNames) {
|
|
1617
2065
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
1618
2066
|
return null;
|
|
1619
2067
|
}
|
|
1620
2068
|
if (process.env.NODE_ENV !== 'production') {
|
|
1621
2069
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
1622
2070
|
}
|
|
1623
|
-
const config = typeCheckConfig$
|
|
2071
|
+
const config = typeCheckConfig$9(untrustedConfig);
|
|
1624
2072
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
1625
2073
|
return null;
|
|
1626
2074
|
}
|
|
1627
2075
|
return config;
|
|
1628
2076
|
}
|
|
1629
|
-
function adapterFragment$
|
|
1630
|
-
createResourceParams$
|
|
1631
|
-
return select$
|
|
2077
|
+
function adapterFragment$4(luvio, config) {
|
|
2078
|
+
createResourceParams$9(config);
|
|
2079
|
+
return select$f();
|
|
1632
2080
|
}
|
|
1633
|
-
function onFetchResponseSuccess$
|
|
1634
|
-
const snapshot = ingestSuccess$
|
|
2081
|
+
function onFetchResponseSuccess$4(luvio, config, resourceParams, response) {
|
|
2082
|
+
const snapshot = ingestSuccess$9(luvio, resourceParams, response, {
|
|
1635
2083
|
config,
|
|
1636
|
-
resolve: () => buildNetworkSnapshot$
|
|
2084
|
+
resolve: () => buildNetworkSnapshot$9(luvio, config, snapshotRefreshOptions)
|
|
1637
2085
|
});
|
|
1638
2086
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
1639
2087
|
}
|
|
1640
|
-
function onFetchResponseError$
|
|
1641
|
-
const snapshot = ingestError$
|
|
2088
|
+
function onFetchResponseError$4(luvio, config, resourceParams, response) {
|
|
2089
|
+
const snapshot = ingestError$4(luvio, resourceParams, response, {
|
|
1642
2090
|
config,
|
|
1643
|
-
resolve: () => buildNetworkSnapshot$
|
|
2091
|
+
resolve: () => buildNetworkSnapshot$9(luvio, config, snapshotRefreshOptions)
|
|
1644
2092
|
});
|
|
1645
2093
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
1646
2094
|
}
|
|
1647
|
-
function buildNetworkSnapshot$
|
|
1648
|
-
const resourceParams = createResourceParams$
|
|
1649
|
-
const request = createResourceRequest$
|
|
2095
|
+
function buildNetworkSnapshot$9(luvio, config, options) {
|
|
2096
|
+
const resourceParams = createResourceParams$9(config);
|
|
2097
|
+
const request = createResourceRequest$9(resourceParams);
|
|
1650
2098
|
return luvio.dispatchResourceRequest(request, options)
|
|
1651
2099
|
.then((response) => {
|
|
1652
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
2100
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$4(luvio, config, resourceParams, response), () => {
|
|
1653
2101
|
const cache = new StoreKeyMap();
|
|
1654
|
-
getResponseCacheKeys$
|
|
2102
|
+
getResponseCacheKeys$9(cache, luvio, resourceParams, response.body);
|
|
1655
2103
|
return cache;
|
|
1656
2104
|
});
|
|
1657
2105
|
}, (response) => {
|
|
1658
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
2106
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$4(luvio, config, resourceParams, response));
|
|
1659
2107
|
});
|
|
1660
2108
|
}
|
|
1661
|
-
function buildNetworkSnapshotCachePolicy$
|
|
1662
|
-
return buildNetworkSnapshotCachePolicy$
|
|
2109
|
+
function buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext) {
|
|
2110
|
+
return buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext, buildNetworkSnapshot$9, undefined, false);
|
|
1663
2111
|
}
|
|
1664
|
-
function buildCachedSnapshotCachePolicy$
|
|
2112
|
+
function buildCachedSnapshotCachePolicy$4(context, storeLookup) {
|
|
1665
2113
|
const { luvio, config } = context;
|
|
1666
2114
|
const selector = {
|
|
1667
|
-
recordId: keyBuilder$
|
|
1668
|
-
node: adapterFragment$
|
|
2115
|
+
recordId: keyBuilder$b(luvio, config),
|
|
2116
|
+
node: adapterFragment$4(luvio, config),
|
|
1669
2117
|
variables: {},
|
|
1670
2118
|
};
|
|
1671
2119
|
const cacheSnapshot = storeLookup(selector, {
|
|
1672
2120
|
config,
|
|
1673
|
-
resolve: () => buildNetworkSnapshot$
|
|
2121
|
+
resolve: () => buildNetworkSnapshot$9(luvio, config, snapshotRefreshOptions)
|
|
1674
2122
|
});
|
|
1675
2123
|
return cacheSnapshot;
|
|
1676
2124
|
}
|
|
1677
2125
|
const getDataCleanRoomSpecificationsPaginatedAdapterFactory = (luvio) => function dataCleanRoom__getDataCleanRoomSpecificationsPaginated(untrustedConfig, requestContext) {
|
|
1678
|
-
const config = validateAdapterConfig$
|
|
2126
|
+
const config = validateAdapterConfig$9(untrustedConfig, getDataCleanRoomSpecificationsPaginated_ConfigPropertyNames);
|
|
1679
2127
|
// Invalid or incomplete config
|
|
1680
2128
|
if (config === null) {
|
|
1681
2129
|
return null;
|
|
1682
2130
|
}
|
|
1683
2131
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
1684
|
-
buildCachedSnapshotCachePolicy$
|
|
2132
|
+
buildCachedSnapshotCachePolicy$4, buildNetworkSnapshotCachePolicy$4);
|
|
1685
2133
|
};
|
|
1686
2134
|
|
|
1687
|
-
function select$
|
|
1688
|
-
return select$
|
|
2135
|
+
function select$e(luvio, params) {
|
|
2136
|
+
return select$h();
|
|
1689
2137
|
}
|
|
1690
|
-
function getResponseCacheKeys$
|
|
2138
|
+
function getResponseCacheKeys$8(storeKeyMap, luvio, resourceParams, response) {
|
|
1691
2139
|
getTypeCacheKeys$7(storeKeyMap, luvio, response);
|
|
1692
2140
|
}
|
|
1693
|
-
function ingestSuccess$
|
|
2141
|
+
function ingestSuccess$8(luvio, resourceParams, response) {
|
|
1694
2142
|
const { body } = response;
|
|
1695
2143
|
const key = keyBuilderFromType$3(luvio, body);
|
|
1696
2144
|
luvio.storeIngest(key, ingest$7, body);
|
|
1697
2145
|
const snapshot = luvio.storeLookup({
|
|
1698
2146
|
recordId: key,
|
|
1699
|
-
node: select$
|
|
2147
|
+
node: select$e(),
|
|
1700
2148
|
variables: {},
|
|
1701
2149
|
});
|
|
1702
2150
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -1707,7 +2155,7 @@ function ingestSuccess$7(luvio, resourceParams, response) {
|
|
|
1707
2155
|
deepFreeze(snapshot.data);
|
|
1708
2156
|
return snapshot;
|
|
1709
2157
|
}
|
|
1710
|
-
function createResourceRequest$
|
|
2158
|
+
function createResourceRequest$8(config) {
|
|
1711
2159
|
const headers = {};
|
|
1712
2160
|
return {
|
|
1713
2161
|
baseUri: '/services/data/v65.0',
|
|
@@ -1721,50 +2169,53 @@ function createResourceRequest$7(config) {
|
|
|
1721
2169
|
};
|
|
1722
2170
|
}
|
|
1723
2171
|
|
|
1724
|
-
const adapterName$
|
|
2172
|
+
const adapterName$8 = 'createDataCleanRoomSpecification';
|
|
1725
2173
|
const createDataCleanRoomSpecification_ConfigPropertyMetadata = [
|
|
1726
2174
|
generateParamConfigMetadata('dataMapping', true, 2 /* Body */, 4 /* Unsupported */),
|
|
1727
2175
|
generateParamConfigMetadata('memberType', true, 2 /* Body */, 0 /* String */),
|
|
1728
2176
|
generateParamConfigMetadata('ownerOrgId', true, 2 /* Body */, 0 /* String */),
|
|
1729
|
-
generateParamConfigMetadata('templateName',
|
|
2177
|
+
generateParamConfigMetadata('templateName', false, 2 /* Body */, 0 /* String */),
|
|
1730
2178
|
generateParamConfigMetadata('name', false, 2 /* Body */, 0 /* String */),
|
|
1731
2179
|
generateParamConfigMetadata('label', true, 2 /* Body */, 0 /* String */),
|
|
1732
2180
|
generateParamConfigMetadata('description', false, 2 /* Body */, 0 /* String */),
|
|
1733
2181
|
generateParamConfigMetadata('dataspaceName', false, 2 /* Body */, 0 /* String */),
|
|
2182
|
+
generateParamConfigMetadata('templateVersionId', false, 2 /* Body */, 0 /* String */),
|
|
2183
|
+
generateParamConfigMetadata('templateType', false, 2 /* Body */, 0 /* String */),
|
|
2184
|
+
generateParamConfigMetadata('useCaseType', false, 2 /* Body */, 0 /* String */),
|
|
1734
2185
|
];
|
|
1735
|
-
const createDataCleanRoomSpecification_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
1736
|
-
const createResourceParams$
|
|
1737
|
-
function typeCheckConfig$
|
|
2186
|
+
const createDataCleanRoomSpecification_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$8, createDataCleanRoomSpecification_ConfigPropertyMetadata);
|
|
2187
|
+
const createResourceParams$8 = /*#__PURE__*/ createResourceParams$c(createDataCleanRoomSpecification_ConfigPropertyMetadata);
|
|
2188
|
+
function typeCheckConfig$8(untrustedConfig) {
|
|
1738
2189
|
const config = {};
|
|
1739
|
-
typeCheckConfig$
|
|
2190
|
+
typeCheckConfig$c(untrustedConfig, config, createDataCleanRoomSpecification_ConfigPropertyMetadata);
|
|
1740
2191
|
const untrustedConfig_dataMapping = untrustedConfig.dataMapping;
|
|
1741
2192
|
config.dataMapping = untrustedConfig_dataMapping;
|
|
1742
2193
|
return config;
|
|
1743
2194
|
}
|
|
1744
|
-
function validateAdapterConfig$
|
|
2195
|
+
function validateAdapterConfig$8(untrustedConfig, configPropertyNames) {
|
|
1745
2196
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
1746
2197
|
return null;
|
|
1747
2198
|
}
|
|
1748
2199
|
if (process.env.NODE_ENV !== 'production') {
|
|
1749
2200
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
1750
2201
|
}
|
|
1751
|
-
const config = typeCheckConfig$
|
|
2202
|
+
const config = typeCheckConfig$8(untrustedConfig);
|
|
1752
2203
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
1753
2204
|
return null;
|
|
1754
2205
|
}
|
|
1755
2206
|
return config;
|
|
1756
2207
|
}
|
|
1757
|
-
function buildNetworkSnapshot$
|
|
1758
|
-
const resourceParams = createResourceParams$
|
|
1759
|
-
const request = createResourceRequest$
|
|
2208
|
+
function buildNetworkSnapshot$8(luvio, config, options) {
|
|
2209
|
+
const resourceParams = createResourceParams$8(config);
|
|
2210
|
+
const request = createResourceRequest$8(resourceParams);
|
|
1760
2211
|
return luvio.dispatchResourceRequest(request, options)
|
|
1761
2212
|
.then((response) => {
|
|
1762
2213
|
return luvio.handleSuccessResponse(() => {
|
|
1763
|
-
const snapshot = ingestSuccess$
|
|
2214
|
+
const snapshot = ingestSuccess$8(luvio, resourceParams, response);
|
|
1764
2215
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
1765
2216
|
}, () => {
|
|
1766
2217
|
const cache = new StoreKeyMap();
|
|
1767
|
-
getResponseCacheKeys$
|
|
2218
|
+
getResponseCacheKeys$8(cache, luvio, resourceParams, response.body);
|
|
1768
2219
|
return cache;
|
|
1769
2220
|
});
|
|
1770
2221
|
}, (response) => {
|
|
@@ -1774,16 +2225,16 @@ function buildNetworkSnapshot$7(luvio, config, options) {
|
|
|
1774
2225
|
}
|
|
1775
2226
|
const createDataCleanRoomSpecificationAdapterFactory = (luvio) => {
|
|
1776
2227
|
return function createDataCleanRoomSpecification(untrustedConfig) {
|
|
1777
|
-
const config = validateAdapterConfig$
|
|
2228
|
+
const config = validateAdapterConfig$8(untrustedConfig, createDataCleanRoomSpecification_ConfigPropertyNames);
|
|
1778
2229
|
// Invalid or incomplete config
|
|
1779
2230
|
if (config === null) {
|
|
1780
2231
|
throw new Error('Invalid config for "createDataCleanRoomSpecification"');
|
|
1781
2232
|
}
|
|
1782
|
-
return buildNetworkSnapshot$
|
|
2233
|
+
return buildNetworkSnapshot$8(luvio, config);
|
|
1783
2234
|
};
|
|
1784
2235
|
};
|
|
1785
2236
|
|
|
1786
|
-
const VERSION$5 = "
|
|
2237
|
+
const VERSION$5 = "a8672aefcec1f2472ac82220f6461ae6";
|
|
1787
2238
|
function validate$5(obj, path = 'DataCleanRoomMemberRepresentation') {
|
|
1788
2239
|
const v_error = (() => {
|
|
1789
2240
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -1804,10 +2255,12 @@ function validate$5(obj, path = 'DataCleanRoomMemberRepresentation') {
|
|
|
1804
2255
|
if (typeof obj_memberId !== 'string') {
|
|
1805
2256
|
return new TypeError('Expected "string" but received "' + typeof obj_memberId + '" (at "' + path_memberId + '")');
|
|
1806
2257
|
}
|
|
1807
|
-
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
|
|
2258
|
+
if (obj.memberOrgId !== undefined) {
|
|
2259
|
+
const obj_memberOrgId = obj.memberOrgId;
|
|
2260
|
+
const path_memberOrgId = path + '.memberOrgId';
|
|
2261
|
+
if (typeof obj_memberOrgId !== 'string') {
|
|
2262
|
+
return new TypeError('Expected "string" but received "' + typeof obj_memberOrgId + '" (at "' + path_memberOrgId + '")');
|
|
2263
|
+
}
|
|
1811
2264
|
}
|
|
1812
2265
|
const obj_memberStatus = obj.memberStatus;
|
|
1813
2266
|
const path_memberStatus = path + '.memberStatus';
|
|
@@ -1835,19 +2288,19 @@ function validate$5(obj, path = 'DataCleanRoomMemberRepresentation') {
|
|
|
1835
2288
|
return v_error === undefined ? null : v_error;
|
|
1836
2289
|
}
|
|
1837
2290
|
const RepresentationType$5 = 'DataCleanRoomMemberRepresentation';
|
|
1838
|
-
function keyBuilder$
|
|
2291
|
+
function keyBuilder$a(luvio, config) {
|
|
1839
2292
|
return keyPrefix + '::' + RepresentationType$5 + ':' + config.invitationId;
|
|
1840
2293
|
}
|
|
1841
2294
|
function keyBuilderFromType$2(luvio, object) {
|
|
1842
2295
|
const keyParams = {
|
|
1843
2296
|
invitationId: object.invitationId
|
|
1844
2297
|
};
|
|
1845
|
-
return keyBuilder$
|
|
2298
|
+
return keyBuilder$a(luvio, keyParams);
|
|
1846
2299
|
}
|
|
1847
2300
|
function normalize$5(input, existing, path, luvio, store, timestamp) {
|
|
1848
2301
|
return input;
|
|
1849
2302
|
}
|
|
1850
|
-
const select$
|
|
2303
|
+
const select$d = function DataCleanRoomMemberRepresentationSelect() {
|
|
1851
2304
|
return {
|
|
1852
2305
|
kind: 'Fragment',
|
|
1853
2306
|
version: VERSION$5,
|
|
@@ -1883,7 +2336,7 @@ function getTypeCacheKeys$5(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
1883
2336
|
});
|
|
1884
2337
|
}
|
|
1885
2338
|
|
|
1886
|
-
const VERSION$4 = "
|
|
2339
|
+
const VERSION$4 = "f266e94d40f966349735e07b0c5e0721";
|
|
1887
2340
|
function validate$4(obj, path = 'DataCleanRoomCollaborationRepresentation') {
|
|
1888
2341
|
const v_error = (() => {
|
|
1889
2342
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -1899,7 +2352,7 @@ function validate$4(obj, path = 'DataCleanRoomCollaborationRepresentation') {
|
|
|
1899
2352
|
if (obj.createdBy !== undefined) {
|
|
1900
2353
|
const obj_createdBy = obj.createdBy;
|
|
1901
2354
|
const path_createdBy = path + '.createdBy';
|
|
1902
|
-
const referencepath_createdByValidationError = validate$
|
|
2355
|
+
const referencepath_createdByValidationError = validate$r(obj_createdBy, path_createdBy);
|
|
1903
2356
|
if (referencepath_createdByValidationError !== null) {
|
|
1904
2357
|
let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_createdBy + '")\n';
|
|
1905
2358
|
message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1920,6 +2373,13 @@ function validate$4(obj, path = 'DataCleanRoomCollaborationRepresentation') {
|
|
|
1920
2373
|
return new TypeError('Expected "string" but received "' + typeof obj_dataSpaceName + '" (at "' + path_dataSpaceName + '")');
|
|
1921
2374
|
}
|
|
1922
2375
|
}
|
|
2376
|
+
if (obj.dataspace !== undefined) {
|
|
2377
|
+
const obj_dataspace = obj.dataspace;
|
|
2378
|
+
const path_dataspace = path + '.dataspace';
|
|
2379
|
+
if (obj_dataspace === undefined) {
|
|
2380
|
+
return new TypeError('Expected "defined" but received "' + typeof obj_dataspace + '" (at "' + path_dataspace + '")');
|
|
2381
|
+
}
|
|
2382
|
+
}
|
|
1923
2383
|
if (obj.description !== undefined) {
|
|
1924
2384
|
const obj_description = obj.description;
|
|
1925
2385
|
const path_description = path + '.description';
|
|
@@ -1942,7 +2402,7 @@ function validate$4(obj, path = 'DataCleanRoomCollaborationRepresentation') {
|
|
|
1942
2402
|
if (obj.lastModifiedBy !== undefined) {
|
|
1943
2403
|
const obj_lastModifiedBy = obj.lastModifiedBy;
|
|
1944
2404
|
const path_lastModifiedBy = path + '.lastModifiedBy';
|
|
1945
|
-
const referencepath_lastModifiedByValidationError = validate$
|
|
2405
|
+
const referencepath_lastModifiedByValidationError = validate$r(obj_lastModifiedBy, path_lastModifiedBy);
|
|
1946
2406
|
if (referencepath_lastModifiedByValidationError !== null) {
|
|
1947
2407
|
let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_lastModifiedBy + '")\n';
|
|
1948
2408
|
message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2009,19 +2469,19 @@ function validate$4(obj, path = 'DataCleanRoomCollaborationRepresentation') {
|
|
|
2009
2469
|
return v_error === undefined ? null : v_error;
|
|
2010
2470
|
}
|
|
2011
2471
|
const RepresentationType$4 = 'DataCleanRoomCollaborationRepresentation';
|
|
2012
|
-
function keyBuilder$
|
|
2472
|
+
function keyBuilder$9(luvio, config) {
|
|
2013
2473
|
return keyPrefix + '::' + RepresentationType$4 + ':' + config.id;
|
|
2014
2474
|
}
|
|
2015
2475
|
function keyBuilderFromType$1(luvio, object) {
|
|
2016
2476
|
const keyParams = {
|
|
2017
2477
|
id: object.id
|
|
2018
2478
|
};
|
|
2019
|
-
return keyBuilder$
|
|
2479
|
+
return keyBuilder$9(luvio, keyParams);
|
|
2020
2480
|
}
|
|
2021
2481
|
function normalize$4(input, existing, path, luvio, store, timestamp) {
|
|
2022
2482
|
return input;
|
|
2023
2483
|
}
|
|
2024
|
-
const select$
|
|
2484
|
+
const select$c = function DataCleanRoomCollaborationRepresentationSelect() {
|
|
2025
2485
|
return {
|
|
2026
2486
|
kind: 'Fragment',
|
|
2027
2487
|
version: VERSION$4,
|
|
@@ -2137,7 +2597,7 @@ const RepresentationType$3 = 'DataCleanRoomCollaborationCollectionRepresentation
|
|
|
2137
2597
|
function normalize$3(input, existing, path, luvio, store, timestamp) {
|
|
2138
2598
|
return input;
|
|
2139
2599
|
}
|
|
2140
|
-
const select$
|
|
2600
|
+
const select$b = function DataCleanRoomCollaborationCollectionRepresentationSelect() {
|
|
2141
2601
|
return {
|
|
2142
2602
|
kind: 'Fragment',
|
|
2143
2603
|
version: VERSION$3,
|
|
@@ -2173,22 +2633,22 @@ function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
2173
2633
|
});
|
|
2174
2634
|
}
|
|
2175
2635
|
|
|
2176
|
-
function select$
|
|
2177
|
-
return select$
|
|
2636
|
+
function select$a(luvio, params) {
|
|
2637
|
+
return select$b();
|
|
2178
2638
|
}
|
|
2179
|
-
function keyBuilder$
|
|
2639
|
+
function keyBuilder$8(luvio, params) {
|
|
2180
2640
|
return keyPrefix + '::DataCleanRoomCollaborationCollectionRepresentation:(' + 'filters:' + params.queryParams.filters + ',' + 'limit:' + params.queryParams.limit + ',' + 'offset:' + params.queryParams.offset + ',' + 'orderBy:' + params.queryParams.orderBy + ')';
|
|
2181
2641
|
}
|
|
2182
|
-
function getResponseCacheKeys$
|
|
2183
|
-
getTypeCacheKeys$3(storeKeyMap, luvio, response, () => keyBuilder$
|
|
2642
|
+
function getResponseCacheKeys$7(storeKeyMap, luvio, resourceParams, response) {
|
|
2643
|
+
getTypeCacheKeys$3(storeKeyMap, luvio, response, () => keyBuilder$8(luvio, resourceParams));
|
|
2184
2644
|
}
|
|
2185
|
-
function ingestSuccess$
|
|
2645
|
+
function ingestSuccess$7(luvio, resourceParams, response, snapshotRefresh) {
|
|
2186
2646
|
const { body } = response;
|
|
2187
|
-
const key = keyBuilder$
|
|
2647
|
+
const key = keyBuilder$8(luvio, resourceParams);
|
|
2188
2648
|
luvio.storeIngest(key, ingest$3, body);
|
|
2189
2649
|
const snapshot = luvio.storeLookup({
|
|
2190
2650
|
recordId: key,
|
|
2191
|
-
node: select$
|
|
2651
|
+
node: select$a(),
|
|
2192
2652
|
variables: {},
|
|
2193
2653
|
}, snapshotRefresh);
|
|
2194
2654
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -2199,13 +2659,13 @@ function ingestSuccess$6(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
2199
2659
|
deepFreeze(snapshot.data);
|
|
2200
2660
|
return snapshot;
|
|
2201
2661
|
}
|
|
2202
|
-
function ingestError$
|
|
2203
|
-
const key = keyBuilder$
|
|
2662
|
+
function ingestError$3(luvio, params, error, snapshotRefresh) {
|
|
2663
|
+
const key = keyBuilder$8(luvio, params);
|
|
2204
2664
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
2205
2665
|
luvio.storeIngestError(key, errorSnapshot);
|
|
2206
2666
|
return errorSnapshot;
|
|
2207
2667
|
}
|
|
2208
|
-
function createResourceRequest$
|
|
2668
|
+
function createResourceRequest$7(config) {
|
|
2209
2669
|
const headers = {};
|
|
2210
2670
|
return {
|
|
2211
2671
|
baseUri: '/services/data/v65.0',
|
|
@@ -2219,108 +2679,108 @@ function createResourceRequest$6(config) {
|
|
|
2219
2679
|
};
|
|
2220
2680
|
}
|
|
2221
2681
|
|
|
2222
|
-
const adapterName$
|
|
2682
|
+
const adapterName$7 = 'getAllDataCleanRoomsPaginated';
|
|
2223
2683
|
const getAllDataCleanRoomsPaginated_ConfigPropertyMetadata = [
|
|
2224
2684
|
generateParamConfigMetadata('filters', false, 1 /* QueryParameter */, 0 /* String */),
|
|
2225
2685
|
generateParamConfigMetadata('limit', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
2226
2686
|
generateParamConfigMetadata('offset', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
2227
2687
|
generateParamConfigMetadata('orderBy', false, 1 /* QueryParameter */, 0 /* String */),
|
|
2228
2688
|
];
|
|
2229
|
-
const getAllDataCleanRoomsPaginated_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
2230
|
-
const createResourceParams$
|
|
2231
|
-
function keyBuilder$
|
|
2232
|
-
const resourceParams = createResourceParams$
|
|
2233
|
-
return keyBuilder$
|
|
2689
|
+
const getAllDataCleanRoomsPaginated_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$7, getAllDataCleanRoomsPaginated_ConfigPropertyMetadata);
|
|
2690
|
+
const createResourceParams$7 = /*#__PURE__*/ createResourceParams$c(getAllDataCleanRoomsPaginated_ConfigPropertyMetadata);
|
|
2691
|
+
function keyBuilder$7(luvio, config) {
|
|
2692
|
+
const resourceParams = createResourceParams$7(config);
|
|
2693
|
+
return keyBuilder$8(luvio, resourceParams);
|
|
2234
2694
|
}
|
|
2235
|
-
function typeCheckConfig$
|
|
2695
|
+
function typeCheckConfig$7(untrustedConfig) {
|
|
2236
2696
|
const config = {};
|
|
2237
|
-
typeCheckConfig$
|
|
2697
|
+
typeCheckConfig$c(untrustedConfig, config, getAllDataCleanRoomsPaginated_ConfigPropertyMetadata);
|
|
2238
2698
|
return config;
|
|
2239
2699
|
}
|
|
2240
|
-
function validateAdapterConfig$
|
|
2700
|
+
function validateAdapterConfig$7(untrustedConfig, configPropertyNames) {
|
|
2241
2701
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
2242
2702
|
return null;
|
|
2243
2703
|
}
|
|
2244
2704
|
if (process.env.NODE_ENV !== 'production') {
|
|
2245
2705
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
2246
2706
|
}
|
|
2247
|
-
const config = typeCheckConfig$
|
|
2707
|
+
const config = typeCheckConfig$7(untrustedConfig);
|
|
2248
2708
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
2249
2709
|
return null;
|
|
2250
2710
|
}
|
|
2251
2711
|
return config;
|
|
2252
2712
|
}
|
|
2253
|
-
function adapterFragment$
|
|
2254
|
-
createResourceParams$
|
|
2255
|
-
return select$
|
|
2713
|
+
function adapterFragment$3(luvio, config) {
|
|
2714
|
+
createResourceParams$7(config);
|
|
2715
|
+
return select$a();
|
|
2256
2716
|
}
|
|
2257
|
-
function onFetchResponseSuccess$
|
|
2258
|
-
const snapshot = ingestSuccess$
|
|
2717
|
+
function onFetchResponseSuccess$3(luvio, config, resourceParams, response) {
|
|
2718
|
+
const snapshot = ingestSuccess$7(luvio, resourceParams, response, {
|
|
2259
2719
|
config,
|
|
2260
|
-
resolve: () => buildNetworkSnapshot$
|
|
2720
|
+
resolve: () => buildNetworkSnapshot$7(luvio, config, snapshotRefreshOptions)
|
|
2261
2721
|
});
|
|
2262
2722
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
2263
2723
|
}
|
|
2264
|
-
function onFetchResponseError$
|
|
2265
|
-
const snapshot = ingestError$
|
|
2724
|
+
function onFetchResponseError$3(luvio, config, resourceParams, response) {
|
|
2725
|
+
const snapshot = ingestError$3(luvio, resourceParams, response, {
|
|
2266
2726
|
config,
|
|
2267
|
-
resolve: () => buildNetworkSnapshot$
|
|
2727
|
+
resolve: () => buildNetworkSnapshot$7(luvio, config, snapshotRefreshOptions)
|
|
2268
2728
|
});
|
|
2269
2729
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
2270
2730
|
}
|
|
2271
|
-
function buildNetworkSnapshot$
|
|
2272
|
-
const resourceParams = createResourceParams$
|
|
2273
|
-
const request = createResourceRequest$
|
|
2731
|
+
function buildNetworkSnapshot$7(luvio, config, options) {
|
|
2732
|
+
const resourceParams = createResourceParams$7(config);
|
|
2733
|
+
const request = createResourceRequest$7(resourceParams);
|
|
2274
2734
|
return luvio.dispatchResourceRequest(request, options)
|
|
2275
2735
|
.then((response) => {
|
|
2276
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
2736
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$3(luvio, config, resourceParams, response), () => {
|
|
2277
2737
|
const cache = new StoreKeyMap();
|
|
2278
|
-
getResponseCacheKeys$
|
|
2738
|
+
getResponseCacheKeys$7(cache, luvio, resourceParams, response.body);
|
|
2279
2739
|
return cache;
|
|
2280
2740
|
});
|
|
2281
2741
|
}, (response) => {
|
|
2282
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
2742
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$3(luvio, config, resourceParams, response));
|
|
2283
2743
|
});
|
|
2284
2744
|
}
|
|
2285
|
-
function buildNetworkSnapshotCachePolicy$
|
|
2286
|
-
return buildNetworkSnapshotCachePolicy$
|
|
2745
|
+
function buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext) {
|
|
2746
|
+
return buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext, buildNetworkSnapshot$7, undefined, false);
|
|
2287
2747
|
}
|
|
2288
|
-
function buildCachedSnapshotCachePolicy$
|
|
2748
|
+
function buildCachedSnapshotCachePolicy$3(context, storeLookup) {
|
|
2289
2749
|
const { luvio, config } = context;
|
|
2290
2750
|
const selector = {
|
|
2291
|
-
recordId: keyBuilder$
|
|
2292
|
-
node: adapterFragment$
|
|
2751
|
+
recordId: keyBuilder$7(luvio, config),
|
|
2752
|
+
node: adapterFragment$3(luvio, config),
|
|
2293
2753
|
variables: {},
|
|
2294
2754
|
};
|
|
2295
2755
|
const cacheSnapshot = storeLookup(selector, {
|
|
2296
2756
|
config,
|
|
2297
|
-
resolve: () => buildNetworkSnapshot$
|
|
2757
|
+
resolve: () => buildNetworkSnapshot$7(luvio, config, snapshotRefreshOptions)
|
|
2298
2758
|
});
|
|
2299
2759
|
return cacheSnapshot;
|
|
2300
2760
|
}
|
|
2301
2761
|
const getAllDataCleanRoomsPaginatedAdapterFactory = (luvio) => function dataCleanRoom__getAllDataCleanRoomsPaginated(untrustedConfig, requestContext) {
|
|
2302
|
-
const config = validateAdapterConfig$
|
|
2762
|
+
const config = validateAdapterConfig$7(untrustedConfig, getAllDataCleanRoomsPaginated_ConfigPropertyNames);
|
|
2303
2763
|
// Invalid or incomplete config
|
|
2304
2764
|
if (config === null) {
|
|
2305
2765
|
return null;
|
|
2306
2766
|
}
|
|
2307
2767
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
2308
|
-
buildCachedSnapshotCachePolicy$
|
|
2768
|
+
buildCachedSnapshotCachePolicy$3, buildNetworkSnapshotCachePolicy$3);
|
|
2309
2769
|
};
|
|
2310
2770
|
|
|
2311
|
-
function select$
|
|
2312
|
-
return select$
|
|
2771
|
+
function select$9(luvio, params) {
|
|
2772
|
+
return select$c();
|
|
2313
2773
|
}
|
|
2314
|
-
function getResponseCacheKeys$
|
|
2774
|
+
function getResponseCacheKeys$6(storeKeyMap, luvio, resourceParams, response) {
|
|
2315
2775
|
getTypeCacheKeys$4(storeKeyMap, luvio, response);
|
|
2316
2776
|
}
|
|
2317
|
-
function ingestSuccess$
|
|
2777
|
+
function ingestSuccess$6(luvio, resourceParams, response) {
|
|
2318
2778
|
const { body } = response;
|
|
2319
2779
|
const key = keyBuilderFromType$1(luvio, body);
|
|
2320
2780
|
luvio.storeIngest(key, ingest$4, body);
|
|
2321
2781
|
const snapshot = luvio.storeLookup({
|
|
2322
2782
|
recordId: key,
|
|
2323
|
-
node: select$
|
|
2783
|
+
node: select$9(),
|
|
2324
2784
|
variables: {},
|
|
2325
2785
|
});
|
|
2326
2786
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -2331,7 +2791,7 @@ function ingestSuccess$5(luvio, resourceParams, response) {
|
|
|
2331
2791
|
deepFreeze(snapshot.data);
|
|
2332
2792
|
return snapshot;
|
|
2333
2793
|
}
|
|
2334
|
-
function createResourceRequest$
|
|
2794
|
+
function createResourceRequest$6(config) {
|
|
2335
2795
|
const headers = {};
|
|
2336
2796
|
return {
|
|
2337
2797
|
baseUri: '/services/data/v65.0',
|
|
@@ -2345,48 +2805,49 @@ function createResourceRequest$5(config) {
|
|
|
2345
2805
|
};
|
|
2346
2806
|
}
|
|
2347
2807
|
|
|
2348
|
-
const adapterName$
|
|
2808
|
+
const adapterName$6 = 'createDataCleanRoomCollaboration';
|
|
2349
2809
|
const createDataCleanRoomCollaboration_ConfigPropertyMetadata = [
|
|
2350
2810
|
generateParamConfigMetadata('apiKey', false, 2 /* Body */, 0 /* String */),
|
|
2351
2811
|
generateParamConfigMetadata('dataCloudOrgId', true, 2 /* Body */, 0 /* String */),
|
|
2352
2812
|
generateParamConfigMetadata('dataSpaceName', false, 2 /* Body */, 0 /* String */),
|
|
2353
2813
|
generateParamConfigMetadata('providerDevName', true, 2 /* Body */, 0 /* String */),
|
|
2354
2814
|
generateParamConfigMetadata('specificationDevName', true, 2 /* Body */, 0 /* String */),
|
|
2355
|
-
generateParamConfigMetadata('templateName',
|
|
2815
|
+
generateParamConfigMetadata('templateName', false, 2 /* Body */, 0 /* String */),
|
|
2356
2816
|
generateParamConfigMetadata('label', true, 2 /* Body */, 0 /* String */),
|
|
2357
2817
|
generateParamConfigMetadata('description', false, 2 /* Body */, 0 /* String */),
|
|
2818
|
+
generateParamConfigMetadata('templateVersionId', false, 2 /* Body */, 0 /* String */),
|
|
2358
2819
|
];
|
|
2359
|
-
const createDataCleanRoomCollaboration_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
2360
|
-
const createResourceParams$
|
|
2361
|
-
function typeCheckConfig$
|
|
2820
|
+
const createDataCleanRoomCollaboration_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, createDataCleanRoomCollaboration_ConfigPropertyMetadata);
|
|
2821
|
+
const createResourceParams$6 = /*#__PURE__*/ createResourceParams$c(createDataCleanRoomCollaboration_ConfigPropertyMetadata);
|
|
2822
|
+
function typeCheckConfig$6(untrustedConfig) {
|
|
2362
2823
|
const config = {};
|
|
2363
|
-
typeCheckConfig$
|
|
2824
|
+
typeCheckConfig$c(untrustedConfig, config, createDataCleanRoomCollaboration_ConfigPropertyMetadata);
|
|
2364
2825
|
return config;
|
|
2365
2826
|
}
|
|
2366
|
-
function validateAdapterConfig$
|
|
2827
|
+
function validateAdapterConfig$6(untrustedConfig, configPropertyNames) {
|
|
2367
2828
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
2368
2829
|
return null;
|
|
2369
2830
|
}
|
|
2370
2831
|
if (process.env.NODE_ENV !== 'production') {
|
|
2371
2832
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
2372
2833
|
}
|
|
2373
|
-
const config = typeCheckConfig$
|
|
2834
|
+
const config = typeCheckConfig$6(untrustedConfig);
|
|
2374
2835
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
2375
2836
|
return null;
|
|
2376
2837
|
}
|
|
2377
2838
|
return config;
|
|
2378
2839
|
}
|
|
2379
|
-
function buildNetworkSnapshot$
|
|
2380
|
-
const resourceParams = createResourceParams$
|
|
2381
|
-
const request = createResourceRequest$
|
|
2840
|
+
function buildNetworkSnapshot$6(luvio, config, options) {
|
|
2841
|
+
const resourceParams = createResourceParams$6(config);
|
|
2842
|
+
const request = createResourceRequest$6(resourceParams);
|
|
2382
2843
|
return luvio.dispatchResourceRequest(request, options)
|
|
2383
2844
|
.then((response) => {
|
|
2384
2845
|
return luvio.handleSuccessResponse(() => {
|
|
2385
|
-
const snapshot = ingestSuccess$
|
|
2846
|
+
const snapshot = ingestSuccess$6(luvio, resourceParams, response);
|
|
2386
2847
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
2387
2848
|
}, () => {
|
|
2388
2849
|
const cache = new StoreKeyMap();
|
|
2389
|
-
getResponseCacheKeys$
|
|
2850
|
+
getResponseCacheKeys$6(cache, luvio, resourceParams, response.body);
|
|
2390
2851
|
return cache;
|
|
2391
2852
|
});
|
|
2392
2853
|
}, (response) => {
|
|
@@ -2396,12 +2857,12 @@ function buildNetworkSnapshot$5(luvio, config, options) {
|
|
|
2396
2857
|
}
|
|
2397
2858
|
const createDataCleanRoomCollaborationAdapterFactory = (luvio) => {
|
|
2398
2859
|
return function createDataCleanRoomCollaboration(untrustedConfig) {
|
|
2399
|
-
const config = validateAdapterConfig$
|
|
2860
|
+
const config = validateAdapterConfig$6(untrustedConfig, createDataCleanRoomCollaboration_ConfigPropertyNames);
|
|
2400
2861
|
// Invalid or incomplete config
|
|
2401
2862
|
if (config === null) {
|
|
2402
2863
|
throw new Error('Invalid config for "createDataCleanRoomCollaboration"');
|
|
2403
2864
|
}
|
|
2404
|
-
return buildNetworkSnapshot$
|
|
2865
|
+
return buildNetworkSnapshot$6(luvio, config);
|
|
2405
2866
|
};
|
|
2406
2867
|
};
|
|
2407
2868
|
|
|
@@ -2485,7 +2946,7 @@ const RepresentationType$2 = 'DataCleanRoomTemplateCollectionRepresentation';
|
|
|
2485
2946
|
function normalize$2(input, existing, path, luvio, store, timestamp) {
|
|
2486
2947
|
return input;
|
|
2487
2948
|
}
|
|
2488
|
-
const select$
|
|
2949
|
+
const select$8 = function DataCleanRoomTemplateCollectionRepresentationSelect() {
|
|
2489
2950
|
return {
|
|
2490
2951
|
kind: 'Fragment',
|
|
2491
2952
|
version: VERSION$2,
|
|
@@ -2521,22 +2982,22 @@ function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
2521
2982
|
});
|
|
2522
2983
|
}
|
|
2523
2984
|
|
|
2524
|
-
function select$
|
|
2525
|
-
return select$
|
|
2985
|
+
function select$7(luvio, params) {
|
|
2986
|
+
return select$8();
|
|
2526
2987
|
}
|
|
2527
|
-
function keyBuilder$
|
|
2528
|
-
return keyPrefix + '::DataCleanRoomTemplateCollectionRepresentation:(' + 'limit:' + params.queryParams.limit + ',' + 'offset:' + params.queryParams.offset + ',' + 'orderBy:' + params.queryParams.orderBy + ')';
|
|
2988
|
+
function keyBuilder$6(luvio, params) {
|
|
2989
|
+
return keyPrefix + '::DataCleanRoomTemplateCollectionRepresentation:(' + 'limit:' + params.queryParams.limit + ',' + 'offset:' + params.queryParams.offset + ',' + 'orderBy:' + params.queryParams.orderBy + ',' + 'filters:' + params.queryParams.filters + ')';
|
|
2529
2990
|
}
|
|
2530
|
-
function getResponseCacheKeys$
|
|
2531
|
-
getTypeCacheKeys$2(storeKeyMap, luvio, response, () => keyBuilder$
|
|
2991
|
+
function getResponseCacheKeys$5(storeKeyMap, luvio, resourceParams, response) {
|
|
2992
|
+
getTypeCacheKeys$2(storeKeyMap, luvio, response, () => keyBuilder$6(luvio, resourceParams));
|
|
2532
2993
|
}
|
|
2533
|
-
function ingestSuccess$
|
|
2994
|
+
function ingestSuccess$5(luvio, resourceParams, response, snapshotRefresh) {
|
|
2534
2995
|
const { body } = response;
|
|
2535
|
-
const key = keyBuilder$
|
|
2996
|
+
const key = keyBuilder$6(luvio, resourceParams);
|
|
2536
2997
|
luvio.storeIngest(key, ingest$2, body);
|
|
2537
2998
|
const snapshot = luvio.storeLookup({
|
|
2538
2999
|
recordId: key,
|
|
2539
|
-
node: select$
|
|
3000
|
+
node: select$7(),
|
|
2540
3001
|
variables: {},
|
|
2541
3002
|
}, snapshotRefresh);
|
|
2542
3003
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -2547,13 +3008,13 @@ function ingestSuccess$4(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
2547
3008
|
deepFreeze(snapshot.data);
|
|
2548
3009
|
return snapshot;
|
|
2549
3010
|
}
|
|
2550
|
-
function ingestError$
|
|
2551
|
-
const key = keyBuilder$
|
|
3011
|
+
function ingestError$2(luvio, params, error, snapshotRefresh) {
|
|
3012
|
+
const key = keyBuilder$6(luvio, params);
|
|
2552
3013
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
2553
3014
|
luvio.storeIngestError(key, errorSnapshot);
|
|
2554
3015
|
return errorSnapshot;
|
|
2555
3016
|
}
|
|
2556
|
-
function createResourceRequest$
|
|
3017
|
+
function createResourceRequest$5(config) {
|
|
2557
3018
|
const headers = {};
|
|
2558
3019
|
return {
|
|
2559
3020
|
baseUri: '/services/data/v65.0',
|
|
@@ -2567,107 +3028,108 @@ function createResourceRequest$4(config) {
|
|
|
2567
3028
|
};
|
|
2568
3029
|
}
|
|
2569
3030
|
|
|
2570
|
-
const adapterName$
|
|
3031
|
+
const adapterName$5 = 'getDataCleanRoomTemplatePaginated';
|
|
2571
3032
|
const getDataCleanRoomTemplatePaginated_ConfigPropertyMetadata = [
|
|
2572
3033
|
generateParamConfigMetadata('limit', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
2573
3034
|
generateParamConfigMetadata('offset', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
2574
3035
|
generateParamConfigMetadata('orderBy', false, 1 /* QueryParameter */, 0 /* String */),
|
|
3036
|
+
generateParamConfigMetadata('filters', false, 1 /* QueryParameter */, 0 /* String */),
|
|
2575
3037
|
];
|
|
2576
|
-
const getDataCleanRoomTemplatePaginated_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
2577
|
-
const createResourceParams$
|
|
2578
|
-
function keyBuilder$
|
|
2579
|
-
const resourceParams = createResourceParams$
|
|
2580
|
-
return keyBuilder$
|
|
3038
|
+
const getDataCleanRoomTemplatePaginated_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, getDataCleanRoomTemplatePaginated_ConfigPropertyMetadata);
|
|
3039
|
+
const createResourceParams$5 = /*#__PURE__*/ createResourceParams$c(getDataCleanRoomTemplatePaginated_ConfigPropertyMetadata);
|
|
3040
|
+
function keyBuilder$5(luvio, config) {
|
|
3041
|
+
const resourceParams = createResourceParams$5(config);
|
|
3042
|
+
return keyBuilder$6(luvio, resourceParams);
|
|
2581
3043
|
}
|
|
2582
|
-
function typeCheckConfig$
|
|
3044
|
+
function typeCheckConfig$5(untrustedConfig) {
|
|
2583
3045
|
const config = {};
|
|
2584
|
-
typeCheckConfig$
|
|
3046
|
+
typeCheckConfig$c(untrustedConfig, config, getDataCleanRoomTemplatePaginated_ConfigPropertyMetadata);
|
|
2585
3047
|
return config;
|
|
2586
3048
|
}
|
|
2587
|
-
function validateAdapterConfig$
|
|
3049
|
+
function validateAdapterConfig$5(untrustedConfig, configPropertyNames) {
|
|
2588
3050
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
2589
3051
|
return null;
|
|
2590
3052
|
}
|
|
2591
3053
|
if (process.env.NODE_ENV !== 'production') {
|
|
2592
3054
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
2593
3055
|
}
|
|
2594
|
-
const config = typeCheckConfig$
|
|
3056
|
+
const config = typeCheckConfig$5(untrustedConfig);
|
|
2595
3057
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
2596
3058
|
return null;
|
|
2597
3059
|
}
|
|
2598
3060
|
return config;
|
|
2599
3061
|
}
|
|
2600
|
-
function adapterFragment$
|
|
2601
|
-
createResourceParams$
|
|
2602
|
-
return select$
|
|
3062
|
+
function adapterFragment$2(luvio, config) {
|
|
3063
|
+
createResourceParams$5(config);
|
|
3064
|
+
return select$7();
|
|
2603
3065
|
}
|
|
2604
|
-
function onFetchResponseSuccess$
|
|
2605
|
-
const snapshot = ingestSuccess$
|
|
3066
|
+
function onFetchResponseSuccess$2(luvio, config, resourceParams, response) {
|
|
3067
|
+
const snapshot = ingestSuccess$5(luvio, resourceParams, response, {
|
|
2606
3068
|
config,
|
|
2607
|
-
resolve: () => buildNetworkSnapshot$
|
|
3069
|
+
resolve: () => buildNetworkSnapshot$5(luvio, config, snapshotRefreshOptions)
|
|
2608
3070
|
});
|
|
2609
3071
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
2610
3072
|
}
|
|
2611
|
-
function onFetchResponseError$
|
|
2612
|
-
const snapshot = ingestError$
|
|
3073
|
+
function onFetchResponseError$2(luvio, config, resourceParams, response) {
|
|
3074
|
+
const snapshot = ingestError$2(luvio, resourceParams, response, {
|
|
2613
3075
|
config,
|
|
2614
|
-
resolve: () => buildNetworkSnapshot$
|
|
3076
|
+
resolve: () => buildNetworkSnapshot$5(luvio, config, snapshotRefreshOptions)
|
|
2615
3077
|
});
|
|
2616
3078
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
2617
3079
|
}
|
|
2618
|
-
function buildNetworkSnapshot$
|
|
2619
|
-
const resourceParams = createResourceParams$
|
|
2620
|
-
const request = createResourceRequest$
|
|
3080
|
+
function buildNetworkSnapshot$5(luvio, config, options) {
|
|
3081
|
+
const resourceParams = createResourceParams$5(config);
|
|
3082
|
+
const request = createResourceRequest$5(resourceParams);
|
|
2621
3083
|
return luvio.dispatchResourceRequest(request, options)
|
|
2622
3084
|
.then((response) => {
|
|
2623
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
3085
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$2(luvio, config, resourceParams, response), () => {
|
|
2624
3086
|
const cache = new StoreKeyMap();
|
|
2625
|
-
getResponseCacheKeys$
|
|
3087
|
+
getResponseCacheKeys$5(cache, luvio, resourceParams, response.body);
|
|
2626
3088
|
return cache;
|
|
2627
3089
|
});
|
|
2628
3090
|
}, (response) => {
|
|
2629
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
3091
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$2(luvio, config, resourceParams, response));
|
|
2630
3092
|
});
|
|
2631
3093
|
}
|
|
2632
|
-
function buildNetworkSnapshotCachePolicy$
|
|
2633
|
-
return buildNetworkSnapshotCachePolicy$
|
|
3094
|
+
function buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext) {
|
|
3095
|
+
return buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext, buildNetworkSnapshot$5, undefined, false);
|
|
2634
3096
|
}
|
|
2635
|
-
function buildCachedSnapshotCachePolicy$
|
|
3097
|
+
function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
|
|
2636
3098
|
const { luvio, config } = context;
|
|
2637
3099
|
const selector = {
|
|
2638
|
-
recordId: keyBuilder$
|
|
2639
|
-
node: adapterFragment$
|
|
3100
|
+
recordId: keyBuilder$5(luvio, config),
|
|
3101
|
+
node: adapterFragment$2(luvio, config),
|
|
2640
3102
|
variables: {},
|
|
2641
3103
|
};
|
|
2642
3104
|
const cacheSnapshot = storeLookup(selector, {
|
|
2643
3105
|
config,
|
|
2644
|
-
resolve: () => buildNetworkSnapshot$
|
|
3106
|
+
resolve: () => buildNetworkSnapshot$5(luvio, config, snapshotRefreshOptions)
|
|
2645
3107
|
});
|
|
2646
3108
|
return cacheSnapshot;
|
|
2647
3109
|
}
|
|
2648
3110
|
const getDataCleanRoomTemplatePaginatedAdapterFactory = (luvio) => function dataCleanRoom__getDataCleanRoomTemplatePaginated(untrustedConfig, requestContext) {
|
|
2649
|
-
const config = validateAdapterConfig$
|
|
3111
|
+
const config = validateAdapterConfig$5(untrustedConfig, getDataCleanRoomTemplatePaginated_ConfigPropertyNames);
|
|
2650
3112
|
// Invalid or incomplete config
|
|
2651
3113
|
if (config === null) {
|
|
2652
3114
|
return null;
|
|
2653
3115
|
}
|
|
2654
3116
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
2655
|
-
buildCachedSnapshotCachePolicy$
|
|
3117
|
+
buildCachedSnapshotCachePolicy$2, buildNetworkSnapshotCachePolicy$2);
|
|
2656
3118
|
};
|
|
2657
3119
|
|
|
2658
|
-
function select$
|
|
2659
|
-
return select$
|
|
3120
|
+
function select$6(luvio, params) {
|
|
3121
|
+
return select$d();
|
|
2660
3122
|
}
|
|
2661
|
-
function getResponseCacheKeys$
|
|
3123
|
+
function getResponseCacheKeys$4(storeKeyMap, luvio, resourceParams, response) {
|
|
2662
3124
|
getTypeCacheKeys$5(storeKeyMap, luvio, response);
|
|
2663
3125
|
}
|
|
2664
|
-
function ingestSuccess$
|
|
3126
|
+
function ingestSuccess$4(luvio, resourceParams, response) {
|
|
2665
3127
|
const { body } = response;
|
|
2666
3128
|
const key = keyBuilderFromType$2(luvio, body);
|
|
2667
3129
|
luvio.storeIngest(key, ingest$5, body);
|
|
2668
3130
|
const snapshot = luvio.storeLookup({
|
|
2669
3131
|
recordId: key,
|
|
2670
|
-
node: select$
|
|
3132
|
+
node: select$6(),
|
|
2671
3133
|
variables: {},
|
|
2672
3134
|
});
|
|
2673
3135
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -2678,12 +3140,12 @@ function ingestSuccess$3(luvio, resourceParams, response) {
|
|
|
2678
3140
|
deepFreeze(snapshot.data);
|
|
2679
3141
|
return snapshot;
|
|
2680
3142
|
}
|
|
2681
|
-
function createResourceRequest$
|
|
3143
|
+
function createResourceRequest$4(config) {
|
|
2682
3144
|
const headers = {};
|
|
2683
3145
|
return {
|
|
2684
3146
|
baseUri: '/services/data/v65.0',
|
|
2685
3147
|
basePath: '/ssot/data-clean-room/collaborations/' + config.urlParams.collaborationIdOrApiName + '/actions/accept-invitation',
|
|
2686
|
-
method: '
|
|
3148
|
+
method: 'post',
|
|
2687
3149
|
body: config.body,
|
|
2688
3150
|
urlParams: config.urlParams,
|
|
2689
3151
|
queryParams: {},
|
|
@@ -2692,43 +3154,43 @@ function createResourceRequest$3(config) {
|
|
|
2692
3154
|
};
|
|
2693
3155
|
}
|
|
2694
3156
|
|
|
2695
|
-
const adapterName$
|
|
3157
|
+
const adapterName$4 = 'acceptDataCleanRoomInvitation';
|
|
2696
3158
|
const acceptDataCleanRoomInvitation_ConfigPropertyMetadata = [
|
|
2697
3159
|
generateParamConfigMetadata('collaborationIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
2698
3160
|
generateParamConfigMetadata('invitationId', true, 2 /* Body */, 0 /* String */),
|
|
2699
3161
|
generateParamConfigMetadata('specificationId', true, 2 /* Body */, 0 /* String */),
|
|
2700
3162
|
];
|
|
2701
|
-
const acceptDataCleanRoomInvitation_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
2702
|
-
const createResourceParams$
|
|
2703
|
-
function typeCheckConfig$
|
|
3163
|
+
const acceptDataCleanRoomInvitation_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, acceptDataCleanRoomInvitation_ConfigPropertyMetadata);
|
|
3164
|
+
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$c(acceptDataCleanRoomInvitation_ConfigPropertyMetadata);
|
|
3165
|
+
function typeCheckConfig$4(untrustedConfig) {
|
|
2704
3166
|
const config = {};
|
|
2705
|
-
typeCheckConfig$
|
|
3167
|
+
typeCheckConfig$c(untrustedConfig, config, acceptDataCleanRoomInvitation_ConfigPropertyMetadata);
|
|
2706
3168
|
return config;
|
|
2707
3169
|
}
|
|
2708
|
-
function validateAdapterConfig$
|
|
3170
|
+
function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
|
|
2709
3171
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
2710
3172
|
return null;
|
|
2711
3173
|
}
|
|
2712
3174
|
if (process.env.NODE_ENV !== 'production') {
|
|
2713
3175
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
2714
3176
|
}
|
|
2715
|
-
const config = typeCheckConfig$
|
|
3177
|
+
const config = typeCheckConfig$4(untrustedConfig);
|
|
2716
3178
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
2717
3179
|
return null;
|
|
2718
3180
|
}
|
|
2719
3181
|
return config;
|
|
2720
3182
|
}
|
|
2721
|
-
function buildNetworkSnapshot$
|
|
2722
|
-
const resourceParams = createResourceParams$
|
|
2723
|
-
const request = createResourceRequest$
|
|
3183
|
+
function buildNetworkSnapshot$4(luvio, config, options) {
|
|
3184
|
+
const resourceParams = createResourceParams$4(config);
|
|
3185
|
+
const request = createResourceRequest$4(resourceParams);
|
|
2724
3186
|
return luvio.dispatchResourceRequest(request, options)
|
|
2725
3187
|
.then((response) => {
|
|
2726
3188
|
return luvio.handleSuccessResponse(() => {
|
|
2727
|
-
const snapshot = ingestSuccess$
|
|
3189
|
+
const snapshot = ingestSuccess$4(luvio, resourceParams, response);
|
|
2728
3190
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
2729
3191
|
}, () => {
|
|
2730
3192
|
const cache = new StoreKeyMap();
|
|
2731
|
-
getResponseCacheKeys$
|
|
3193
|
+
getResponseCacheKeys$4(cache, luvio, resourceParams, response.body);
|
|
2732
3194
|
return cache;
|
|
2733
3195
|
});
|
|
2734
3196
|
}, (response) => {
|
|
@@ -2738,28 +3200,28 @@ function buildNetworkSnapshot$3(luvio, config, options) {
|
|
|
2738
3200
|
}
|
|
2739
3201
|
const acceptDataCleanRoomInvitationAdapterFactory = (luvio) => {
|
|
2740
3202
|
return function acceptDataCleanRoomInvitation(untrustedConfig) {
|
|
2741
|
-
const config = validateAdapterConfig$
|
|
3203
|
+
const config = validateAdapterConfig$4(untrustedConfig, acceptDataCleanRoomInvitation_ConfigPropertyNames);
|
|
2742
3204
|
// Invalid or incomplete config
|
|
2743
3205
|
if (config === null) {
|
|
2744
3206
|
throw new Error('Invalid config for "acceptDataCleanRoomInvitation"');
|
|
2745
3207
|
}
|
|
2746
|
-
return buildNetworkSnapshot$
|
|
3208
|
+
return buildNetworkSnapshot$4(luvio, config);
|
|
2747
3209
|
};
|
|
2748
3210
|
};
|
|
2749
3211
|
|
|
2750
|
-
function select$
|
|
2751
|
-
return select$
|
|
3212
|
+
function select$5(luvio, params) {
|
|
3213
|
+
return select$d();
|
|
2752
3214
|
}
|
|
2753
|
-
function getResponseCacheKeys$
|
|
3215
|
+
function getResponseCacheKeys$3(storeKeyMap, luvio, resourceParams, response) {
|
|
2754
3216
|
getTypeCacheKeys$5(storeKeyMap, luvio, response);
|
|
2755
3217
|
}
|
|
2756
|
-
function ingestSuccess$
|
|
3218
|
+
function ingestSuccess$3(luvio, resourceParams, response) {
|
|
2757
3219
|
const { body } = response;
|
|
2758
3220
|
const key = keyBuilderFromType$2(luvio, body);
|
|
2759
3221
|
luvio.storeIngest(key, ingest$5, body);
|
|
2760
3222
|
const snapshot = luvio.storeLookup({
|
|
2761
3223
|
recordId: key,
|
|
2762
|
-
node: select$
|
|
3224
|
+
node: select$5(),
|
|
2763
3225
|
variables: {},
|
|
2764
3226
|
});
|
|
2765
3227
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -2770,12 +3232,12 @@ function ingestSuccess$2(luvio, resourceParams, response) {
|
|
|
2770
3232
|
deepFreeze(snapshot.data);
|
|
2771
3233
|
return snapshot;
|
|
2772
3234
|
}
|
|
2773
|
-
function createResourceRequest$
|
|
3235
|
+
function createResourceRequest$3(config) {
|
|
2774
3236
|
const headers = {};
|
|
2775
3237
|
return {
|
|
2776
3238
|
baseUri: '/services/data/v65.0',
|
|
2777
3239
|
basePath: '/ssot/data-clean-room/collaborations/' + config.urlParams.collaborationIdOrApiName + '/actions/reject-invitation',
|
|
2778
|
-
method: '
|
|
3240
|
+
method: 'post',
|
|
2779
3241
|
body: config.body,
|
|
2780
3242
|
urlParams: config.urlParams,
|
|
2781
3243
|
queryParams: {},
|
|
@@ -2784,42 +3246,42 @@ function createResourceRequest$2(config) {
|
|
|
2784
3246
|
};
|
|
2785
3247
|
}
|
|
2786
3248
|
|
|
2787
|
-
const adapterName$
|
|
3249
|
+
const adapterName$3 = 'rejectDataCleanRoomInvitation';
|
|
2788
3250
|
const rejectDataCleanRoomInvitation_ConfigPropertyMetadata = [
|
|
2789
3251
|
generateParamConfigMetadata('collaborationIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
2790
3252
|
generateParamConfigMetadata('invitationId', true, 2 /* Body */, 0 /* String */),
|
|
2791
3253
|
];
|
|
2792
|
-
const rejectDataCleanRoomInvitation_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
2793
|
-
const createResourceParams$
|
|
2794
|
-
function typeCheckConfig$
|
|
3254
|
+
const rejectDataCleanRoomInvitation_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, rejectDataCleanRoomInvitation_ConfigPropertyMetadata);
|
|
3255
|
+
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$c(rejectDataCleanRoomInvitation_ConfigPropertyMetadata);
|
|
3256
|
+
function typeCheckConfig$3(untrustedConfig) {
|
|
2795
3257
|
const config = {};
|
|
2796
|
-
typeCheckConfig$
|
|
3258
|
+
typeCheckConfig$c(untrustedConfig, config, rejectDataCleanRoomInvitation_ConfigPropertyMetadata);
|
|
2797
3259
|
return config;
|
|
2798
3260
|
}
|
|
2799
|
-
function validateAdapterConfig$
|
|
3261
|
+
function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
|
|
2800
3262
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
2801
3263
|
return null;
|
|
2802
3264
|
}
|
|
2803
3265
|
if (process.env.NODE_ENV !== 'production') {
|
|
2804
3266
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
2805
3267
|
}
|
|
2806
|
-
const config = typeCheckConfig$
|
|
3268
|
+
const config = typeCheckConfig$3(untrustedConfig);
|
|
2807
3269
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
2808
3270
|
return null;
|
|
2809
3271
|
}
|
|
2810
3272
|
return config;
|
|
2811
3273
|
}
|
|
2812
|
-
function buildNetworkSnapshot$
|
|
2813
|
-
const resourceParams = createResourceParams$
|
|
2814
|
-
const request = createResourceRequest$
|
|
3274
|
+
function buildNetworkSnapshot$3(luvio, config, options) {
|
|
3275
|
+
const resourceParams = createResourceParams$3(config);
|
|
3276
|
+
const request = createResourceRequest$3(resourceParams);
|
|
2815
3277
|
return luvio.dispatchResourceRequest(request, options)
|
|
2816
3278
|
.then((response) => {
|
|
2817
3279
|
return luvio.handleSuccessResponse(() => {
|
|
2818
|
-
const snapshot = ingestSuccess$
|
|
3280
|
+
const snapshot = ingestSuccess$3(luvio, resourceParams, response);
|
|
2819
3281
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
2820
3282
|
}, () => {
|
|
2821
3283
|
const cache = new StoreKeyMap();
|
|
2822
|
-
getResponseCacheKeys$
|
|
3284
|
+
getResponseCacheKeys$3(cache, luvio, resourceParams, response.body);
|
|
2823
3285
|
return cache;
|
|
2824
3286
|
});
|
|
2825
3287
|
}, (response) => {
|
|
@@ -2829,16 +3291,16 @@ function buildNetworkSnapshot$2(luvio, config, options) {
|
|
|
2829
3291
|
}
|
|
2830
3292
|
const rejectDataCleanRoomInvitationAdapterFactory = (luvio) => {
|
|
2831
3293
|
return function rejectDataCleanRoomInvitation(untrustedConfig) {
|
|
2832
|
-
const config = validateAdapterConfig$
|
|
3294
|
+
const config = validateAdapterConfig$3(untrustedConfig, rejectDataCleanRoomInvitation_ConfigPropertyNames);
|
|
2833
3295
|
// Invalid or incomplete config
|
|
2834
3296
|
if (config === null) {
|
|
2835
3297
|
throw new Error('Invalid config for "rejectDataCleanRoomInvitation"');
|
|
2836
3298
|
}
|
|
2837
|
-
return buildNetworkSnapshot$
|
|
3299
|
+
return buildNetworkSnapshot$3(luvio, config);
|
|
2838
3300
|
};
|
|
2839
3301
|
};
|
|
2840
3302
|
|
|
2841
|
-
const VERSION$1 = "
|
|
3303
|
+
const VERSION$1 = "c88ad589b064cbc75394ed69083e8f5f";
|
|
2842
3304
|
function validate$1(obj, path = 'DataCleanRoomQueryJobRepresentation') {
|
|
2843
3305
|
const v_error = (() => {
|
|
2844
3306
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -2854,7 +3316,7 @@ function validate$1(obj, path = 'DataCleanRoomQueryJobRepresentation') {
|
|
|
2854
3316
|
if (obj.createdBy !== undefined) {
|
|
2855
3317
|
const obj_createdBy = obj.createdBy;
|
|
2856
3318
|
const path_createdBy = path + '.createdBy';
|
|
2857
|
-
const referencepath_createdByValidationError = validate$
|
|
3319
|
+
const referencepath_createdByValidationError = validate$r(obj_createdBy, path_createdBy);
|
|
2858
3320
|
if (referencepath_createdByValidationError !== null) {
|
|
2859
3321
|
let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_createdBy + '")\n';
|
|
2860
3322
|
message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2882,6 +3344,13 @@ function validate$1(obj, path = 'DataCleanRoomQueryJobRepresentation') {
|
|
|
2882
3344
|
return new TypeError('Expected "string" but received "' + typeof obj_errorMessage + '" (at "' + path_errorMessage + '")');
|
|
2883
3345
|
}
|
|
2884
3346
|
}
|
|
3347
|
+
if (obj.executedBy !== undefined) {
|
|
3348
|
+
const obj_executedBy = obj.executedBy;
|
|
3349
|
+
const path_executedBy = path + '.executedBy';
|
|
3350
|
+
if (typeof obj_executedBy !== 'string') {
|
|
3351
|
+
return new TypeError('Expected "string" but received "' + typeof obj_executedBy + '" (at "' + path_executedBy + '")');
|
|
3352
|
+
}
|
|
3353
|
+
}
|
|
2885
3354
|
const obj_id = obj.id;
|
|
2886
3355
|
const path_id = path + '.id';
|
|
2887
3356
|
if (typeof obj_id !== 'string') {
|
|
@@ -2897,7 +3366,7 @@ function validate$1(obj, path = 'DataCleanRoomQueryJobRepresentation') {
|
|
|
2897
3366
|
if (obj.lastModifiedBy !== undefined) {
|
|
2898
3367
|
const obj_lastModifiedBy = obj.lastModifiedBy;
|
|
2899
3368
|
const path_lastModifiedBy = path + '.lastModifiedBy';
|
|
2900
|
-
const referencepath_lastModifiedByValidationError = validate$
|
|
3369
|
+
const referencepath_lastModifiedByValidationError = validate$r(obj_lastModifiedBy, path_lastModifiedBy);
|
|
2901
3370
|
if (referencepath_lastModifiedByValidationError !== null) {
|
|
2902
3371
|
let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_lastModifiedBy + '")\n';
|
|
2903
3372
|
message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2918,11 +3387,32 @@ function validate$1(obj, path = 'DataCleanRoomQueryJobRepresentation') {
|
|
|
2918
3387
|
return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
|
|
2919
3388
|
}
|
|
2920
3389
|
}
|
|
2921
|
-
if (obj.
|
|
2922
|
-
const
|
|
2923
|
-
const
|
|
2924
|
-
if (typeof
|
|
2925
|
-
return new TypeError('Expected "
|
|
3390
|
+
if (obj.outputDMOName !== undefined) {
|
|
3391
|
+
const obj_outputDMOName = obj.outputDMOName;
|
|
3392
|
+
const path_outputDMOName = path + '.outputDMOName';
|
|
3393
|
+
if (typeof obj_outputDMOName !== 'string') {
|
|
3394
|
+
return new TypeError('Expected "string" but received "' + typeof obj_outputDMOName + '" (at "' + path_outputDMOName + '")');
|
|
3395
|
+
}
|
|
3396
|
+
}
|
|
3397
|
+
if (obj.queryParam !== undefined) {
|
|
3398
|
+
const obj_queryParam = obj.queryParam;
|
|
3399
|
+
const path_queryParam = path + '.queryParam';
|
|
3400
|
+
if (obj_queryParam === undefined) {
|
|
3401
|
+
return new TypeError('Expected "defined" but received "' + typeof obj_queryParam + '" (at "' + path_queryParam + '")');
|
|
3402
|
+
}
|
|
3403
|
+
}
|
|
3404
|
+
if (obj.reportId !== undefined) {
|
|
3405
|
+
const obj_reportId = obj.reportId;
|
|
3406
|
+
const path_reportId = path + '.reportId';
|
|
3407
|
+
if (typeof obj_reportId !== 'string') {
|
|
3408
|
+
return new TypeError('Expected "string" but received "' + typeof obj_reportId + '" (at "' + path_reportId + '")');
|
|
3409
|
+
}
|
|
3410
|
+
}
|
|
3411
|
+
if (obj.reportName !== undefined) {
|
|
3412
|
+
const obj_reportName = obj.reportName;
|
|
3413
|
+
const path_reportName = path + '.reportName';
|
|
3414
|
+
if (typeof obj_reportName !== 'string') {
|
|
3415
|
+
return new TypeError('Expected "string" but received "' + typeof obj_reportName + '" (at "' + path_reportName + '")');
|
|
2926
3416
|
}
|
|
2927
3417
|
}
|
|
2928
3418
|
if (obj.segmentNames !== undefined) {
|
|
@@ -2955,19 +3445,19 @@ function validate$1(obj, path = 'DataCleanRoomQueryJobRepresentation') {
|
|
|
2955
3445
|
return v_error === undefined ? null : v_error;
|
|
2956
3446
|
}
|
|
2957
3447
|
const RepresentationType$1 = 'DataCleanRoomQueryJobRepresentation';
|
|
2958
|
-
function keyBuilder$
|
|
3448
|
+
function keyBuilder$4(luvio, config) {
|
|
2959
3449
|
return keyPrefix + '::' + RepresentationType$1 + ':' + config.id;
|
|
2960
3450
|
}
|
|
2961
3451
|
function keyBuilderFromType(luvio, object) {
|
|
2962
3452
|
const keyParams = {
|
|
2963
3453
|
id: object.id
|
|
2964
3454
|
};
|
|
2965
|
-
return keyBuilder$
|
|
3455
|
+
return keyBuilder$4(luvio, keyParams);
|
|
2966
3456
|
}
|
|
2967
3457
|
function normalize$1(input, existing, path, luvio, store, timestamp) {
|
|
2968
3458
|
return input;
|
|
2969
3459
|
}
|
|
2970
|
-
const select$
|
|
3460
|
+
const select$4 = function DataCleanRoomQueryJobRepresentationSelect() {
|
|
2971
3461
|
return {
|
|
2972
3462
|
kind: 'Fragment',
|
|
2973
3463
|
version: VERSION$1,
|
|
@@ -3003,19 +3493,19 @@ function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
3003
3493
|
});
|
|
3004
3494
|
}
|
|
3005
3495
|
|
|
3006
|
-
function select$
|
|
3007
|
-
return select$
|
|
3496
|
+
function select$3(luvio, params) {
|
|
3497
|
+
return select$4();
|
|
3008
3498
|
}
|
|
3009
|
-
function getResponseCacheKeys$
|
|
3499
|
+
function getResponseCacheKeys$2(storeKeyMap, luvio, resourceParams, response) {
|
|
3010
3500
|
getTypeCacheKeys$1(storeKeyMap, luvio, response);
|
|
3011
3501
|
}
|
|
3012
|
-
function ingestSuccess$
|
|
3502
|
+
function ingestSuccess$2(luvio, resourceParams, response) {
|
|
3013
3503
|
const { body } = response;
|
|
3014
3504
|
const key = keyBuilderFromType(luvio, body);
|
|
3015
3505
|
luvio.storeIngest(key, ingest$1, body);
|
|
3016
3506
|
const snapshot = luvio.storeLookup({
|
|
3017
3507
|
recordId: key,
|
|
3018
|
-
node: select$
|
|
3508
|
+
node: select$3(),
|
|
3019
3509
|
variables: {},
|
|
3020
3510
|
});
|
|
3021
3511
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -3026,7 +3516,7 @@ function ingestSuccess$1(luvio, resourceParams, response) {
|
|
|
3026
3516
|
deepFreeze(snapshot.data);
|
|
3027
3517
|
return snapshot;
|
|
3028
3518
|
}
|
|
3029
|
-
function createResourceRequest$
|
|
3519
|
+
function createResourceRequest$2(config) {
|
|
3030
3520
|
const headers = {};
|
|
3031
3521
|
return {
|
|
3032
3522
|
baseUri: '/services/data/v65.0',
|
|
@@ -3040,43 +3530,46 @@ function createResourceRequest$1(config) {
|
|
|
3040
3530
|
};
|
|
3041
3531
|
}
|
|
3042
3532
|
|
|
3043
|
-
const adapterName$
|
|
3533
|
+
const adapterName$2 = 'executeDataCleanRoomQuery';
|
|
3044
3534
|
const executeDataCleanRoomQuery_ConfigPropertyMetadata = [
|
|
3045
3535
|
generateParamConfigMetadata('collaborationIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
3046
3536
|
generateParamConfigMetadata('queryExecutionName', true, 2 /* Body */, 0 /* String */),
|
|
3047
|
-
generateParamConfigMetadata('segmentIds',
|
|
3537
|
+
generateParamConfigMetadata('segmentIds', false, 2 /* Body */, 0 /* String */, true),
|
|
3538
|
+
generateParamConfigMetadata('queryParameters', false, 2 /* Body */, 4 /* Unsupported */),
|
|
3048
3539
|
];
|
|
3049
|
-
const executeDataCleanRoomQuery_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
3050
|
-
const createResourceParams$
|
|
3051
|
-
function typeCheckConfig$
|
|
3540
|
+
const executeDataCleanRoomQuery_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, executeDataCleanRoomQuery_ConfigPropertyMetadata);
|
|
3541
|
+
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$c(executeDataCleanRoomQuery_ConfigPropertyMetadata);
|
|
3542
|
+
function typeCheckConfig$2(untrustedConfig) {
|
|
3052
3543
|
const config = {};
|
|
3053
|
-
typeCheckConfig$
|
|
3544
|
+
typeCheckConfig$c(untrustedConfig, config, executeDataCleanRoomQuery_ConfigPropertyMetadata);
|
|
3545
|
+
const untrustedConfig_queryParameters = untrustedConfig.queryParameters;
|
|
3546
|
+
config.queryParameters = untrustedConfig_queryParameters;
|
|
3054
3547
|
return config;
|
|
3055
3548
|
}
|
|
3056
|
-
function validateAdapterConfig$
|
|
3549
|
+
function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
|
|
3057
3550
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
3058
3551
|
return null;
|
|
3059
3552
|
}
|
|
3060
3553
|
if (process.env.NODE_ENV !== 'production') {
|
|
3061
3554
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
3062
3555
|
}
|
|
3063
|
-
const config = typeCheckConfig$
|
|
3556
|
+
const config = typeCheckConfig$2(untrustedConfig);
|
|
3064
3557
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
3065
3558
|
return null;
|
|
3066
3559
|
}
|
|
3067
3560
|
return config;
|
|
3068
3561
|
}
|
|
3069
|
-
function buildNetworkSnapshot$
|
|
3070
|
-
const resourceParams = createResourceParams$
|
|
3071
|
-
const request = createResourceRequest$
|
|
3562
|
+
function buildNetworkSnapshot$2(luvio, config, options) {
|
|
3563
|
+
const resourceParams = createResourceParams$2(config);
|
|
3564
|
+
const request = createResourceRequest$2(resourceParams);
|
|
3072
3565
|
return luvio.dispatchResourceRequest(request, options)
|
|
3073
3566
|
.then((response) => {
|
|
3074
3567
|
return luvio.handleSuccessResponse(() => {
|
|
3075
|
-
const snapshot = ingestSuccess$
|
|
3568
|
+
const snapshot = ingestSuccess$2(luvio, resourceParams, response);
|
|
3076
3569
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
3077
3570
|
}, () => {
|
|
3078
3571
|
const cache = new StoreKeyMap();
|
|
3079
|
-
getResponseCacheKeys$
|
|
3572
|
+
getResponseCacheKeys$2(cache, luvio, resourceParams, response.body);
|
|
3080
3573
|
return cache;
|
|
3081
3574
|
});
|
|
3082
3575
|
}, (response) => {
|
|
@@ -3086,12 +3579,12 @@ function buildNetworkSnapshot$1(luvio, config, options) {
|
|
|
3086
3579
|
}
|
|
3087
3580
|
const executeDataCleanRoomQueryAdapterFactory = (luvio) => {
|
|
3088
3581
|
return function executeDataCleanRoomQuery(untrustedConfig) {
|
|
3089
|
-
const config = validateAdapterConfig$
|
|
3582
|
+
const config = validateAdapterConfig$2(untrustedConfig, executeDataCleanRoomQuery_ConfigPropertyNames);
|
|
3090
3583
|
// Invalid or incomplete config
|
|
3091
3584
|
if (config === null) {
|
|
3092
3585
|
throw new Error('Invalid config for "executeDataCleanRoomQuery"');
|
|
3093
3586
|
}
|
|
3094
|
-
return buildNetworkSnapshot$
|
|
3587
|
+
return buildNetworkSnapshot$2(luvio, config);
|
|
3095
3588
|
};
|
|
3096
3589
|
};
|
|
3097
3590
|
|
|
@@ -3175,7 +3668,7 @@ const RepresentationType = 'DataCleanRoomQueryJobHistoryCollectionRepresentation
|
|
|
3175
3668
|
function normalize(input, existing, path, luvio, store, timestamp) {
|
|
3176
3669
|
return input;
|
|
3177
3670
|
}
|
|
3178
|
-
const select$
|
|
3671
|
+
const select$2 = function DataCleanRoomQueryJobHistoryCollectionRepresentationSelect() {
|
|
3179
3672
|
return {
|
|
3180
3673
|
kind: 'Fragment',
|
|
3181
3674
|
version: VERSION,
|
|
@@ -3211,19 +3704,155 @@ function getTypeCacheKeys(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
3211
3704
|
});
|
|
3212
3705
|
}
|
|
3213
3706
|
|
|
3214
|
-
function select(luvio, params) {
|
|
3707
|
+
function select$1(luvio, params) {
|
|
3708
|
+
return select$2();
|
|
3709
|
+
}
|
|
3710
|
+
function keyBuilder$3(luvio, params) {
|
|
3711
|
+
return keyPrefix + '::DataCleanRoomQueryJobHistoryCollectionRepresentation:(' + 'limit:' + params.queryParams.limit + ',' + 'filters:' + params.queryParams.filters + ',' + 'offset:' + params.queryParams.offset + ',' + 'orderBy:' + params.queryParams.orderBy + ',' + 'collaborationIdOrApiName:' + params.urlParams.collaborationIdOrApiName + ')';
|
|
3712
|
+
}
|
|
3713
|
+
function getResponseCacheKeys$1(storeKeyMap, luvio, resourceParams, response) {
|
|
3714
|
+
getTypeCacheKeys(storeKeyMap, luvio, response, () => keyBuilder$3(luvio, resourceParams));
|
|
3715
|
+
}
|
|
3716
|
+
function ingestSuccess$1(luvio, resourceParams, response, snapshotRefresh) {
|
|
3717
|
+
const { body } = response;
|
|
3718
|
+
const key = keyBuilder$3(luvio, resourceParams);
|
|
3719
|
+
luvio.storeIngest(key, ingest, body);
|
|
3720
|
+
const snapshot = luvio.storeLookup({
|
|
3721
|
+
recordId: key,
|
|
3722
|
+
node: select$1(),
|
|
3723
|
+
variables: {},
|
|
3724
|
+
}, snapshotRefresh);
|
|
3725
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
3726
|
+
if (snapshot.state !== 'Fulfilled') {
|
|
3727
|
+
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
3728
|
+
}
|
|
3729
|
+
}
|
|
3730
|
+
deepFreeze(snapshot.data);
|
|
3731
|
+
return snapshot;
|
|
3732
|
+
}
|
|
3733
|
+
function ingestError$1(luvio, params, error, snapshotRefresh) {
|
|
3734
|
+
const key = keyBuilder$3(luvio, params);
|
|
3735
|
+
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
3736
|
+
luvio.storeIngestError(key, errorSnapshot);
|
|
3737
|
+
return errorSnapshot;
|
|
3738
|
+
}
|
|
3739
|
+
function createResourceRequest$1(config) {
|
|
3740
|
+
const headers = {};
|
|
3741
|
+
return {
|
|
3742
|
+
baseUri: '/services/data/v65.0',
|
|
3743
|
+
basePath: '/ssot/data-clean-room/collaborations/' + config.urlParams.collaborationIdOrApiName + '/jobs',
|
|
3744
|
+
method: 'get',
|
|
3745
|
+
body: null,
|
|
3746
|
+
urlParams: config.urlParams,
|
|
3747
|
+
queryParams: config.queryParams,
|
|
3748
|
+
headers,
|
|
3749
|
+
priority: 'normal',
|
|
3750
|
+
};
|
|
3751
|
+
}
|
|
3752
|
+
|
|
3753
|
+
const adapterName$1 = 'getAllDataCleanRoomQueryPaginated';
|
|
3754
|
+
const getAllDataCleanRoomQueryPaginated_ConfigPropertyMetadata = [
|
|
3755
|
+
generateParamConfigMetadata('collaborationIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
3756
|
+
generateParamConfigMetadata('limit', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
3757
|
+
generateParamConfigMetadata('filters', false, 1 /* QueryParameter */, 0 /* String */),
|
|
3758
|
+
generateParamConfigMetadata('offset', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
3759
|
+
generateParamConfigMetadata('orderBy', false, 1 /* QueryParameter */, 0 /* String */),
|
|
3760
|
+
];
|
|
3761
|
+
const getAllDataCleanRoomQueryPaginated_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, getAllDataCleanRoomQueryPaginated_ConfigPropertyMetadata);
|
|
3762
|
+
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$c(getAllDataCleanRoomQueryPaginated_ConfigPropertyMetadata);
|
|
3763
|
+
function keyBuilder$2(luvio, config) {
|
|
3764
|
+
const resourceParams = createResourceParams$1(config);
|
|
3765
|
+
return keyBuilder$3(luvio, resourceParams);
|
|
3766
|
+
}
|
|
3767
|
+
function typeCheckConfig$1(untrustedConfig) {
|
|
3768
|
+
const config = {};
|
|
3769
|
+
typeCheckConfig$c(untrustedConfig, config, getAllDataCleanRoomQueryPaginated_ConfigPropertyMetadata);
|
|
3770
|
+
return config;
|
|
3771
|
+
}
|
|
3772
|
+
function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
|
|
3773
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
3774
|
+
return null;
|
|
3775
|
+
}
|
|
3776
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
3777
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
3778
|
+
}
|
|
3779
|
+
const config = typeCheckConfig$1(untrustedConfig);
|
|
3780
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
3781
|
+
return null;
|
|
3782
|
+
}
|
|
3783
|
+
return config;
|
|
3784
|
+
}
|
|
3785
|
+
function adapterFragment$1(luvio, config) {
|
|
3786
|
+
createResourceParams$1(config);
|
|
3215
3787
|
return select$1();
|
|
3216
3788
|
}
|
|
3789
|
+
function onFetchResponseSuccess$1(luvio, config, resourceParams, response) {
|
|
3790
|
+
const snapshot = ingestSuccess$1(luvio, resourceParams, response, {
|
|
3791
|
+
config,
|
|
3792
|
+
resolve: () => buildNetworkSnapshot$1(luvio, config, snapshotRefreshOptions)
|
|
3793
|
+
});
|
|
3794
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
3795
|
+
}
|
|
3796
|
+
function onFetchResponseError$1(luvio, config, resourceParams, response) {
|
|
3797
|
+
const snapshot = ingestError$1(luvio, resourceParams, response, {
|
|
3798
|
+
config,
|
|
3799
|
+
resolve: () => buildNetworkSnapshot$1(luvio, config, snapshotRefreshOptions)
|
|
3800
|
+
});
|
|
3801
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
3802
|
+
}
|
|
3803
|
+
function buildNetworkSnapshot$1(luvio, config, options) {
|
|
3804
|
+
const resourceParams = createResourceParams$1(config);
|
|
3805
|
+
const request = createResourceRequest$1(resourceParams);
|
|
3806
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
3807
|
+
.then((response) => {
|
|
3808
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$1(luvio, config, resourceParams, response), () => {
|
|
3809
|
+
const cache = new StoreKeyMap();
|
|
3810
|
+
getResponseCacheKeys$1(cache, luvio, resourceParams, response.body);
|
|
3811
|
+
return cache;
|
|
3812
|
+
});
|
|
3813
|
+
}, (response) => {
|
|
3814
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$1(luvio, config, resourceParams, response));
|
|
3815
|
+
});
|
|
3816
|
+
}
|
|
3817
|
+
function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
|
|
3818
|
+
return buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext, buildNetworkSnapshot$1, undefined, false);
|
|
3819
|
+
}
|
|
3820
|
+
function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
|
|
3821
|
+
const { luvio, config } = context;
|
|
3822
|
+
const selector = {
|
|
3823
|
+
recordId: keyBuilder$2(luvio, config),
|
|
3824
|
+
node: adapterFragment$1(luvio, config),
|
|
3825
|
+
variables: {},
|
|
3826
|
+
};
|
|
3827
|
+
const cacheSnapshot = storeLookup(selector, {
|
|
3828
|
+
config,
|
|
3829
|
+
resolve: () => buildNetworkSnapshot$1(luvio, config, snapshotRefreshOptions)
|
|
3830
|
+
});
|
|
3831
|
+
return cacheSnapshot;
|
|
3832
|
+
}
|
|
3833
|
+
const getAllDataCleanRoomQueryPaginatedAdapterFactory = (luvio) => function dataCleanRoom__getAllDataCleanRoomQueryPaginated(untrustedConfig, requestContext) {
|
|
3834
|
+
const config = validateAdapterConfig$1(untrustedConfig, getAllDataCleanRoomQueryPaginated_ConfigPropertyNames);
|
|
3835
|
+
// Invalid or incomplete config
|
|
3836
|
+
if (config === null) {
|
|
3837
|
+
return null;
|
|
3838
|
+
}
|
|
3839
|
+
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
3840
|
+
buildCachedSnapshotCachePolicy$1, buildNetworkSnapshotCachePolicy$1);
|
|
3841
|
+
};
|
|
3842
|
+
|
|
3843
|
+
function select(luvio, params) {
|
|
3844
|
+
return select$8();
|
|
3845
|
+
}
|
|
3217
3846
|
function keyBuilder$1(luvio, params) {
|
|
3218
|
-
return keyPrefix + '::
|
|
3847
|
+
return keyPrefix + '::DataCleanRoomTemplateCollectionRepresentation:(' + 'filters:' + params.queryParams.filters + ',' + 'limit:' + params.queryParams.limit + ',' + 'offset:' + params.queryParams.offset + ',' + 'orderBy:' + params.queryParams.orderBy + ',' + 'providerIdOrName:' + params.urlParams.providerIdOrName + ')';
|
|
3219
3848
|
}
|
|
3220
3849
|
function getResponseCacheKeys(storeKeyMap, luvio, resourceParams, response) {
|
|
3221
|
-
getTypeCacheKeys(storeKeyMap, luvio, response, () => keyBuilder$1(luvio, resourceParams));
|
|
3850
|
+
getTypeCacheKeys$2(storeKeyMap, luvio, response, () => keyBuilder$1(luvio, resourceParams));
|
|
3222
3851
|
}
|
|
3223
3852
|
function ingestSuccess(luvio, resourceParams, response, snapshotRefresh) {
|
|
3224
3853
|
const { body } = response;
|
|
3225
3854
|
const key = keyBuilder$1(luvio, resourceParams);
|
|
3226
|
-
luvio.storeIngest(key, ingest, body);
|
|
3855
|
+
luvio.storeIngest(key, ingest$2, body);
|
|
3227
3856
|
const snapshot = luvio.storeLookup({
|
|
3228
3857
|
recordId: key,
|
|
3229
3858
|
node: select(),
|
|
@@ -3247,7 +3876,7 @@ function createResourceRequest(config) {
|
|
|
3247
3876
|
const headers = {};
|
|
3248
3877
|
return {
|
|
3249
3878
|
baseUri: '/services/data/v65.0',
|
|
3250
|
-
basePath: '/ssot/data-clean-room/
|
|
3879
|
+
basePath: '/ssot/data-clean-room/providers/' + config.urlParams.providerIdOrName + '/templates',
|
|
3251
3880
|
method: 'get',
|
|
3252
3881
|
body: null,
|
|
3253
3882
|
urlParams: config.urlParams,
|
|
@@ -3257,23 +3886,23 @@ function createResourceRequest(config) {
|
|
|
3257
3886
|
};
|
|
3258
3887
|
}
|
|
3259
3888
|
|
|
3260
|
-
const adapterName = '
|
|
3261
|
-
const
|
|
3262
|
-
generateParamConfigMetadata('
|
|
3263
|
-
generateParamConfigMetadata('limit', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
3889
|
+
const adapterName = 'getDataCleanRoomTemplatesByProviderIdPaginated';
|
|
3890
|
+
const getDataCleanRoomTemplatesByProviderIdPaginated_ConfigPropertyMetadata = [
|
|
3891
|
+
generateParamConfigMetadata('providerIdOrName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
3264
3892
|
generateParamConfigMetadata('filters', false, 1 /* QueryParameter */, 0 /* String */),
|
|
3893
|
+
generateParamConfigMetadata('limit', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
3265
3894
|
generateParamConfigMetadata('offset', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
3266
3895
|
generateParamConfigMetadata('orderBy', false, 1 /* QueryParameter */, 0 /* String */),
|
|
3267
3896
|
];
|
|
3268
|
-
const
|
|
3269
|
-
const createResourceParams = /*#__PURE__*/ createResourceParams$
|
|
3897
|
+
const getDataCleanRoomTemplatesByProviderIdPaginated_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, getDataCleanRoomTemplatesByProviderIdPaginated_ConfigPropertyMetadata);
|
|
3898
|
+
const createResourceParams = /*#__PURE__*/ createResourceParams$c(getDataCleanRoomTemplatesByProviderIdPaginated_ConfigPropertyMetadata);
|
|
3270
3899
|
function keyBuilder(luvio, config) {
|
|
3271
3900
|
const resourceParams = createResourceParams(config);
|
|
3272
3901
|
return keyBuilder$1(luvio, resourceParams);
|
|
3273
3902
|
}
|
|
3274
3903
|
function typeCheckConfig(untrustedConfig) {
|
|
3275
3904
|
const config = {};
|
|
3276
|
-
typeCheckConfig$
|
|
3905
|
+
typeCheckConfig$c(untrustedConfig, config, getDataCleanRoomTemplatesByProviderIdPaginated_ConfigPropertyMetadata);
|
|
3277
3906
|
return config;
|
|
3278
3907
|
}
|
|
3279
3908
|
function validateAdapterConfig(untrustedConfig, configPropertyNames) {
|
|
@@ -3322,7 +3951,7 @@ function buildNetworkSnapshot(luvio, config, options) {
|
|
|
3322
3951
|
});
|
|
3323
3952
|
}
|
|
3324
3953
|
function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
|
|
3325
|
-
return buildNetworkSnapshotCachePolicy$
|
|
3954
|
+
return buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext, buildNetworkSnapshot, undefined, false);
|
|
3326
3955
|
}
|
|
3327
3956
|
function buildCachedSnapshotCachePolicy(context, storeLookup) {
|
|
3328
3957
|
const { luvio, config } = context;
|
|
@@ -3337,8 +3966,8 @@ function buildCachedSnapshotCachePolicy(context, storeLookup) {
|
|
|
3337
3966
|
});
|
|
3338
3967
|
return cacheSnapshot;
|
|
3339
3968
|
}
|
|
3340
|
-
const
|
|
3341
|
-
const config = validateAdapterConfig(untrustedConfig,
|
|
3969
|
+
const getDataCleanRoomTemplatesByProviderIdPaginatedAdapterFactory = (luvio) => function dataCleanRoom__getDataCleanRoomTemplatesByProviderIdPaginated(untrustedConfig, requestContext) {
|
|
3970
|
+
const config = validateAdapterConfig(untrustedConfig, getDataCleanRoomTemplatesByProviderIdPaginated_ConfigPropertyNames);
|
|
3342
3971
|
// Invalid or incomplete config
|
|
3343
3972
|
if (config === null) {
|
|
3344
3973
|
return null;
|
|
@@ -3347,4 +3976,4 @@ const getAllDataCleanRoomQueryPaginatedAdapterFactory = (luvio) => function data
|
|
|
3347
3976
|
buildCachedSnapshotCachePolicy, buildNetworkSnapshotCachePolicy);
|
|
3348
3977
|
};
|
|
3349
3978
|
|
|
3350
|
-
export { acceptDataCleanRoomInvitationAdapterFactory, createDataCleanRoomCollaborationAdapterFactory, createDataCleanRoomSpecificationAdapterFactory, createProviderAdapterFactory, executeDataCleanRoomQueryAdapterFactory, getAllDataCleanRoomQueryPaginatedAdapterFactory, getAllDataCleanRoomsPaginatedAdapterFactory, getDataCleanRoomProvidersPaginatedAdapterFactory, getDataCleanRoomSpecificationsPaginatedAdapterFactory, getDataCleanRoomTemplatePaginatedAdapterFactory, rejectDataCleanRoomInvitationAdapterFactory };
|
|
3979
|
+
export { acceptDataCleanRoomInvitationAdapterFactory, createDataCleanRoomCollaborationAdapterFactory, createDataCleanRoomSpecificationAdapterFactory, createProviderAdapterFactory, executeDataCleanRoomQueryAdapterFactory, getAllDataCleanRoomQueryPaginatedAdapterFactory, getAllDataCleanRoomsPaginatedAdapterFactory, getDataCleanRoomProvidersPaginatedAdapterFactory, getDataCleanRoomSpecificationsPaginatedAdapterFactory, getDataCleanRoomTemplatePaginatedAdapterFactory, getDataCleanRoomTemplatesByProviderIdPaginatedAdapterFactory, rejectDataCleanRoomInvitationAdapterFactory };
|