@salesforce/lds-adapters-cdp-metadata 1.305.0 → 1.306.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/es/es2018/cdp-metadata.js +627 -20
- package/dist/es/es2018/types/src/generated/adapters/getDataGraphMetadata.d.ts +28 -0
- package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +1 -0
- package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +3 -1
- package/dist/es/es2018/types/src/generated/resources/getSsotDataGraphsMetadata.d.ts +16 -0
- package/dist/es/es2018/types/src/generated/types/CdpDgMetadataRepresentation.d.ts +29 -0
- package/dist/es/es2018/types/src/generated/types/CdpQueryDataGraphMetadataRepresentation.d.ts +64 -0
- package/dist/es/es2018/types/src/generated/types/DataGraphFieldRepresentation.d.ts +55 -0
- package/dist/es/es2018/types/src/generated/types/DataGraphIdsDmoFieldRepresentation.d.ts +34 -0
- package/dist/es/es2018/types/src/generated/types/DataGraphIdsDmoRepresentation.d.ts +32 -0
- package/dist/es/es2018/types/src/generated/types/DataGraphObjectDataRepresentation.d.ts +55 -0
- package/dist/es/es2018/types/src/generated/types/DataGraphRelationshipRepresentation.d.ts +34 -0
- package/dist/es/es2018/types/src/generated/types/DataGraphValuesDmoFieldRepresentation.d.ts +34 -0
- package/dist/es/es2018/types/src/generated/types/DataGraphValuesDmoRepresentation.d.ts +32 -0
- package/dist/es/es2018/types/src/generated/types/RecencyCriteriaRepresentation.d.ts +37 -0
- package/package.json +3 -3
- package/sfdc/index.js +640 -22
- package/src/raml/api.raml +227 -0
- package/src/raml/luvio.raml +6 -0
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* For full license text, see the LICENSE.txt file
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
import { serializeStructuredKey, ingestShape, deepFreeze, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$
|
|
7
|
+
import { serializeStructuredKey, ingestShape, deepFreeze, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$2, typeCheckConfig as typeCheckConfig$2, StoreKeyMap, createResourceParams as createResourceParams$2 } from '@luvio/engine';
|
|
8
8
|
|
|
9
9
|
const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
|
|
10
10
|
const { keys: ObjectKeys, create: ObjectCreate } = Object;
|
|
@@ -79,8 +79,8 @@ function createLink(ref) {
|
|
|
79
79
|
};
|
|
80
80
|
}
|
|
81
81
|
|
|
82
|
-
const VERSION = "21dc23f3b30fa0daeb25fca386243e68";
|
|
83
|
-
function validate(obj, path = 'CdpQueryMetadataOutputRepresentation') {
|
|
82
|
+
const VERSION$1 = "21dc23f3b30fa0daeb25fca386243e68";
|
|
83
|
+
function validate$a(obj, path = 'CdpQueryMetadataOutputRepresentation') {
|
|
84
84
|
const v_error = (() => {
|
|
85
85
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
86
86
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -100,11 +100,620 @@ function validate(obj, path = 'CdpQueryMetadataOutputRepresentation') {
|
|
|
100
100
|
})();
|
|
101
101
|
return v_error === undefined ? null : v_error;
|
|
102
102
|
}
|
|
103
|
-
const RepresentationType = 'CdpQueryMetadataOutputRepresentation';
|
|
103
|
+
const RepresentationType$1 = 'CdpQueryMetadataOutputRepresentation';
|
|
104
|
+
function normalize$1(input, existing, path, luvio, store, timestamp) {
|
|
105
|
+
return input;
|
|
106
|
+
}
|
|
107
|
+
const select$3 = function CdpQueryMetadataOutputRepresentationSelect() {
|
|
108
|
+
return {
|
|
109
|
+
kind: 'Fragment',
|
|
110
|
+
version: VERSION$1,
|
|
111
|
+
private: [],
|
|
112
|
+
opaque: true
|
|
113
|
+
};
|
|
114
|
+
};
|
|
115
|
+
function equals$1(existing, incoming) {
|
|
116
|
+
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
117
|
+
return false;
|
|
118
|
+
}
|
|
119
|
+
return true;
|
|
120
|
+
}
|
|
121
|
+
const ingest$1 = function CdpQueryMetadataOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
122
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
123
|
+
const validateError = validate$a(input);
|
|
124
|
+
if (validateError !== null) {
|
|
125
|
+
throw validateError;
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
const key = path.fullPath;
|
|
129
|
+
const ttlToUse = path.ttl !== undefined ? path.ttl : 3000000;
|
|
130
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$1, "cdp-metadata", VERSION$1, RepresentationType$1, equals$1);
|
|
131
|
+
return createLink(key);
|
|
132
|
+
};
|
|
133
|
+
function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
134
|
+
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
135
|
+
const rootKey = fullPathFactory();
|
|
136
|
+
rootKeySet.set(rootKey, {
|
|
137
|
+
namespace: keyPrefix,
|
|
138
|
+
representationName: RepresentationType$1,
|
|
139
|
+
mergeable: false
|
|
140
|
+
});
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
function select$2(luvio, params) {
|
|
144
|
+
return select$3();
|
|
145
|
+
}
|
|
146
|
+
function keyBuilder$3(luvio, params) {
|
|
147
|
+
return keyPrefix + '::CdpQueryMetadataOutputRepresentation:(' + 'dataspace:' + params.queryParams.dataspace + ',' + 'entityCategory:' + params.queryParams.entityCategory + ',' + 'entityName:' + params.queryParams.entityName + ',' + 'entityType:' + params.queryParams.entityType + ')';
|
|
148
|
+
}
|
|
149
|
+
function getResponseCacheKeys$1(storeKeyMap, luvio, resourceParams, response) {
|
|
150
|
+
getTypeCacheKeys$1(storeKeyMap, luvio, response, () => keyBuilder$3(luvio, resourceParams));
|
|
151
|
+
}
|
|
152
|
+
function ingestSuccess$1(luvio, resourceParams, response, snapshotRefresh) {
|
|
153
|
+
const { body } = response;
|
|
154
|
+
const key = keyBuilder$3(luvio, resourceParams);
|
|
155
|
+
luvio.storeIngest(key, ingest$1, body);
|
|
156
|
+
const snapshot = luvio.storeLookup({
|
|
157
|
+
recordId: key,
|
|
158
|
+
node: select$2(),
|
|
159
|
+
variables: {},
|
|
160
|
+
}, snapshotRefresh);
|
|
161
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
162
|
+
if (snapshot.state !== 'Fulfilled') {
|
|
163
|
+
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
deepFreeze(snapshot.data);
|
|
167
|
+
return snapshot;
|
|
168
|
+
}
|
|
169
|
+
function ingestError$1(luvio, params, error, snapshotRefresh) {
|
|
170
|
+
const key = keyBuilder$3(luvio, params);
|
|
171
|
+
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
172
|
+
luvio.storeIngestError(key, errorSnapshot);
|
|
173
|
+
return errorSnapshot;
|
|
174
|
+
}
|
|
175
|
+
function createResourceRequest$1(config) {
|
|
176
|
+
const headers = {};
|
|
177
|
+
return {
|
|
178
|
+
baseUri: '/services/data/v62.0',
|
|
179
|
+
basePath: '/ssot/metadata',
|
|
180
|
+
method: 'get',
|
|
181
|
+
body: null,
|
|
182
|
+
urlParams: {},
|
|
183
|
+
queryParams: config.queryParams,
|
|
184
|
+
headers,
|
|
185
|
+
priority: 'normal',
|
|
186
|
+
};
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
const adapterName$1 = 'getAllMetadata';
|
|
190
|
+
const getAllMetadata_ConfigPropertyMetadata = [
|
|
191
|
+
generateParamConfigMetadata('dataspace', false, 1 /* QueryParameter */, 0 /* String */),
|
|
192
|
+
generateParamConfigMetadata('entityCategory', false, 1 /* QueryParameter */, 0 /* String */),
|
|
193
|
+
generateParamConfigMetadata('entityName', false, 1 /* QueryParameter */, 0 /* String */),
|
|
194
|
+
generateParamConfigMetadata('entityType', false, 1 /* QueryParameter */, 0 /* String */),
|
|
195
|
+
];
|
|
196
|
+
const getAllMetadata_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, getAllMetadata_ConfigPropertyMetadata);
|
|
197
|
+
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$2(getAllMetadata_ConfigPropertyMetadata);
|
|
198
|
+
function keyBuilder$2(luvio, config) {
|
|
199
|
+
const resourceParams = createResourceParams$1(config);
|
|
200
|
+
return keyBuilder$3(luvio, resourceParams);
|
|
201
|
+
}
|
|
202
|
+
function typeCheckConfig$1(untrustedConfig) {
|
|
203
|
+
const config = {};
|
|
204
|
+
typeCheckConfig$2(untrustedConfig, config, getAllMetadata_ConfigPropertyMetadata);
|
|
205
|
+
return config;
|
|
206
|
+
}
|
|
207
|
+
function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
|
|
208
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
209
|
+
return null;
|
|
210
|
+
}
|
|
211
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
212
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
213
|
+
}
|
|
214
|
+
const config = typeCheckConfig$1(untrustedConfig);
|
|
215
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
216
|
+
return null;
|
|
217
|
+
}
|
|
218
|
+
return config;
|
|
219
|
+
}
|
|
220
|
+
function adapterFragment$1(luvio, config) {
|
|
221
|
+
createResourceParams$1(config);
|
|
222
|
+
return select$2();
|
|
223
|
+
}
|
|
224
|
+
function onFetchResponseSuccess$1(luvio, config, resourceParams, response) {
|
|
225
|
+
const snapshot = ingestSuccess$1(luvio, resourceParams, response, {
|
|
226
|
+
config,
|
|
227
|
+
resolve: () => buildNetworkSnapshot$1(luvio, config, snapshotRefreshOptions)
|
|
228
|
+
});
|
|
229
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
230
|
+
}
|
|
231
|
+
function onFetchResponseError$1(luvio, config, resourceParams, response) {
|
|
232
|
+
const snapshot = ingestError$1(luvio, resourceParams, response, {
|
|
233
|
+
config,
|
|
234
|
+
resolve: () => buildNetworkSnapshot$1(luvio, config, snapshotRefreshOptions)
|
|
235
|
+
});
|
|
236
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
237
|
+
}
|
|
238
|
+
function buildNetworkSnapshot$1(luvio, config, options) {
|
|
239
|
+
const resourceParams = createResourceParams$1(config);
|
|
240
|
+
const request = createResourceRequest$1(resourceParams);
|
|
241
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
242
|
+
.then((response) => {
|
|
243
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$1(luvio, config, resourceParams, response), () => {
|
|
244
|
+
const cache = new StoreKeyMap();
|
|
245
|
+
getResponseCacheKeys$1(cache, luvio, resourceParams, response.body);
|
|
246
|
+
return cache;
|
|
247
|
+
});
|
|
248
|
+
}, (response) => {
|
|
249
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$1(luvio, config, resourceParams, response));
|
|
250
|
+
});
|
|
251
|
+
}
|
|
252
|
+
function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
|
|
253
|
+
return buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext, buildNetworkSnapshot$1, undefined, false);
|
|
254
|
+
}
|
|
255
|
+
function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
|
|
256
|
+
const { luvio, config } = context;
|
|
257
|
+
const selector = {
|
|
258
|
+
recordId: keyBuilder$2(luvio, config),
|
|
259
|
+
node: adapterFragment$1(luvio, config),
|
|
260
|
+
variables: {},
|
|
261
|
+
};
|
|
262
|
+
const cacheSnapshot = storeLookup(selector, {
|
|
263
|
+
config,
|
|
264
|
+
resolve: () => buildNetworkSnapshot$1(luvio, config, snapshotRefreshOptions)
|
|
265
|
+
});
|
|
266
|
+
return cacheSnapshot;
|
|
267
|
+
}
|
|
268
|
+
const getAllMetadataAdapterFactory = (luvio) => function cdpMetadata__getAllMetadata(untrustedConfig, requestContext) {
|
|
269
|
+
const config = validateAdapterConfig$1(untrustedConfig, getAllMetadata_ConfigPropertyNames);
|
|
270
|
+
// Invalid or incomplete config
|
|
271
|
+
if (config === null) {
|
|
272
|
+
return null;
|
|
273
|
+
}
|
|
274
|
+
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
275
|
+
buildCachedSnapshotCachePolicy$1, buildNetworkSnapshotCachePolicy$1);
|
|
276
|
+
};
|
|
277
|
+
|
|
278
|
+
function validate$9(obj, path = 'DataGraphFieldRepresentation') {
|
|
279
|
+
const v_error = (() => {
|
|
280
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
281
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
282
|
+
}
|
|
283
|
+
if (obj.ciFieldType !== undefined) {
|
|
284
|
+
const obj_ciFieldType = obj.ciFieldType;
|
|
285
|
+
const path_ciFieldType = path + '.ciFieldType';
|
|
286
|
+
if (typeof obj_ciFieldType !== 'string') {
|
|
287
|
+
return new TypeError('Expected "string" but received "' + typeof obj_ciFieldType + '" (at "' + path_ciFieldType + '")');
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
const obj_dataGraphFieldDevName = obj.dataGraphFieldDevName;
|
|
291
|
+
const path_dataGraphFieldDevName = path + '.dataGraphFieldDevName';
|
|
292
|
+
if (typeof obj_dataGraphFieldDevName !== 'string') {
|
|
293
|
+
return new TypeError('Expected "string" but received "' + typeof obj_dataGraphFieldDevName + '" (at "' + path_dataGraphFieldDevName + '")');
|
|
294
|
+
}
|
|
295
|
+
const obj_dataType = obj.dataType;
|
|
296
|
+
const path_dataType = path + '.dataType';
|
|
297
|
+
if (typeof obj_dataType !== 'string') {
|
|
298
|
+
return new TypeError('Expected "string" but received "' + typeof obj_dataType + '" (at "' + path_dataType + '")');
|
|
299
|
+
}
|
|
300
|
+
const obj_developerName = obj.developerName;
|
|
301
|
+
const path_developerName = path + '.developerName';
|
|
302
|
+
if (typeof obj_developerName !== 'string') {
|
|
303
|
+
return new TypeError('Expected "string" but received "' + typeof obj_developerName + '" (at "' + path_developerName + '")');
|
|
304
|
+
}
|
|
305
|
+
const obj_isProjected = obj.isProjected;
|
|
306
|
+
const path_isProjected = path + '.isProjected';
|
|
307
|
+
if (typeof obj_isProjected !== 'string') {
|
|
308
|
+
return new TypeError('Expected "string" but received "' + typeof obj_isProjected + '" (at "' + path_isProjected + '")');
|
|
309
|
+
}
|
|
310
|
+
const obj_keyCol = obj.keyCol;
|
|
311
|
+
const path_keyCol = path + '.keyCol';
|
|
312
|
+
if (typeof obj_keyCol !== 'string') {
|
|
313
|
+
return new TypeError('Expected "string" but received "' + typeof obj_keyCol + '" (at "' + path_keyCol + '")');
|
|
314
|
+
}
|
|
315
|
+
const obj_keyQualifierName = obj.keyQualifierName;
|
|
316
|
+
const path_keyQualifierName = path + '.keyQualifierName';
|
|
317
|
+
if (typeof obj_keyQualifierName !== 'string') {
|
|
318
|
+
return new TypeError('Expected "string" but received "' + typeof obj_keyQualifierName + '" (at "' + path_keyQualifierName + '")');
|
|
319
|
+
}
|
|
320
|
+
const obj_length = obj.length;
|
|
321
|
+
const path_length = path + '.length';
|
|
322
|
+
if (typeof obj_length !== 'string') {
|
|
323
|
+
return new TypeError('Expected "string" but received "' + typeof obj_length + '" (at "' + path_length + '")');
|
|
324
|
+
}
|
|
325
|
+
const obj_lookupCol = obj.lookupCol;
|
|
326
|
+
const path_lookupCol = path + '.lookupCol';
|
|
327
|
+
if (typeof obj_lookupCol !== 'string') {
|
|
328
|
+
return new TypeError('Expected "string" but received "' + typeof obj_lookupCol + '" (at "' + path_lookupCol + '")');
|
|
329
|
+
}
|
|
330
|
+
const obj_usageTag = obj.usageTag;
|
|
331
|
+
const path_usageTag = path + '.usageTag';
|
|
332
|
+
if (typeof obj_usageTag !== 'string') {
|
|
333
|
+
return new TypeError('Expected "string" but received "' + typeof obj_usageTag + '" (at "' + path_usageTag + '")');
|
|
334
|
+
}
|
|
335
|
+
})();
|
|
336
|
+
return v_error === undefined ? null : v_error;
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
function validate$8(obj, path = 'DataGraphRelationshipRepresentation') {
|
|
340
|
+
const v_error = (() => {
|
|
341
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
342
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
343
|
+
}
|
|
344
|
+
const obj_cardinality = obj.cardinality;
|
|
345
|
+
const path_cardinality = path + '.cardinality';
|
|
346
|
+
if (typeof obj_cardinality !== 'string') {
|
|
347
|
+
return new TypeError('Expected "string" but received "' + typeof obj_cardinality + '" (at "' + path_cardinality + '")');
|
|
348
|
+
}
|
|
349
|
+
const obj_fieldName = obj.fieldName;
|
|
350
|
+
const path_fieldName = path + '.fieldName';
|
|
351
|
+
if (typeof obj_fieldName !== 'string') {
|
|
352
|
+
return new TypeError('Expected "string" but received "' + typeof obj_fieldName + '" (at "' + path_fieldName + '")');
|
|
353
|
+
}
|
|
354
|
+
const obj_parentFieldName = obj.parentFieldName;
|
|
355
|
+
const path_parentFieldName = path + '.parentFieldName';
|
|
356
|
+
if (typeof obj_parentFieldName !== 'string') {
|
|
357
|
+
return new TypeError('Expected "string" but received "' + typeof obj_parentFieldName + '" (at "' + path_parentFieldName + '")');
|
|
358
|
+
}
|
|
359
|
+
})();
|
|
360
|
+
return v_error === undefined ? null : v_error;
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
function validate$7(obj, path = 'RecencyCriteriaRepresentation') {
|
|
364
|
+
const v_error = (() => {
|
|
365
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
366
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
367
|
+
}
|
|
368
|
+
const obj_fieldName = obj.fieldName;
|
|
369
|
+
const path_fieldName = path + '.fieldName';
|
|
370
|
+
if (typeof obj_fieldName !== 'string') {
|
|
371
|
+
return new TypeError('Expected "string" but received "' + typeof obj_fieldName + '" (at "' + path_fieldName + '")');
|
|
372
|
+
}
|
|
373
|
+
const obj_value = obj.value;
|
|
374
|
+
const path_value = path + '.value';
|
|
375
|
+
if (typeof obj_value !== 'string') {
|
|
376
|
+
return new TypeError('Expected "string" but received "' + typeof obj_value + '" (at "' + path_value + '")');
|
|
377
|
+
}
|
|
378
|
+
const obj_valueType = obj.valueType;
|
|
379
|
+
const path_valueType = path + '.valueType';
|
|
380
|
+
if (typeof obj_valueType !== 'string') {
|
|
381
|
+
return new TypeError('Expected "string" but received "' + typeof obj_valueType + '" (at "' + path_valueType + '")');
|
|
382
|
+
}
|
|
383
|
+
const obj_valueUnit = obj.valueUnit;
|
|
384
|
+
const path_valueUnit = path + '.valueUnit';
|
|
385
|
+
if (typeof obj_valueUnit !== 'string') {
|
|
386
|
+
return new TypeError('Expected "string" but received "' + typeof obj_valueUnit + '" (at "' + path_valueUnit + '")');
|
|
387
|
+
}
|
|
388
|
+
})();
|
|
389
|
+
return v_error === undefined ? null : v_error;
|
|
390
|
+
}
|
|
391
|
+
|
|
392
|
+
function validate$6(obj, path = 'DataGraphObjectDataRepresentation') {
|
|
393
|
+
const v_error = (() => {
|
|
394
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
395
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
396
|
+
}
|
|
397
|
+
const obj_dataGraphSourceDevName = obj.dataGraphSourceDevName;
|
|
398
|
+
const path_dataGraphSourceDevName = path + '.dataGraphSourceDevName';
|
|
399
|
+
if (typeof obj_dataGraphSourceDevName !== 'string') {
|
|
400
|
+
return new TypeError('Expected "string" but received "' + typeof obj_dataGraphSourceDevName + '" (at "' + path_dataGraphSourceDevName + '")');
|
|
401
|
+
}
|
|
402
|
+
const obj_developerName = obj.developerName;
|
|
403
|
+
const path_developerName = path + '.developerName';
|
|
404
|
+
if (typeof obj_developerName !== 'string') {
|
|
405
|
+
return new TypeError('Expected "string" but received "' + typeof obj_developerName + '" (at "' + path_developerName + '")');
|
|
406
|
+
}
|
|
407
|
+
const obj_fields = obj.fields;
|
|
408
|
+
const path_fields = path + '.fields';
|
|
409
|
+
if (!ArrayIsArray(obj_fields)) {
|
|
410
|
+
return new TypeError('Expected "array" but received "' + typeof obj_fields + '" (at "' + path_fields + '")');
|
|
411
|
+
}
|
|
412
|
+
for (let i = 0; i < obj_fields.length; i++) {
|
|
413
|
+
const obj_fields_item = obj_fields[i];
|
|
414
|
+
const path_fields_item = path_fields + '[' + i + ']';
|
|
415
|
+
const referencepath_fields_itemValidationError = validate$9(obj_fields_item, path_fields_item);
|
|
416
|
+
if (referencepath_fields_itemValidationError !== null) {
|
|
417
|
+
let message = 'Object doesn\'t match DataGraphFieldRepresentation (at "' + path_fields_item + '")\n';
|
|
418
|
+
message += referencepath_fields_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
419
|
+
return new TypeError(message);
|
|
420
|
+
}
|
|
421
|
+
}
|
|
422
|
+
const obj_filterCriteria = obj.filterCriteria;
|
|
423
|
+
const path_filterCriteria = path + '.filterCriteria';
|
|
424
|
+
if (typeof obj_filterCriteria !== 'string') {
|
|
425
|
+
return new TypeError('Expected "string" but received "' + typeof obj_filterCriteria + '" (at "' + path_filterCriteria + '")');
|
|
426
|
+
}
|
|
427
|
+
const obj_memberDmoName = obj.memberDmoName;
|
|
428
|
+
const path_memberDmoName = path + '.memberDmoName';
|
|
429
|
+
if (typeof obj_memberDmoName !== 'string') {
|
|
430
|
+
return new TypeError('Expected "string" but received "' + typeof obj_memberDmoName + '" (at "' + path_memberDmoName + '")');
|
|
431
|
+
}
|
|
432
|
+
const obj_paths = obj.paths;
|
|
433
|
+
const path_paths = path + '.paths';
|
|
434
|
+
if (!ArrayIsArray(obj_paths)) {
|
|
435
|
+
return new TypeError('Expected "array" but received "' + typeof obj_paths + '" (at "' + path_paths + '")');
|
|
436
|
+
}
|
|
437
|
+
for (let i = 0; i < obj_paths.length; i++) {
|
|
438
|
+
const obj_paths_item = obj_paths[i];
|
|
439
|
+
const path_paths_item = path_paths + '[' + i + ']';
|
|
440
|
+
const referencepath_paths_itemValidationError = validate$8(obj_paths_item, path_paths_item);
|
|
441
|
+
if (referencepath_paths_itemValidationError !== null) {
|
|
442
|
+
let message = 'Object doesn\'t match DataGraphRelationshipRepresentation (at "' + path_paths_item + '")\n';
|
|
443
|
+
message += referencepath_paths_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
444
|
+
return new TypeError(message);
|
|
445
|
+
}
|
|
446
|
+
}
|
|
447
|
+
const obj_recencyCriteria = obj.recencyCriteria;
|
|
448
|
+
const path_recencyCriteria = path + '.recencyCriteria';
|
|
449
|
+
if (!ArrayIsArray(obj_recencyCriteria)) {
|
|
450
|
+
return new TypeError('Expected "array" but received "' + typeof obj_recencyCriteria + '" (at "' + path_recencyCriteria + '")');
|
|
451
|
+
}
|
|
452
|
+
for (let i = 0; i < obj_recencyCriteria.length; i++) {
|
|
453
|
+
const obj_recencyCriteria_item = obj_recencyCriteria[i];
|
|
454
|
+
const path_recencyCriteria_item = path_recencyCriteria + '[' + i + ']';
|
|
455
|
+
const referencepath_recencyCriteria_itemValidationError = validate$7(obj_recencyCriteria_item, path_recencyCriteria_item);
|
|
456
|
+
if (referencepath_recencyCriteria_itemValidationError !== null) {
|
|
457
|
+
let message = 'Object doesn\'t match RecencyCriteriaRepresentation (at "' + path_recencyCriteria_item + '")\n';
|
|
458
|
+
message += referencepath_recencyCriteria_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
459
|
+
return new TypeError(message);
|
|
460
|
+
}
|
|
461
|
+
}
|
|
462
|
+
const obj_relatedObjects = obj.relatedObjects;
|
|
463
|
+
const path_relatedObjects = path + '.relatedObjects';
|
|
464
|
+
if (!ArrayIsArray(obj_relatedObjects)) {
|
|
465
|
+
return new TypeError('Expected "array" but received "' + typeof obj_relatedObjects + '" (at "' + path_relatedObjects + '")');
|
|
466
|
+
}
|
|
467
|
+
for (let i = 0; i < obj_relatedObjects.length; i++) {
|
|
468
|
+
const obj_relatedObjects_item = obj_relatedObjects[i];
|
|
469
|
+
const path_relatedObjects_item = path_relatedObjects + '[' + i + ']';
|
|
470
|
+
if (obj_relatedObjects_item === undefined) {
|
|
471
|
+
return new TypeError('Expected "defined" but received "' + typeof obj_relatedObjects_item + '" (at "' + path_relatedObjects_item + '")');
|
|
472
|
+
}
|
|
473
|
+
}
|
|
474
|
+
const obj_type = obj.type;
|
|
475
|
+
const path_type = path + '.type';
|
|
476
|
+
if (typeof obj_type !== 'string') {
|
|
477
|
+
return new TypeError('Expected "string" but received "' + typeof obj_type + '" (at "' + path_type + '")');
|
|
478
|
+
}
|
|
479
|
+
})();
|
|
480
|
+
return v_error === undefined ? null : v_error;
|
|
481
|
+
}
|
|
482
|
+
|
|
483
|
+
function validate$5(obj, path = 'DataGraphIdsDmoFieldRepresentation') {
|
|
484
|
+
const v_error = (() => {
|
|
485
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
486
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
487
|
+
}
|
|
488
|
+
const obj_capabilities = obj.capabilities;
|
|
489
|
+
const path_capabilities = path + '.capabilities';
|
|
490
|
+
if (!ArrayIsArray(obj_capabilities)) {
|
|
491
|
+
return new TypeError('Expected "array" but received "' + typeof obj_capabilities + '" (at "' + path_capabilities + '")');
|
|
492
|
+
}
|
|
493
|
+
for (let i = 0; i < obj_capabilities.length; i++) {
|
|
494
|
+
const obj_capabilities_item = obj_capabilities[i];
|
|
495
|
+
const path_capabilities_item = path_capabilities + '[' + i + ']';
|
|
496
|
+
if (typeof obj_capabilities_item !== 'number' || (typeof obj_capabilities_item === 'number' && Math.floor(obj_capabilities_item) !== obj_capabilities_item)) {
|
|
497
|
+
return new TypeError('Expected "integer" but received "' + typeof obj_capabilities_item + '" (at "' + path_capabilities_item + '")');
|
|
498
|
+
}
|
|
499
|
+
}
|
|
500
|
+
const obj_dataType = obj.dataType;
|
|
501
|
+
const path_dataType = path + '.dataType';
|
|
502
|
+
if (typeof obj_dataType !== 'string') {
|
|
503
|
+
return new TypeError('Expected "string" but received "' + typeof obj_dataType + '" (at "' + path_dataType + '")');
|
|
504
|
+
}
|
|
505
|
+
const obj_developerName = obj.developerName;
|
|
506
|
+
const path_developerName = path + '.developerName';
|
|
507
|
+
if (typeof obj_developerName !== 'string') {
|
|
508
|
+
return new TypeError('Expected "string" but received "' + typeof obj_developerName + '" (at "' + path_developerName + '")');
|
|
509
|
+
}
|
|
510
|
+
})();
|
|
511
|
+
return v_error === undefined ? null : v_error;
|
|
512
|
+
}
|
|
513
|
+
|
|
514
|
+
function validate$4(obj, path = 'DataGraphIdsDmoRepresentation') {
|
|
515
|
+
const v_error = (() => {
|
|
516
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
517
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
518
|
+
}
|
|
519
|
+
const obj_developerName = obj.developerName;
|
|
520
|
+
const path_developerName = path + '.developerName';
|
|
521
|
+
if (typeof obj_developerName !== 'string') {
|
|
522
|
+
return new TypeError('Expected "string" but received "' + typeof obj_developerName + '" (at "' + path_developerName + '")');
|
|
523
|
+
}
|
|
524
|
+
const obj_fields = obj.fields;
|
|
525
|
+
const path_fields = path + '.fields';
|
|
526
|
+
if (!ArrayIsArray(obj_fields)) {
|
|
527
|
+
return new TypeError('Expected "array" but received "' + typeof obj_fields + '" (at "' + path_fields + '")');
|
|
528
|
+
}
|
|
529
|
+
for (let i = 0; i < obj_fields.length; i++) {
|
|
530
|
+
const obj_fields_item = obj_fields[i];
|
|
531
|
+
const path_fields_item = path_fields + '[' + i + ']';
|
|
532
|
+
const referencepath_fields_itemValidationError = validate$5(obj_fields_item, path_fields_item);
|
|
533
|
+
if (referencepath_fields_itemValidationError !== null) {
|
|
534
|
+
let message = 'Object doesn\'t match DataGraphIdsDmoFieldRepresentation (at "' + path_fields_item + '")\n';
|
|
535
|
+
message += referencepath_fields_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
536
|
+
return new TypeError(message);
|
|
537
|
+
}
|
|
538
|
+
}
|
|
539
|
+
})();
|
|
540
|
+
return v_error === undefined ? null : v_error;
|
|
541
|
+
}
|
|
542
|
+
|
|
543
|
+
function validate$3(obj, path = 'DataGraphValuesDmoFieldRepresentation') {
|
|
544
|
+
const v_error = (() => {
|
|
545
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
546
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
547
|
+
}
|
|
548
|
+
const obj_capabilities = obj.capabilities;
|
|
549
|
+
const path_capabilities = path + '.capabilities';
|
|
550
|
+
if (!ArrayIsArray(obj_capabilities)) {
|
|
551
|
+
return new TypeError('Expected "array" but received "' + typeof obj_capabilities + '" (at "' + path_capabilities + '")');
|
|
552
|
+
}
|
|
553
|
+
for (let i = 0; i < obj_capabilities.length; i++) {
|
|
554
|
+
const obj_capabilities_item = obj_capabilities[i];
|
|
555
|
+
const path_capabilities_item = path_capabilities + '[' + i + ']';
|
|
556
|
+
if (typeof obj_capabilities_item !== 'number' || (typeof obj_capabilities_item === 'number' && Math.floor(obj_capabilities_item) !== obj_capabilities_item)) {
|
|
557
|
+
return new TypeError('Expected "integer" but received "' + typeof obj_capabilities_item + '" (at "' + path_capabilities_item + '")');
|
|
558
|
+
}
|
|
559
|
+
}
|
|
560
|
+
const obj_dataType = obj.dataType;
|
|
561
|
+
const path_dataType = path + '.dataType';
|
|
562
|
+
if (typeof obj_dataType !== 'string') {
|
|
563
|
+
return new TypeError('Expected "string" but received "' + typeof obj_dataType + '" (at "' + path_dataType + '")');
|
|
564
|
+
}
|
|
565
|
+
const obj_developerName = obj.developerName;
|
|
566
|
+
const path_developerName = path + '.developerName';
|
|
567
|
+
if (typeof obj_developerName !== 'string') {
|
|
568
|
+
return new TypeError('Expected "string" but received "' + typeof obj_developerName + '" (at "' + path_developerName + '")');
|
|
569
|
+
}
|
|
570
|
+
})();
|
|
571
|
+
return v_error === undefined ? null : v_error;
|
|
572
|
+
}
|
|
573
|
+
|
|
574
|
+
function validate$2(obj, path = 'DataGraphValuesDmoRepresentation') {
|
|
575
|
+
const v_error = (() => {
|
|
576
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
577
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
578
|
+
}
|
|
579
|
+
const obj_developerName = obj.developerName;
|
|
580
|
+
const path_developerName = path + '.developerName';
|
|
581
|
+
if (typeof obj_developerName !== 'string') {
|
|
582
|
+
return new TypeError('Expected "string" but received "' + typeof obj_developerName + '" (at "' + path_developerName + '")');
|
|
583
|
+
}
|
|
584
|
+
const obj_fields = obj.fields;
|
|
585
|
+
const path_fields = path + '.fields';
|
|
586
|
+
if (!ArrayIsArray(obj_fields)) {
|
|
587
|
+
return new TypeError('Expected "array" but received "' + typeof obj_fields + '" (at "' + path_fields + '")');
|
|
588
|
+
}
|
|
589
|
+
for (let i = 0; i < obj_fields.length; i++) {
|
|
590
|
+
const obj_fields_item = obj_fields[i];
|
|
591
|
+
const path_fields_item = path_fields + '[' + i + ']';
|
|
592
|
+
const referencepath_fields_itemValidationError = validate$3(obj_fields_item, path_fields_item);
|
|
593
|
+
if (referencepath_fields_itemValidationError !== null) {
|
|
594
|
+
let message = 'Object doesn\'t match DataGraphValuesDmoFieldRepresentation (at "' + path_fields_item + '")\n';
|
|
595
|
+
message += referencepath_fields_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
596
|
+
return new TypeError(message);
|
|
597
|
+
}
|
|
598
|
+
}
|
|
599
|
+
})();
|
|
600
|
+
return v_error === undefined ? null : v_error;
|
|
601
|
+
}
|
|
602
|
+
|
|
603
|
+
function validate$1(obj, path = 'CdpQueryDataGraphMetadataRepresentation') {
|
|
604
|
+
const v_error = (() => {
|
|
605
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
606
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
607
|
+
}
|
|
608
|
+
const obj_dataspaceName = obj.dataspaceName;
|
|
609
|
+
const path_dataspaceName = path + '.dataspaceName';
|
|
610
|
+
if (typeof obj_dataspaceName !== 'string') {
|
|
611
|
+
return new TypeError('Expected "string" but received "' + typeof obj_dataspaceName + '" (at "' + path_dataspaceName + '")');
|
|
612
|
+
}
|
|
613
|
+
const obj_description = obj.description;
|
|
614
|
+
const path_description = path + '.description';
|
|
615
|
+
if (typeof obj_description !== 'string') {
|
|
616
|
+
return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
|
|
617
|
+
}
|
|
618
|
+
const obj_developerName = obj.developerName;
|
|
619
|
+
const path_developerName = path + '.developerName';
|
|
620
|
+
if (typeof obj_developerName !== 'string') {
|
|
621
|
+
return new TypeError('Expected "string" but received "' + typeof obj_developerName + '" (at "' + path_developerName + '")');
|
|
622
|
+
}
|
|
623
|
+
const obj_dgObject = obj.dgObject;
|
|
624
|
+
const path_dgObject = path + '.dgObject';
|
|
625
|
+
const referencepath_dgObjectValidationError = validate$6(obj_dgObject, path_dgObject);
|
|
626
|
+
if (referencepath_dgObjectValidationError !== null) {
|
|
627
|
+
let message = 'Object doesn\'t match DataGraphObjectDataRepresentation (at "' + path_dgObject + '")\n';
|
|
628
|
+
message += referencepath_dgObjectValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
629
|
+
return new TypeError(message);
|
|
630
|
+
}
|
|
631
|
+
if (obj.extendedProperties !== undefined) {
|
|
632
|
+
const obj_extendedProperties = obj.extendedProperties;
|
|
633
|
+
const path_extendedProperties = path + '.extendedProperties';
|
|
634
|
+
if (typeof obj_extendedProperties !== 'object' || ArrayIsArray(obj_extendedProperties) || obj_extendedProperties === null) {
|
|
635
|
+
return new TypeError('Expected "object" but received "' + typeof obj_extendedProperties + '" (at "' + path_extendedProperties + '")');
|
|
636
|
+
}
|
|
637
|
+
}
|
|
638
|
+
const obj_idDmoName = obj.idDmoName;
|
|
639
|
+
const path_idDmoName = path + '.idDmoName';
|
|
640
|
+
if (typeof obj_idDmoName !== 'string') {
|
|
641
|
+
return new TypeError('Expected "string" but received "' + typeof obj_idDmoName + '" (at "' + path_idDmoName + '")');
|
|
642
|
+
}
|
|
643
|
+
const obj_idsDmo = obj.idsDmo;
|
|
644
|
+
const path_idsDmo = path + '.idsDmo';
|
|
645
|
+
const referencepath_idsDmoValidationError = validate$4(obj_idsDmo, path_idsDmo);
|
|
646
|
+
if (referencepath_idsDmoValidationError !== null) {
|
|
647
|
+
let message = 'Object doesn\'t match DataGraphIdsDmoRepresentation (at "' + path_idsDmo + '")\n';
|
|
648
|
+
message += referencepath_idsDmoValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
649
|
+
return new TypeError(message);
|
|
650
|
+
}
|
|
651
|
+
const obj_primaryObjectName = obj.primaryObjectName;
|
|
652
|
+
const path_primaryObjectName = path + '.primaryObjectName';
|
|
653
|
+
if (typeof obj_primaryObjectName !== 'string') {
|
|
654
|
+
return new TypeError('Expected "string" but received "' + typeof obj_primaryObjectName + '" (at "' + path_primaryObjectName + '")');
|
|
655
|
+
}
|
|
656
|
+
const obj_primaryObjectType = obj.primaryObjectType;
|
|
657
|
+
const path_primaryObjectType = path + '.primaryObjectType';
|
|
658
|
+
if (typeof obj_primaryObjectType !== 'string') {
|
|
659
|
+
return new TypeError('Expected "string" but received "' + typeof obj_primaryObjectType + '" (at "' + path_primaryObjectType + '")');
|
|
660
|
+
}
|
|
661
|
+
const obj_status = obj.status;
|
|
662
|
+
const path_status = path + '.status';
|
|
663
|
+
if (typeof obj_status !== 'string') {
|
|
664
|
+
return new TypeError('Expected "string" but received "' + typeof obj_status + '" (at "' + path_status + '")');
|
|
665
|
+
}
|
|
666
|
+
const obj_valuesDmo = obj.valuesDmo;
|
|
667
|
+
const path_valuesDmo = path + '.valuesDmo';
|
|
668
|
+
const referencepath_valuesDmoValidationError = validate$2(obj_valuesDmo, path_valuesDmo);
|
|
669
|
+
if (referencepath_valuesDmoValidationError !== null) {
|
|
670
|
+
let message = 'Object doesn\'t match DataGraphValuesDmoRepresentation (at "' + path_valuesDmo + '")\n';
|
|
671
|
+
message += referencepath_valuesDmoValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
672
|
+
return new TypeError(message);
|
|
673
|
+
}
|
|
674
|
+
const obj_valuesDmoName = obj.valuesDmoName;
|
|
675
|
+
const path_valuesDmoName = path + '.valuesDmoName';
|
|
676
|
+
if (typeof obj_valuesDmoName !== 'string') {
|
|
677
|
+
return new TypeError('Expected "string" but received "' + typeof obj_valuesDmoName + '" (at "' + path_valuesDmoName + '")');
|
|
678
|
+
}
|
|
679
|
+
const obj_version = obj.version;
|
|
680
|
+
const path_version = path + '.version';
|
|
681
|
+
if (typeof obj_version !== 'string') {
|
|
682
|
+
return new TypeError('Expected "string" but received "' + typeof obj_version + '" (at "' + path_version + '")');
|
|
683
|
+
}
|
|
684
|
+
})();
|
|
685
|
+
return v_error === undefined ? null : v_error;
|
|
686
|
+
}
|
|
687
|
+
|
|
688
|
+
const VERSION = "d39db1870f5b57ce6e726950714a32cd";
|
|
689
|
+
function validate(obj, path = 'CdpDgMetadataRepresentation') {
|
|
690
|
+
const v_error = (() => {
|
|
691
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
692
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
693
|
+
}
|
|
694
|
+
const obj_dataGraphMetadata = obj.dataGraphMetadata;
|
|
695
|
+
const path_dataGraphMetadata = path + '.dataGraphMetadata';
|
|
696
|
+
if (!ArrayIsArray(obj_dataGraphMetadata)) {
|
|
697
|
+
return new TypeError('Expected "array" but received "' + typeof obj_dataGraphMetadata + '" (at "' + path_dataGraphMetadata + '")');
|
|
698
|
+
}
|
|
699
|
+
for (let i = 0; i < obj_dataGraphMetadata.length; i++) {
|
|
700
|
+
const obj_dataGraphMetadata_item = obj_dataGraphMetadata[i];
|
|
701
|
+
const path_dataGraphMetadata_item = path_dataGraphMetadata + '[' + i + ']';
|
|
702
|
+
const referencepath_dataGraphMetadata_itemValidationError = validate$1(obj_dataGraphMetadata_item, path_dataGraphMetadata_item);
|
|
703
|
+
if (referencepath_dataGraphMetadata_itemValidationError !== null) {
|
|
704
|
+
let message = 'Object doesn\'t match CdpQueryDataGraphMetadataRepresentation (at "' + path_dataGraphMetadata_item + '")\n';
|
|
705
|
+
message += referencepath_dataGraphMetadata_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
706
|
+
return new TypeError(message);
|
|
707
|
+
}
|
|
708
|
+
}
|
|
709
|
+
})();
|
|
710
|
+
return v_error === undefined ? null : v_error;
|
|
711
|
+
}
|
|
712
|
+
const RepresentationType = 'CdpDgMetadataRepresentation';
|
|
104
713
|
function normalize(input, existing, path, luvio, store, timestamp) {
|
|
105
714
|
return input;
|
|
106
715
|
}
|
|
107
|
-
const select$1 = function
|
|
716
|
+
const select$1 = function CdpDgMetadataRepresentationSelect() {
|
|
108
717
|
return {
|
|
109
718
|
kind: 'Fragment',
|
|
110
719
|
version: VERSION,
|
|
@@ -118,7 +727,7 @@ function equals(existing, incoming) {
|
|
|
118
727
|
}
|
|
119
728
|
return true;
|
|
120
729
|
}
|
|
121
|
-
const ingest = function
|
|
730
|
+
const ingest = function CdpDgMetadataRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
122
731
|
if (process.env.NODE_ENV !== 'production') {
|
|
123
732
|
const validateError = validate(input);
|
|
124
733
|
if (validateError !== null) {
|
|
@@ -144,7 +753,7 @@ function select(luvio, params) {
|
|
|
144
753
|
return select$1();
|
|
145
754
|
}
|
|
146
755
|
function keyBuilder$1(luvio, params) {
|
|
147
|
-
return keyPrefix + '::
|
|
756
|
+
return keyPrefix + '::CdpDgMetadataRepresentation:(' + 'dataGraphEntityName:' + params.queryParams.dataGraphEntityName + ',' + 'dataspace:' + params.queryParams.dataspace + ')';
|
|
148
757
|
}
|
|
149
758
|
function getResponseCacheKeys(storeKeyMap, luvio, resourceParams, response) {
|
|
150
759
|
getTypeCacheKeys(storeKeyMap, luvio, response, () => keyBuilder$1(luvio, resourceParams));
|
|
@@ -176,7 +785,7 @@ function createResourceRequest(config) {
|
|
|
176
785
|
const headers = {};
|
|
177
786
|
return {
|
|
178
787
|
baseUri: '/services/data/v62.0',
|
|
179
|
-
basePath: '/ssot/metadata',
|
|
788
|
+
basePath: '/ssot/data-graphs/metadata',
|
|
180
789
|
method: 'get',
|
|
181
790
|
body: null,
|
|
182
791
|
urlParams: {},
|
|
@@ -186,22 +795,20 @@ function createResourceRequest(config) {
|
|
|
186
795
|
};
|
|
187
796
|
}
|
|
188
797
|
|
|
189
|
-
const adapterName = '
|
|
190
|
-
const
|
|
798
|
+
const adapterName = 'getDataGraphMetadata';
|
|
799
|
+
const getDataGraphMetadata_ConfigPropertyMetadata = [
|
|
800
|
+
generateParamConfigMetadata('dataGraphEntityName', false, 1 /* QueryParameter */, 0 /* String */),
|
|
191
801
|
generateParamConfigMetadata('dataspace', false, 1 /* QueryParameter */, 0 /* String */),
|
|
192
|
-
generateParamConfigMetadata('entityCategory', false, 1 /* QueryParameter */, 0 /* String */),
|
|
193
|
-
generateParamConfigMetadata('entityName', false, 1 /* QueryParameter */, 0 /* String */),
|
|
194
|
-
generateParamConfigMetadata('entityType', false, 1 /* QueryParameter */, 0 /* String */),
|
|
195
802
|
];
|
|
196
|
-
const
|
|
197
|
-
const createResourceParams = /*#__PURE__*/ createResourceParams$
|
|
803
|
+
const getDataGraphMetadata_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, getDataGraphMetadata_ConfigPropertyMetadata);
|
|
804
|
+
const createResourceParams = /*#__PURE__*/ createResourceParams$2(getDataGraphMetadata_ConfigPropertyMetadata);
|
|
198
805
|
function keyBuilder(luvio, config) {
|
|
199
806
|
const resourceParams = createResourceParams(config);
|
|
200
807
|
return keyBuilder$1(luvio, resourceParams);
|
|
201
808
|
}
|
|
202
809
|
function typeCheckConfig(untrustedConfig) {
|
|
203
810
|
const config = {};
|
|
204
|
-
typeCheckConfig$
|
|
811
|
+
typeCheckConfig$2(untrustedConfig, config, getDataGraphMetadata_ConfigPropertyMetadata);
|
|
205
812
|
return config;
|
|
206
813
|
}
|
|
207
814
|
function validateAdapterConfig(untrustedConfig, configPropertyNames) {
|
|
@@ -250,7 +857,7 @@ function buildNetworkSnapshot(luvio, config, options) {
|
|
|
250
857
|
});
|
|
251
858
|
}
|
|
252
859
|
function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
|
|
253
|
-
return buildNetworkSnapshotCachePolicy$
|
|
860
|
+
return buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext, buildNetworkSnapshot, undefined, false);
|
|
254
861
|
}
|
|
255
862
|
function buildCachedSnapshotCachePolicy(context, storeLookup) {
|
|
256
863
|
const { luvio, config } = context;
|
|
@@ -265,8 +872,8 @@ function buildCachedSnapshotCachePolicy(context, storeLookup) {
|
|
|
265
872
|
});
|
|
266
873
|
return cacheSnapshot;
|
|
267
874
|
}
|
|
268
|
-
const
|
|
269
|
-
const config = validateAdapterConfig(untrustedConfig,
|
|
875
|
+
const getDataGraphMetadataAdapterFactory = (luvio) => function cdpMetadata__getDataGraphMetadata(untrustedConfig, requestContext) {
|
|
876
|
+
const config = validateAdapterConfig(untrustedConfig, getDataGraphMetadata_ConfigPropertyNames);
|
|
270
877
|
// Invalid or incomplete config
|
|
271
878
|
if (config === null) {
|
|
272
879
|
return null;
|
|
@@ -275,4 +882,4 @@ const getAllMetadataAdapterFactory = (luvio) => function cdpMetadata__getAllMeta
|
|
|
275
882
|
buildCachedSnapshotCachePolicy, buildNetworkSnapshotCachePolicy);
|
|
276
883
|
};
|
|
277
884
|
|
|
278
|
-
export { getAllMetadataAdapterFactory };
|
|
885
|
+
export { getAllMetadataAdapterFactory, getDataGraphMetadataAdapterFactory };
|