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